/* ═══════════════════════════════════════════════
   SpaceNode Docs — Cosmic Space Theme
   ═══════════════════════════════════════════════ */

/* ── Reset & Base ── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg-void: #05060f;
    --bg-nebula: #0a0c1a;
    --bg-card: #0f1225;
    --bg-card-hover: #141838;
    --bg-sidebar: #080a18;
    --bg-code: #0c0e1e;
    --border: #1a1f3d;
    --border-glow: #2d3470;
    --text: #c8cce0;
    --text-dim: #888eaf;
    --text-bright: #e8eaf6;
    --accent: #7c4dff;
    --accent-glow: #b388ff;
    --accent2: #00e5ff;
    --accent3: #ff6090;
    --success: #69f0ae;
    --warning: #ffd740;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --sidebar-w: 280px;
    --header-h: 80px;
    --radius: 10px;
    --glow: 0 0 30px rgba(124, 77, 255, .15);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-void);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    color: var(--accent-glow);
    text-decoration: none;
    transition: color .2s;
}

a:hover {
    color: var(--accent2);
}

::selection {
    background: rgba(124, 77, 255, 0.5);
    color: #fff;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-void);
}

::-webkit-scrollbar-thumb {
    background: var(--border-glow);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-glow);
    cursor: pointer;
}

/* ── Animated Star Background ── */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.stars::before,
.stars::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: #fff;
    box-shadow:
        25px 50px #fff, 100px 120px #fff, 200px 80px #fff, 350px 200px #fff,
        400px 50px #fff, 500px 300px #fff, 50px 350px #fff, 150px 450px #fff,
        600px 100px #fff, 700px 350px #fff, 800px 200px #fff, 250px 600px #fff,
        900px 50px #fff, 450px 500px #fff, 750px 450px #fff, 950px 300px #fff,
        1050px 150px #fff, 1150px 400px #fff, 300px 700px #fff, 550px 650px #fff,
        1100px 250px #fff, 1200px 500px #fff, 1300px 100px #fff, 650px 550px #fff,
        100px 800px #fff, 850px 600px #fff, 1000px 700px #fff, 450px 850px #fff,
        1250px 350px #fff, 180px 250px #fff, 750px 150px #fff, 50px 550px #fff,
        1350px 550px #fff, 1400px 200px #fff, 350px 950px #fff;
    animation: drift 120s linear infinite;
}

.stars::after {
    width: 1px;
    height: 1px;
    opacity: .5;
    box-shadow:
        75px 150px #fff, 300px 220px #fff, 500px 380px #fff, 700px 480px #fff,
        900px 120px #fff, 150px 530px #fff, 400px 670px #fff, 1050px 250px #fff,
        1200px 450px #fff, 650px 780px #fff, 250px 900px #fff, 850px 350px #fff,
        50px 700px #fff, 1150px 100px #fff, 475px 425px #fff, 975px 575px #fff;
    animation: drift 200s linear infinite reverse;
}

@keyframes drift {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-100vh);
    }
}

/* ── Nebula glow decoration ── */
.nebula {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
}

.nebula-1 {
    width: 500px;
    height: 500px;
    top: -150px;
    right: -100px;
    background: rgba(124, 77, 255, .08);
}

.nebula-2 {
    width: 400px;
    height: 400px;
    bottom: -100px;
    left: -80px;
    background: rgba(0, 229, 255, .06);
}

.nebula-3 {
    width: 300px;
    height: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 96, 144, .04);
}

/* ═══════════════════════════════════
   HEADER
   ═══════════════════════════════════ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(5, 6, 15, .85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 24px;
    z-index: 100;
}

.header-logo {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -.02em;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-bright);
    cursor: pointer;
}

.header-logo-img {
    height: 60px;
    width: 60px;
}

.header-logo span {
    background: white;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-nav {
    display: flex;
    gap: 28px;
    align-items: center;
}

.header-nav a {
    color: var(--text-dim);
    font-size: .9rem;
    font-weight: 500;
    transition: color .2s;
}

.header-nav a:hover,
.header-nav a.active {
    color: var(--text-bright);
}

.header-nav .btn-github {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 7px 16px;
    border-radius: 8px;
    font-size: .85rem;
    color: var(--text);
    transition: all .2s;
}

.header-nav .btn-github:hover {
    border-color: var(--accent);
    color: var(--accent-glow);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ═══════════════════════════════════
   LANDING PAGE
   ═══════════════════════════════════ */
.landing {
    position: relative;
    z-index: 1;
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
    position: relative;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 100px;
    border: 1px solid var(--border-glow);
    background: rgba(124, 77, 255, .08);
    font-size: .8rem;
    color: var(--accent-glow);
    margin-bottom: 28px;
    animation: fadeUp .8s ease;
}

.hero-badge .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--success);
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .4;
    }
}

.hero h1 {
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -.03em;
    margin-bottom: 20px;
    animation: fadeUp .8s ease .1s both;
}

.hero h1 .gradient {
    background: linear-gradient(135deg, var(--accent-glow), var(--accent2), var(--accent3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero .subtitle {
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    color: var(--text-dim);
    max-width: 620px;
    margin: 0 auto 40px;
    animation: fadeUp .8s ease .2s both;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
    animation: fadeUp .8s ease .3s both;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: 12px;
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .25s;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), #6200ea);
    color: #fff;
    box-shadow: 0 4px 25px rgba(124, 77, 255, .35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 35px rgba(124, 77, 255, .5);
    color: #fff;
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent-glow);
    transform: translateY(-2px);
}

/* Hero code preview */
.hero-code {
    margin-top: 60px;
    width: 100%;
    max-width: 700px;
    animation: fadeUp .8s ease .4s both;
}

/* Stats */
.stats-bar {
    display: flex;
    justify-content: center;
    gap: 50px;
    padding: 60px 24px;
    flex-wrap: wrap;
    animation: fadeUp .8s ease .5s both;
}

.stat {
    text-align: center;
}

.stat-value {
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #d7d0e4, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: .85rem;
    color: var(--text-dim);
    margin-top: 4px;
}

/* Feature cards */
.features {
    padding: 80px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.features-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 50px;
    color: var(--text-bright);
}

.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: var(--radius);
    padding: 28px;
    transition: all .3s;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: opacity .3s;
}

.feature-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-3px);
    box-shadow: var(--glow);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    font-size: 1.6rem;
    margin-bottom: 14px;
    display: block;
    color: var(--accent-glow);
    opacity: .85;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-bright);
    margin-bottom: 8px;
}

.feature-card p {
    font-size: .9rem;
    color: var(--text-dim);
    line-height: 1.6;
}

/* Comparison */
.comparison {
    padding: 80px 24px;
    max-width: 900px;
    margin: 0 auto;
}

.comparison h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 40px;
    color: var(--text-bright);
}

.comparison-subtitle {
    text-align: center;
    color: var(--text-dim);
    font-size: .85rem;
    margin-bottom: 48px;
}

.comparison-note {
    text-align: center;
    color: var(--text-dim);
    font-size: .8rem;
    margin-top: 32px;
}

/* Vertical bars chart */
.vbars {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 32px;
    max-width: 600px;
    margin: 0 auto;
    height: 280px;
}

.vbar-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex: 1;
    max-width: 120px;
    position: relative;
}

.vbar-value {
    font-size: .85rem;
    font-weight: 700;
    color: var(--text-bright);
    order: 1;
}

.vbar-track {
    width: 100%;
    height: 200px;
    border-radius: 8px 8px 4px 4px;
    background: rgba(255,255,255,.04);
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    order: 2;
}

.vbar-fill {
    width: 100%;
    height: var(--h);
    border-radius: 8px 8px 0 0;
    animation: barGrow .8s cubic-bezier(.22,1,.36,1) forwards;
    transform-origin: bottom;
}

@keyframes barGrow {
    from { transform: scaleY(0); opacity: 0; }
    to   { transform: scaleY(1); opacity: 1; }
}

.vbar-fill.raw {
    background: linear-gradient(180deg, rgba(255,255,255,.25), rgba(255,255,255,.18));
}

.vbar-fill.space {
    background: linear-gradient(180deg, var(--accent), #dddddd);
    box-shadow: 0 0 24px rgba(124,77,255,.4);
}

.vbar-fill.fastify {
    background: linear-gradient(180deg, #00e5ff9d, rgba(0,229,255,.18));
    opacity: 0.15;
}

.vbar-fill.express {
    background: linear-gradient(180deg, #ff609091, rgba(255,96,144,.18));
    opacity: 0.15;
}

.vbar-name {
    font-size: .8rem;
    font-weight: 600;
    color: var(--text-dim);
    order: 3;
}

.hero-col .vbar-name {
    color: white;
}

@media (max-width: 480px) {
    .vbars { gap: 16px; height: 220px; }
    .vbar-track { height: 150px; }
}

/* Stress Test Section */
.stress-section {
    padding: 80px 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.stress-section h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text-bright);
}

.stress-subtitle {
    text-align: center;
    color: var(--success);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 48px;
}

.stress-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.stress-card {
    background: rgba(255,255,255,0.03);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 28px 20px;
    text-align: center;
    transition: border-color .25s, transform .25s, background .25s, box-shadow .25s;
    box-shadow: 0 6px 18px rgba(2,6,23,0.6);
}

.stress-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    background: rgba(124,77,255,0.06);
    box-shadow: 0 10px 30px rgba(124,77,255,0.12);
}

.stress-icon {
    font-size: 1.6rem;
    margin-bottom: 10px;
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stress-icon svg {
    width: 28px;
    height: 28px;
    display: block;
}

.stress-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-bright);
    line-height: 1.1;
    margin-bottom: 6px;
}

.stress-label {
    font-size: .82rem;
    color: var(--text-dim);
    line-height: 1.4;
    margin-bottom: 8px;
}

.stress-detail {
    font-size: .72rem;
    color: var(--success);
    font-weight: 500;
    opacity: .85;
}

.stress-tests-summary {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px 32px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 32px;
}

.stress-test-row {
    font-size: .85rem;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 8px;
}

.stress-check {
    color: var(--success);
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

/* CTA */
.cta-section {
    padding: 100px 24px;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-bright);
}

.cta-section p {
    color: var(--text-dim);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ═══════════════════════════════════
   DOCS LAYOUT
   ═══════════════════════════════════ */
.docs-layout {
    display: flex;
    padding-top: var(--header-h);
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-w);
    position: fixed;
    top: var(--header-h);
    left: 0;
    bottom: 0;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border);
    overflow-y: auto;
    padding: 20px 0;
    z-index: 50;
    transition: transform .3s ease;
}

.sidebar-group {
    margin-bottom: 8px;
}

.sidebar-group-title {
    padding: 8px 20px;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text-dim);
}

.sidebar-link {
    display: block;
    padding: 7px 20px 7px 28px;
    font-size: .88rem;
    color: var(--text-dim);
    border-left: 2px solid transparent;
    transition: all .15s;
}

.sidebar-link:hover {
    color: var(--text);
    background: rgba(124, 77, 255, .05);
}

.sidebar-link.active {
    color: var(--accent-glow);
    border-left-color: var(--accent);
    background: rgba(124, 77, 255, .08);
}

/* Content */
.docs-content {
    flex: 1;
    margin-left: var(--sidebar-w);
    padding: 40px 50px 100px;
    max-width: 900px;
    min-width: 0;
}

/* ═══════════════════════════════════
   DOCS TYPOGRAPHY
   ═══════════════════════════════════ */
.docs-content h1 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-bright);
    margin-bottom: 12px;
    letter-spacing: -.02em;
}

.docs-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-bright);
    margin: 50px 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.docs-content h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-bright);
    margin: 30px 0 10px;
}

.docs-content p {
    margin-bottom: 16px;
}

.docs-content ul,
.docs-content ol {
    margin: 0 0 16px 20px;
}

.docs-content li {
    margin-bottom: 6px;
}

.docs-content strong {
    color: var(--text-bright);
}

/* Inline code */
.docs-content code:not(pre code) {
    background: var(--bg-code);
    border: 1px solid var(--border);
    padding: 2px 7px;
    border-radius: 5px;
    font-family: var(--font-mono);
    font-size: .85em;
    color: var(--accent-glow);
}

/* Code blocks */
pre {
    background: var(--bg-code);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    overflow-x: auto;
    margin: 0 0 20px;
    position: relative;
}

pre code {
    font-family: var(--font-mono);
    font-size: .85rem;
    line-height: 1.65;
    color: var(--text);
}

/* Syntax highlighting tokens */
.tok-kw {
    color: #c792ea;
}

/* keywords: import, export, const, async, await, function, return, if, for, throw */
.tok-fn {
    color: #82aaff;
}

/* function names */
.tok-str {
    color: #c3e88d;
}

/* strings */
.tok-num {
    color: #f78c6c;
}

/* numbers */
.tok-cm {
    color: #546e7a;
    font-style: italic;
}

/* comments */
.tok-op {
    color: #89ddff;
}

/* operators: =>, =, {, }, etc */
.tok-ty {
    color: #ffcb6b;
}

/* types / classes */
.tok-pr {
    color: #f07178;
}

/* properties */
.tok-pc {
    color: #89ddff;
}

/* punctuation */

/* Code label */
pre .code-label {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: .7rem;
    color: var(--text-dim);
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: .05em;
}

/* Info boxes */
.info-box,
.docs-note {
    border-radius: var(--radius);
    padding: 16px 20px;
    margin: 20px 0;
    font-size: .9rem;
    border-left: 3px solid;
}

.docs-note {
    background: rgba(124, 77, 255, .06);
    border-color: var(--accent);
}

.docs-note strong {
    display: block;
    margin-bottom: 4px;
    color: var(--accent-glow);
}

.info-box.tip {
    background: rgba(105, 240, 174, .06);
    border-color: var(--success);
}

.info-box.warn {
    background: rgba(255, 215, 64, .06);
    border-color: var(--warning);
}

.info-box.note {
    background: rgba(124, 77, 255, .06);
    border-color: var(--accent);
}

.info-box strong {
    display: block;
    margin-bottom: 4px;
}

.info-box.tip strong {
    color: var(--success);
}

.info-box.warn strong {
    color: var(--warning);
}

.info-box.note strong {
    color: var(--accent-glow);
}

/* ═══════════════════════════════════
   TABLES
   ═══════════════════════════════════ */

/* ── docs-table (thead/th style) ── */
.docs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .88rem;
    margin: 16px 0 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.docs-table th,
.docs-table td {
    padding: 11px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.docs-table thead th {
    background: var(--bg-card);
    color: var(--accent-glow);
    font-weight: 600;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    border-bottom: 2px solid var(--border-glow);
}

.docs-table tbody tr {
    transition: background .2s;
}

.docs-table tbody tr:hover {
    background: rgba(124, 77, 255, .04);
}

.docs-table tbody tr:nth-child(even) {
    background: rgba(15, 18, 37, .45);
}

.docs-table tbody tr:nth-child(even):hover {
    background: rgba(124, 77, 255, .06);
}

.docs-table tbody tr:last-child td {
    border-bottom: none;
}

.docs-table code {
    font-size: .82em;
}

/* ── info-table (key-value / label style) ── */
.info-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .88rem;
    margin: 16px 0 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.info-table tr {
    border-bottom: 1px solid var(--border);
    transition: background .2s;
}

.info-table tr:last-child {
    border-bottom: none;
}

.info-table tr:hover {
    background: rgba(124, 77, 255, .04);
}

.info-table tr:nth-child(even) {
    background: rgba(15, 18, 37, .45);
}

.info-table tr:nth-child(even):hover {
    background: rgba(124, 77, 255, .06);
}

.info-table td {
    padding: 11px 16px;
    vertical-align: top;
    border-bottom: 1px solid var(--border);
}

.info-table tr:last-child td {
    border-bottom: none;
}

.info-table td:first-child {
    white-space: nowrap;
    width: 1%;
    color: var(--text-bright);
    font-weight: 500;
}

.info-table td:first-child strong {
    color: var(--accent-glow);
    font-weight: 600;
}

.info-table thead th {
    background: var(--bg-card);
    color: var(--accent-glow);
    font-weight: 600;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: 11px 16px;
    text-align: left;
    border-bottom: 2px solid var(--border-glow);
}

.info-table th {
    padding: 11px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--accent-glow);
}

.info-table code {
    font-size: .82em;
}

/* Section divider */
.section-divider {
    border: none;
    height: 1px;
    background: var(--border);
    margin: 50px 0;
}

/* ── FAQ ── */
.faq-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 80px 24px 40px;
    position: relative;
    z-index: 1;
}

.faq-section h2 {
    text-align: center;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: var(--text-bright);
    margin-bottom: 40px;
}

.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color .25s;
}

.faq-item:hover {
    border-color: var(--border-glow);
}

.faq-item[open] {
    border-color: var(--accent);
}

.faq-item summary {
    padding: 18px 24px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-bright);
    font-size: .97rem;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    user-select: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.3rem;
    color: var(--accent);
    font-weight: 400;
    flex-shrink: 0;
    transition: transform .2s;
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-item p {
    padding: 0 24px 18px;
    color: var(--text);
    font-size: .9rem;
    line-height: 1.7;
}

.faq-item code {
    font-family: var(--font-mono);
    font-size: .85em;
    background: var(--bg-code);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--accent2);
}

/* ── Footer ── */
.footer {
    text-align: center;
    padding: 40px;
    color: var(--text-dim);
    font-size: .85rem;
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 1;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 16px;
}

.footer-social a {
    color: var(--text-dim);
    transition: color .25s, transform .25s;
    display: inline-flex;
}

.footer-social a:hover {
    color: var(--accent-glow);
    transform: translateY(-2px);
}

/* ═══════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════ */

/* -- Tablet & Mobile (≤900px) -- */
@media (max-width: 900px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .docs-content {
        margin-left: 0;
        padding: 30px 20px 80px;
    }

    .menu-toggle {
        display: block;
    }

    .header-logo-img {
        height: 44px;
        width: 44px;
    }

    /* Hide entire nav bar, show via burger */
    .header-nav {
        display: none;
    }

    .header-nav.open {
        display: none;
    }

    .stats-bar {
        gap: 24px 40px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .stress-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stress-tests-summary {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2.4rem;
    }

    .cta-section h2 {
        font-size: 2rem;
    }
}

/* -- Small mobile (≤600px) -- */
@media (max-width: 600px) {
    .hero {
        padding: 100px 16px 60px;
        min-height: auto;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero .subtitle {
        font-size: .95rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        max-width: 300px;
    }

    .hero-actions .btn {
        justify-content: center;
    }

    .hero-code {
        margin-top: 40px;
    }

    .hero-code pre {
        font-size: .75rem;
        padding: 14px;
    }

    .stats-bar {
        gap: 16px 24px;
        padding: 40px 16px;
    }

    .stat-value {
        font-size: 1.6rem;
    }

    .stat-label {
        font-size: .75rem;
    }

    .features {
        padding: 50px 16px;
    }

    .features-title {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }

    .feature-card {
        padding: 20px;
    }

    .comparison {
        padding: 50px 16px;
    }

    .comparison h2 {
        font-size: 1.5rem;
    }

    .vbars {
        gap: 16px;
        height: 220px;
    }

    .vbar-track {
        height: 150px;
    }

    .vbar-value {
        font-size: .75rem;
    }

    .vbar-name {
        font-size: .7rem;
    }

    .stress-section {
        padding: 50px 16px;
    }

    .stress-section h2 {
        font-size: 1.5rem;
    }

    .stress-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .stress-card {
        padding: 20px 16px;
    }

    .stress-value {
        font-size: 1.6rem;
    }

    .stress-tests-summary {
        padding: 16px;
    }

    .stress-test-row {
        font-size: .8rem;
    }

    .cta-section {
        padding: 60px 16px;
    }

    .cta-section h2 {
        font-size: 1.6rem;
    }

    .cta-section p {
        font-size: .95rem;
    }

    /* Docs pages */
    .docs-content {
        padding: 20px 14px 60px;
    }

    .docs-content h1 {
        font-size: 1.6rem;
    }

    .docs-content h2 {
        font-size: 1.2rem;
        margin: 36px 0 12px;
    }

    .docs-content h3 {
        font-size: 1.05rem;
    }

    pre {
        padding: 14px;
        border-radius: 8px;
        font-size: .78rem;
    }

    pre code {
        font-size: .78rem;
    }

    /* Tables scroll on mobile */
    .docs-table,
    .info-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
    }

    .docs-table th,
    .docs-table td,
    .info-table th,
    .info-table td {
        padding: 8px 10px;
        font-size: .8rem;
    }
}

/* -- Extra small (≤400px) -- */
@media (max-width: 400px) {
    .header {
        padding: 8px 12px;
    }

    .header-logo-img {
        height: 40px;
        width: 40px;
    }

    .header-logo {
        font-size: 1.1rem;
    }

    .hero h1 {
        font-size: 1.7rem;
    }

    .stats-bar {
        gap: 12px 16px;
    }

    .stat-value {
        font-size: 1.3rem;
    }
}

/* ═══════════════════════════════════
   FEATURED NAV LINK (golden)
   ═══════════════════════════════════ */
.header-nav .btn-featured {
    background: linear-gradient(135deg, #f6d365, #fda085);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    position: relative;
}

.header-nav .btn-featured::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #f6d365, #fda085);
    border-radius: 1px;
    opacity: 0;
    transition: opacity .2s;
}

.header-nav .btn-featured:hover::after {
    opacity: 1;
}

.header-nav .btn-featured:hover {
    -webkit-text-fill-color: transparent;
    background: linear-gradient(135deg, #fda085, #f6d365);
    -webkit-background-clip: text;
}

/* Featured sidebar link */
.sidebar-link.featured-link {
    color: #f6d365;
    font-weight: 600;
}

.sidebar-link.featured-link:hover {
    color: #fda085;
    background: rgba(246, 211, 101, .08);
}

.sidebar-link.featured-link.active {
    color: #fda085;
    border-left-color: #f6d365;
    background: rgba(246, 211, 101, .1);
}

/* ═══════════════════════════════════
   NPM BUTTON (simple secondary)
   ═══════════════════════════════════ */
/* npm button uses .btn-secondary — no extra styles needed */

/* ═══════════════════════════════════
   SHOW ME THE CODE
   ═══════════════════════════════════ */
.code-showcase {
    padding: 80px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.code-showcase h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-bright);
    margin-bottom: 8px;
}

.code-showcase-sub {
    text-align: center;
    color: var(--text-dim);
    font-size: 1.05rem;
    margin-bottom: 48px;
}

.code-showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.code-showcase-card {
    background: rgba(15, 18, 37, .85);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 0;
    overflow: hidden;
    transition: all .3s;
}

.code-showcase-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-3px);
    box-shadow: var(--glow);
}

.code-showcase-label {
    padding: 12px 20px;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--accent-glow);
    border-bottom: 1px solid var(--border);
    background: rgba(124, 77, 255, .06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.code-showcase-link {
    font-size: .75rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    color: var(--accent2);
    opacity: .7;
    transition: opacity .2s;
    white-space: nowrap;
}

.code-showcase-link:hover {
    opacity: 1;
}

.code-showcase-card pre {
    margin: 0;
    border: none;
    border-radius: 0;
    background: transparent;
}

.code-showcase-card pre code {
    font-size: .78rem;
    line-height: 1.55;
    padding: 18px 20px;
    display: block;
}

@media (max-width: 900px) {
    .code-showcase-grid {
        grid-template-columns: 1fr;
    }
}

/* ═══════════════════════════════════
   THREE WAYS TO BUILD (Glass Cards)
   ═══════════════════════════════════ */
.build-modes {
    padding: 80px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.build-modes h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-bright);
    margin-bottom: 8px;
}

.build-modes-sub {
    text-align: center;
    color: var(--text-dim);
    font-size: 1.05rem;
    margin-bottom: 48px;
}

.build-modes-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

/* Glass card base */
.glass-card {
    background: rgba(255, 255, 255, .03);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 18px;
    padding: 40px 36px;
    transition: all .35s;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    opacity: 0;
    transition: opacity .35s;
}

.glass-card:hover {
    transform: translateY(-5px);
}

.glass-card:hover::before {
    opacity: 1;
}

/* API variant — purple accent */
.glass-card--api {
    border-color: rgba(124, 77, 255, .15);
    box-shadow: 0 8px 32px rgba(124, 77, 255, .06), inset 0 1px 0 rgba(124, 77, 255, .1);
}

.glass-card--api:hover {
    border-color: rgba(124, 77, 255, .35);
    box-shadow: 0 16px 48px rgba(124, 77, 255, .12), inset 0 1px 0 rgba(124, 77, 255, .15);
}

.glass-card--api::before {
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.glass-card--api .glass-card-badge {
    color: var(--accent-glow);
    border-color: rgba(124, 77, 255, .3);
    background: rgba(124, 77, 255, .1);
}

/* SSR variant — teal accent */
.glass-card--ssr {
    border-color: rgba(0, 229, 255, .15);
    box-shadow: 0 8px 32px rgba(0, 229, 255, .06), inset 0 1px 0 rgba(0, 229, 255, .1);
}

.glass-card--ssr:hover {
    border-color: rgba(0, 229, 255, .35);
    box-shadow: 0 16px 48px rgba(0, 229, 255, .12), inset 0 1px 0 rgba(0, 229, 255, .15);
}

.glass-card--ssr::before {
    background: linear-gradient(90deg, transparent, var(--accent2), transparent);
}

.glass-card--ssr .glass-card-badge {
    color: var(--accent2);
    border-color: rgba(0, 229, 255, .3);
    background: rgba(0, 229, 255, .1);
}

/* Static variant — green accent */
.glass-card--static {
    border-color: rgba(105, 240, 174, .15);
    box-shadow: 0 8px 32px rgba(105, 240, 174, .06), inset 0 1px 0 rgba(105, 240, 174, .1);
}

.glass-card--static:hover {
    border-color: rgba(105, 240, 174, .35);
    box-shadow: 0 16px 48px rgba(105, 240, 174, .12), inset 0 1px 0 rgba(105, 240, 174, .15);
}

.glass-card--static::before {
    background: linear-gradient(90deg, transparent, var(--success), transparent);
}

.glass-card--static .glass-card-badge {
    color: var(--success);
    border-color: rgba(105, 240, 174, .3);
    background: rgba(105, 240, 174, .1);
}

.glass-card-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 100px;
    font-size: 1.8em;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    border: 1px solid;
    margin-bottom: 36px;
    align-self: center;
}

.glass-card h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-bright);
    margin-bottom: 12px;
}

.glass-card-desc {
    font-size: .92rem;
    color: var(--text-dim);
    line-height: 1.7;
    margin-bottom: 20px;
}

.glass-card-subtitle {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-bright);
    margin: 28px 0 10px;
    letter-spacing: .02em;
    opacity: .85;
}

.glass-card-subtitle:first-of-type {
    margin-top: 8px;
}

.glass-card pre {
    margin: 0 0 20px;
    border: none;
    border-radius: 10px;
    background: rgba(5, 6, 15, .6);
    border: 1px solid rgba(255, 255, 255, .04);
}

.glass-card pre code {
    font-size: .82rem;
    line-height: 1.6;
    padding: 20px 24px;
    display: block;
}

.glass-card-features {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
    flex: 1;
}

.glass-card-features li {
    font-size: .85rem;
    color: var(--text-dim);
    padding: 5px 0 5px 20px;
    position: relative;
    line-height: 1.5;
}

.glass-card-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
    font-size: .8rem;
}

.glass-card-footer {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: auto;
}

.btn-sm {
    padding: 8px 16px;
    font-size: .8rem;
}

@media (max-width: 900px) {
    .build-modes-grid {
        max-width: 100%;
    }
}

/* ═══════════════════════════════════
   NEXT.JS WITHOUT THE PAIN (SSR Pitch)
   ═══════════════════════════════════ */
.ssr-pitch {
    padding: 80px 24px 100px;
    max-width: 1000px;
    margin: 0 auto;
}

.ssr-pitch-content {
    background: rgba(0, 229, 255, .03);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 229, 255, .12);
    border-radius: 20px;
    padding: 48px 40px;
    position: relative;
    overflow: hidden;
}

.ssr-pitch-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent2), var(--accent), transparent);
}

.ssr-pitch-badge {
    display: inline-block;
    padding: 5px 16px;
    border-radius: 100px;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--accent2);
    border: 1px solid rgba(0, 229, 255, .3);
    background: rgba(0, 229, 255, .08);
    margin-bottom: 20px;
}

.ssr-pitch-content h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-bright);
    margin-bottom: 16px;
}

.ssr-pitch-lead {
    font-size: 1.08rem;
    color: var(--text);
    margin-bottom: 12px;
    line-height: 1.7;
}

.ssr-pitch-content > p {
    color: var(--text-dim);
    margin-bottom: 32px;
    line-height: 1.7;
}

.ssr-pitch-content > p strong {
    color: var(--text-bright);
}

/* Comparison columns */
.ssr-pitch-compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 36px;
}

.ssr-pitch-col {
    border-radius: 14px;
    padding: 24px;
}

.ssr-pitch-col h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.ssr-pitch-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ssr-pitch-col li {
    font-size: .85rem;
    line-height: 1.6;
    padding: 4px 0 4px 20px;
    position: relative;
}

.ssr-pitch-col li::before {
    position: absolute;
    left: 0;
    font-weight: 700;
    font-size: .85rem;
}

/* "Them" column — red crosses */
.ssr-pitch-col--them {
    background: rgba(255, 96, 144, .04);
    border: 1px solid rgba(255, 96, 144, .12);
}

.ssr-pitch-col--them h4 {
    color: var(--accent3);
}

.ssr-pitch-col--them li {
    color: var(--text-dim);
}

.ssr-pitch-col--them li::before {
    content: '✗';
    color: var(--accent3);
}

/* "Us" column — green checks */
.ssr-pitch-col--us {
    background: rgba(105, 240, 174, .04);
    border: 1px solid rgba(105, 240, 174, .12);
}

.ssr-pitch-col--us h4 {
    color: var(--success);
}

.ssr-pitch-col--us li {
    color: var(--text);
}

.ssr-pitch-col--us li::before {
    content: '✓';
    color: var(--success);
}

.ssr-pitch-code {
    margin-bottom: 28px;
}

.ssr-pitch-code pre {
    margin: 0;
    border-radius: 0 0 12px 12px;
}

.ssr-pitch-code .code-showcase-label {
    border-radius: 12px 12px 0 0;
}

.ssr-pitch-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

@media (max-width: 700px) {
    .ssr-pitch-content {
        padding: 32px 20px;
    }

    .ssr-pitch-content h2 {
        font-size: 1.6rem;
    }

    .ssr-pitch-compare {
        grid-template-columns: 1fr;
    }
}

/* ═══════════════════════════════════
   ECOSYSTEM
   ═══════════════════════════════════ */
.ecosystem {
    padding: 80px 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.ecosystem h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-bright);
    margin-bottom: 8px;
}

.ecosystem-sub {
    text-align: center;
    color: var(--text-dim);
    font-size: 1.05rem;
    margin-bottom: 48px;
}

.ecosystem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.ecosystem-item {
    background: rgba(255, 255, 255, .02);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 14px;
    padding: 24px;
    transition: all .3s;
}

.ecosystem-item:hover {
    border-color: var(--border-glow);
    transform: translateY(-2px);
    box-shadow: var(--glow);
}

.ecosystem-icon {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--accent-glow);
}

.ecosystem-item h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-bright);
    margin-bottom: 6px;
}

.ecosystem-item p {
    font-size: .85rem;
    color: var(--text-dim);
    line-height: 1.6;
}

.ecosystem-code {
    background: rgba(15, 18, 37, .85);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
}

.ecosystem-code pre {
    margin: 0;
    border: none;
    border-radius: 0;
    background: transparent;
}

.ecosystem-code pre code {
    font-size: .8rem;
    line-height: 1.55;
    padding: 20px 24px;
    display: block;
}

@media (max-width: 700px) {
    .ecosystem-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .ecosystem-grid {
        grid-template-columns: 1fr;
    }
}

/* ═══════════════════════════════════
   FEATURED SHOWCASE (after CTA)
   ═══════════════════════════════════ */
.featured-showcase {
    padding: 80px 24px 100px;
    max-width: 1100px;
    margin: 0 auto;
}

.featured-showcase-header {
    text-align: center;
    margin-bottom: 48px;
}

.featured-tag {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 100px;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .03em;
    color: #f6d365;
    border: 1px solid rgba(246, 211, 101, .25);
    background: rgba(246, 211, 101, .08);
    margin-bottom: 20px;
}

.featured-showcase-header h2 {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--text-bright);
    margin-bottom: 12px;
}

.featured-showcase-header p {
    color: var(--text-dim);
    font-size: 1.05rem;
    max-width: 560px;
    margin: 0 auto;
}

.featured-showcase-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.featured-card {
    background: rgba(246, 211, 101, .03);
    border: 1px solid rgba(246, 211, 101, .12);
    border-radius: 14px;
    padding: 28px;
    transition: all .3s;
    position: relative;
}

.featured-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #f6d365, transparent);
    opacity: 0;
    transition: opacity .3s;
}

.featured-card:hover {
    border-color: rgba(246, 211, 101, .3);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(246, 211, 101, .08);
}

.featured-card:hover::before {
    opacity: 1;
}

.featured-card-icon {
    font-size: 1.8rem;
    margin-bottom: 12px;
    color: #f6c365;
}

.featured-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-bright);
    margin-bottom: 8px;
}

.featured-card p {
    font-size: .88rem;
    color: var(--text-dim);
    line-height: 1.6;
}

.featured-showcase-bottom {
    text-align: center;
}

.featured-metrics {
    display: flex;
    justify-content: center;
    gap: 36px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.featured-metric {
    font-size: .9rem;
    color: var(--text-dim);
}

.featured-metric span {
    font-size: 1.8rem;
    font-weight: 800;
    display: block;
    background: linear-gradient(135deg, #f6d365, #fda085);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.featured-showcase-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 700px) {
    .featured-showcase-grid {
        grid-template-columns: 1fr;
    }

    .featured-showcase-header h2 {
        font-size: 1.8rem;
    }

    .featured-metrics {
        gap: 20px;
    }

    .featured-metric span {
        font-size: 1.4rem;
    }
}

/* ═══════════════════════════════════
   MOBILE SLIDE-IN MENU
   ═══════════════════════════════════ */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, .6);
    z-index: 199;
}

.mobile-menu-overlay.open {
    display: block;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    background: var(--bg-sidebar, #080a18);
    border-right: 1px solid var(--border);
    z-index: 200;
    transform: translateX(-100%);
    transition: transform .3s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.mobile-menu.open {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
}

.mobile-menu-header .header-logo {
    font-size: 1.1rem;
}

.mobile-menu-header .header-logo-img {
    height: 36px;
    width: 36px;
}

.mobile-menu-close {
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px 8px;
    transition: color .2s;
}

.mobile-menu-close:hover {
    color: var(--text-bright);
}

.mobile-menu-nav {
    display: flex;
    flex-direction: column;
    padding: 12px 0;
}

.mobile-menu-nav a {
    display: block;
    padding: 12px 24px;
    font-size: .95rem;
    color: var(--text-dim);
    border-bottom: 1px solid rgba(255, 255, 255, .04);
    transition: all .15s;
}

.mobile-menu-nav a:hover {
    color: var(--text-bright);
    background: rgba(124, 77, 255, .05);
}

.mobile-menu-nav .btn-featured {
    background: none;
    -webkit-text-fill-color: initial;
    color: #f6d365;
    font-weight: 600;
}

.mobile-menu-nav .btn-featured:hover {
    color: #fda085;
    background: rgba(246, 211, 101, .06);
}

/* Sidebar groups in mobile menu (for docs pages) */
.mobile-menu .sidebar-group {
    margin-bottom: 4px;
}

.mobile-menu .sidebar-group-title {
    padding: 12px 24px 6px;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text-dim);
}

.mobile-menu .sidebar-link {
    display: block;
    padding: 8px 24px 8px 32px;
    font-size: .88rem;
    color: var(--text-dim);
    border-left: none;
    border-bottom: none;
    transition: all .15s;
}

.mobile-menu .sidebar-link:hover {
    color: var(--text);
    background: rgba(124, 77, 255, .05);
}

.mobile-menu .sidebar-link.active {
    color: var(--accent-glow);
    background: rgba(124, 77, 255, .08);
}

body.menu-open {
    overflow: hidden;
}

/* ── Visibility helpers ── */
.hidden {
    display: none !important;
}

