/* llmux site — Monokai Pro design system.
   Shared by index.html (landing) and the /docs detail pages.
   No build step. Edit here, every page picks it up. */

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

:root {
  --bg: #111110;
  --bg-card: #1a1918;
  --bg-code: #0d0d0c;
  --border: #2a2825;
  --border-light: #3a3835;
  --text: #fcfcfa;
  --text-dim: #939293;
  --text-muted: #727072;
  /* Monokai Pro palette */
  --pink: #ff6188;
  --purple: #ab9df2;
  --cyan: #78dce8;
  --green: #a9dc76;
  --yellow: #ffd866;
  --orange: #fc9867;
  --accent: var(--purple);
  --accent-dim: rgba(171, 157, 242, 0.12);
  --mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
  --max-w: 1200px;
  --max-w-docs: 1080px;
  --section-gap: clamp(5rem, 10vh, 8rem);
  --nav-h: 56px;
}

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

/* ============================== NAV ============================== */
nav.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(17,17,16,0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: 14px 32px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-brand {
  font-family: var(--mono); font-size: 18px; font-weight: 700;
  color: var(--text); text-decoration: none; letter-spacing: -0.03em;
}
.nav-brand .brand-accent { color: var(--purple); }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links-desktop { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  font-size: 13px; color: var(--text-dim); text-decoration: none;
  font-family: var(--mono); transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--purple); }
.nav-github {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 8px;
  background: #24292e; border: 1px solid #3a3a3a;
  text-decoration: none; transition: border-color 0.2s;
}
.nav-github:hover { border-color: #555; }
.nav-github svg { width: 18px; height: 18px; fill: #fff; }
.nav-github-stars {
  font-family: var(--mono); font-size: 12px;
  color: var(--text); font-weight: 600;
}

/* ============================== LAYOUT ============================== */
.page-wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; }
section { padding-bottom: var(--section-gap); }

.section-label {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 12px;
}
.section-title {
  font-size: clamp(28px, 4vw, 40px); font-weight: 700;
  line-height: 1.15; letter-spacing: -0.03em;
  color: var(--text); margin-bottom: 16px;
}
.section-sub {
  font-size: 15px; color: var(--text-dim);
  max-width: 520px; line-height: 1.7;
}
.section-header { margin-bottom: 48px; }

/* ============================== HERO (landing) ============================== */
.hero {
  text-align: center;
  padding-top: clamp(7rem, 13vh, 10rem);
  padding-bottom: clamp(2rem, 4vh, 4rem);
}
.hero-badge {
  display: inline-block;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(36px, 6vw, 64px); font-weight: 700;
  line-height: 1.08; letter-spacing: -0.04em;
  margin-bottom: 20px;
}
.hero h1 .accent { color: var(--purple); }
.hero h1 .accent-alt { color: var(--cyan); }
.hero-sub {
  font-size: clamp(15px, 2vw, 17px); color: var(--text-dim);
  max-width: 520px; margin: 0 auto 40px; line-height: 1.7;
}
.hero-cmd {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--bg-code); border: 1px solid var(--border);
  border-radius: 8px; padding: 14px 24px;
  font-family: var(--mono); font-size: 14px;
  color: var(--text-dim); cursor: pointer;
  transition: border-color 0.2s;
  position: relative;
}
.hero-cmd:hover { border-color: var(--border-light); }
.hero-cmd .prompt { color: var(--green); user-select: none; }
.hero-cmd .cmd-text { color: var(--text); }
.hero-cmd .copy-icon { color: var(--text-muted); transition: color 0.2s; width: 16px; height: 16px; }
.hero-cmd:hover .copy-icon { color: var(--text-dim); }
.hero-cmd .copied-tooltip {
  position: absolute; top: -32px; left: 50%; transform: translateX(-50%);
  background: var(--green); color: var(--bg); padding: 4px 10px;
  border-radius: 4px; font-size: 11px; opacity: 0;
  transition: opacity 0.2s; pointer-events: none;
}
.hero-cmd .copied-tooltip.show { opacity: 1; }
.hero-links { display: flex; gap: 16px; justify-content: center; margin-top: 20px; }
.hero-links a {
  font-family: var(--mono); font-size: 13px;
  color: var(--text-dim); text-decoration: none; transition: color 0.2s;
}
.hero-links a:hover { color: var(--text); }
.hero-logo {
  display: block; margin: 0 auto 32px auto;
  width: 100%; max-width: 440px; height: auto;
  border-radius: 24px;
  filter: drop-shadow(0 20px 60px rgba(171, 157, 242, 0.35));
  animation: float 4s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.tech-stack {
  display: flex; gap: 20px; justify-content: center;
  align-items: center; margin-top: 32px; flex-wrap: wrap;
}
.tech-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  font-family: var(--mono); font-size: 11px;
  color: var(--text-dim); transition: border-color 0.2s;
}
.tech-badge:hover { border-color: var(--border-light); }
.tech-badge svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ============================== LANDING SECTIONS ============================== */
.demo-section { text-align: center; }
.demo-wrap {
  max-width: 720px; margin: 0 auto;
  border-radius: 12px; overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-code);
}
.demo-wrap img { width: 100%; height: auto; display: block; }

.problems-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.problem-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; padding: 28px; transition: border-color 0.2s;
}
.problem-card:hover { border-color: var(--border-light); }
.problem-num { font-family: var(--mono); font-size: 11px; color: var(--text-muted); margin-bottom: 12px; }
.problem-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; letter-spacing: -0.01em; }
.problem-card p { font-size: 13px; color: var(--text-dim); line-height: 1.6; }
.problem-cmd {
  display: inline-block; margin-top: 12px;
  font-family: var(--mono); font-size: 12px;
  color: var(--pink); background: rgba(255, 97, 136, 0.1);
  padding: 6px 12px; border-radius: 6px;
}

.steps-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.step-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; padding: 28px; transition: border-color 0.2s;
}
.step-card:hover { border-color: var(--border-light); }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255, 216, 102, 0.12); color: var(--yellow);
  font-family: var(--mono); font-size: 13px; font-weight: 700;
  margin-bottom: 16px;
}
.step-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.step-card p { font-size: 13px; color: var(--text-dim); line-height: 1.6; margin-bottom: 12px; }
.step-code {
  font-family: var(--mono); font-size: 13px;
  background: var(--bg-code); border: 1px solid var(--border);
  border-radius: 6px; padding: 10px 14px;
  color: var(--text);
}

.terminal-section { text-align: center; }
.terminal {
  max-width: 640px; margin: 0 auto;
  background: var(--bg-code); border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden; text-align: left;
}
.terminal-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; border-bottom: 1px solid var(--border);
}
.terminal-dot { width: 10px; height: 10px; border-radius: 50%; }
.terminal-dot.red { background: #ff5f57; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #28c840; }
.terminal-title {
  flex: 1; text-align: center;
  font-family: var(--mono); font-size: 11px; color: var(--text-muted);
}
.terminal-body {
  padding: 20px; font-family: var(--mono); font-size: 13px;
  line-height: 1.8; min-height: 280px;
}
.terminal-body .line { opacity: 0; transform: translateY(4px); transition: all 0.3s ease; }
.terminal-body .line.visible { opacity: 1; transform: translateY(0); }
.terminal-body .prompt-line { color: var(--text); }
.terminal-body .prompt-sign { color: var(--green); }
.terminal-body .success { color: var(--green); }
.terminal-body .info { color: var(--text-dim); }
.terminal-body .highlight { color: var(--cyan); }
.terminal-body .warn { color: var(--yellow); }

.comparison-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.comparison-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; padding: 32px;
}
.comparison-card.after { border-color: var(--green); }
.comparison-card h3 {
  font-family: var(--mono); font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 24px;
}
.comparison-card.before h3 { color: var(--text-muted); }
.comparison-card.after h3 { color: var(--green); }
.comp-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.comp-row:last-child { border-bottom: none; }
.comp-label { color: var(--text-dim); font-size: 12px; }
.comp-value { font-family: var(--mono); font-size: 12px; }
.comp-value.dim { color: var(--text-muted); }
.comp-value.good { color: var(--green); }

.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; padding: 28px; transition: border-color 0.2s;
}
.feature-card:hover { border-color: var(--border-light); }
.feature-icon {
  font-size: 20px; margin-bottom: 14px;
  width: 40px; height: 40px; display: flex;
  align-items: center; justify-content: center;
  border-radius: 10px;
}
.feature-card:nth-child(1) .feature-icon { background: rgba(120,220,232,0.12); color: var(--cyan); }
.feature-card:nth-child(2) .feature-icon { background: rgba(255,97,136,0.12); color: var(--pink); }
.feature-card:nth-child(3) .feature-icon { background: rgba(169,220,118,0.12); color: var(--green); }
.feature-card:nth-child(4) .feature-icon { background: rgba(255,216,102,0.12); color: var(--yellow); }
.feature-card:nth-child(5) .feature-icon { background: rgba(252,152,103,0.12); color: var(--orange); }
.feature-card:nth-child(6) .feature-icon { background: rgba(171,157,242,0.12); color: var(--purple); }
.feature-card:nth-child(7) .feature-icon { background: rgba(120,220,232,0.12); color: var(--cyan); }
.feature-card:nth-child(8) .feature-icon { background: rgba(255,97,136,0.12); color: var(--pink); }
.feature-card:nth-child(9) .feature-icon { background: rgba(169,220,118,0.12); color: var(--green); }
.feature-card h3 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.feature-card p { font-size: 13px; color: var(--text-dim); line-height: 1.6; }
.feature-card p code {
  font-family: var(--mono); font-size: 12px;
  background: var(--bg-code); padding: 2px 6px;
  border-radius: 4px; color: var(--green);
}

.faq-list { max-width: 700px; }
.faq-item { border-bottom: 1px solid var(--border); padding: 20px 0; }
.faq-q {
  font-size: 15px; font-weight: 600; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  color: var(--text); transition: color 0.2s;
}
.faq-q:hover { color: var(--purple); }
.faq-arrow { font-size: 18px; color: var(--text-muted); transition: transform 0.3s; }
.faq-item.open .faq-arrow { transform: rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  font-size: 13px; color: var(--text-dim); line-height: 1.7;
}
.faq-item.open .faq-a { max-height: 360px; padding-top: 12px; }
.faq-a code {
  font-family: var(--mono); font-size: 12px;
  background: var(--bg-code); padding: 2px 6px;
  border-radius: 4px; color: var(--green);
}

footer {
  border-top: 1px solid var(--border);
  padding: 32px 0; text-align: center;
  font-size: 12px; color: var(--text-muted);
  font-family: var(--mono);
}
footer a { color: var(--text-dim); text-decoration: none; }
footer a:hover { color: var(--text); }

/* ============================== DOCS DETAIL PAGES ============================== */
.docs-wrap {
  max-width: var(--max-w-docs);
  margin: 0 auto;
  padding: calc(var(--nav-h) + 32px) 32px 96px;
}

/* Section nav (pill row sitting under the top nav) */
.section-nav {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.section-nav .crumb {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-muted);
  padding: 6px 0; margin-right: 8px;
  display: inline-flex; align-items: center;
}
.section-nav a {
  font-family: var(--mono); font-size: 12px;
  color: var(--text-dim); text-decoration: none;
  padding: 6px 12px; border-radius: 6px;
  border: 1px solid transparent;
  transition: all 0.2s;
}
.section-nav a:hover {
  color: var(--text); border-color: var(--border);
}
.section-nav a.active {
  color: var(--purple); background: var(--accent-dim);
  border-color: rgba(171,157,242,0.3);
}

/* Page-level metadata header (h1 + lede) */
.docs-header { margin-bottom: 40px; }
.docs-header h1 {
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 700; letter-spacing: -0.03em; line-height: 1.1;
  color: var(--text); margin-bottom: 16px;
}
.docs-header .lede {
  font-size: 17px; line-height: 1.7;
  color: var(--text-dim); max-width: 680px;
}

/* Prose content */
.docs-content { font-size: 15px; line-height: 1.75; color: var(--text); }

.docs-content h2 {
  font-size: 24px; font-weight: 700; letter-spacing: -0.02em;
  line-height: 1.25; color: var(--text);
  margin-top: 56px; margin-bottom: 16px;
  padding-bottom: 12px; border-bottom: 1px solid var(--border);
  scroll-margin-top: calc(var(--nav-h) + 24px);
}
.docs-content h2:first-child { margin-top: 0; }
.docs-content h3 {
  font-size: 18px; font-weight: 600; letter-spacing: -0.01em;
  color: var(--text); margin-top: 36px; margin-bottom: 12px;
  scroll-margin-top: calc(var(--nav-h) + 24px);
}
.docs-content h4 {
  font-size: 15px; font-weight: 600;
  color: var(--text); margin-top: 28px; margin-bottom: 8px;
  font-family: var(--mono); letter-spacing: 0;
}

.docs-content p {
  color: var(--text-dim); margin: 14px 0;
}
.docs-content strong { color: var(--text); font-weight: 600; }
.docs-content em { color: var(--text); font-style: italic; }

.docs-content a {
  color: var(--cyan); text-decoration: none;
  border-bottom: 1px solid rgba(120,220,232,0.3);
  transition: border-color 0.2s;
}
.docs-content a:hover { border-bottom-color: var(--cyan); }

/* Inline code */
.docs-content code {
  font-family: var(--mono); font-size: 0.88em;
  background: var(--bg-code); border: 1px solid var(--border);
  padding: 2px 6px; border-radius: 4px;
  color: var(--green);
}
.docs-content a code { color: var(--cyan); }

/* Code blocks */
.docs-content pre {
  background: var(--bg-code); border: 1px solid var(--border);
  border-radius: 8px; padding: 18px 20px;
  overflow-x: auto; margin: 18px 0;
  font-family: var(--mono); font-size: 13px;
  line-height: 1.65;
}
.docs-content pre code {
  background: none; border: none; padding: 0;
  color: var(--text); font-size: inherit; border-radius: 0;
}
/* Optional language label */
.docs-content pre[data-lang]::before {
  content: attr(data-lang);
  display: block;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 12px;
}

/* Lists */
.docs-content ul, .docs-content ol {
  margin: 14px 0; padding-left: 28px;
  color: var(--text-dim);
}
.docs-content ul li, .docs-content ol li {
  margin: 6px 0;
}
.docs-content ul li::marker { color: var(--purple); }
.docs-content ol li::marker { color: var(--yellow); font-family: var(--mono); }
.docs-content li > p { margin: 6px 0; }
.docs-content li > ul, .docs-content li > ol { margin: 6px 0; }

/* Tables */
.docs-content table {
  width: 100%; margin: 22px 0;
  border-collapse: collapse;
  font-size: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.docs-content thead {
  background: var(--bg-card);
}
.docs-content th {
  text-align: left;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-muted);
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
}
.docs-content td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-dim);
  vertical-align: top;
}
.docs-content tbody tr:last-child td { border-bottom: none; }
.docs-content tbody tr:hover { background: rgba(171,157,242,0.04); }

/* Blockquotes */
.docs-content blockquote {
  margin: 18px 0; padding: 16px 20px;
  background: var(--bg-card);
  border-left: 3px solid var(--purple);
  border-radius: 0 8px 8px 0;
  color: var(--text-dim);
  font-size: 14px;
}
.docs-content blockquote p { margin: 4px 0; color: var(--text-dim); }
.docs-content blockquote p:first-child { margin-top: 0; }
.docs-content blockquote p:last-child { margin-bottom: 0; }

/* Admonitions (note / warning / tip / info / danger) */
.docs-content .admonition {
  margin: 22px 0; padding: 16px 20px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left-width: 3px;
  border-radius: 0 8px 8px 0;
  font-size: 14px;
}
.docs-content .admonition .admonition-title {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
}
.docs-content .admonition.note { border-left-color: var(--cyan); }
.docs-content .admonition.note .admonition-title { color: var(--cyan); }
.docs-content .admonition.tip { border-left-color: var(--green); }
.docs-content .admonition.tip .admonition-title { color: var(--green); }
.docs-content .admonition.warning { border-left-color: var(--yellow); }
.docs-content .admonition.warning .admonition-title { color: var(--yellow); }
.docs-content .admonition.danger { border-left-color: var(--pink); }
.docs-content .admonition.danger .admonition-title { color: var(--pink); }
.docs-content .admonition.info { border-left-color: var(--purple); }
.docs-content .admonition.info .admonition-title { color: var(--purple); }
.docs-content .admonition p { margin: 6px 0; color: var(--text-dim); }
.docs-content .admonition p:last-child { margin-bottom: 0; }
.docs-content .admonition > p:first-of-type { margin-top: 0; }

/* Tabs (for === "Option" === MkDocs syntax) */
.docs-content .tabs {
  margin: 24px 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-card);
}
.docs-content .tab-bar {
  display: flex; flex-wrap: wrap;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.docs-content .tab-bar button {
  font-family: var(--mono); font-size: 12px;
  color: var(--text-muted); background: none; border: none;
  padding: 12px 18px; cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  letter-spacing: 0.02em;
}
.docs-content .tab-bar button:hover { color: var(--text-dim); }
.docs-content .tab-bar button.active {
  color: var(--purple);
  border-bottom-color: var(--purple);
}
.docs-content .tab-panel { display: none; padding: 22px 24px; }
.docs-content .tab-panel.active { display: block; }
.docs-content .tab-panel > :first-child { margin-top: 0; }
.docs-content .tab-panel > :last-child { margin-bottom: 0; }

/* Keyboard chips for shortcut documentation */
.docs-content kbd {
  display: inline-block;
  font-family: var(--mono); font-size: 11px;
  color: var(--text); background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-bottom-width: 2px;
  border-radius: 4px;
  padding: 1px 8px;
  line-height: 1.5;
  vertical-align: baseline;
}

/* Horizontal rule */
.docs-content hr {
  border: none; border-top: 1px solid var(--border);
  margin: 40px 0;
}

/* Definition lists (used in some MkDocs configurations) */
.docs-content dl { margin: 14px 0; }
.docs-content dt {
  font-family: var(--mono); font-size: 13px;
  color: var(--cyan); margin-top: 10px;
  font-weight: 600;
}
.docs-content dd {
  margin-left: 24px; color: var(--text-dim);
  font-size: 14px; line-height: 1.7;
}

/* Page footer with "Edit this page" / "Last updated" */
.docs-footer {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.docs-footer .edit-link {
  font-family: var(--mono); font-size: 12px;
  color: var(--text-dim); text-decoration: none;
}
.docs-footer .edit-link:hover { color: var(--cyan); }
.docs-footer .prev-next {
  display: flex; gap: 12px;
  font-family: var(--mono); font-size: 12px;
}
.docs-footer .prev-next a {
  color: var(--text-dim); text-decoration: none;
  padding: 6px 12px; border: 1px solid var(--border); border-radius: 6px;
  transition: all 0.2s;
}
.docs-footer .prev-next a:hover { color: var(--text); border-color: var(--border-light); }

/* ============================== RESPONSIVE ============================== */
@media (max-width: 900px) {
  .nav-links-desktop { gap: 18px; }
  .nav-links-desktop a { font-size: 12px; }
}
@media (max-width: 768px) {
  .nav-inner { padding: 12px 20px; }
  .nav-links-desktop { display: none; }
  .page-wrap, .docs-wrap { padding: calc(var(--nav-h) + 24px) 20px 64px; }
  .comparison-grid { grid-template-columns: 1fr; }
  .docs-content h2 { font-size: 20px; }
  .docs-content h3 { font-size: 16px; }
  .docs-content table { font-size: 13px; display: block; overflow-x: auto; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 28px; }
  .problems-grid, .steps-grid, .features-grid { grid-template-columns: 1fr; }
  .docs-header h1 { font-size: 26px; }
  .section-nav { gap: 4px; }
  .section-nav a { font-size: 11px; padding: 5px 10px; }
}

/* ============================== ANIMATIONS ============================== */
.fade-in {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
