* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-base: #06070b;
  --bg-elev: #121827cc;
  --bg-elev-strong: #171f31;
  --line-soft: #3f4961;
  --text-main: #eef2ff;
  --text-mid: #b7c0d2;
  --text-soft: #909cb1;
  --accent: #cfc8ff;
  --accent-strong: #e2ddff;
}

body {
  font-family: "Space Grotesk", system-ui, sans-serif;
  background-color: var(--bg-base);
  background-image:
    radial-gradient(120% 90% at 50% 100%, #1f285000 45%, #11193655 72%, #151f4300 100%),
    radial-gradient(95% 62% at 50% 38%, #2a3f9c2b 0%, #1a285219 35%, #0c122000 72%),
    linear-gradient(180deg, #05060a 0%, #06070b 60%, #070a12 100%);
  color: var(--text-main);
  min-height: 100svh;
}

body:not(.install-page) {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  justify-items: center;
  align-items: stretch;
  row-gap: clamp(0.9rem, 2.5svh, 1.5rem);
  padding: clamp(0.85rem, 2.4svh, 1.4rem) clamp(0.9rem, 2.4vw, 1.4rem) clamp(0.75rem, 2svh, 1rem);
}

.top-links {
  width: 100%;
  justify-self: stretch;
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.9rem;
  z-index: 10;
}

.top-nav-link {
  color: var(--text-mid);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1;
  transition: color 0.2s ease;
}

.top-nav-link:hover {
  color: var(--accent-strong);
  text-decoration: none;
}

main {
  text-align: center;
  width: min(100%, 56rem);
  position: relative;
  isolation: isolate;
  animation: main-in 0.52s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

body:not(.install-page) main {
  align-self: center;
}

body:not(.install-page) main::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 56%;
  width: min(92vw, 40rem);
  height: 8.2rem;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: radial-gradient(ellipse at center, #cfc8ff2b 0%, #9aa8ff17 42%, #7b8fff08 68%, #7b8fff00 100%);
  filter: blur(24px);
  pointer-events: none;
  z-index: -1;
}

h1 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3em;
  line-height: 1;
  font-size: clamp(2.8rem, 11vw, 5.8rem);
  font-weight: 400;
  letter-spacing: clamp(0.05em, 0.95vw, 0.1em);
  color: var(--text-main);
  text-shadow: 0 0 24px #aab8ff1a;
}

h1 .brand-mark {
  display: block;
  align-self: center;
  width: 0.8em;
  height: 0.8em;
  flex: 0 0 auto;
  transform: translateY(0.05em);
}

.tagline {
  margin: 0.45rem 0 0.35rem;
  color: #c6beff;
  font-size: clamp(0.9rem, 1.7vw, 1.08rem);
  letter-spacing: 0.035em;
  font-weight: 500;
}

p {
  color: var(--text-mid);
  margin: 1rem 0 2rem;
}

#version {
  color: var(--text-soft);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.9rem;
  overflow-wrap: anywhere;
  letter-spacing: 0.02em;
}

.site-footer {
  width: 100%;
  padding: 0;
  text-align: center;
  pointer-events: none;
}

.cli-strip {
  width: min(100%, 94rem);
  margin-top: 0.55rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  z-index: 9;
  pointer-events: none;
  animation: strip-in 0.74s ease both;
}

.cli-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.9rem 3rem;
  pointer-events: none;
}

.cli-intro {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  text-align: center;
  white-space: nowrap;
}

.cli-link {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}

.cli-logo {
  height: 2.55rem;
  width: auto;
  max-width: 10.2rem;
  flex: 0 1 auto;
  object-fit: contain;
  opacity: 0.78;
}

.cli-logo--claude,
.cli-logo--opencode {
  height: 2.55rem;
}

.cli-logo--claude {
  height: 4.1rem;
  max-width: 11.73rem;
}

.cli-logo--gemini {
  height: 2.42rem;
}

.cli-logo--codex {
  height: 2.3rem;
}

#status {
  color: #0f0;
  font-family: monospace;
  overflow-wrap: anywhere;
}

.url {
  color: var(--accent);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: clamp(1.02rem, 1.8vw, 1.32rem);
  text-decoration: none;
  overflow-wrap: anywhere;
  text-align: center;
  width: 100%;
}

.url:hover {
  text-decoration: underline;
}

.box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: linear-gradient(180deg, #181d2b 0%, #141924 100%);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  margin: 1.25rem auto 1.1rem;
  width: min(100%, 34rem);
  box-shadow: 0 16px 36px #03050b99, 0 0 0 1px #8695c21f inset;
}

.copy-btn {
  background: none;
  border: none;
  color: var(--text-soft);
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  align-items: center;
  transition: color 0.2s;
  flex: 0 0 auto;
}

.copy-btn svg {
  width: 1.1rem;
  height: 1.1rem;
}

.copy-btn:hover {
  color: var(--accent-strong);
}

.toast {
  position: fixed;
  left: 50%;
  top: 1rem;
  transform: translate(-50%, -0.15rem) scale(0.98);
  background: rgba(24, 30, 46, 0.96);
  color: #eef2ff;
  padding: 0.5rem 0.8rem;
  border: 1px solid #4a5878;
  border-radius: 999px;
  box-shadow: 0 14px 32px rgba(2, 5, 12, 0.42);
  font-size: 0.85rem;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  z-index: 60;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.toast.show {
  transform: translate(-50%, -0.55rem) scale(1);
  opacity: 1;
}

.note {
  margin: 0.6rem 0 0;
  color: var(--text-mid);
  font-size: 0.95rem;
  line-height: 1.5;
  transition: opacity 280ms ease, transform 280ms ease;
}

.note.note-fading {
  opacity: 0;
  transform: translateY(4px);
}

.starter-prompt-wrap {
  width: min(100%, 34rem);
  margin: 0.22rem auto 0;
}

.starter-prompt {
  display: block;
  width: 100%;
  margin: 0;
  color: var(--accent);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: clamp(0.86rem, 1.45vw, 1.02rem);
  line-height: 1.3;
  text-align: center;
  white-space: pre-line;
  overflow-wrap: anywhere;
  text-decoration: none;
  transition: color 0.2s ease;
}

.starter-prompt:hover {
  color: var(--accent-strong);
  text-decoration: underline;
}

.starter-prompt .prompt-cursor {
  display: inline-block;
  width: 0;
}

.starter-prompt.typing .prompt-cursor::after {
  content: "|";
  opacity: 1;
  animation: prompt-caret-blink 1s steps(1, end) infinite;
}

@keyframes prompt-caret-blink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

.howto {
  width: min(100%, 34rem);
  margin: 0.25rem auto 0;
  text-align: left;
}

.howto-title {
  margin: 0 0 0.22rem;
  color: var(--text-soft);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.howto-steps {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-mid);
  font-size: 0.9rem;
  line-height: 1.45;
  display: grid;
  gap: 0.12rem;
}

.get-started {
  color: var(--accent-strong);
  text-decoration: none;
  font-weight: 600;
}

.get-started:hover {
  text-decoration: underline;
}

body.install-page {
  align-items: flex-start;
  padding: 1.25rem 1rem 3rem;
}

.prices-page .top-links {
  width: min(100%, 56rem);
  margin: 0 auto;
}

.install-main {
  width: min(100%, 40rem);
  margin-top: clamp(3.6rem, 12vh, 5.6rem);
  text-align: left;
}

.install-main h1 {
  justify-content: flex-start;
  font-size: clamp(2.3rem, 8vw, 4.2rem);
  letter-spacing: clamp(0.04em, 0.6vw, 0.08em);
}

.install-intro {
  margin: 0.8rem 0 1.2rem;
  color: var(--text-mid);
  font-size: 1rem;
}

.install-main .howto {
  width: 100%;
  margin: 0;
}

.install-main .howto-steps {
  gap: 0.24rem;
}

.install-main .starter-prompt-wrap {
  margin-top: 0.45rem;
}

.install-main .starter-prompt {
  padding: 0.6rem 0.72rem;
  border: 1px solid #3a4561;
  border-radius: 8px;
  background: #101624;
  color: #cfd8ec;
  font-size: 0.78rem;
  line-height: 1.46;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.install-main .starter-prompt:hover {
  border-color: #4c5c80;
  color: #e3e9ff;
  text-decoration: none;
}

.prices-main {
  width: min(100%, 56rem);
  margin: clamp(2.8rem, 10vh, 4.8rem) auto 0;
  text-align: left;
}

.prices-main h1 {
  justify-content: flex-start;
  font-size: clamp(2.5rem, 8vw, 4.6rem);
  letter-spacing: clamp(0.04em, 0.65vw, 0.08em);
}

.prices-kicker {
  margin: 0 0 0.55rem;
  color: var(--text-soft);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}

.prices-lede {
  margin: 0.95rem 0 0;
  max-width: 41rem;
  color: var(--text-mid);
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.62;
}

.pricing-grid {
  margin-top: 1.55rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.pricing-card,
.pricing-flow,
.pricing-step {
  border: 1px solid #303a54;
  border-radius: 14px;
  background: linear-gradient(180deg, #151b2a 0%, #111722 100%);
  box-shadow: 0 18px 38px #02040a73, 0 0 0 1px #8392bf14 inset;
}

.pricing-card {
  padding: 1.15rem 1.15rem 1.2rem;
}

.pricing-card--funded {
  border-color: #536388;
  background: linear-gradient(180deg, #1a2134 0%, #121826 100%);
}

.pricing-label {
  margin: 0;
  color: #d7d1ff;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}

.pricing-card h2,
.pricing-flow h2,
.pricing-step h3 {
  margin: 0;
  color: var(--text-main);
  font-weight: 500;
}

.pricing-card h2 {
  font-size: 1.38rem;
}

.pricing-summary,
.pricing-flow > p,
.pricing-step p {
  color: var(--text-mid);
  line-height: 1.58;
}

.pricing-summary {
  margin: 0.5rem 0 0;
  font-size: 0.95rem;
}

.pricing-prompt {
  margin: 0.95rem 0 1rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid #46506a;
  border-radius: 10px;
  background: #0e1421;
  color: var(--text-mid);
  font-size: 0.84rem;
  line-height: 1.5;
}

.pricing-prompt span {
  display: block;
  margin-bottom: 0.28rem;
  color: var(--text-soft);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pricing-prompt code {
  color: var(--accent-strong);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.9rem;
}

.pricing-points {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.62rem;
}

.pricing-points li {
  position: relative;
  padding-left: 1rem;
  color: var(--text-mid);
  font-size: 0.92rem;
  line-height: 1.5;
}

.pricing-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.63em;
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 999px;
  background: #aab7ff;
  box-shadow: 0 0 12px #aab7ff66;
}

.pricing-flow {
  margin-top: 1rem;
  padding: 1.15rem;
}

.pricing-flow h2 {
  font-size: 1.28rem;
}

.pricing-flow > p {
  margin: 0.5rem 0 0;
  max-width: 44rem;
  font-size: 0.95rem;
}

.pricing-steps {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.pricing-step {
  padding: 0.95rem 0.95rem 1rem;
}

.pricing-step-number {
  margin: 0 0 0.4rem;
  color: var(--accent-strong);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

.pricing-step h3 {
  font-size: 1rem;
}

.pricing-step p {
  margin: 0.48rem 0 0;
  font-size: 0.9rem;
}

.pricing-actions {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.pricing-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.55rem;
  padding: 0.62rem 0.95rem;
  border: 1px solid #404b67;
  border-radius: 999px;
  color: var(--text-mid);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.pricing-link:hover {
  color: var(--text-main);
  border-color: #6c7da8;
}

.pricing-link--primary {
  color: #07101d;
  background: linear-gradient(180deg, #ece8ff 0%, #d5dfff 100%);
  border-color: #d5dfff;
}

.pricing-link--primary:hover {
  color: #07101d;
  border-color: #eff2ff;
  background: linear-gradient(180deg, #f1eeff 0%, #dbe4ff 100%);
}

.pricing-footnote {
  margin: 0.95rem 0 0;
  color: var(--text-soft);
  font-size: 0.84rem;
  line-height: 1.55;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 2px;
}

@keyframes main-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes strip-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.testimonials {
  position: relative;
  width: min(calc(100% - 8rem), 23rem);
  height: 5.8rem;
}

.testimonial {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0.9rem 1rem;
  background: #121827a8;
  border: 1px solid #2a324899;
  border-radius: 10px;
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 600ms ease;
  pointer-events: none;
}

.testimonial.active {
  opacity: 1;
  pointer-events: auto;
}

.testimonial blockquote {
  margin: 0 0 0.55rem;
  color: var(--text-mid);
  font-size: 0.85rem;
  line-height: 1.55;
  font-style: italic;
}

.testimonial figcaption {
  color: var(--text-soft);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}

@media (max-width: 640px) {
  body:not(.install-page) {
    row-gap: 0.85rem;
    padding: 0.75rem 0.9rem 0.85rem;
  }

  main {
    margin-top: 0;
  }

  body:not(.install-page) h1 {
    font-size: clamp(3.25rem, 14vw, 5.4rem);
    letter-spacing: clamp(0.055em, 1.05vw, 0.1em);
  }

  body:not(.install-page) main::before {
    top: 58%;
    width: min(100%, 24rem);
    height: 6.6rem;
    filter: blur(18px);
  }

  .top-links {
    gap: 0.72rem;
  }

  .top-nav-link {
    font-size: 0.88rem;
  }

  .box {
    padding: 0.85rem 0.95rem;
    gap: 0.65rem;
  }

  .url {
    font-size: 1rem;
  }

  .howto-title {
    font-size: 0.68rem;
  }

  .howto-steps {
    font-size: 0.86rem;
  }

  .install-main .starter-prompt {
    font-size: 0.73rem;
    padding: 0.55rem 0.62rem;
  }

  .note {
    font-size: 0.88rem;
  }

  #version {
    font-size: 0.78rem;
  }

  body.install-page {
    padding: 1rem 0.9rem 2.25rem;
  }

  .install-main {
    margin-top: 3.5rem;
  }

  .prices-main {
    margin-top: 2.9rem;
  }

  .prices-lede {
    font-size: 0.96rem;
  }

  .pricing-grid,
  .pricing-steps {
    grid-template-columns: 1fr;
  }

  .pricing-card,
  .pricing-flow,
  .pricing-step {
    border-radius: 12px;
  }

  .pricing-flow {
    padding: 1rem;
  }

  .pricing-prompt code {
    font-size: 0.84rem;
  }

  .pricing-link {
    width: 100%;
  }

  .testimonials {
    width: min(calc(100% - 4rem), 23rem);
    grid-template-columns: 1fr;
  }

  .toast {
    max-width: calc(100vw - 1.5rem);
    white-space: normal;
    text-align: center;
  }

  .cli-strip {
    gap: 0.45rem;
  }

  .cli-links {
    gap: 1rem 1.6rem;
  }

  .cli-intro {
    font-size: 0.72rem;
    white-space: normal;
    width: min(100% - 2rem, 24rem);
  }

  .cli-logo {
    height: 1.62rem;
    width: auto;
    max-width: 6.46rem;
    flex-basis: auto;
  }

  .cli-logo--claude,
  .cli-logo--opencode {
    height: 1.62rem;
  }

  .cli-logo--claude {
    height: 2.61rem;
    max-width: 7.43rem;
  }

  .cli-logo--gemini {
    height: 1.53rem;
  }

  .cli-logo--codex {
    height: 1.45rem;
  }
}

@media (max-height: 620px) {
  body:not(.install-page) {
    row-gap: clamp(0.65rem, 1.8svh, 1rem);
    padding-top: clamp(0.65rem, 1.9svh, 1rem);
    padding-bottom: 0.7rem;
  }

  body:not(.install-page) main::before {
    top: 54%;
    width: min(100%, 30rem);
    height: 6rem;
    filter: blur(16px);
  }

  body:not(.install-page) .box {
    margin: 0.95rem auto 0.8rem;
  }

  body:not(.install-page) .cli-links {
    gap: 0.8rem 1.3rem;
  }

  body:not(.install-page) .cli-intro {
    font-size: 0.74rem;
    white-space: normal;
  }

  body:not(.install-page) .cli-logo {
    height: 1.62rem;
    max-width: 6.5rem;
  }

  body:not(.install-page) .cli-logo--claude,
  body:not(.install-page) .cli-logo--opencode {
    height: 1.62rem;
  }

  body:not(.install-page) .cli-logo--claude {
    height: 2.55rem;
    max-width: 7.2rem;
  }

  body:not(.install-page) .cli-logo--gemini {
    height: 1.5rem;
  }

  body:not(.install-page) .cli-logo--codex {
    height: 1.44rem;
  }

  body:not(.install-page) .site-footer {
    padding-top: 0.1rem;
  }

  body:not(.install-page) .cli-strip {
    margin-top: 0.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  main,
  .cli-strip {
    animation: none;
  }
}
