/* Nevabase — single light, editorial design system in the exa.ai voice.
   Tokens: white canvas, near-black type, hairline borders, one brand blue,
   a serif display face for headlines, Geist for UI and Geist Mono for labels / code. */
:root {
  --bg: #ffffff;
  --bg-elev: #faf9f7;
  --bg-card: #ffffff;
  --bg-soft: #f2f0ef;
  --bg-panel: #f5f5f4;
  --border: #e5e5e5;
  --border-faint: #efefef;
  --border-strong: #d4d4d4;
  --text: #171717;
  --text-2: #404040;
  --text-muted: #58544e;
  --text-dim: #787572;
  --ink: #141312;
  --accent: #1f40ed;
  --accent-strong: #0d2189;
  --accent-soft: #e7ebfd;
  --accent-ring: rgba(31, 64, 237, .25);
  --green: #1a9c5b;
  --amber: #d98a00;
  --red: #d32f2f;
  --radius: 4px;
  --radius-sm: 2px;
  --radius-lg: 8px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06);
  --font: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --mono: "Geist Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --maxw: 1296px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: var(--text); text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
p a { color: var(--accent-strong); }
code, pre, .mono { font-family: var(--mono); font-size: 0.86em; }
code { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 4px; padding: 0 4px; }
pre { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px; overflow: auto; line-height: 1.55; margin: 0; }
pre code { font-size: 12.5px; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { line-height: 1.1; margin: 0 0 12px; letter-spacing: -0.03em; font-weight: 500; }
h1, h2 { font-family: var(--serif); font-weight: 400; font-optical-sizing: auto; }
h1 { font-size: clamp(38px, 5.6vw, 72px); }
h2 { font-size: clamp(30px, 3.4vw, 46px); }
h3 { font-size: 17px; font-weight: 500; letter-spacing: -0.01em; }
h1 span, h2 span.heat { color: var(--accent); }
p { margin: 0 0 12px; }
.muted { color: var(--text-muted); }
.dim { color: var(--text-dim); }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
.label { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--text-dim); }
.label.heat { color: var(--accent); }
.lead { font-size: clamp(16px, 1.4vw, 18.5px); color: var(--text-dim); }

/* framed content column: hairline rules on both sides, like a spreadsheet margin */
.frame { max-width: var(--maxw); margin: 0 auto; border-left: 1px solid var(--border); border-right: 1px solid var(--border); background: var(--bg-card); }
.frame > section, .frame > header { border-bottom: 1px solid var(--border); position: relative; }
.frame > section::after, .frame > header::after { content: ""; position: absolute; left: 50%; bottom: -1px; width: 100vw; transform: translateX(-50%); border-bottom: 1px solid var(--border-faint); pointer-events: none; z-index: 0; }
.frame .inner { padding: 72px 40px; }
.frame .inner.tight { padding: 40px; }
.section-head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.section-head .label { display: block; margin-bottom: 14px; }
.section-head p { color: var(--text-muted); font-size: 16px; }
.divider-x { display: grid; grid-template-columns: 1fr; }
.grid-lines > * { border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.grid-lines { border-top: 1px solid var(--border); border-left: 1px solid var(--border); }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border-faint); }
.nav .wrap { display: flex; align-items: center; gap: 20px; height: 56px; position: relative; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 19px; color: var(--text); letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand .logo { width: 20px; height: 20px; border-radius: 2px; background: var(--accent); display: grid; place-items: center; color: #fff; font-size: 12px; font-weight: 700; font-family: var(--mono); }
.nav-links { display: flex; gap: 4px; position: absolute; left: 50%; transform: translateX(-50%); }
.nav-links > a, .nav-links .dd > button { display: inline-flex; align-items: center; gap: 4px; height: 32px; color: var(--text-2); padding: 0 12px; border-radius: 4px; font: inherit; font-size: 15px; font-weight: 400; background: none; border: 0; cursor: pointer; white-space: nowrap; }
.nav-links > a:hover, .nav-links > a.active, .nav-links .dd:hover > button { color: var(--text); background: var(--bg-soft); text-decoration: none; }
.nav-links .dd { position: relative; }
.nav-links .dd > button svg { width: 10px; height: 10px; opacity: .6; }
.nav-links .dd .menu { display: none; position: absolute; top: 36px; left: 0; min-width: 240px; background: #fff; border: 1px solid var(--border); border-radius: 6px; box-shadow: var(--shadow); padding: 6px; z-index: 30; }
.nav-links .dd:hover .menu, .nav-links .dd:focus-within .menu { display: block; }
.nav-links .dd .menu a { display: block; padding: 8px 10px; border-radius: 4px; font-size: 14px; color: var(--text); }
.nav-links .dd .menu a:hover { background: var(--bg-soft); text-decoration: none; }
.nav-links .dd .menu .k { display: block; padding: 10px 10px 4px; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-dim); }
.nav .spacer { flex: 1; }
.nav .right { display: flex; gap: 8px; align-items: center; }
.nav .status-pill { display: none; }

/* buttons — black primary, warm-grey secondary, 4px radius */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: var(--radius); border: 1px solid transparent; background: var(--bg-soft); color: var(--text); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; transition: background .15s, border-color .15s, color .15s, opacity .15s; white-space: nowrap; line-height: 1; }
.btn:hover { background: #e8e5e2; text-decoration: none; }
.btn.primary, .btn.dark { background: #000; border-color: #000; color: #fff; }
.btn.primary:hover, .btn.dark:hover { background: #1f2937; border-color: #1f2937; }
.btn.blue { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.blue:hover { background: #1733c4; }
.btn.outline { background: transparent; border-color: var(--border-strong); }
.btn.outline:hover { background: var(--bg-soft); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--text-muted); }
.btn.ghost:hover { color: var(--text); background: var(--bg-soft); }
.btn.sm { height: 28px; padding: 0 10px; font-size: 12.5px; }
.btn.lg { height: 40px; padding: 0 20px; font-size: 15px; }
.btn.danger { color: var(--red); }
.btn:disabled { opacity: .5; cursor: default; }
.btn .arr { font-size: 16px; line-height: 1; transition: transform .2s; }
.btn:hover .arr { transform: translateX(2px); }
.icon-btn { width: 34px; height: 34px; padding: 0; justify-content: center; }
.nav .nav-toggle { display: none; }

/* hero */
.hero { padding: 96px 0 64px; text-align: center; position: relative; overflow: hidden; }
.hero > * { position: relative; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 8px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg-card); font-family: var(--mono); font-size: 12px; color: var(--text-muted); margin-bottom: 26px; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.eyebrow b { color: var(--text); font-weight: 500; }
.hero h1 { max-width: 860px; margin: 0 auto 18px; }
.hero p.lead { max-width: 640px; margin: 0 auto 30px; }
.hero .ctas { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.gradient-text { color: var(--accent); }

/* search box */
.searchbox { display: flex; align-items: center; gap: 8px; max-width: 760px; margin: 0 auto; padding: 6px 6px 6px 16px; background: var(--bg-card); border: 1px solid var(--border-strong); border-radius: 14px; box-shadow: var(--shadow); transition: border-color .15s, box-shadow .15s; }
.searchbox:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-ring); }
.searchbox input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--text); font: inherit; font-size: 15px; padding: 9px 0; }
.searchbox input::placeholder { color: var(--text-dim); }
.searchbox select { background: var(--bg-elev); color: var(--text-muted); border: 1px solid var(--border); border-radius: 8px; padding: 8px 8px; font: inherit; font-size: 13px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 16px; }
.chip { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg-card); color: var(--text-muted); font-size: 13px; cursor: pointer; transition: all .15s; }
.chip:hover { color: var(--text); border-color: var(--text); }

.tok-k { color: var(--accent); } .tok-s { color: #b45309; } .tok-c { color: var(--text-dim); } .tok-n { color: #6d28d9; }

/* sections */
section.block { padding: 80px 0; border-top: 1px solid var(--border); }
section.block.soft { background: var(--bg-elev); }
.grid { display: grid; gap: 16px; }
.grid > *, .two-col > *, .search-layout > *, .docs-layout > *, .dash-layout > *, .plans > * { min-width: 0; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid.gapless { gap: 0; border: 1px solid var(--border); border-radius: 0; overflow: hidden; }
.grid.gapless > .card { border: 0; border-radius: 0; box-shadow: -1px -1px 0 0 var(--border); }
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.card h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.card .ic { width: 30px; height: 30px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: 15px; flex: 0 0 auto; }
.card .ep { font-family: var(--mono); font-size: 13px; color: var(--accent); margin-bottom: 10px; display: block; }
.stat { text-align: left; padding: 28px 24px; }
.stat .num { font-family: var(--mono); font-size: 40px; font-weight: 400; letter-spacing: -0.04em; line-height: 1; margin-bottom: 8px; }
.stat .num small { font-size: 18px; color: var(--text-dim); letter-spacing: 0; }
.stat .lbl { color: var(--text-muted); font-size: 13.5px; }
.stat .label { display: block; margin-bottom: 14px; }
.two-col { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 12px; }
.tabs button { background: transparent; border: 0; color: var(--text-muted); padding: 8px 12px; font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button.active { color: var(--text); border-bottom-color: var(--accent); }
.tabpane { display: none; } .tabpane.active { display: block; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 500; font-family: var(--mono); background: var(--accent-soft); color: var(--accent-strong); letter-spacing: .02em; }
.badge.green { background: rgba(26,156,91,.12); color: var(--green); }
.badge.amber { background: rgba(217,138,0,.14); color: var(--amber); }
.badge.red { background: rgba(224,54,43,.12); color: var(--red); }
.check-list { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.check-list li { padding-left: 24px; position: relative; color: var(--text-2); }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 600; }
.usecase { display: block; padding: 22px 24px; color: var(--text); }
.usecase:hover { text-decoration: none; background: var(--bg-elev); }
.usecase .label { margin-bottom: 10px; display: block; }
.usecase h3 { margin-bottom: 6px; }
.usecase p { color: var(--text-muted); font-size: 14px; margin: 0; }
.faq { max-width: 760px; margin: 0 auto; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; padding: 18px 0; font-size: 16px; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--text-dim); font-family: var(--mono); font-size: 18px; }
.faq details[open] summary::after { content: "–"; }
.faq .a { padding: 0 0 18px; color: var(--text-muted); max-width: 680px; }
.cta-band { text-align: center; padding: 80px 0; background: var(--text); color: var(--bg); }
.cta-band h2 { color: var(--bg); }
.cta-band p { color: color-mix(in srgb, var(--bg) 70%, transparent); }
.cta-band .btn { border-color: transparent; }
.cta-band .btn.outline { background: transparent; color: var(--bg); border-color: color-mix(in srgb, var(--bg) 35%, transparent); }
.cta-band .btn.outline:hover { background: color-mix(in srgb, var(--bg) 10%, transparent); }

/* footer — full-bleed brand blue with a faint grain */
footer { position: relative; color: #fff; background: var(--accent); padding: 88px 0 40px; font-size: 13px; overflow: hidden; isolation: isolate; }
footer::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .18; mix-blend-mode: soft-light; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
footer .co { font-family: var(--serif); font-size: 18px; font-weight: 300; text-transform: uppercase; letter-spacing: -0.01em; margin-bottom: 14px; }
footer .big { font-family: var(--serif); font-size: clamp(36px, 5.2vw, 76px); font-weight: 300; letter-spacing: -0.03em; line-height: 1.05; margin: 0 0 64px; }
footer .cols { display: grid; grid-template-columns: repeat(5, 1fr); gap: 32px; padding-top: 44px; border-top: 1px solid rgba(255,255,255,.28); margin-bottom: 64px; }
footer .cols h4 { font-family: var(--serif); font-size: 20px; font-weight: 300; letter-spacing: -0.01em; color: #fff; margin: 0 0 14px; }
footer .cols a { display: block; color: rgba(255,255,255,.82); padding: 5px 0; font-size: 13px; }
footer .cols a:hover { color: #fff; text-decoration: none; }
footer .bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: rgba(255,255,255,.6); }
footer .bottom a { color: rgba(255,255,255,.6); margin-right: 22px; }
footer .bottom a:hover { color: #fff; text-decoration: none; }

/* forms */
label.field { display: block; font-size: 12.5px; color: var(--text-muted); margin-bottom: 4px; font-weight: 500; }
input.input, select.input, textarea.input { width: 100%; background: var(--bg-card); border: 1px solid var(--border-strong); border-radius: 8px; padding: 8px 10px; color: var(--text); font: inherit; font-size: 14px; outline: 0; transition: border-color .15s, box-shadow .15s; }
input.input:focus, select.input:focus, textarea.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.row { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; }
.row > * { flex: 1; min-width: 140px; }
.row > .fixed { flex: 0 0 auto; }

/* search page */
.search-layout { display: grid; grid-template-columns: 260px 1fr; gap: 28px; padding: 28px 0 60px; align-items: start; }
.sidebar { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 14px; }
.sidebar .card { padding: 16px; }
.sidebar h4 { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-dim); margin-bottom: 10px; font-weight: 500; }
.sidebar .field-group { margin-bottom: 10px; }
.segmented { display: inline-flex; background: var(--bg-panel); border: 1px solid var(--border); border-radius: 6px; padding: 2px; }
.segmented button { border: 1px solid transparent; background: transparent; color: var(--text-dim); padding: 5px 11px; border-radius: 4px; font: inherit; font-size: 13px; cursor: pointer; }
.segmented button.active { background: #fff; color: var(--text); border-color: var(--border); box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.results-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 12px 0 8px; color: var(--text-muted); font-size: 13px; flex-wrap: wrap; }
.result { padding: 16px 0; border-bottom: 1px solid var(--border); }
.result .url { font-size: 12.5px; color: var(--text-dim); display: flex; align-items: center; gap: 8px; overflow: hidden; font-family: var(--mono); }
.result .url img { width: 14px; height: 14px; border-radius: 3px; }
.result .url span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.result .title { font-size: 17px; font-weight: 500; margin: 4px 0; display: block; color: var(--text); letter-spacing: -0.01em; }
.result .title:hover { color: var(--accent-strong); text-decoration: none; }
.result .hl { color: var(--text-muted); font-size: 14px; margin: 4px 0 8px; }
.result .hl mark { background: var(--accent-soft); color: var(--text); border-radius: 3px; padding: 0 2px; }
.result .meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 12px; color: var(--text-dim); }
.result .meta a { color: var(--text-muted); }
.result .meta .score { font-family: var(--mono); }
.answer-box { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; }
.answer-box .ans { font-size: 15.5px; white-space: pre-wrap; }
.answer-box .cite { display: inline-block; font-family: var(--mono); font-size: 11px; background: var(--accent-soft); color: var(--accent-strong); border-radius: 4px; padding: 0 5px; margin: 0 1px; }
.cites { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin-top: 14px; }
.cites a { display: block; background: var(--bg-elev); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; font-size: 12.5px; color: var(--text-muted); overflow: hidden; }
.cites a b { display: block; color: var(--text); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.empty { text-align: center; color: var(--text-dim); padding: 60px 0; }
.spinner { width: 18px; height: 18px; border: 2px solid var(--border-strong); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }
.drawer { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius-sm); margin-top: 10px; }
.drawer summary { cursor: pointer; padding: 8px 12px; font-size: 13px; color: var(--text-muted); }
.drawer pre { border: 0; border-top: 1px solid var(--border); border-radius: 0 0 var(--radius-sm) var(--radius-sm); max-height: 360px; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-size: 13.5px; box-shadow: var(--shadow); z-index: 50; opacity: 0; transition: opacity .2s; pointer-events: none; }
.toast.show { opacity: 1; }

/* docs */
.docs-layout { display: grid; grid-template-columns: 220px 1fr; gap: 36px; padding: 28px 0 80px; align-items: start; }
.docs-nav { position: sticky; top: 76px; font-size: 13.5px; }
.docs-nav a { display: block; color: var(--text-muted); padding: 5px 0; }
.docs-nav a.sub { padding-left: 12px; font-size: 13px; }
.docs-nav a:hover { color: var(--text); text-decoration: none; }
.docs h2 { margin-top: 48px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 28px; }
.docs h3 { margin-top: 28px; }
.docs table { width: 100%; border-collapse: collapse; font-size: 13.5px; margin: 12px 0 20px; }
.docs th, .docs td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.docs th { color: var(--text-dim); font-weight: 500; font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; }
.docs td code { color: var(--accent-strong); }
.endpoint { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 14px; background: var(--bg-elev); border: 1px solid var(--border); border-radius: 8px; padding: 6px 12px; margin: 8px 0 14px; }
.endpoint .m { color: var(--accent); font-weight: 600; font-size: 12px; }
.docs pre { margin: 10px 0 18px; }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.plan { position: relative; padding: 28px; }
.plan.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset, var(--shadow); }
.plan h3 { font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); }
.plan .price { font-family: var(--serif); font-size: 48px; font-weight: 400; letter-spacing: -0.04em; margin: 8px 0; line-height: 1; }
.plan .price small { font-size: 14px; color: var(--text-muted); font-weight: 400; letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 22px; }
.plan li { padding: 7px 0; border-top: 1px solid var(--border); font-size: 14px; color: var(--text-2); }
.plan li::before { content: "✓ "; color: var(--accent); }
.price-table td:first-child { color: var(--text); }

/* dashboard */
.dash-layout { display: grid; grid-template-columns: 200px 1fr; gap: 28px; padding: 28px 0 80px; align-items: start; }
.dash-nav { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 2px; }
.dash-nav button { text-align: left; background: transparent; border: 0; color: var(--text-muted); padding: 8px 10px; border-radius: 8px; font: inherit; font-size: 14px; cursor: pointer; }
.dash-nav button.active, .dash-nav button:hover { background: var(--bg-soft); color: var(--text); }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.kv .card { padding: 14px 16px; }
.kv .num { font-family: var(--mono); font-size: 26px; font-weight: 400; letter-spacing: -0.03em; }
.kv .lbl { font-size: 12px; color: var(--text-dim); font-family: var(--mono); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.tbl th, table.tbl td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--border); }
table.tbl th { color: var(--text-dim); font-weight: 500; font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; }
table.tbl td.mono { font-size: 12.5px; }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 120px; padding-top: 10px; }
.bars .bar { flex: 1; background: var(--accent); border-radius: 2px 2px 0 0; min-height: 2px; opacity: .85; position: relative; }
.bars .bar:hover { opacity: 1; }
.bars .bar span { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); font-size: 10px; color: var(--text-dim); white-space: nowrap; display: none; }
.bars .bar:hover span { display: block; }
.keybox { background: var(--accent-soft); border: 1px dashed var(--accent); border-radius: 8px; padding: 12px; font-family: var(--mono); font-size: 13px; word-break: break-all; margin: 10px 0; }
.dash-section { display: none; } .dash-section.active { display: block; }

@media (max-width: 1000px) {
  .demo .panes { grid-template-columns: 1fr; }
  .demo .pane + .pane { border-left: 0; border-top: 1px solid var(--border); }
  .demo pre { height: auto; max-height: 260px; }
  footer .cols { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 900px) {
  .grid.cols-3, .grid.cols-4, .plans { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .search-layout, .docs-layout, .dash-layout { grid-template-columns: 1fr; }
  .sidebar, .docs-nav, .dash-nav { position: static; }
  .docs-nav { display: none; }
  .dash-nav { flex-direction: row; flex-wrap: wrap; }
  .frame .inner, .frame .inner.tight { padding: 48px 20px; }
  .nav .status-pill { display: none; }
}
@media (max-width: 640px) {
  .grid.cols-3, .grid.cols-4, .grid.cols-2, .plans { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-links.open { display: flex; position: absolute; top: 60px; left: 0; right: 0; flex-direction: column; background: var(--bg-card); border-bottom: 1px solid var(--border); padding: 8px 16px 12px; }
  .nav .nav-toggle { display: inline-flex; }
  .nav .nav-auth .btn.ghost, .demo .bar .label { display: none; }
  .nav .wrap { gap: 10px; }
  .hero { padding: 56px 0 40px; }
  .searchbox select { display: none; }
  .frame { border-left: 0; border-right: 0; }
  .frame .inner, .frame .inner.tight { padding: 40px 16px; }
  footer .cols { grid-template-columns: 1fr; }
  section.block { padding: 56px 0; }
}

/* ---- account / login ------------------------------------------------------- */
.nav-auth { display: inline-flex; gap: 8px; align-items: center; }
.account { position: relative; }
.account .avatar { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border-strong); background: var(--accent-soft); color: var(--accent-strong); font: inherit; font-weight: 600; cursor: pointer; padding: 0; overflow: hidden; display: grid; place-items: center; }
.account .avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.account .menu { display: none; position: absolute; right: 0; top: 42px; min-width: 220px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 6px; padding: 6px; box-shadow: var(--shadow); z-index: 30; }
.account .menu.open { display: block; }
.account .menu .who { display: flex; flex-direction: column; padding: 8px 10px 10px; border-bottom: 1px solid var(--border); margin-bottom: 4px; font-size: 13px; }
.account .menu .who span { font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
.account .menu a, .account .menu button { display: block; width: 100%; text-align: left; padding: 8px 10px; border-radius: 8px; border: 0; background: none; color: var(--text); font: inherit; font-size: 13.5px; cursor: pointer; }
.account .menu a:hover, .account .menu button:hover { background: var(--bg-soft); text-decoration: none; }
.login-wrap { max-width: 420px; margin: 56px auto; padding: 0 16px; }
.login-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; padding: 28px; box-shadow: var(--shadow); }
.login-card h1 { font-size: 24px; margin: 0 0 6px; }
.login-card .stack { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.login-card .stack .input { width: 100%; box-sizing: border-box; }
.btn.wide { width: 100%; justify-content: center; }
.btn.oauth svg { width: 18px; height: 18px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--text-dim); font-size: 12.5px; margin: 16px 0 4px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.login-msg { font-size: 13px; margin-top: 12px; min-height: 18px; }
.login-msg.err { color: var(--red); }
.login-msg.ok { color: var(--green); }
.login-links { display: flex; justify-content: space-between; font-size: 13px; margin-top: 14px; }
.login-links a { cursor: pointer; color: var(--accent-strong); }
.auth-gate { text-align: center; padding: 60px 20px; }

/* ---- landing page (exa.ai voice) ---------------------------------------- */
.band { width: 100vw; margin-left: calc(50% - 50vw); }
.announce { position: relative; background: var(--accent-soft); color: var(--accent); text-align: center; font-size: 14px; font-weight: 500; padding: 8px 44px; }
.announce a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.announce .x { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--accent); cursor: pointer; font-size: 16px; padding: 4px 6px; }
.announce.hide { display: none; }

/* hero */
.hero { padding: 150px 0 40px; text-align: center; position: relative; }
.hero h1 { max-width: 880px; margin: 0 auto 22px; }
.hero p.lead { max-width: 640px; margin: 0 auto 30px; }
.hero .ctas { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 42px; }

/* hero widget: query card that sits above a settings/results panel */
.hw-wrap { max-width: 704px; margin: 0 auto; text-align: left; position: relative; }
.hw { position: relative; z-index: 2; background: #fff; border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 2px 6px rgba(0,0,0,.04), 0 18px 40px rgba(0,0,0,.07); transition: box-shadow .15s, border-color .15s; }
.hw:focus-within { border-color: var(--border-strong); box-shadow: 0 0 0 4px rgba(31,64,237,.08), 0 18px 40px rgba(0,0,0,.08); }
.hw .q { display: block; width: 100%; border: 0; outline: 0; background: transparent; font: inherit; font-size: 17px; color: var(--text); padding: 16px 16px 10px; }
.hw .q::placeholder { color: var(--text-dim); }
.hw .bar { display: flex; align-items: center; gap: 8px; padding: 0 12px 12px; }
.hw .seg { display: inline-flex; background: var(--bg-panel); border: 1px solid var(--border); border-radius: 6px; padding: 2px; }
.hw .seg button { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border: 1px solid transparent; border-radius: 4px; background: transparent; font: inherit; font-size: 14px; font-weight: 500; color: var(--text-dim); cursor: pointer; }
.hw .seg button svg { width: 14px; height: 14px; }
.hw .seg button.active { background: #fff; border-color: var(--border); color: var(--text); }
.hw .seg button.active .shimmer { animation: none; -webkit-text-fill-color: initial; background: none; color: var(--text); }
.shimmer { background: linear-gradient(90deg, #8a8783 0%, #171717 45%, #8a8783 90%); background-size: 220% auto; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: shimmer 2.6s linear infinite; }
@keyframes shimmer { to { background-position: -220% center; } }
.hw .bar .sp { flex: 1; }
.hw .ib { width: 34px; height: 34px; border-radius: 6px; border: 1px solid var(--border); background: var(--bg-soft); color: var(--text-2); display: grid; place-items: center; cursor: pointer; font: inherit; padding: 0; }
.hw .ib:hover { background: #e8e5e2; }
.hw .go { width: 34px; height: 34px; border-radius: 6px; border: 0; background: var(--accent); color: #fff; display: grid; place-items: center; cursor: pointer; padding: 0; transition: transform .15s, background .15s; }
.hw .go:hover { background: #1733c4; transform: translateY(-1px); }
.hw .go svg, .hw .ib svg { width: 16px; height: 16px; }
.hw-panel { position: relative; z-index: 1; margin: -10px 8px 0; background: var(--bg-panel); border: 1px solid var(--border); border-top: 0; border-radius: 0 0 8px 8px; display: grid; grid-template-columns: 252px 1fr; min-height: 270px; }
.hw-panel > div { padding: 24px 12px 12px; min-width: 0; }
.hw-panel > div + div { border-left: 1px solid var(--border); }
.hw-panel .k { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); margin: 0 0 6px; display: block; }
.hw-panel .k + .k, .hw-panel .grp + .k { margin-top: 14px; }
.hw-panel .grp { display: inline-flex; background: #ebeae7; border: 1px solid var(--border); border-radius: 6px; padding: 2px; max-width: 100%; }
.hw-panel .grp button { display: inline-flex; align-items: baseline; gap: 4px; height: 24px; padding: 0 8px; border: 1px solid transparent; border-radius: 4px; background: transparent; font: inherit; font-size: 12.5px; color: var(--text-dim); cursor: pointer; white-space: nowrap; }
.hw-panel .grp button small { font-family: var(--mono); font-size: 9px; color: var(--text-dim); opacity: .8; }
.hw-panel .grp button.active { background: #fff; border-color: var(--border); color: var(--text); }
.hw-panel .grp button.active small { color: var(--text); }
.hw-panel .cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.hw-panel .cats button { height: 24px; border: 1px solid var(--border); border-radius: 4px; background: #ebeae7; font: inherit; font-size: 12.5px; color: var(--text-dim); cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 8px; }
.hw-panel .cats button.active { background: #fff; color: var(--text); }
.hw-panel .foot { margin-top: auto; display: flex; gap: 6px; padding-top: 22px; }
.hw-panel .left { display: flex; flex-direction: column; }
.hw-panel .foot .btn { height: 28px; font-size: 12px; background: #fff; border-color: var(--border); }
.hw-panel .out { display: flex; flex-direction: column; }
.hw-panel .out .head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hw-panel .res { flex: 1; margin-top: 10px; font-size: 13px; overflow: auto; max-height: 340px; }
.hw-panel .res .hint { color: var(--text-dim); text-align: center; padding: 60px 20px 20px; font-size: 13px; }
.hw-panel .res .hint .ex { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 12px; }
.hw-panel .res .hint .ex button { border: 1px solid var(--border); background: #fff; border-radius: 999px; padding: 4px 10px; font: inherit; font-size: 12px; color: var(--text-2); cursor: pointer; }
.hw-panel .res .hint .ex button:hover { border-color: var(--text-dim); }
.hw-panel .res .r { display: block; padding: 8px 8px; border-radius: 4px; color: var(--text); }
.hw-panel .res .r:hover { background: #fff; text-decoration: none; }
.hw-panel .res .r .d { font-family: var(--mono); font-size: 11px; color: var(--text-dim); display: flex; gap: 8px; align-items: center; }
.hw-panel .res .r .d img { width: 12px; height: 12px; border-radius: 2px; }
.hw-panel .res .r .t { font-weight: 500; font-size: 14px; margin: 2px 0; }
.hw-panel .res .r .h { color: var(--text-muted); font-size: 12.5px; line-height: 1.45; }
.hw-panel .res .r .h mark { background: var(--accent-soft); color: var(--text); border-radius: 2px; padding: 0 2px; }
.hw-panel .res .ans { padding: 8px; font-size: 14px; line-height: 1.55; white-space: pre-wrap; }
.hw-panel .res .ans .cite { display: inline-block; font-family: var(--mono); font-size: 10.5px; background: #fff; border: 1px solid var(--border); border-radius: 3px; padding: 0 4px; margin: 0 1px; color: var(--accent); }
.hw-panel .res pre { background: var(--ink); color: #e5e5e5; border: 0; border-radius: 6px; font-size: 11.5px; line-height: 1.5; max-height: 320px; }
.hw-panel .res pre .tok-k { color: #93c5fd; } .hw-panel .res pre .tok-s { color: #fde68a; } .hw-panel .res pre .tok-n { color: #c4b5fd; }
.hw-panel .res .err { color: var(--red); padding: 10px 8px; font-size: 13px; }
.hw-panel .meta { font-family: var(--mono); font-size: 10.5px; color: var(--text-dim); }
.hw-panel .spin { display: inline-block; width: 12px; height: 12px; border: 2px solid var(--border-strong); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -2px; margin-right: 6px; }

/* sections */
.sec { padding-top: 96px; padding-bottom: 96px; }
.sec.tight { padding-top: 64px; padding-bottom: 64px; }
.eyebrow-lbl { font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 14px; display: block; }
.sec-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.sec-head p { color: var(--text-muted); font-size: 17px; max-width: 520px; margin: 0 auto; }
.split-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.split-head h2 { margin: 0; max-width: 20ch; }

/* logo-wall style grid of capability marks */
.marks { display: grid; grid-template-columns: repeat(6, 1fr); border: 1px solid var(--border); }
.marks a { position: relative; display: flex; align-items: center; justify-content: center; height: 124px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); color: var(--text); font-weight: 500; font-size: 17px; letter-spacing: -0.01em; transition: background .15s; }
.marks a:nth-child(6n) { border-right: 0; }
.marks a:nth-last-child(-n+6) { border-bottom: 0; }
.marks a:hover { background: var(--bg-elev); text-decoration: none; }
.marks a .arr { position: absolute; top: 16px; right: 18px; color: var(--text-dim); font-size: 15px; opacity: 0; transition: opacity .15s, transform .2s; }
.marks a:hover .arr { opacity: 1; transform: rotate(-45deg); }
.marks a .mono { font-family: var(--mono); font-size: 14px; font-weight: 400; }

/* benchmarks band: dark copy column + light chart column */
.bench { display: grid; grid-template-columns: minmax(300px, 34.6%) 1fr; }
.bench .copy { background: var(--ink); color: #fff; padding: 128px 48px 72px 72px; }
.bench .copy .eyebrow-lbl { color: rgba(255,255,255,.55); }
.bench .copy h2 { color: #fff; font-size: clamp(30px, 2.8vw, 42px); max-width: 12ch; margin-bottom: 18px; }
.bench .copy > p { color: rgba(255,255,255,.62); font-size: 17px; line-height: 1.5; max-width: 34ch; margin-bottom: 44px; }
.bench .tabs-v { list-style: none; margin: 0; padding: 0; }
.bench .tabs-v li { border-left: 1px solid rgba(255,255,255,.2); padding: 10px 0 10px 22px; margin-bottom: 18px; cursor: pointer; transition: border-color .2s; }
.bench .tabs-v li.active { border-left-color: #fff; }
.bench .tabs-v li span { display: block; font-size: 18px; font-weight: 500; color: rgba(255,255,255,.5); transition: color .2s; }
.bench .tabs-v li.active span { color: #fff; }
.bench .tabs-v li p { display: none; margin: 6px 0 0; font-size: 14px; line-height: 1.5; color: rgba(255,255,255,.6); max-width: 34ch; }
.bench .tabs-v li.active p { display: block; }
.bench .plot { background: #f6f5f3; padding: 56px 72px 56px 56px; position: relative; min-height: 560px; }
.bench .plot .legend { position: absolute; top: 56px; right: 72px; display: flex; gap: 18px; font-size: 14px; font-weight: 500; color: var(--text-2); }
.bench .plot .legend i { display: inline-block; width: 12px; height: 12px; border-radius: 2px; vertical-align: -1px; margin-right: 6px; }
.chart { width: 100%; height: 450px; margin-top: 30px; }
.chart svg { width: 100%; height: 100%; overflow: visible; display: block; }
.chart .grid-l { stroke: #d9d6d1; stroke-width: 1; }
.chart .ax { stroke: #b8b4ae; stroke-width: 1; }
.chart .tick { font-family: var(--font); font-size: 12px; fill: var(--text-dim); }
.chart .cat { font-family: var(--font); font-size: 14px; font-weight: 500; fill: var(--text-2); }
.chart .val { font-family: var(--mono); font-size: 12px; fill: var(--text); font-weight: 500; }
.chart .ylab { font-family: var(--font); font-size: 14px; font-weight: 500; fill: var(--text-2); }
.chart rect.b { transition: height .7s cubic-bezier(.2,.7,.2,1), y .7s cubic-bezier(.2,.7,.2,1); }
.chart rect.b:hover { opacity: .85; }
.chart .empty { font-family: var(--mono); font-size: 12px; fill: var(--text-dim); }
.chart-note { position: absolute; left: 56px; bottom: 26px; font-family: var(--mono); font-size: 11px; color: var(--text-dim); letter-spacing: .02em; }

/* product cards with generated visuals */
.prod { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.prod .vis { position: relative; height: 530px; border-radius: 2px; overflow: hidden; isolation: isolate; color: #fff; }
.prod .vis canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.vis.v1 { background: radial-gradient(120% 80% at 20% 100%, #0e5a3c 0%, #123f8f 45%, #4d87e7 100%); }
.vis.v2 { background: linear-gradient(180deg, #eaf2ff 0%, #8fb7f5 30%, #1f40ed 62%, #0d2189 100%); }
.vis.v3 { background: radial-gradient(120% 90% at 80% 0%, #0d2189 0%, #1f40ed 45%, #7aa7f0 100%); }
.vis .tag { position: absolute; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; background: #000; color: #fff; padding: 7px 12px; border-radius: 2px; }
.vis.v1 .tag.a { left: 52%; top: 32%; } .vis.v1 .tag.b { left: 70%; top: 26%; }
.vis.v2 .sheet { position: absolute; left: 24px; right: 24px; top: 64px; background: #fff; color: var(--text); padding: 22px 24px; border-radius: 2px; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.vis.v2 .sheet .l { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.vis.v2 .sheet .l i { width: 8px; height: 8px; background: var(--accent); display: inline-block; }
.vis.v2 .sheet h4 { font-family: var(--serif); font-size: 22px; font-weight: 400; margin: 0 0 10px; letter-spacing: -0.02em; }
.vis.v2 .sheet p { font-size: 13.5px; line-height: 1.5; color: var(--text-muted); margin: 0; max-height: 210px; overflow: hidden; }
.vis.v2 .sheet p mark { background: var(--accent-soft); color: var(--text); border-radius: 2px; padding: 0 2px; }
.vis.v2 .tag.c { left: 50%; transform: translateX(-50%); bottom: 26px; }
.vis .skl { height: 10px; background: var(--bg-soft); border-radius: 2px; margin: 8px 0; }
.vis.v3 .inp { position: absolute; left: 24px; right: 24px; top: 56px; background: #fff; color: var(--text); font-size: 15px; padding: 13px 16px; border-radius: 2px; box-shadow: 0 10px 30px rgba(0,0,0,.2); white-space: nowrap; overflow: hidden; }
.vis.v3 .inp::after { content: ""; display: inline-block; width: 1px; height: 16px; background: var(--text); vertical-align: -3px; margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.vis.v3 pre { position: absolute; left: 24px; right: 24px; top: 118px; bottom: 56px; margin: 0; background: #000; color: #fff; border: 0; border-radius: 2px; font-size: 11.5px; line-height: 1.55; padding: 14px 16px; overflow: hidden; }
.vis.v3 pre .tok-k { color: #93c5fd; } .vis.v3 pre .tok-s { color: #fff; } .vis.v3 pre .tok-n { color: #c4b5fd; }
.prod h3 { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; margin: 28px 0 12px; line-height: 1.15; }
.prod h3 .swap { display: inline-block; position: relative; color: var(--accent); }
.prod p { font-size: 17px; line-height: 1.45; color: var(--text-muted); margin: 0 0 16px; }
.prod .btn { background: var(--bg-soft); }
.prod .proof { margin-top: 32px; border: 1px solid var(--border); padding: 20px 18px; background: #fff; }
.prod .proof .ep { font-family: var(--mono); font-size: 13px; color: var(--text); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.prod .proof .ep b { color: var(--accent); font-weight: 500; }
.prod .proof p { font-size: 14.5px; margin: 0; }

/* enterprise security band */
.sec-dark { background: var(--ink); color: #fff; padding: 96px 0; }
.sec-dark h2 { color: #fff; font-size: clamp(30px, 2.8vw, 42px); margin-bottom: 12px; }
.sec-dark .lnk { display: inline-flex; align-items: center; gap: 8px; color: rgba(255,255,255,.75); font-size: 15px; margin-bottom: 72px; }
.sec-dark .lnk:hover { color: #fff; text-decoration: none; }
.comp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 72px 40px; }
.comp .ic { width: 95px; height: 95px; border: 1px solid rgba(255,255,255,.35); border-radius: 2px; display: grid; place-items: center; margin-bottom: 26px; color: #fff; }
.comp .ic svg { width: 56px; height: 56px; stroke: #fff; fill: none; stroke-width: 1.2; }
.comp p { font-size: 15px; line-height: 1.5; color: rgba(255,255,255,.62); margin: 0; max-width: 34ch; }
.comp p b { color: #fff; font-weight: 500; }
.comp .badge { margin-left: 8px; background: rgba(255,255,255,.12); color: rgba(255,255,255,.8); }

/* index scale section: drifting particle field + asymmetric stat grid */
.scale { position: relative; overflow: clip; padding: 132px 0 80px; }
.scale .drift { position: absolute; top: 0; bottom: 0; left: 0; width: 100%; pointer-events: none; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 90%, transparent); }
.scale .top { position: relative; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.15fr); gap: 24px; min-height: 340px; margin-bottom: 96px; }
.scale .copy { max-width: 470px; }
.scale .copy h2 { margin-bottom: 20px; }
.scale .copy p { color: var(--text-muted); font-size: 16px; line-height: 1.55; max-width: 28rem; margin-bottom: 28px; }
.scale .lbl-tag { position: absolute; font-family: var(--mono); font-size: 13px; letter-spacing: .02em; text-transform: uppercase; color: #fff; background: var(--accent); padding: 4px 6px; border-radius: 2px; white-space: nowrap; }
.scale .lbl-tag.grey { background: #6b7280; }
.scale .lbl-tag.idx { right: clamp(12rem, 22vw, 26rem); bottom: 3rem; }
.scale .one { position: absolute; right: clamp(6rem, 9vw, 9rem); bottom: -3.5rem; display: flex; flex-direction: column; align-items: center; gap: 7px; }
.scale .one .dotc { width: 25px; height: 25px; border-radius: 50%; border: 1px solid rgba(16,19,33,.12); background: radial-gradient(circle, var(--accent) 0 .8px, transparent 1.4px) 0 0/4px 4px, #fff; }
.scale .stats { position: relative; display: grid; grid-template-columns: 1fr 1.15fr 1fr; grid-template-rows: auto auto; gap: 14px; align-items: start; }
.scale .st { display: flex; flex-direction: column; gap: 10px; padding: 27px 22px 22px; border: 1px solid rgba(16,19,33,.12); border-radius: 4px; background: #fff; }
.scale .st.docs { grid-column: 1; grid-row: 1; min-height: 320px; }
.scale .st.pages { grid-column: 2; grid-row: 1; align-self: end; min-height: 208px; }
.scale .st.compute { grid-column: 3; grid-row: 1 / 3; align-self: end; min-height: 320px; }
.scale .st.live { grid-column: 1 / 3; grid-row: 2; gap: 0; padding: 14px 22px; min-height: 208px; }
.scale .st .v { display: flex; align-items: baseline; gap: 10px; font-family: var(--mono); font-size: clamp(34px, 3.4vw, 50px); letter-spacing: -0.03em; line-height: 1; white-space: nowrap; }
.scale .st .v small { font-size: .52em; letter-spacing: -0.02em; text-transform: uppercase; }
.scale .st .l { color: rgba(16,19,33,.62); font-size: 15px; line-height: 1.4; max-width: 16rem; }
.scale .st.live .lc { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 12px 0; }
.scale .st.live .lc + .lc { border-top: 1px solid rgba(16,19,33,.12); }
.scale .st.live .v { font-size: clamp(28px, 2.5vw, 38px); }

/* cream showcase band */
.sec-cream { background: var(--bg-elev); padding: 96px 0; }
.show { display: grid; grid-template-columns: 1.55fr 1fr; gap: 16px; margin-bottom: 16px; }
.show2 { display: grid; grid-template-columns: 1fr 2.2fr; gap: 16px; }
.sc { position: relative; border-radius: 4px; overflow: hidden; min-height: 400px; padding: 32px; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; background: var(--ink); }
.sc.white { background: #fff; border: 1px solid var(--border); color: var(--text); }
.sc.blue { background: radial-gradient(120% 100% at 100% 0%, #4d87e7 0%, #1f40ed 40%, #0d2189 100%); }
.sc.mid { background: radial-gradient(100% 120% at 0% 100%, #1b2a4d 0%, #141312 60%); }
.sc.short { min-height: 340px; }
.sc .kick { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; opacity: .7; margin-bottom: auto; }
.sc h3 { font-family: var(--serif); font-size: clamp(24px, 2.2vw, 30px); font-weight: 400; letter-spacing: -0.02em; margin: 18px 0 8px; line-height: 1.2; }
.sc p { font-size: 15.5px; line-height: 1.5; opacity: .82; margin: 0; max-width: 46ch; }
.sc .big { font-family: var(--serif); font-size: clamp(44px, 4vw, 58px); letter-spacing: -0.03em; line-height: 1; margin: 18px 0 8px; }
.sc .big small { font-size: .5em; color: var(--text-dim); }
.sc .lbl2 { font-size: 18px; color: var(--text-2); }
.sc .btn { align-self: flex-start; margin-top: 18px; }
.sc.blue .btn, .sc.mid .btn { background: rgba(255,255,255,.14); color: #fff; backdrop-filter: blur(20px); border-color: rgba(255,255,255,.1); }
.sc.blue .btn:hover, .sc.mid .btn:hover { background: rgba(255,255,255,.24); }
.sc .qs { position: absolute; inset: 0; padding: 28px; font-family: var(--mono); font-size: 12px; line-height: 1.7; color: rgba(255,255,255,.3); pointer-events: none; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 52%); mask-image: linear-gradient(180deg, #000 0%, transparent 52%); }
.sc .qs .col { animation: colscroll 26s linear infinite; }
@keyframes colscroll { from { transform: translateY(0); } to { transform: translateY(-50%); } }

/* faq + closing cta */
.faq { max-width: 760px; margin: 0 auto; border-top: 1px solid var(--border); }
.faq summary { font-size: 17px; }
.cta-final { text-align: center; padding-top: 160px; padding-bottom: 150px; }
.cta-final h2 { font-size: clamp(38px, 4vw, 56px); margin-bottom: 18px; }
.cta-final p { color: var(--text-muted); font-size: 17px; max-width: 420px; margin: 0 auto 30px; line-height: 1.5; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .shimmer { animation: none; } .sc .qs .col { animation: none; } }

@media (max-width: 1100px) {
  .marks { grid-template-columns: repeat(4, 1fr); }
  .marks a:nth-child(6n) { border-right: 1px solid var(--border); } .marks a:nth-child(4n) { border-right: 0; }
  .marks a:nth-last-child(-n+6) { border-bottom: 1px solid var(--border); } .marks a:nth-last-child(-n+4) { border-bottom: 0; }
  .prod { grid-template-columns: 1fr; gap: 56px; } .prod .vis { height: 420px; }
  .bench { grid-template-columns: 1fr; } .bench .copy { padding: 72px 40px; } .bench .plot { padding: 40px 32px 56px; min-height: 0; } .bench .plot .legend { top: 40px; right: 32px; }
  .comp-grid { grid-template-columns: 1fr 1fr; gap: 48px 32px; }
  .scale .top { grid-template-columns: 1fr; min-height: 0; margin-bottom: 40px; } .scale .lbl-tag.idx, .scale .one { display: none; }
  .scale .stats { grid-template-columns: 1fr 1fr; } .scale .st.docs, .scale .st.pages { grid-column: auto; grid-row: auto; min-height: 200px; } .scale .st.compute, .scale .st.live { grid-column: 1 / -1; grid-row: auto; min-height: 0; }
  .show, .show2 { grid-template-columns: 1fr; }
  .nav-links { position: static; transform: none; }
}
@media (max-width: 760px) {
  .hero { padding: 88px 0 24px; }
  .hw-panel { grid-template-columns: 1fr; } .hw-panel > div + div { border-left: 0; border-top: 1px solid var(--border); }
  .hw .seg button { padding: 0 9px; font-size: 13px; }
  .marks { grid-template-columns: repeat(2, 1fr); } .marks a { height: 96px; font-size: 15px; }
  .marks a:nth-child(4n) { border-right: 1px solid var(--border); } .marks a:nth-child(2n) { border-right: 0; }
  .marks a:nth-last-child(-n+4) { border-bottom: 1px solid var(--border); } .marks a:nth-last-child(-n+2) { border-bottom: 0; }
  .comp-grid { grid-template-columns: 1fr; gap: 40px; }
  .scale .stats { grid-template-columns: 1fr; }
  .sec, .sec-dark, .sec-cream { padding-top: 64px; padding-bottom: 64px; } .cta-final { padding-top: 96px; padding-bottom: 96px; }
  .chart { height: 320px; } .bench .plot .legend { position: static; margin-bottom: 8px; }
  footer .cols { grid-template-columns: 1fr 1fr; } footer .big { margin-bottom: 40px; }
  .nav-links { display: none; }
  .nav-links.open { display: flex; position: absolute; top: 56px; left: 0; right: 0; flex-direction: column; background: #fff; border-bottom: 1px solid var(--border); padding: 8px 16px 12px; }
  .nav-links .dd .menu { position: static; box-shadow: none; border: 0; }
  .nav .nav-toggle { display: inline-flex; }
}
