/* Dark, developer-grade, restrained: one accent (set from site.config.ts as
   --accent), neutral greys for everything that is not the language itself. */

:root {
  --accent: #5cf2b2;
  --accent-soft: color-mix(in srgb, var(--accent) 14%, transparent);
  --accent-line: color-mix(in srgb, var(--accent) 38%, transparent);
  --bg: #08090b;
  --bg-alt: #0b0d10;
  --surface: #0f1215;
  --surface-2: #14181c;
  --line: #1c2127;
  --line-2: #262c34;
  --text: #e9ebee;
  --text-2: #b3b9c2;
  --muted: #7b838e;
  --other: #3a414b;
  --other-2: #4a525d;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius: 10px;
  --wrap: 1180px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
code { font-family: var(--mono); font-size: 0.88em; color: var(--text); background: var(--surface-2); border: 1px solid var(--line); border-radius: 5px; padding: 0.05em 0.35em; }
h1, h2, h3 { margin: 0; letter-spacing: -0.025em; font-weight: 600; }
p { margin: 0; }
::selection { background: var(--accent-line); color: #fff; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }

/* ── nav ─────────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 60px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 600 17px/1 var(--mono); letter-spacing: -0.02em; }
.wordmark .glyph { color: var(--accent); }
.nav-links { display: flex; gap: 22px; margin-left: 8px; }
.nav-links a { color: var(--text-2); text-decoration: none; font-size: 14px; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--text); }
.nav .btn-small { margin-left: auto; }
@media (max-width: 720px) {
  .nav-inner { flex-wrap: wrap; height: auto; padding-top: 12px; row-gap: 0; }
  .nav .btn-small { margin-left: auto; }
  .nav-links { order: 3; width: 100%; margin: 0; padding: 10px 0 12px; gap: 20px; overflow-x: auto; scrollbar-width: none; }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { white-space: nowrap; }
}

/* ── buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 8px;
  background: var(--accent); color: #04130c; text-decoration: none;
  font: 600 15px/1 var(--sans); border: 1px solid transparent;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.btn:hover { box-shadow: 0 0 0 4px var(--accent-soft); }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--surface); box-shadow: none; border-color: var(--other-2); }
.btn-small { height: 34px; padding: 0 14px; font-size: 13.5px; border-radius: 7px; }

/* ── hero ────────────────────────────────────────────────────────────── */
.hero { position: relative; padding: 88px 0 72px; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 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%);
  opacity: 0.55;
}
.hero::after {
  content: ""; position: absolute; left: 50%; top: -240px; width: 900px; height: 520px; transform: translateX(-50%);
  background: radial-gradient(closest-side, var(--accent-soft), transparent);
  pointer-events: none; filter: blur(10px);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 12.5px/1 var(--mono); color: var(--text-2); letter-spacing: 0.02em; padding: 7px 12px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent-line); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 var(--accent-line); } 70%, 100% { box-shadow: 0 0 0 8px transparent; } }
.hero h1 { margin-top: 22px; font-size: clamp(40px, 5.6vw, 66px); line-height: 1.02; letter-spacing: -0.045em; font-weight: 650; }
.lede { margin-top: 22px; font-size: 18.5px; line-height: 1.6; color: var(--text-2); max-width: 36em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-fine { margin-top: 22px; font: 400 12.5px/1 var(--mono); color: var(--muted); letter-spacing: 0.02em; }
@media (max-width: 980px) {
  .hero { padding: 56px 0 48px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}

/* ── panels (code windows with tabs) ─────────────────────────────────── */
.panel { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.02) inset; min-width: 0; }
.panel-tabs { display: flex; border-bottom: 1px solid var(--line); background: var(--bg-alt); overflow-x: auto; scrollbar-width: none; }
.panel-tabs::-webkit-scrollbar { display: none; }
.panel-tabs button {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 16px; border: 0; border-right: 1px solid var(--line); background: transparent; color: var(--muted);
  font: 500 13px/1 var(--mono); cursor: pointer; position: relative; white-space: nowrap;
}
.panel-tabs button:hover { color: var(--text-2); }
.panel-tabs button[aria-selected="true"] { color: var(--text); background: var(--surface); }
.panel-tabs button[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); }
.panel-tabs .step { color: var(--accent); font-size: 11.5px; }
.panel-file { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; font: 400 12.5px/1.2 var(--mono); color: var(--muted); border-bottom: 1px solid var(--line); }
.panel-file span::before { content: "› "; color: var(--accent); }
.panel-foot { padding: 10px 16px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.copy { border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text-2); font: 500 12px/1 var(--mono); padding: 6px 10px; border-radius: 6px; cursor: pointer; }
.copy:hover { color: var(--text); border-color: var(--other-2); }

.code { margin: 0; padding: 18px 18px 20px; overflow-x: auto; font: 400 13.4px/1.68 var(--mono); color: #c9cfd6; tab-size: 2; }
.code + .code { border-top: 1px dashed var(--line); }
.code code { background: none; border: 0; padding: 0; font-size: inherit; color: inherit; }
.t-kw { color: #c792ea; }
.t-ty { color: #82aaff; }
.t-fn { color: var(--accent); }
.t-str { color: #e6c07b; }
.t-num { color: #f78c6c; }
.t-cm { color: #5c6570; font-style: italic; }
.t-op { color: #89ddff; }
.t-key { color: #82aaff; }
.t-prompt { color: var(--accent); user-select: none; }
@media (max-width: 640px) { .code { font-size: 12.4px; padding: 14px; } }

/* ── stats strip ─────────────────────────────────────────────────────── */
.stats { padding: 40px 0 28px; border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.stat { padding: 6px 28px 10px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat strong { display: block; font: 600 40px/1.1 var(--mono); letter-spacing: -0.04em; color: var(--text); }
.stat strong i { font-style: normal; color: var(--accent); }
.stat span { display: block; margin-top: 8px; font-size: 14px; color: var(--text-2); max-width: 22em; }
@media (max-width: 860px) {
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
}
@media (max-width: 480px) { .stat { padding: 0 0 0 16px; } .stat strong { font-size: 32px; } }

.env-note { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; font: 400 12.5px/1.4 var(--mono); color: var(--muted); }
.env-note .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--other-2); }
.env-note a { color: var(--text-2); }

/* ── sections ────────────────────────────────────────────────────────── */
.section { padding: 104px 0; border-bottom: 1px solid var(--line); }
.section-alt { background: var(--bg-alt); }
.section-tight { padding: 64px 0; }
@media (max-width: 720px) { .section { padding: 72px 0; } .section-tight { padding: 48px 0; } }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head-sub { margin-top: 88px; }
.kicker { font: 500 12.5px/1 var(--mono); color: var(--accent); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 16px; }
.section-head h2, .section h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.08; letter-spacing: -0.035em; }
.section-head p:not(.kicker) { margin-top: 16px; color: var(--text-2); font-size: 17.5px; }
.section-tight h2 { font-size: clamp(24px, 2.6vw, 30px); margin-bottom: 20px; }
.more { margin-top: 32px; }
.more a { color: var(--accent); text-decoration: none; font-weight: 500; }
.more a:hover { text-decoration: underline; }

/* ── features ────────────────────────────────────────────────────────── */
.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--line); gap: 1px; }
.feature { background: var(--bg); padding: 28px 26px 30px; transition: background 0.2s ease; }
.feature:hover { background: var(--surface); }
.feature h3 { font-size: 16.5px; letter-spacing: -0.015em; }
.feature h3::before { content: ""; display: block; width: 18px; height: 2px; background: var(--accent); margin-bottom: 18px; }
.feature p { margin-top: 10px; color: var(--text-2); font-size: 14.5px; line-height: 1.6; }
@media (max-width: 1060px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .features { grid-template-columns: minmax(0, 1fr); } }

.steps { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; counter-reset: s; }
.steps li { position: relative; padding-top: 20px; border-top: 1px solid var(--line-2); }
.steps li::before { content: ""; position: absolute; top: -1px; left: 0; width: 40px; height: 1px; background: var(--accent); }
.steps .step { font: 500 12px/1 var(--mono); color: var(--accent); }
.steps h3 { margin-top: 10px; font-size: 18px; }
.steps p { margin-top: 8px; color: var(--text-2); font-size: 14.5px; }
@media (max-width: 860px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* ── benchmark bars ──────────────────────────────────────────────────── */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; min-width: 0; }
.card h3 { font-size: 15px; letter-spacing: 0; font: 600 13px/1 var(--mono); text-transform: uppercase; color: var(--text-2); letter-spacing: 0.08em; }
.suites { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1060px) { .suites { grid-template-columns: minmax(0, 1fr); } }
.suite h3 { margin-bottom: 8px; }
.bar-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "label lead" "bars bars"; column-gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.suite h3 + .bar-row { border-top: 0; }
.bar-label { grid-area: label; min-width: 0; }
.bar-title { display: block; font-weight: 600; font-size: 14.5px; }
.bar-detail { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.bar-lead { grid-area: lead; text-align: right; font-family: var(--mono); }
.bar-lead strong { display: block; color: var(--accent); font-size: 20px; letter-spacing: -0.03em; line-height: 1.1; }
.bar-lead span { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.bar-set { grid-area: bars; margin-top: 12px; display: grid; gap: 6px; }
.bar { display: grid; grid-template-columns: 52px minmax(0, 1fr) 76px; align-items: center; gap: 10px; font: 400 12px/1 var(--mono); color: var(--muted); }
.bar-who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { height: 8px; background: var(--bg); border-radius: 3px; overflow: hidden; }
.bar-fill { display: block; height: 100%; width: var(--w); background: var(--other); border-radius: 3px; transform-origin: left; }
.bar-value { text-align: right; color: var(--text-2); font-variant-numeric: tabular-nums; }
.bar-ours .bar-who, .bar-ours .bar-value { color: var(--text); }
.bar-ours .bar-fill { background: var(--accent); box-shadow: 0 0 14px var(--accent-soft); }
.js .bar-fill { transform: scaleX(0); transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .is-visible .bar-fill { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) { .js .bar-fill { transform: none; transition: none; } .pulse { animation: none; } }

.suite-wide { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); column-gap: 40px; padding-top: 8px; }
.suite-wide .bar-row { border-top: 0; border-bottom: 1px solid var(--line); }
@media (max-width: 680px) { .suite-wide { grid-template-columns: minmax(0, 1fr); } .suite-wide .bar-row:last-child { border-bottom: 0; } }

/* ── code section ────────────────────────────────────────────────────── */
.code-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.code-grid .section-head { position: sticky; top: 100px; margin-bottom: 0; }
@media (max-width: 1180px) { .code-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; } .code-grid .section-head { position: static; } }
.notes { margin: 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.notes div { padding: 16px 18px 18px; border-left: 1px solid var(--line); }
.notes div:first-child { border-left: 0; }
.notes dt { font-size: 13px; }
.notes dd { margin: 8px 0 0; font-size: 13.5px; color: var(--text-2); line-height: 1.55; }
@media (max-width: 760px) { .notes { grid-template-columns: minmax(0, 1fr); } .notes div { border-left: 0; border-top: 1px solid var(--line); } .notes div:first-child { border-top: 0; } }

/* ── status ──────────────────────────────────────────────────────────── */
.status { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.status ul { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.status li { position: relative; padding-left: 18px; color: var(--text-2); font-size: 14.5px; }
.status li::before { content: ""; position: absolute; left: 0; top: 0.68em; width: 6px; height: 6px; border-radius: 1px; background: var(--other-2); }
.status .card:first-child li::before { background: var(--accent); }
@media (max-width: 860px) { .status { grid-template-columns: minmax(0, 1fr); } }

/* ── get started ─────────────────────────────────────────────────────── */
.start { position: relative; overflow: hidden; }
.start::before { content: ""; position: absolute; right: -200px; bottom: -300px; width: 700px; height: 600px; background: radial-gradient(closest-side, var(--accent-soft), transparent); pointer-events: none; }
.start-grid { position: relative; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.start-grid .section-head { margin-bottom: 0; }
@media (max-width: 980px) { .start-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; } }

/* ── benchmarks page ─────────────────────────────────────────────────── */
.page-head { padding: 88px 0 56px; border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.page-head::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse 60% 80% at 20% 0%, #000 20%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse 60% 80% at 20% 0%, #000 20%, transparent 70%); opacity: 0.5; pointer-events: none; }
.page-head .wrap { position: relative; }
.page-head h1 { font-size: clamp(36px, 4.6vw, 56px); line-height: 1.05; letter-spacing: -0.04em; max-width: 16em; }
.table-title { margin: 32px 0 12px; font: 600 12.5px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-2); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
th, td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
th { font: 500 11.5px/1.2 var(--mono); text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); background: var(--bg-alt); }
th .unit { text-transform: none; letter-spacing: 0; }
td.num, th.num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
td.ours { color: var(--text); font-weight: 600; }
td.lead { color: var(--accent); font-weight: 600; }
td .t-label { display: block; font-weight: 600; }
td .t-detail { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
tr.is-ours td { color: var(--text); }
tr.is-ours td:nth-child(2) { color: var(--accent); }
.prose { color: var(--text-2); max-width: 52em; margin: 0 0 20px; }
.prose-list { margin: 20px 0 0; padding-left: 18px; color: var(--text-2); max-width: 56em; display: grid; gap: 8px; }
.method { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
@media (max-width: 860px) { .method { grid-template-columns: minmax(0, 1fr); } }
.method h3 { text-transform: none; letter-spacing: 0; font: 600 16px/1.3 var(--sans); color: var(--text); }
.method .muted { color: var(--muted); font-weight: 400; }
.method dl { margin: 16px 0 0; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px 16px; font-size: 14px; }
.method dt { font: 500 11.5px/1.7 var(--mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.method dd { margin: 0; color: var(--text-2); overflow-wrap: anywhere; }
@media (max-width: 480px) { .method dl { grid-template-columns: minmax(0, 1fr); } .method dd { margin-bottom: 6px; } }

.notfound .code { max-width: 640px; margin: 24px 0 32px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface); }

/* ── footer ──────────────────────────────────────────────────────────── */
.footer { padding: 56px 0 32px; background: var(--bg); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.footer-brand p { margin-top: 12px; color: var(--muted); font-size: 14px; max-width: 30em; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: flex-start; }
.footer-links a { color: var(--text-2); text-decoration: none; font-size: 14px; }
.footer-links a:hover { color: var(--text); }
.footer-fine { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font: 400 12px/1.5 var(--mono); color: var(--muted); }

/* ── docs ────────────────────────────────────────────────────────────── */
.docs { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 56px; align-items: start; }
.docs-nav { position: sticky; top: 92px; display: grid; gap: 2px; border-left: 1px solid var(--line); }
.docs-nav a { padding: 6px 0 6px 16px; margin-left: -1px; border-left: 1px solid transparent; color: var(--muted); text-decoration: none; font-size: 14px; }
.docs-nav a:hover { color: var(--text); border-left-color: var(--accent); }
.docs-body { max-width: 760px; min-width: 0; }
.doc { padding-bottom: 48px; margin-bottom: 48px; border-bottom: 1px solid var(--line); }
.doc:last-child { border-bottom: 0; margin-bottom: 0; }
.doc h2 { font-size: 26px; margin-bottom: 16px; scroll-margin-top: 84px; }
.doc > p { color: var(--text-2); margin: 0 0 16px; }
.doc .code { margin: 0 0 16px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface); }
.doc .table-wrap { margin-bottom: 16px; }
.doc .table-wrap table { min-width: 0; }
.doc .prose-list { margin: 0 0 16px; }
.callout { margin: 0 0 16px; padding: 18px 20px; border: 1px solid var(--accent-line); border-radius: var(--radius); background: var(--accent-soft); color: var(--text); }
.defs { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 8px 16px; margin: 0 0 16px; font-size: 14.5px; }
.defs dt { font: 500 13px/1.6 var(--mono); color: var(--accent); }
.defs dd { margin: 0; color: var(--text-2); }
@media (max-width: 860px) {
  .docs { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .docs-nav { position: static; display: flex; flex-wrap: wrap; gap: 4px 16px; border-left: 0; }
  .docs-nav a { padding: 4px 0; border-left: 0; }
}

/* ── front page hub and detail pages ─────────────────────────────────── */
.features-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1060px) { .features-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .features-4 { grid-template-columns: minmax(0, 1fr); } }
.steps-flush { margin-top: 8px; }
.section-head p + p { margin-top: 14px; }

.field-strip { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 28px; margin-top: 28px; padding: 18px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.field-title { font: 600 12.5px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-2); }
.field-item { font-size: 14px; color: var(--text-2); }
.field-item strong { font: 600 17px/1 var(--mono); color: var(--accent); margin-right: 4px; }

.explore { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.explore-card { position: relative; display: block; padding: 24px 24px 48px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-decoration: none; transition: border-color 0.15s ease, transform 0.15s ease; }
.explore-card:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.explore-card .kicker { margin-bottom: 12px; }
.explore-card h3 { font-size: 19px; }
.explore-card p { margin-top: 8px; color: var(--text-2); font-size: 14.5px; }
.explore-card .arrow { position: absolute; left: 24px; bottom: 18px; color: var(--accent); font-size: 18px; }
@media (max-width: 1060px) { .explore { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .explore { grid-template-columns: minmax(0, 1fr); } }

table.compare { min-width: 760px; }
table.compare th.is-ours, table.compare td.is-ours { color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, transparent); }
table.compare td.t-label { font-weight: 600; color: var(--text); }
.page-head .lede { max-width: 44em; }

/* ── charts (benchmarks page) ────────────────────────────────────────── */
.chart { margin: 0; padding: 22px 24px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); min-width: 0; }
.chart figcaption { display: grid; gap: 3px; margin-bottom: 18px; }
.chart-title { font-weight: 600; font-size: 17px; letter-spacing: -0.015em; }
.chart-detail { color: var(--text-2); font-size: 13.5px; }
.chart-unit { font: 400 11.5px/1.4 var(--mono); color: var(--muted); }
.chart-rows { display: grid; gap: 8px; }
.chart-row { display: grid; grid-template-columns: 112px minmax(0, 1fr) 92px; align-items: center; gap: 12px; }
.chart-name { font: 500 13px/1.2 var(--mono); color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chart-bar { position: relative; display: flex; height: 26px; border-radius: 5px; background: var(--bg); overflow: hidden; }
.chart-fill, .seg { display: block; height: 100%; width: var(--w); background: var(--other); transform-origin: left; }
.chart-fill { border-radius: 5px; }
.chart-val { font: 500 13px/1 var(--mono); text-align: right; color: var(--text-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.chart-row.is-ours .chart-name, .chart-row.is-ours .chart-val { color: var(--text); font-weight: 600; }
.chart-row.is-ours .chart-fill { background: var(--accent); box-shadow: 0 0 18px var(--accent-soft); }
.chart-row.is-ours.is-alt .chart-fill { background: color-mix(in srgb, var(--accent) 45%, var(--other)); box-shadow: none; }
.seg-kernel { background: var(--other); }
.seg-user { background: var(--other-2); }
.chart-row.is-ours .seg-user { background: var(--accent); }
.chart-row.is-ours .seg-kernel { background: color-mix(in srgb, var(--accent) 28%, var(--other)); }
.chart-foot { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--text-2); }
.chart-foot strong { font: 600 15px/1 var(--mono); color: var(--accent); margin-right: 3px; }
.chart-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 8px; }
.chart-stack { display: grid; gap: 16px; }
.chart-group { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.chart-group:first-of-type { border-top: 0; }
.chart-group-label { font: 600 12px/1.3 var(--mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.chart-wide .chart-row { grid-template-columns: 136px minmax(0, 1fr) 112px; }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: -6px 0 10px; font-size: 13px; color: var(--text-2); }
.key { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-left: 8px; }
.key:first-child { margin-left: 0; }
.key-user { background: var(--accent); }
.key-kernel { background: color-mix(in srgb, var(--accent) 28%, var(--other)); }
.bench-hero .chart { border: 0; border-radius: 0; padding: 28px 28px 22px; }
.bench-hero .chart-row { grid-template-columns: 120px minmax(0, 1fr) 110px; }
.bench-hero .chart-bar { height: 40px; border-radius: 7px; }
.bench-hero .chart-title { font-size: 22px; }
.bench-hero .chart-name, .bench-hero .chart-val { font-size: 15px; }
.bench-hero .chart-foot { font-size: 15px; }
.bench-hero .chart-foot strong { font-size: 20px; }
.hero-bench { min-width: 0; }
.hero-bench .chart { padding: 24px 24px 20px; }
.hero-bench .chart-row { grid-template-columns: 64px minmax(0, 1fr) 64px; }
.hero-bench .chart-bar { height: 32px; }
.hero-bench .chart-foot { font-size: 13.5px; }
.hero-bench .chart-foot strong { font-size: 17px; }
.js .chart-fill, .js .seg { transform: scaleX(0); transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .is-visible .chart-fill, .js .is-visible .seg { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) { .js .chart-fill, .js .seg { transform: none; transition: none; } }
details.raw { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; background: var(--surface); }
details.raw summary { cursor: pointer; font-weight: 600; }
details.raw[open] summary { margin-bottom: 8px; }
@media (max-width: 900px) { .chart-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) {
  .chart { padding: 18px 16px 14px; }
  .chart-row, .chart-wide .chart-row, .bench-hero .chart-row { grid-template-columns: 76px minmax(0, 1fr) 70px; gap: 8px; }
  .chart-group { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .chart-name, .chart-val { font-size: 11.5px; }
  .bench-hero .chart { padding: 20px 16px 16px; }
  .bench-hero .chart-bar { height: 30px; }
  .bench-hero .chart-name, .bench-hero .chart-val { font-size: 12.5px; }
  .chart-wide .chart-val { font-size: 10.5px; }
  .chart-wide .chart-row { grid-template-columns: 94px minmax(0, 1fr) 66px; }
}

/* ── showcase ────────────────────────────────────────────────────────── */
.built { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.built-card { position: relative; display: block; padding: 28px 28px 56px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-decoration: none; transition: border-color 0.15s ease, transform 0.15s ease; }
.built-card:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.built-card .kicker { margin-bottom: 10px; }
.built-card h3 { font-size: 28px; letter-spacing: -0.03em; }
.built-card p { margin-top: 8px; color: var(--text-2); }
.built-stat { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--text-2); font-size: 14.5px; }
.built-stat strong { font: 600 24px/1 var(--mono); color: var(--accent); margin-right: 4px; }
.built-card .arrow { position: absolute; left: 28px; bottom: 20px; color: var(--accent); font-size: 18px; }
.explore { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.showcase-head { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; align-items: end; margin-bottom: 40px; }
.showcase-head h2 { font-size: clamp(34px, 4vw, 48px); letter-spacing: -0.04em; }
.showcase-tagline { margin-top: 10px; font-size: 19px; color: var(--text); }
.showcase-summary { margin-top: 12px; color: var(--text-2); max-width: 40em; }
.showcase-stat { padding: 22px 24px; border: 1px solid var(--accent-line); border-radius: var(--radius); background: var(--accent-soft); }
.showcase-stat strong { display: block; font: 600 44px/1 var(--mono); letter-spacing: -0.04em; color: var(--accent); }
.showcase-stat span { display: block; margin-top: 10px; color: var(--text); font-size: 15px; }
.showcase-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 40px; align-items: start; }
.showcase-body .table-title { margin-top: 0; }
.checklist { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 22px; color: var(--text-2); font-size: 15px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 9px; height: 5px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.showcase-code { margin-bottom: 14px; }
.showcase-caveat { margin-top: 10px; font-size: 13.5px; }
@media (max-width: 980px) { .showcase-head, .showcase-body { grid-template-columns: minmax(0, 1fr); gap: 24px; } }
@media (max-width: 900px) { .built { grid-template-columns: minmax(0, 1fr); } }
.showcase-body:has(> :only-child) { grid-template-columns: minmax(0, 1fr); max-width: 760px; }

/* Showcase overview: every project with its key results. */
.projects { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
.project-card { display: flex; flex-direction: column; min-width: 0; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.project-card .kicker { margin-bottom: 10px; }
.project-card h2 { font-size: clamp(30px, 3vw, 40px); letter-spacing: -0.04em; }
.project-card h2 a { color: inherit; text-decoration: none; }
.project-card h2 a:hover { color: var(--accent); }
.project-tagline { margin-top: 6px; color: var(--text-2); }
.project-stat { display: flex; align-items: center; gap: 16px; margin: 20px 0 18px; padding: 16px 18px; border: 1px solid var(--accent-line); border-radius: var(--radius); background: var(--accent-soft); }
.project-stat strong { flex: none; font: 600 34px/1 var(--mono); letter-spacing: -0.04em; color: var(--accent); }
.project-stat span { color: var(--text); font-size: 14.5px; line-height: 1.45; }
.key-wrap { background: var(--bg); }
table.key-table { min-width: 0; font-size: 13px; }
.key-table th, .key-table td { padding: 10px 9px; vertical-align: middle; }
.key-table th { font-size: 10.5px; letter-spacing: 0.04em; }
.key-table th:first-child, .key-table td:first-child { padding-left: 14px; }
.key-table th:last-child, .key-table td:last-child { padding-right: 14px; }
.key-table td .t-label { font-weight: 500; font-size: 13.5px; }
.key-table td .t-detail { font-size: 11.5px; }
.key-table th.is-ours, .key-table td.is-ours { color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, transparent); }
.key-table tbody tr:last-child td { border-bottom: 0; }
.project-card .env-note { margin-top: 14px; }
.project-more { align-self: flex-start; margin-top: 20px; }
.project-head .showcase-head { margin-bottom: 0; }
.project-head .kicker a { color: inherit; text-decoration: none; }
.project-head .kicker a:hover { text-decoration: underline; }
.project-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.project-nav a { color: var(--accent); text-decoration: none; font-weight: 500; }
.project-nav a:hover { text-decoration: underline; }
@media (max-width: 560px) {
  .project-card { padding: 20px 16px; }
  .project-stat { flex-direction: column; gap: 8px; }
  table.key-table { min-width: 500px; }
}
/* Section titles that are labels, not headlines: outrank `.section h2`. */
.section h2.table-title { font: 600 12.5px/1 var(--mono); letter-spacing: 0.08em; margin: 0 0 14px; }
.section .project-card h2 { margin-bottom: 0; }
/* A long environment line wraps beside its dot, not under it. */
.env-long { flex-wrap: nowrap; align-items: flex-start; }
.env-long .dot { flex: none; margin-top: 0.42em; }
.env-long > span:last-child { min-width: 0; }
/* A comparison we lose is stated in the muted colour, never as a fraction of a lead. */
.chart-foot .behind strong, td.lead.behind { color: var(--text-2); }
/* Wide screens: each project is one row, its summary beside its key results. */
@media (min-width: 1121px) {
  .project-card { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); grid-template-rows: auto auto auto auto 1fr; column-gap: 40px; }
  .project-card > * { grid-column: 1; }
  .project-card > .key-wrap { grid-column: 2; grid-row: 1 / span 5; align-self: start; }
  .project-card > .env-note { grid-column: 2; grid-row: 6; }
  .project-card .project-stat { margin-bottom: 0; }
  .project-more { grid-row: 5; align-self: start; justify-self: start; }
}
