:root {
  color-scheme: dark;
  --bg: #0f0f12;
  --bg-deep: #0a0a0c;
  --surface: #18181e;
  --surface-raised: #1e1e26;
  --surface-soft: #23232c;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.15);
  --ink: #f6f5f8;
  --soft: #d7d4dd;
  --muted: #aaa5b1;
  --dim: #918b99;
  --violet: #c4a9ff;
  --violet-strong: #9d72ff;
  --violet-deep: #6d45bc;
  --green: #9dd5b5;
  --pink: #f2a5c8;
  --danger: #ff9b9b;
  --mono: "DM Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  --sans: "Manrope", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius: 22px;
  --radius-sm: 14px;
  --shell: 1180px;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% -10%, rgba(157, 114, 255, 0.11), transparent 31rem),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.14;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000, transparent 62%);
}

::selection { color: var(--bg-deep); background: var(--violet); }

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, summary { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
pre { margin: 0; }
code { font-family: var(--mono); }

:focus-visible {
  outline: 3px solid rgba(196, 169, 255, 0.75);
  outline-offset: 4px;
}

.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.shell { width: min(calc(100% - 40px), var(--shell)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: rgba(15, 15, 18, 0.82);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand img { width: 153px; height: auto; }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links > a:not(.button) { padding: 10px 13px; color: var(--muted); font-size: 14px; font-weight: 600; }
.nav-links > a:not(.button):hover, .nav-links > a[aria-current="page"] { color: var(--ink); }

.mobile-menu { display: none; position: relative; }
.mobile-menu summary {
  display: grid;
  width: 46px;
  height: 46px;
  cursor: pointer;
  list-style: none;
  place-content: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
}
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu summary span { display: block; width: 18px; height: 1.5px; background: var(--ink); }
.mobile-menu-panel {
  position: absolute;
  top: 56px;
  right: 0;
  display: grid;
  width: min(280px, calc(100vw - 40px));
  gap: 5px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #19191f;
  box-shadow: var(--shadow);
}
.mobile-menu-panel a { padding: 12px 14px; border-radius: 11px; color: var(--soft); font-size: 14px; font-weight: 650; }
.mobile-menu-panel a:hover { background: var(--surface-soft); color: var(--ink); }
.dashboard-nav-actions { display: flex; align-items: center; gap: 8px; }

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 22px;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 750;
  line-height: 1;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button:disabled { cursor: wait; opacity: .62; transform: none; }
.button-small { min-height: 42px; padding-inline: 17px; font-size: 13px; }
.button-wide { width: 100%; }
.button-primary { background: var(--violet); color: #151019; }
.button-primary:hover { background: #d0bbff; }
.button-quiet { border-color: var(--line); background: var(--surface); color: var(--ink); }
.button-quiet:hover { border-color: var(--line-strong); background: var(--surface-raised); }
.button-danger { border-color: rgba(255, 155, 155, .26); background: rgba(255, 155, 155, .1); color: var(--danger); }
.button-discord { color: var(--ink); }
.button-discord svg { width: 20px; fill: currentColor; }
.external-arrow { color: var(--dim); }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--soft); font-weight: 700; }
.text-link:hover { color: var(--violet); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .12em;
  line-height: 1.4;
  text-transform: uppercase;
}
.pulse, .status-dot, .endpoint-orb { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(157, 213, 181, .1); }

.announcement-bar {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
}
.announcement-bar strong { color: var(--green); font-weight: 500; }

.hero {
  display: flex;
  min-height: 680px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-block: 92px 70px;
  text-align: center;
}
.hero-copy { max-width: 940px; }
.hero .eyebrow { justify-content: center; }
.hero h1, .docs-hero h1, .status-hero h1, .auth-intro h1, .checkout-intro h1, .key-reveal-screen h1 {
  margin: 0;
  font-size: clamp(54px, 8vw, 92px);
  font-weight: 800;
  letter-spacing: -.065em;
  line-height: .98;
}
.hero h1 span, .docs-hero h1 span, .status-hero h1 span, .auth-intro h1 span, .checkout-intro h1 span, .key-reveal-screen h1 span { color: var(--violet); }
.hero-lede { max-width: 680px; margin: 27px auto 0; color: var(--soft); font-size: clamp(17px, 2vw, 20px); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }
.hero-actions .button { min-width: 184px; }
.trust-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 16px; margin-top: 30px; color: var(--muted); font-family: var(--mono); font-size: 11px; }
.trust-row span { display: inline-flex; align-items: center; gap: 8px; }
.trust-row span::before { color: var(--green); content: "✓"; }

.hero-panel {
  width: min(900px, 100%);
  margin-top: 58px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #15151a;
  box-shadow: var(--shadow);
  text-align: left;
}
.code-top, .embed-head, .editor-bar, .result-top, .endpoint-console-head {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
}
.traffic { display: flex; gap: 6px; }
.traffic b { width: 8px; height: 8px; border-radius: 50%; background: #4d4d57; }
.traffic b:first-child { background: var(--pink); }
.traffic b:nth-child(2) { background: #e6ce8f; }
.traffic b:last-child { background: var(--green); }
.code-live { color: var(--green); text-transform: uppercase; }
.hero-panel pre, .code-embed pre {
  overflow: auto;
  padding: clamp(22px, 4vw, 38px);
  color: #c9c6d0;
  font-family: var(--mono);
  font-size: clamp(12px, 1.45vw, 14px);
  line-height: 1.85;
}
.hero-panel em, .code-embed em { color: var(--pink); font-style: normal; }
.hero-panel strong, .code-embed strong { color: var(--violet); font-weight: 500; }
.code-result { display: flex; gap: 10px; padding: 15px 20px; border-top: 1px solid var(--line); color: var(--muted); font-family: var(--mono); font-size: 11px; }
.code-result span { color: var(--green); }

.prompt-terminal { text-align: left; }
.prompt-terminal-body { min-height: 350px; padding: 29px 32px 25px; }
.terminal-command { display: flex; align-items: center; gap: 11px; padding-bottom: 25px; border-bottom: 1px solid var(--line); color: var(--muted); }
.terminal-command > span { color: var(--green); font-family: var(--mono); font-size: 20px; line-height: 1; }
.terminal-command code { overflow-wrap: anywhere; font-size: 12px; }
.terminal-command strong { color: var(--violet); font-weight: 500; }
.terminal-block { display: grid; grid-template-columns: 82px minmax(0, 1fr) auto; align-items: start; gap: 16px; }
.terminal-label { padding-top: 3px; color: var(--dim); font-family: var(--mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.terminal-block p { margin: 0; color: var(--soft); font-size: 15px; line-height: 1.72; }
.terminal-prompt { min-height: 90px; padding-top: 24px; }
.terminal-response { min-height: 116px; padding-top: 12px; }
.terminal-response p { color: var(--ink); }
.terminal-caret { width: 2px; height: 19px; margin-top: 3px; background: var(--violet); animation: terminal-blink 1s steps(1) infinite; }
.terminal-progress { display: flex; min-height: 34px; align-items: center; gap: 5px; margin-left: 98px; color: var(--dim); opacity: .66; }
.terminal-progress span { width: 5px; height: 5px; border-radius: 50%; background: var(--dim); }
.terminal-progress em { margin-left: 7px; font-family: var(--mono); font-size: 9px; font-style: normal; letter-spacing: .04em; }
.prompt-terminal.is-thinking .terminal-progress, .prompt-terminal.is-streaming .terminal-progress { color: var(--violet); opacity: 1; }
.prompt-terminal.is-thinking .terminal-progress span, .prompt-terminal.is-streaming .terminal-progress span { background: var(--violet); animation: terminal-dot 1s ease-in-out infinite; }
.prompt-terminal.is-thinking .terminal-progress span:nth-child(2), .prompt-terminal.is-streaming .terminal-progress span:nth-child(2) { animation-delay: .14s; }
.prompt-terminal.is-thinking .terminal-progress span:nth-child(3), .prompt-terminal.is-streaming .terminal-progress span:nth-child(3) { animation-delay: .28s; }
.terminal-meta { display: flex; min-height: 48px; align-items: center; gap: 22px; padding: 0 20px; border-top: 1px solid var(--line); color: var(--dim); font-family: var(--mono); font-size: 9px; }
.terminal-meta > span { display: inline-flex; align-items: center; gap: 7px; }
.terminal-meta > span:first-child { margin-right: auto; }
.terminal-meta i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(157, 213, 181, .08); }
.terminal-meta strong { color: var(--green); font-weight: 500; }
.terminal-meta code { color: var(--muted); }
.terminal-scenes { display: flex; gap: 7px; padding: 11px 14px; overflow-x: auto; border-top: 1px solid var(--line); }
.terminal-scenes button { min-height: 38px; flex: 0 0 auto; padding: 0 15px; cursor: pointer; border: 1px solid transparent; border-radius: 999px; background: transparent; color: var(--muted); font-family: var(--mono); font-size: 10px; }
.terminal-scenes button:hover { color: var(--ink); background: var(--surface-raised); }
.terminal-scenes button.active { border-color: rgba(196, 169, 255, .26); background: rgba(196, 169, 255, .1); color: var(--violet); }

@keyframes terminal-blink { 0%, 52% { opacity: 1; } 53%, 100% { opacity: 0; } }
@keyframes terminal-dot { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-3px); opacity: 1; } }

.proof-strip { border-block: 1px solid var(--line); background: rgba(255,255,255,.012); }
.proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.proof-grid > div { min-height: 144px; padding: 32px; border-right: 1px solid var(--line); }
.proof-grid > div:last-child { border-right: 0; }
.proof-grid strong { display: block; margin-bottom: 17px; color: var(--violet); font-family: var(--mono); font-size: 11px; }
.proof-grid span { color: var(--soft); font-size: 15px; font-weight: 600; }

.section { padding-block: 120px; }
.section-heading { max-width: 720px; margin-bottom: 48px; }
.section-heading.centered { margin-inline: auto; text-align: center; }
.section-heading.centered .eyebrow { justify-content: center; }
.section-heading h2, .plans-heading h2, .cta h2, .doc-kicker h2, .ide-section-head h2, .catalog-head h2, .docs-push h2, .account-actions h2 {
  margin: 0;
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 750;
  letter-spacing: -.05em;
  line-height: 1.05;
}
.section-heading > p:last-child, .plans-heading > p, .ide-section-head > p:last-child { max-width: 620px; margin: 20px 0 0; color: var(--muted); }

.feature-grid, .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-card, .steps article {
  position: relative;
  min-height: 310px;
  overflow: hidden;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.feature-card::after {
  position: absolute;
  right: -60px;
  bottom: -80px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196,169,255,.12), transparent 65%);
  content: "";
}
.feature-icon { display: grid; width: 48px; height: 48px; margin-bottom: 70px; place-items: center; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-raised); color: var(--violet); font-family: var(--mono); font-size: 15px; }
.feature-card h3, .steps h3, .ide-card h3, .endpoint-tile h3 { margin: 0 0 11px; font-size: 21px; letter-spacing: -.025em; }
.feature-card p, .steps p, .ide-card p, .endpoint-tile p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }

.model-cloud { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 900px; margin: 42px auto 0; }
.model-live-status { display: flex; min-height: 32px; align-items: center; justify-content: center; gap: 8px; margin-top: 30px; color: var(--dim); font-family: var(--mono); font-size: 10px; }
.model-live-status strong { color: var(--green); font-weight: 500; }
.status-dot-muted { background: var(--dim); box-shadow: none; }
.model-chip { display: inline-flex; min-height: 42px; align-items: center; gap: 9px; padding: 8px 15px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--soft); font-family: var(--mono); font-size: 11px; }
.model-chip.accent { border-color: rgba(196,169,255,.28); color: var(--violet); }
.model-chip.unavailable { border-color: rgba(242,165,200,.24); color: var(--muted); background: rgba(242,165,200,.05); }
.model-chip.unavailable small { padding: 3px 6px; border-radius: 999px; background: rgba(242,165,200,.1); color: var(--pink); font-size: 7px; letter-spacing: .04em; text-transform: uppercase; }
.model-chip-loading { color: var(--dim); }
.model-actions { margin-top: 30px; text-align: center; }

.steps article { min-height: 250px; }
.step-number { display: block; margin-bottom: 65px; color: var(--violet); font-family: var(--mono); font-size: 11px; }

.plans-section { padding-block: 120px; border-block: 1px solid var(--line); background: var(--bg-deep); }
.plans-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 42px; }
.plans-heading > p { max-width: 420px; }
.plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.plan-card { display: flex; min-height: 355px; flex-direction: column; padding: 27px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.plan-card.featured { border-color: rgba(196,169,255,.42); background: linear-gradient(180deg, rgba(196,169,255,.08), transparent 65%), var(--surface); }
.tag { align-self: flex-start; padding: 7px 10px; border-radius: 999px; background: var(--surface-soft); color: var(--muted); font-family: var(--mono); font-size: 9px; letter-spacing: .05em; text-transform: uppercase; }
.featured .tag { background: var(--violet); color: #151019; }
.plan-card h3 { margin: 25px 0 6px; font-size: 20px; }
.price { margin-bottom: 21px; font-size: 38px; font-weight: 750; letter-spacing: -.04em; }
.price span { color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: 0; }
.plan-meta { margin: 0 0 28px; color: var(--muted); font-size: 13px; line-height: 1.75; }
.plan-meta b { color: var(--soft); font-weight: 700; }
.plan-daily { display: block; margin: 0 0 15px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-raised); }
.plan-daily b, .plan-daily small { display: block; }
.plan-daily b { color: var(--violet); font-size: 15px; }
.plan-daily small { margin-top: 2px; color: var(--dim); font-family: var(--mono); font-size: 8px; letter-spacing: .04em; text-transform: uppercase; }
.plan-reset { display: block; }
.plan-card .button { width: 100%; margin-top: auto; font-size: 13px; }
.plan-note { margin: 24px 0 0; color: var(--dim); font-size: 12px; text-align: center; }
.plan-note a { color: var(--soft); text-decoration: underline; text-underline-offset: 3px; }

.cta, .docs-push {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
  margin-block: 110px;
  padding: clamp(32px, 6vw, 70px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(120deg, rgba(196,169,255,.11), transparent 55%), var(--surface);
}
.cta h2, .docs-push h2 { font-size: clamp(34px, 5vw, 54px); }

.footer { display: grid; min-height: 150px; grid-template-columns: 1fr auto auto; align-items: center; gap: 40px; border-top: 1px solid var(--line); }
.footer-brand img { width: 136px; }
.footer > div { display: flex; flex-wrap: wrap; gap: 22px; }
.footer a:not(.brand), .footer small { color: var(--muted); font-size: 12px; }
.footer a:not(.brand):hover { color: var(--ink); }

/* Docs */
.docs-shell, .status-shell, .legal-shell, .dashboard-shell { padding-top: 60px; }
.docs-hero, .status-hero { max-width: 900px; padding: 65px 0 75px; }
.docs-hero h1, .status-hero h1 { font-size: clamp(48px, 7vw, 80px); }
.docs-hero > p:last-of-type, .status-hero > p:last-of-type { max-width: 650px; margin: 24px 0 0; color: var(--soft); font-size: 18px; }
.docs-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.endpoint-rack { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.endpoint-console-head { justify-content: flex-start; }
.endpoint-console-head small { margin-left: auto; color: var(--dim); }
.endpoint-tile { padding: 27px; border-top: 1px solid var(--line); }
.endpoint-tile-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 17px; }
.endpoint-provider { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.endpoint-provider img { width: 24px; height: 24px; }
.endpoint-tile code { display: block; max-width: 100%; margin-top: 8px; overflow: auto; color: var(--violet); font-size: 12px; }
.copy-snippet, .copy-response, .reveal-key {
  min-height: 40px;
  padding: 0 14px;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-raised);
  color: var(--soft);
  font-size: 11px;
  font-weight: 700;
}
.copy-snippet:hover, .copy-response:hover, .reveal-key:hover { border-color: var(--line-strong); color: var(--ink); }
.copy-snippet.copied { color: var(--green); }
.doc-section { display: grid; grid-template-columns: .75fr 1.25fr; align-items: center; gap: 70px; padding-block: 110px; border-bottom: 1px solid var(--line); }
.doc-section.reverse { grid-template-columns: 1.25fr .75fr; }
.doc-section.reverse .doc-kicker { order: 2; }
.doc-kicker p:last-child { margin-top: 19px; color: var(--muted); }
.code-embed { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #15151a; box-shadow: var(--shadow); }
.embed-head button { min-height: 34px; }
.ide-section { padding-block: 110px 30px; }
.ide-section-head { max-width: 700px; }
.ide-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 42px; }
.ide-card { display: flex; min-height: 255px; flex-direction: column; padding: 27px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.ide-card > span { margin-bottom: 40px; color: var(--violet); font-family: var(--mono); font-size: 11px; }
.ide-card .copy-snippet { align-self: flex-start; margin-top: auto; }
.docs-push p:not(.eyebrow) { max-width: 580px; margin: 15px 0 0; color: var(--muted); }

/* Status */
.status-live { display: flex; flex-wrap: wrap; align-items: center; gap: 13px; margin-top: 30px; }
.status-live strong { font-size: 14px; }
.status-live > span:not(.status-dot) { color: var(--muted); font-family: var(--mono); font-size: 11px; }
.status-live .button { margin-left: 5px; }
.status-band { display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.status-band > div { min-height: 132px; padding: 28px; border-right: 1px solid var(--line); }
.status-band > div:last-child { border-right: 0; }
.status-band span { display: block; margin-bottom: 18px; color: var(--muted); font-family: var(--mono); font-size: 10px; text-transform: uppercase; }
.status-band strong { font-size: 19px; }
.catalog { padding-block: 110px 20px; }
.catalog-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 40px; }
.catalog-head input, .model-search input { width: min(310px, 100%); }
.catalog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.catalog-card, .catalog-model { position: relative; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.catalog-model.unavailable { border-color: rgba(242,165,200,.22); background: linear-gradient(140deg, rgba(242,165,200,.05), transparent 70%), var(--surface); }
.catalog-card span, .catalog-model span { display: block; margin-bottom: 12px; color: var(--muted); font-family: var(--mono); font-size: 9px; text-transform: uppercase; }
.catalog-card code, .catalog-model code { display: block; padding-right: 48px; overflow-wrap: anywhere; color: var(--soft); font-size: 12px; }
.catalog-card small { display: block; margin-top: 12px; color: var(--dim); }
.catalog-model .catalog-state { display: block; margin-top: 12px; color: var(--green); font-family: var(--mono); font-size: 8px; letter-spacing: .04em; text-transform: uppercase; }
.catalog-model.unavailable .catalog-state { color: var(--pink); }
.catalog-model .copy-model { position: absolute; right: 16px; bottom: 18px; }

/* Legal */
.legal-shell { max-width: 860px; padding-bottom: 90px; }
.legal-shell > h1 { max-width: 780px; margin: 0; font-size: clamp(48px, 7vw, 78px); letter-spacing: -.055em; line-height: 1; }
.legal-lede { margin: 28px 0 55px; color: var(--soft); font-size: 18px; }
.legal-shell section { padding: 30px 0; border-top: 1px solid var(--line); }
.legal-shell section h2 { margin: 0 0 10px; font-size: 20px; }
.legal-shell section p { margin: 0; color: var(--muted); }
.legal-shell section a { color: var(--violet); text-decoration: underline; text-underline-offset: 3px; }

/* Dashboard */
.dashboard-shell { padding-bottom: 90px; }
.auth-screen { display: grid; grid-template-columns: 1.15fr .85fr; gap: 16px; align-items: stretch; padding-block: 50px 70px; }
.auth-intro { grid-column: 1 / -1; max-width: 920px; padding: 35px 0 45px; }
.auth-intro h1, .checkout-intro h1, .key-reveal-screen h1 { font-size: clamp(46px, 6vw, 72px); }
.auth-intro > p:last-child, .checkout-intro > p:last-child { max-width: 680px; margin: 23px 0 0; color: var(--soft); }
.auth-card, .auth-aside, .checkout-card { padding: clamp(25px, 4vw, 40px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.auth-aside { display: flex; flex-direction: column; justify-content: flex-end; background: linear-gradient(145deg, rgba(196,169,255,.1), transparent 55%), var(--surface); }
.auth-aside h2 { margin: 18px 0 8px; }
.auth-aside p { margin: 0 0 25px; color: var(--muted); }
.aside-icon { color: var(--violet); font-size: 30px; }
label { display: block; margin: 0 0 9px; color: var(--soft); font-size: 13px; font-weight: 700; }
input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #121217;
  color: var(--ink);
  outline: 0;
}
input, select { min-height: 51px; padding: 0 15px; }
textarea { padding: 15px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #918b99; }
input:focus, textarea:focus, select:focus { border-color: rgba(196,169,255,.55); box-shadow: 0 0 0 3px rgba(196,169,255,.09); }
select { color-scheme: dark; }
select option, select optgroup { background-color: #18181e; color: #f6f5f8; }
select option:checked { background: #6d45bc; color: #fff; }
.key-input-wrap { position: relative; }
.key-input-wrap input { padding-right: 84px; }
.key-input-wrap .reveal-key { position: absolute; top: 6px; right: 6px; }
.auth-card > p, .field-help { color: var(--muted); font-size: 12px; }
.check-row { display: flex; align-items: center; gap: 10px; margin: 20px 0; cursor: pointer; }
.check-row input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.check-control { display: grid; width: 20px; height: 20px; place-items: center; border: 1px solid var(--line-strong); border-radius: 6px; background: #121217; }
.check-row input:checked + .check-control { border-color: var(--violet); background: var(--violet); }
.check-row input:checked + .check-control::after { color: #151019; content: "✓"; font-size: 13px; font-weight: 900; }
.check-copy { color: var(--muted); font-size: 12px; }
.auth-error { min-height: 20px; margin-bottom: 0; color: var(--danger) !important; }
.checkout-screen { display: grid; grid-template-columns: 1fr .8fr; gap: 55px; align-items: center; padding-block: 90px; }
.checkout-plan { padding: 18px; margin-bottom: 25px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-raised); }
.checkout-plan span, .checkout-plan small { display: block; color: var(--muted); font-size: 11px; }
.checkout-plan strong { display: block; margin: 6px 0; font-size: 20px; }
.key-reveal-screen { max-width: 850px; padding-block: 100px; }
.new-key-box { display: flex; gap: 10px; margin: 40px 0 18px; padding: 12px; border: 1px solid rgba(196,169,255,.35); border-radius: 17px; background: var(--surface); }
.new-key-box code { min-width: 0; flex: 1; overflow: auto; padding: 14px; color: var(--violet); }
.reveal-warning { color: var(--muted); }
.dash-head { position: relative; display: block; padding: 45px 0 30px; }
.dash-head h1 { margin: 0; font-size: clamp(38px, 5vw, 58px); letter-spacing: -.05em; }
.dash-head-main { width: 100%; min-width: 0; }
.dash-head .dash-subtitle { display: flex; align-items: center; justify-content: space-between; gap: 48px; width: 100%; }
.dash-head > .icon-button { position: absolute; top: 45px; right: 0; }
.dash-subtitle { margin: 8px 0 0; color: var(--muted); }
.icon-button { display: grid; width: 48px; height: 48px; cursor: pointer; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink); font-size: 19px; }
.key-banner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 17px 20px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.key-banner > div { display: flex; align-items: center; gap: 11px; }
.status-label { color: var(--soft); font-size: 13px; font-weight: 700; }
.key-banner code { color: var(--muted); font-size: 12px; }
.usage-card { display: grid; grid-template-columns: 1fr auto; gap: 22px 40px; margin-top: 16px; padding: clamp(26px, 5vw, 48px); border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(135deg, rgba(196,169,255,.1), transparent 48%), var(--surface); }
.usage-copy h2 { margin: 0; font-size: clamp(35px, 5vw, 57px); letter-spacing: -.05em; }
.usage-copy > p:last-child { color: var(--muted); }
.usage-side { text-align: right; }
.usage-side span, .usage-side small { display: block; color: var(--muted); font-size: 11px; }
.usage-side strong { display: block; margin: 7px 0; color: var(--violet); font-family: var(--mono); font-size: clamp(17px, 2vw, 24px); }
.progress-track { grid-column: 1 / -1; height: 8px; overflow: hidden; border-radius: 999px; background: var(--surface-soft); }
.progress-fill { width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--violet-strong), var(--violet)); transition: width .4s ease; }
.usage-foot { display: flex; grid-column: 1 / -1; justify-content: space-between; color: var(--muted); font-size: 11px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 12px; }
.metric-card { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.metric-card span, .metric-card small { display: block; color: var(--muted); font-size: 10px; }
.metric-card strong { display: block; margin: 13px 0 6px; overflow-wrap: anywhere; font-size: 17px; }
.healthy { color: var(--green); }
.dashboard-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 14px; margin-top: 14px; }
.panel { min-width: 0; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.panel-title { display: flex; align-items: start; justify-content: space-between; gap: 14px; margin-bottom: 25px; }
.panel-title h2 { margin: 0; font-size: 25px; }
.endpoint, .model-count { padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-family: var(--mono); font-size: 9px; }
.field-row { margin-top: 20px; }
.select-shell { position: relative; }
.select-chevron { position: absolute; top: 21px; right: 17px; width: 7px; height: 7px; pointer-events: none; border-right: 1px solid var(--muted); border-bottom: 1px solid var(--muted); transform: rotate(45deg); }
select { appearance: none; padding-right: 40px; }
.prompt-editor { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #121217; }
.prompt-editor textarea { border: 0; border-radius: 0; background: transparent; }
.editor-bar { min-height: 42px; padding-inline: 13px; }
.editor-bar i { display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: var(--green); }
.console-send { margin-top: 20px; }
.test-result { margin-top: 20px; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #121217; }
.test-result.is-success { border-color: rgba(157,213,181,.25); }
.test-result.is-error { border-color: rgba(255,155,155,.25); }
.test-result pre { max-height: 360px; overflow: auto; padding: 18px; white-space: pre-wrap; color: var(--soft); font-family: var(--mono); font-size: 12px; }
.response-state { display: flex; align-items: center; gap: 8px; }
.response-state i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
.is-loading .response-state i { background: #e6ce8f; }
.is-success .response-state i { background: var(--green); }
.is-error .response-state i { background: var(--danger); }
.model-search { margin-bottom: 15px; }
.model-search input { width: 100%; min-height: 44px; }
.models-list { display: grid; max-height: 580px; gap: 8px; overflow: auto; }
.model-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-raised); }
.model-item code { min-width: 0; overflow-wrap: anywhere; color: var(--soft); font-size: 11px; }
.copy-model { flex: 0 0 auto; cursor: pointer; border: 0; background: transparent; color: var(--muted); font-size: 11px; }
.copy-model:hover { color: var(--violet); }
.empty-note { color: var(--muted); font-size: 12px; }
.account-actions { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-top: 14px; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.account-actions h2 { font-size: 30px; }
.account-actions p:last-child { max-width: 650px; margin-bottom: 0; color: var(--muted); }
.confirm-dialog { width: min(520px, calc(100% - 30px)); padding: 0; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.confirm-dialog::backdrop { background: rgba(0,0,0,.76); backdrop-filter: blur(6px); }
.confirm-dialog form { position: relative; padding: 35px; }
.confirm-dialog h2 { margin: 0; font-size: 27px; }
.confirm-dialog p { color: var(--muted); }
.dialog-close { position: absolute; top: 18px; right: 18px; display: grid; width: 40px; height: 40px; cursor: pointer; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--surface-raised); color: var(--soft); font-size: 20px; }
.dialog-note { padding: 13px; border: 1px solid var(--line); border-radius: 11px; font-size: 12px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 25px; }
.danger-text { color: var(--danger); }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 100; max-width: min(360px, calc(100% - 40px)); padding: 13px 17px; pointer-events: none; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface-raised); color: var(--ink); font-size: 12px; opacity: 0; transform: translateY(12px); transition: opacity .2s ease, transform .2s ease; }
.toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 960px) {
  .hero { min-height: auto; padding-top: 75px; }
  .feature-grid, .steps { grid-template-columns: 1fr; }
  .feature-card { min-height: 245px; }
  .feature-icon { margin-bottom: 50px; }
  .plans-grid { grid-template-columns: repeat(2, 1fr); }
  .doc-section, .doc-section.reverse { grid-template-columns: 1fr; gap: 35px; }
  .doc-section.reverse .doc-kicker { order: 0; }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
  .auth-screen, .checkout-screen { grid-template-columns: 1fr; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .shell { width: min(calc(100% - 28px), var(--shell)); }
  .nav { min-height: 66px; }
  .brand img { width: 137px; }
  .desktop-nav { display: none; }
  .mobile-menu { display: block; }
  .announcement-bar { padding: 7px 14px; text-align: center; }
  .hero { padding-block: 65px 45px; }
  .hero h1 { font-size: clamp(47px, 14vw, 68px); }
  .hero-lede { font-size: 16px; }
  .hero-actions { flex-direction: column; align-items: stretch; width: 100%; max-width: 360px; margin-inline: auto; margin-top: 29px; }
  .trust-row { display: grid; justify-content: start; margin-inline: auto; text-align: left; }
  .hero-panel { margin-top: 43px; border-radius: 17px; }
  .hero-panel pre { font-size: 10.5px; line-height: 1.75; }
  .prompt-terminal-body { min-height: 430px; padding: 22px 19px 18px; }
  .terminal-command { align-items: flex-start; }
  .terminal-command code { font-size: 10px; }
  .terminal-block { grid-template-columns: 1fr auto; gap: 8px; }
  .terminal-label { grid-column: 1 / -1; }
  .terminal-prompt { min-height: 132px; }
  .terminal-response { min-height: 166px; }
  .terminal-block p { font-size: 13px; line-height: 1.68; }
  .terminal-progress { margin-left: 0; }
  .terminal-meta { flex-wrap: wrap; gap: 7px 15px; padding-block: 10px; }
  .terminal-meta > span:first-child { width: 100%; margin-right: 0; }
  .terminal-scenes button { min-height: 44px; }
  .proof-grid, .status-band { grid-template-columns: 1fr; }
  .proof-grid > div, .status-band > div { min-height: 110px; border-right: 0; border-bottom: 1px solid var(--line); }
  .proof-grid > div:last-child, .status-band > div:last-child { border-bottom: 0; }
  .section, .plans-section { padding-block: 82px; }
  .plans-heading, .catalog-head { align-items: start; flex-direction: column; }
  .plans-grid, .catalog-grid, .ide-grid { grid-template-columns: 1fr; }
  .cta, .docs-push, .account-actions { align-items: flex-start; flex-direction: column; margin-block: 75px; }
  .cta .button, .docs-push .button { width: 100%; }
  .footer { grid-template-columns: 1fr; gap: 22px; padding-block: 38px; }
  .footer > div { gap: 16px; }
  .docs-shell, .status-shell, .legal-shell, .dashboard-shell { padding-top: 30px; }
  .docs-hero, .status-hero { padding: 45px 0 55px; }
  .docs-hero h1, .status-hero h1, .legal-shell > h1 { font-size: clamp(43px, 12vw, 60px); }
  .endpoint-console-head small { display: none; }
  .endpoint-tile-top { align-items: flex-start; flex-direction: column; }
  .doc-section { padding-block: 75px; }
  .code-embed pre { font-size: 10px; }
  .status-live { align-items: flex-start; flex-direction: column; }
  .status-live .button { width: 100%; margin: 7px 0 0; }
  .catalog-head input { width: 100%; }
  .auth-screen { padding-top: 20px; }
  .auth-intro h1, .checkout-intro h1, .key-reveal-screen h1 { font-size: clamp(42px, 12vw, 58px); }
  .checkout-screen { gap: 35px; padding-block: 55px; }
  .new-key-box { flex-direction: column; }
  .dash-head { padding-top: 20px; }
  .key-banner { align-items: flex-start; flex-direction: column; }
  .key-actions { width: 100%; }
  .key-actions .button { flex: 1; }
  .usage-card { grid-template-columns: 1fr; }
  .usage-side { text-align: left; }
  .progress-track, .usage-foot { grid-column: 1; }
  .metric-grid { grid-template-columns: 1fr; }
  .panel { padding: 21px; }
  .panel-title { flex-direction: column; }
  .dialog-actions { flex-direction: column-reverse; }
  .dialog-actions .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

.access-until {
  display: inline-block;
  color: var(--muted);
  font: 10px var(--mono);
  letter-spacing: .02em;
  opacity: .78;
  white-space: nowrap;
  text-align: right;
}

@media (max-width: 650px) {
  .dash-head > .icon-button { top: 20px; }
  .dash-head .dash-subtitle { align-items: flex-end; flex-direction: column; gap: 5px; }
  .access-until { align-self: flex-end; white-space: normal; line-height: 1.35; }
}
