        :root {
            --bg: #0b0f17;
            --panel: #101827;
            --card: #121c2e;
            --muted: #93a4bf;
            --text: #e7eefc;
            --accent: #7c5cff;
            --accent2: #2ee9a6;
            --line: rgba(255, 255, 255, .10);
            --shadow: 0 18px 60px rgba(0, 0, 0, .45);
            --radius: 18px;
            --radius2: 26px;
            --max: 1100px;
        }

        * {
            box-sizing: border-box
        }

        html,
        body {
            height: 100%
        }

        body {
            margin: 0;
            font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
            color: var(--text);
            background:
                radial-gradient(1100px 700px at 20% 10%, rgba(124, 92, 255, .23), transparent 60%),
                radial-gradient(900px 700px at 90% 30%, rgba(46, 233, 166, .18), transparent 60%),
                radial-gradient(700px 700px at 50% 90%, rgba(255, 255, 255, .05), transparent 60%),
                var(--bg);
            overflow-x: hidden;
            scroll-behavior: smooth;
        }

        /* Floating background particles (lightweight) */
        .fx-dots {
            position: fixed;
            inset: 0;
            pointer-events: none;
            z-index: 0;
            background-image:
                radial-gradient(rgba(255, 255, 255, .10) 1px, transparent 1px);
            background-size: 24px 24px;
            mask-image: radial-gradient(circle at 50% 20%, #000 0, #000 45%, transparent 75%);
            opacity: .35;
            animation: drift 18s linear infinite;
        }

        @keyframes drift {
            from {
                transform: translate3d(0, 0, 0)
            }

            to {
                transform: translate3d(-48px, 36px, 0)
            }
        }

        /* Layout */
        .wrap {
            position: relative;
            z-index: 1;
        }

        header {
            position: sticky;
            top: 0;
            z-index: 20;
            backdrop-filter: blur(10px);
            background: linear-gradient(to bottom, rgba(11, 15, 23, .88), rgba(11, 15, 23, .55));
            border-bottom: 1px solid var(--line);
        }

        .nav {
            max-width: var(--max);
            margin: 0 auto;
            padding: 14px 18px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
        }

        .brand {
            display: flex;
            align-items: center;
            gap: 10px;
            min-width: 220px;
        }

        .logo {
            width: 38px;
            height: 38px;
            border-radius: 14px;
            background: linear-gradient(135deg, var(--accent), rgba(46, 233, 166, .9));
            box-shadow: 0 10px 30px rgba(124, 92, 255, .28);
            position: relative;
        }

        .logo:after {
            content: "";
            position: absolute;
            inset: 9px;
            border-radius: 12px;
            border: 1px solid rgba(255, 255, 255, .22);
            transform: rotate(8deg);
        }

        .brand h1 {
            font-size: 14px;
            margin: 0;
            letter-spacing: .3px;
        }

        .brand p {
            margin: 0;
            font-size: 12px;
            color: var(--muted);
        }

        .navlinks {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
            justify-content: flex-end;
        }

        .navlinks a {
            color: var(--text);
            text-decoration: none;
            font-size: 12px;
            padding: 9px 11px;
            border: 1px solid var(--line);
            border-radius: 999px;
            background: rgba(255, 255, 255, .03);
            transition: transform .2s ease, background .2s ease, border-color .2s ease;
        }

        .navlinks a:hover {
            transform: translateY(-2px);
            border-color: rgba(124, 92, 255, .40);
            background: rgba(124, 92, 255, .10);
        }

        .navlinks a.active {
            border-color: rgba(46, 233, 166, .55);
            background: rgba(46, 233, 166, .12);
        }

        .nav .cta {
            display: flex;
            gap: 10px;
            align-items: center;
        }

        .btn {
            border: none;
            cursor: pointer;
            color: var(--text);
            font-weight: 600;
            padding: 10px 12px;
            border-radius: 12px;
            background: rgba(255, 255, 255, .06);
            border: 1px solid var(--line);
            transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
            font-size: 12px;
        }

        .btn:hover {
            transform: translateY(-2px);
            border-color: rgba(255, 255, 255, .18)
        }

        .btn.primary {
            background: linear-gradient(135deg, var(--accent), rgba(46, 233, 166, .85));
            border-color: transparent;
            box-shadow: 0 18px 50px rgba(124, 92, 255, .18);
        }

        .btn.primary:hover {
            box-shadow: 0 22px 60px rgba(124, 92, 255, .24)
        }

        main {
            max-width: var(--max);
            margin: 0 auto;
            padding: 22px 18px 64px;
        }

        /* Page sections (like "pages") */
        .page {
            border: 1px solid var(--line);
            background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .02));
            border-radius: var(--radius2);
            box-shadow: var(--shadow);
            padding: 26px;
            margin: 18px 0;
            position: relative;
            overflow: hidden;
        }

        .page:before {
            content: "";
            position: absolute;
            inset: -120px -80px auto auto;
            width: 260px;
            height: 260px;
            background: radial-gradient(circle at 30% 30%, rgba(46, 233, 166, .22), transparent 60%);
            transform: rotate(10deg);
            pointer-events: none;
        }

        .page:after {
            content: "";
            position: absolute;
            inset: auto auto -140px -140px;
            width: 320px;
            height: 320px;
            background: radial-gradient(circle at 30% 30%, rgba(124, 92, 255, .22), transparent 60%);
            transform: rotate(-12deg);
            pointer-events: none;
        }

        .kicker {
            font-size: 12px;
            color: var(--muted);
            letter-spacing: .14em;
            text-transform: uppercase;
            margin: 0 0 8px;
        }

        .title {
            margin: 0 0 10px;
            font-size: 28px;
            line-height: 1.15;
        }

        .subtitle {
            margin: 0 0 18px;
            color: var(--muted);
            max-width: 70ch;
        }

        .grid {
            display: grid;
            gap: 14px;
        }

        .grid.two {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }

        .grid.three {
            grid-template-columns: repeat(3, minmax(0, 1fr));
        }

        @media (max-width: 900px) {

            .grid.two,
            .grid.three {
                grid-template-columns: 1fr
            }

            .brand {
                min-width: auto
            }

            .navlinks {
                display: none
            }
        }

        .card {
            border: 1px solid var(--line);
            background: rgba(16, 24, 39, .55);
            border-radius: var(--radius);
            padding: 16px;
            position: relative;
            overflow: hidden;
            transition: transform .2s ease, border-color .2s ease, background .2s ease;
        }

        .card:hover {
            transform: translateY(-3px);
            border-color: rgba(255, 255, 255, .18);
            background: rgba(16, 24, 39, .70);
        }

        .card h3 {
            margin: 0 0 6px;
            font-size: 14px
        }

        .card p {
            margin: 0;
            color: var(--muted);
            font-size: 13px;
            line-height: 1.55
        }

        .tagrow {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
            margin-top: 10px
        }

        .tag {
            font-size: 11px;
            padding: 6px 9px;
            border-radius: 999px;
            border: 1px solid var(--line);
            background: rgba(255, 255, 255, .03);
            color: rgba(231, 238, 252, .92);
            white-space: nowrap;
        }

        .tag.accent {
            border-color: rgba(124, 92, 255, .35);
            background: rgba(124, 92, 255, .12)
        }

        .tag.green {
            border-color: rgba(46, 233, 166, .35);
            background: rgba(46, 233, 166, .10)
        }

        /* Fancy list */
        .list {
            margin: 0;
            padding: 0;
            list-style: none;
            display: grid;
            gap: 10px;
        }

        .list li {
            display: flex;
            gap: 10px;
            align-items: flex-start;
            padding: 10px 12px;
            border-radius: 14px;
            border: 1px solid var(--line);
            background: rgba(255, 255, 255, .03);
        }

        .bullet {
            width: 22px;
            height: 22px;
            border-radius: 8px;
            background: rgba(46, 233, 166, .12);
            border: 1px solid rgba(46, 233, 166, .35);
            display: grid;
            place-items: center;
            flex: 0 0 auto;
            margin-top: 1px;
        }

        .bullet svg {
            width: 14px;
            height: 14px
        }

        .list strong {
            font-size: 13px
        }

        .list span {
            color: var(--muted);
            font-size: 13px;
            line-height: 1.5
        }

        /* Diagrams */
        .diagram-wrap {
            border: 1px solid var(--line);
            border-radius: var(--radius2);
            background: rgba(0, 0, 0, .18);
            overflow: hidden;
        }

        .diagram-toolbar {
            display: flex;
            gap: 10px;
            align-items: center;
            justify-content: space-between;
            padding: 10px 12px;
            border-bottom: 1px solid var(--line);
            background: rgba(255, 255, 255, .03);
        }

        .diagram-toolbar .left {
            display: flex;
            gap: 8px;
            align-items: center;
            flex-wrap: wrap;
        }

        .pill {
            font-size: 12px;
            padding: 7px 10px;
            border-radius: 999px;
            border: 1px solid var(--line);
            background: rgba(255, 255, 255, .03);
            color: var(--text);
            cursor: pointer;
            transition: transform .15s ease, border-color .15s ease, background .15s ease;
        }

        .pill:hover {
            transform: translateY(-1px);
            border-color: rgba(255, 255, 255, .18)
        }

        .pill.on {
            border-color: rgba(46, 233, 166, .55);
            background: rgba(46, 233, 166, .10);
        }

        .zoom {
            display: flex;
            gap: 8px;
            align-items: center;
        }

        .diagram {
            width: 100%;
            overflow: auto;
            position: relative;
        }

        .diagram-inner {
            width: 1200px;
            /* large canvas for desktop; scrollable on mobile */
            padding: 14px;
            transform-origin: top left;
            transition: transform .2s ease;
        }

        .diagram-hint {
            padding: 10px 12px;
            font-size: 12px;
            color: var(--muted);
            border-top: 1px solid var(--line);
            background: rgba(255, 255, 255, .02);
        }

        /* Accordion */
        .accordion {
            display: grid;
            gap: 10px
        }

        details {
            border: 1px solid var(--line);
            border-radius: 16px;
            background: rgba(255, 255, 255, .03);
            overflow: hidden;
        }

        summary {
            cursor: pointer;
            padding: 12px 14px;
            font-weight: 700;
            font-size: 13px;
            list-style: none;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        summary::-webkit-details-marker {
            display: none
        }

        .acc-body {
            padding: 0 14px 14px;
            color: var(--muted);
            font-size: 13px;
            line-height: 1.6;
            border-top: 1px solid var(--line);
        }

        /* Reveal animation on scroll */
        .reveal {
            opacity: 0;
            transform: translateY(10px);
            transition: opacity .6s ease, transform .6s ease;
        }

        .reveal.in {
            opacity: 1;
            transform: translateY(0);
        }

        /* Footer */
        footer {
            max-width: var(--max);
            margin: 0 auto;
            padding: 0 18px 60px;
            color: var(--muted);
            font-size: 12px;
        }

        .foot {
            border-top: 1px solid var(--line);
            padding-top: 18px;
            display: flex;
            justify-content: space-between;
            gap: 12px;
            flex-wrap: wrap;
        }

        /* Forms */
        .form-group {
            margin-bottom: 12px;
        }

        .form-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
        }

        label {
            display: block;
            font-size: 11px;
            margin-bottom: 5px;
            color: var(--muted);
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        .input {
            width: 100%;
            padding: 10px 12px;
            border-radius: 10px;
            border: 1px solid var(--line);
            background: rgba(0, 0, 0, 0.2);
            color: var(--text);
            font-family: inherit;
            font-size: 13px;
            outline: none;
            transition: border-color 0.2s;
        }

        .input:focus {
            border-color: var(--accent);
        }

        .btn.full {
            width: 100%;
            justify-content: center;
            display: flex;
        }

        /* Code Block */
        .code-block {
            background: #0d1117;
            padding: 12px;
            border-radius: 10px;
            border: 1px solid rgba(255, 255, 255, 0.08);
            margin-top: 5px;
        }

        /* Mobile Menu */
        .mobile-toggle {
            display: none;
            padding: 8px;
        }

        @media (max-width: 900px) {
            .navlinks {
                position: fixed;
                inset: 0;
                background: #0b0f17;
                flex-direction: column;
                justify-content: center;
                align-items: center;
                z-index: 50;
                transform: translateY(-100%);
                transition: transform 0.3s ease;
                display: flex !important;
                /* Override display:none from previous query */
            }

            .navlinks.open {
                transform: translateY(0);
            }

            .navlinks a {
                font-size: 18px;
                width: 200px;
                text-align: center;
                padding: 12px;
            }

            .mobile-toggle {
                display: block;
                z-index: 51;
                position: relative;
            }
        }