/* Keydan AI public site. Design: docs/design-keydan.md. Self-hosted Geist (SIL OFL, assets/fonts/OFL.txt),
   no external resources, light / dark from the system setting. */

@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("/assets/fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --paper: #f6f5f2;
  --surface: #ffffff;
  --sunken: #eeede8;
  --ink: #0d0d0c;
  --ink-2: #3a3936;
  --muted: #6b6a65;
  --line: #e3e1db;
  --line-strong: #cdcac2;
  --control: #8e8b84;
  --accent: #2b45f5;
  --accent-ink: #ffffff;
  --accent-soft: rgba(43, 69, 245, 0.08);
  --ok: #14773f;
  --warn: #9a5800;
  --bad: #c0261a;
  --code-bg: #0d0d0c;
  --code-line: #262624;
  --code-text: #e9e7e1;
  --code-muted: #87857e;
  --code-key: #aeb8ff;
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius: 10px;
  --wrap: 1200px;
  --gutter: 24px;
  --section: clamp(80px, 11vw, 144px);
  --header-h: 64px;
  --font: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --ease: cubic-bezier(0.2, 0, 0, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0b0b0a;
    --surface: #131312;
    --sunken: #1a1a18;
    --ink: #edebe6;
    --ink-2: #c9c7c0;
    --muted: #8c8a84;
    --line: #252523;
    --line-strong: #383733;
    --control: #5f5d58;
    --accent: #8c9aff;
    --accent-ink: #0b0b0a;
    --accent-soft: rgba(140, 154, 255, 0.1);
    --ok: #4fcb86;
    --warn: #e8b04b;
    --bad: #ff7b6e;
    --code-bg: #111110;
    --code-line: #252523;
  }
}

/* --- base ------------------------------------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-2);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: "ss01" 1, "cv11" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
svg { flex-shrink: 0; }

h1, h2, h3, h4 { color: var(--ink); margin: 0; font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(36px, 5vw, 60px); line-height: 1.02; letter-spacing: -0.035em; }
h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.08; letter-spacing: -0.028em; }
h3 { font-size: 18px; line-height: 1.35; letter-spacing: -0.012em; }
h4 { font-size: 16px; line-height: 1.4; }
p { margin: 0; text-wrap: pretty; }
p + p { margin-top: 1em; }
strong, b { color: var(--ink); font-weight: 600; }

a { color: inherit; text-decoration-color: var(--line-strong); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: currentColor; }
main a:not([class]) { color: var(--accent); text-decoration: none; }
main a:not([class]):hover { text-decoration: underline; text-decoration-color: currentColor; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--radius-xs); }
::selection { background: var(--accent); color: var(--accent-ink); }

code, kbd, samp, pre { font-family: var(--mono); font-size: 0.9em; }
:not(pre) > code {
  padding: 0.1em 0.38em;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  background: var(--sunken);
  color: var(--ink);
  font-size: 0.86em;
  white-space: nowrap;
}

hr { border: 0; border-top: 1px solid var(--line); margin: 48px 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.small { font-size: 14px; line-height: 1.5; }
.muted { color: var(--muted); }
.center { text-align: center; }
.num, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -48px; z-index: 100; padding: 8px 12px;
  background: var(--ink); color: var(--paper); border-radius: var(--radius-sm); text-decoration: none; font-size: 14px;
}
.skip:focus { top: 12px; }
.placeholder { color: var(--muted); }
.loading { color: var(--muted); font-family: var(--mono); font-size: 13px; }

/* the old marketing kit, retired: no eyebrows on accents, no icon tiles, no glow */
.eyebrow {
  display: block; margin-bottom: 16px;
  font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--muted);
}
.hero-glow, .icon { display: none !important; }

/* --- header ----------------------------------------------------------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: 32px; }

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 16px; letter-spacing: -0.02em;
}
.brand svg { width: 22px; height: 22px; }
.mark-bg { fill: var(--ink); }
.mark-fg { fill: var(--paper); }
.mark-dot { fill: var(--accent); }

.nav { display: flex; align-items: center; gap: 4px; margin-right: auto; }
.nav a {
  padding: 6px 10px; border-radius: var(--radius-sm);
  color: var(--muted); text-decoration: none; font-size: 14px; letter-spacing: -0.005em;
  transition: color 0.15s var(--ease), background-color 0.15s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"] { background: var(--sunken); }

.header-actions { display: flex; align-items: center; gap: 8px; }
.lang {
  padding: 6px 8px; color: var(--muted); text-decoration: none;
  font-family: var(--mono); font-size: 12px; border-radius: var(--radius-sm);
}
.lang:hover { color: var(--ink); }

@media (max-width: 900px) {
  .site-header .wrap { gap: 12px; }
  .nav { display: none; }
  .header-actions { margin-left: auto; }
}

/* --- buttons ---------------------------------------------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  font: inherit; font-size: 14px; font-weight: 500; letter-spacing: -0.005em; line-height: 1;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 0.15s var(--ease), border-color 0.15s var(--ease), color 0.15s var(--ease);
}
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn-lg { height: 48px; padding: 0 22px; font-size: 15px; }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: color-mix(in srgb, var(--ink) 84%, var(--paper)); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-quiet { background: transparent; color: var(--ink-2); }
.btn-quiet:hover { color: var(--ink); background: var(--sunken); }
.btn .arrow { transition: transform 0.15s var(--ease); }
.btn:hover .arrow { transform: translateX(2px); }

/* --- sections --------------------------------------------------------------------------------------------------- */

.section { padding: var(--section) 0; border-top: 1px solid var(--line); }
.section-tight { padding: calc(var(--section) * 0.7) 0; }
.section-alt { background: transparent; }
main > .section:first-child, .hero + .section { border-top: 0; }
.section-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gutter); align-items: end; margin-bottom: 56px; }
.section-head p { color: var(--muted); max-width: 52ch; }
.section-head > :only-child { grid-column: 1 / -1; }
@media (max-width: 900px) { .section-head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 36px; } }

.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; letter-spacing: -0.01em; color: var(--ink-2); max-width: 46ch; }

.page-hero { padding: clamp(56px, 8vw, 104px) 0 clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 18ch; }
.page-hero .lead { margin-top: 20px; }

/* --- landing hero ----------------------------------------------------------------------------------------------- */

.hero { padding: clamp(64px, 9vw, 120px) 0 clamp(56px, 7vw, 96px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.hero h1 {
  font-size: clamp(44px, 7.2vw, 92px); line-height: 0.98; letter-spacing: -0.045em; max-width: 9ch;
}
.hero .lead { margin-top: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-note { margin-top: 20px; color: var(--muted); font-size: 14px; }
.facts {
  display: flex; flex-wrap: wrap; gap: 0; margin: 48px 0 0; padding: 0; list-style: none;
  border-top: 1px solid var(--line);
}
.facts li { flex: 1 1 0; min-width: 120px; padding: 16px 16px 0 0; }
.facts b { display: block; color: var(--ink); font-family: var(--mono); font-size: 22px; font-weight: 500; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.facts span { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: 12ch; }
}

/* --- code panel ------------------------------------------------------------------------------------------------- */

.code {
  position: relative; overflow: hidden;
  background: var(--code-bg); color: var(--code-text);
  border: 1px solid var(--code-line); border-radius: var(--radius);
}
.code-title {
  display: flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 56px 0 12px;
  border-bottom: 1px solid var(--code-line);
  color: var(--code-muted); font-family: var(--mono); font-size: 12px;
}
.code-title .dots { display: none; }
.code pre {
  margin: 0; padding: 18px 20px 20px; overflow-x: auto;
  font-size: 13.5px; line-height: 1.7; tab-size: 2; color: var(--code-text);
  scrollbar-width: thin; scrollbar-color: var(--code-line) transparent;
}
.code pre .k { color: var(--code-key); }
.code pre .c { color: var(--code-muted); }
.code pre .d { color: #ff9a8f; }
.code pre .a { color: #8fdcae; }
.code-big pre { font-size: 14px; }
.code .copy {
  position: absolute; top: 8px; right: 8px; height: 28px; padding: 0 10px;
  border: 1px solid var(--code-line); border-radius: var(--radius-xs);
  background: transparent; color: var(--code-muted); font: 500 12px/1 var(--mono); cursor: pointer;
}
.code .copy:hover { color: var(--code-text); border-color: var(--code-muted); }

.tabs { display: flex; gap: 2px; }
.tab {
  height: 30px; padding: 0 10px; border: 0; border-radius: var(--radius-xs);
  background: transparent; color: var(--code-muted); font: 12px/1 var(--mono); cursor: pointer;
}
.tab:hover { color: var(--code-text); }
.tab[aria-selected="true"] { background: #1f1f1d; color: var(--code-text); }
.tab-panel[hidden] { display: none; }

/* --- tables ----------------------------------------------------------------------------------------------------- */

.table-wrap { overflow-x: auto; border-top: 1px solid var(--ink); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
caption { caption-side: top; text-align: left; padding: 0 0 12px; color: var(--muted); font-size: 13px; }
.table-wrap caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
th, td { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th {
  color: var(--muted); font-weight: 400; font-size: 12px; font-family: var(--mono); white-space: nowrap;
  padding-top: 12px; padding-bottom: 12px;
}
td { color: var(--ink-2); }
th:last-child, td:last-child { padding-right: 0; }
td.num, th.num { text-align: right; white-space: nowrap; }
tbody tr { transition: background-color 0.12s var(--ease); }
tbody tr:hover { background: color-mix(in srgb, var(--sunken) 55%, transparent); }
.model-name { display: block; color: var(--ink); font-weight: 500; text-decoration: none; }
.model-id { display: block; margin-top: 2px; color: var(--muted); font-family: var(--mono); font-size: 12px; }
.desc { color: var(--muted); }
.tag {
  display: inline-block; margin: 0 4px 4px 0; padding: 1px 6px;
  border: 1px solid var(--line); border-radius: var(--radius-xs);
  color: var(--muted); font-family: var(--mono); font-size: 11px; line-height: 18px; white-space: nowrap;
}

/* --- spec list (replaces icon grids) ---------------------------------------------------------------------------- */

.spec { margin: 0; border-top: 1px solid var(--ink); }
.spec > div { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--gutter); padding: 20px 0; border-bottom: 1px solid var(--line); }
.spec dt { color: var(--ink); font-weight: 500; letter-spacing: -0.01em; }
.spec dd { margin: 0; color: var(--muted); }
@media (max-width: 700px) { .spec > div { grid-template-columns: 1fr; gap: 4px; } }

/* --- generic grids / cards (docs, pricing, old pages) ------------------------------------------------------------ */

.grid { display: grid; gap: var(--gutter); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); } }
.card, .offer, .plan {
  display: flex; flex-direction: column; gap: 12px;
  padding: 28px 0 0; border-top: 1px solid var(--ink); background: transparent;
}
.card-flat { border-top-color: var(--line); }
.card h3, .offer h3, .plan h3 { font-size: 18px; }
.card ul, .offer ul, .plan ul { margin: 4px 0 0; padding: 0; list-style: none; }
.card li, .offer li, .plan li { position: relative; padding: 6px 0 6px 18px; color: var(--muted); font-size: 15px; }
.card li::before, .offer li::before, .plan li::before { content: ""; position: absolute; left: 0; top: 0.95em; width: 8px; height: 1px; background: var(--muted); }
.card .btn, .offer .btn, .plan .btn { align-self: flex-start; margin-top: auto; }
.feature { padding: 20px 0; border-top: 1px solid var(--line); }
.feature h3 { font-size: 16px; }
.feature p { margin-top: 6px; color: var(--muted); font-size: 15px; }

.price { color: var(--ink); font-family: var(--mono); font-size: 32px; font-weight: 500; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.price small, .price-line small { color: var(--muted); font-family: var(--font); font-size: 14px; font-weight: 400; letter-spacing: 0; }
.price-line { color: var(--ink); font-family: var(--mono); font-size: 24px; font-weight: 500; letter-spacing: -0.02em; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); }
.plan-multiple { color: var(--muted); font-size: 14px; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px;
  border: 1px solid var(--line); border-radius: 999px;
  color: var(--muted); font-family: var(--mono); font-size: 11px; line-height: 18px;
}
.badge-accent { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.note-row { color: var(--muted); font-size: 14px; }

.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; border-top: 1px solid var(--ink); }
.steps > li { counter-increment: step; display: grid; grid-template-columns: 40px 1fr; padding: 16px 0; border-bottom: 1px solid var(--line); }
.steps > li::before { content: counter(step, decimal-leading-zero); color: var(--muted); font-family: var(--mono); font-size: 13px; padding-top: 2px; }

.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; color: var(--ink); font-weight: 500; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--muted); font-family: var(--mono); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 10px; color: var(--muted); }

.cta-band {
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px;
  padding: 40px 0 0; border-top: 1px solid var(--ink);
}
.cta-band p { margin-top: 10px; color: var(--muted); }

/* --- notices ---------------------------------------------------------------------------------------------------- */

.notice {
  margin: 24px 0; padding: 14px 16px 14px 18px;
  border: 1px solid var(--line); border-left: 2px solid var(--accent); border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
  background: var(--surface); color: var(--ink-2); font-size: 14px;
}
.notice-warn { border-left-color: var(--warn); }
.draft-banner {
  padding: 10px 0; border-bottom: 1px solid var(--line);
  color: var(--warn); font-family: var(--mono); font-size: 12px; text-align: center;
}

/* --- docs ------------------------------------------------------------------------------------------------------- */

.docs { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); padding: 56px 0 var(--section); }
.docs-nav { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; font-size: 14px; }
.docs-nav h2 { margin: 24px 0 8px; color: var(--muted); font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: 0; }
.docs-nav h2:first-child { margin-top: 0; }
.docs-nav ul { margin: 0; padding: 0; list-style: none; }
.docs-nav a { display: block; padding: 5px 10px; margin-left: -10px; border-radius: var(--radius-sm); color: var(--muted); text-decoration: none; }
.docs-nav a:hover { color: var(--ink); }
.docs-nav a[aria-current="page"] { color: var(--ink); background: var(--sunken); }
@media (max-width: 900px) {
  .docs { grid-template-columns: 1fr; padding-top: 24px; }
  .docs-nav { position: static; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
}

.doc { max-width: 76ch; }
.doc h1 { font-size: clamp(32px, 4vw, 48px); margin-bottom: 16px; }
.doc h2 { font-size: 24px; letter-spacing: -0.02em; margin: 56px 0 14px; padding-top: 8px; }
.doc h3 { margin: 32px 0 10px; }
.doc p, .doc ul, .doc ol { margin: 0 0 16px; }
.doc ul, .doc ol { padding-left: 20px; }
.doc li { margin: 4px 0; }
.doc li::marker { color: var(--muted); }
.doc .code, .doc .table-wrap { margin: 20px 0 24px; }
.doc .lead { max-width: none; }
.doc-pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); }
.doc-pager a { display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: var(--ink); font-weight: 500; }
.doc-pager .next { margin-left: auto; text-align: right; }

.legal { max-width: 72ch; padding: 48px 0 var(--section); }
.legal h2 { font-size: 22px; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--ink-2); }

/* --- status ----------------------------------------------------------------------------------------------------- */

.status-banner { display: flex; align-items: center; gap: 14px; padding: 24px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.status-banner h2 { font-size: 24px; }
.status-banner p { color: var(--muted); font-size: 14px; }
.status-list { margin: 0; padding: 0; list-style: none; }
.status-list li, .svc { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.status-meta { margin-top: 16px; color: var(--muted); font-family: var(--mono); font-size: 12px; }
.state { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; }
.state-operational .dot, .dot.state-operational { background: var(--ok); }
.state-degraded .dot, .dot.state-degraded { background: var(--warn); }
.state-down .dot, .dot.state-down { background: var(--bad); }
.state-unknown .dot, .dot.state-unknown { background: var(--line-strong); }

.not-found { padding: var(--section) 0; }
.not-found h1 { font-size: clamp(44px, 7vw, 88px); letter-spacing: -0.045em; }

/* --- footer ----------------------------------------------------------------------------------------------------- */

.site-footer { padding: 64px 0 40px; border-top: 1px solid var(--line); font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 4fr) repeat(4, minmax(0, 2fr)); gap: var(--gutter); }
.footer-grid h2 { margin: 0 0 12px; color: var(--muted); font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: 0; }
.footer-grid ul { margin: 0; padding: 0; list-style: none; }
.footer-grid li { margin: 0 0 8px; }
.footer-grid a { color: var(--ink-2); text-decoration: none; }
.footer-grid a:hover { color: var(--ink); }
.footer-about p { margin-top: 14px; max-width: 32ch; color: var(--muted); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-family: var(--mono); font-size: 12px; }
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-about { grid-column: 1 / -1; }
}

/* --- motion ----------------------------------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .site-footer, .docs-nav, .copy { display: none; }
  body { background: #fff; color: #000; }
}

.model-id { border: 0 !important; background: none !important; padding: 0 !important; white-space: normal !important; }

/* --- landing compositions --------------------------------------------------------------------------------------- */

.hero-title {
  font-size: clamp(48px, 8.6vw, 132px); line-height: 0.94; letter-spacing: -0.05em; max-width: none;
  font-weight: 600;
}
.hero .hero-grid { margin-top: clamp(40px, 5vw, 72px); align-items: start; }
.hero .lead { margin-top: 0; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.split .lead { margin-top: 20px; color: var(--muted); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.hero-code pre { min-height: 248px; }
.compare th[scope="row"] { color: var(--ink); font-family: var(--font); font-size: 14px; font-weight: 500; white-space: normal; width: 22%; }
.compare thead th { color: var(--ink); font-family: var(--font); font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.compare td { width: 26%; padding-right: 24px; }
.compare .row-actions td, .compare .row-actions th { border-bottom: 0; padding-top: 20px; }
.compare tbody tr:hover { background: transparent; }
#home-models th[scope="row"] { width: 30%; }
.section-head h2 { max-width: 14ch; }
.hero .hero-title { max-width: none; }
:root { --section: clamp(72px, 9vw, 120px); }

/* --- page fixes after the first QA pass ---------------------------------------------------------------------------- */

main .docs-nav a { color: var(--muted); text-decoration: none; }
main .docs-nav a:hover, main .docs-nav a[aria-current="page"] { color: var(--ink); text-decoration: none; }
.section > .wrap > h2 + p, .section > .wrap > h2 + .lead { margin-top: 14px; color: var(--muted); max-width: 60ch; }
.section > .wrap > h2 { max-width: 20ch; }
.plans { margin-top: 48px; }
.plan .price { margin-top: 4px; }
.plan dl { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 16px; margin: 8px 0 0; font-size: 14px; }
.plan dt { padding: 10px 0; border-top: 1px solid var(--line); color: var(--muted); }
.plan dd { margin: 0; padding: 10px 0; border-top: 1px solid var(--line); color: var(--ink); font-family: var(--mono); font-size: 13px; text-align: right; white-space: nowrap; }
.plan ul { margin-top: 8px; }
.plan .btn { margin-top: 16px; }
.card-accent { border-top-color: var(--accent); }
.facts li { min-width: 96px; }
@media (max-width: 600px) { .facts b { font-size: 19px; } .facts span { font-size: 12px; } }

.timeline { margin: 32px 0 28px; max-width: 760px; overflow-x: auto; }
.timeline svg { width: 100%; min-width: 560px; height: auto; }
.timeline .tl-axis { stroke: var(--line-strong); stroke-width: 1; }
.timeline .tl-win { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 1; }
.timeline .tl-idle { fill: none; stroke: var(--line-strong); stroke-width: 1; stroke-dasharray: 3 4; }
.timeline .tl-req { fill: var(--ink); }
.timeline text { fill: var(--muted); font: 12px var(--mono); }
.timeline .tl-strong { fill: var(--ink); font: 500 13px var(--font); letter-spacing: -0.01em; }
.timeline figcaption { margin-top: 10px; color: var(--muted); font-size: 13px; }
.section-tight > .wrap > h2 + p, .section-tight > .wrap > h2 + .lead { margin-top: 14px; color: var(--muted); max-width: 64ch; }
.section-tight > .wrap > h2 { max-width: 22ch; }
.plan dl { gap: 0; }
.plan dd { padding-left: 16px; }
.status-list li { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; gap: 16px; align-items: center; justify-content: initial; }
.status-list .svc { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: flex-start; gap: 12px; padding: 0; border: 0; }
.status-list .svc strong { font-weight: 500; }
.status-list .svc code { font-size: 12px; }
.status-list .state { justify-self: end; text-align: right; }
.status-banner .dot { width: 10px; height: 10px; }
@media (max-width: 600px) { .status-list li { grid-template-columns: 8px minmax(0, 1fr); } .status-list .state { grid-column: 2; justify-self: start; text-align: left; } }
.doc-pager a span { color: var(--muted); font-family: var(--mono); font-size: 12px; font-weight: 400; }
.steps > li > * { grid-column: 2; }
.steps > li::before { grid-column: 1; grid-row: 1 / span 30; }
.steps > li > h2 { font-size: 22px; letter-spacing: -0.02em; margin-bottom: 8px; }
.steps > li > p, .steps > li > ul { margin: 0 0 12px; color: var(--ink-2); }
.steps > li > .code { margin: 8px 0 16px; }
#agent ~ .code pre { white-space: pre-wrap; }
.steps > li ul { margin: 4px 0 12px; padding-inline-start: 20px; }
.steps > li ul li { margin: 4px 0; color: var(--ink-2); }
.steps > li > h2 { margin-top: 0 !important; padding-top: 0; }

/* --- site v4 (22.11.2026): the product is the evidence ----------------------------------------------------------------
   Paper, ink and one ultramarine signal. Real dashboard screens, a working request console, technical drawings that
   explain a mechanism. No glow, no particles, no decoration without a job (docs/design-keydan.md). */

:root { --ease-out: cubic-bezier(0.21, 0.6, 0.35, 1); --frame: 12px; }

/* header: the Developers menu and the mobile menu */
.nav-group { position: relative; }
.nav-trigger {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border: 0; border-radius: var(--radius-sm);
  background: transparent; color: var(--muted); font: inherit; font-size: 14px; letter-spacing: -0.005em; cursor: pointer;
  transition: color 0.15s var(--ease);
}
.nav-trigger::after { content: ""; width: 5px; height: 5px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.nav-trigger:hover, .nav-trigger[aria-expanded="true"], .nav-group.is-current .nav-trigger { color: var(--ink); }
.nav-menu {
  position: absolute; z-index: 60; top: calc(100% + 10px); left: -8px; display: none; width: 320px; padding: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 16px 40px -20px rgba(13, 13, 12, 0.28);
}
.nav-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav-trigger[aria-expanded="true"] + .nav-menu { display: block; }
@media (hover: hover) and (min-width: 901px) { .nav-group:hover .nav-menu { display: block; } }
.nav .nav-menu a { display: block; padding: 10px 12px; border-radius: var(--radius-sm); background: transparent; }
.nav-menu a b { display: block; color: var(--ink); font-weight: 500; font-size: 14px; }
.nav-menu a span { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; }
.nav .nav-menu a:hover, .nav .nav-menu a[aria-current="page"] { background: var(--sunken); }
.nav-toggle {
  display: none; flex-direction: column; align-items: center; justify-content: center; gap: 5px; width: 36px; height: 36px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: transparent; cursor: pointer;
}
.nav-toggle span { display: block; width: 16px; height: 1.5px; background: var(--ink); transition: transform 0.2s var(--ease); }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .header-actions .btn-quiet { display: none; }
  html.nav-open .nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 49; display: flex; flex-direction: column; align-items: stretch; gap: 0;
    margin: 0; padding: 8px var(--gutter) 40px; overflow-y: auto; background: var(--paper);
  }
  html.nav-open { overflow: hidden; }
  html.nav-open .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--paper); }
  html.nav-open .header-actions .btn-quiet { display: inline-flex; }
  html.nav-open .header-actions .lang { display: none; }
  html.nav-open .nav > a, html.nav-open .nav-trigger {
    width: 100%; padding: 16px 0; border-radius: 0; border-bottom: 1px solid var(--line); background: transparent;
    color: var(--ink); font-size: 20px; text-align: left;
  }
  html.nav-open .nav-trigger::after { display: none; }
  html.nav-open .nav-menu { position: static; display: block; width: auto; padding: 4px 0 8px; border: 0; box-shadow: none; background: transparent; }
  html.nav-open .nav .nav-menu a { padding: 10px 0; }
}

/* type */
.h-display { font-size: clamp(40px, 4.3vw, 70px); line-height: 1; letter-spacing: -0.042em; font-weight: 600; color: var(--ink); }
.td text { paint-order: stroke; stroke: var(--surface); stroke-width: 3px; stroke-linejoin: round; }
.td-node text, .td-mark text { stroke: none; }
.h-page { font-size: clamp(38px, 4.8vw, 68px); line-height: 1.02; letter-spacing: -0.04em; font-weight: 600; color: var(--ink); max-width: 20ch; }
.more {
  display: inline-block; margin-top: 28px; padding-bottom: 2px; color: var(--ink); font-size: 15px; text-decoration: none;
  border-bottom: 1px solid var(--line-strong); transition: color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.more:hover { color: var(--accent); border-color: var(--accent); }

/* hero */
.hero4 { padding: clamp(48px, 7vw, 104px) 0 clamp(64px, 8vw, 112px); }
.hero4-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.hero4 .lead { margin-top: 28px; }
.live-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 48px 0 0; padding-top: 18px; border-top: 1px solid var(--ink); }
.live-facts dt { color: var(--muted); font-size: 13px; line-height: 1.4; }
.live-facts dd { margin: 6px 0 0; color: var(--ink); font-family: var(--mono); font-size: 26px; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
@media (max-width: 1000px) { .hero4-grid { grid-template-columns: minmax(0, 1fr); } }

/* the request console */
.console {
  margin: 0; min-width: 0; overflow: hidden; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--frame);
  box-shadow: 0 1px 2px rgba(13, 13, 12, 0.05), 0 32px 64px -44px rgba(13, 13, 12, 0.35);
}
.console-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.console-ep { padding: 0; background: none; border: 0; color: var(--muted); font-family: var(--mono); font-size: 12px; }
.seg { display: inline-flex; gap: 2px; padding: 2px; border: 1px solid var(--line); border-radius: 8px; }
.seg-b { height: 28px; padding: 0 10px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; }
.seg-b:hover { color: var(--ink); }
.seg-b[aria-pressed="true"] { background: var(--sunken); color: var(--ink); }
.console-models { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px; border-bottom: 1px solid var(--line); }
.chip {
  height: 28px; padding: 0 11px; border: 1px solid var(--line-strong); border-radius: 999px; background: transparent;
  color: var(--ink-2); font-family: var(--mono); font-size: 12px; cursor: pointer; transition: background-color 0.15s var(--ease), color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.console pre { margin: 0; padding: 14px 16px; font-family: var(--mono); font-size: 12.5px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink-2); }
.console pre .k { color: var(--accent); }
.console pre .a { color: var(--ink); }
.console pre .n { color: var(--warn); }
.console pre .c { color: var(--muted); }
.console-req { background: color-mix(in srgb, var(--sunken) 55%, var(--surface)); }
.console-run { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; }
.console-res { min-height: 196px; border-top: 1px solid var(--line); }
.console-res .cur::after { content: ""; display: inline-block; width: 7px; height: 1em; margin-left: 1px; vertical-align: -2px; background: var(--accent); }
.console-price { margin: 0; padding: 10px 16px 14px; border-top: 1px dashed var(--line); color: var(--ink); font-family: var(--mono); font-size: 12.5px; }
.console-price:empty { display: none; }

/* sections: copy beside a drawing, a screen or code */
.split4 { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.split4-flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.split4-top { align-items: start; }
.copy4 h2 { margin-bottom: 18px; }
.copy4 .lead { max-width: 44ch; }
@media (max-width: 1000px) { .split4, .split4-flip { grid-template-columns: minmax(0, 1fr); } .split4-flip > .drawing, .split4-flip > .stack4 { order: 2; } }
.steps4 { margin: 28px 0 0; padding: 0; list-style: none; counter-reset: step4; border-top: 1px solid var(--line); }
.steps4 li { counter-increment: step4; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.steps4 li::before {
  content: counter(step4); display: grid; place-items: center; width: 22px; height: 22px; margin-top: 1px; border: 1px solid var(--ink); border-radius: 50%;
  color: var(--ink); font-family: var(--mono); font-size: 11px;
}
.steps4-big li { padding: 20px 0; font-size: 17px; }
.rows4 { margin: 28px 0 0; border-top: 1px solid var(--line); }
.rows4 div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.rows4 dt { color: var(--ink); font-weight: 500; font-size: 15px; }
.rows4 dd { margin: 4px 0 0; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.stack4 { display: grid; gap: 16px; min-width: 0; }
.code-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; min-width: 0; }
@media (max-width: 700px) { .code-pair { grid-template-columns: minmax(0, 1fr); } }
.agent-code { min-width: 0; }
.agent-code .code pre, .code-pair pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12.5px; }

/* technical drawings */
.drawing { margin: 0; min-width: 0; padding: clamp(16px, 2.6vw, 30px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--frame); }
.drawing-wide { max-width: 860px; }
@media (max-width: 700px) { .drawing { overflow-x: auto; -webkit-overflow-scrolling: touch; } .drawing .td { min-width: 600px; } }
.td { display: block; width: 100%; height: auto; overflow: visible; }
.td-line { fill: none; stroke: var(--ink-2); stroke-width: 1.25; }
.td-sig { stroke: var(--accent); stroke-width: 2; }
.td-busy { stroke: var(--bad); stroke-dasharray: 4 4; }
.td-dash { stroke: var(--control); stroke-dasharray: 3 5; }
.td-node rect { fill: var(--paper); stroke: var(--ink-2); stroke-width: 1; }
.td-hub rect { fill: var(--ink); stroke: var(--ink); }
.td-hub .td-t, .td-hub .td-s { fill: var(--paper); }
.td-ok rect { stroke: var(--accent); stroke-width: 1.5; }
.td-bad rect { stroke: var(--bad); }
.td-t { fill: var(--ink); font-family: var(--font); font-size: 13px; font-weight: 500; text-anchor: middle; }
.td-mono { font-family: var(--mono); font-size: 12px; }
.td-s { fill: var(--muted); font-family: var(--font); font-size: 11px; text-anchor: middle; }
.td-ok .td-s { fill: var(--ok); }
.td-bad .td-s { fill: var(--bad); }
.td-a { fill: var(--muted); font-family: var(--font); font-size: 12px; }
.td-c { text-anchor: middle; }
.td-bad-t { fill: var(--bad); }
.td-mark circle { fill: var(--surface); stroke: var(--ink); stroke-width: 1; }
.td-mark text { fill: var(--ink); font-family: var(--mono); font-size: 11px; font-weight: 500; text-anchor: middle; }
.td-bar { fill: var(--sunken); stroke: var(--line-strong); }
.td-hit { fill: var(--accent-soft); stroke: var(--accent); }
.td-in { fill: var(--ink-2); font-family: var(--font); font-size: 12px; text-anchor: middle; }
.td-in-sig { fill: var(--accent); }

/* models: live list with filters */
.mfilter { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.mlist { border-top: 1px solid var(--ink); }
.mrow { display: grid; grid-template-columns: minmax(0, 3fr) repeat(3, minmax(0, 1fr)) minmax(0, 3fr); gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.mrow[hidden] { display: none; }
.mrow-h { padding: 10px 0; color: var(--muted); font-family: var(--mono); font-size: 12px; }
.mname b { display: block; color: var(--ink); font-weight: 500; }
.mname code { display: inline-block; margin-top: 2px; padding: 0; background: none; border: 0; color: var(--muted); font-family: var(--mono); font-size: 12px; }
.mnum { color: var(--ink); font-family: var(--mono); font-size: 15px; text-align: right; font-variant-numeric: tabular-nums; }
.mrow-h .mnum { color: var(--muted); font-size: 12px; }
.mcaps { display: flex; flex-wrap: wrap; gap: 6px; }
@media (max-width: 800px) {
  .mrow { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mname, .mcaps { grid-column: 1 / -1; }
  .mrow-h { display: none; }
  .mnum { text-align: left; }
}

/* product screens */
.tabs4 { gap: 4px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.tabs4 .tab {
  height: 42px; margin-bottom: -1px; padding: 0 14px; border: 0; border-bottom: 2px solid transparent; border-radius: 0;
  background: transparent; color: var(--muted); font-family: var(--font); font-size: 14px; font-weight: 500;
}
.tabs4 .tab:hover { color: var(--ink); }
.tabs4 .tab[aria-selected="true"] { background: transparent; color: var(--ink); border-bottom-color: var(--ink); }
.shot-frame { margin: 0; min-width: 0; }
.shot { overflow: hidden; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--frame); box-shadow: 0 36px 72px -48px rgba(13, 13, 12, 0.38); }
.shot img { display: block; width: 100%; height: auto; }
.shot-frame figcaption { margin-top: 12px; color: var(--muted); font-size: 13px; }

/* tables and questions */
.terms4 th[scope="row"] { width: 36%; color: var(--ink); font-family: var(--font); font-size: 15px; font-weight: 500; white-space: normal; }
.terms4 td { font-size: 15px; }
.terms4 code { padding: 0; background: none; border: 0; color: var(--ink); font-size: 14px; }
.faq4-list { border-top: 1px solid var(--line); }
.faq4 { border-bottom: 1px solid var(--line); }
.faq4 summary { position: relative; padding: 20px 40px 20px 0; color: var(--ink); font-size: 17px; font-weight: 500; list-style: none; cursor: pointer; }
.faq4 summary::-webkit-details-marker { display: none; }
.faq4 summary::after { content: "+"; position: absolute; right: 4px; top: 18px; color: var(--muted); font-family: var(--mono); font-size: 18px; transition: transform 0.2s var(--ease); }
.faq4[open] summary::after { transform: rotate(45deg); }
.faq4 p { margin: 0 0 20px; max-width: 64ch; color: var(--muted); }

/* page heads, contents, the closing section */
.page4 { padding: clamp(56px, 8vw, 112px) 0 clamp(48px, 6vw, 80px); border-bottom: 1px solid var(--line); }
.page4 .lead { margin-top: 24px; max-width: 58ch; }
.toc4 { margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--line); }
.toc4 ul { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0; list-style: none; }
.toc4 a { color: var(--ink-2); font-size: 14px; text-decoration: none; }
.toc4 a:hover { color: var(--accent); }
.end4 { padding: clamp(80px, 11vw, 144px) 0; border-top: 1px solid var(--line); }
.end4 h2 { max-width: 20ch; font-size: clamp(32px, 4.4vw, 60px); letter-spacing: -0.035em; line-height: 1.04; }
.end4 .hero-actions { margin-top: 32px; }

/* footer status */
.footer-status { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); text-decoration: none; }
.footer-status:hover { color: var(--ink); }
.footer-status.state-operational .dot { background: var(--ok); }
.footer-status.state-degraded .dot { background: var(--warn); }
.footer-status.state-down .dot { background: var(--bad); }

/* motion: fx.js hides only what it is about to show (html.fx), never content by default */
.kd-line { display: block; }
@media (prefers-reduced-motion: reduce) { .nav-toggle span, .faq4 summary::after, .chip, .more { transition: none; } }

/* --- site v5 (22.11.2026): the level of the market leaders ------------------------------------------------------------
   Manrope (OFL, with Cyrillic) for type, a cool white page, deep violet-navy stages with light, drawn product windows,
   bright data cards. Motion in fx.js. Classes only: the CSP forbids style attributes. */

@font-face { font-family: "Manrope"; src: url("/assets/fonts/Manrope-Latin.woff2") format("woff2"); font-weight: 200 800; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; src: url("/assets/fonts/Manrope-LatinExt.woff2") format("woff2"); font-weight: 200 800; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Manrope"; src: url("/assets/fonts/Manrope-Cyrillic.woff2") format("woff2"); font-weight: 200 800; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; src: url("/assets/fonts/Manrope-CyrillicExt.woff2") format("woff2"); font-weight: 200 800; font-display: swap;
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }

:root {
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --paper: #fafafc; --surface: #ffffff; --sunken: #f1f1f6; --ink: #0b0b14; --ink-2: #3c3d4a; --muted: #6b6d7c;
  --line: #e9e9f0; --line-strong: #d6d6e0; --accent: #4f5bff; --accent-soft: rgba(79, 91, 255, 0.08);
  --violet: #7c5cff; --cyan: #5fd8f5; --stage: #07081a;
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #08090f; --surface: #10121b; --sunken: #171a25; --ink: #eef0f8; --ink-2: #c4c7d6; --muted: #8b8ea3;
    --line: #1f2230; --line-strong: #2c3042; --accent: #8f9bff; --accent-soft: rgba(143, 155, 255, 0.12); }
}
body { letter-spacing: -0.006em; }
h1, h2, h3 { font-weight: 700; letter-spacing: -0.035em; }

/* buttons */
.btn5 {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 10px;
  border: 1px solid transparent; font: 600 15px/1 var(--font); letter-spacing: -0.01em; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 0.2s var(--ease-out), border-color 0.2s var(--ease-out), color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}
.btn5:hover { transform: translateY(-1px); }
.btn5-sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn5-light { background: #fff; color: #0b0b14; }
.btn5-light:hover { background: #e9ebff; }
.btn5-line { border-color: rgba(255, 255, 255, 0.24); color: #fff; }
.btn5-line:hover { border-color: rgba(255, 255, 255, 0.55); }
.btn5-dark { background: var(--ink); color: var(--paper); }
.btn5-dark:hover { background: var(--accent); color: #fff; }
.btn5-line-dark { border-color: var(--line-strong); color: var(--ink); }
.btn5-line-dark:hover { border-color: var(--ink); }
.link5 { color: var(--accent); font-weight: 600; font-size: 15px; text-decoration: none; }
.link5:hover { text-decoration: underline; text-underline-offset: 4px; }

/* the dark stage shared by the hero, the product panel, the savings band and the inner page heads */
.hx5, .px5, .st5, .page4, .end4 { color-scheme: dark; --ink: #f2f3ff; --ink-2: #c3c7e0; --muted: #959ab8; --line: rgba(255, 255, 255, 0.09); --line-strong: rgba(255, 255, 255, 0.18); --surface: #10122a; --sunken: #171a36; --paper: #07081a; --accent: #9aa5ff; --accent-soft: rgba(154, 165, 255, 0.14); }

/* hero */
.hx5 {
  position: relative; overflow: hidden; margin-top: calc(-1 * var(--header-h)); padding: calc(var(--header-h) + clamp(56px, 8vh, 104px)) 0 clamp(72px, 10vh, 120px);
  background:
    radial-gradient(42% 52% at 74% 46%, rgba(108, 84, 255, 0.42), transparent 70%),
    radial-gradient(36% 40% at 92% 12%, rgba(70, 120, 255, 0.22), transparent 70%),
    radial-gradient(60% 50% at 20% 110%, rgba(84, 60, 255, 0.30), transparent 70%),
    var(--stage);
  color: var(--ink-2);
}
.hx5::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(160, 150, 255, 0.5), transparent); }
.hx5-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.hx5-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 5px 14px 5px 5px; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 999px;
  background: rgba(255, 255, 255, 0.04); color: #dfe2ff; font-size: 13.5px; font-weight: 500; text-decoration: none;
}
.hx5-badge b { padding: 3px 9px; border-radius: 999px; background: linear-gradient(90deg, #5b6cff, #8a5cff); color: #fff; font-size: 12px; font-weight: 700; }
.hx5-badge:hover { border-color: rgba(255, 255, 255, 0.3); }
.hx5-title { margin-top: 28px; color: #fff; font-size: clamp(54px, 6.6vw, 108px); font-weight: 800; line-height: 0.95; letter-spacing: -0.055em; }
.grad { background: linear-gradient(92deg, #a6b0ff 0%, #b994ff 42%, #74e2ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hx5-lead { max-width: 34em; margin-top: 26px; color: #b9bddb; font-size: clamp(17px, 1.35vw, 20px); line-height: 1.55; }
.hx5-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hx5-stats { display: grid; grid-template-columns: repeat(3, minmax(0, auto)); justify-content: start; gap: 40px; margin: 52px 0 0; }
.hx5-stats div { display: flex; flex-direction: column-reverse; }
.hx5-stats dd { margin: 0; color: #fff; font-size: 30px; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.hx5-stats dt { margin-top: 4px; color: #8f94b4; font-size: 13px; }
@media (max-width: 1000px) { .hx5-grid { grid-template-columns: minmax(0, 1fr); } .hx5-stats { gap: 24px; } }

/* the orbit of models around the glass key */
.orbit { position: relative; width: 100%; aspect-ratio: 1 / 1; max-width: 640px; justify-self: center; }
.orbit-gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.orbit-core { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.core-glass {
  position: relative; display: grid; place-items: center; width: 132px; height: 132px; border-radius: 34px;
  background: linear-gradient(150deg, #8d97ff 0%, #6a4dff 52%, #3a24c9 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 -18px 34px rgba(20, 8, 90, 0.45), 0 30px 90px rgba(98, 76, 255, 0.55), 0 0 0 10px rgba(140, 130, 255, 0.08);
}
.core-glass::before { content: ""; position: absolute; inset: 6px 6px 50% 6px; border-radius: 28px 28px 50% 50%; background: linear-gradient(180deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0)); }
.core-glass svg { position: relative; width: 64px; height: 64px; fill: #fff; }
.core-glass svg circle { fill: #b9f2ff; }
.orbit-labels { display: none; }
.orbit.on .orbit-labels { display: block; }
.orbit-labels span {
  position: absolute; left: 0; top: 0; padding: 5px 11px; border-radius: 999px; white-space: nowrap;
  background: rgba(14, 16, 40, 0.78); border: 1px solid rgba(255, 255, 255, 0.16); color: #e7e9ff; font-family: var(--mono); font-size: 12px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.orbit-labels span.hot { border-color: rgba(120, 220, 160, 0.7); box-shadow: 0 0 24px rgba(120, 220, 160, 0.35); }
.orbit-labels span.busy { border-color: rgba(255, 120, 130, 0.7); }
@media (max-width: 1000px) { .orbit { max-width: 440px; } .core-glass { width: 104px; height: 104px; border-radius: 28px; } .core-glass svg { width: 50px; height: 50px; } }

/* product panel (tabs with drawn app windows) */
.px5 { padding: clamp(72px, 9vw, 120px) 0; background: linear-gradient(180deg, var(--stage) 0%, #0b0c24 100%); }
.px5-head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.px5-head h2 { color: #fff; font-size: clamp(32px, 3.6vw, 52px); line-height: 1.05; }
.px5-head p { margin-top: 14px; color: var(--muted); font-size: 18px; }
.px5-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 6px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255, 255, 255, 0.02); }
.px5-tab {
  height: 52px; border: 0; border-radius: 11px; background: transparent; color: #a3a8c8; font: 600 15px var(--font); cursor: pointer;
  transition: background-color 0.25s var(--ease-out), color 0.25s var(--ease-out);
}
.px5-tab:hover { color: #fff; }
.px5-tab[aria-selected="true"] { background: linear-gradient(180deg, #2a2a6a, #1d1c52); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), inset 0 -2px 0 #8f8cff; }
.px5-stage { position: relative; margin-top: 18px; }
.px5-panel {
  position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 40px; align-items: center;
  padding: clamp(24px, 3.4vw, 48px); border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(180deg, #121433 0%, #0f1029 100%);
}
.px5-panel::after { content: ""; position: absolute; left: 10%; right: 10%; bottom: -120px; height: 220px; background: radial-gradient(closest-side, rgba(124, 92, 255, 0.55), transparent); pointer-events: none; }
.px5-panel[hidden] { display: none; }
.px5-text h3 { color: #fff; font-size: 30px; line-height: 1.1; }
.px5-text p { margin: 14px 0 26px; color: var(--muted); font-size: 16px; line-height: 1.6; }
@media (max-width: 1000px) { .px5-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); } .px5-panel { grid-template-columns: minmax(0, 1fr); } }

/* the drawn app window */
.app { position: relative; z-index: 1; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.11); border-radius: 14px; background: #0b0c1f; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7); font-size: 12.5px; color: #c7cbe6; }
.app-bar { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.app-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); }
.app-bar span { margin-left: 10px; color: #7e84a8; font-family: var(--mono); font-size: 11.5px; }
.app-body { display: grid; grid-template-columns: 150px minmax(0, 1fr); min-height: 340px; }
.app-side { margin: 0; padding: 12px 8px; list-style: none; border-right: 1px solid rgba(255, 255, 255, 0.06); }
.app-side li { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 7px; color: #8a90b5; font-size: 12px; }
.app-side li.on { background: rgba(140, 150, 255, 0.12); color: #fff; }
.app-side svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.app-main { position: relative; min-width: 0; padding: 16px; }
.app .mono, .app code { font-family: var(--mono); }
.app code { padding: 0; background: none; border: 0; color: #8f96c2; font-size: 11px; }
.app code.ok { color: #6be3a2; }
.gw { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.gw-pane { border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 10px; background: #0e1026; }
.gw-h { display: flex; justify-content: space-between; gap: 8px; padding: 9px 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); color: #fff; font-weight: 600; font-size: 12px; }
.gw pre { margin: 0; padding: 12px; font-family: var(--mono); font-size: 11.5px; line-height: 1.6; white-space: pre-wrap; color: #c7cbe6; }
.gw .k { color: #9aa5ff; } .gw .a { color: #e3e6ff; } .gw .n { color: #f5c26b; }
.gw-note { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 6px 12px; border-radius: 999px; background: rgba(110, 225, 160, 0.1); color: #8ee8b8; font-family: var(--mono); font-size: 11.5px; }
.gw-note i { width: 7px; height: 7px; border-radius: 50%; background: #5ee49c; }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.kpi { padding: 12px; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 10px; background: #0e1026; }
.kpi span { display: block; color: #8a90b5; font-size: 11.5px; }
.kpi b { display: block; margin-top: 4px; color: #fff; font-family: var(--mono); font-size: 18px; font-weight: 500; }
.kpi em { margin-left: 6px; color: #5ee49c; font-style: normal; font-size: 12px; }
.chart { margin-top: 10px; padding: 12px; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 10px; background: #0e1026; }
.chart-h { margin-bottom: 8px; color: #fff; font-weight: 600; font-size: 12px; }
.bars { display: block; width: 100%; height: 110px; }
.bars rect { fill: #6b78ff; }
.tbl { margin-top: 10px; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 10px; overflow: hidden; }
.tr { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 8px 12px; border-top: 1px solid rgba(255, 255, 255, 0.06); font-family: var(--mono); font-size: 11.5px; }
.tr:first-child { border-top: 0; }
.tr.th { color: #7e84a8; font-family: var(--font); }
.keys .tr { grid-template-columns: 1.3fr 1.6fr 0.7fr 0.8fr 0.9fr; font-family: var(--font); }
.pill { justify-self: start; padding: 2px 8px; border-radius: 999px; background: rgba(110, 225, 160, 0.12); color: #8ee8b8; font-size: 11px; }
.pill.warn { background: rgba(245, 194, 107, 0.14); color: #f5c26b; }
.modal { position: absolute; right: 16px; bottom: 16px; width: 260px; padding: 16px; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 12px; background: #151838; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6); }
.modal-h { color: #fff; font-weight: 700; font-size: 13px; }
.modal label { display: block; margin-top: 12px; color: #8a90b5; font-size: 11.5px; }
.field { display: flex; align-items: center; gap: 4px; margin-top: 6px; padding: 8px 10px; border: 1px solid #6b78ff; border-radius: 8px; color: #fff; font-family: var(--mono); }
.field span, .field em { color: #8a90b5; font-style: normal; }
.modal-a { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.modal-a .b { padding: 6px 12px; border-radius: 7px; background: #fff; color: #0b0b14; font-weight: 600; font-size: 12px; }
.modal-a .b.ghost { background: transparent; color: #c7cbe6; border: 1px solid rgba(255, 255, 255, 0.16); }
.pg-prompt { padding: 10px 12px; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 10px; background: #0e1026; color: #fff; }
.pg-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.pg-col { padding: 12px; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 10px; background: #0e1026; }
.pg-h { color: #fff; font-size: 12px; }
.pg-lines { display: grid; gap: 7px; margin: 12px 0; }
.pg-lines .ln { display: block; height: 7px; border-radius: 4px; background: rgba(255, 255, 255, 0.1); }
.pg-lines .ln0 { width: 92%; } .pg-lines .ln1 { width: 76%; } .pg-lines .ln2 { width: 84%; } .pg-lines .ln3 { width: 58%; }
.pg-s { color: #8a90b5; font-size: 11px; }
@media (max-width: 700px) { .app-body { grid-template-columns: minmax(0, 1fr); } .app-side { display: none; } .gw, .pg-cols { grid-template-columns: minmax(0, 1fr); } .modal { position: static; width: auto; margin-top: 10px; } .keys .tr { grid-template-columns: repeat(3, minmax(0, 1fr)); } .keys .tr span:nth-child(2), .keys .tr span:nth-child(4) { display: none; } }

/* light sections */
.sec5 { padding: clamp(80px, 10vw, 136px) 0; }
.sec5 + .sec5 { padding-top: 0; }
.sec5-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.sec5-head h2, .fr5-copy h2, .st5-copy h2 { font-size: clamp(32px, 3.4vw, 48px); line-height: 1.06; }
.sec5-head p { margin-top: 12px; color: var(--muted); font-size: 17px; }
.mfilter5 { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip5 { height: 38px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); color: var(--ink-2); font: 600 14px var(--font); cursor: pointer; }
.chip5:hover { border-color: var(--ink); }
.chip5[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.mgrid5 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1000px) { .mgrid5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .mgrid5 { grid-template-columns: minmax(0, 1fr); } }
.mc5 {
  display: flex; flex-direction: column; gap: 16px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); text-decoration: none; color: inherit;
  box-shadow: 0 1px 2px rgba(11, 11, 20, 0.04); transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}
.mc5:hover { border-color: var(--line-strong); box-shadow: 0 16px 40px -24px rgba(40, 40, 120, 0.35); transform: translateY(-2px); }
.mc5[hidden] { display: none; }
.mc5-top { display: flex; align-items: center; gap: 12px; }
.mc5-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; color: #fff; font-weight: 800; font-size: 14px; letter-spacing: -0.02em; }
.mc5-ic.h0 { background: linear-gradient(140deg, #6b78ff, #8a4dff); } .mc5-ic.h1 { background: linear-gradient(140deg, #22c1e0, #4f6bff); }
.mc5-ic.h2 { background: linear-gradient(140deg, #19c37d, #0ea5a5); } .mc5-ic.h3 { background: linear-gradient(140deg, #ff8a4c, #ff4f7a); } .mc5-ic.h4 { background: linear-gradient(140deg, #f5b73b, #ef7d2a); }
.mc5-name b { display: block; color: var(--ink); font-size: 16px; font-weight: 700; }
.mc5-name code { padding: 0; background: none; border: 0; color: var(--muted); font-family: var(--mono); font-size: 12px; }
.mc5-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.mc5-tags span { padding: 3px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 600; }
.mc5-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.mc5-nums b { display: block; color: var(--ink); font-family: var(--mono); font-size: 16px; font-weight: 500; }
.mc5-nums span { color: var(--muted); font-size: 12px; }

/* feature rows with product cards */
.sec5-rows .wrap { display: grid; gap: clamp(88px, 11vw, 150px); }
.fr5 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.fr5-copy p { margin: 16px 0 22px; max-width: 32em; color: var(--muted); font-size: 17px; line-height: 1.6; }
@media (max-width: 1000px) { .fr5 { grid-template-columns: minmax(0, 1fr); } .fr5-flip > .card5 { order: 2; } }
.card5 { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: 0 1px 2px rgba(11, 11, 20, 0.04), 0 30px 60px -40px rgba(40, 40, 120, 0.3); }
.card5-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13.5px; }
.card5-h b { color: var(--ink); font-weight: 700; }
.card5-h code { padding: 0; background: none; border: 0; color: var(--ink-2); font-family: var(--mono); font-size: 12px; }
.card5-f { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; }
.card5-f b { color: var(--violet); font-family: var(--mono); font-size: 15px; }
.rc-body { position: relative; display: grid; grid-template-columns: 56px 1fr 190px; align-items: center; padding: 22px 18px; }
.rc-hub { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--ink); }
.rc-hub svg { width: 24px; height: 24px; fill: var(--paper); }
.rc-lines { width: 100%; height: 160px; }
.rc-lines .l { fill: none; stroke: var(--line-strong); stroke-width: 1.5; }
.rc-lines .l.ok { stroke: var(--accent); stroke-width: 2; }
.rc-lines .l.bad { stroke: #f43f5e; stroke-dasharray: 4 4; opacity: 0.7; }
.rc-rows { display: grid; gap: 12px; }
.rc-row { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; font-size: 12.5px; }
.rc-row i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); }
.rc-row em { margin-left: auto; color: var(--muted); font-style: normal; font-size: 12px; }
.rc-row.ok { border-color: var(--accent); } .rc-row.ok i { background: #10b981; } .rc-row.bad i { background: #f43f5e; } .rc-row.bad em { color: #f43f5e; }
.ut { padding-bottom: 6px; }
.ut-row { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px 18px; }
.ut-row span { color: var(--ink-2); font-size: 13px; }
.ut-via { margin-top: 4px; border-top: 1px solid var(--line); }
.ut-via span { color: var(--ink); font-weight: 700; }
.ut-strip { display: grid; grid-template-columns: repeat(32, minmax(0, 1fr)); gap: 3px; }
.ut-strip i { height: 18px; border-radius: 3px; background: #a7f3d0; }
.ut-strip i.g { background: #10b981; } .ut-strip i.r { background: #f43f5e; } .ut-strip i.l { background: #c9f5df; }
.dc .kpis { padding: 16px 18px 0; }
.dc .kpi { background: var(--sunken); border-color: transparent; }
.dc .kpi span { color: var(--muted); } .dc .kpi b { color: var(--ink); } .dc .kpi em { color: #10b981; }
.stack { display: block; width: calc(100% - 36px); height: 120px; margin: 16px 18px 0; }
.stack .s1 { fill: #4f6bff; } .stack .s2 { fill: #8b5cf6; } .stack .s3 { fill: #22d3ee; }
.legend { display: flex; gap: 16px; padding: 12px 18px 0; color: var(--muted); font-size: 12.5px; }
.lg::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: #4f6bff; }
.lg.s2::before { background: #8b5cf6; } .lg.s3::before { background: #22d3ee; }
.budget { display: flex; justify-content: space-between; padding: 16px 18px 8px; color: var(--ink-2); font-size: 13px; border-top: 1px solid var(--line); margin-top: 16px; }
.meter { height: 7px; margin: 0 18px 18px; border-radius: 4px; background: var(--sunken); overflow: hidden; }
.meter i { display: block; width: 69%; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #4f6bff, #8b5cf6); transform-origin: left center; }
.pc-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: 14px; }
.pc-row:last-child { border-bottom: 0; }
.pc .chips { display: flex; gap: 6px; } .pc .chips i { padding: 3px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-family: var(--mono); font-size: 11.5px; font-style: normal; }
.seg5 { display: inline-flex; gap: 2px; padding: 2px; border: 1px solid var(--line); border-radius: 8px; }
.seg5 i { padding: 3px 9px; border-radius: 6px; color: var(--muted); font-family: var(--mono); font-size: 12px; font-style: normal; }
.seg5 i.on { background: var(--accent-soft); color: var(--accent); }
.tog { position: relative; display: inline-block; width: 36px; height: 21px; border-radius: 11px; background: var(--line-strong); transition: background-color 0.25s var(--ease-out); }
.tog i { position: absolute; top: 3px; left: 3px; width: 15px; height: 15px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); transition: transform 0.25s var(--ease-out); }
.tog.on { background: var(--accent); } .tog.on i { transform: translateX(15px); }
.check5 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; margin: 0 0 24px; padding: 0; list-style: none; }
.check5 li { position: relative; padding-left: 24px; color: var(--ink-2); font-size: 14.5px; }
.check5 li::before { content: ""; position: absolute; left: 2px; top: 0.35em; width: 10px; height: 5px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

/* the savings band: numbered cards that stack on scroll */
.st5 { padding: clamp(88px, 11vw, 150px) 0; background: radial-gradient(60% 50% at 80% 100%, rgba(108, 84, 255, 0.28), transparent 70%), #06070f; }
.st5-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.st5-copy { position: sticky; top: 120px; }
.st5-copy h2 { color: #fff; }
.st5-copy p { margin-top: 18px; color: var(--muted); font-size: 17px; line-height: 1.6; max-width: 30em; }
.st5-cards { display: grid; gap: 24px; }
.st5-card {
  position: sticky; overflow: hidden; padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(180deg, #121429, #0d0f20); min-height: 380px;
}
.st5-card:nth-child(1) { top: 110px; } .st5-card:nth-child(2) { top: 130px; } .st5-card:nth-child(3) { top: 150px; }
.st5-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: -140px; height: 240px; background: radial-gradient(closest-side, rgba(124, 92, 255, 0.5), transparent); pointer-events: none; }
.st5-h { display: flex; justify-content: space-between; align-items: baseline; }
.st5-h h3 { color: #fff; font-size: 24px; }
.st5-h span { color: #6f74a0; font-size: 13px; }
.st5-card > p { margin-top: 10px; color: var(--muted); font-size: 15.5px; }
.st5-vis { position: relative; z-index: 1; margin-top: 24px; }
@media (max-width: 1000px) { .st5-grid { grid-template-columns: minmax(0, 1fr); } .st5-copy, .st5-card { position: static; } }
.fd { display: grid; grid-template-columns: auto 40px auto minmax(0, 1fr); align-items: center; gap: 12px; }
.fd-app, .fd-hub { padding: 12px 16px; border: 1px solid var(--line-strong); border-radius: 12px; background: #171a36; color: #fff; font-weight: 600; font-size: 13px; }
.fd-hub { background: linear-gradient(150deg, #6b78ff, #7a4dff); border-color: transparent; }
.fd-line { height: 2px; background: linear-gradient(90deg, rgba(154, 165, 255, 0.2), #9aa5ff); }
.fd-out { display: grid; gap: 10px; }
.fd-m { display: grid; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #13152e; }
.fd-m b { color: #fff; font-size: 12.5px; font-weight: 500; } .fd-m em { color: #6f74a0; font-size: 11px; font-style: normal; }
.fd-m span { display: flex; align-items: center; gap: 6px; color: #c3c7e0; font-size: 11.5px; } .fd-m span i { width: 7px; height: 7px; border-radius: 50%; }
.fd-m.bad span i { background: #f43f5e; } .fd-m.ok { border-color: rgba(154, 165, 255, 0.5); } .fd-m.ok span i { background: #34d399; }
.fc { position: relative; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #10122a; }
.fc-t { color: #fff; font-weight: 600; font-size: 13px; }
.fc svg { display: block; width: 100%; height: 130px; margin-top: 10px; }
.fc .a1 { fill: rgba(124, 92, 255, 0.55); } .fc .a2 { fill: rgba(95, 216, 245, 0.6); }
.fc-legend { display: flex; gap: 14px; margin-top: 8px; color: #8f94b4; font-size: 11.5px; }
.fc-legend span::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: #7c5cff; }
.fc-legend .l2::before { background: #5fd8f5; }
.fc-badge { position: absolute; right: 14px; top: 12px; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: 12px; background: rgba(23, 26, 54, 0.92); }
.fc-badge span { display: block; color: #a3a8c8; font-size: 11px; } .fc-badge b { color: #fff; font-size: 20px; }
.fl { display: grid; gap: 14px; }
.fl-row { display: grid; grid-template-columns: 120px minmax(0, 1fr) 60px; gap: 12px; align-items: center; color: #c3c7e0; font-size: 13px; }
.fl-bar { height: 10px; border-radius: 5px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.fl-bar i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, #5b6cff, #8a5cff); transform-origin: left center; }
.fl-bar i.w64 { width: 64%; } .fl-bar i.w31 { width: 31%; } .fl-bar i.w71 { width: 71%; }

/* plans */
.plans5 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .plans5 { grid-template-columns: minmax(0, 1fr); } }
.plan5 { display: flex; flex-direction: column; padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: 0 1px 2px rgba(11, 11, 20, 0.04); }
.plan5 h3 { font-size: 18px; }
.plan5-p { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin-top: 18px; }
.plan5-p b { color: var(--ink); font-size: 40px; font-weight: 800; letter-spacing: -0.04em; }
.plan5-p b.long { font-size: 28px; line-height: 1.2; }
.plan5-p span { color: var(--muted); font-size: 14px; }
.plan5 ul { flex: 1; margin: 22px 0 28px; padding: 0; list-style: none; display: grid; gap: 10px; align-content: start; }
.plan5 li { position: relative; padding-left: 24px; color: var(--ink-2); font-size: 14.5px; }
.plan5 li::before { content: ""; position: absolute; left: 2px; top: 0.35em; width: 10px; height: 5px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.plan5 .btn5 { width: 100%; }

/* closing panel with rings */
.end5 { padding: 0 0 clamp(88px, 11vw, 140px); }
.end5-box { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; min-height: 360px; padding: clamp(28px, 5vw, 64px);
  border: 1px solid var(--line); border-radius: 24px; background: var(--surface); }
.end5-copy { position: relative; z-index: 1; grid-column: 1; grid-row: 1; }
.end5-copy h2 { font-size: clamp(34px, 4vw, 56px); line-height: 1.02; }
.end5-copy p { margin-top: 14px; color: var(--muted); font-size: 17px; }
.end5-copy .hx5-actions { margin-top: 28px; }
.end5-rings { position: relative; grid-column: 2; grid-row: 1; justify-self: center; display: grid; place-items: center; width: 420px; height: 420px; }
.end5-rings i { position: absolute; border: 1px solid var(--line-strong); border-radius: 50%; }
.end5-rings i:nth-child(1) { inset: 0; } .end5-rings i:nth-child(2) { inset: 70px; } .end5-rings i:nth-child(3) { inset: 140px; }
.end5-rings .core-glass { width: 96px; height: 96px; border-radius: 26px; }
.end5-rings .core-glass svg { width: 46px; height: 46px; }
@media (max-width: 900px) { .end5-box { grid-template-columns: minmax(0, 1fr); } .end5-rings { display: none; } }

/* inner pages: the head as a dark stage, the closing band as a lit panel */
.page4 { margin-top: calc(-1 * var(--header-h)); padding-top: calc(var(--header-h) + clamp(56px, 8vw, 112px)); border-bottom: 0;
  background: radial-gradient(44% 70% at 80% 30%, rgba(108, 84, 255, 0.36), transparent 70%), radial-gradient(50% 60% at 0% 120%, rgba(84, 60, 255, 0.26), transparent 70%), var(--stage); }
.page4 .h-page { color: #fff; font-weight: 800; letter-spacing: -0.05em; }
.page4 .lead { color: #b9bddb; }
.page4 .btn-primary { background: #fff; color: #0b0b14; }
.page4 .btn-ghost { border-color: rgba(255, 255, 255, 0.24); color: #fff; }
.page4 .toc4 { border-top-color: rgba(255, 255, 255, 0.12); }
.page4 .toc4 a { color: #c3c7e0; } .page4 .toc4 a:hover { color: #fff; }
.page4 .code { border-color: rgba(255, 255, 255, 0.1); }
.end4 { border-top: 0; background: radial-gradient(50% 80% at 85% 50%, rgba(108, 84, 255, 0.4), transparent 70%), var(--stage); }
.end4 h2 { color: #fff; font-weight: 800; }
.end4 .btn-primary { background: #fff; color: #0b0b14; }
.end4 .btn-ghost { border-color: rgba(255, 255, 255, 0.24); color: #fff; }

/* the header over a dark stage */
html.kd-top .site-header {
  background: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none;
  --ink: #f2f3ff; --ink-2: #c3c7e0; --muted: #a3a8c8; --paper: #07081a; --line: rgba(255, 255, 255, 0.1); --line-strong: rgba(255, 255, 255, 0.22); --sunken: rgba(255, 255, 255, 0.08); --surface: #12143a;
}
html.kd-top .site-header .btn-primary { background: #fff; color: #0b0b14; }
html.kd-top.nav-open .site-header { background: var(--stage); }
@media (max-width: 900px) { html.kd-top.nav-open .nav { background: var(--stage); } }

/* --- hero v6: centred, full width, the orbit as a wide stage under the headline ---------------------------------------- */
.hx5c { padding-top: calc(var(--header-h) + clamp(36px, 6vh, 80px)); padding-bottom: clamp(40px, 6vh, 72px); text-align: center; }
.hx5c-copy { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.hx5c .hx5-title { max-width: none; margin-top: 26px; font-size: clamp(50px, 6.4vw, 112px); line-height: 0.98; letter-spacing: -0.058em; text-wrap: balance; }
.hx5c .hx5-lead { max-width: 52rem; margin: 24px auto 0; font-size: clamp(17px, 1.4vw, 20px); }
.hx5c .hx5-actions { justify-content: center; margin-top: 32px; }
.orbit-wide { position: relative; z-index: 1; width: 100%; max-width: none; aspect-ratio: auto; height: clamp(320px, 34vw, 520px); margin-top: clamp(-48px, -2.5vw, -16px); }
.orbit-wide .orbit-core { top: 54%; }
.orbit-wide .core-glass { width: 150px; height: 150px; border-radius: 38px; }
.orbit-wide .core-glass svg { width: 72px; height: 72px; }
.orbit-floor {
  position: absolute; left: 0; right: 0; top: 18%; bottom: -10%; pointer-events: none;
  background: radial-gradient(38% 42% at 50% 46%, rgba(124, 104, 255, 0.40), rgba(90, 70, 255, 0.10) 55%, transparent 75%);
}
.hx5c-stats { display: flex; justify-content: center; gap: 0; margin: 8px auto 0; }
.hx5c-stats div { padding: 0 clamp(20px, 4vw, 56px); border-left: 1px solid rgba(255, 255, 255, 0.12); }
.hx5c-stats div:first-child { border-left: 0; }
.hx5c-stats dd { font-size: clamp(26px, 2.6vw, 38px); }
@media (max-width: 700px) {
  .hx5c .hx5-badge { font-size: 12.5px; }
  .orbit-wide { height: 300px; }
  .orbit-wide .core-glass { width: 96px; height: 96px; border-radius: 26px; }
  .orbit-wide .core-glass svg { width: 46px; height: 46px; }
  .hx5c-stats div { padding: 0 12px; }
}
.px5-head h2 { font-size: clamp(36px, 4.2vw, 60px); letter-spacing: -0.045em; }
.sec5-head h2, .fr5-copy h2, .st5-copy h2 { font-size: clamp(34px, 3.8vw, 54px); letter-spacing: -0.045em; }
.fr5-copy p, .st5-copy p { font-size: 18px; }

/* --- hero: the model network (hover a family for its models, press and hold to zoom) ----------------------------------- */
.orbit-wide { cursor: default; touch-action: pan-y; }
.orbit.is-grab { cursor: grabbing; }
.orbit-labels .hub {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 10px; border-radius: 999px; cursor: pointer;
  background: rgba(14, 16, 40, 0.82); border: 1px solid rgba(255, 255, 255, 0.18); color: #fff; font-family: var(--font); font-size: 14px; font-weight: 700;
  transition: border-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), opacity 0.3s var(--ease-out);
}
.orbit-labels .hub i { width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.hub.h-claude i { background: #e8956b; } .hub.h-gpt i { background: #3ddc97; } .hub.h-kimi i { background: #7aa2ff; }
.orbit-labels .hub.on { border-color: rgba(255, 255, 255, 0.55); box-shadow: 0 0 34px rgba(150, 140, 255, 0.45); }
.orbit-labels .hub.dim { opacity: 0.35; }
.orbit-models { position: absolute; inset: 0; pointer-events: none; }
.orbit-models span {
  position: absolute; left: 0; top: 0; padding: 2px 7px; border-radius: 6px; white-space: nowrap; pointer-events: none;
  color: #eef0ff; font-size: 12.5px; font-weight: 600; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8); opacity: 0;
}
.orbit-tip {
  position: absolute; left: 0; top: 0; z-index: 20; display: grid; gap: 3px; min-width: 200px; padding: 12px 14px; border-radius: 12px; pointer-events: none;
  background: rgba(10, 11, 26, 0.94); border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6); opacity: 0; text-align: left;
}
.tip-maker { color: #9aa0c4; font-size: 12px; }
.tip-name { color: #fff; font-size: 15px; font-weight: 700; }
.tip-line { color: #c7cbe6; font-family: var(--mono); font-size: 12px; }
.tip-all { color: #8ee8b8; font-size: 12px; font-weight: 600; }
.orbit-hint { position: relative; z-index: 2; margin: -6px 0 0; color: #8f94b4; font-size: 13px; text-align: center; }
@media (hover: none) { .orbit-hint { display: none; } }

/* four plans */
.plans5-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .plans5-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .plans5-4 { grid-template-columns: minmax(0, 1fr); } }
.plan5-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.plan5-x { padding: 2px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 700; white-space: nowrap; }
.plan5:last-child { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: 0 30px 60px -40px rgba(79, 91, 255, 0.45); }
.plans5-more { margin-top: 22px; color: var(--muted); font-size: 15px; }
.plans5-more .link5 { margin-left: 10px; }
.plans { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

html.kd-top.kd-moved .site-header { background: rgba(9, 10, 26, 0.78); border-bottom-color: rgba(255, 255, 255, 0.08); }
@supports (backdrop-filter: blur(1px)) { html.kd-top.kd-moved:not(.nav-open) .site-header { background: rgba(9, 10, 26, 0.6); backdrop-filter: blur(14px) saturate(140%); } }
@media (hover: none) { .orbit-labels .hub { padding: 9px 16px 9px 12px; } }

/* ===== v8 home: one dark tonal system; the only colour comes from the model families. No gradients, no glows without a source. */
body[data-page="home"] {
  --paper: #0a0a0b; --surface: #111113; --sunken: #18181b; --ink: #ededef; --ink-2: #b2b2ba; --muted: #808089;
  --line: rgba(255, 255, 255, 0.08); --line-strong: rgba(255, 255, 255, 0.16); --control: #5c5c63;
  --accent: #ededef; --accent-ink: #0a0a0b; --accent-soft: rgba(255, 255, 255, 0.06);
  --code-bg: #0e0e10; --code-line: rgba(255, 255, 255, 0.07); --code-text: #d9d9df; --code-muted: #7b7b84; --code-key: #cfcfd6;
  --ok: #4fcb86; --bad: #ff7b6e; --warn: #e8b04b;
  background: var(--paper); color: var(--ink);
}
.h8 { position: relative; overflow: hidden; margin-top: calc(-1 * var(--header-h)); padding: calc(var(--header-h) + clamp(56px, 9vh, 112px)) 0 clamp(24px, 4vh, 48px); text-align: center; }
.h8-copy { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.h8-title { margin: 0; color: #f5f5f7; font-size: clamp(42px, 5.4vw, 84px); font-weight: 700; line-height: 1.03; letter-spacing: -0.04em; text-wrap: balance; }
.h8-lead { max-width: 39rem; margin: 24px auto 0; color: var(--ink-2); font-size: clamp(17px, 1.25vw, 19px); line-height: 1.6; }
.h8-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 32px; }
.btn8 { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 20px; border: 1px solid transparent; border-radius: 10px; font-size: 15px; font-weight: 600; line-height: 1; text-decoration: none; white-space: nowrap; transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease); }
.btn8-light { background: #f5f5f7; color: #0a0a0b; }
.btn8-light:hover { background: #ffffff; }
.btn8-line { border-color: var(--line-strong); color: var(--ink); }
.btn8-line:hover { border-color: rgba(255, 255, 255, 0.34); background: rgba(255, 255, 255, 0.04); }
.btn8:focus-visible, .tab8:focus-visible, .link8:focus-visible { outline: 2px solid #ffffff; outline-offset: 2px; }

/* the network: neutral rings, a graphite key; the light comes from the key itself */
.h8-net { margin-top: clamp(8px, 2vh, 24px); }
.h8-net::before { content: ""; position: absolute; left: 50%; top: 54%; width: 520px; height: 300px; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(255, 255, 255, 0.07), transparent); pointer-events: none; }
.h8 .core-glass.core8 { width: 108px; height: 108px; border-radius: 26px; background: linear-gradient(180deg, #2b2b30, #131316); border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 24px 60px -18px rgba(0, 0, 0, 0.9); }
.h8 .core-glass.core8::before { display: none; }
.h8 .core8 svg { width: 54px; height: 54px; fill: #f5f5f7; }
.h8 .core8 svg circle { fill: #f5f5f7; }
.h8 .orbit-labels .hub { gap: 8px; padding: 7px 14px 7px 9px; background: rgba(17, 17, 19, 0.92); border-color: rgba(255, 255, 255, 0.14); font-weight: 600; }
.h8 .orbit-labels .hub img { display: block; width: 18px; height: 18px; }
.h8 .orbit-labels .hub.on { border-color: rgba(255, 255, 255, 0.42); box-shadow: none; }
.h8 .orbit-labels .hub.dim { opacity: 0.45; }
.h8 .orbit-tip { background: rgba(14, 14, 16, 0.96); border-color: rgba(255, 255, 255, 0.12); }
.h8 .tip-all { color: var(--ink-2); }
.h8 .orbit-hint { margin-top: 4px; color: var(--muted); }
@media (max-width: 1000px) { .h8 .core-glass.core8 { width: 88px; height: 88px; border-radius: 22px; } .h8 .core8 svg { width: 44px; height: 44px; } }

/* sections */
.home8 .s8 { padding: clamp(72px, 9vw, 128px) 0; border-top: 1px solid var(--line); }
.s8-h { margin: 0; color: #f5f5f7; font-size: clamp(30px, 3.2vw, 46px); font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; }
.s8-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 20px 32px; margin-bottom: 32px; }
.s8-head p, .s8-copy > p { max-width: 38rem; margin: 12px 0 0; color: var(--ink-2); font-size: 17px; line-height: 1.6; }
.s8-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; gap: clamp(32px, 5vw, 80px); }
@media (max-width: 960px) { .s8-split { grid-template-columns: minmax(0, 1fr); } }
.s8-note { margin: 14px 0 0; color: var(--muted); font-size: 14px; }
.link8 { padding-bottom: 2px; border-bottom: 1px solid var(--line-strong); color: var(--ink); font-size: 15px; font-weight: 600; text-decoration: none; }
.link8:hover { border-color: var(--ink); }
.facts8 { margin: 28px 0 0; }
.facts8 > div { display: grid; grid-template-columns: 10rem minmax(0, 1fr); gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.facts8 dt { color: #f5f5f7; font-size: 15px; font-weight: 600; }
.facts8 dd { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.facts8 code { padding: 1px 5px; border-radius: 5px; background: rgba(255, 255, 255, 0.07); color: #e6e6ec; font-family: var(--mono); font-size: 0.88em; }
@media (max-width: 560px) { .facts8 > div { grid-template-columns: minmax(0, 1fr); gap: 4px; } }
.home8 .console { border-color: var(--line-strong); background: var(--surface); box-shadow: 0 40px 80px -48px rgba(0, 0, 0, 0.9); }

/* the live catalogue */
.mtab8 { border-top: 1px solid var(--line); }
.mtab8 .mrow { display: grid; grid-template-columns: minmax(0, 2.4fr) repeat(3, minmax(0, 1fr)); align-items: center; gap: 16px; padding: 16px 4px; border-bottom: 1px solid var(--line); background: none; }
.mtab8 .mrow-h { padding: 10px 4px; color: var(--muted); font-size: 13px; }
.mtab8 .mnum { color: var(--ink); font-family: var(--mono); font-size: 14px; font-variant-numeric: tabular-nums; text-align: right; }
.mtab8 .mrow-h .mnum { color: var(--muted); font-family: var(--font); font-size: 13px; }
.mtab8 .mname { display: flex; align-items: center; gap: 12px; min-width: 0; }
.mtab8 .mname img { flex: none; width: 22px; height: 22px; }
.mtab8 .mname div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; min-width: 0; }
.mtab8 .mname b { color: #f5f5f7; font-size: 15px; font-weight: 600; }
.mtab8 .mname code { padding: 0; background: none; color: var(--muted); font-family: var(--mono); font-size: 13px; }
@media (max-width: 640px) { .mtab8 .mrow { grid-template-columns: minmax(0, 1fr) auto auto; } .mtab8 .mrow > :nth-child(2) { display: none; } }

/* the dashboard */
.tabs8 { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; }
.tab8 { height: 36px; padding: 0 16px; border: 0; border-radius: 8px; background: none; color: var(--ink-2); font: 600 14px var(--font); cursor: pointer; }
.tab8:hover { color: var(--ink); }
.tab8[aria-selected="true"] { background: rgba(255, 255, 255, 0.09); color: #f5f5f7; }
.cab8-panel > p { margin: 0 0 16px; color: var(--ink-2); font-size: 15px; }
.cab8-shot { overflow: hidden; border: 1px solid var(--line-strong); border-radius: 14px; background: #0e0e10; box-shadow: 0 40px 80px -44px rgba(0, 0, 0, 0.95); }
.cab8-shot img { display: block; width: 100%; height: auto; }

/* plans as one table */
.home8 .pl8 { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: none; }
.pl8 table { width: 100%; min-width: 660px; border-collapse: collapse; }
.pl8 th, .pl8 td { padding: 16px 20px; border-bottom: 1px solid var(--line); background: none; font-size: 15px; text-align: left; }
.pl8 thead th { color: #f5f5f7; font-size: 16px; font-weight: 700; }
.pl8 tbody th { color: var(--ink-2); font-weight: 500; }
.pl8 td { color: #f5f5f7; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.pl8 tbody tr:first-child td { font-family: var(--font); font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }
.pl8 .pl8-act th, .pl8 .pl8-act td { border-bottom: 0; }
.pl8 .pl8-act .btn8 { width: 100%; font-family: var(--font); }
.pl8-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px 48px; margin-top: 28px; }
.pl8-foot h3 { margin: 0 0 10px; color: #f5f5f7; font-size: 15px; font-weight: 600; }
.pl8-foot ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; color: var(--ink-2); font-size: 15px; }
.pl8-foot li { position: relative; padding-left: 22px; }
.pl8-foot li::before { content: ""; position: absolute; left: 2px; top: 0.5em; width: 10px; height: 5px; border-left: 1.5px solid #f5f5f7; border-bottom: 1.5px solid #f5f5f7; transform: rotate(-45deg); }
.pl8-foot p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 2; }

/* closing line */
.end8-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px 32px; }
.end8 p { margin: 10px 0 0; color: var(--ink-2); font-size: 17px; }
.end8 .h8-actions { margin-top: 0; justify-content: flex-start; }
.pl8 .table-wrap { overflow-x: auto; margin: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.home8 .pl8 { overflow: hidden; }
.h8 { padding-top: calc(var(--header-h) + clamp(44px, 7vh, 88px)); }
.h8-net { margin-top: clamp(-96px, -5vw, -24px); }
.pl8 th { font-family: var(--font); letter-spacing: normal; text-transform: none; }
@media (max-width: 640px) {
  .pl8 table { min-width: 0; }
  .pl8 thead { display: none; }
  .pl8 tbody, .pl8 tbody tr { display: block; }
  .pl8 tbody tr { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .pl8 tbody th { grid-column: 1 / -1; padding: 0 0 6px; border: 0; color: var(--muted); font-size: 13px; }
  .pl8 tbody td { padding: 0; border: 0; font-size: 14px; }
  .pl8 tbody td::before { content: attr(data-plan); display: block; margin-bottom: 3px; color: var(--muted); font: 500 11px/1.3 var(--font); }
  .pl8 tbody tr:first-child td { font-size: 19px; }
  .pl8 .pl8-act { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; border-bottom: 0; }
  .pl8 .pl8-act th { display: none; }
  .mtab8 .mrow { grid-template-columns: minmax(0, 1fr) 70px 70px; grid-template-areas: none; }
  .mtab8 .mrow > * { grid-area: auto; }
}

/* v8: the inner pages share the home tonal system -- neutral dark heads, no purple light */
:root { --stage: #0a0a0b; }
.page4 { background: var(--stage); }
.page4 .lead { color: #b2b2ba; }
.page4 .toc4 a { color: #b2b2ba; }
.end4 { background: var(--stage); }
.hx5 { background: var(--stage); }
.hx5::after { background: rgba(255, 255, 255, 0.08); }

/* ===== v9 home: sales first. The switcher: one key, the model switched on the fly; plans and prepaid packs up front. */
.home8 .h8 { padding-bottom: clamp(56px, 8vh, 96px); }
.sw8 { position: relative; margin-top: clamp(40px, 6vh, 64px); perspective: 1600px; text-align: left; }
.sw8::before { content: ""; position: absolute; left: 50%; top: 40%; width: min(1000px, 90vw); height: 70%; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(255, 255, 255, 0.06), transparent); pointer-events: none; }
.sw8-stage { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(48px, 9vw, 140px); align-items: center; transform-origin: 50% 0%; }
.sw8-card { position: relative; z-index: 2; border: 1px solid var(--line-strong); border-radius: 18px; background: linear-gradient(180deg, #151518, #0f0f11); box-shadow: 0 50px 100px -50px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.06); overflow: hidden; }
.sw8-top { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); color: #f5f5f7; font-size: 14px; }
.sw8-mark svg { display: block; width: 18px; height: 18px; fill: #f5f5f7; }
.sw8-key { margin-left: auto; color: var(--muted); font-family: var(--mono); font-size: 12px; }
.sw8-field { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 12px; align-items: start; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.sw8-lab { padding-top: 2px; color: var(--muted); font-size: 13px; }
.sw8-sel { position: relative; overflow: hidden; height: 34px; border: 1px solid var(--line-strong); border-radius: 9px; background: #0b0b0d; }
.sw8-flip { position: absolute; inset: 0; display: flex; align-items: center; gap: 10px; padding: 0 12px; }
.sw8-flip img { width: 18px; height: 18px; }
.sw8-name { color: #f5f5f7; font-size: 15px; font-weight: 600; white-space: nowrap; }
.sw8-id { margin-left: auto; color: var(--muted); font-family: var(--mono); font-size: 12px; }
.sw8-q { margin: 0; color: var(--ink); font-size: 15px; line-height: 1.5; }
.sw8-ans { min-height: 112px; }
.sw8-a { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.sw8-a.cur::after { content: ""; display: inline-block; width: 7px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--ink-2); }
.sw8-foot { display: flex; justify-content: space-between; gap: 12px; padding: 12px 18px; color: var(--ink-2); font-size: 13px; }
.sw8-st { color: #f5f5f7; }
.sw8-plan { color: var(--muted); }
.sw8-wires { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.sw8-wires .w { fill: none; stroke: rgba(255, 255, 255, 0.08); stroke-width: 1.2; }
.sw8-wires .p { fill: none; stroke-width: 2.2; stroke-linecap: round; }
.sw8-lanes { position: relative; z-index: 2; display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.sw8-lane { display: flex; align-items: center; gap: 12px; height: 48px; padding: 0 16px; border: 1px solid var(--line); border-radius: 12px; background: rgba(17, 17, 19, 0.92); color: var(--ink-2); font-size: 14px; transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease), color 0.3s var(--ease); }
.sw8-lane img { width: 20px; height: 20px; flex: none; }
.sw8-lane b { color: var(--ink); font-weight: 600; }
.sw8-lane code { color: var(--muted); font-family: var(--mono); font-size: 12px; }
.sw8-ls { margin-left: auto; font-size: 12px; font-weight: 600; }
.sw8-lane.on { color: #f5f5f7; background: rgba(28, 28, 32, 0.96); }
.sw8-lane.on.f-claude { border-color: rgba(217, 119, 87, 0.7); } .sw8-lane.on.f-claude .sw8-ls { color: #e3906f; }
.sw8-lane.on.f-gpt { border-color: rgba(16, 163, 127, 0.7); } .sw8-lane.on.f-gpt .sw8-ls { color: #3cc39d; }
.sw8-lane.on.f-kimi { border-color: rgba(23, 131, 255, 0.75); } .sw8-lane.on.f-kimi .sw8-ls { color: #5aa6ff; }
.sw8-lane.busy { border-color: rgba(255, 123, 110, 0.6); } .sw8-lane.busy .sw8-ls { color: #ff8f84; }
@media (max-width: 900px) {
  .sw8-stage { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .sw8-wires { display: none; }
  .sw8-lanes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .sw8-lane { height: 40px; padding: 0 10px; gap: 8px; font-size: 13px; }
  .sw8-lane code, .sw8-ls { display: none; }
  .sw8-field { grid-template-columns: minmax(0, 1fr); gap: 6px; }
}

/* plan cards: one recommended, the volume drawn to scale */
.pc8-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
@media (max-width: 1080px) { .pc8-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .pc8-grid { grid-template-columns: minmax(0, 1fr); } }
.pc8 { position: relative; display: flex; flex-direction: column; padding: 28px 24px 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.pc8-rec { border-color: rgba(255, 255, 255, 0.34); background: linear-gradient(180deg, #1a1a1e, #121214); box-shadow: 0 40px 80px -48px rgba(0, 0, 0, 0.9); }
.pc8-badge { position: absolute; top: -11px; left: 24px; padding: 3px 10px; border-radius: 999px; background: #f5f5f7; color: #0a0a0b; font-size: 12px; font-weight: 700; }
.pc8 h3 { margin: 0; color: #f5f5f7; font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.pc8-for { min-height: 2.9em; margin: 8px 0 0; color: var(--ink-2); font-size: 14px; line-height: 1.45; }
.pc8-price { display: flex; align-items: baseline; gap: 8px; margin: 22px 0 0; }
.pc8-price b { color: #f5f5f7; font-size: 48px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.pc8-price span { color: var(--muted); font-size: 14px; }
.pc8-vol { display: grid; grid-template-columns: auto auto; justify-content: space-between; gap: 8px; margin: 22px 0 0; font-size: 13px; color: var(--muted); }
.pc8-vol b { color: #f5f5f7; font-family: var(--mono); font-size: 13px; }
.pc8-bar { grid-column: 1 / -1; display: block; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.pc8-bar span { display: block; height: 100%; border-radius: 3px; background: #f5f5f7; transform-origin: left center; }
.pc8-bar .v0 { width: 10%; } .pc8-bar .v1 { width: 25%; } .pc8-bar .v2 { width: 50%; } .pc8-bar .v3 { width: 100%; }
.pc8 ul { display: grid; gap: 8px; margin: 18px 0 24px; padding: 0; list-style: none; color: var(--ink-2); font-size: 14px; }
.pc8 .btn8 { margin-top: auto; width: 100%; height: 48px; font-size: 15px; }

/* prepaid balance packs */
.pk8-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1080px) { .pk8-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .pk8-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pk8 { display: flex; flex-direction: column; gap: 10px; padding: 22px 18px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.pk8-bonus { border-color: rgba(255, 255, 255, 0.2); }
.pk8-price { margin: 0; color: var(--ink); font-size: 34px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.pk8-tag { align-self: flex-start; min-height: 22px; padding: 2px 9px; border-radius: 999px; background: rgba(79, 203, 134, 0.14); color: #6ee0a0; font-size: 12px; font-weight: 700; }
.pk8-tag-0 { background: none; padding: 0; }
.pk8-bal { margin: 0; color: var(--ink-2); font-size: 14px; }
.pk8-bal b { color: var(--ink); font-family: var(--mono); font-weight: 600; }
.pk8 .btn8 { margin-top: 6px; width: 100%; }

/* how to start */
.st8-row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 5vw, 80px); align-items: start; }
@media (max-width: 900px) { .st8-row { grid-template-columns: minmax(0, 1fr); } }
.st8-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
@media (max-width: 600px) { .st8-list { grid-template-columns: minmax(0, 1fr); } }
.st8-list li { padding-top: 16px; border-top: 1px solid var(--line-strong); }
.st8-n { display: block; color: var(--muted); font-family: var(--mono); font-size: 13px; }
.st8-list b { display: block; margin-top: 10px; color: #f5f5f7; font-size: 20px; font-weight: 700; }
.st8-list p { margin: 6px 0 0; color: var(--ink-2); font-size: 15px; line-height: 1.5; }
body:not([data-page="home"]) .pk8-tag { background: rgba(20, 119, 63, 0.1); color: #14773f; }
body:not([data-page="home"]) .pk8-tag-0 { background: none; }
body:not([data-page="home"]) .pk8-grid { margin-top: 20px; }
body:not([data-page="home"]) .pk8 .btn { margin-top: 6px; width: 100%; }

/* ===== v10: the chrome mark, the statement, the pinned tools row, light under the pointer ===== */
.h8-logo { position: relative; width: clamp(150px, 15vw, 210px); aspect-ratio: 1; margin: 0 auto 6px; }
.h8-logo canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.h8-logo-svg { position: absolute; inset: 10%; }
.h8-logo-svg svg { display: block; width: 100%; height: 100%; fill: #e6e6ea; }
.h8-logo.gl .h8-logo-svg { visibility: hidden; }

.home8 .say8 { padding: clamp(96px, 14vw, 200px) 0; }
.say8-t { max-width: 19em; margin: 0 auto; color: #f5f5f7; font-size: clamp(28px, 4.2vw, 60px); font-weight: 700; line-height: 1.16; letter-spacing: -0.03em; text-align: center; text-wrap: balance; }

.home8 .tools8 { overflow: hidden; }
.tools8-track { overflow: hidden; }
.tools8-row { display: flex; gap: 16px; width: max-content; padding: 4px max(24px, calc((100vw - var(--wrap)) / 2 + var(--gutter))) 8px; }
.tool8 { position: relative; display: flex; flex: none; flex-direction: column; gap: 6px; width: 300px; min-height: 236px; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.tool8 img { width: 36px; height: 36px; margin-bottom: 10px; }
.tool8 b { color: #f5f5f7; font-size: 20px; font-weight: 700; }
.tool8-k { color: var(--muted); font-size: 14px; }
.tool8 code { display: block; margin-top: auto; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #0b0b0d; color: var(--ink-2); font: 12.5px/1.6 var(--mono); white-space: normal; overflow-wrap: anywhere; word-break: break-all; }
@media (max-width: 900px) {
  .tools8-track { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
  .tools8-row { padding: 4px 16px 12px; }
  .tool8 { width: 78vw; max-width: 320px; scroll-snap-align: start; }
}

.pc8::after, .pk8::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.3s var(--ease);
  background: radial-gradient(280px circle at var(--mx, -999px) var(--my, -999px), rgba(255, 255, 255, 0.08), transparent 70%); }
.pc8:hover::after, .pk8:hover::after { opacity: 1; }
.pk8 { position: relative; }
.site-header .mark-key { transform-box: fill-box; }
.h8-logo { margin-bottom: -6px; }
.sw8-soon { display: flex; align-items: center; gap: 12px; height: 48px; padding: 0 16px; border: 1px dashed rgba(255, 255, 255, 0.18); border-radius: 12px; color: var(--muted); font-size: 14px; }
.sw8-soon b { color: var(--ink-2); font-weight: 600; }
.sw8-plus { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: rgba(255, 255, 255, 0.08); color: var(--ink); font-weight: 700; }
.sw8-soon-t { margin-left: auto; font-size: 12px; font-weight: 600; }
@media (max-width: 900px) { .sw8-soon { height: 40px; padding: 0 10px; gap: 8px; font-size: 13px; } .sw8-soon-t { display: none; } }
.h8-logo { width: clamp(240px, 24vw, 340px); aspect-ratio: 1.45; margin: -12px auto -4px; }
.h8-logo-svg { inset: 18% 22%; }
.mark-st { stroke: var(--paper); }
.sw8-mark { color: #f5f5f7; }
.h8-logo-svg { color: #e6e6ea; }
.h8-logo { aspect-ratio: 1.35; }

/* ===== v11: the hero sky -- stars and the marks of top models around the glass mark */
.h8-sky { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.h8-sky canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.h8-nodes { position: absolute; inset: 0; }
.nd { position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; pointer-events: auto;
  background: radial-gradient(70% 70% at 35% 25%, #24242b, #0e0e12); border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.1); }
.nd img { display: block; width: 24px; height: 24px; }
.nd-tip { position: absolute; left: 0; top: 0; z-index: 40; display: grid; gap: 2px; padding: 8px 12px; border-radius: 10px; opacity: 0; visibility: hidden; pointer-events: none; white-space: nowrap;
  background: rgba(14, 14, 18, 0.95); border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.6); text-align: left; }
.nd-tip b { color: #f5f5f7; font-size: 14px; font-weight: 700; }
.nd-tip span { color: #6ee0a0; font-size: 12px; font-weight: 600; }
.nd-tip.soon span { color: #9a9aa3; }
.h8 > .wrap { position: relative; z-index: 2; }
.h8-copy { pointer-events: none; }
.h8-copy a, .h8-copy .h8-logo { pointer-events: auto; }
@media (max-width: 900px) { .nd { width: 36px; height: 36px; } .nd img { width: 18px; height: 18px; } }

/* v12: bigger marks and a taller sky */
.nd { width: 66px; height: 66px; }
.nd img { width: 32px; height: 32px; }
.h8-logo { margin: 44px auto 120px; }
@media (max-width: 900px) { .nd { width: 46px; height: 46px; } .nd img { width: 22px; height: 22px; } .h8-logo { margin: 24px auto 64px; } }

/* v13: the start screen is the headline and the playground on stars; the mark and the models get their own screen */
.home8 .h8 { padding-top: calc(var(--header-h) + clamp(36px, 6vh, 72px)); }
.home8 .sky8 { position: relative; overflow: hidden; min-height: clamp(660px, 86vh, 900px); padding: clamp(64px, 8vw, 104px) 0 0; }
.sky8-copy { position: relative; z-index: 3; text-align: center; pointer-events: none; }
.sky8-copy p { margin: 12px auto 0; color: var(--ink-2); font-size: 16px; }
.h8-logo.sky8-mark { position: absolute; left: 50%; top: 58%; z-index: 2; width: clamp(240px, 26vw, 360px); margin: 0; translate: -50% -50%; }
@media (max-width: 900px) { .home8 .sky8 { min-height: 560px; } .h8-logo.sky8-mark { width: 220px; top: 60%; } }

/* v14: kd-auto (a model-evaluation scene after nexos) and failover (availability bars after OpenRouter) */
.au8-li { display: grid; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.au8-li li { position: relative; padding-left: 26px; color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.au8-li li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 12px; height: 7px; border-left: 2px solid #7ee2a8; border-bottom: 2px solid #7ee2a8; transform: rotate(-45deg); }
.au8-code { margin: 24px 0 22px; padding: 16px 18px; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: #0c0c0e; color: #d8d8de; font: 13px/1.6 var(--mono); }
.au8-code .k { color: #9aa4ff; } .au8-code .a { color: #7ee2a8; }
.au8-fig { position: relative; display: flex; flex-direction: column; align-items: center; padding: 34px clamp(16px, 3vw, 36px) 44px; border: 1px solid var(--line); border-radius: 20px;
  background: radial-gradient(120% 70% at 50% 0%, rgba(140, 154, 255, 0.1), transparent 60%), #0b0b0d; overflow: hidden; }
.au8-node { padding: 10px 18px; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 999px; background: rgba(20, 20, 24, 0.95); color: #f5f5f7; font-size: 14px; font-weight: 600; }
.au8-node code { color: #7ee2a8; font-family: var(--mono); font-size: 13px; }
.au8-req { box-shadow: 0 0 0 4px rgba(140, 154, 255, 0.08); }
.au8-wire { display: block; width: 2px; height: 42px; overflow: visible; }
.au8-wire path { fill: none; stroke: rgba(140, 154, 255, 0.75); stroke-width: 2; stroke-dasharray: 4 5; vector-effect: non-scaling-stroke; }
.au8-box { position: relative; width: 100%; padding: 30px 14px 16px; border: 1px dashed rgba(255, 255, 255, 0.16); border-radius: 16px; }
.au8-lbl { position: absolute; left: 50%; top: 0; padding: 3px 12px; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 999px; background: #121216; color: var(--ink-2); font-size: 12px; translate: -50% -50%; white-space: nowrap; }
.au8-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ac { padding: 14px 14px 12px; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 14px; background: rgba(255, 255, 255, 0.03); transition: border-color 0.4s, background 0.4s, box-shadow 0.4s; }
.ac-h { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ac-h img { flex: none; }
.ac-h b { overflow: hidden; color: #f5f5f7; font-size: 13px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.ac > code { display: block; margin: 6px 0 10px; color: var(--muted); font-family: var(--mono); font-size: 12px; }
.ac ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ac li { display: flex; justify-content: space-between; align-items: center; color: var(--ink-2); font-size: 12px; }
.ac .ck { position: relative; width: 16px; height: 16px; border-radius: 50%; background: rgba(126, 226, 168, 0.16); }
.ac .ck::after { content: ""; position: absolute; left: 5px; top: 3.5px; width: 4px; height: 7px; border-right: 2px solid #7ee2a8; border-bottom: 2px solid #7ee2a8; transform: rotate(45deg); }
.ac .ck.no { background: rgba(255, 255, 255, 0.07); }
.ac .ck.no::after { left: 4px; top: 7px; width: 8px; height: 0; border-right: 0; border-bottom: 2px solid rgba(255, 255, 255, 0.35); transform: none; }
.ac-s { display: block; margin-top: 10px; padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, 0.08); color: var(--muted); font-size: 12px; }
.ac-s b { color: #f5f5f7; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.ac.best, .au8-fig.is-on .ac.best { border-color: rgba(126, 226, 168, 0.55); background: rgba(126, 226, 168, 0.06); box-shadow: 0 0 0 4px rgba(126, 226, 168, 0.07), 0 18px 40px -24px rgba(126, 226, 168, 0.45); }
.au8-fig.is-run .ac.best:not(.lit) { border-color: rgba(255, 255, 255, 0.1); background: rgba(255, 255, 255, 0.03); box-shadow: none; }
.au8-note, .ut8-card .au8-note { position: absolute; right: 16px; bottom: 12px; color: var(--muted); font-size: 12px; }
@media (max-width: 640px) { .au8-cards { grid-template-columns: minmax(0, 1fr); } .ac:not(.best) { display: none; } }

.ut8-card { position: relative; display: grid; gap: 16px; padding: 28px clamp(16px, 3vw, 32px) 44px; border: 1px solid var(--line); border-radius: 20px; background: #0b0b0d; }
.ut8-r { display: grid; grid-template-columns: 11rem minmax(0, 1fr); align-items: center; gap: 16px; }
.ut8-n { display: flex; align-items: center; gap: 10px; color: #f5f5f7; font-size: 14px; font-weight: 600; white-space: nowrap; }
.ut8-k { display: inline-flex; width: 20px; height: 20px; }
.ut8-k svg { width: 20px; height: 20px; }
.ut8-bar { display: grid; grid-template-columns: repeat(48, minmax(0, 1fr)); gap: 3px; height: 28px; }
.ut8-bar i { border-radius: 3px; background: #2fbf71; opacity: 0.9; }
.ut8-bar i.w { background: #e3b341; }
.ut8-bar i.d { background: #e5534b; }
.ut8-via { margin-top: 6px; padding-top: 18px; border-top: 1px solid var(--line); }
.ut8-via .ut8-bar i { background: #3ddc84; box-shadow: 0 0 10px -2px rgba(61, 220, 132, 0.55); }
@media (max-width: 640px) { .ut8-r { grid-template-columns: minmax(0, 1fr); gap: 8px; } .ut8-bar { gap: 2px; height: 22px; } }
.ut8 .s8-split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; }
.au8 .s8-split { align-items: center; }
@media (max-width: 960px) { .ut8 .s8-split { grid-template-columns: minmax(0, 1fr); } .ut8 .s8-copy { order: -1; } }

/* ===== v15: the whole site is one dark tonal system (the owner's taste: dark gloss). A light scheme no longer turns the
   inner pages white; the home tokens apply everywhere. */
:root { color-scheme: dark; --stage: #0a0a0b; }
body {
  --paper: #0a0a0b; --surface: #111113; --sunken: #18181b; --ink: #ededef; --ink-2: #b2b2ba; --muted: #808089;
  --line: rgba(255, 255, 255, 0.08); --line-strong: rgba(255, 255, 255, 0.16); --control: #5c5c63;
  --accent: #ededef; --accent-ink: #0a0a0b; --accent-soft: rgba(255, 255, 255, 0.06);
  --code-bg: #0e0e10; --code-line: rgba(255, 255, 255, 0.07); --code-text: #d9d9df; --code-muted: #7b7b84; --code-key: #cfcfd6;
  --ok: #4fcb86; --bad: #ff7b6e; --warn: #e8b04b;
  background: var(--paper); color: var(--ink);
}
.page4, .end4, .hx5, .px5, .st5 { --surface: #111113; --sunken: #18181b; --paper: #0a0a0b; --ink: #ededef; --ink-2: #b2b2ba; --muted: #808089;
  --line: rgba(255, 255, 255, 0.08); --line-strong: rgba(255, 255, 255, 0.16); --accent: #ededef; --accent-soft: rgba(255, 255, 255, 0.06); }
main a:not([class]) { color: #c9cdff; }
body:not([data-page="home"]) .pk8-tag { background: rgba(79, 203, 134, 0.12); color: #7ee2a8; }

/* v16: kd-auto on the models page; logos and real names in the catalogue */
.auto9 { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px 32px; margin: 0 0 32px; padding: 24px 28px; border: 1px solid var(--line-strong); border-radius: 16px;
  background: radial-gradient(90% 140% at 0% 0%, rgba(126, 226, 168, 0.08), transparent 55%), #0e0e10; }
.auto9-copy h2 { margin: 10px 0 6px; color: #f5f5f7; font-size: 22px; letter-spacing: -0.02em; }
.auto9-copy p { max-width: 44rem; margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.auto9-tag { display: inline-block; padding: 3px 10px; border: 1px solid rgba(126, 226, 168, 0.4); border-radius: 999px; color: #7ee2a8; font: 600 12px var(--mono); }
.auto9-code { margin: 0; padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px; background: #0a0a0b; color: #d8d8de; font: 14px var(--mono); white-space: nowrap; }
.auto9-code .k { color: #9aa4ff; } .auto9-code .a { color: #7ee2a8; }
.auto9 .link8 { grid-column: 1 / -1; justify-self: start; }
@media (max-width: 720px) { .auto9 { grid-template-columns: minmax(0, 1fr); padding: 20px; } }
#models-table th.has-logo { min-width: 14rem; padding-right: 20px; }
#models-table .model-logo { float: left; width: 22px; height: 22px; margin: 1px 10px 0 0; }

/* v17: plan cards on the pricing page in the home style; the most chosen plan stands out */
body:not([data-page="home"]) .plans { gap: 16px; }
body:not([data-page="home"]) .card.plan { position: relative; display: flex; flex-direction: column; padding: 26px 24px 24px; border: 1px solid var(--line-strong); border-top: 1px solid var(--line-strong); border-radius: 18px;
  background: linear-gradient(180deg, #141416, #0e0e10); box-shadow: 0 30px 60px -40px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.05); }
body:not([data-page="home"]) .card.plan.card-accent { border-color: rgba(255, 255, 255, 0.42); background: linear-gradient(180deg, #1b1b1f, #111113);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.04), 0 40px 80px -40px rgba(255, 255, 255, 0.12); }
.plan-pop { position: absolute; top: -11px; left: 22px; padding: 3px 10px; border-radius: 999px; background: #f5f5f7; color: #0a0a0b; font-size: 12px; font-weight: 700; }
body:not([data-page="home"]) .card.plan h3 { margin: 0 0 10px; color: #f5f5f7; font-size: 18px; }
body:not([data-page="home"]) .card.plan .price { color: #f5f5f7; font-family: var(--font); font-size: 40px; font-weight: 700; letter-spacing: -0.03em; }
body:not([data-page="home"]) .card.plan ul { flex: 1; }
.plan-cta { width: 100%; margin-top: 18px; justify-content: center; }

/* v18: the kd-auto example mix and its live saving */
.au8-mix { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; gap: 24px 48px; margin-top: clamp(32px, 4vw, 56px); padding: 26px clamp(18px, 3vw, 32px); border: 1px solid var(--line); border-radius: 20px; background: #0b0b0d; }
.au8-mix-t { color: var(--muted); font-size: 13px; }
.au8-bar { display: flex; gap: 4px; height: 38px; margin: 12px 0 14px; }
.au8-bar span { display: flex; align-items: center; justify-content: center; min-width: 38px; border-radius: 8px; color: #0a0a0b; font: 700 13px var(--mono); }
.au8-bar .m1, .au8-leg i.m1 { flex: 62; background: #7ee2a8; }
.au8-bar .m2, .au8-leg i.m2 { flex: 30; background: #9aa4ff; }
.au8-bar .m3, .au8-leg i.m3 { flex: 8; background: #f0b37e; }
.au8-leg { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; list-style: none; color: var(--ink-2); font-size: 13px; }
.au8-leg li { display: flex; align-items: center; gap: 8px; }
.au8-leg i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.au8-leg code { color: #f5f5f7; font-family: var(--mono); font-size: 12px; }
.au8-save { display: grid; gap: 4px; }
.au8-save b { color: #7ee2a8; font-size: clamp(44px, 5vw, 64px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.au8-save span { color: #f5f5f7; font-size: 16px; font-weight: 600; }
.au8-save small { color: var(--muted); font-size: 12px; line-height: 1.5; }
@media (max-width: 860px) { .au8-mix { grid-template-columns: minmax(0, 1fr); } }
.au8-leg i.m1, .au8-leg i.m2, .au8-leg i.m3 { flex: none; }

/* v19: kd-auto on the platform page: four steps and the comparison with one model */
.steps9 { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.steps9 li { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: #0e0e10; }
.steps9 li:nth-child(3) { border-color: rgba(126, 226, 168, 0.4); background: rgba(126, 226, 168, 0.05); }
.steps9-n { grid-row: span 2; color: #9aa4ff; font: 600 14px var(--mono); }
.steps9 b { color: #f5f5f7; font-size: 15px; }
.steps9 p { margin: 4px 0 0; color: var(--ink-2); font-size: 14px; line-height: 1.55; }
.cmp9 { width: 100%; }
.cmp9 caption { caption-side: top; text-align: left; color: var(--muted); font-size: 13px; padding-bottom: 10px; }
.cmp9 th, .cmp9 td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 15px; }
.cmp9 thead th { color: var(--muted); font-size: 13px; font-weight: 600; }
.cmp9 thead th:nth-child(2) { color: #7ee2a8; font-family: var(--mono); }
.cmp9 tbody th { color: #f5f5f7; font-weight: 600; white-space: nowrap; }
.cmp9 td { color: var(--ink-2); }
.cmp9 td.yes9 { color: #f5f5f7; background: rgba(126, 226, 168, 0.04); }

/* v20: the announcement pill above the headline (after nexos "Early access" and OpenRouter's notes) */
.h8-pill { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 26px; padding: 5px 14px 5px 5px; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 999px;
  background: rgba(17, 17, 19, 0.7); color: var(--ink-2); font-size: 14px; text-decoration: none; backdrop-filter: blur(8px); transition: border-color 0.2s var(--ease), color 0.2s var(--ease); }
.h8-pill b { padding: 3px 10px; border-radius: 999px; background: rgba(126, 226, 168, 0.14); color: #7ee2a8; font-size: 12px; font-weight: 700; }
.h8-pill i { font-style: normal; transition: transform 0.2s var(--ease); }
.h8-pill:hover { border-color: rgba(255, 255, 255, 0.32); color: #f5f5f7; }
.h8-pill:hover i { transform: translateX(3px); }
@media (max-width: 520px) { .h8-pill { font-size: 13px; } .h8-pill span { max-width: 15rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } }

/* v21: the catalogue: copy a model id; one request example panel under the table */
.id-copy { margin-left: 6px; padding: 1px 6px; border: 1px solid var(--line); border-radius: 6px; background: none; color: var(--muted); font: 12px/1.4 var(--mono); cursor: pointer; vertical-align: 1px; }
.id-copy:hover { border-color: var(--line-strong); color: #f5f5f7; }
.model-ex-btn { display: block; margin-top: 8px; padding: 0; border: 0; background: none; color: #c9cdff; font: 13px var(--font); cursor: pointer; }
.model-ex-btn:hover, .model-ex-btn[aria-pressed="true"] { color: #f5f5f7; text-decoration: underline; text-underline-offset: 3px; }
.model-ex-panel { margin-top: 24px; }
.model-ex-h { margin: 0 0 10px; color: #f5f5f7; font-size: 16px; font-weight: 600; }
.model-ex-h code { color: #7ee2a8; font-family: var(--mono); font-size: 14px; }
#models-table td { vertical-align: top; }
.mtab8 .mrow-auto { color: inherit; text-decoration: none; background: rgba(126, 226, 168, 0.04); }
.mtab8 .mrow-auto:hover { background: rgba(126, 226, 168, 0.08); }
.mtab8 .mrow-auto code { color: #7ee2a8; }
.mtab8 .mauto { grid-column: span 2; color: var(--ink-2); font-family: var(--font); font-size: 13px; }
.auto-dot { flex: none; width: 22px; height: 22px; border-radius: 7px; background: radial-gradient(circle at 35% 30%, #b8f5d2, #3fbf7f 60%, #1f6f4a); box-shadow: 0 0 14px -2px rgba(126, 226, 168, 0.6); }

/* v22: the request names its prompt; it changes with each scenario */
.au8-req { max-width: min(100%, 34rem); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.au8-prompt { color: #d8dbff; font-weight: 500; }

/* v23: the 404 page centred, the number as the hero */
.not-found { padding: clamp(96px, 14vh, 160px) 0; text-align: center; }
.not-found .code-big { margin: 0 0 8px; background: linear-gradient(180deg, #ffffff 10%, rgba(255, 255, 255, 0.06) 95%); -webkit-background-clip: text; background-clip: text;
  color: transparent; font: 700 clamp(110px, 18vw, 220px)/0.9 var(--font); letter-spacing: -0.07em; }
.not-found h1 { font-size: clamp(30px, 3.6vw, 46px); }
.not-found .lead { margin: 12px auto 0; }
.not-found .hero-actions { justify-content: center; margin-top: 28px; }

/* v24: the spend calculator on the pricing page */
.calc9 { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px 40px; align-items: start; margin-top: 20px; padding: 24px; border: 1px solid var(--line-strong); border-radius: 18px; background: linear-gradient(180deg, #121214, #0d0d0f); }
.calc9[hidden] { display: none; }
.calc9-f { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; align-items: baseline; margin-bottom: 18px; }
.calc9-l { color: var(--ink-2); font-size: 14px; }
.calc9-v { color: #f5f5f7; font: 600 15px var(--mono); }
.calc9-f input[type="range"] { grid-column: 1 / -1; width: 100%; accent-color: #7ee2a8; }
.calc9-pack { margin: 6px 0 0; padding: 12px 14px; border: 1px solid rgba(126, 226, 168, 0.35); border-radius: 12px; background: rgba(126, 226, 168, 0.06); color: #f5f5f7; font-size: 14px; line-height: 1.5; }
.calc9-t { width: 100%; }
.calc9-t caption { caption-side: top; padding-bottom: 8px; color: var(--muted); font-size: 13px; text-align: left; }
.calc9-t th, .calc9-t td { padding: 10px 8px; border-bottom: 1px solid var(--line); font-size: 14px; text-align: left; }
.calc9-t td.num, .calc9-t th.num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc9-t tbody th { color: #f5f5f7; font-weight: 600; }
.calc9-t tbody th code { color: var(--muted); font: 12px var(--mono); }
.calc9-t .model-logo { display: inline-block; width: 18px; height: 18px; margin-right: 8px; vertical-align: -3px; }
.calc9-t tr.calc9-auto { background: rgba(126, 226, 168, 0.05); }
.calc9-t tr.calc9-auto code { color: #7ee2a8; }
@media (max-width: 860px) { .calc9 { grid-template-columns: minmax(0, 1fr); padding: 18px; } }
@media (max-width: 560px) {
  .calc9-t th:nth-child(2), .calc9-t td:nth-child(2) { display: none; }
  .calc9-t tbody th { white-space: normal; font-size: 13px; }
  .calc9-t tbody th code { display: block; width: max-content; margin-top: 3px; }
}

/* v25: the day's history under each service on /status (half-hour bars, after OpenRouter's uptime) */
.status-list li .hist-row { grid-column: 2 / -1; display: grid; gap: 6px; }
.hist { display: grid; grid-template-columns: repeat(48, minmax(0, 1fr)); gap: 3px; height: 26px; }
.hist i { border-radius: 3px; background: rgba(255, 255, 255, 0.08); }
.hist i.ok { background: #2fbf71; }
.hist i.warn { background: #e3b341; }
.hist i.bad { background: #e5534b; }
@media (max-width: 560px) { .hist { gap: 2px; height: 20px; } }
.ut8-links { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 18px; }

/* v26: nothing wider than a phone: the docs column may shrink, long ids and URLs in running text wrap */
@media (max-width: 900px) { .docs { grid-template-columns: minmax(0, 1fr); } }
:not(pre) > code { overflow-wrap: anywhere; }
@media (max-width: 560px) { :not(pre) > code { white-space: normal; } }
.steps > li { grid-template-columns: 40px minmax(0, 1fr); }

/* v27: the main audience -- an editor or an agent on one address and one key */
.vb8-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.vb8-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.vb8-card { display: flex; flex-direction: column; gap: 10px; padding: 18px; border: 1px solid var(--line-strong); border-radius: 18px; background: linear-gradient(180deg, #141416, #0e0e10); }
.vb8-card h3 { margin: 8px 0 0; color: #f5f5f7; font-size: 18px; letter-spacing: -0.02em; }
.vb8-card p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.vb8-win { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #0a0a0b; }
.vb8-bar { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-bottom: 1px solid var(--line); color: var(--muted); font: 12px var(--mono); }
.vb8-bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); }
.vb8-bar span { margin-left: 6px; }
.vb8-win pre { margin: 0; padding: 12px 14px; overflow-x: auto; color: #d8d8de; font: 12px/1.7 var(--mono); }
.vb8-win pre .k { color: #9aa4ff; } .vb8-win pre .a { color: #7ee2a8; } .vb8-win pre .c { color: var(--muted); }
.vb8-logos { display: flex; gap: 10px; padding: 0 14px 12px; }
.vb8-logos img { width: 22px; height: 22px; opacity: 0.9; }
.vb8-agents { margin: 0; padding: 8px 12px; list-style: none; }
.vb8-agents li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 7px 2px; border-bottom: 1px solid var(--line); font-size: 13px; }
.vb8-agents li:last-child { border-bottom: 0; }
.vb8-agents b { color: #f5f5f7; font-weight: 600; }
.vb8-agents code { color: var(--muted); font: 12px var(--mono); }
.vb8-agents span:last-child { color: #7ee2a8; font: 600 12px var(--mono); }
.vb8-dot { width: 8px; height: 8px; border-radius: 50%; background: #2fbf71; box-shadow: 0 0 8px rgba(47, 191, 113, 0.6); }
@media (max-width: 960px) { .vb8-grid { grid-template-columns: minmax(0, 1fr); } }

/* v28: the plain-words explainer for ordinary users (what it is, how it works, the pains it removes, first questions) */
.vx-head { max-width: 52rem; }
.vx-lead { margin: 14px 0 0; color: var(--ink-2); font-size: clamp(17px, 1.3vw, 19px); line-height: 1.65; }
.vx-flow { display: grid; grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr) 72px minmax(0, 1fr); align-items: center; margin: clamp(28px, 4vw, 44px) 0; }
.vx-node { display: grid; justify-items: center; gap: 6px; padding: 18px 14px; border: 1px solid var(--line-strong); border-radius: 16px; background: #0e0e10; text-align: center; }
.vx-node b { color: #f5f5f7; font-size: 16px; }
.vx-node > span:last-child { color: var(--muted); font-size: 13px; line-height: 1.4; }
.vx-hub { border-color: rgba(126, 226, 168, 0.45); background: radial-gradient(120% 90% at 50% 0%, rgba(126, 226, 168, 0.1), transparent 60%), #0e0e10; box-shadow: 0 0 0 4px rgba(126, 226, 168, 0.05); }
.vx-logos { display: flex; gap: 8px; }
.vx-logos img { width: 20px; height: 20px; }
.vx-mark { display: inline-flex; width: 26px; height: 26px; }
.vx-mark svg { width: 26px; height: 26px; }
.vx-wire { position: relative; height: 2px; margin: 0 6px; background: repeating-linear-gradient(90deg, rgba(140, 154, 255, 0.55) 0 6px, transparent 6px 11px); }
.vx-wire i { position: absolute; top: -3px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: #7ee2a8; box-shadow: 0 0 10px rgba(126, 226, 168, 0.8); animation: vx-run 2.4s linear infinite; }
@keyframes vx-run { from { left: 0; } to { left: calc(100% - 8px); } }
@media (prefers-reduced-motion: reduce) { .vx-wire i { animation: none; left: calc(50% - 4px); } }
.vx-pain { margin-bottom: clamp(40px, 5vw, 64px); padding: clamp(18px, 3vw, 28px); border: 1px solid var(--line); border-radius: 20px; background: #0b0b0d; }
.vx-pain-h { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-bottom: 8px; }
.vx-pain h3, .vx-h3 { margin: 0; color: #f5f5f7; font-size: clamp(20px, 2vw, 26px); letter-spacing: -0.02em; }
.vx-cols { display: grid; grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr); color: var(--muted); font-size: 12px; text-transform: none; }
.vx-cols span:last-child { grid-column: 3; color: #7ee2a8; }
.vx-pain ul { margin: 0; padding: 0; list-style: none; }
.vx-pain li { display: grid; grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr); align-items: start; gap: 0; padding: 14px 0; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.5; }
.vx-was { color: var(--ink-2); text-decoration: line-through; text-decoration-color: rgba(229, 83, 75, 0.6); text-decoration-thickness: 1px; }
.vx-arrow { color: var(--muted); text-align: center; }
.vx-now { color: #f5f5f7; }
.vx-use { margin-top: 0; }
.vx-faq { margin-top: clamp(40px, 5vw, 64px); max-width: 52rem; }
.vx-faq .vx-h3 { margin-bottom: 10px; }
.vx-q { border-top: 1px solid var(--line); }
.vx-q:last-child { border-bottom: 1px solid var(--line); }
.vx-q summary { padding: 16px 0; color: #f5f5f7; font-size: 16px; font-weight: 600; cursor: pointer; list-style: none; }
.vx-q summary::-webkit-details-marker { display: none; }
.vx-q summary::after { content: "+"; float: right; color: var(--muted); font-weight: 400; }
.vx-q[open] summary::after { content: "−"; }
.vx-q p { margin: 0 0 16px; color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.vx-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 32px; }
@media (max-width: 820px) {
  .vx-flow { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .vx-wire { width: 2px; height: 34px; margin: 0 auto; background: repeating-linear-gradient(180deg, rgba(140, 154, 255, 0.55) 0 6px, transparent 6px 11px); }
  .vx-wire i { top: 0; left: -3px; animation-name: vx-run-v; }
  .vx-pain li, .vx-cols { grid-template-columns: minmax(0, 1fr); }
  .vx-cols { display: none; }
  .vx-arrow { display: none; }
  .vx-now { margin-top: 4px; }
  .vx-now::before { content: "→ "; color: #7ee2a8; }
}
@keyframes vx-run-v { from { top: 0; } to { top: calc(100% - 8px); } }
.vx-was { text-decoration: none; color: var(--ink-2); }
.vx-was::before { content: "✕"; display: inline-block; width: 22px; color: #e5534b; font-weight: 700; }
.vx-now::before { content: "✓"; display: inline-block; width: 22px; color: #7ee2a8; font-weight: 700; }
@media (max-width: 820px) { .vx-now::before { content: "✓"; } }
.vx-arrow { visibility: hidden; }

/* v29: trust just below the first screen -- grouped monochrome marks of the tools, four facts (no marquee) */
.home8 .tr8 { padding: clamp(36px, 5vw, 56px) 0 clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); }
.tr8-h { margin: 0 0 22px; color: var(--ink-2); font-size: 15px; font-weight: 500; letter-spacing: 0; text-align: center; }
.tr8-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tr8-g { padding: 16px 18px 12px; border: 1px solid var(--line); border-radius: 16px; background: #0d0d0f; }
.tr8-gl { display: block; margin-bottom: 10px; color: var(--muted); font-size: 12px; }
.tr8-g ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; margin: 0; padding: 0; list-style: none; }
.tr8-g li { display: flex; align-items: center; gap: 10px; min-width: 0; color: #e6e6ea; font-size: 14px; font-weight: 500; }
.tr8-g li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr8-g img { flex: none; width: 22px; height: 22px; filter: grayscale(1) brightness(1.5); opacity: 0.85; transition: filter 0.25s var(--ease), opacity 0.25s var(--ease); }
.tr8-g li:hover img { filter: none; opacity: 1; }
.tr8-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 22px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.tr8-facts li { display: grid; gap: 4px; padding: 16px 18px 0 0; }
.tr8-facts li + li { padding-left: 18px; border-left: 1px solid var(--line); }
.tr8-facts b { position: relative; padding-left: 22px; color: #f5f5f7; font-size: 15px; }
.tr8-facts b::before { content: "✓"; position: absolute; left: 0; color: #7ee2a8; }
.tr8-facts span { padding-left: 22px; color: var(--muted); font-size: 13px; line-height: 1.5; }
@media (max-width: 960px) { .tr8-groups { grid-template-columns: minmax(0, 1fr); } .tr8-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tr8-facts li:nth-child(3) { padding-left: 0; border-left: 0; } }
@media (max-width: 520px) { .tr8-facts { grid-template-columns: minmax(0, 1fr); } .tr8-facts li + li { padding-left: 0; border-left: 0; } }
.vx-logos { flex-wrap: wrap; justify-content: center; }
.vx-logos img, .vb8-logos img { filter: grayscale(1) brightness(1.5); }
.vb8-logos { flex-wrap: wrap; }

/* v30: what people build (eight scenarios) and the block for those who sell bots and agents to their clients */
.bd8-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.bd8-card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 20px 18px 18px; border: 1px solid var(--line); border-radius: 16px;
  background: linear-gradient(180deg, #121214, #0d0d0f); transition: border-color 0.25s var(--ease), transform 0.25s var(--ease); }
.bd8-card:hover { border-color: rgba(126, 226, 168, 0.4); transform: translateY(-2px); }
.bd8-n { color: #7ee2a8; font: 600 12px var(--mono); }
.bd8-card h3 { margin: 0; color: #f5f5f7; font-size: 17px; line-height: 1.3; letter-spacing: -0.015em; }
.bd8-card p { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.55; }
@media (max-width: 1100px) { .bd8-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .bd8-grid { grid-template-columns: minmax(0, 1fr); } }
.rs8 .s8-split { align-items: center; }
.rs8-points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 22px; margin: 22px 0 26px; padding: 0; list-style: none; }
.rs8-points li { display: grid; gap: 3px; padding-left: 22px; position: relative; }
.rs8-points li::before { content: "✓"; position: absolute; left: 0; top: 0; color: #7ee2a8; font-weight: 700; }
.rs8-points b { color: #f5f5f7; font-size: 15px; }
.rs8-points span { color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.rs8-card { overflow: hidden; border: 1px solid var(--line-strong); border-radius: 18px; background: linear-gradient(180deg, #141416, #0d0d0f); box-shadow: 0 40px 80px -48px rgba(0, 0, 0, 0.9); }
.rs8-head, .rs8-rows li { display: grid; grid-template-columns: 10px minmax(0, 1fr) 90px 70px 80px; align-items: center; gap: 10px; padding: 10px 16px; }
.rs8-head { grid-template-columns: minmax(0, 1fr) 90px 70px 80px; color: var(--muted); font-size: 12px; border-bottom: 1px solid var(--line); }
.rs8-head span:first-child { padding-left: 20px; }
.rs8-rows { margin: 0; padding: 0 0 6px; list-style: none; }
.rs8-rows li { border-bottom: 1px solid var(--line); font-size: 14px; }
.rs8-rows li:last-child { border-bottom: 0; }
.rs8-rows b { color: #f5f5f7; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rs8-rows code { color: var(--muted); font: 12px var(--mono); }
.rs8-rows span { color: var(--ink-2); font: 13px var(--mono); }
.rs8-rows .rs8-sp { color: #7ee2a8; }
.rs8-dot { width: 8px; height: 8px; border-radius: 50%; background: #2fbf71; box-shadow: 0 0 8px rgba(47, 191, 113, 0.6); }
@media (max-width: 960px) { .rs8-points { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .rs8-head, .rs8-rows li { grid-template-columns: 10px minmax(0, 1fr) 60px 64px; } .rs8-head { grid-template-columns: minmax(0, 1fr) 60px 64px; } .rs8-rows code, .rs8-head span:nth-child(2) { display: none; } }

.bd8-tops { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: clamp(32px, 4vw, 48px); }
.bd8-top { display: flex; flex-direction: column; gap: 10px; padding: clamp(22px, 3vw, 32px); border: 1px solid rgba(126, 226, 168, 0.35); border-radius: 20px;
  background: radial-gradient(110% 120% at 0% 0%, rgba(126, 226, 168, 0.09), transparent 55%), linear-gradient(180deg, #141416, #0d0d0f); }
.bd8-top h3 { margin: 6px 0 0; color: #f5f5f7; font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -0.025em; }
.bd8-top p { margin: 0; color: var(--ink-2); font-size: 15.5px; line-height: 1.6; }
.bd8-logos { display: flex; flex-wrap: wrap; gap: 12px; }
.bd8-logos img { width: 24px; height: 24px; filter: grayscale(1) brightness(1.5); }
.bd8-apps { margin: 0 0 14px; }
.bd8-soon { margin-top: 16px; }
@media (max-width: 860px) { .bd8-tops { grid-template-columns: minmax(0, 1fr); } }

/* v31: the rouble amount beside a dollar price (Russian pages; a fixed rate) */
.rub8 { display: block; margin-top: 4px; color: var(--muted); font: 500 13px var(--font); letter-spacing: 0; }
.pc8-price .rub8 { flex-basis: 100%; }
.calc9-t td .rub8 { font-size: 11px; }
.pc8-price { flex-wrap: wrap; row-gap: 2px; } .pc8-price .rub8 { flex-basis: 100%; margin-top: 2px; }

/* v32: the partners' ladder -- up to half of our profit by the referrals' turnover */
.lad9 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 8px 0 0; padding: 0; list-style: none; counter-reset: none; }
.lad9 li { display: grid; gap: 6px; padding: 22px 20px; border: 1px solid var(--line-strong); border-radius: 18px; background: linear-gradient(180deg, #141416, #0d0d0f); }
.lad9 li:last-child { border-color: rgba(126, 226, 168, 0.5); background: radial-gradient(120% 120% at 0% 0%, rgba(126, 226, 168, 0.1), transparent 60%), #0e0e10; }
.lad9 b { color: #f5f5f7; font-size: clamp(30px, 3vw, 42px); font-weight: 700; letter-spacing: -0.03em; }
.lad9 li:last-child b { color: #7ee2a8; }
.lad9 span { color: var(--ink-2); font-size: 14px; }
.lad9-note { margin-top: 16px; }
@media (max-width: 860px) { .lad9 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* v33: the trial line above the plans */
.trial8 { display: inline-flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; padding: 10px 16px; border: 1px solid rgba(126, 226, 168, 0.4); border-radius: 999px; background: rgba(126, 226, 168, 0.06); color: var(--ink-2); font-size: 14px; }
.trial8 b { color: #7ee2a8; font-weight: 600; }
@media (max-width: 640px) { .trial8 { border-radius: 14px; } }

/* v34: ready-made scenarios (copy and hand to an agent) and money without surprises */
.rc8-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.rc8-card { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 22px; border: 1px solid var(--line-strong); border-radius: 18px; background: linear-gradient(180deg, #131315, #0d0d0f); }
.rc8-card h3 { margin: 0; color: #f5f5f7; font-size: 18px; }
.rc8-card p { margin: 0; color: var(--ink-2); font-size: 14px; }
.rc8-tag { align-self: flex-start; padding: 3px 10px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--ink-2); font-size: 12px; }
.rc8-code { position: relative; margin-top: auto; padding-bottom: 48px; }
.rc8-code pre { margin: 8px 0 0; padding: 14px; max-height: 210px; overflow: auto; border-radius: 12px; background: #09090b; color: #d9d9de; font-size: 12.5px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.rc8-code .copy { position: absolute; top: auto; right: 10px; bottom: 10px; }
.mn8-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.mn8-list li { display: grid; gap: 6px; padding: 20px; border: 1px solid var(--line-strong); border-radius: 16px; }
.mn8-list b { color: #f5f5f7; font-size: 16px; }
.mn8-list span { color: var(--ink-2); font-size: 14px; }
.pl8-anchor { margin-top: 18px; }
@media (max-width: 980px) { .rc8-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .rc8-grid, .mn8-list { grid-template-columns: minmax(0, 1fr); } }

/* v35: the home's blocks on the other pages */
main:not(.home8) .s8 { padding: clamp(56px, 7vw, 104px) 0; border-top: 1px solid var(--line); }
main:not(.home8) .tr8 { padding: clamp(32px, 4vw, 48px) 0; border-top: 1px solid var(--line); }
.who8 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* v36: the Keydan Editor page */
.ed9-feats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ed9-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: ed9; }
.ed9-steps li { display: grid; gap: 6px; padding: 20px; border: 1px solid var(--line-strong); border-radius: 16px; counter-increment: ed9; }
.ed9-steps li::before { content: counter(ed9, decimal-leading-zero); color: var(--ink-2); font-size: 13px; }
.ed9-steps b { color: #f5f5f7; font-size: 16px; }
.ed9-steps span { color: var(--ink-2); font-size: 14px; }
@media (max-width: 860px) { .ed9-feats, .ed9-steps { grid-template-columns: minmax(0, 1fr); } }
