/* =====================================================================
   ZeroVM — ring0 — style.css
   ===================================================================== */

/* ----------------------------- DESIGN SYSTEM ------------------------- */
:root {
  --bg:           #0A0C0F;
  --surface:      #111418;
  --surface-sunk: #0D1014;
  --hairline:     #1A1F26;
  --hairline-hi:  #242B34;
  --text:         #E6EDF3;
  --text-2:       #8B949E;
  --text-dim:     #7C8896;
  --lime:         #B6FF3C;
  --lime-glow:    0 0 24px rgba(182,255,60,0.18);
  --cyan:         #4DD8E6;
  --magenta:      #FF6AC1;
  --amber:        #FFB454;
  --green:        #3FB950;
  --warn:         #D29922;
  --red:          #F85149;
  --wire:         #3B82F6;
  --select:       rgba(182,255,60,0.22);

  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", "Menlo", monospace;

  --maxw: 1200px;
  --gutter: 24px;
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
}

/* ----------------------------- RESET --------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
ul { margin: 0; }
pre { margin: 0; }

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

/* ----------------------------- SCANLINE / GRAIN ---------------------- */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.025;
  background: repeating-linear-gradient(
    rgba(255,255,255,0.5) 0 1px,
    transparent 1px 3px
  );
  animation: grain-shimmer 6s steps(4) infinite;
}
@keyframes grain-shimmer {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(1px); }
}

/* ----------------------------- LAYOUT -------------------------------- */
.container {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  width: 100%;
}
.section { padding-block: clamp(64px, 9vw, 128px); }
.divider {
  border: 0;
  border-top: 1px solid var(--hairline);
  margin: 0;
}

/* ----------------------------- TYPOGRAPHY ---------------------------- */
.eyebrow {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.8125rem;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  margin-bottom: 18px;
}
.c-dim  { color: var(--text-dim); }
.c-cyan { color: var(--cyan); }

h1 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(2.75rem, 6vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text);
}
h2 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.lead {
  color: var(--text-2);
  max-width: 68ch;
  margin-bottom: 40px;
}
.tok {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.88em;
}
.tok--lime { color: var(--lime); }
.tok--cyan { color: var(--cyan); }

/* ----------------------------- BUTTONS ------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  padding: 13px 22px;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease),
              transform 0.2s var(--ease), background 0.2s var(--ease);
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn--sm { padding: 8px 16px; font-size: 0.84rem; }
.btn--lime {
  background: var(--lime);
  color: var(--bg);
}
.btn--lime:hover { box-shadow: var(--lime-glow); transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--hairline);
}
.btn--ghost:hover { border-color: var(--hairline-hi); color: var(--lime); transform: translateY(-1px); }

/* ----------------------------- SKIP LINK ----------------------------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  background: var(--lime);
  color: var(--bg);
  font-family: var(--mono);
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 6px;
  z-index: 10000;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; text-decoration: none; }

/* ----------------------------- FOCUS RINGS --------------------------- */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ----------------------------- NAV ----------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(10, 12, 15, 0.85);
  border-bottom-color: var(--hairline);
}
.nav__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  gap: 24px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  letter-spacing: -0.01em;
}
.wordmark:hover { text-decoration: none; color: var(--text); }
.wordmark__logo { flex-shrink: 0; }
.wordmark--sm { font-size: 0.95rem; }

.caret {
  color: var(--lime);
  text-shadow: var(--lime-glow);
  animation: blink 1s step-end infinite;
  margin-left: -2px;
}
@keyframes blink { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }

.nav__links {
  display: flex;
  gap: 22px;
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.84rem;
  letter-spacing: 0.02em;
}
.nav__links a { color: var(--text-2); }
.nav__links a:hover { color: var(--lime); text-decoration: none; }

.nav__cta { display: flex; align-items: center; gap: 12px; }

.install-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-sunk);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 8px 14px;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text-2);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.install-pill:hover { border-color: var(--hairline-hi); color: var(--text); }
.install-pill.is-copied { color: var(--lime); border-color: var(--lime); }
.install-pill__icon { flex-shrink: 0; color: currentColor; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  background: var(--surface-sunk);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 0 9px;
}
.hamburger span {
  height: 2px;
  background: var(--text-2);
  border-radius: 2px;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px var(--gutter) 20px;
  border-bottom: 1px solid var(--hairline);
  background: var(--bg);
  font-family: var(--mono);
}
.mobile-menu a {
  color: var(--text-2);
  padding: 12px 4px;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--hairline);
}
.mobile-menu a:hover { color: var(--lime); text-decoration: none; }
.mobile-menu__cta { color: var(--lime) !important; border-bottom: 0 !important; }

/* ----------------------------- HERO ---------------------------------- */
.hero { padding-block: clamp(48px, 8vw, 104px); }
.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}
.hero__sub {
  color: var(--text-2);
  max-width: 60ch;
  margin: 24px 0 32px;
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 24px; }
.trust-line {
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

/* ----------------------------- TERMINAL ------------------------------ */
.hero__terminal { position: relative; }
.terminal {
  position: relative;
  background: var(--surface-sunk);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 24px 60px -30px rgba(0,0,0,0.8);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.terminal.focus-shell { border-color: var(--lime); box-shadow: var(--lime-glow); }
.terminal__chip {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-2);
  background: rgba(13, 16, 20, 0.7);
  border: 1px solid var(--hairline);
  border-radius: 20px;
  padding: 4px 12px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}
.terminal__bar {
  display: flex;
  align-items: center;
  padding: 11px 14px;
  border-bottom: 1px solid var(--hairline);
  position: relative;
}
.terminal__dots { display: inline-flex; gap: 7px; }
.td { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.td--red   { background: #F85149; }
.td--amber { background: #FFB454; }
.td--green { background: #3FB950; }
.terminal__title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-dim);
}
.terminal__body {
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.65;
  color: var(--text-2);
  padding: 16px 18px;
  min-height: 360px;
  max-height: 460px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-word;
}
.terminal__body:focus-visible { outline-offset: -2px; }

/* terminal line colors */
.t-ts     { color: var(--text-dim); }
.t-ok     { color: var(--green); }
.t-green  { color: var(--green); }
.t-cyan   { color: var(--cyan); }
.t-dim    { color: var(--text-dim); }
.t-lime   { color: var(--lime); }
.t-amber  { color: var(--amber); }
.t-warn   { color: var(--warn); }
.t-cmd    { color: var(--text); }
.t-prompt { color: var(--lime); }
.t-link   { color: var(--lime); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }

.contained-banner {
  display: inline-block;
  border: 1px solid var(--green);
  color: var(--green);
  border-radius: 6px;
  padding: 2px 8px;
  margin: 3px 0;
}

.term-caret {
  color: var(--lime);
  text-shadow: var(--lime-glow);
  animation: blink 1s step-end infinite;
}

.terminal__inputline {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 0 18px 16px;
  font-family: var(--mono);
  font-size: 0.8rem;
}
.prompt-sigil { color: var(--lime); text-shadow: var(--lime-glow); font-weight: 700; }
.terminal__input {
  flex: 1;
  background: transparent;
  border: 0;
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.65;
  caret-color: var(--lime);
  padding: 0;
}
.terminal__input:focus { outline: none; }

/* pulsing status dot */
.dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  vertical-align: baseline;
}
.dot--green { background: var(--green); }
.dot--warn  { background: var(--warn); }
.dot.pulse, .pulse { animation: dot-pulse 2s var(--ease) infinite; }
@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(63,185,80,0.5); opacity: 1; }
  50% { box-shadow: 0 0 0 4px rgba(63,185,80,0); opacity: 0.7; }
}

/* ----------------------------- DIAGRAM ------------------------------- */
.diagram-wrap { margin-top: 8px; }
.diagram {
  width: 100%;
  height: auto;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 12px;
}
.node-title {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  fill: var(--text);
  text-anchor: middle;
  letter-spacing: 0.04em;
}
.node-title--trust { fill: var(--lime); }
.node-title--dim { fill: var(--text-dim); }
.node-sub {
  font-family: var(--mono);
  font-size: 10.5px;
  fill: var(--text-dim);
  text-anchor: middle;
}
.subnode rect { fill: var(--surface); stroke: var(--hairline); stroke-width: 1; transition: stroke 0.3s var(--ease), fill 0.3s var(--ease); }
.subnode-text {
  font-family: var(--mono);
  font-size: 11px;
  fill: var(--text-2);
  text-anchor: middle;
  transition: fill 0.3s var(--ease);
}
.trust-rect { filter: drop-shadow(0 0 6px rgba(182,255,60,0.12)); }

/* node lit state */
.node.lit rect:not(.trust-rect) { stroke: var(--cyan); }
.node.lit .node-title { fill: var(--text); }
.subnode.lit rect { stroke: var(--cyan); fill: rgba(77,216,230,0.08); }
.subnode.lit .subnode-text { fill: var(--cyan); }

.wire { transition: stroke 0.3s var(--ease), filter 0.3s var(--ease); }
.wire.flow { stroke: var(--cyan); filter: drop-shadow(0 0 4px rgba(77,216,230,0.5)); }

.egress-line { opacity: 0.6; }
.egress-stamp { opacity: 0.55; transition: opacity 0.2s var(--ease); }
.egress-stamp.flash { opacity: 1; animation: egress-flash 0.6s var(--ease); }
@keyframes egress-flash {
  0% { opacity: 0.55; }
  30% { opacity: 1; filter: drop-shadow(0 0 8px rgba(248,81,73,0.6)); }
  100% { opacity: 0.55; filter: none; }
}
.egress-text {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  fill: var(--red);
  text-anchor: middle;
}

.diagram-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.replay-btn {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--lime);
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 8px 16px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.replay-btn:hover { border-color: var(--lime); box-shadow: var(--lime-glow); }
.diagram-controls__hint {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* ----------------------------- CARDS / CAP GRID ---------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.card:hover { border-color: var(--hairline-hi); transform: translateY(-1px); }

.cap-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 8px;
}
.cap-card { padding: 24px; }
.cap-card__title {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text);
  letter-spacing: 0.01em;
  margin-bottom: 10px;
}
.sigil { color: var(--text-dim); }
.cap-card__metric {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
  margin-bottom: 12px;
  letter-spacing: 0.01em;
}
.cap-card__desc { color: var(--text-2); font-size: 0.95rem; line-height: 1.65; }

/* ----------------------------- CODE BLOCK ---------------------------- */
.code-block {
  margin-top: 8px;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface-sunk);
}
.code-tabs {
  display: flex;
  gap: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--hairline);
}
.code-tab {
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-2);
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 14px 22px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.code-tab:hover { color: var(--text); }
.code-tab.is-active { color: var(--lime); border-bottom-color: var(--lime); }

.code-panel { padding: 0; }
.code {
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.75;
  color: var(--text);
  padding: 22px;
  overflow-x: auto;
  counter-reset: line;
  white-space: pre;
  tab-size: 2;
}
/* line numbers via counters on each visual line is tricky in raw pre;
   we keep numbers off-canvas-friendly: use leading gutter via ::before per code line */
.code code { display: block; }

/* syntax palette */
.code .k { color: var(--magenta); }   /* keyword */
.code .s { color: var(--cyan); }       /* string */
.code .n { color: var(--amber); }      /* number */
.code .c { color: var(--text-dim); }   /* comment */
.code .i { color: var(--text); }       /* identifier / fn */
.code .t { color: var(--magenta); }    /* JSX tag */
.code .ln { color: var(--text-dim); }

.code-run {
  border-top: 1px solid var(--hairline);
  padding: 16px 18px;
}
.mini-term {
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.65;
  color: var(--text-2);
  margin-top: 12px;
  min-height: 0;
  white-space: pre-wrap;
  word-break: break-word;
}
.mini-term:empty { display: none; }

/* ----------------------------- PS / USE CASES ------------------------ */
.ps-scroll { position: relative; margin-top: 8px; }
.ps-table {
  border: 1px solid var(--hairline);
  border-radius: 10px;
  overflow: hidden;
  min-width: 640px;
}
.ps-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.ps-row {
  display: grid;
  grid-template-columns: 90px 70px 70px 200px 1fr;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  font-family: var(--mono);
  font-size: 0.84rem;
  font-variant-numeric: tabular-nums;
  border-bottom: 1px solid var(--hairline);
  color: var(--text-2);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.ps-row:last-child { border-bottom: 0; }
.ps-row--head { color: var(--text-dim); letter-spacing: 0.05em; background: var(--surface); }
.ps-row:not(.ps-row--head) { border: 1px solid transparent; border-bottom: 1px solid var(--hairline); }
.ps-row:not(.ps-row--head):hover,
.ps-row:not(.ps-row--head):focus-visible {
  border-color: var(--hairline-hi);
  background: var(--surface);
  outline: none;
}
.ps-cmd { color: var(--lime); }
.ps-desc {
  color: var(--text-dim);
  font-family: var(--mono);
  font-size: 0.8rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.2s var(--ease), white-space 0s;
}
.ps-row:hover .ps-desc,
.ps-row:focus-visible .ps-desc { color: var(--text-2); }
.ps-scroll__fade {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 40px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--bg));
}

/* ----------------------------- STATS --------------------------------- */
.stat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 8px;
}
.stat {
  border: 1px solid var(--hairline);
  border-radius: 10px;
  background: var(--surface);
  padding: 32px 28px;
  transition: border-color 0.2s var(--ease);
}
.stat:hover { border-color: var(--hairline-hi); }
.stat__num {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  line-height: 1;
  color: var(--lime);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.stat__static { color: var(--text-2); }
.stat__cap { color: var(--text-2); font-size: 0.95rem; }
.footnote {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 24px;
}
.footnote a { color: var(--cyan); }

/* ----------------------------- POSTURE ------------------------------- */
.posture { padding: 32px; margin-top: 8px; }
.posture__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
.posture__h {
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 16px;
}
.posture__list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.posture__list li {
  color: var(--text-2);
  font-size: 0.98rem;
  line-height: 1.6;
  padding-left: 20px;
  position: relative;
}
.posture__list li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--lime);
  font-family: var(--mono);
}
.posture__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--hairline);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-2);
  background: var(--surface-sunk);
  border: 1px solid var(--hairline);
  border-radius: 20px;
  padding: 7px 14px;
}
.posture__honest {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 18px;
}

/* ----------------------------- CTA BAND ------------------------------ */
.cta-band {
  background: var(--surface-sunk);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding-block: clamp(64px, 9vw, 110px);
}
.cta-band__inner { text-align: center; }
.cta-band__h {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 18ch;
  margin: 0 auto 32px;
}
.cta-loop {
  max-width: 560px;
  margin: 0 auto 32px;
  text-align: left;
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 20px 22px;
}
.cta-loop__pre {
  font-family: var(--mono);
  font-size: 0.84rem;
  line-height: 1.7;
  color: var(--text-2);
  min-height: 5.2em;
  white-space: pre-wrap;
}
.cta-band__ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ----------------------------- FOOTER -------------------------------- */
.footer {
  padding-block: 56px 40px;
  border-top: 1px solid var(--hairline);
}
.footer__tree {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  font-family: var(--mono);
  font-size: 0.86rem;
  margin-bottom: 40px;
}
.footer__node {
  display: flex;
  gap: 14px;
  padding: 10px 0;
  color: var(--text-2);
  border-bottom: 1px solid var(--hairline);
}
.footer__node:hover { text-decoration: none; }
.footer__node:hover .footer__path { color: var(--lime); }
.footer__path { color: var(--cyan); min-width: 110px; transition: color 0.2s var(--ease); }
.footer__leaf { color: var(--text-dim); }

.footer__strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  padding-top: 28px;
  border-top: 1px solid var(--hairline);
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-dim);
}
.footer__meta { color: var(--text-dim); font-variant-numeric: tabular-nums; }
.footer__legal { margin-left: auto; }
.footer__legal a { color: var(--text-2); }
.footer__legal a:hover { color: var(--lime); }

/* ----------------------------- REVEAL -------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.36s var(--ease), transform 0.36s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ----------------------------- RESPONSIVE ---------------------------- */
@media (min-width: 600px) {
  .cap-grid { grid-template-columns: 1fr 1fr; }
  .stat-grid { grid-template-columns: repeat(3, 1fr); }
  .posture__grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
  .cap-grid { grid-template-columns: repeat(3, 1fr); }
  .footer__tree { grid-template-columns: 1fr 1fr; gap: 4px 48px; }
}

@media (max-width: 860px) {
  .nav__links { display: none; }
  .hamburger { display: flex; }
  .install-pill__text { display: none; }
  .install-pill { padding: 9px 11px; }
  .install-pill::before { content: "$ npm i"; }
  /* When collapsed, the visible label is this pseudo-element, not
     .install-pill__text (which is display:none here). Drive the copied
     confirmation through the same channel so feedback stays visible. */
  .install-pill.is-copied::before { content: "✓ copied"; }
}
@media (min-width: 861px) {
  .mobile-menu { display: none !important; }
}

@media (max-width: 600px) {
  /* The chip is absolutely positioned over the bar and would overlap the
     centered terminal title on narrow viewports. It's aria-hidden decoration,
     so hide it rather than let it collide. */
  .terminal__chip { display: none; }
}

@media (max-width: 480px) {
  .install-pill { display: none; }
}

/* ----------------------------- REDUCED MOTION ------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .grain { animation: none; }
  .caret, .term-caret { animation: none; opacity: 1; }
  .reveal { opacity: 1; transform: none; }
}
