:root {
  --bg: #0b0f17;
  --bg-alt: #0f1420;
  --bg-card: #141a28;
  --bg-code: #0a0e16;
  --border: #1f2735;
  --border-light: #2a3344;
  --text: #e6edf6;
  --text-dim: #94a3b8;
  --text-mute: #64748b;
  --brand: #22C55E;
  --brand-bright: #4ADE80;
  --brand-dim: #15803D;
  --ink: #111827;
  --gray: #6B7280;
  --gray-light: #E5E7EB;
  --accent: #38bdf8;
  --danger: #f87171;
  --warning: #fbbf24;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.5);
  --max-width: 1120px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Menlo, Consolas, monospace;
}

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

html { scroll-behavior: smooth; }

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

a { color: var(--accent); text-decoration: none; transition: color .15s; }
a:hover { color: #7dd3fc; }

code, pre { font-family: var(--font-mono); font-size: 0.9em; overflow-wrap: break-word; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* === Nav === */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11, 15, 23, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
  transition: border-color .2s, background .2s;
}
.nav.scrolled {
  background: rgba(11, 15, 23, 0.95);
  border-bottom-color: var(--border-light);
}
.nav-links a.current { color: var(--text); }
.nav-links a.current::after {
  content: '';
  display: block;
  height: 2px;
  background: var(--brand-bright);
  border-radius: 1px;
  margin-top: 4px;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav-logo { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 1.05rem; }
.nav-logo:hover { color: var(--brand-bright); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--text-dim); font-size: 0.95rem; font-weight: 500; }
.nav-links a:hover { color: var(--text); }
.nav-gh { display: flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--border-light); border-radius: var(--radius-sm); transition: all .15s; }
.nav-gh:hover { border-color: var(--text-dim); background: var(--bg-card); color: var(--text); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 4px; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 1px; transition: .2s; }
.lang-toggle { background: none; border: 1px solid var(--border-light); color: var(--text-dim); padding: 6px 12px; border-radius: var(--radius-sm); font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: all .15s; white-space: nowrap; }
.lang-toggle:hover { border-color: var(--brand); color: var(--brand-bright); }

/* === Buttons === */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: var(--radius); font-weight: 600; font-size: 0.95rem; cursor: pointer; transition: all .18s; border: 1px solid transparent; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-bright); transform: translateY(-1px); box-shadow: 0 6px 24px rgba(34, 197, 94, 0.35); }
.btn-ghost { color: var(--text); border-color: var(--border-light); background: var(--bg-card); }
.btn-ghost:hover { border-color: var(--text-dim); background: var(--bg-alt); color: var(--text); }

.copy-btn { display: inline-flex; align-items: center; justify-content: center; background: transparent; border: 0; color: var(--text-dim); cursor: pointer; padding: 6px; border-radius: 4px; transition: .15s; }
.copy-btn:hover { color: var(--text); background: var(--border); }
.copy-btn.copied { color: var(--brand-bright); }

/* === Sections === */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-title { font-size: clamp(1.8rem, 3.5vw, 2.4rem); font-weight: 700; letter-spacing: -0.01em; margin-bottom: 14px; text-align: center; }
.section-lead { color: var(--text-dim); font-size: 1.05rem; max-width: 640px; margin: 0 auto 48px; text-align: center; }

/* === Code block === */
.code-block { background: var(--bg-code); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.code-header { display: flex; align-items: center; justify-content: space-between; padding: 8px 14px; background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.code-lang { font-size: 0.78rem; color: var(--text-mute); text-transform: uppercase; letter-spacing: 0.05em; font-family: var(--font-mono); }
.code-block pre { padding: 14px 16px; overflow-x: auto; }
.code-block code { color: var(--text); font-size: 0.88rem; line-height: 1.6; white-space: pre-wrap; word-break: break-word; overflow-wrap: anywhere; }

/* === Command tabs + tables === */
.cmd-tabs { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 28px; }
.cmd-tab {
  padding: 8px 16px; border: 1px solid var(--border); background: var(--bg-card);
  color: var(--text-dim); border-radius: 999px; cursor: pointer; font-size: 0.88rem;
  font-family: var(--font); font-weight: 500; transition: .15s;
}
.cmd-tab:hover { color: var(--text); border-color: var(--border-light); }
.cmd-tab.active { background: var(--brand); color: #fff; border-color: var(--brand); }

.cmd-panel { display: none; }
.cmd-panel.active { display: block; }
.cmd-table { width: 100%; border-collapse: collapse; max-width: 880px; margin: 0 auto; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); display: block; overflow-x: auto; }
.cmd-table th, .cmd-table td { padding: 12px 18px; text-align: left; border-bottom: 1px solid var(--border); }
.cmd-table th { background: var(--bg-alt); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-mute); font-weight: 600; }
.cmd-table tr:last-child td { border-bottom: 0; }
.cmd-table td { color: var(--text-dim); font-size: 0.92rem; }
.cmd-table td code { color: var(--brand-bright); font-size: 0.88em; background: var(--bg-code); padding: 2px 6px; border-radius: 4px; }

/* === Architecture === */
.arch-diagram { background: var(--bg-code); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; overflow-x: auto; margin: 24px 0 36px; max-width: 760px; }
.arch-diagram pre { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-dim); line-height: 1.4; }
.arch-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; max-width: 980px; margin: 0 auto; }
.arch-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.arch-card h3 { font-size: 1rem; margin-bottom: 8px; color: var(--brand-bright); }
.arch-card p { color: var(--text-dim); font-size: 0.9rem; }
.arch-card code { background: var(--bg-code); padding: 1px 6px; border-radius: 4px; color: var(--text); font-size: 0.85em; }

/* === Comparison table === */
.table-wrap { max-width: 880px; margin: 0 auto; overflow-x: auto; }
.cmp-table { width: 100%; border-collapse: collapse; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.cmp-table th, .cmp-table td { padding: 12px 18px; text-align: left; border-bottom: 1px solid var(--border); }
.cmp-table th { background: var(--bg-alt); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-mute); font-weight: 600; }
.cmp-table th:nth-child(2) { color: #f97316; }
.cmp-table th:nth-child(3) { color: var(--brand-bright); }
.cmp-table tr:last-child td { border-bottom: 0; }
.cmp-table td { color: var(--text-dim); font-size: 0.92rem; }
.cmp-table td:nth-child(3) { color: var(--text); }
.cmp-table code { color: var(--brand-bright); background: var(--bg-code); padding: 2px 6px; border-radius: 4px; font-size: 0.88em; }

/* === Roadmap === */
.roadmap { max-width: 760px; margin: 0 auto; position: relative; }
.roadmap::before { content: ''; position: absolute; left: 60px; top: 12px; bottom: 12px; width: 2px; background: var(--border); }
.roadmap-item { display: flex; gap: 24px; padding: 16px 0; position: relative; }
.roadmap-version {
  flex-shrink: 0; width: 60px; height: 60px; border-radius: 50%;
  background: var(--bg-card); border: 2px solid var(--brand); color: var(--brand-bright);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.82rem; font-family: var(--font-mono); z-index: 2; position: relative;
}
.roadmap-version-long { border-color: var(--accent); color: var(--accent); font-size: 0.62rem; padding: 0 4px; text-align: center; }
.roadmap-body { flex: 1; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; min-width: 0; }
.roadmap-body h3 { font-size: 1rem; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.roadmap-body p { color: var(--text-dim); font-size: 0.9rem; }
.roadmap-body ul { color: var(--text-dim); font-size: 0.88rem; margin: 8px 0 0 18px; }
.roadmap-body li { margin-bottom: 4px; }
.roadmap-body code { color: var(--brand-bright); background: var(--bg-code); padding: 1px 6px; border-radius: 4px; font-size: 0.85em; }
.roadmap-body .roadmap-meta { display: block; font-size: 0.78rem; color: var(--text-mute); margin-bottom: 6px; font-family: var(--font-mono); }
.roadmap-item-long .roadmap-body { border-style: dashed; }
.badge { display: inline-block; font-size: 0.68rem; font-weight: 700; padding: 2px 8px; border-radius: 4px; letter-spacing: 0.03em; text-transform: uppercase; }
.badge-must { background: rgba(239, 68, 68, 0.12); color: #DC2626; }
.badge-core { background: rgba(59, 130, 246, 0.12); color: var(--brand); }
.badge-marginal { background: rgba(100, 116, 139, 0.12); color: var(--text-mute); }
.badge-version { background: rgba(34, 197, 94, 0.12); color: var(--brand); text-transform: none; }
.ver-badge { display: inline-block; font-size: 0.6rem; font-weight: 700; padding: 1px 6px; border-radius: 4px; background: rgba(34, 197, 94, 0.12); color: var(--brand); text-transform: none; margin-left: 4px; vertical-align: middle; }

/* === FAQ === */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; }
.faq-item summary { padding: 16px 20px; cursor: pointer; font-weight: 600; font-size: 0.98rem; color: var(--text); list-style: none; display: flex; align-items: center; justify-content: space-between; transition: .15s; }
.faq-item summary::after { content: '+'; font-size: 1.3rem; color: var(--text-mute); transition: .2s; flex-shrink: 0; }
.faq-item[open] summary::after { transform: rotate(45deg); color: var(--brand-bright); }
.faq-item summary:hover { color: var(--brand-bright); }
.faq-item[open] summary { border-bottom: 1px solid var(--border); }
.faq-item p { padding: 14px 20px; color: var(--text-dim); font-size: 0.92rem; line-height: 1.6; }
.faq-item p code { color: var(--brand-bright); background: var(--bg-code); padding: 1px 6px; border-radius: 4px; font-size: 0.85em; }

/* === Environment & Configuration === */
.env-group { max-width: 880px; margin: 0 auto 36px; }
.env-group-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 8px; }
.env-group-title-icon { font-size: 1.1rem; }
.env-table { width: 100%; border-collapse: collapse; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); display: block; overflow-x: auto; }
.env-table th, .env-table td { padding: 10px 16px; text-align: left; border-bottom: 1px solid var(--border); }
.env-table th { background: var(--bg-alt); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-mute); font-weight: 600; }
.env-table tr:last-child td { border-bottom: 0; }
.env-table td { font-size: 0.88rem; color: var(--text-dim); vertical-align: top; }
.env-table td code { color: var(--brand-bright); font-family: var(--font-mono); font-size: 0.84em; background: var(--bg-code); padding: 2px 6px; border-radius: 4px; white-space: nowrap; }
.env-table .env-desc { color: var(--text-dim); }
.env-table .env-example { color: var(--text-mute); font-family: var(--font-mono); font-size: 0.82rem; }
.env-note { max-width: 880px; margin: 20px auto 0; padding: 14px 18px; background: rgba(56, 189, 248, 0.06); border: 1px solid rgba(56, 189, 248, 0.2); border-radius: var(--radius); font-size: 0.88rem; color: var(--text-dim); }
.env-note strong { color: var(--accent); }
.env-note code { color: var(--brand-bright); background: var(--bg-code); padding: 1px 6px; border-radius: 4px; font-size: 0.85em; }

/* === Example cards (used across docs) === */
.example-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 24px; max-width: 1080px; margin: 0 auto; }
.example-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: .15s; }
.example-card:hover { border-color: var(--brand-dim); }
.example-header { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 10px; }
.example-header-icon { width: 32px; height: 32px; border-radius: 8px; background: rgba(34, 197, 94, 0.12); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.example-header h3 { font-size: 0.98rem; margin: 0; }
.example-body { padding: 0; }
.example-body .code-block { border: 0; border-radius: 0; }
.example-body .code-block pre { padding: 14px 18px; }

/* === Agent flow (used in docs) === */
.agent-flow { max-width: 880px; margin: 0 auto; display: flex; flex-direction: column; gap: 0; }
.agent-step { display: flex; gap: 20px; align-items: flex-start; position: relative; padding-bottom: 32px; }
.agent-step:last-child { padding-bottom: 0; }
.agent-step:not(:last-child)::before { content: ''; position: absolute; left: 23px; top: 48px; bottom: 0; width: 2px; background: var(--border); }
.agent-step-num { width: 48px; height: 48px; border-radius: 50%; background: var(--bg-card); border: 2px solid var(--brand); color: var(--brand-bright); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.1rem; flex-shrink: 0; z-index: 2; position: relative; }
.agent-step-body { flex: 1; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; }
.agent-step-body h3 { font-size: 1rem; margin-bottom: 6px; }
.agent-step-body p { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 10px; }
.agent-step-body .code-block { margin-top: 8px; }
.agent-step-body .code-block pre { padding: 10px 14px; }
.agent-step-body .code-block code { font-size: 0.82rem; }

/* === Page header (inner pages) === */
.page-header {
  padding: 88px 0 48px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
  position: relative;
  overflow: hidden;
}
.page-header .container { position: relative; z-index: 2; }
.page-header::before {
  content: '';
  position: absolute; top: -180px; left: 50%; transform: translateX(-50%);
  width: 720px; height: 480px; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(34, 197, 94, 0.08) 0%, rgba(34, 197, 94, 0) 60%);
  pointer-events: none; z-index: 1;
}
.page-header h1 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 12px; }
.page-header p { color: var(--text-dim); font-size: 1.1rem; max-width: 640px; }

/* === Breadcrumb === */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--text-mute); margin-bottom: 18px; flex-wrap: wrap; }
.breadcrumb a { color: var(--text-dim); }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb-sep { color: var(--text-mute); }
.breadcrumb-current { color: var(--text); }

/* === Docs layout (sidebar + content) === */
.docs-layout { display: grid; grid-template-columns: 240px 1fr; gap: 48px; max-width: var(--max-width); margin: 0 auto; padding: 48px 24px 80px; }
.docs-sidebar { position: sticky; top: 88px; align-self: start; max-height: calc(100vh - 100px); overflow-y: auto; }
.docs-sidebar h4 { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-mute); margin: 18px 0 8px; font-weight: 700; }
.docs-sidebar h4:first-child { margin-top: 0; }
.docs-sidebar a { display: block; padding: 6px 10px; border-radius: var(--radius-sm); color: var(--text-dim); font-size: 0.9rem; border-left: 2px solid transparent; margin-left: -2px; }
.docs-sidebar a:hover { color: var(--text); background: var(--bg-card); }
.docs-sidebar a.current { color: var(--brand-bright); border-left-color: var(--brand); background: rgba(34, 197, 94, 0.06); }
.docs-content { min-width: 0; }
.docs-content h2 { font-size: 1.5rem; font-weight: 700; margin: 40px 0 12px; letter-spacing: -0.01em; padding-top: 8px; border-top: 1px solid var(--border); }
.docs-content h2:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.docs-content h3 { font-size: 1.1rem; margin: 24px 0 8px; }
.docs-content p { color: var(--text-dim); margin-bottom: 14px; }
.docs-content p code, .docs-content li code { color: var(--brand-bright); background: var(--bg-code); padding: 1px 6px; border-radius: 4px; font-size: 0.85em; }
.docs-content ul, .docs-content ol { color: var(--text-dim); margin: 0 0 16px 22px; }
.docs-content li { margin-bottom: 6px; }
.docs-content .code-block { margin: 14px 0 22px; }
.docs-content .cmd-table, .docs-content .env-table, .docs-content .cmp-table { max-width: 100%; margin: 14px 0 22px; }

/* === Doc card (index grids) === */
.doc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; max-width: 980px; margin: 0 auto; }
.doc-card { display: block; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; transition: .15s; color: var(--text); }
.doc-card:hover { border-color: var(--brand-dim); transform: translateY(-2px); }
.doc-card-icon { font-size: 1.5rem; margin-bottom: 12px; }
.doc-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.doc-card p { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 14px; line-height: 1.5; }
.doc-card-arrow { color: var(--brand-bright); font-size: 0.88rem; font-weight: 600; }

/* === Alert === */
.alert { padding: 14px 18px; border-radius: var(--radius); font-size: 0.9rem; color: var(--text-dim); margin: 16px 0; border: 1px solid; display: flex; gap: 10px; align-items: flex-start; line-height: 1.55; }
.alert strong { color: var(--text); }
.alert code { background: var(--bg-code); padding: 1px 6px; border-radius: 4px; font-size: 0.85em; color: var(--brand-bright); }
.alert-icon { flex-shrink: 0; font-weight: 700; }
.alert-info { background: rgba(56, 189, 248, 0.06); border-color: rgba(56, 189, 248, 0.25); }
.alert-info .alert-icon, .alert-info strong { color: var(--accent); }
.alert-warning { background: rgba(251, 191, 36, 0.06); border-color: rgba(251, 191, 36, 0.25); }
.alert-warning .alert-icon, .alert-warning strong { color: var(--warning); }
.alert-danger { background: rgba(248, 113, 113, 0.06); border-color: rgba(248, 113, 113, 0.3); }
.alert-danger .alert-icon, .alert-danger strong { color: var(--danger); }

/* === Matrix table === */
.matrix-filter { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.matrix-filter-group { margin-bottom: 16px; }
.matrix-filter-label { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-mute); font-weight: 700; margin-bottom: 8px; display: block; }
.matrix-btn { padding: 6px 14px; border: 1px solid var(--border); background: var(--bg-card); color: var(--text-dim); border-radius: 999px; cursor: pointer; font-size: 0.82rem; font-family: var(--font); font-weight: 500; transition: .15s; }
.matrix-btn:hover { color: var(--text); border-color: var(--border-light); }
.matrix-btn.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.matrix-legend { display: flex; flex-wrap: wrap; gap: 18px; margin: 0 0 20px; padding: 12px 16px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); font-size: 0.82rem; color: var(--text-dim); }
.matrix-legend span { display: inline-flex; align-items: center; gap: 6px; }
.matrix-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-card); }
.matrix-table { width: 100%; border-collapse: collapse; min-width: 880px; }
.matrix-table th, .matrix-table td { padding: 9px 12px; text-align: center; border-bottom: 1px solid var(--border); border-right: 1px solid var(--border); white-space: nowrap; }
.matrix-table th:first-child, .matrix-table td:first-child { text-align: left; position: sticky; left: 0; background: var(--bg-card); z-index: 2; }
.matrix-table th { background: var(--bg-alt); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-mute); font-weight: 600; }
.matrix-table th:first-child { background: var(--bg-alt); }
.matrix-table tbody tr.group-row td { background: var(--bg-alt); color: var(--brand-bright); font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; }
.matrix-table tbody tr.group-row td:first-child { background: var(--bg-alt); }
.matrix-table td { color: var(--text-dim); font-size: 0.86rem; }
.matrix-table td code { color: var(--brand-bright); background: var(--bg-code); padding: 1px 6px; border-radius: 4px; font-size: 0.82em; }
.matrix-table tr.hidden { display: none; }
.matrix-table tr.dim td { opacity: 0.32; }
.matrix-cell-yes { color: var(--brand-bright); font-weight: 600; }
.matrix-cell-no { color: var(--text-mute); }
.matrix-cell-partial { color: var(--warning); font-weight: 600; }
.matrix-cell-planned { color: var(--accent); font-weight: 600; }
.matrix-status-released { color: var(--brand-bright); }
.matrix-status-planned { color: var(--accent); }

/* === Timeline (compact roadmap) === */
.timeline { max-width: 820px; margin: 0 auto; position: relative; }
.timeline::before { content: ''; position: absolute; left: 52px; top: 12px; bottom: 12px; width: 2px; background: var(--border); }
.timeline-item { display: flex; gap: 20px; padding: 12px 0; position: relative; }
.timeline-version { flex-shrink: 0; width: 52px; height: 52px; border-radius: 50%; background: var(--bg-card); border: 2px solid var(--border-light); color: var(--text-dim); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.74rem; font-family: var(--font-mono); z-index: 2; position: relative; }
.timeline-item.done .timeline-version { border-color: var(--brand); color: var(--brand-bright); }
.timeline-item.planned .timeline-version { border-color: var(--accent); color: var(--accent); }
.timeline-body { flex: 1; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 18px; min-width: 0; }
.timeline-body h3 { font-size: 0.98rem; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.timeline-body p { color: var(--text-dim); font-size: 0.86rem; margin: 0; }
.timeline-body code { color: var(--brand-bright); background: var(--bg-code); padding: 1px 6px; border-radius: 4px; font-size: 0.84em; }

/* === Test page groups === */
.testpage-group { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin: 0 auto 28px; max-width: 880px; }
.testpage-group h3 { font-size: 1.05rem; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.testpage-list { list-style: none; margin: 0; padding: 0; }
.testpage-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.testpage-item:last-child { border-bottom: 0; }
.testpage-main { flex: 1; min-width: 200px; }
.testpage-name { color: var(--text); font-weight: 600; font-size: 0.95rem; }
.testpage-name:hover { color: var(--brand-bright); }
.testpage-desc { color: var(--text-mute); font-size: 0.82rem; margin-top: 2px; }
.testpage-cmd { display: inline-flex; align-items: center; gap: 6px; background: var(--bg-code); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 4px 8px 4px 10px; font-family: var(--font-mono); font-size: 0.76rem; color: var(--text-dim); }

/* === Footer === */
.footer { padding: 40px 0; border-top: 1px solid var(--border); background: var(--bg-alt); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--text); }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--text-dim); font-size: 0.9rem; }
.footer-links a:hover { color: var(--text); }
.footer-copy { color: var(--text-mute); font-size: 0.85rem; }
.footer-copy a { color: var(--text-dim); }

/* === Responsive === */
@media (max-width: 900px) {
  .docs-layout { grid-template-columns: 1fr; gap: 0; padding: 32px 24px 64px; }
  .docs-sidebar { position: static; max-height: none; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
  .docs-sidebar h4 { margin-top: 12px; }
}
@media (max-width: 768px) {
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; background: var(--bg-alt); border-bottom: 1px solid var(--border); padding: 16px 24px; gap: 4px; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 0; border-bottom: 1px solid var(--border); width: 100%; }
  .nav-links a:last-child { border-bottom: 0; }
  .nav-gh { border: 0; padding: 10px 0; }
  .lang-toggle { border: 0; padding: 10px 0; text-align: left; width: 100%; }
  .nav-toggle { display: flex; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .section { padding: 60px 0; }
  .section-lead { margin-bottom: 32px; }
  .roadmap::before { left: 30px; }
  .roadmap-version { width: 60px; height: 60px; flex-shrink: 0; }
  .roadmap-item { gap: 16px; }
  .timeline::before { left: 26px; }
  .timeline-version { width: 52px; }
  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
}
