/* ============================================================
   memo: site styles
   Palette sampled from banner.png:
     bg      #0f151d
     yellow  #ffff01
     gold    #ffd700
     amber   #ffaf00
     orange  #ff8700
     ember   #ff5f00
   ============================================================ */

:root {
  --bg: #0f151d;
  --bg-raise: #141b25;
  --yellow: #ffff01;
  --gold: #ffd700;
  --amber: #ffaf00;
  --orange: #ff8700;
  --ember: #ff5f00;
  --text: #e8ecf1;
  --text-dim: #98a2b3;
  --text-faint: #5c6675;
  --glass: rgba(255, 255, 255, 0.035);
  --glass-strong: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-hot: rgba(255, 175, 0, 0.35);
  --gradient: linear-gradient(180deg, var(--yellow) 0%, var(--gold) 28%, var(--amber) 52%, var(--orange) 74%, var(--ember) 100%);
  --gradient-h: linear-gradient(90deg, var(--gold), var(--orange));
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(255, 175, 0, 0.28); color: #fff; }

/* ---------- ambient glow field ---------- */

.glow-field {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
}
.glow-field::before,
.glow-field::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.16;
}
.glow-field::before {
  width: 720px; height: 720px;
  top: -280px; right: -160px;
  background: radial-gradient(circle, var(--amber), transparent 65%);
}
.glow-field::after {
  width: 640px; height: 640px;
  bottom: -300px; left: -200px;
  background: radial-gradient(circle, var(--ember), transparent 65%);
  opacity: 0.10;
}

/* faint pixel grid echoing the banner art */
.grid-field {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, black 30%, transparent 75%);
}

/* ---------- layout ---------- */

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- nav ---------- */

.nav {
  position: fixed;
  top: 16px; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding: 0 24px;
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 10px 22px;
  border-radius: 999px;
  background: rgba(15, 21, 29, 0.62);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}
.nav-logo {
  font-family: var(--mono);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.06em;
  text-decoration: none;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav-links { display: flex; gap: 22px; align-items: center; }
.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-cta {
  font-size: 13.5px;
  font-weight: 600;
  color: #14100a !important;
  background: var(--gradient-h);
  padding: 6px 14px;
  border-radius: 999px;
  box-shadow: 0 0 18px rgba(255, 135, 0, 0.35);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.nav-cta:hover { box-shadow: 0 0 28px rgba(255, 135, 0, 0.55); transform: translateY(-1px); }

/* ---------- hero ---------- */

.hero {
  padding-top: 150px;
  padding-bottom: 64px;
  text-align: center;
  position: relative;
}
.hero-mark {
  width: min(520px, 84vw);
  height: auto;
  filter: drop-shadow(0 0 38px rgba(255, 135, 0, 0.3));
  margin-bottom: 38px;
  animation: mark-breathe 6s ease-in-out infinite;
}
@keyframes mark-breathe {
  0%, 100% { filter: drop-shadow(0 0 30px rgba(255, 135, 0, 0.24)); }
  50% { filter: drop-shadow(0 0 52px rgba(255, 135, 0, 0.42)); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-mark { animation: none; }
}
.hero h1 {
  font-size: clamp(28px, 4.4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.18;
  max-width: 760px;
  margin: 0 auto 18px;
}
.hero h1 .grad {
  background: var(--gradient-h);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  color: var(--text-dim);
  font-size: clamp(16px, 2vw, 18.5px);
  max-width: 560px;
  margin: 0 auto 34px;
}
.hero-badges {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 38px;
}
.badge {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text-dim);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  padding: 5px 13px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.badge b { color: var(--amber); font-weight: 600; }

/* install pill in hero */
.install-pill {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 13.5px;
  background: rgba(20, 27, 37, 0.75);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 13px 16px 13px 20px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 0 0 1px rgba(255, 175, 0, 0.06), 0 12px 40px rgba(0, 0, 0, 0.4);
  max-width: 100%;
  overflow-x: auto;
  white-space: nowrap;
}
.install-pill .prompt { color: var(--ember); user-select: none; }
.install-pill code { color: var(--text); }

.hero-actions {
  margin-top: 26px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14.5px;
  padding: 11px 22px;
  border-radius: 12px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn-primary {
  color: #14100a;
  background: var(--gradient-h);
  box-shadow: 0 0 24px rgba(255, 135, 0, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 38px rgba(255, 135, 0, 0.55); }
.btn-ghost {
  color: var(--text);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: var(--glass-strong); transform: translateY(-2px); }

/* ---------- terminal mockup ---------- */

.terminal {
  margin: 64px auto 0;
  max-width: 780px;
  border-radius: var(--radius);
  background: rgba(13, 18, 26, 0.85);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow:
    0 0 0 1px rgba(255, 175, 0, 0.05),
    0 30px 80px rgba(0, 0, 0, 0.55),
    0 0 90px rgba(255, 135, 0, 0.07);
  overflow: hidden;
  text-align: left;
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.terminal-bar .dot { width: 11px; height: 11px; border-radius: 50%; }
.dot-r { background: #ff5f57; } .dot-y { background: #febc2e; } .dot-g { background: #28c840; }
.terminal-bar .title {
  flex: 1;
  text-align: center;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-faint);
}
.terminal-body {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.75;
  padding: 20px 24px 24px;
  overflow-x: auto;
  white-space: pre;
}
.terminal-body .t-dim { color: var(--text-faint); }
.terminal-body .t-amber { color: var(--amber); }
.terminal-body .t-gold { color: var(--gold); }
.terminal-body .t-ember { color: var(--ember); }
.terminal-body .t-green { color: #6fdc8c; }
.terminal-body .t-sel {
  background: rgba(255, 175, 0, 0.14);
  color: var(--gold);
  border-radius: 4px;
  padding: 0 4px;
}
.terminal-body .cursor {
  display: inline-block;
  width: 8px; height: 15px;
  background: var(--amber);
  vertical-align: text-bottom;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ---------- runs-in strip ---------- */

.runs-in { margin-top: 46px; }
.runs-in-label {
  display: block;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 14px;
}
.runs-in-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 10px;
  max-width: 640px;
  margin: 0 auto;
}
.runs-in-list span {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-dim);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 5px 12px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: color 0.15s ease, border-color 0.15s ease;
}
.runs-in-list span:hover { color: var(--gold); border-color: var(--glass-border-hot); }
.runs-in-list span:last-child { color: var(--amber); border-style: dashed; }

/* ---------- sections ---------- */

section { padding: 84px 0; }

.section-head { text-align: center; margin-bottom: 48px; }
.kicker {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--gradient-h);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  margin-bottom: 12px;
}
.section-head h2 {
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.section-head p { color: var(--text-dim); margin-top: 10px; max-width: 540px; margin-inline: auto; }

/* ---------- feature grid ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  position: relative;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 26px 24px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 175, 0, 0.08), transparent 60%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.card:hover { transform: translateY(-4px); border-color: var(--glass-border-hot); box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35), 0 0 34px rgba(255, 135, 0, 0.08); }
.card:hover::before { opacity: 1; }
.card-wide {
  grid-column: 1 / -1;
  display: flex;
  gap: 22px;
  align-items: flex-start;
  border-color: rgba(255, 175, 0, 0.22);
  background: linear-gradient(120deg, rgba(255, 175, 0, 0.06), var(--glass) 45%);
}
.card-wide .card-icon { margin-bottom: 0; flex-shrink: 0; }
.card-wide p { max-width: 760px; }
.card-icon {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--amber);
  background: rgba(255, 175, 0, 0.09);
  border: 1px solid rgba(255, 175, 0, 0.22);
  border-radius: var(--radius-sm);
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  text-shadow: 0 0 14px rgba(255, 175, 0, 0.6);
}
.card h3 { font-size: 16.5px; font-weight: 700; margin-bottom: 8px; }
.card p { color: var(--text-dim); font-size: 14.5px; }
.card p code, .steps code {
  font-family: var(--mono);
  font-size: 0.9em;
  color: var(--gold);
  background: rgba(255, 215, 0, 0.08);
  padding: 1px 6px;
  border-radius: 5px;
}

/* ---------- install tabs ---------- */

.install-box {
  max-width: 780px;
  margin: 0 auto;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}
.tabs {
  display: flex;
  gap: 4px;
  padding: 10px 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.tab {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 10px 16px;
  cursor: pointer;
  transition: color 0.15s ease;
}
.tab:hover { color: var(--text); }
.tab.active {
  color: var(--gold);
  border-bottom-color: var(--amber);
  text-shadow: 0 0 16px rgba(255, 175, 0, 0.5);
}
.tab-panels { padding: 22px; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.tab-panel .note { color: var(--text-faint); font-size: 13.5px; margin-top: 14px; }
.tab-panel .note a { color: var(--amber); text-decoration: none; }
.tab-panel .note a:hover { text-decoration: underline; }

/* ---------- code blocks ---------- */

.codeblock {
  position: relative;
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.6;
  background: rgba(10, 14, 20, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 16px 52px 16px 18px;
  overflow-x: auto;
  white-space: pre;
  color: var(--text);
}
.codeblock .prompt { color: var(--ember); user-select: none; }
.codeblock .comment { color: var(--text-faint); }
.codeblock .str { color: #9ece6a; }
.codeblock .key { color: var(--amber); }
.codeblock + .codeblock { margin-top: 12px; }

.copy-btn {
  position: absolute;
  top: 10px; right: 10px;
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  color: var(--text-dim);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.copy-btn:hover { color: var(--gold); border-color: var(--glass-border-hot); background: rgba(255, 175, 0, 0.08); }
.copy-btn svg { width: 15px; height: 15px; }
.copy-btn.copied { color: #6fdc8c; border-color: rgba(111, 220, 140, 0.4); }

/* ---------- quick start steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 960px;
  margin: 0 auto;
}
.step {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 22px 20px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  text-align: center;
}
.step .num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-faint);
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}
.step kbd, kbd {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  background: rgba(255, 215, 0, 0.07);
  border: 1px solid rgba(255, 175, 0, 0.3);
  border-bottom-width: 2px;
  border-radius: 7px;
  padding: 3px 9px;
  box-shadow: 0 0 14px rgba(255, 175, 0, 0.12);
  white-space: nowrap;
}
.step .what { margin-top: 12px; font-size: 14px; color: var(--text-dim); }

/* ---------- footer ---------- */

footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 40px 0 48px;
  margin-top: 40px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-inner .logo {
  font-family: var(--mono);
  font-weight: 800;
  letter-spacing: 0.06em;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.footer-inner p { color: var(--text-faint); font-size: 13.5px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.footer-links a { color: var(--text-dim); font-size: 13.5px; text-decoration: none; }
.footer-links a:hover { color: var(--gold); }

/* ---------- docs layout ---------- */

.docs-shell {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 48px;
  padding-top: 130px;
  align-items: start;
}
.docs-sidebar {
  position: sticky;
  top: 110px;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
  padding-right: 8px;
}
.docs-sidebar .group {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 22px 0 8px;
}
.docs-sidebar .group:first-child { margin-top: 0; }
.docs-sidebar a {
  display: block;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
  padding: 5px 12px;
  border-left: 2px solid transparent;
  border-radius: 0 8px 8px 0;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.docs-sidebar a:hover { color: var(--text); background: var(--glass); }
.docs-sidebar a.active {
  color: var(--gold);
  border-left-color: var(--amber);
  background: rgba(255, 175, 0, 0.06);
}

.docs-content { min-width: 0; padding-bottom: 90px; }
.docs-content > section { padding: 0 0 56px; }
.docs-content h1 {
  font-size: clamp(28px, 3.6vw, 38px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.docs-content .lead { color: var(--text-dim); font-size: 17px; margin-bottom: 40px; max-width: 640px; }
.docs-content h2 {
  font-size: 23px;
  font-weight: 750;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  padding-top: 8px;
  scroll-margin-top: 110px;
}
.docs-content h2 .hash { color: var(--amber); opacity: 0; margin-left: 8px; text-decoration: none; font-weight: 500; }
.docs-content h2:hover .hash { opacity: 1; }
.docs-content h3 { font-size: 17px; font-weight: 700; margin: 26px 0 10px; }
.docs-content p { color: var(--text-dim); margin-bottom: 14px; max-width: 680px; }
.docs-content p code, .docs-content li code, .docs-content td code {
  font-family: var(--mono);
  font-size: 0.88em;
  color: var(--gold);
  background: rgba(255, 215, 0, 0.07);
  border: 1px solid rgba(255, 215, 0, 0.12);
  padding: 1px 6px;
  border-radius: 5px;
}
.docs-content a { color: var(--amber); text-decoration: none; }
.docs-content a:hover { text-decoration: underline; }
.docs-content ul { color: var(--text-dim); margin: 0 0 14px 20px; max-width: 680px; }
.docs-content li { margin-bottom: 6px; }
.docs-content .codeblock { margin-bottom: 14px; max-width: 680px; }

/* docs tables */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  margin-bottom: 18px;
}
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th {
  text-align: left;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
}
td {
  padding: 11px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
  color: var(--text-dim);
  vertical-align: top;
}
tr:last-child td { border-bottom: none; }
td:first-child { white-space: nowrap; }

/* option cards on docs page */
.opt {
  border: 1px solid var(--glass-border);
  border-left: 2px solid rgba(255, 175, 0, 0.45);
  background: var(--glass);
  border-radius: 0 12px 12px 0;
  padding: 16px 18px;
  margin-bottom: 12px;
  max-width: 680px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.opt .opt-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.opt .opt-name {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--gold);
}
.opt .opt-default {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-faint);
}
.opt .opt-default code { color: var(--text-dim); background: none; border: none; padding: 0; }
.opt p { font-size: 14px; margin-bottom: 0; }
.opt p + p { margin-top: 8px; }

.callout {
  display: flex;
  gap: 12px;
  background: rgba(255, 175, 0, 0.06);
  border: 1px solid rgba(255, 175, 0, 0.2);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 0 0 18px;
  max-width: 680px;
}
.callout .icon { color: var(--amber); font-weight: 700; flex-shrink: 0; }
.callout p { margin: 0; font-size: 14px; }

/* ---------- reveal animation ---------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .cursor { animation: none; }
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .docs-shell { grid-template-columns: 1fr; gap: 0; }
  .docs-sidebar {
    position: static;
    max-height: none;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
    margin-bottom: 36px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
  .docs-sidebar .group { display: none; }
  .docs-sidebar a { border-left: none; border-radius: 999px; padding: 5px 13px; border: 1px solid var(--glass-border); font-size: 13px; }
  .docs-sidebar a.active { border-color: var(--glass-border-hot); }
}

@media (max-width: 620px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .features { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  section { padding: 60px 0; }
  .hero { padding-top: 120px; }
}
