/* Droider website — landing page and guide. */
:root {
  --bg: #0b0d11;
  --bg-2: #0f1217;
  --surface: #12151b;
  --surface-2: #1a1f27;
  --surface-3: #222833;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #e9edf3;
  --muted: #8d96a5;
  --dim: #646d7b;
  --cyan: #38bdf8;
  --violet: #a78bfa;
  --pink: #f472b6;
  --green: #34d399;
  --amber: #fbbf24;
  --red: #f87171;
  --cable: linear-gradient(90deg, var(--cyan), var(--violet) 50%, var(--pink));
  --radius: 14px;
  --radius-lg: 22px;
  --wrap: 1180px;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  /* Code colours: the same as the extension in VS Code Dark Modern. */
  --c-comment: #6a9955;
  --c-bracket: #ffd700;
  --c-input: #4fc1ff;
  --c-output: #c586c0;
  --c-register: #4ec9b0;
  --c-bool: #569cd6;
  --c-num: #b5cea8;
  --c-text: #ce9178;
  color-scheme: dark;
}

* { box-sizing: border-box; }
/* `hidden` must win over the display rules below (play button, guide search). */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
code, kbd, pre { font-family: var(--mono); }
:not(pre) > code {
  font-size: 0.88em;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.08em 0.38em;
  color: #dfe5ee;
  overflow-wrap: anywhere;
}
kbd {
  font-size: 0.82em;
  background: var(--surface-3);
  border: 1px solid var(--line-2);
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: 0.05em 0.45em;
  color: var(--text);
  white-space: nowrap;
}
::selection { background: rgba(167, 139, 250, 0.35); }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 13, 17, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 650; font-size: 18px; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { color: var(--muted); font-size: 15px; padding: 8px 12px; border-radius: 9px; }
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--text); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-2); color: var(--text); border-radius: 9px; width: 40px; height: 40px; align-items: center; justify-content: center; cursor: pointer; }
.nav-toggle svg { width: 20px; height: 20px; }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  color: #0b0d11;
  background: var(--text);
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.button:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 10px 30px -10px rgba(167, 139, 250, 0.55); }
.button svg { width: 19px; height: 19px; flex: none; }
.button.primary { background: #fff; position: relative; }
.button.primary::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 14px;
  background: var(--cable);
  z-index: -1;
  filter: blur(10px);
  opacity: 0.55;
}
.button.ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.button.ghost:hover { background: rgba(255, 255, 255, 0.05); box-shadow: none; }
.button.small { min-height: 38px; padding: 0 14px; font-size: 14px; border-radius: 10px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 88px 0 40px; text-align: center; isolation: isolate; }
.hero::before {
  content: "";
  position: absolute;
  inset: -120px 0 auto;
  height: 720px;
  z-index: -1;
  background:
    radial-gradient(600px 300px at 30% 30%, rgba(56, 189, 248, 0.16), transparent 70%),
    radial-gradient(520px 300px at 72% 25%, rgba(244, 114, 182, 0.14), transparent 70%),
    radial-gradient(500px 260px at 50% 60%, rgba(167, 139, 250, 0.12), transparent 70%);
}
.hero-cables { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.55; }
.hero-cables svg { width: 100%; height: 100%; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 600 13px/1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
}
.eyebrow .led { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
h1, h2, h3, h4 { letter-spacing: -0.025em; line-height: 1.1; margin: 0; font-weight: 650; }
.hero h1 { font-size: clamp(40px, 7vw, 78px); margin: 26px auto 22px; max-width: 13ch; }
.grad {
  background: var(--cable);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 640px; margin: 0 auto; }
.lede strong { color: var(--text); font-weight: 550; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.meta { margin-top: 18px; color: var(--dim); font-size: 14px; }

.showcase { position: relative; margin-top: 56px; }
.window {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-2);
  background: #181818;
  overflow: hidden;
  box-shadow: 0 40px 120px -40px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(0, 0, 0, 0.6);
}
.glow::after {
  content: "";
  position: absolute;
  inset: 8% 6% -4%;
  z-index: -1;
  background: var(--cable);
  filter: blur(80px);
  opacity: 0.28;
  border-radius: 50%;
}
.window img { width: 100%; height: auto; }
.story-media .window img { height: auto; }
.float {
  position: absolute;
  border-radius: 14px;
  border: 1px solid var(--line-2);
  overflow: hidden;
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.85);
  background: #202020;
}
.float.hover-card { width: 42%; right: -3%; top: 14%; }
.float.graph-card { width: 38%; left: -5%; bottom: -10%; }
.float img { width: 100%; height: auto; }

/* ---------- Sections ---------- */
section { padding: 96px 0; }
.section-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.section-head h2 { font-size: clamp(30px, 4.4vw, 48px); margin: 18px 0 16px; }
.section-head p { color: var(--muted); font-size: 18px; margin: 0; }
.kicker { font: 600 13px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--violet); }

/* Problem → solution loop */
.loop { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.loop-card { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-lg); padding: 30px; }
.loop-card h3 { font-size: 22px; margin-bottom: 18px; }
.loop-card.before h3 { color: var(--muted); }
.steps-inline { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.steps-inline li { display: flex; gap: 12px; align-items: center; color: var(--muted); }
.steps-inline li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--dim); }
.before .steps-inline li.bad::before { background: var(--red); box-shadow: 0 0 10px var(--red); animation: blink 1.1s steps(2, start) infinite; }
.after .steps-inline li { color: var(--text); }
.after .steps-inline li::before { background: var(--green); box-shadow: 0 0 10px var(--green); }
@keyframes blink { to { visibility: hidden; } }

/* Tour */
.tour-player { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-2); background: #000; aspect-ratio: 16 / 9; }
.tour-player video { width: 100%; height: 100%; object-fit: cover; }
.tour-play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 16px;
  background: linear-gradient(180deg, rgba(11, 13, 17, 0.05), rgba(11, 13, 17, 0.55));
  border: 0; color: #fff; cursor: pointer; font: inherit;
}
.tour-play-icon { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #0b0d11; box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.12), 0 20px 60px rgba(0, 0, 0, 0.5); transition: transform 0.2s; }
.tour-play:hover .tour-play-icon { transform: scale(1.06); }
.tour-play-icon svg { width: 34px; height: 34px; margin-left: 5px; }
.tour-play-label { text-align: left; font-weight: 650; font-size: 20px; line-height: 1.25; text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6); }
.tour-play-label small { display: block; font-weight: 500; font-size: 14px; color: rgba(255, 255, 255, 0.75); }
.tour-links { display: flex; justify-content: center; gap: 22px; margin-top: 18px; font-size: 15px; flex-wrap: wrap; }

/* Feature story (alternating rows) */
.story { display: grid; gap: 120px; }
.story-row { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: center; }
.story-row:nth-child(even) .story-text { order: 2; }
.story-text .num { font: 600 13px/1 var(--mono); color: var(--dim); letter-spacing: 0.08em; }
.story-text h3 { font-size: clamp(26px, 3.2vw, 36px); margin: 14px 0 16px; }
.story-text p { color: var(--muted); font-size: 17px; margin: 0 0 14px; }
.story-text ul { color: var(--muted); padding-left: 20px; margin: 0; }
.story-text li { margin: 6px 0; }
.story-text li::marker { color: var(--violet); }
.story-media { position: relative; }
.story-media .window { border-radius: 16px; }
.story-media.crop .window { aspect-ratio: 16 / 10.5; }
.story-media.crop img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 0 0); }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.chip { font: 500 12.5px/1 var(--mono); padding: 7px 10px; border-radius: 8px; border: 1px solid var(--line-2); color: var(--muted); background: var(--surface); }
.chip i { font-style: normal; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 7px; vertical-align: 0; }

/* Features grid */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { border: 1px solid var(--line); background: linear-gradient(180deg, var(--surface), var(--bg-2)); border-radius: var(--radius); padding: 24px; position: relative; overflow: hidden; }
.feature .icon { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: var(--surface-3); border: 1px solid var(--line-2); margin-bottom: 18px; color: var(--c, var(--cyan)); }
.feature .icon svg { width: 21px; height: 21px; }
.feature h3 { font-size: 18px; margin-bottom: 8px; letter-spacing: -0.01em; }
.feature p { color: var(--muted); margin: 0; font-size: 15px; }
.feature::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--c, var(--cyan)); opacity: 0.55; }

/* Code compare (.droider -> .ini) */
.compare { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: stretch; }
.compare-arrow { display: grid; place-items: center; color: var(--muted); }
.compare-arrow span { font: 600 12px/1.3 var(--mono); text-align: center; color: var(--dim); }
.compare-arrow svg { width: 36px; height: 36px; color: var(--violet); margin: 0 auto 8px; display: block; }

/* Code blocks */
.code {
  position: relative;
  border: 1px solid var(--line-2);
  background: #1b1d22;
  border-radius: var(--radius);
  overflow: hidden;
  margin: 18px 0;
}
.code-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 14px; border-bottom: 1px solid var(--line); background: #16181d; font: 500 13px/1.2 var(--mono); color: var(--muted); }
.code-title .dots { display: inline-flex; gap: 6px; margin-right: 6px; }
.code-title .dots i { width: 9px; height: 9px; border-radius: 50%; background: #3a3f48; }
.code pre { margin: 0; padding: 16px 18px; overflow-x: auto; font-size: 14px; line-height: 1.62; color: #d4d4d4; tab-size: 4; }
.copy { background: none; border: 1px solid var(--line-2); color: var(--muted); border-radius: 7px; font: 500 12px/1 var(--sans); padding: 6px 9px; cursor: pointer; }
.copy:hover { color: var(--text); border-color: var(--muted); }
.tk-comment { color: var(--c-comment); }
.tk-bracket { color: var(--c-bracket); }
.tk-header { color: #e0e0e0; }
.tk-mega { color: #dcdcaa; }
.tk-input { color: var(--c-input); }
.tk-output { color: var(--c-output); }
.tk-register { color: var(--c-register); }
.tk-bool { color: var(--c-bool); }
.tk-num { color: var(--c-num); }
.tk-text { color: var(--c-text); }
.tk-port { color: #9cdcfe; }
.tk-err { text-decoration: underline wavy var(--red); text-underline-offset: 4px; text-decoration-thickness: 1.5px; }

/* Get started */
.start { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.start-step { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; background: var(--surface); counter-increment: s; position: relative; }
.start-step::before { content: counter(s); font: 650 15px/1 var(--mono); width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--surface-3); border: 1px solid var(--line-2); margin-bottom: 18px; }
.start-step h3 { font-size: 19px; margin-bottom: 8px; }
.start-step p { color: var(--muted); margin: 0 0 14px; font-size: 15px; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 0 20px; }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font: 400 22px/1 var(--mono); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 0 0 18px; }

/* Final CTA + footer */
.final { text-align: center; padding: 110px 0; position: relative; isolation: isolate; }
.final::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(600px 260px at 50% 60%, rgba(167, 139, 250, 0.16), transparent 70%); }
.final h2 { font-size: clamp(32px, 5vw, 56px); margin-bottom: 18px; }
.final p { color: var(--muted); font-size: 18px; margin: 0 auto; max-width: 560px; }
footer { border-top: 1px solid var(--line); padding: 38px 0 50px; color: var(--dim); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
footer a { color: var(--muted); }
footer p { margin: 4px 0; max-width: 640px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .before .steps-inline li.bad::before { animation: none; }
}

/* ---------- Guide (docs) ---------- */
.docs-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 56px; width: min(1280px, 100% - 32px); margin: 0 auto; }
.docs-nav { position: sticky; top: 64px; align-self: start; height: calc(100vh - 64px); overflow-y: auto; padding: 30px 6px 40px 0; scrollbar-width: thin; }
.docs-search { width: 100%; background: var(--surface); border: 1px solid var(--line-2); color: var(--text); border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 14px; margin-bottom: 22px; }
.docs-search:focus { outline: 2px solid rgba(167, 139, 250, 0.5); outline-offset: 1px; }
.docs-group { margin-bottom: 22px; }
.docs-group h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--dim); margin: 0 0 8px 10px; font-weight: 650; font-family: var(--mono); }
.docs-group .goal { display: block; font: 600 14.5px/1.35 var(--sans); color: var(--text); margin: 0 0 6px 10px; letter-spacing: -0.005em; text-transform: none; }
.docs-group a { display: block; color: var(--muted); font-size: 14.5px; padding: 6px 10px; border-radius: 8px; border-left: 2px solid transparent; }
.docs-group a:hover { color: var(--text); background: rgba(255, 255, 255, 0.03); text-decoration: none; }
.docs-group a.active { color: var(--text); background: rgba(167, 139, 250, 0.1); border-left-color: var(--violet); }
.docs-main { padding: 40px 0 120px; min-width: 0; max-width: 820px; }
.docs-hero { padding: 18px 0 30px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.docs-hero h1 { font-size: clamp(34px, 5vw, 50px); margin: 14px 0 14px; }
.docs-hero p { color: var(--muted); font-size: 18px; margin: 0; }
.paths { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 26px; }
.path { display: block; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; background: var(--surface); color: var(--text); }
.path:hover { text-decoration: none; border-color: var(--line-2); background: var(--surface-2); }
.path b { display: block; font-weight: 600; margin-bottom: 3px; }
.path span { color: var(--muted); font-size: 14px; }
.doc { padding-top: 30px; scroll-margin-top: 70px; }
.doc + .doc { border-top: 1px solid var(--line); margin-top: 34px; }
.doc .chapter { font: 600 12px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--violet); }
.doc h2 { font-size: clamp(26px, 3.4vw, 34px); margin: 12px 0 16px; scroll-margin-top: 80px; }
.doc h3 { font-size: 20px; margin: 30px 0 10px; scroll-margin-top: 80px; }
.doc p, .doc li { color: #c3cad5; }
.doc p { margin: 0 0 14px; }
.doc ul, .doc ol { padding-left: 22px; margin: 0 0 16px; }
.doc li { margin: 7px 0; }
.doc strong { color: var(--text); font-weight: 600; }
.doc figure { margin: 22px 0; }
.doc figure .window { border-radius: 12px; }
.doc figcaption { color: var(--dim); font-size: 14px; margin-top: 10px; text-align: center; }
.steps { list-style: none; counter-reset: st; padding: 0 !important; margin: 18px 0 22px; }
.steps > li { counter-increment: st; position: relative; padding: 2px 0 14px 50px; margin: 0; }
.steps > li::before { content: counter(st); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-3); border: 1px solid var(--line-2); font: 650 14px/1 var(--mono); color: var(--text); }
.steps > li:not(:last-child)::after { content: ""; position: absolute; left: 16px; top: 38px; bottom: 2px; width: 1px; background: var(--line-2); }
.callout { border: 1px solid var(--line-2); border-left: 3px solid var(--cyan); background: rgba(56, 189, 248, 0.06); border-radius: 10px; padding: 14px 16px; margin: 18px 0; color: #c3cad5; }
.callout.tip { border-left-color: var(--green); background: rgba(52, 211, 153, 0.06); }
.callout.warn { border-left-color: var(--amber); background: rgba(251, 191, 36, 0.06); }
.callout b:first-child { color: var(--text); }
.callout p:last-child { margin-bottom: 0; }
.os-tabs { margin: 16px 0 18px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.os-tabs [role="tablist"] { display: flex; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.os-tabs [role="tab"] { flex: 1; background: none; border: 0; color: var(--muted); font: 600 14px/1 var(--sans); padding: 13px 10px; cursor: pointer; border-bottom: 2px solid transparent; }
.os-tabs [role="tab"][aria-selected="true"] { color: var(--text); border-bottom-color: var(--violet); }
.os-tabs [role="tabpanel"] { padding: 16px 20px 6px; }
.table-wrap { overflow-x: auto; margin: 16px 0 20px; border: 1px solid var(--line); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; font-size: 14.5px; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--text); font-weight: 600; background: var(--bg-2); white-space: nowrap; }
td { color: #c3cad5; }
tr:last-child td { border-bottom: 0; }
.next { display: flex; justify-content: flex-end; margin-top: 22px; }
.next a { font-weight: 600; }
.docs-menu-btn { display: none; }
.no-results { color: var(--dim); font-size: 14px; padding: 6px 10px; display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .story-row { grid-template-columns: 1fr; gap: 28px; }
  .story-row:nth-child(even) .story-text { order: 0; }
  .story { gap: 80px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .start { grid-template-columns: 1fr; }
  .compare { grid-template-columns: 1fr; }
  .compare-arrow svg { transform: rotate(90deg); }
  .float { display: none; }
  .docs-layout { grid-template-columns: 1fr; gap: 0; }
  .docs-nav {
    position: fixed; z-index: 60; left: 0; top: 64px; bottom: 0; width: min(320px, 86vw); height: auto;
    background: var(--bg); border-right: 1px solid var(--line); padding: 20px 16px 40px;
    transform: translateX(-102%); transition: transform 0.25s ease;
  }
  .docs-nav.open { transform: none; box-shadow: 30px 0 80px rgba(0, 0, 0, 0.6); }
  .docs-menu-btn {
    display: inline-flex; position: sticky; top: 72px; z-index: 40; margin: 14px 0 0;
    align-items: center; gap: 8px; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--text);
    border-radius: 10px; padding: 9px 14px; font: 600 14px/1 var(--sans); cursor: pointer;
  }
}
@media (max-width: 720px) {
  section { padding: 72px 0; }
  .hero { padding-top: 56px; }
  .loop { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .paths { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 10px 16px 18px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px; }
  .tour-play-label { display: none; }
  .code pre { font-size: 13px; }
}
