:root {
  --bg: #000;
  --surface: #0a0c0e;
  --surface-2: #111417;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f2f4f5;
  --text-2: #d6dce1;
  --muted: #8a949c;
  --faint: #5a646b;
  --accent: #bedcec;
  --accent-2: #9db8cc;
  --ok: #9ed9b0;
  --bad: #f0a3a3;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --wrap: 1180px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
code, pre { font-family: var(--mono); font-variant-ligatures: none; }
.wrap { width: min(var(--wrap), calc(100% - 64px)); margin: 0 auto; position: relative; }

/* ── type ─────────────────────────────────────────────── */
h1, h2 { font-weight: 500; margin: 0; color: var(--text); }
h1 { font-size: clamp(44px, 6.4vw, 76px); line-height: 1.04; letter-spacing: -0.058em; }
h2 { font-size: clamp(34px, 4.2vw, 50px); line-height: 1.1; letter-spacing: -0.045em; }
.eyebrow {
  margin: 0 0 18px;
  font: 500 11px/1.4 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-2);
}
.eyebrow.muted, .muted { color: var(--muted); }
.dot { color: var(--accent); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .dot {
    background-image: radial-gradient(circle, var(--accent) 1px, transparent 1.45px);
    background-size: 3px 3px;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  h1 .dot { background-size: 3.4px 3.4px; background-image: radial-gradient(circle, var(--accent) 1.15px, transparent 1.6px); }
}
@media (prefers-contrast: more) {
  .dot { background: none; color: var(--accent); }
}

/* ── buttons ──────────────────────────────────────────── */
.button {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  height: 50px;
  padding: 0 20px;
  border-radius: 9px;
  border: 1px solid var(--line-2);
  font: 500 14px var(--sans);
  color: var(--text);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.button:hover { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.25); }
.button.primary { background: #f2f4f5; color: #16191c; border-color: #f2f4f5; }
.button.primary:hover { background: #fff; }
.button.small { height: 38px; padding: 0 14px; gap: 10px; font-size: 13px; }
.button.approve { background: var(--ok); color: #07140c; border-color: var(--ok); }
.button.danger { color: var(--bad); border-color: rgba(240, 163, 163, 0.3); }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-row.center { justify-content: center; }
.text-link { color: var(--text); font-size: 14px; font-weight: 500; display: inline-flex; gap: 10px; }
.text-link:hover { color: var(--accent); }

/* ── nav ──────────────────────────────────────────────── */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(14px);
}
.nav-inner { width: min(1320px, calc(100% - 48px)); margin: 0 auto; height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; letter-spacing: -0.03em; }
.brand svg { width: 30px; height: 30px; padding: 4px; border: 1px solid var(--line-2); border-radius: 8px; fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; }
.nav-links { display: flex; gap: 28px; font-size: 13px; color: var(--text-2); }
.nav-links a:hover { color: var(--text); }

/* ── hero ─────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 150px 0 90px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero-art {
  position: absolute;
  inset: 0 0 0 30%;
  width: 70%;
  height: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 38%, #000 88%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 38%, #000 88%, transparent 100%);
}
.hero-content { z-index: 1; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 30px;
  padding: 7px 14px 7px 8px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 12.5px;
  color: var(--text-2);
}
.pill-icon { width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; }
.pill-icon::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.lede { margin: 34px 0 0; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.45; letter-spacing: -0.02em; color: var(--text-2); }
.sub { margin: 18px 0 40px; max-width: 560px; color: var(--muted); font-size: 16px; }
.works-with { display: flex; align-items: center; gap: 22px; margin-top: 56px; font-size: 13px; color: var(--muted); }
.works-with ul { display: flex; gap: 0; margin: 0; padding: 0; list-style: none; }
.works-with li { padding: 0 18px; border-left: 1px solid var(--line-2); color: var(--text-2); font-weight: 500; }
.works-with li:first-child { border-left: 0; padding-left: 0; }

/* ── sections ─────────────────────────────────────────── */
.section { position: relative; padding: 140px 0; border-bottom: 1px solid var(--line); }
.section.center { text-align: center; }
.section-sub { margin: 24px 0 0; max-width: 560px; color: var(--muted); font-size: 17px; }
.center .section-sub { margin-left: auto; margin-right: auto; }
.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 80px; align-items: center; }
.split.reverse { grid-template-columns: 0.85fr 1.15fr; }

/* Code panels. */
.code {
  margin: 0;
  padding: 22px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-2);
  white-space: pre;
  overflow-x: auto;
  text-align: left;
}
.c-key { color: var(--accent); }
.c-str { color: #d9e7c4; }
.c-num { color: #e8c585; }
.c-dim { color: var(--faint); }
.c-ok { color: var(--ok); }
.c-bad { color: var(--bad); }

.compare { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: stretch; margin-top: 64px; }
.panel {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, var(--surface), #050607);
  text-align: left;
  overflow: hidden;
}
.panel.accent { border-color: rgba(190, 220, 236, 0.3); box-shadow: 0 0 60px -20px rgba(190, 220, 236, 0.25); }
.panel header { padding: 18px 22px 0; }
.panel header .eyebrow { margin: 0; }
.panel .code { flex: 1; font-size: 12.5px; }
.panel footer { padding: 14px 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.compare-arrow { align-self: center; color: var(--accent); font-size: 22px; }

.spec-list { list-style: none; margin: 36px 0 30px; padding: 0; display: grid; gap: 0; }
.spec-list li { display: grid; gap: 4px; padding: 14px 0; border-top: 1px solid var(--line); }
.spec-list li:last-child { border-bottom: 1px solid var(--line); }
.spec-list code { font-size: 12.5px; color: var(--accent); }
.spec-list span { font-size: 14px; color: var(--muted); }

.code-card {
  border: 1px solid var(--line-2);
  border-radius: 16px;
  background: linear-gradient(180deg, #0c0f12, #060708);
  overflow: hidden;
  min-width: 0;
}
.tabs { display: flex; gap: 4px; padding: 8px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.015); }
.tabs button, .segmented button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: 500 13px var(--sans);
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
}
.tabs button[aria-selected="true"], .segmented button[aria-selected="true"] {
  color: #10151a;
  background: linear-gradient(180deg, #e3f0f7, #bedcec);
  box-shadow: 0 0 20px -6px rgba(190, 220, 236, 0.6);
}
.tabs button:hover:not([aria-selected="true"]), .segmented button:hover:not([aria-selected="true"]) { color: var(--text); }
.code-card .code { min-height: 380px; }

/* ── isometric loop ───────────────────────────────────── */
.layer-list { list-style: none; margin: 40px 0 0; padding: 0; }
.layer-list li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 8px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  cursor: default;
  transition: opacity 0.25s;
}
.layer-list li:last-child { border-bottom: 1px solid var(--line); }
.layer-list .n { font: 500 11px/1.9 var(--mono); color: var(--faint); letter-spacing: 0.1em; }
.layer-list b { display: block; font-weight: 500; font-size: 15px; }
.layer-list span:not(.n) { color: var(--muted); font-size: 14px; }
.layer-list li.active .n, .layer-list li.human .n { color: var(--accent); }
.layer-list.has-active li:not(.active) { opacity: 0.45; }

.iso { position: relative; height: 640px; display: grid; place-items: center; }
.iso-stack { position: relative; width: 340px; height: 560px; }
.plane {
  position: absolute;
  left: 0;
  width: 340px;
  height: 340px;
  top: calc(var(--i) * 72px);
  transition: transform 0.35s ease;
}
.plane:nth-child(1) { --i: 0; }
.plane:nth-child(2) { --i: 1; }
.plane:nth-child(3) { --i: 2; }
.plane:nth-child(4) { --i: 3; }
.plane:nth-child(5) { --i: 4; }
.plane:nth-child(6) { --i: 5; }
.plane-face {
  position: absolute;
  inset: 0;
  transform: rotateX(58deg) rotateZ(-45deg) scale(0.62);
  transform-origin: center;
  border: 1px solid rgba(190, 220, 236, 0.28);
  border-radius: 14px;
  background:
    radial-gradient(circle, rgba(190, 220, 236, 0.13) 1px, transparent 1.4px) 0 0 / 12px 12px,
    linear-gradient(180deg, rgba(20, 26, 31, 0.92), rgba(8, 10, 12, 0.92));
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.9), inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.plane-label {
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  margin: 0;
  white-space: nowrap;
  font: 500 10.5px var(--mono);
  letter-spacing: 0.12em;
  color: var(--accent-2);
  transform: translateY(-50%);
  transition: color 0.3s;
}
.plane-label::before { content: ""; position: absolute; right: calc(100% + 8px); top: 50%; width: 40px; height: 1px; background: var(--line-2); }
.plane-label span { display: block; margin-top: 2px; letter-spacing: 0; font-size: 11px; color: var(--faint); text-transform: none; }
.plane.active .plane-face { border-color: rgba(190, 220, 236, 0.85); box-shadow: 0 0 50px -10px rgba(190, 220, 236, 0.45); }
.plane.active .plane-label { color: var(--text); }
.plane.active { transform: translateY(-10px); }
/* Decorations drawn on the planes. */
.plane-face > div { position: absolute; inset: 22%; }
.iso-dots { background: radial-gradient(circle, rgba(190, 220, 236, 0.9) 1.6px, transparent 2px) 0 0 / 18px 18px; opacity: 0.55; }
.iso-clusters i { position: absolute; border-radius: 50%; border: 1px dashed rgba(190, 220, 236, 0.7); background: radial-gradient(circle, rgba(190, 220, 236, 0.9) 1.4px, transparent 1.8px) 0 0 / 9px 9px; }
.iso-clusters i:nth-child(1) { inset: 0 45% 45% 0; }
.iso-clusters i:nth-child(2) { inset: 40% 0 10% 50%; }
.iso-clusters i:nth-child(3) { inset: 62% 62% 0 8%; }
.iso-bars { display: flex; align-items: flex-end; gap: 12%; }
.iso-bars i { flex: 1; height: calc(var(--h) * 100%); background: linear-gradient(180deg, rgba(190, 220, 236, 0.9), rgba(190, 220, 236, 0.2)); border-radius: 3px; }
.iso-doc, .iso-diff { display: flex; flex-direction: column; gap: 12%; justify-content: center; }
.iso-doc i, .iso-diff i { display: block; height: 7%; border-radius: 3px; background: rgba(190, 220, 236, 0.55); }
.iso-doc i:nth-child(2) { width: 70%; }
.iso-doc i:nth-child(3) { width: 45%; }
.iso-diff { gap: 7%; }
.iso-diff i:nth-child(2), .iso-diff i:nth-child(3) { background: rgba(158, 217, 176, 0.8); }
.iso-diff i:nth-child(4) { background: rgba(240, 163, 163, 0.7); width: 60%; }
.iso-approve { display: grid; grid-template-columns: 1fr 1fr; gap: 12%; align-content: center; }
.iso-approve i { height: 38%; min-height: 26px; border-radius: 6px; border: 1px solid rgba(190, 220, 236, 0.5); }
.iso-approve i:last-child { background: rgba(158, 217, 176, 0.75); border-color: transparent; }

/* ── impact card ──────────────────────────────────────── */
.impact-card {
  margin-top: 56px;
  border: 1px solid var(--line-2);
  border-radius: 20px;
  background: radial-gradient(120% 90% at 20% 0%, rgba(190, 220, 236, 0.06), transparent 60%), linear-gradient(180deg, #0b0e11, #050607);
  overflow: hidden;
}
.impact-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 24px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.impact-top p { margin: 0; font-size: 13px; color: var(--text-2); display: flex; align-items: center; gap: 10px; }
.live { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.segmented { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; }
.impact-body { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; padding: 48px; align-items: center; }
.gauge-wrap { position: relative; display: grid; place-items: center; }
.gauge { width: min(340px, 100%); height: auto; }
.gauge .track { fill: none; stroke: rgba(255, 255, 255, 0.07); stroke-width: 7; stroke-linecap: round; }
.gauge .value { fill: none; stroke: url(#gauge-g); stroke-width: 7; stroke-linecap: round; transition: stroke-dasharray 0.9s cubic-bezier(0.2, 0.8, 0.2, 1); filter: drop-shadow(0 0 8px rgba(190, 220, 236, 0.35)); }
.gauge-label { position: absolute; text-align: center; }
.gauge-label .eyebrow { margin: 0; }
.gauge-label b { display: block; font-size: 84px; font-weight: 500; letter-spacing: -0.06em; line-height: 1; margin: 6px 0; font-variant-numeric: tabular-nums; }
.impact-stats h3 { margin: 0 0 24px; font-size: 24px; font-weight: 500; letter-spacing: -0.03em; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat-grid div { padding: 16px 0; }
.stat-grid div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.stat-grid b { display: block; font-size: 34px; font-weight: 500; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.stat-grid span { font-size: 12px; color: var(--muted); }
.goals { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.goals li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-radius: 10px; background: rgba(255, 255, 255, 0.03); font-size: 14px; color: var(--text-2); }
.goals li em { font: normal 12px var(--mono); color: var(--muted); }
.impact-foot { padding: 16px 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

/* ── approval ─────────────────────────────────────────── */
.checks { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 0; }
.checks li { position: relative; padding: 14px 0 14px 30px; border-top: 1px solid var(--line); color: var(--text-2); font-size: 15px; }
.checks li:last-child { border-bottom: 1px solid var(--line); }
.checks li::before { content: ""; position: absolute; left: 2px; top: 20px; width: 10px; height: 6px; border-left: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent); transform: rotate(-45deg); }
.review-card { border: 1px solid var(--line-2); border-radius: 16px; background: linear-gradient(180deg, #0c0f12, #060708); overflow: hidden; min-width: 0; }
.review-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.review-head .eyebrow { margin: 0 0 4px; }
.review-title { margin: 0; font-weight: 500; }
.tag { padding: 3px 10px; border-radius: 999px; font: 500 11px var(--mono); }
.tag.ok { background: rgba(158, 217, 176, 0.1); color: var(--ok); }
.diff span { display: block; }
.d-file { color: var(--text); font-weight: 500; }
.d-hunk { color: var(--accent-2); }
.d-add { color: var(--ok); background: rgba(158, 217, 176, 0.07); }
.review-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 22px; border-top: 1px solid var(--line); }
.review-result { margin: 0; padding: 16px 22px; border-top: 1px solid var(--line); font-size: 14px; color: var(--text-2); }

/* ── open core ────────────────────────────────────────── */
#open { overflow: hidden; }
.halftone-field {
  position: absolute;
  inset: 0 50% 0 0;
  background: radial-gradient(circle, rgba(190, 220, 236, 0.16) 1.2px, transparent 1.6px) 0 0 / 14px 14px;
  -webkit-mask-image: radial-gradient(60% 70% at 30% 50%, #000, transparent);
  mask-image: radial-gradient(60% 70% at 30% 50%, #000, transparent);
  pointer-events: none;
}
.open-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.open-card {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(10, 12, 14, 0.85);
  transition: border-color 0.2s, background 0.2s;
}
a.open-card:hover { border-color: rgba(190, 220, 236, 0.4); background: var(--surface-2); }
.open-card b { font-weight: 500; }
.open-card span { font-size: 13.5px; color: var(--muted); }
.open-card i { position: absolute; top: 18px; right: 18px; font-style: normal; color: var(--muted); }
.open-card.platform { grid-column: 1 / -1; border-color: rgba(190, 220, 236, 0.3); background: linear-gradient(90deg, rgba(190, 220, 236, 0.08), rgba(10, 12, 14, 0.85)); }

/* ── faq ──────────────────────────────────────────────── */
.faq { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 80px; align-items: start; }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 0;
  font-size: 16px;
  cursor: pointer;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  flex: none;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  font-size: 14px;
  color: var(--accent);
  transition: transform 0.2s;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { margin: -6px 0 22px; max-width: 620px; color: var(--muted); font-size: 15px; }
.faq-list code { color: var(--accent); font-size: 13px; }

/* ── cta + footer ─────────────────────────────────────── */
.cta { background: radial-gradient(60% 80% at 50% 100%, rgba(190, 220, 236, 0.08), transparent 70%); }
.quickstart { display: inline-block; margin: 44px auto 36px; padding: 20px 26px; border: 1px solid var(--line-2); border-radius: 14px; background: #060708; font-size: 13.5px; }
.footer { padding: 44px 0 60px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; font-size: 13px; color: var(--text-2); }
.footer p { margin: 0; }

/* ── reveal ───────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── responsive ───────────────────────────────────────── */
@media (max-width: 1000px) {
  .split, .split.reverse, .faq, .impact-body { grid-template-columns: 1fr; gap: 48px; }
  .compare { grid-template-columns: 1fr; }
  .compare-arrow { transform: rotate(90deg); justify-self: center; }
  .iso { height: 560px; }
  .hero-art { inset: 0; width: 100%; opacity: 0.45; }
  .nav-links { display: none; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .nav-inner { width: calc(100% - 32px); }
  .section { padding: 96px 0; }
  .hero { padding: 120px 0 72px; }
  .hero-art { opacity: 0.22; }
  .works-with { flex-direction: column; align-items: flex-start; gap: 12px; }
  .works-with ul { flex-wrap: wrap; row-gap: 6px; }
  .impact-body { padding: 28px 20px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-grid div:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat-grid div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .open-grid { grid-template-columns: 1fr; }
  .iso { height: 470px; transform: scale(0.78); transform-origin: center top; margin-bottom: -100px; }
  .plane-label { display: none; }
  .quickstart { display: block; overflow-x: auto; max-width: 100%; }
  .code-card .code { min-height: 0; }
  .segmented { width: 100%; overflow-x: auto; }
}

/* ── doc pages (/spec/…) ──────────────────────────────── */
.doc-page { padding: 120px 0 100px; border-bottom: 1px solid var(--line); }
.doc-layout { display: grid; grid-template-columns: 220px minmax(0, 760px); gap: 64px; justify-content: center; }
.doc-toc { position: sticky; top: 100px; align-self: start; }
.doc-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 13px; }
.doc-toc a { color: var(--muted); }
.doc-toc a:hover { color: var(--text); }
.doc { min-width: 0; color: var(--text-2); font-size: 15.5px; line-height: 1.7; }
.doc h1 { font-size: clamp(34px, 4vw, 46px); line-height: 1.1; letter-spacing: -0.045em; margin: 0 0 24px; }
.doc h2 { font-size: 26px; letter-spacing: -0.03em; margin: 56px 0 16px; padding-top: 24px; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.doc h3 { font-size: 18px; font-weight: 500; letter-spacing: -0.02em; margin: 32px 0 10px; color: var(--text); scroll-margin-top: 90px; }
.doc h4 { font-size: 15px; font-weight: 500; margin: 24px 0 8px; color: var(--text); }
.doc p { margin: 12px 0; }
.doc a { color: var(--accent); }
.doc a:hover { text-decoration: underline; }
.doc strong { color: var(--text); font-weight: 600; }
.doc ul, .doc ol { padding-left: 22px; margin: 12px 0; }
.doc li { margin: 6px 0; }
.doc code { font-size: 0.86em; color: var(--accent); background: rgba(190, 220, 236, 0.07); padding: 1px 5px; border-radius: 5px; }
.doc pre.code { margin: 16px 0; border: 1px solid var(--line); border-radius: 12px; background: #060708; font-size: 12.5px; }
.doc pre.code code { background: none; padding: 0; color: var(--text-2); font-size: inherit; }
.doc blockquote { margin: 16px 0; padding: 4px 0 4px 16px; border-left: 2px solid var(--line-2); color: var(--muted); }
.doc hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
.table-wrap { overflow-x: auto; margin: 16px 0; border: 1px solid var(--line); border-radius: 12px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.doc th { text-align: left; font: 500 10.5px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-2); padding: 10px 14px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); }
.doc td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc tr:last-child td { border-bottom: 0; }
@media (max-width: 1000px) {
  .doc-layout { grid-template-columns: 1fr; gap: 0; }
  .doc-toc { display: none; }
}
