        :root {
            --bg: #07111f;
            --surface: #0d1729;
            --surface-2: #13233d;
            --text: #f5f7ff;
            --muted: #8ea2c6;
            --accent: #5eead4;
            --accent-2: #7c93ff;
            --border: rgba(255, 255, 255, 0.08);
            --shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
        }

        * {
            box-sizing: border-box;
        }

        html {
            scroll-behavior: smooth;
        }

        section[id],
        header[id] {
            scroll-margin-top: 90px;
        }

        body {
            margin: 0;
            font-family: Inter, "Segoe UI", Roboto, sans-serif;
            background: radial-gradient(circle at top left, var(--bg-glow), var(--bg) 55%);
            color: var(--text);
            line-height: 1.6;
        }

        a {
            color: inherit;
            text-decoration: none;
        }

        .container {
            width: min(1200px, calc(100% - 2rem));
            margin: 0 auto;
        }

        .topbar {
            position: sticky;
            top: 0;
            z-index: 10;
            backdrop-filter: blur(16px);
            background: var(--topbar-bg);
            border-bottom: 1px solid var(--border);
            transition: background 180ms ease, box-shadow 180ms ease, border-color 180ms ease, padding 180ms ease;
        }

        .topbar.scrolled {
            background: var(--topbar-bg);
            box-shadow: var(--shadow);
            border-color: var(--border);
        }

        .topbar .container {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 1rem 0;
        }

        .topbar.scrolled .container {
            padding: 0.8rem 0;
        }

        .brand {
            font-weight: 700;
            letter-spacing: 0.06em;
            text-transform: uppercase;
            color: var(--accent);
        }

        .nav {
            display: flex;
            gap: 0.7rem;
            color: var(--muted);
            flex-wrap: wrap;
        }

        .nav a {
            padding: 0.45rem 0.7rem;
            border-radius: 999px;
            border: 1px solid transparent;
            transition: all 160ms ease;
        }

        .nav a:hover,
        .nav a.active {
            color: var(--text);
            background: var(--nav-hover-bg);
            border-color: var(--nav-hover-border);
        }

        .docs-shell {
            display: grid;
            grid-template-columns: 260px minmax(0, 1fr);
            align-items: stretch;
            gap: 1rem;
            width: min(1400px, calc(100% - 2rem));
            margin: 1.2rem auto 3rem;
        }

        .sidebar {
            align-self: stretch;
            background: var(--sidebar-bg);
            border: 1px solid var(--border);
            border-radius: 1.1rem;
            padding: 1rem;
            height: auto;
            position: sticky;
            top: 88px;
        }

        .sidebar-title {
            font-size: 0.95rem;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            color: var(--accent);
            margin-bottom: 0.9rem;
            font-weight: 700;
        }

        .sidebar-nav {
            display: flex;
            flex-direction: column;
            gap: 0.45rem;
            margin-bottom: 1rem;
        }

        .sidebar-link,
        .category-btn {
            border: 1px solid transparent;
            background: transparent;
            color: var(--muted);
            text-align: left;
            padding: 0.7rem 0.8rem;
            border-radius: 0.8rem;
            cursor: pointer;
            font: inherit;
            transition: all 160ms ease;
        }

        .sidebar-link:hover,
        .category-btn:hover,
        .project-card:hover {
            background: var(--button-ghost-hover);
            color: var(--text);
        }

        .sidebar-link.active,
        .category-btn.active {
            background: rgba(94, 234, 212, 0.14);
            border-color: rgba(94, 234, 212, 0.35);
            color: var(--text);
        }

        .sidebar-card {
            padding: 0.9rem;
            border-radius: 0.9rem;
            background: linear-gradient(145deg, var(--surface-card-start), var(--surface-card-end));
            border: 1px solid var(--border);
        }

        .sidebar-card h3 {
            margin: 0 0 0.35rem;
            font-size: 1rem;
        }

        .sidebar-card p {
            margin: 0;
            color: var(--muted);
            font-size: 0.95rem;
        }

        .sidebar-divider {
            height: 1px;
            background: linear-gradient(90deg, transparent, rgba(94, 234, 212, 0.35), transparent);
            margin: 1rem 0;
        }

        .sidebar-links-stack {
            display: flex;
            flex-direction: column;
            gap: 0.45rem;
            margin-top: 0.6rem;
        }

        .sidebar-links-stack a {
            display: inline-flex;
            align-items: center;
            gap: 0.45rem;
            color: var(--muted);
            font-size: 0.95rem;
            transition: color 160ms ease;
        }

        .sidebar-links-stack a:hover {
            color: var(--text);
        }

        .sidebar-links-stack a.active {
            color: var(--text);
        }

        .sidebar-menu-link {
            border: 1px solid transparent;
            background: transparent;
            color: var(--muted);
            text-align: left;
            padding: 0.7rem 0.8rem;
            border-radius: 0.8rem;
            transition: all 160ms ease;
        }

        .sidebar-menu-link:hover {
            background: var(--button-ghost-hover);
            color: var(--text);
        }

        .sidebar-menu-link.active {
            background: var(--nav-hover-bg);
            border-color: var(--nav-hover-border);
            color: var(--text);
        }

        .sidebar-dropdown {
            margin-bottom: 1rem;
            border: 1px solid var(--border);
            border-radius: 0.9rem;
            background: var(--surface-card-end);
            padding: 0.55rem 0.65rem;
        }

        .sidebar-dropdown summary {
            cursor: pointer;
            color: var(--text);
            font-weight: 600;
            list-style: none;
        }

        .sidebar-dropdown summary::-webkit-details-marker {
            display: none;
        }

        .sidebar-project-links {
            margin-top: 0.6rem;
            max-height: 240px;
            overflow: auto;
            padding-right: 0.2rem;
        }

        .sidebar-project-links a.active {
            background: var(--nav-hover-bg);
            border: 1px solid var(--nav-hover-border);
            border-radius: 0.65rem;
            padding: 0.45rem 0.55rem;
        }

        .content {
            min-width: 0;
        }

        main {
            padding-top: 0;
        }

        .hero {
            padding: 0 0 1rem;
        }

        .docs-hero {
            padding-top: 0;
            position: relative;
            overflow: hidden;
            border-radius: 1.2rem;
            background: linear-gradient(145deg, var(--surface-card-start), var(--surface-card-end));
        }

        .docs-grid {
            grid-template-columns: 1.2fr 0.8fr;
            padding: 2.2rem;
        }

        .docs-container {
            width: 100%;
        }

        @media (max-width: 1024px) {
            .docs-shell {
                grid-template-columns: 1fr;
            }

            .sidebar {
                position: static;
            }

            .docs-grid {
                padding: 1.5rem;
            }
        }

        .hero-grid {
            display: grid;
            grid-template-columns: 1.2fr 0.8fr;
            gap: 2rem;
            align-items: center;
        }

        .eyebrow {
            display: inline-flex;
            padding: 0.4rem 0.7rem;
            border: 1px solid rgba(94, 234, 212, 0.3);
            border-radius: 999px;
            background: rgba(94, 234, 212, 0.08);
            color: var(--accent);
            font-size: 0.9rem;
            margin-bottom: 1rem;
        }

        h1 {
            font-size: clamp(2rem, 4vw, 3.3rem);
            line-height: 1.1;
            margin: 0 0 1rem;
        }

        .lead {
            font-size: 1.05rem;
            color: var(--muted);
            max-width: 650px;
            margin-bottom: 1.4rem;
        }

        .hero-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 0.85rem;
            margin-bottom: 1.4rem;
        }

        .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: 999px;
            padding: 0.8rem 1rem;
            font-weight: 600;
            transition: transform 160ms ease, background 160ms ease;
        }

        .btn:hover {
            transform: translateY(-1px);
        }

        .btn-primary {
            background: linear-gradient(90deg, var(--accent), var(--accent-2));
            color: #04111d;
        }

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

        .stats {
            display: flex;
            gap: 1rem;
            flex-wrap: wrap;
            color: var(--muted);
            font-size: 0.95rem;
        }

        .panel {
            background: linear-gradient(145deg, var(--surface-card-start), var(--surface-card-end));
            border: 1px solid var(--border);
            border-radius: 1.25rem;
            padding: 1.2rem;
            box-shadow: var(--shadow);
        }

        .panel h3 {
            margin-top: 0;
            margin-bottom: 0.8rem;
        }

        .panel ul {
            padding-left: 1rem;
            color: var(--muted);
        }

        .section {
            padding: 2rem 0 3rem;
        }

        .subsection {
            margin-top: 2.5rem;
        }

        .subsection .section-head {
            margin-bottom: 1rem;
        }

        .section-head {
            display: flex;
            justify-content: space-between;
            gap: 1rem;
            align-items: center;
            margin-bottom: 1rem;
            flex-wrap: wrap;
        }

        .section-head h2 {
            margin: 0;
            font-size: 1.3rem;
        }

        .footer {
            padding: 2rem 0 3rem;
            color: var(--muted);
            text-align: center;
        }

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

        }

        @media (max-width: 620px) {
            .hero {
                padding-top: 3rem;
            }
        }

        @media (max-width: 640px) {
            .topbar .container {
                flex-wrap: wrap;
                gap: 0.7rem;
            }

            .topbar-panel {
                width: 100%;
                justify-content: flex-end;
                flex-wrap: wrap;
            }

            .nav-toggle {
                display: inline-flex;
            }

            .nav {
                display: none;
                width: 100%;
                flex-direction: column;
                gap: 0.35rem;
                padding-top: 0.3rem;
                flex-wrap: nowrap;
            }

            .nav.is-open {
                display: flex;
            }

            .nav a {
                border-radius: 0.7rem;
                padding: 0.6rem 0.75rem;
            }
        }

        html[data-theme="light"] .eyebrow {
            background: rgba(15, 118, 110, 0.06);
            border-color: rgba(15, 118, 110, 0.22);
            color: var(--accent);
        }

        html[data-theme="light"] .sidebar-link.active,
        html[data-theme="light"] .category-btn.active {
            background: rgba(15, 118, 110, 0.12);
            border-color: rgba(15, 118, 110, 0.28);
        }

        html[data-theme="light"] .sidebar-divider {
            background: linear-gradient(90deg, transparent, rgba(15, 118, 110, 0.25), transparent);
        }