/* Expanse product site. Hand-written CSS, no build step, no external requests.
   Fonts are self-hosted (Inter, JetBrains Mono; OFL). Light/dark follow the
   system unless <html data-theme> overrides (site.js). */

/* ---------- fonts ---------- */
@font-face {
  font-family: "Inter";
  src: url("fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/JetBrainsMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/JetBrainsMono-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

/* ---------- tokens ---------- */
:root {
  color-scheme: light dark;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --bg: #ffffff;
  --bg-2: #f5f7fb;
  --bg-3: #eceff5;
  --surface: #ffffff;
  --surface-2: #f8fafd;
  --border: #e2e7ef;
  --border-strong: #c9d2df;
  --fg: #0f1520;
  --muted: #4f5b70;
  --faint: #7b8699;

  --accent: #1f6feb;
  --accent-hover: #175fce;
  --accent-fg: #ffffff;
  --accent-soft: #e6effd;
  --accent-2: #0d9488;
  --accent-2-soft: #dcf5f1;
  --focus: #1f6feb;

  --ok: #1a7f37;   --ok-bg: #dcf5e4;
  --warn: #b7791f; --warn-bg: #fdf0d5;
  --crit: #cf222e; --crit-bg: #fde8ea;

  --term-bg: #0b0f14;
  --term-bg-2: #121820;
  --term-fg: #dfe6ef;
  --term-muted: #7e8ba0;
  --term-green: #3fb950;
  --term-yellow: #e3b341;
  --term-cyan: #56d4dd;
  --term-red: #ff7b72;
  --term-blue: #79b8ff;

  --shadow-sm: 0 1px 2px rgba(15, 21, 32, 0.06), 0 1px 3px rgba(15, 21, 32, 0.04);
  --shadow-md: 0 8px 24px rgba(15, 21, 32, 0.10);
  --shadow-lg: 0 24px 64px rgba(15, 21, 32, 0.18);
  --glow: 0 0 0 1px rgba(31, 111, 235, 0.10), 0 24px 80px rgba(31, 111, 235, 0.16);

  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 18px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 64px;
  --max: 1180px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #090d13;
    --bg-2: #0e131b;
    --bg-3: #131a24;
    --surface: #10161f;
    --surface-2: #151c27;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.16);
    --fg: #e9eef5;
    --muted: #a3aec0;
    --faint: #6f7b8f;
    --accent: #5b9dff;
    --accent-hover: #7cb0ff;
    --accent-fg: #06101f;
    --accent-soft: #13233c;
    --accent-2: #34d3c3;
    --accent-2-soft: #0f2a2a;
    --focus: #7cb0ff;
    --ok: #3fb950;   --ok-bg: #12301c;
    --warn: #d29922; --warn-bg: #3a2a08;
    --crit: #f85149; --crit-bg: #3d1417;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.6);
    --glow: 0 0 0 1px rgba(91, 157, 255, 0.14), 0 24px 80px rgba(91, 157, 255, 0.14);
  }
}
:root[data-theme="dark"] {
  --bg: #090d13;
  --bg-2: #0e131b;
  --bg-3: #131a24;
  --surface: #10161f;
  --surface-2: #151c27;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --fg: #e9eef5;
  --muted: #a3aec0;
  --faint: #6f7b8f;
  --accent: #5b9dff;
  --accent-hover: #7cb0ff;
  --accent-fg: #06101f;
  --accent-soft: #13233c;
  --accent-2: #34d3c3;
  --accent-2-soft: #0f2a2a;
  --focus: #7cb0ff;
  --ok: #3fb950;   --ok-bg: #12301c;
  --warn: #d29922; --warn-bg: #3a2a08;
  --crit: #f85149; --crit-bg: #3d1417;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.6);
  --glow: 0 0 0 1px rgba(91, 157, 255, 0.14), 0 24px 80px rgba(91, 157, 255, 0.14);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--fg);
  background: var(--bg);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 0.15em; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 5.4vw, 4rem); letter-spacing: -0.035em; line-height: 1.04; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); letter-spacing: -0.03em; }
h3 { font-size: 1.125rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 600; }
code, pre, kbd, samp { font-family: var(--mono); font-size: 0.9em; }
code { background: var(--bg-3); padding: 0.1em 0.4em; border-radius: 5px; color: var(--fg); }
pre code { background: none; padding: 0; border-radius: 0; font-size: inherit; color: inherit; }
kbd { background: var(--bg-3); border: 1px solid var(--border-strong); border-bottom-width: 2px; padding: 0.05em 0.45em; border-radius: 5px; font-size: 0.85em; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.skip-link { position: absolute; left: -999px; top: 0; z-index: 200; background: var(--accent); color: var(--accent-fg); padding: 0.6rem 0.9rem; border-radius: 0 0 8px 0; font-weight: 600; }
.skip-link:focus { left: 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.container-narrow { max-width: 820px; }
.muted { color: var(--muted); }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--muted); line-height: 1.6; }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sprite { display: none; }
[hidden] { display: none !important; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header .container { height: 100%; display: flex; align-items: center; gap: 1.25rem; }
.brand { display: flex; align-items: center; gap: 0.6rem; color: var(--fg); font-weight: 700; font-size: 1.1rem; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 30px; height: 30px; }
.brand-version { font-family: var(--mono); font-size: 0.72rem; font-weight: 500; color: var(--muted); background: var(--bg-3); padding: 0.15em 0.5em; border-radius: 999px; margin-left: 0.2rem; }
.site-nav { display: flex; align-items: center; gap: 0.25rem; margin-left: 0.5rem; }
.site-nav a { color: var(--muted); font-weight: 500; font-size: 0.95rem; padding: 0.45rem 0.7rem; border-radius: 8px; }
.site-nav a:hover { color: var(--fg); background: var(--bg-3); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--fg); background: var(--bg-3); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 0.5rem; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; padding: 0; border-radius: 9px;
  border: 1px solid var(--border); background: var(--surface); color: var(--muted); cursor: pointer;
}
.icon-btn:hover { color: var(--fg); border-color: var(--border-strong); }
.icon-btn .icon { width: 18px; height: 18px; }
.icon-moon { display: none; }
[data-theme="dark"] .icon-moon { display: block; }
[data-theme="dark"] .icon-sun { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-moon { display: block; }
  :root:not([data-theme="light"]) .icon-sun { display: none; }
}
.menu-btn { display: none; }
@media (max-width: 860px) {
  .site-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: var(--header-h);
    flex-direction: column; align-items: stretch; gap: 0.15rem; margin: 0;
    padding: 0.75rem var(--gutter) 1rem;
    background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 0.7rem 0.75rem; font-size: 1rem; }
  .menu-btn { display: inline-flex; }
  .site-header .container { gap: 0.75rem; }
}
@media (max-width: 420px) { .brand-version { display: none; } }
@media (max-width: 379px) { .header-actions .header-cta { display: none; } }
@media (max-width: 560px) {
  .window-bar > span:not(.dots):not(.url) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .window-bar .url { display: none; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.7rem 1.15rem; border-radius: 10px;
  font-weight: 600; font-size: 0.95rem; line-height: 1;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { text-decoration: none; }
.btn .icon { width: 1.05em; height: 1.05em; }
.btn-primary { background: var(--accent); color: var(--accent-fg); box-shadow: 0 1px 2px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.18); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: var(--surface); color: var(--fg); border-color: var(--border-strong); }
.btn-secondary:hover { background: var(--bg-3); }
.btn-ghost { background: transparent; color: var(--fg); border-color: transparent; }
.btn-ghost:hover { background: var(--bg-3); }
.btn-lg { padding: 0.9rem 1.5rem; font-size: 1.05rem; border-radius: 12px; }
.btn-sm { padding: 0.45rem 0.8rem; font-size: 0.85rem; border-radius: 8px; }
@media (prefers-reduced-motion: no-preference) {
  .btn-primary:hover { transform: translateY(-1px); }
}

/* ---------- sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { margin-bottom: 0.9rem; }
.eyebrow { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
.eyebrow::before { content: ""; width: 1.4rem; height: 2px; background: var(--accent); border-radius: 2px; }
.center .eyebrow::before { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(2rem, 4vw, 3rem); overflow: clip; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 50% at 50% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
    radial-gradient(35% 35% at 85% 20%, color-mix(in srgb, var(--accent-2) 14%, transparent), transparent 70%);
}
.hero-grid { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.55;
  background-image:
    linear-gradient(to right, var(--border) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 20%, #000 20%, transparent 100%);
  mask-image: radial-gradient(70% 60% at 50% 20%, #000 20%, transparent 100%);
}
.hero-inner { text-align: center; max-width: 860px; margin: 0 auto; }
.pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.35rem 0.85rem 0.35rem 0.5rem; border-radius: 999px;
  border: 1px solid var(--border-strong); background: var(--surface);
  font-size: 0.85rem; font-weight: 500; color: var(--muted); box-shadow: var(--shadow-sm);
}
.pill:hover { text-decoration: none; border-color: var(--accent); color: var(--fg); }
.pill .tag { background: var(--accent); color: var(--accent-fg); font-family: var(--mono); font-size: 0.72rem; font-weight: 600; padding: 0.15em 0.55em; border-radius: 999px; }
.pill .icon { width: 1em; height: 1em; }
.hero h1 { margin: 1.5rem 0 1.25rem; }
.hero h1 .grad {
  background: linear-gradient(92deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead { max-width: 700px; margin: 0 auto 2rem; }
.hero-actions { display: flex; justify-content: center; gap: 0.75rem; flex-wrap: wrap; }
.hero-meta { margin-top: 1.5rem; display: flex; justify-content: center; gap: 1.25rem; flex-wrap: wrap; color: var(--muted); font-size: 0.9rem; }
.hero-meta span { display: inline-flex; align-items: center; gap: 0.4rem; }
.hero-meta .icon { width: 1em; height: 1em; color: var(--ok); }

/* ---------- product stage (mocks) ---------- */
.stage { margin-top: clamp(2.5rem, 5vw, 4rem); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.25rem; align-items: stretch; }
@media (max-width: 960px) { .stage { grid-template-columns: minmax(0, 1fr); } }
.window {
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-lg);
}
.window-dark { background: var(--term-bg); color: var(--term-fg); border-color: rgba(255,255,255,0.10); }
.window-bar { display: flex; align-items: center; gap: 0.5rem; height: 38px; padding: 0 0.9rem; border-bottom: 1px solid var(--border); background: var(--surface-2); font-size: 0.78rem; color: var(--muted); }
.window-dark .window-bar { background: var(--term-bg-2); border-color: rgba(255,255,255,0.08); color: var(--term-muted); }
.window-bar .dots { display: flex; gap: 6px; margin-right: 0.35rem; }
.window-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.window-dark .window-bar .dots i { background: rgba(255,255,255,0.18); }
.window-bar .dots i:nth-child(1) { background: #ff5f57; } .window-bar .dots i:nth-child(2) { background: #febc2e; } .window-bar .dots i:nth-child(3) { background: #28c840; }
.window-bar .url { margin-left: auto; font-family: var(--mono); font-size: 0.74rem; padding: 0.2em 0.6em; border-radius: 6px; background: var(--bg-3); color: var(--muted); }
.window-dark .window-bar .url { background: rgba(255,255,255,0.06); color: var(--term-muted); }

/* web UI mock */
.mu svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.mu { display: grid; grid-template-columns: 150px minmax(0, 1fr); font-size: 11.5px; line-height: 1.35; min-height: 330px; }
.mu-side { background: #0b0f14; color: #b7c2d0; padding: 0.7rem 0.5rem; border-right: 1px solid rgba(255,255,255,0.06); display: flex; flex-direction: column; gap: 2px; }
.mu-side .mu-brand { display: flex; align-items: center; gap: 0.4rem; color: #fff; font-weight: 700; font-size: 12.5px; padding: 0.1rem 0.45rem 0.7rem; }
.mu-side .mu-brand svg { width: 16px; height: 16px; color: #5b9dff; }
.mu-side .grp { font-size: 8.5px; text-transform: uppercase; letter-spacing: 0.09em; color: #6b7789; padding: 0.55rem 0.5rem 0.2rem; }
.mu-side .it { display: flex; align-items: center; gap: 0.4rem; padding: 0.3rem 0.5rem; border-radius: 5px; border-left: 2px solid transparent; }
.mu-side .it svg { width: 12px; height: 12px; opacity: 0.85; }
.mu-side .it.on { background: rgba(63,131,248,0.22); color: #fff; border-left-color: #5b9dff; }
.mu-main { background: var(--bg-2); display: flex; flex-direction: column; min-width: 0; }
.mu-head { display: flex; align-items: center; gap: 0.5rem; padding: 0.45rem 0.8rem; background: var(--surface); border-bottom: 1px solid var(--border); }
.mu-head strong { font-weight: 600; }
.mu-head .sp { flex: 1; }
.mu-head .avatar { width: 18px; height: 18px; border-radius: 50%; background: var(--accent); color: var(--accent-fg); display: inline-grid; place-items: center; font-size: 9px; font-weight: 700; }
.mu-body { padding: 0.75rem 0.8rem; display: flex; flex-direction: column; gap: 0.6rem; }
.mu-title { display: flex; align-items: baseline; gap: 0.5rem; }
.mu-title h4 { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.mu-title .live { margin-left: auto; display: inline-flex; align-items: center; gap: 0.3rem; font-size: 9.5px; color: var(--ok); font-weight: 600; }
.mu-title .live i, .spill i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; display: inline-block; }
.mu-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.45rem; }
.mu-stat { background: var(--surface); border: 1px solid var(--border); border-radius: 7px; padding: 0.5rem 0.6rem; border-top: 2px solid var(--ok); }
.mu-stat.warn { border-top-color: var(--warn); } .mu-stat.neutral { border-top-color: var(--border-strong); }
.mu-stat .l { display: flex; align-items: center; gap: 0.3rem; color: var(--muted); font-size: 9.5px; font-weight: 500; }
.mu-stat .l svg { width: 11px; height: 11px; }
.mu-stat .v { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; margin-top: 0.1rem; }
.mu-stat .v small { font-size: 10px; font-weight: 500; color: var(--muted); margin-left: 0.15em; }
.mu-stat .s { font-size: 9.5px; color: var(--muted); }
.mu-card { min-width: 0; overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: 7px; padding: 0.5rem 0.6rem; }
.mu-card { container-type: inline-size; }
@container (max-width: 440px) { .mu .api { display: none; } }
@container (max-width: 300px) { .mu .raft { display: none; } }
@container (max-width: 150px) { .mu-ev .t { display: none; } }
.mu-card h5 { margin: 0 0 0.35rem; font-size: 11px; font-weight: 600; }
.mu-row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0.45rem; }
.mu-ok { display: flex; align-items: center; gap: 0.4rem; color: var(--ok); font-size: 10.5px; }
.mu-ok svg { width: 13px; height: 13px; }
.mu-ev { display: flex; gap: 0.4rem; align-items: center; font-size: 9.5px; padding: 0.15rem 0; color: var(--muted); }
.mu-ev .t { font-family: var(--mono); color: var(--faint); }
.mu-ev .k { font-family: var(--mono); color: var(--fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mu-ev .tag { font-size: 8.5px; padding: 0.05em 0.4em; border-radius: 4px; background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.mu table { width: 100%; border-collapse: collapse; font-size: 10.5px; }
.mu th { text-align: left; font-weight: 600; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: 0.05em; padding: 0.2rem 0.3rem; border-bottom: 1px solid var(--border); }
.mu td { padding: 0.28rem 0.3rem; border-bottom: 1px solid var(--border); white-space: nowrap; }
.mu tr:last-child td { border-bottom: 0; }
.mu td code { font-size: 9.5px; padding: 0.05em 0.3em; }
.spill { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.1em 0.5em; border-radius: 999px; font-size: 9.5px; font-weight: 600; background: var(--ok-bg); color: var(--ok); }
.spill.n { background: var(--bg-3); color: var(--muted); }
.spill.leader { background: var(--accent-soft); color: var(--accent); }
@media (max-width: 560px) {
  .mu { grid-template-columns: minmax(0, 1fr); }
  .mu-side { display: none; }
  .mu-stats { grid-template-columns: repeat(2, 1fr); }
  .mu-row2 { grid-template-columns: minmax(0, 1fr); }
  .mu .hide-sm { display: none; }
}

/* tty1 console mock */
.window-dark { display: flex; flex-direction: column; }
.tty { flex: 1; container-type: inline-size; padding: 0.9rem 1rem 1rem; overflow-x: auto; font-family: var(--mono); line-height: 1.42; }
/* Fit all 72 columns: JetBrains Mono advances 0.6em, and some renderers round advances to whole pixels */
.tty pre { margin: 0; font: inherit; font-size: min(11px, 100cqi / 44); font-size: min(11px, round(down, 100cqi / 72, 1px) / 0.6); color: var(--term-fg); }
.tty .hdr { background: var(--term-fg); color: var(--term-bg); font-weight: 500; }
.tty .dim { color: var(--term-muted); }
.tty .g { color: var(--term-green); font-weight: 500; }
.tty .y { color: var(--term-yellow); }
.tty .c { color: var(--term-cyan); }
.tty .b { font-weight: 500; color: #fff; }
.tty .hdr .b { color: inherit; }
.tty .box { color: #4b5566; }
.stage-caption { display: flex; justify-content: space-between; gap: 1rem; margin-top: 0.75rem; font-size: 0.85rem; color: var(--muted); flex-wrap: wrap; }

/* ---------- adopted-parts strip ---------- */
.parts { padding: 1.5rem 0 0; }
.parts-label { text-align: center; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); margin-bottom: 1rem; }
.parts-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 0.6rem; }
.part { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.4rem 0.8rem; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); font-size: 0.85rem; font-weight: 500; }
.part .icon { width: 0.95em; height: 0.95em; color: var(--accent-2); }

/* ---------- feature grid ---------- */
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.card {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); }
@media (prefers-reduced-motion: no-preference) { .card:hover { transform: translateY(-2px); } }
.card-icon { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 1.1rem; }
.card-icon .icon { width: 22px; height: 22px; }
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--muted); font-size: 0.95rem; }
.card .more { display: inline-flex; align-items: center; gap: 0.3rem; margin-top: 0.9rem; font-size: 0.9rem; font-weight: 600; }
.card .more .icon { width: 1em; height: 1em; }
.card-featured { grid-column: span 2; background: linear-gradient(135deg, var(--accent-soft), var(--surface) 60%); }
@media (max-width: 700px) { .card-featured { grid-column: auto; } }

/* ---------- how it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; counter-reset: step; }
@media (max-width: 960px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.step { position: relative; min-width: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; display: flex; flex-direction: column; gap: 0.9rem; }
.step-num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--accent-fg); font-weight: 700; font-size: 0.95rem; font-family: var(--mono); }
.step h3 { font-size: 1.2rem; }
.step p { color: var(--muted); font-size: 0.95rem; }
.step .code { margin-top: auto; }
.step .code pre { font-size: 0.8rem; white-space: pre-wrap; overflow-wrap: anywhere; }

/* ---------- code blocks / terminal ---------- */
.code, .terminal { position: relative; background: var(--term-bg); color: var(--term-fg); border: 1px solid rgba(255,255,255,0.10); border-radius: var(--radius-sm); overflow: hidden; }
.code pre, .terminal pre { margin: 0; padding: 1rem 1.1rem; overflow-x: auto; font-family: var(--mono); font-size: 0.86rem; line-height: 1.6; tab-size: 4; white-space: pre-wrap; overflow-wrap: anywhere; }
.code.nowrap pre, .terminal.nowrap pre { white-space: pre; overflow-wrap: normal; }
.terminal { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.terminal pre { padding: 1.25rem 1.4rem; font-size: 0.9rem; }
.terminal .window-bar { background: var(--term-bg-2); border-color: rgba(255,255,255,0.08); color: var(--term-muted); }
.terminal .window-bar .dots i { background: rgba(255,255,255,0.18); }
.code-title { display: flex; align-items: center; gap: 0.5rem; padding: 0.45rem 1rem; font-family: var(--mono); font-size: 0.75rem; color: var(--term-muted); background: var(--term-bg-2); border-bottom: 1px solid rgba(255,255,255,0.08); }
.copy-btn {
  position: absolute; top: 0.5rem; right: 0.5rem; z-index: 2;
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.3rem 0.55rem; border-radius: 6px; border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06); color: var(--term-muted); font: 500 0.72rem var(--font); cursor: pointer;
  opacity: 0; transition: opacity 0.15s ease;
}
.copy-btn .icon { width: 0.95rem; height: 0.95rem; }
.copy-btn:hover, .copy-btn:focus-visible, .copy-btn.done { opacity: 1; color: #fff; }
.code:hover .copy-btn, .terminal:hover .copy-btn { opacity: 1; }
@media (hover: none) { .copy-btn { opacity: 1; } }
.p { color: var(--term-muted); user-select: none; }
.cmd { color: #fff; font-weight: 500; }
.out { color: var(--term-fg); }
.ok { color: var(--term-green); }
.warn { color: var(--term-yellow); }
.cy { color: var(--term-cyan); }
.cm { color: var(--term-muted); font-style: italic; }
.k { color: var(--term-blue); }
.s { color: #a5d6ff; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
@media (max-width: 960px) { .split { grid-template-columns: minmax(0, 1fr); } }
.split .lead { margin-bottom: 1.5rem; }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.7rem; }
.checks li { display: flex; gap: 0.7rem; align-items: flex-start; color: var(--muted); }
.checks li .icon { width: 1.25rem; height: 1.25rem; color: var(--ok); margin-top: 0.15rem; }
.checks li strong { color: var(--fg); }

/* ---------- honest comparison ---------- */
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.25rem; }
@media (max-width: 800px) { .two { grid-template-columns: minmax(0, 1fr); } }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.panel h3 { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; font-size: 1.15rem; }
.panel h3 .icon { width: 1.2rem; height: 1.2rem; }
.panel.is h3 .icon { color: var(--ok); }
.panel.isnt h3 .icon { color: var(--warn); }
.panel ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.panel li { color: var(--muted); font-size: 0.95rem; padding-left: 1.2rem; position: relative; }
.panel li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 6px; height: 6px; border-radius: 50%; background: var(--border-strong); }
.panel li strong { color: var(--fg); }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table.t { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
table.t th, table.t td { text-align: left; padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); vertical-align: top; }
table.t th { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); background: var(--surface-2); font-weight: 600; }
table.t tr:last-child td { border-bottom: 0; }
table.t td:first-child { font-weight: 600; white-space: nowrap; }

/* ---------- stats band ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 800px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat { min-width: 0; padding: 1.25rem 1.25rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.stat .n { font-size: 2rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.stat .n small { font-size: 1rem; color: var(--muted); font-weight: 500; margin-left: 0.1em; }
.stat .d { color: var(--muted); font-size: 0.9rem; margin-top: 0.3rem; }

/* ---------- CTA band ---------- */
.cta { position: relative; border-radius: var(--radius-lg); overflow: hidden; padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 4rem); text-align: center; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--glow); }
.cta::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(50% 80% at 50% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%); }
.cta > * { position: relative; z-index: 1; }
.cta h2 { margin-bottom: 0.75rem; }
.cta .lead { max-width: 620px; margin: 0 auto 1.75rem; }
.cta .hero-actions { margin: 0; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-2); padding: 3rem 0 2rem; color: var(--muted); font-size: 0.92rem; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, minmax(0, 1fr)); gap: 2rem; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }
.site-footer h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--fg); margin-bottom: 0.8rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.45rem; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--fg); }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 0.85rem; color: var(--faint); }
.footer-bottom .made-with { flex-basis: 100%; margin: 0; color: var(--muted); }
.footer-bottom .made-with a { text-decoration: underline; text-underline-offset: 0.15em; }
.nowrap { white-space: nowrap; }
section[id] { scroll-margin-top: var(--header-h); }

/* ---------- page hero (subpages) ---------- */
.page-hero { padding: clamp(3rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3rem); position: relative; overflow: clip; }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); margin-bottom: 1rem; }
.page-hero .lead { max-width: 720px; }

/* ---------- feature detail sections ---------- */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; padding: clamp(2.5rem, 5vw, 4rem) 0; border-top: 1px solid var(--border); }
.feature:first-of-type { border-top: 0; }
.feature.flip .feature-text { order: 2; }
@media (max-width: 900px) { .feature { grid-template-columns: minmax(0, 1fr); } .feature.flip .feature-text { order: 0; } }
.feature h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 0.5rem 0 0.9rem; }
.feature .lead { font-size: 1.05rem; margin-bottom: 1.25rem; }
.feature .checks { margin-top: 0.5rem; }
.feature .code { box-shadow: var(--shadow-md); }
.feature .code pre, .feature .terminal pre { font-size: 0.82rem; }
.feature-text .card-icon { margin-bottom: 0.75rem; }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 0.75rem; margin: 1.25rem 0 0; }
.kv > div { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0.75rem 0.9rem; }
.kv dt { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 600; }
.kv dd { margin: 0.15rem 0 0; font-weight: 600; font-size: 0.98rem; }

/* ---------- docs layout ---------- */
.docs { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); padding-top: 2rem; padding-bottom: 5rem; }
@media (max-width: 900px) { .docs { grid-template-columns: minmax(0, 1fr); } }
.toc { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; font-size: 0.9rem; }
@media (max-width: 900px) { .toc { position: static; border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.25rem; background: var(--surface); } }
.toc h4 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 0.6rem; }
.toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.1rem; border-left: 1px solid var(--border); }
.toc a { display: block; color: var(--muted); padding: 0.32rem 0.9rem; margin-left: -1px; border-left: 2px solid transparent; }
.toc a:hover { color: var(--fg); text-decoration: none; }
.toc a.active { color: var(--accent); border-left-color: var(--accent); font-weight: 600; }
.prose { max-width: 760px; }
.prose h2 { font-size: 1.6rem; margin: 3rem 0 1rem; padding-top: 0.5rem; scroll-margin-top: calc(var(--header-h) + 16px); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.15rem; margin: 2rem 0 0.75rem; scroll-margin-top: calc(var(--header-h) + 16px); }
.prose p, .prose li { color: var(--muted); }
.prose li { margin-bottom: 0.4rem; }
.prose strong, .prose li strong { color: var(--fg); }
.prose .code { margin: 1rem 0 1.5rem; }
.prose ol, .prose ul { padding-left: 1.4rem; }
.prose table.t td, .prose table.t th { padding: 0.6rem 0.8rem; }
.prose .table-wrap { margin: 1rem 0 1.5rem; }
.callout { display: flex; gap: 0.8rem; padding: 1rem 1.1rem; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--bg-2); margin: 1.25rem 0; font-size: 0.95rem; }
.callout .icon { width: 1.3rem; height: 1.3rem; flex: none; margin-top: 0.1rem; }
.callout.warn { background: var(--warn-bg); border-color: color-mix(in srgb, var(--warn) 40%, transparent); }
.callout.warn .icon { color: var(--warn); }
.callout.info .icon { color: var(--accent); }
.callout p { margin: 0; color: var(--fg); }
.callout p + p { margin-top: 0.4rem; }
.h-anchor { color: var(--faint); font-weight: 400; margin-left: 0.4rem; opacity: 0; font-size: 0.8em; }
h2:hover .h-anchor, h3:hover .h-anchor { opacity: 1; }
.doc-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--border); flex-wrap: wrap; }

/* ---------- download page ---------- */
.release { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
@media (max-width: 900px) { .release { grid-template-columns: minmax(0, 1fr); } }
.release-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.25rem); box-shadow: var(--glow); position: relative; overflow: hidden; }
.release-card::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 60% at 100% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%); }
.release-card > * { position: relative; }
.release-card h2 { font-size: 1.7rem; margin: 0.5rem 0 0.25rem; }
.release-card .date { color: var(--muted); font-size: 0.92rem; margin-bottom: 1.25rem; }
.file { display: flex; align-items: center; gap: 0.9rem; padding: 0.9rem 1rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-2); margin-bottom: 1rem; }
.file .icon { width: 1.5rem; height: 1.5rem; color: var(--accent); }
.file .name { font-family: var(--mono); font-size: 0.88rem; font-weight: 500; word-break: break-all; }
.file .meta { font-size: 0.8rem; color: var(--muted); }
.file .sha256 { font-size: 0.72rem; overflow-wrap: anywhere; }
.reqs { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 0.75rem; }
.reqs > div { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0.8rem 0.9rem; }
.reqs .n { font-weight: 700; font-size: 1.25rem; letter-spacing: -0.02em; }
.reqs .d { font-size: 0.8rem; color: var(--muted); }
.changelog { display: flex; flex-direction: column; gap: 1rem; }
.rel { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.rel summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 0.75rem; padding: 1rem 1.25rem; font-weight: 600; }
.rel summary::-webkit-details-marker { display: none; }
.rel summary .ver { font-family: var(--mono); background: var(--bg-3); padding: 0.15em 0.55em; border-radius: 6px; font-size: 0.9rem; }
.rel summary .when { color: var(--muted); font-weight: 400; font-size: 0.9rem; }
.rel summary .chev { margin-left: auto; transition: transform 0.2s ease; color: var(--muted); }
.rel[open] summary .chev { transform: rotate(180deg); }
.rel-body { padding: 0 1.25rem 1.25rem; color: var(--muted); font-size: 0.95rem; border-top: 1px solid var(--border); }
.rel-body h4 { margin: 1.1rem 0 0.4rem; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--fg); }
.rel-body ul { margin: 0; padding-left: 1.2rem; }
.rel-body code { overflow-wrap: anywhere; }
.rel-body li { margin-bottom: 0.35rem; }
.rel-body li strong { color: var(--fg); }
.rel.latest summary .ver { background: var(--accent); color: var(--accent-fg); }

/* ---------- reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
  .reveal.in { opacity: 1; transform: none; }
  .reveal-2 { transition-delay: 0.1s; } .reveal-3 { transition-delay: 0.2s; }
}
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }
