/* ============================================================
   Alphacode — design system v6
   Dark default, light via media. Linear / Vercel / Raycast reference.
   ============================================================ */

:root {
  --bg:          #09090B;
  --bg-1:        #0C0C0F;
  --bg-2:        #111114;
  --bg-3:        #16161A;
  --line:        rgba(255,255,255,.06);
  --line-2:      rgba(255,255,255,.10);
  --line-3:      rgba(255,255,255,.16);

  --text:        #FAFAFA;
  --text-2:      #D4D4D8;
  --text-dim:    #A1A1AA;
  --text-mute:   #71717A;
  --text-faint:  #52525B;

  --accent:      #A78BFA;
  --accent-hi:   #C4B5FD;
  --accent-lo:   #7C3AED;
  --positive:    #A3E635;
  --positive-hi: #BEF264;

  --type-display: 'Geist', system-ui, -apple-system, sans-serif;
  --type-sans:    'Geist', system-ui, -apple-system, sans-serif;
  --type-mono:    'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --maxw:  1200px;
  --maxw-narrow: 760px;
  --r:     6px;
  --r-md:  10px;
  --r-lg:  14px;

  --ease:        cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg:        #FAFAF9;
    --bg-1:      #FFFFFF;
    --bg-2:      #F4F4F5;
    --bg-3:      #E4E4E7;
    --line:      rgba(0,0,0,.06);
    --line-2:    rgba(0,0,0,.10);
    --line-3:    rgba(0,0,0,.16);
    --text:      #09090B;
    --text-2:    #27272A;
    --text-dim:  #52525B;
    --text-mute: #71717A;
    --text-faint:#A1A1AA;
  }
  .hero::after {
    background-image:
      linear-gradient(rgba(0,0,0,.04) 1px, transparent 1px),
      linear-gradient(90deg, rgba(0,0,0,.04) 1px, transparent 1px) !important;
  }
  .hero::before {
    background: radial-gradient(ellipse at center, rgba(124,58,237,.18), transparent 65%) !important;
  }
  .nav { background: rgba(250,250,249,.7); }
  .demo__body .l-rose { color: #E11D48; }
}

* { box-sizing: border-box; }
*::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
  scrollbar-color: var(--bg-3) transparent;
}
body {
  margin: 0;
  font-family: var(--type-sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  font-synthesis: none;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
code { font-family: var(--type-mono); font-size: 0.92em; }
kbd {
  font-family: var(--type-mono);
  font-size: 0.82em;
  padding: 1px 6px;
  border: 1px solid var(--line-2);
  border-bottom-width: 2px;
  border-radius: 4px;
  background: var(--bg-2);
  color: var(--text);
  white-space: nowrap;
}
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
::selection { background: rgba(167,139,250,.3); color: var(--text); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: var(--maxw-narrow); }

/* Skip link */
.skip {
  position: absolute; top: -40px; left: 12px;
  background: var(--text); color: var(--bg);
  padding: 8px 12px; border-radius: 4px;
  font-size: 13px; z-index: 100;
  transition: top .15s;
}
.skip:focus { top: 12px; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(9,9,11,.7);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px;
}
.nav__brand {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  letter-spacing: -.01em;
}
.nav__brand svg { transition: transform .3s var(--ease); color: var(--text); }
.nav__brand:hover svg { transform: rotate(-5deg); }
.nav__links {
  display: flex; gap: 4px;
  flex: 1;
  justify-content: center;
  font-size: 13.5px;
}
.nav__links a {
  color: var(--text-dim);
  padding: 6px 12px;
  border-radius: var(--r);
  transition: color .15s, background .15s;
}
.nav__links a:hover { color: var(--text); background: var(--bg-2); }
.nav__cta { display: flex; align-items: center; gap: 8px; }
.nav__stars {
  margin-left: 4px;
  font-family: var(--type-mono);
  font-size: 11px;
  color: var(--text-mute);
  padding: 2px 6px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
}

@media (max-width: 880px) {
  .nav__links { display: none; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 14px;
  border-radius: var(--r);
  font-weight: 500;
  font-size: 13.5px;
  border: 1px solid transparent;
  transition: background .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease), transform .1s var(--ease);
  white-space: nowrap;
  position: relative;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--sm { padding: 6px 11px; font-size: 13px; }
.btn--lg { padding: 12px 18px; font-size: 14.5px; }

.btn--primary {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
  font-weight: 500;
}
.btn--primary:hover {
  background: #E4E4E7;
  border-color: #E4E4E7;
}
.btn--primary svg { stroke: currentColor; }

.btn--ghost {
  background: var(--bg-2);
  color: var(--text);
  border-color: var(--line-2);
}
.btn--ghost:hover {
  background: var(--bg-3);
  border-color: var(--line-3);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 88px 0 60px;
  position: relative;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
}
.hero__glow {
  position: absolute;
  top: -120px; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 600px;
  background: radial-gradient(ellipse at center, rgba(167,139,250,.18), transparent 65%);
  filter: blur(40px);
}

.hero__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 60px 0 40px; }
}

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--bg-1);
  font-family: var(--type-mono);
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 28px;
}
.pill b { color: var(--text); font-weight: 600; }
.pill__dot {
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--positive);
  box-shadow: 0 0 8px var(--positive);
}

.hero__title {
  font-size: clamp(40px, 5.4vw, 68px);
  line-height: 1.02;
  letter-spacing: -.04em;
  font-weight: 600;
  margin: 0 0 20px;
  color: var(--text);
}
.hero__title .hl {
  background: linear-gradient(135deg, var(--accent), var(--positive));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
}
.hero__title .hl::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 4px;
  height: 12px;
  background: linear-gradient(135deg, rgba(167,139,250,.35), rgba(163,230,53,.25));
  z-index: -1;
  border-radius: 4px;
}

.hero__sub {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-dim);
  max-width: 52ch;
  margin: 0 0 32px;
}
.hero__cta {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-bottom: 32px;
}
.hero__trust {
  display: flex; align-items: center; gap: 12px;
  font-size: 12.5px;
  color: var(--text-mute);
  flex-wrap: wrap;
}
.hero__trust-list {
  display: inline-flex; flex-wrap: wrap; gap: 6px;
}
.chip {
  display: inline-flex;
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-1);
  font-family: var(--type-mono);
  font-size: 11.5px;
  color: var(--text-2);
}

/* ============================================================
   DEMO TERMINAL
   ============================================================ */
.demo {
  background: var(--bg-1);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255,255,255,.04) inset,
    0 30px 80px -20px rgba(0,0,0,.6),
    0 0 0 1px rgba(255,255,255,.02);
  font-family: var(--type-mono);
  font-size: 13px;
  line-height: 1.65;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.demo:hover {
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255,255,255,.04) inset,
    0 40px 100px -20px rgba(0,0,0,.7),
    0 0 0 1px rgba(167,139,250,.1);
}
.demo__chrome {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--text-mute);
}
.demo__dots { display: flex; gap: 5px; }
.demo__dots span { width: 9px; height: 9px; border-radius: 999px; }
.demo__dots span:nth-child(1) { background: #FF5F57; }
.demo__dots span:nth-child(2) { background: #FEBC2E; }
.demo__dots span:nth-child(3) { background: #28C840; }
.demo__path {
  flex: 1; text-align: center;
  font-family: var(--type-mono);
}
.demo__model {
  padding: 3px 9px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--accent-hi);
  font-size: 11px;
  font-weight: 500;
}

.demo__body {
  margin: 0;
  padding: 22px 22px 16px;
  min-height: 280px;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text);
}
.demo__body .l-prompt { color: #F5B642; user-select: none; }
.demo__body .l-info   { color: var(--text); }
.demo__body .l-dim    { color: var(--text-mute); }
.demo__body .l-ok     { color: var(--positive-hi); }
.demo__body .l-warn   { color: #F5B642; }
.demo__body .l-violet { color: var(--accent); }
.demo__body .l-rose   { color: #FB7185; }
.demo__body .l-bold   { font-weight: 600; }
.demo__body .l-caret {
  display: inline-block;
  width: 7px; height: 13px;
  background: #F5B642;
  vertical-align: text-bottom;
  margin-left: 2px;
  animation: blink 1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.demo__bar {
  height: 2px;
  background: var(--bg-2);
  overflow: hidden;
}
.demo__bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--positive));
  transition: width .3s var(--ease);
}
.demo__foot {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--text-mute);
  font-family: var(--type-mono);
}
.demo__foot-dot {
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--positive);
  box-shadow: 0 0 6px var(--positive);
  animation: pulse 1.6s var(--ease) infinite;
}
.demo__foot-dot.is-done { animation: none; }
.demo__foot-sep { flex: 1; }
.demo__foot b { color: var(--text); font-weight: 600; }
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .3; }
}

/* ============================================================
   STATS
   ============================================================ */
.stats {
  padding: 32px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-1);
}
.stats__inner {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.stat { text-align: center; padding: 8px; }
.stat__num {
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--text);
}
.stat__lbl {
  font-family: var(--type-mono);
  font-size: 11px;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-top: 4px;
}
@media (max-width: 760px) {
  .stats__inner { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   SECTION
   ============================================================ */
section { padding: 96px 0; }

.section__head {
  margin-bottom: 56px;
  max-width: 720px;
}
.section__eyebrow {
  display: inline-block;
  font-family: var(--type-mono);
  font-size: 12px;
  color: var(--text-mute);
  margin-bottom: 18px;
  letter-spacing: .02em;
}
.section__title {
  font-size: clamp(32px, 3.8vw, 48px);
  line-height: 1.05;
  letter-spacing: -.03em;
  font-weight: 600;
  margin: 0 0 16px;
  color: var(--text);
}
.section__lede {
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-dim);
  max-width: 60ch;
  margin: 0;
}

/* ============================================================
   FEATURES
   ============================================================ */
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.feat {
  padding: 28px;
  background: var(--bg);
  transition: background .2s var(--ease);
}
.feat:hover { background: var(--bg-1); }
.feat__icon {
  display: grid; place-items: center;
  width: 36px; height: 36px;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background: var(--bg-1);
  font-size: 16px;
  color: var(--accent-hi);
  margin-bottom: 18px;
}
.feat h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--text);
  letter-spacing: -.01em;
}
.feat p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-dim);
}
.feat code {
  font-size: 12.5px;
  padding: 1px 5px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--accent-hi);
}
@media (max-width: 880px) { .features__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .features__grid { grid-template-columns: 1fr; } }

/* ============================================================
   SWARM
   ============================================================ */
.swarm__board {
  position: relative;
  background: var(--bg-1);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  padding: 32px;
  overflow: hidden;
  min-height: 360px;
}
.dag { width: 100%; height: auto; display: block; }
.dag__node rect {
  fill: var(--bg-2);
  stroke: var(--line-2);
  stroke-width: 1;
  transition: fill .3s var(--ease), stroke .3s var(--ease);
}
.dag__node text {
  fill: var(--text);
  font-family: var(--type-sans);
  font-size: 13px;
  font-weight: 500;
}
.dag__sub { fill: var(--text-mute); font-family: var(--type-mono); font-size: 10px; }
.dag__node--root rect { fill: rgba(167,139,250,.12); stroke: var(--accent); }
.dag__node--plan rect { fill: rgba(245,182,66,.08); stroke: #F5B642; }
.dag__node--agent rect { fill: var(--bg-2); }
.dag__node--done rect { fill: rgba(163,230,53,.10); stroke: var(--positive); }
.dag__node--active rect {
  fill: rgba(245,182,66,.15);
  stroke: #F5B642;
  filter: drop-shadow(0 0 8px rgba(245,182,66,.4));
}
.dag__node--merged rect {
  fill: rgba(163,230,53,.20);
  stroke: var(--positive);
  filter: drop-shadow(0 0 8px rgba(163,230,53,.4));
}
.pkt { fill: #F5B642; filter: drop-shadow(0 0 6px #F5B642); }

.swarm__overlay {
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  gap: 12px;
  background: rgba(9,9,11,.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 5;
  opacity: 1;
  transition: opacity .4s var(--ease);
  pointer-events: auto;
}
.swarm__overlay.is-hidden { opacity: 0; pointer-events: none; }
.swarm__play {
  width: 44px; height: 44px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  display: grid; place-items: center;
  box-shadow: 0 10px 30px -8px rgba(255,255,255,.3);
  transition: transform .25s var(--ease-spring);
}
.swarm__play:hover { transform: scale(1.08); }
.swarm__play-label {
  font-family: var(--type-mono);
  font-size: 13px;
  color: var(--text-dim);
}
.mono { font-family: var(--type-mono); }

/* ============================================================
   MODELS
   ============================================================ */
.models__toolbar {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 20px;
}
.models__search {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background: var(--bg-1);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color .15s;
}
.models__search::placeholder { color: var(--text-mute); }
.models__search:focus { border-color: var(--accent); }
.models__count {
  font-family: var(--type-mono);
  font-size: 12px;
  color: var(--text-mute);
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--bg-1);
}
.models__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.model {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px;
  background: var(--bg-1);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: background .15s, border-color .15s, transform .15s var(--ease);
}
.model.is-hidden { display: none; }
.model:hover { background: var(--bg-2); border-color: var(--line-3); transform: translateY(-1px); }
.model__dot {
  width: 10px; height: 10px;
  border-radius: 999px;
  background: var(--c, var(--accent));
  box-shadow: 0 0 8px var(--c, var(--accent));
  flex-shrink: 0;
}
.models__more {
  margin: 20px 0 0;
  color: var(--text-dim);
  font-size: 14px;
}
.models__more code {
  padding: 2px 6px;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  background: var(--bg-2);
  color: var(--accent-hi);
}
@media (max-width: 1000px) { .models__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px)  { .models__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px)  { .models__grid { grid-template-columns: 1fr; } }

/* ============================================================
   INSTALL
   ============================================================ */
.install__card {
  background: var(--bg-1);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.install__tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  position: relative;
  overflow-x: auto;
}
.install__tab {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text-mute);
  border-right: 1px solid var(--line);
  transition: color .15s, background .15s;
  white-space: nowrap;
  position: relative;
  z-index: 1;
}
.install__tab:hover { color: var(--text); }
.install__tab.is-active { color: var(--text); background: var(--bg); }
.install__tab:last-child { border-right: 0; }
.install__indicator {
  position: absolute;
  bottom: -1px;
  height: 2px;
  background: var(--text);
  transition: left .35s var(--ease), width .35s var(--ease);
  pointer-events: none;
  box-shadow: 0 0 8px rgba(255,255,255,.3);
}
.install__panels { background: var(--bg); }
.install__panel { padding: 24px; animation: panelIn .35s var(--ease); }
@keyframes panelIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

.code {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.code pre {
  margin: 0;
  padding: 18px 20px;
  overflow-x: auto;
  font-family: var(--type-mono);
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text);
}
.code__prompt { color: #F5B642; user-select: none; margin-right: 8px; }
.code__cmd    { color: var(--accent); }
.code__copy {
  position: absolute;
  top: 10px; right: 10px;
  padding: 4px 10px;
  font-size: 11px;
  border-radius: 4px;
  border: 1px solid var(--line-2);
  color: var(--text-dim);
  background: var(--bg-3);
  font-family: var(--type-mono);
  transition: all .15s;
}
.code__copy:hover { color: var(--text); border-color: var(--line-3); }
.code__copy.is-copied {
  color: var(--positive);
  border-color: var(--positive);
  background: rgba(163,230,53,.08);
}

.install__verify {
  display: flex; align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  flex-wrap: wrap;
}
.install__verify-label {
  font-family: var(--type-mono);
  font-size: 12px;
  color: var(--text-mute);
}
.install__verify-list {
  display: flex; gap: 6px; flex-wrap: wrap;
}
.install__verify-list code {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--bg);
  font-size: 12px;
  color: var(--text-2);
  transition: border-color .15s;
}
.install__verify-list code:hover { border-color: var(--line-3); }
.install__verify-num {
  width: 14px; height: 14px;
  display: grid; place-items: center;
  background: var(--bg-2);
  border-radius: 3px;
  font-size: 10px;
  color: var(--text-mute);
}
.install__verify-go {
  background: var(--text) !important;
  color: var(--bg) !important;
  border-color: var(--text) !important;
  font-weight: 500;
}
.install__verify-go .install__verify-num {
  background: rgba(9,9,11,.15);
  color: var(--bg);
}

/* ============================================================
   BENCH
   ============================================================ */
.bench__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 760px) { .bench__grid { grid-template-columns: 1fr; } }

.bench__card {
  padding: 24px;
  background: var(--bg-1);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
}
.bench__caption {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--type-mono);
  font-size: 11.5px;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 20px;
}
.bench__unit { color: var(--text-dim); }
.bench__bars { display: grid; gap: 10px; }
.bench__row {
  display: grid;
  grid-template-columns: 140px 1fr 80px;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}
.bench__label {
  color: var(--text);
  font-weight: 500;
}
.bench__label.is-best { color: var(--accent-hi); }
.bench__label.is-self { color: #F5B642; }
.bench__bar-wrap {
  height: 20px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.bench__bar {
  height: 100%;
  width: 0%;
  background: var(--line-3);
  transition: width 1s var(--ease);
}
.bench__bar.is-best { background: linear-gradient(90deg, var(--accent), var(--accent-lo)); }
.bench__bar.is-self { background: #F5B642; }
.bench__val {
  font-family: var(--type-mono);
  font-size: 12px;
  color: var(--text-dim);
  text-align: right;
}
.bench__val b { color: var(--text); font-weight: 600; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { padding-bottom: 96px; }
.faq__item {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}
.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 4px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  transition: color .15s;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  font-family: var(--type-mono);
  font-size: 20px;
  color: var(--text-mute);
  transition: transform .3s var(--ease);
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item summary:hover { color: var(--accent-hi); }
.faq__item p {
  margin: 0 0 20px;
  padding: 0 4px;
  color: var(--text-dim);
  font-size: 14.5px;
  line-height: 1.6;
  max-width: 70ch;
}

/* ============================================================
   CTA
   ============================================================ */
.cta {
  padding: 96px 0;
  text-align: center;
  border-top: 1px solid var(--line);
  background: var(--bg-1);
}
.cta__title {
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.1;
  letter-spacing: -.03em;
  font-weight: 600;
  margin: 0 0 12px;
}
.cta__sub {
  color: var(--text-dim);
  font-size: 16px;
  margin: 0 0 28px;
}
.cta__sub code {
  padding: 2px 8px;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  background: var(--bg-2);
}
.cta__row {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 13px;
}
.footer__brand {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--text);
  font-weight: 600;
}
.footer__brand svg { color: var(--text); }
.footer__by { color: var(--text-mute); font-weight: 400; margin-left: 6px; }
.footer__by a { color: var(--text-dim); }
.footer__by a:hover { color: var(--accent-hi); }
.footer__links {
  display: flex; gap: 24px;
}
.footer__links a {
  color: var(--text-dim);
  transition: color .15s;
}
.footer__links a:hover { color: var(--text); }
.footer__meta {
  font-family: var(--type-mono);
  font-size: 12px;
  color: var(--text-mute);
}

/* ============================================================
   REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.reveal[data-d="1"] { transition-delay: .05s; }
.reveal[data-d="2"] { transition-delay: .12s; }
.reveal[data-d="3"] { transition-delay: .19s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .demo__foot-dot, .pill__dot, .demo__body .l-caret { animation: none !important; }
  * { transition-duration: 0s !important; animation-duration: 0s !important; }
}
