/* Moon — monochrome, premium, dependency-free. */
:root {
  --bg: #060607;
  --bg-2: #0a0a0b;
  --panel: #101012;
  --panel-2: #141416;
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .18);
  --text: #f5f5f5;
  --muted: #9a9a9e;
  --dim: #5f5f63;
  --ok: #4ade80;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max: 1160px;
  --radius: 16px;
  --ease: cubic-bezier(.22, .9, .26, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--sans);
  letter-spacing: -0.005em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: #fff; color: #060607; }
.container { max-width: var(--max); margin-inline: auto; padding-inline: clamp(20px, 5vw, 40px); }
code { font: 500 .82em var(--mono); color: #fff; background: rgba(255,255,255,.08); border: 1px solid var(--line); padding: 2px 7px; border-radius: 6px; overflow-wrap: anywhere; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 4px; }

/* ── ambient background ─────────────────────────────────────────────── */
.ambient { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.ambient-grid {
  position: absolute; inset: -40% -20% 20%;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 90% 55% at 50% -5%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse 90% 55% at 50% -5%, #000 0%, transparent 70%);
}
.ambient-glow {
  position: absolute; top: -320px; left: 50%; transform: translateX(-50%);
  width: 1100px; height: 760px; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255,255,255,.10) 0%, rgba(255,255,255,.035) 38%, transparent 70%);
}
.ambient-moon {
  position: absolute; top: 90px; right: -140px; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle at 38% 36%, #fff 0%, #d9d9d9 42%, #8a8a8a 78%, #4a4a4a 100%);
  opacity: .14; filter: blur(1px);
  -webkit-mask-image: radial-gradient(circle, #000 55%, transparent 72%);
  mask-image: radial-gradient(circle, #000 55%, transparent 72%);
}
main, footer, .site-header { position: relative; z-index: 1; }

/* ── header ──────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 40;
  border-bottom: 1px solid transparent;
  transition: background .35s ease, border-color .35s ease, backdrop-filter .35s ease;
}
.site-header.scrolled {
  background: rgba(6, 6, 7, .72);
  border-color: var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.header-inner {
  max-width: var(--max); margin-inline: auto; height: 64px;
  padding-inline: clamp(20px, 5vw, 40px);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark { display: block; }
.brand-name { font: 700 15px/1 var(--mono); letter-spacing: .3em; }
.brand-tag { color: var(--dim); font: 500 9px/1.3 var(--mono); letter-spacing: .18em; padding-top: 2px; }
.nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 30px); }
.nav a { color: var(--muted); font-size: 13px; font-weight: 500; transition: color .2s ease; }
.nav a:hover { color: #fff; }
.nav-cta {
  border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 8px 18px; color: #fff !important;
  transition: background .25s ease, color .25s ease, border-color .25s ease !important;
}
.nav-cta:hover { background: #fff; color: #060607 !important; border-color: #fff; }
.nav-toggle { display: none; width: 40px; height: 40px; border: 1px solid var(--line-strong); background: transparent; border-radius: 10px; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 11px; right: 11px; height: 1.6px; background: #fff; transition: transform .25s ease, top .25s ease; }
.nav-toggle span:first-child { top: 16px; }
.nav-toggle span:last-child { top: 23px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 19.5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 19.5px; transform: rotate(-45deg); }

/* ── hero ──────────────────────────────────────────────────────────── */
.hero { position: relative; padding: clamp(64px, 9vw, 120px) 0 0; overflow: hidden; }
.hero-inner {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.hero-copy { padding-bottom: clamp(40px, 6vw, 72px); }

.eyebrow, .kicker {
  font: 600 11px/1.5 var(--mono); letter-spacing: .22em;
  color: var(--muted); text-transform: uppercase;
}
.eyebrow { display: inline-flex; align-items: center; gap: 8px 10px; flex-wrap: wrap; justify-content: center; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.03); }
.eyebrow-sep { color: var(--dim); }
.eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px rgba(74,222,128,.7); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }

h1 {
  margin: 26px 0 22px; font-size: clamp(44px, 6.4vw, 76px);
  line-height: 1.02; letter-spacing: -.045em; font-weight: 700;
}
.grad {
  background: linear-gradient(105deg, #fff 15%, #8f8f93 42%, #fff 62%, #6d6d70 98%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 8s ease-in-out infinite;
}
@keyframes sheen { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.lede { max-width: 540px; color: var(--muted); font-size: clamp(16px, 1.6vw, 18px); line-height: 1.65; margin: 0; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 32px 0 26px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 24px; border-radius: 12px; font-size: 14px; font-weight: 600;
  border: 1px solid var(--line-strong); cursor: pointer;
  transition: transform .25s var(--ease), background .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary { background: #f5f5f5; color: #060607; border-color: #f5f5f5; box-shadow: 0 0 0 rgba(255,255,255,0); }
.btn-primary:hover { box-shadow: 0 12px 44px rgba(255,255,255,.16); }
.btn-ghost { color: #fff; background: rgba(255,255,255,.04); }
.btn-ghost:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.3); }

.hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 0; color: var(--muted); font-size: 13px; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.check { color: var(--ok); font-family: var(--mono); font-size: 12px; }

/* ── window / terminal chrome ──────────────────────────────────────── */
.hero-terminal { position: relative; }
.hero-glow {
  position: absolute; inset: auto -8% -30% -8%; height: 70%; z-index: -1;
  background: radial-gradient(ellipse at center, rgba(255,255,255,.14), transparent 65%);
  filter: blur(30px);
}
.window {
  border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(180deg, #171719 0%, #101012 100%);
  box-shadow: 0 50px 120px rgba(0,0,0,.65), inset 0 1px 0 rgba(255,255,255,.09);
}
.window-bar {
  display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 14px; min-width: 0;
  border-bottom: 1px solid var(--line); background: rgba(255,255,255,.028);
  font: 11px/1 var(--mono); color: var(--muted);
}
.traffic { display: inline-flex; gap: 6px; }
.traffic i { width: 10px; height: 10px; border-radius: 50%; background: #2c2c2e; border: 1px solid rgba(255,255,255,.14); }
.traffic i:first-child { background: rgba(255,255,255,.75); }
.window-title { letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.window-status { margin-left: auto; flex-shrink: 0; display: inline-flex; align-items: center; gap: 7px; color: #d8d8d8; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px rgba(74,222,128,.8); animation: pulse 1.6s ease-in-out infinite; }
.window-body {
  min-height: 300px; padding: 20px 22px; font: 12.5px/1.95 var(--mono);
  white-space: pre-wrap; color: #cfcfd2;
}
.window-foot {
  display: flex; gap: 8px; flex-wrap: wrap; padding: 10px 14px;
  border-top: 1px solid var(--line); background: rgba(255,255,255,.02);
}
.chip { font: 500 10px/1 var(--mono); letter-spacing: .08em; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 6px 11px; background: rgba(255,255,255,.03); }
.chip-model { color: #fff; border-color: var(--line-strong); }
.t-prompt { color: #fff; font-weight: 600; }
.t-cmd { color: #fff; }
.t-muted { color: var(--dim); }
.t-ok { color: var(--ok); font-weight: 600; }
.t-file { color: #e8e8e8; border-bottom: 1px dotted rgba(255,255,255,.3); }
.caret { display: inline-block; width: 7px; height: 14px; background: #f5f5f5; vertical-align: -2px; animation: blink 1.05s steps(2, start) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.hero-meta {
  display: flex; justify-content: center; align-items: center; gap: clamp(12px, 2vw, 26px); flex-wrap: wrap;
  padding: 18px 0 22px; border-top: 1px solid var(--line);
  color: var(--dim); font: 600 10px/1 var(--mono); letter-spacing: .24em; text-transform: uppercase;
}
.hero-meta i { color: #3a3a3d; font-style: normal; }

/* ── ticker ─────────────────────────────────────────────────────────── */
.ticker { border-block: 1px solid var(--line); overflow: hidden; background: var(--bg-2); }
.ticker-track {
  display: flex; align-items: center; gap: 38px; width: max-content;
  padding: 15px 0; font: 600 11px/1 var(--mono); letter-spacing: .22em; color: var(--muted);
  animation: marquee 36s linear infinite;
}
.ticker-track i { color: #f5f5f5; font-style: normal; font-size: 9px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── sections ─────────────────────────────────────────────────────── */
.section { max-width: var(--max); margin-inline: auto; padding: clamp(72px, 10vw, 120px) clamp(20px, 5vw, 40px) 0; }
.section:last-of-type { padding-bottom: clamp(72px, 10vw, 110px); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.kicker { display: flex; align-items: center; gap: 14px; color: var(--muted); margin: 0 0 18px; }
.kicker-num { color: var(--dim); border: 1px solid var(--line); border-radius: 6px; padding: 3px 7px; font-size: 10px; letter-spacing: .15em; }
h2 {
  margin: 0; font-size: clamp(34px, 5vw, 56px); line-height: 1.04;
  letter-spacing: -.04em; font-weight: 700;
}
.dim-h { color: var(--dim); }
.section-lede { color: var(--muted); max-width: 620px; font-size: 16.5px; margin: 18px 0 0; }

/* ── demo ───────────────────────────────────────────────────────────── */
.demo-shell { max-width: 920px; }
.demo-tabs { display: flex; gap: 6px; margin-bottom: -1px; position: relative; z-index: 2; flex-wrap: wrap; }
.demo-tab {
  padding: 12px 18px; font: 500 12px/1 var(--mono); letter-spacing: .02em; color: var(--muted);
  background: transparent; border: 1px solid transparent; border-bottom: none;
  border-radius: 12px 12px 0 0; cursor: pointer; transition: color .2s, background .2s;
}
.demo-tab:hover { color: #fff; }
.demo-tab.active { color: #fff; background: var(--panel); border-color: var(--line-strong); }
.demo-window { border-radius: 0 var(--radius) var(--radius) var(--radius); }
.demo-body { min-height: 320px; }
.demo-caption { margin: 14px 4px 0; color: var(--dim); font: 11px var(--mono); letter-spacing: .04em; }

/* ── features ───────────────────────────────────────────────────────── */
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.card {
  position: relative; overflow: hidden; min-height: 240px; padding: 26px 26px 30px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  transition: transform .35s var(--ease), border-color .35s ease;
}
.card::before {
  content: ""; position: absolute; inset: 0; opacity: 0; pointer-events: none;
  background: radial-gradient(460px circle at var(--x, 50%) var(--y, 0%), rgba(255,255,255,.09), transparent 55%);
  transition: opacity .35s ease;
}
.card:hover { transform: translateY(-5px); border-color: var(--line-strong); }
.card:hover::before { opacity: 1; }
.card-icon { width: 34px; height: 34px; color: #f5f5f5; margin-bottom: 40px; stroke-width: 1.4; }
.card h3 { margin: 0 0 10px; font-size: 17px; letter-spacing: -.02em; font-weight: 600; }
.card p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.65; }
.card-index { position: absolute; right: 20px; bottom: 16px; font: 500 11px var(--mono); color: var(--dim); letter-spacing: .1em; }

/* ── loop steps ─────────────────────────────────────────────────────── */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; counter-reset: step; }
.step {
  position: relative; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--panel); overflow: hidden;
}
.step::after {
  content: ""; position: absolute; top: 0; left: 0; height: 2px; width: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.85), transparent);
  transform: translateX(-100%);
}
.step.in::after { animation: sweep 1.6s var(--ease) .25s forwards; }
@keyframes sweep { to { transform: translateX(0); } }
.step-num { font: 600 11px var(--mono); color: var(--dim); letter-spacing: .25em; }
.step h3 { margin: 16px 0 8px; font-size: 21px; letter-spacing: -.02em; }
.step p { color: var(--muted); font-size: 14px; margin: 0; line-height: 1.65; }

/* ── comparison ─────────────────────────────────────────────────────── */
.compare-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; max-width: 920px; }
.compare-col { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: var(--panel); }
.compare-col h3 { margin: 0 0 16px; font-size: 15px; font-family: var(--mono); letter-spacing: .05em; font-weight: 600; display: flex; align-items: center; gap: 12px; }
.compare-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.compare-col li { font-size: 13.5px; color: var(--muted); line-height: 1.55; padding-left: 22px; position: relative; }
.compare-chat li::before { content: "✕"; position: absolute; left: 0; color: var(--dim); }
.compare-moon { border-color: var(--line-strong); background: linear-gradient(180deg, #17171a, var(--panel)); box-shadow: 0 0 60px rgba(255,255,255,.04) inset; }
.compare-moon li { color: #d8d8d8; }
.compare-moon li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); }
.you-are-here { font-size: 10px; color: var(--dim); letter-spacing: .1em; }

/* ── commands ───────────────────────────────────────────────────────── */
.command-grid { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel); max-width: 920px; }
.command-line {
  display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 18px; align-items: center;
  padding: 14px 22px; border-bottom: 1px solid var(--line); font-size: 13px;
  transition: background .2s ease, padding-left .25s var(--ease);
}
.command-line:last-child { border-bottom: 0; }
.command-line:hover { background: rgba(255,255,255,.04); padding-left: 30px; }
.command-line > span:last-child { color: var(--muted); }
.cmd { font: 600 13px var(--mono); color: #fff; }
.copy-btn {
  margin-top: 20px; padding: 11px 20px; border-radius: 10px; cursor: pointer;
  color: var(--muted); background: transparent; border: 1px solid var(--line-strong);
  font: 500 12px var(--mono); letter-spacing: .04em;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.copy-btn:hover { color: #060607; background: #f5f5f5; border-color: #f5f5f5; }

/* ── change log ─────────────────────────────────────────────────────── */
.log-section { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.log-copy p:not(.kicker) { color: var(--muted); line-height: 1.7; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: #fff; font: 500 12px var(--mono); letter-spacing: .05em; border-bottom: 1px solid var(--line-strong); padding-bottom: 4px; margin-top: 8px; }
.log-file { border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; background: var(--panel); box-shadow: 0 30px 80px rgba(0,0,0,.55); }
.log-bar { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--line); font: 11px var(--mono); color: var(--muted); background: rgba(255,255,255,.02); }
.log-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px rgba(74,222,128,.8); }
.log-file pre { margin: 0; padding: 22px; font: 12px/1.85 var(--mono); color: #cfcfd2; overflow-x: auto; }

/* ── security modes ─────────────────────────────────────────────────── */
.sec-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.sec-card {
  padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel);
  display: flex; flex-direction: column; gap: 12px;
}
.sec-card h3 { margin: 0; font-size: 20px; letter-spacing: -.02em; }
.sec-card p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.65; flex: 1; }
.sec-card code { align-self: flex-start; }
.sec-level { margin: 0; font: 600 10px var(--mono); letter-spacing: .28em; color: var(--dim); }
.sec-card-feature { border-color: var(--line-strong); background: linear-gradient(180deg, #18181b, var(--panel)); }
.sec-level-feature { color: #f5f5f5; }

/* ── stats band ─────────────────────────────────────────────────────── */
.stats-band { border-block: 1px solid var(--line); background: var(--bg-2); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding-block: 34px; }
.stat { text-align: center; }
.stat strong { display: block; font: 600 clamp(34px, 4.4vw, 52px)/1 var(--mono); letter-spacing: -.04em; }
.stat span { color: var(--muted); font-size: 12px; display: block; margin-top: 8px; }

/* ── CTA ───────────────────────────────────────────────────────────── */
.cta { padding-top: clamp(72px, 10vw, 110px); }
.cta-inner {
  position: relative; overflow: hidden; text-align: center;
  border: 1px solid var(--line-strong); border-radius: 24px;
  background: radial-gradient(ellipse 70% 90% at 50% -20%, rgba(255,255,255,.12), transparent 55%), var(--panel);
  padding: clamp(64px, 9vw, 110px) 24px;
}
.cta-inner h2 { margin: 14px 0 30px; }
.cta-moon { margin-bottom: 20px; opacity: .96; }
.cta .hero-actions { justify-content: center; margin-bottom: 0; }
.cta .kicker { justify-content: center; }

/* ── footer ─────────────────────────────────────────────────────────── */
footer { border-top: 1px solid var(--line); margin-top: 0; }
.foot-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-block: 26px; color: var(--muted); font: 12px var(--mono); letter-spacing: .04em; }
.foot-links { display: flex; gap: 22px; }
.foot-links a:hover { color: #fff; }
footer .brand-name { font-size: 12px; }

/* ── reveal ─────────────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ── responsive ─────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 0; text-align: center; max-width: 640px; margin-inline: auto; }
  .eyebrow { margin-inline: auto; }
  .lede { margin-inline: auto; }
  .hero-actions, .hero-points { justify-content: center; }
  .hero-points { gap: 8px 18px; }
  .hero-terminal { max-width: 640px; margin-inline: auto; width: 100%; }
  .ambient-moon { display: none; }
}
@media (max-width: 900px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps, .sec-grid { grid-template-columns: 1fr; }
  .log-section { grid-template-columns: 1fr; }
  .compare-grid { grid-template-columns: 1fr; }
  .brand-tag { display: none; }
}
@media (max-width: 700px) {
  .eyebrow-extra { display: none; }
  .window-status { display: none; }
  .window-title { font-size: 10px; }
  .nav {
    position: absolute; top: 64px; right: 16px; left: 16px;
    display: none; flex-direction: column; align-items: stretch; gap: 2px;
    background: #111113; border: 1px solid var(--line-strong); border-radius: 14px;
    padding: 10px; box-shadow: 0 30px 60px rgba(0,0,0,.6);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; border-radius: 9px; font-size: 14px; }
  .nav a:hover { background: rgba(255,255,255,.05); }
  .nav-cta { text-align: center; margin-top: 6px; }
  .nav-toggle { display: block; }
  .hero { padding-top: 48px; }
  .window-body { font-size: 11.5px; min-height: 260px; padding: 16px; }
  .window-foot { display: none; }
  .hero-meta { font-size: 9px; letter-spacing: .16em; gap: 10px; }
  .feature-grid { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .card-icon { margin-bottom: 22px; }
  .command-line { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 13px 18px; }
  .stats { grid-template-columns: repeat(2, 1fr); text-align: center; gap: 20px 12px; }
  .foot-inner { flex-direction: column; text-align: center; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

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

/* ── v2.0.0 docs page & download sections ─────────────────────────── */
.version-chip { font: 700 10px/1 var(--mono); letter-spacing: .12em; color: #060607; background: #f5f5f5; border-radius: 5px; padding: 3px 7px; }
.docs-main { padding-top: 0; }
.docs-hero { padding-top: clamp(48px, 7vw, 84px); padding-bottom: 8px; max-width: var(--max); }
.docs-title { font-size: clamp(40px, 7vw, 72px); margin: 6px 0 18px; letter-spacing: -.05em; font-weight: 700; }
.docs-hero .lede { max-width: 640px; }
.docs-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; padding-bottom: clamp(72px, 9vw, 110px); }
.docs-toc { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 4px; border-left: 1px solid var(--line); padding-left: 18px; }
.docs-toc-title { font: 600 10px var(--mono); letter-spacing: .22em; color: var(--dim); margin: 0 0 10px; }
.docs-toc a { color: var(--muted); font-size: 13px; padding: 6px 0; transition: color .2s ease; }
.docs-toc a:hover { color: #fff; }
.docs-article { display: grid; grid-template-columns: minmax(0, 1fr); gap: 46px; min-width: 0; }
.docs-section { max-width: 760px; }
.docs-section h2 { font-size: clamp(24px, 3.4vw, 34px); letter-spacing: -.03em; margin: 0 0 16px; padding-top: 8px; }
.docs-section h3 { font-size: 17px; margin: 26px 0 10px; letter-spacing: -.01em; }
.docs-section p, .docs-section li { color: #c9c9cd; font-size: 15px; line-height: 1.7; }
.docs-section ul { padding-left: 20px; display: grid; gap: 10px; margin: 0; }
.docs-section a:not(.btn) { color: #fff; border-bottom: 1px solid var(--line-strong); }
.docs-note { color: var(--muted) !important; font-size: 13px !important; border-left: 2px solid var(--line-strong); padding-left: 14px; }
.docs-pre { margin: 14px 0 0; border: 1px solid var(--line); background: var(--panel); border-radius: 12px; padding: 16px 18px; overflow-x: auto; }
.docs-pre code { background: none; border: none; padding: 0; color: #e8e8e8; font-size: 12px; line-height: 1.8; white-space: pre; }
.sec-grid-docs { grid-template-columns: 1fr; }
.download-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.download-card { min-width: 0; display: flex; flex-direction: column; gap: 12px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: linear-gradient(180deg, #17171a, var(--panel)); padding: 26px; }
.download-card h3 { margin: 0; font-size: 22px; letter-spacing: -.02em; }
.download-card p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.download-tag { margin: 0; font: 600 10px var(--mono); letter-spacing: .28em; color: var(--dim); }
.download-card .btn { align-self: flex-start; }
.download-meta { font: 11px var(--mono); color: var(--dim); letter-spacing: .06em; }
.clone-line { display: block; white-space: pre-wrap; overflow-wrap: anywhere; }
.download-grid-docs { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.download-footnote { margin: 18px 2px 0; color: var(--muted); font-size: 13px; }
.download-footnote a { color: #fff; border-bottom: 1px solid var(--line-strong); }
.platform-table { margin-top: 26px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.platform-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.6fr); gap: 16px; align-items: center; padding: 13px 18px; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.platform-row:last-child { border-bottom: 0; }
.platform-row strong { font-weight: 600; color: #fff; }
.platform-row > span:last-child { color: var(--muted); line-height: 1.55; }
.platform-head { font: 600 10px var(--mono); letter-spacing: .18em; color: var(--dim); text-transform: uppercase; background: rgba(255,255,255,.02); }
.pill { display: inline-block; font: 600 10px var(--mono); letter-spacing: .08em; border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.pill-ok { color: #060607; background: #4ade80; }
.pill-warn { color: #f5f5f5; border: 1px solid var(--line-strong); }
.pill-exp { color: #060607; background: #f5f5f5; }
@media (max-width: 1024px) {
  .docs-layout { grid-template-columns: minmax(0, 1fr); }
  .docs-toc { position: static; flex-direction: row; flex-wrap: wrap; gap: 4px 18px; border-left: none; border-bottom: 1px solid var(--line); padding: 0 0 16px; }
  .docs-toc-title { width: 100%; }
  .platform-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .download-grid, .download-grid-docs { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .docs-hero .lede { font-size: 16px; }
}

/* ── versions page ─────────────────────────────────────────────────── */
.inline-link { color: #fff; border-bottom: 1px solid var(--line-strong); }
.inline-link:hover { color: #fff; border-bottom-color: #fff; }
.ok-text { color: var(--ok); }
.warn-text { color: #d8d8d8; }
.version-list { display: grid; gap: 18px; max-width: 880px; padding-bottom: clamp(72px, 9vw, 110px); }
.version-card {
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  padding: clamp(22px, 4vw, 34px); display: flex; flex-direction: column; gap: 14px;
}
.version-latest { border-color: rgba(74,222,128,.45); box-shadow: 0 0 80px rgba(74,222,128,.05); }
.version-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.version-number { margin: 0; font: 700 clamp(28px, 5vw, 44px)/1 var(--mono); letter-spacing: -.04em; }
.version-date { margin: 6px 0 0; color: var(--muted); font-size: 12.5px; }
.version-title { margin: 0; font-size: clamp(19px, 2.6vw, 26px); letter-spacing: -.03em; }
.version-notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; color: #c9c9cd; font-size: 13.5px; line-height: 1.65; }
.version-notes li { padding-left: 20px; position: relative; }
.version-notes li::before { content: "✦"; position: absolute; left: 0; color: var(--dim); font-size: 11px; top: 2px; }
.version-notes strong { color: #fff; font-weight: 600; }
.download-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.version-card .clone-line { margin-top: 2px; }
@media (max-width: 700px) {
  .version-head { flex-direction: column; }
  .download-actions .btn { width: 100%; justify-content: center; }
}

/* ── version changelog toggles ───────────────────────────────────── */
.version-details { border-top: 1px solid var(--line); padding-top: 14px; }
.version-toggle {
  cursor: pointer; list-style: none; width: max-content; max-width: 100%;
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line-strong); border-radius: 10px;
  padding: 11px 16px; transition: color .2s ease, border-color .2s ease; user-select: none;
}
.version-toggle::-webkit-details-marker { display: none; }
.version-toggle:hover { color: #fff; border-color: rgba(255,255,255,.35); }
.version-toggle .chev { transition: transform .25s var(--ease); font-size: 13px; }
.version-details[open] .version-toggle { color: #fff; }
.version-details[open] .version-toggle .chev { transform: rotate(180deg); }
.version-changes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; margin-top: 18px; }
.version-changes h3 { margin: 0 0 10px; font: 600 10px var(--mono); letter-spacing: .22em; color: var(--dim); text-transform: uppercase; }
.version-changes ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.version-changes li { position: relative; padding-left: 16px; color: #c9c9cd; font-size: 13px; line-height: 1.6; }
.version-changes li::before { content: "·"; position: absolute; left: 2px; color: var(--muted); font-weight: 700; }
@media (max-width: 700px) {
  .version-changes { grid-template-columns: minmax(0, 1fr); }
  .version-toggle { width: 100%; justify-content: center; }
}

/* ── collapsed version rows (versions page) ───────────────────────── */
body.versions-page .version-list { gap: 12px; }
body.versions-page .docs-hero { padding-bottom: 26px; }
details.version-collapse { padding: 0; overflow: hidden; }
details.version-collapse > .version-summary {
  display: flex; align-items: center; gap: 16px;
  padding: 15px 20px; cursor: pointer; list-style: none;
  border-radius: 14px; user-select: none; transition: background .2s ease;
}
details.version-collapse > .version-summary::-webkit-details-marker { display: none; }
details.version-collapse > .version-summary:hover { background: rgba(255,255,255,.035); }
details.version-collapse .version-number { font-size: 21px; margin: 0; min-width: 64px; }
details.version-collapse .version-summary-title {
  flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; color: #e9e9ec; font-weight: 600; font-size: 14px;
}
details.version-collapse .pill { flex-shrink: 0; }
details.version-collapse .version-chevron {
  flex-shrink: 0; color: var(--muted); font-size: 20px; font-weight: 400;
  line-height: 1; transition: transform .25s var(--ease); font-family: var(--mono);
}
details.version-collapse[open] .version-chevron { transform: rotate(45deg); }
details.version-collapse .version-body {
  padding: 2px 20px 20px; border-top: 1px solid var(--line);
  display: grid; gap: 14px;
}
details.version-collapse .version-body .version-date { margin: 12px 0 0; }
@media (max-width: 560px) {
  details.version-collapse .version-summary-title { display: none; }
}
