:root {
            --bg-deep: #080c14;
            --surface: #0d1117;
            --glass-bg: rgba(255, 255, 255, 0.04);
            --border: rgba(255, 255, 255, 0.08);
            --neon-cyan: #00f5ff;
            --neon-magenta: #ff00aa;
            --neon-lime: #aaff00;
            --warning-red: #ff3366;
            --text-pri: #e8edf5;
            --text-mut: #5a6a7a;
            --font-code: 'JetBrains Mono', monospace;
            --font-sans: 'Inter', sans-serif;
            --radius-card: 16px;
            --radius-input: 12px;
            --radius-tag: 8px;
            --shadow-glow: 0 0 24px rgba(0, 245, 255, 0.15);
            --shadow-glow-red: 0 0 24px rgba(255, 51, 102, 0.15);
        }

        * { margin: 0; padding: 0; box-sizing: border-box; }
        
        body {
            background-color: var(--bg-deep);
            color: var(--text-pri);
            font-family: var(--font-sans);
            overflow-x: hidden;
            line-height: 1.6;
        }

        nav {
            position: fixed;
            top: 0; width: 100%;
            background: rgba(8, 12, 20, 0.8);
            backdrop-filter: blur(12px);
            z-index: 100;
            display: flex;
            justify-content: center;
            padding: 1rem;
            gap: 2rem;
            border-bottom: 1px solid var(--border);
        }

        nav a {
            color: var(--text-mut);
            text-decoration: none;
            font-size: 0.9rem;
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            transition: all 0.2s ease;
        }

        nav a:hover, nav a.active {
            color: var(--neon-cyan);
        }

        nav a .dot {
            width: 6px; height: 6px;
            border-radius: 50%;
            background: var(--text-mut);
            transition: all 0.2s ease;
        }

        nav a:hover .dot, nav a.active .dot {
            background: var(--neon-cyan);
            box-shadow: 0 0 8px var(--neon-cyan);
        }

        section {
            min-height: 100vh;
            padding: 6rem 2rem 4rem;
            display: flex;
            flex-direction: column;
            gap: 2rem;
            max-width: 1400px;
            margin: 0 auto;
        }

        /* Hero */
        #hero {
            position: relative;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-align: center;
            min-height: 100vh;
            padding: 0;
            max-width: 100%;
        }

        #hero-canvas {
            position: absolute;
            top: 0; left: 0; width: 100%; height: 100%;
            z-index: -1;
        }

        h1 {
            font-family: var(--font-code);
            font-size: 4rem;
            font-weight: 700;
            margin-bottom: 1rem;
            background: linear-gradient(to right, var(--text-pri), var(--neon-cyan));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            text-shadow: var(--shadow-glow);
        }

        .subtitle {
            color: var(--text-mut);
            font-size: 1.2rem;
            max-width: 600px;
            margin-bottom: 3rem;
        }

        .cta-btn {
            background: transparent;
            color: var(--neon-cyan);
            border: 1px solid var(--neon-cyan);
            padding: 1rem 2rem;
            font-size: 1.1rem;
            font-family: var(--font-code);
            border-radius: var(--radius-input);
            cursor: pointer;
            text-decoration: none;
            transition: all 0.2s ease;
            box-shadow: 0 0 12px rgba(0, 245, 255, 0.1);
        }

        .cta-btn:hover {
            background: rgba(0, 245, 255, 0.1);
            box-shadow: var(--shadow-glow);
            transform: translateY(-2px);
        }

        /* Bento Grid Layout */
        .bento-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
            gap: 1.5rem;
            width: 100%;
        }

        .hero-panel {
            grid-column: 1 / -1;
        }

        .glass-panel {
            background: var(--glass-bg);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border: 1px solid var(--border);
            border-radius: var(--radius-card);
            padding: 2rem;
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
            overflow: hidden;
            position: relative;
        }

        .panel-title {
            font-family: var(--font-code);
            font-size: 1.2rem;
            color: var(--text-pri);
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }
        
        .panel-title::before {
            content: '';
            display: inline-block;
            width: 12px; height: 12px;
            background: var(--neon-magenta);
            border-radius: 2px;
        }

        .math-text {
            font-family: var(--font-code);
            background: rgba(0,0,0,0.4);
            padding: 1rem;
            border-radius: var(--radius-tag);
            font-size: 0.95rem;
            color: var(--neon-cyan);
            border: 1px solid var(--border);
            overflow-x: auto;
        }

        .canvas-container {
            width: 100%;
            background: rgba(0,0,0,0.5);
            border-radius: var(--radius-tag);
            border: 1px solid var(--border);
            overflow: hidden;
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 300px;
            position: relative;
        }

        canvas {
            display: block;
            width: 100%;
            height: 100%;
        }

        /* Controls */
        .controls {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        .control-group {
            display: flex;
            align-items: center;
            gap: 1rem;
            justify-content: space-between;
        }

        .control-label {
            font-family: var(--font-code);
            font-size: 0.85rem;
            color: var(--text-mut);
        }

        input[type="range"] {
            -webkit-appearance: none;
            width: 100%;
            height: 6px;
            background: var(--border);
            border-radius: 3px;
            outline: none;
        }

        input[type="range"]::-webkit-slider-thumb {
            -webkit-appearance: none;
            width: 16px; height: 16px;
            border-radius: 50%;
            background: var(--neon-cyan);
            cursor: pointer;
            box-shadow: 0 0 10px var(--neon-cyan);
        }

        .action-btn {
            background: var(--surface);
            color: var(--text-pri);
            border: 1px solid var(--border);
            padding: 0.5rem 1rem;
            border-radius: var(--radius-tag);
            font-family: var(--font-code);
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .action-btn:hover {
            border-color: var(--neon-cyan);
            color: var(--neon-cyan);
        }

        .sim-toolbar {
            display: flex;
            flex-direction: column;
            gap: 0.85rem;
            margin-top: 1rem;
            padding: 1rem;
            border-radius: var(--radius-card);
            border: 1px solid var(--border);
            background: rgba(255, 255, 255, 0.03);
        }

        .sim-toolbar-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 1rem;
        }

        .sim-toolbar-title {
            font-family: var(--font-code);
            font-size: 0.95rem;
            color: var(--text-pri);
        }

        .sim-status {
            font-family: var(--font-code);
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            color: var(--neon-lime);
        }

        .sim-toolbar-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
        }

        .sim-btn {
            border: 1px solid var(--border);
            border-radius: 999px;
            padding: 0.6rem 1rem;
            font-family: var(--font-code);
            font-size: 0.82rem;
            letter-spacing: 0.02em;
            cursor: pointer;
            transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
            background: rgba(13, 17, 23, 0.9);
            color: var(--text-pri);
        }

        .sim-btn:hover {
            transform: translateY(-1px);
            border-color: var(--neon-cyan);
        }

        .sim-btn:disabled {
            opacity: 0.45;
            cursor: not-allowed;
            transform: none;
        }

        .sim-btn--primary {
            border-color: rgba(0, 245, 255, 0.35);
            color: var(--neon-cyan);
        }

        .sim-btn--danger {
            border-color: rgba(255, 51, 102, 0.35);
            color: var(--warning-red);
        }

        .sim-btn--ghost {
            border-color: rgba(170, 255, 0, 0.28);
            color: var(--neon-lime);
        }

        .sim-btn--neutral {
            border-color: var(--border);
            color: var(--text-pri);
        }

        /* Specific modifications */
        #act3-split {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1rem;
            width: 100%;
        }

@media (max-width: 768px) {
            h1 { font-size: 2.5rem; }
            nav { display: none; }
            #act3-split { grid-template-columns: 1fr; }
        }
