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

        :root {
            --bg: #0e0e0f;
            --bg-2: #141416;
            --bg-card: #18181b;
            --bg-glass: rgba(255, 255, 255, 0.04);
            --border: rgba(255, 255, 255, 0.08);
            --border-light: rgba(255, 255, 255, 0.14);
            --purple: #7c6fff;
            --purple-dim: #5b50cc;
            --purple-glow: rgba(124, 111, 255, 0.25);
            --blue: #3b82f6;
            --cyan: #22d3ee;
            --text: #f0f0f2;
            --text-muted: #7a7a8a;
            --text-dim: #4a4a5a;
            --radius-sm: 8px;
            --radius-md: 14px;
            --radius-lg: 22px;
            --font-main: 'Space Grotesk', sans-serif;
            --font-mono: 'JetBrains Mono', monospace;
            --nav-h: 64px;
        }

        [data-theme="light"] {
            --bg: #f8f8fa;
            --bg-2: #efeff3;
            --bg-card: #ffffff;
            --bg-glass: rgba(0, 0, 0, 0.04);
            --border: rgba(0, 0, 0, 0.08);
            --border-light: rgba(0, 0, 0, 0.14);
            --text: #111114;
            --text-muted: #555566;
            --text-dim: #aaaabc;
            --purple-glow: rgba(124, 111, 255, 0.18);
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            background: var(--bg);
            color: var(--text);
            font-family: var(--font-main);
            line-height: 1.6;
            overflow-x: hidden;
            -webkit-font-smoothing: antialiased;
            transition: background 0.3s, color 0.3s;
        }

        body.menu-open {
            overflow: hidden;
        }

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

        img {
            max-width: 100%;
            display: block;
        }

        button {
            font-family: inherit;
            cursor: pointer;
            border: none;
            background: none;
        }

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

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

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

        /* ═══════════════════════════════════════════════
   LOADER
═══════════════════════════════════════════════ */
        #loader {
            position: fixed;
            inset: 0;
            z-index: 9999;
            background: var(--bg);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-direction: column;
            gap: 20px;
            transition: opacity 0.5s ease, visibility 0.5s ease;
        }

        #loader.hidden {
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
        }

        .loader-ring {
            width: 52px;
            height: 52px;
            border: 3px solid var(--border);
            border-top-color: var(--purple);
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
        }

        @keyframes spin {
            to {
                transform: rotate(360deg);
            }
        }

        .loader-brand {
            font-size: 14px;
            color: var(--text-muted);
            font-family: var(--font-mono);
            letter-spacing: 0.1em;
        }

        /* ═══════════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════════ */
        #navbar {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1000;
            height: var(--nav-h);
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 24px;
            background: rgba(14, 14, 15, 0.85);
            backdrop-filter: blur(20px) saturate(180%);
            -webkit-backdrop-filter: blur(20px) saturate(180%);
            border-bottom: 1px solid var(--border);
            transition: background 0.3s;
        }

        [data-theme="light"] #navbar {
            background: rgba(248, 248, 250, 0.85);
        }

        #navbar.scrolled {
            background: rgba(14, 14, 15, 0.97);
        }

        [data-theme="light"] #navbar.scrolled {
            background: rgba(248, 248, 250, 0.97);
        }

        /* ── Logo ── */
        .logo {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 17px;
            font-weight: 700;
            color: var(--text);
            letter-spacing: -0.02em;
            flex-shrink: 0;
            z-index: 1100;
            position: relative;
        }

        .logo-img {
            width: 36px;
            height: 36px;
            border-radius: 8px;
            object-fit: cover;
            flex-shrink: 0;
        }

        /* ── Hamburger ── */
        .hamburger {
            display: none;
            padding: 8px;
            border-radius: 8px;
            color: var(--text);
            font-size: 20px;
            transition: background 0.2s;
            line-height: 1;
            z-index: 1100;
            position: relative;
            align-items: center;
            justify-content: center;
        }

        .hamburger:hover {
            background: var(--bg-glass);
        }

        /* ── Desktop nav container ── */
        #nav-menu {
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .nav-links {
            list-style: none;
            display: flex;
            align-items: center;
            gap: 2px;
        }

        .nav-links a {
            display: block;
            padding: 6px 12px;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 500;
            color: var(--text-muted);
            transition: color 0.2s, background 0.2s;
        }

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

        /* ── Dropdown toggle ── */
        .dropdown {
            position: relative;
        }

        .dropdown-toggle {
            display: flex !important;
            align-items: center;
            gap: 5px;
        }

        .dropdown-toggle .chev {
            font-size: 0.6em;
            transition: transform 0.25s;
            display: inline-block;
        }

        .dropdown.open>.dropdown-toggle .chev {
            transform: rotate(180deg);
        }

        /* ── REDESIGNED DROPDOWN MENU ── */
        .dropdown-menu {
            display: none;
            position: absolute;
            top: calc(100% + 10px);
            right: 0;
            min-width: 220px;
            background: var(--bg-card);
            border: 1px solid var(--border-light);
            border-radius: var(--radius-lg);
            overflow: hidden;
            box-shadow: 0 24px 48px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.04);
            z-index: 2000;
            animation: dropIn 0.18s ease;
            padding: 6px;
        }

        @keyframes dropIn {
            from {
                opacity: 0;
                transform: translateY(-6px);
            }

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

        .dropdown.open>.dropdown-menu {
            display: block;
        }

        .dropdown-menu-header {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 10px 12px 8px;
            border-bottom: 1px solid var(--border);
            margin-bottom: 4px;
        }

        .dropdown-menu-header span {
            font-size: 11px;
            font-weight: 700;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            color: var(--text-dim);
        }

        .dropdown-menu li {
            list-style: none;
        }

        .dropdown-menu li a {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 10px 12px;
            font-size: 13px;
            color: var(--text-muted);
            border-radius: var(--radius-sm);
            transition: color 0.15s, background 0.15s;
        }

        .dropdown-menu li a:hover {
            color: var(--text);
            background: rgba(255, 255, 255, 0.06);
        }

        .dm-icon {
            width: 30px;
            height: 30px;
            border-radius: 8px;
            background: var(--bg-glass);
            border: 1px solid var(--border);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 13px;
            color: var(--purple);
            flex-shrink: 0;
            transition: background 0.15s, border-color 0.15s;
        }

        .dropdown-menu li a:hover .dm-icon {
            background: rgba(124, 111, 255, 0.12);
            border-color: rgba(124, 111, 255, 0.3);
        }

        .lang-flag {
            font-size: 20px;
            line-height: 1;
            flex-shrink: 0;
            width: 30px;
            text-align: center;
        }

        .lang-info {
            display: flex;
            flex-direction: column;
            gap: 1px;
        }

        .lang-name {
            font-size: 13px;
            font-weight: 500;
            color: var(--text);
        }

        .lang-native {
            font-size: 11px;
            color: var(--text-muted);
        }

        .dm-divider {
            height: 1px;
            background: var(--border);
            margin: 4px 2px;
        }

        /* ── Theme toggle ── */
        .theme-toggle {
            padding: 8px 10px;
            border-radius: 8px;
            color: var(--text-muted);
            font-size: 15px;
            transition: color 0.2s, background 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .theme-toggle:hover {
            color: var(--text);
            background: var(--bg-glass);
        }

        .theme-toggle i {
            transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
            display: block;
        }

        .theme-toggle:hover i {
            transform: rotate(360deg);
        }

        /* ── CTA buttons ── */
        .cta-btn {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 10px 22px;
            border-radius: 30px;
            font-size: 14px;
            font-weight: 600;
            background: linear-gradient(135deg, var(--purple), var(--purple-dim));
            color: #fff;
            box-shadow: 0 4px 20px var(--purple-glow);
            transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
        }

        .cta-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 30px var(--purple-glow);
        }

        .cta-btn:active {
            transform: translateY(0);
        }

        .btn-outline {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 10px 22px;
            border-radius: 30px;
            font-size: 14px;
            font-weight: 600;
            border: 1.5px solid var(--border-light);
            color: var(--text);
            transition: border-color 0.2s, background 0.2s;
        }

        .btn-outline:hover {
            border-color: var(--purple);
            background: rgba(124, 111, 255, 0.07);
        }

        #login-btn {
            padding: 8px 18px;
            font-size: 13px;
            border-radius: 30px;
            white-space: nowrap;
        }

        /* ── Profile wrapper — integrovaný do dropdown systému ── */
        #profile-wrapper {
            position: relative;
        }

        /* Profile button jako dropdown trigger */
        #profile-btn-new {
            display: none;
            background: none;
            border: 2px solid var(--border);
            border-radius: 50%;
            padding: 0;
            width: 38px;
            height: 38px;
            overflow: hidden;
            transition: border-color 0.2s;
            flex-shrink: 0;
            cursor: pointer;
        }

        #profile-btn-new:hover {
            border-color: var(--purple);
        }

        #user-profile-img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 50%;
            display: block;
            pointer-events: none;
        }

        /* Profile dropdown — stejný styl jako ostatní .dropdown-menu */
        #profile-dropdown-new {
            display: none;
            position: absolute;
            right: 0;
            top: calc(100% + 10px);
            min-width: 220px;
            background: var(--bg-card);
            border: 1px solid var(--border-light);
            border-radius: var(--radius-lg);
            overflow: hidden;
            box-shadow: 0 24px 48px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.04);
            z-index: 2000;
            animation: dropIn 0.18s ease;
            padding: 6px;
        }

        #profile-wrapper.open #profile-dropdown-new {
            display: block;
        }

        .profile-menu-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 9px 12px;
            width: 100%;
            border-radius: var(--radius-sm);
            font-size: 13px;
            color: var(--text-muted);
            transition: color 0.15s, background 0.15s;
            text-decoration: none;
        }

        .profile-menu-item:hover {
            color: var(--text);
            background: rgba(255, 255, 255, 0.06);
        }

        .profile-menu-logout {
            color: #f87171 !important;
        }

        .profile-menu-logout:hover {
            background: rgba(248, 113, 113, 0.1) !important;
            color: #f87171 !important;
        }

        /* × tlačítko pro zavření dropdown menu — viditelné jen na mobilu (viz media query) */
        .dropdown-menu-close {
            display: none;
        }

        /* ═══════════════════════════════════════════════
   GLOBAL OVERLAY
═══════════════════════════════════════════════ */

        /* ═══════════════════════════════════════════════
   MOBILE NAV — FULLSCREEN PANEL
═══════════════════════════════════════════════ */
        @media (max-width: 768px) {
            .hamburger {
                display: flex;
            }

            #nav-menu {
                position: fixed;
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;
                width: 100vw;
                height: 100dvh;
                background: var(--bg);
                flex-direction: column;
                align-items: stretch;
                justify-content: flex-start;
                gap: 0;
                padding: calc(var(--nav-h) + 16px) 20px 32px;
                overflow-y: auto;
                overflow-x: hidden;
                z-index: 1080;
                transform: translateY(-100%);
                transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
                pointer-events: none;
                visibility: hidden;
            }

            #nav-menu.open {
                transform: translateY(0);
                pointer-events: all;
                visibility: visible;
            }

            .nav-links {
                flex-direction: column;
                align-items: stretch;
                width: 100%;
                gap: 2px;
            }

            .nav-links>li {
                width: 100%;
            }

            .nav-links a {
                font-size: 16px;
                font-weight: 500;
                padding: 13px 16px;
                border-radius: var(--radius-md);
                display: flex;
                align-items: center;
                justify-content: center;
                text-align: center;
                gap: 10px;
            }

            .dropdown-toggle .chev {
                display: inline-block;
            }

            /* Mobile dropdown — centered modal */
            .dropdown-menu,
            #profile-dropdown-new {
                position: fixed !important;
                top: 50% !important;
                left: 50% !important;
                right: auto !important;
                bottom: auto !important;
                transform: translate(-50%, -50%) !important;
                width: 90vw;
                max-width: 360px;
                border-radius: var(--radius-lg);
                box-shadow: 0 32px 64px rgba(0, 0, 0, 0.85);
                z-index: 1200;
                animation: mobileDropIn 0.22s cubic-bezier(0.34, 1.4, 0.64, 1);
                max-height: 80vh;
                overflow-y: auto;
                padding-top: 44px;
            }

            @keyframes mobileDropIn {
                from {
                    opacity: 0;
                    transform: translate(-50%, -48%) scale(0.94);
                }

                to {
                    opacity: 1;
                    transform: translate(-50%, -50%) scale(1);
                }
            }

            .dropdown-menu li a,
            #profile-dropdown-new .profile-menu-item {
                font-size: 15px;
                padding: 12px 14px;
            }

            .dm-icon {
                width: 34px;
                height: 34px;
                font-size: 14px;
            }

            /* × tlačítko pro zavření — jen na mobilu */
            .dropdown-menu-close {
                display: flex;
                position: absolute;
                top: 10px;
                right: 10px;
                width: 32px;
                height: 32px;
                border-radius: 50%;
                align-items: center;
                justify-content: center;
                background: var(--bg-glass);
                border: 1px solid var(--border);
                color: var(--text-muted);
                font-size: 14px;
                z-index: 10;
                cursor: pointer;
                transition: background 0.15s, color 0.15s;
            }

            .dropdown-menu-close:hover {
                background: rgba(255, 255, 255, 0.1);
                color: var(--text);
            }

            .mobile-nav-bottom {
                margin-top: auto;
                padding-top: 16px;
                border-top: 1px solid var(--border);
                display: flex;
                flex-direction: column;
                align-items: center;
                gap: 10px;
                width: 100%;
            }

            .theme-toggle {
                width: auto;
                justify-content: center;
                padding: 13px 22px;
                font-size: 15px;
                border-radius: var(--radius-md);
                gap: 10px;
                display: flex;
                align-items: center;
                color: var(--text-muted);
            }

            .theme-toggle-label {
                display: inline;
                font-size: 15px;
                font-weight: 500;
                color: var(--text-muted);
            }

            #login-btn {
                width: auto;
                max-width: 280px;
                justify-content: center;
                padding: 13px 22px;
                font-size: 15px;
                border-radius: var(--radius-md) !important;
                display: inline-flex;
                align-items: center;
                gap: 8px;
            }

            #profile-wrapper {
                position: static;
                width: 100%;
                display: flex;
                justify-content: center;
            }

            #profile-btn-new {
                width: auto !important;
                max-width: 280px;
                height: 54px !important;
                border-radius: var(--radius-md) !important;
                border: 1px solid var(--border) !important;
                overflow: visible !important;
                display: none;
                /* JS řídí zobrazení */
                align-items: center !important;
                justify-content: center !important;
                gap: 12px !important;
                padding: 12px 16px !important;
            }

            #profile-btn-new.visible-mobile {
                display: flex !important;
            }

            #user-profile-img {
                width: 36px !important;
                height: 36px !important;
                border-radius: 50% !important;
                object-fit: cover !important;
                flex-shrink: 0 !important;
            }

            .mobile-nav-section-label {
                font-size: 10px;
                font-weight: 700;
                letter-spacing: 0.1em;
                text-transform: uppercase;
                color: var(--text-dim);
                padding: 6px 16px 2px;
            }

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

            .bento-card.big {
                grid-column: span 1;
            }

            .hero-headline {
                font-size: clamp(36px, 10vw, 58px);
            }

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

            .footer-brand-col {
                grid-column: span 2;
            }

            .cta-banner {
                padding: 48px 28px;
            }

            .project-body {
                padding: 24px;
            }
        }

        /* ═══════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════ */
        .hero {
            position: relative;
            min-height: 100svh;
            display: grid;
            place-items: center;
            padding: 120px 24px 80px;
            overflow: hidden;
        }

        .hero::before {
            content: '';
            position: absolute;
            top: -20%;
            left: 50%;
            transform: translateX(-50%);
            width: 900px;
            height: 700px;
            background: radial-gradient(ellipse at center, rgba(124, 111, 255, 0.12) 0%, transparent 65%);
            pointer-events: none;
            z-index: 0;
        }

        #hero-canvas {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 0;
            pointer-events: none;
            display: block;
        }

        .hero-inner {
            position: relative;
            z-index: 1;
            max-width: 860px;
            width: 100%;
            display: grid;
            gap: 24px;
        }

        .hero-eyebrow {
            display: flex;
            align-items: center;
            gap: 10px;
            font-family: var(--font-mono);
            font-size: 12px;
            color: var(--purple);
            letter-spacing: 0.12em;
            text-transform: uppercase;
        }

        .hero-eyebrow::before {
            content: '';
            display: block;
            width: 32px;
            height: 1px;
            background: var(--purple);
        }

        .hero-headline {
            font-size: clamp(42px, 8vw, 88px);
            font-weight: 700;
            line-height: 1.05;
            letter-spacing: -0.04em;
            color: var(--text);
        }

        .text-gradient {
            background: linear-gradient(135deg, var(--purple) 0%, var(--cyan) 100%);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .hero-sub {
            font-size: 17px;
            color: var(--text-muted);
            max-width: 540px;
            line-height: 1.7;
        }

        .hero-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            align-items: center;
        }

        .hero-terminal {
            background: rgba(20, 20, 22, 0.85);
            border: 1px solid var(--border-light);
            border-radius: var(--radius-md);
            padding: 16px 20px;
            font-family: var(--font-mono);
            font-size: 13px;
            color: var(--text-muted);
            backdrop-filter: blur(12px);
            max-width: 600px;
            box-shadow: 0 0 40px rgba(0, 0, 0, 0.4), 0 0 1px rgba(124, 111, 255, 0.3);
        }

        .terminal-bar {
            display: flex;
            align-items: center;
            gap: 6px;
            margin-bottom: 14px;
            padding-bottom: 12px;
            border-bottom: 1px solid var(--border);
        }

        .terminal-dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
        }

        .terminal-dot:nth-child(1) {
            background: #ff5f57;
        }

        .terminal-dot:nth-child(2) {
            background: #febc2e;
        }

        .terminal-dot:nth-child(3) {
            background: #28c840;
        }

        .terminal-label {
            margin-left: 6px;
            font-size: 11px;
            color: var(--text-dim);
        }

        .terminal-line {
            display: flex;
            gap: 10px;
            margin-bottom: 6px;
            line-height: 1.5;
        }

        .terminal-line:last-child {
            margin-bottom: 0;
        }

        .t-prompt {
            color: var(--purple);
            flex-shrink: 0;
        }

        .t-key {
            color: var(--cyan);
        }

        .t-val {
            color: #a8ff78;
        }

        .t-cursor {
            display: inline-block;
            width: 8px;
            height: 18px;
            background: var(--purple);
            border-radius: 1px;
            animation: blink 1.2s step-end infinite;
            vertical-align: middle;
        }

        @keyframes blink {

            0%,
            100% {
                opacity: 1;
            }

            50% {
                opacity: 0;
            }
        }

        /* ═══════════════════════════════════════════════
   TICKER
═══════════════════════════════════════════════ */
        .ticker-wrap {
            overflow: hidden;
            border-top: 1px solid var(--border);
            border-bottom: 1px solid var(--border);
            background: var(--bg-2);
            padding: 14px 0;
        }

        .ticker-track {
            display: flex;
            width: max-content;
            animation: ticker-move 28s linear infinite;
        }

        .ticker-wrap:hover .ticker-track {
            animation-play-state: paused;
        }

        @keyframes ticker-move {
            from {
                transform: translateX(0);
            }

            to {
                transform: translateX(-50%);
            }
        }

        .ticker-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 0 32px;
            white-space: nowrap;
            font-size: 13px;
            color: var(--text-muted);
        }

        .ticker-item i {
            color: var(--purple);
            font-size: 11px;
        }

        .ticker-num {
            font-family: var(--font-mono);
            color: var(--text);
            font-weight: 600;
        }

        /* ═══════════════════════════════════════════════
   SECTION
═══════════════════════════════════════════════ */
        .section {
            padding: 120px 24px;
            max-width: 1200px;
            margin: 0 auto;
        }

        .section-eyebrow {
            font-family: var(--font-mono);
            font-size: 11px;
            color: var(--purple);
            letter-spacing: 0.14em;
            text-transform: uppercase;
            margin-bottom: 14px;
        }

        .section-title {
            font-size: clamp(32px, 5vw, 52px);
            font-weight: 700;
            letter-spacing: -0.03em;
            line-height: 1.1;
            margin-bottom: 16px;
        }

        .section-desc {
            font-size: 16px;
            color: var(--text-muted);
            max-width: 520px;
            line-height: 1.7;
            margin-bottom: 10px;
        }

        .divider {
            height: 1px;
            margin: 0 24px;
            background: linear-gradient(to right, transparent 0%, rgba(124, 111, 255, 0.2) 30%, rgba(34, 211, 238, 0.2) 70%, transparent 100%);
        }

        /* ═══════════════════════════════════════════════
   BENTO
═══════════════════════════════════════════════ */
        .bento {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 16px;
            margin-top: 64px;
        }

        .bento-card {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: var(--radius-lg);
            padding: 36px 32px;
            display: flex;
            flex-direction: column;
            gap: 16px;
            transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
            cursor: default;
            position: relative;
            overflow: hidden;
        }

        .bento-card::after {
            content: '';
            position: absolute;
            top: -60%;
            right: -30%;
            width: 200px;
            height: 200px;
            border-radius: 50%;
            opacity: 0;
            background: var(--glow-color, var(--purple-glow));
            transition: opacity 0.4s;
            pointer-events: none;
        }

        .bento-card:hover::after {
            opacity: 1;
        }

        .bento-card:hover {
            border-color: var(--border-light);
            transform: translateY(-4px);
            box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
        }

        .bento-icon {
            width: 48px;
            height: 48px;
            border-radius: 12px;
            background: var(--bg-glass);
            display: grid;
            place-items: center;
            font-size: 20px;
            color: var(--purple);
            border: 1px solid var(--border);
        }

        .bento-tag {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            font-family: var(--font-mono);
            font-size: 11px;
            color: var(--purple);
            background: rgba(124, 111, 255, 0.1);
            border: 1px solid rgba(124, 111, 255, 0.2);
            border-radius: 99px;
            padding: 3px 10px;
            width: fit-content;
        }

        .bento-card h3 {
            font-size: 22px;
            font-weight: 700;
            letter-spacing: -0.02em;
        }

        .bento-card p {
            font-size: 14px;
            color: var(--text-muted);
            line-height: 1.65;
            flex: 1;
        }

        .bento-link {
            display: inline-flex;
            align-items: center;
            gap: 7px;
            font-size: 13px;
            font-weight: 600;
            color: var(--purple);
            margin-top: auto;
            transition: gap 0.2s;
        }

        .bento-link:hover {
            gap: 11px;
        }

        .bento-card.big {
            grid-column: span 2;
            background: linear-gradient(135deg, rgba(124, 111, 255, 0.07) 0%, var(--bg-card) 60%);
        }

        .bento-card.big .bento-icon {
            color: var(--cyan);
        }

        .bento-card.big .bento-tag {
            color: var(--cyan);
            background: rgba(34, 211, 238, 0.08);
            border-color: rgba(34, 211, 238, 0.2);
        }

        .bento-card.big .bento-link {
            color: var(--cyan);
        }

        /* ═══════════════════════════════════════════════
   PROJECTS
═══════════════════════════════════════════════ */
        .projects-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 24px;
            margin-top: 64px;
        }

        .project-card {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: var(--radius-lg);
            overflow: hidden;
            display: flex;
            flex-direction: column;
            transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
        }

        .project-card:hover {
            border-color: var(--border-light);
            transform: translateY(-4px);
            box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
        }

        .project-card.featured {
            grid-column: span 2;
            display: grid;
            grid-template-columns: 1.4fr 1fr;
        }

        .project-img-wrap {
            position: relative;
            overflow: hidden;
            background: var(--bg-2);
        }

        .project-img-wrap img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }

        .project-card:hover .project-img-wrap img {
            transform: scale(1.04);
        }

        .project-body {
            padding: 32px 36px;
            display: flex;
            flex-direction: column;
            gap: 16px;
        }

        .project-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }

        .project-tag {
            font-family: var(--font-mono);
            font-size: 11px;
            padding: 3px 10px;
            border-radius: 99px;
            border: 1px solid var(--border-light);
            color: var(--text-muted);
        }

        .project-body h3 {
            font-size: 26px;
            font-weight: 700;
            letter-spacing: -0.02em;
            line-height: 1.2;
        }

        .project-body p {
            font-size: 14px;
            color: var(--text-muted);
            line-height: 1.65;
            flex: 1;
        }

        .project-features {
            list-style: none;
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .project-features li {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 13px;
            color: var(--text-muted);
        }

        .project-features li i {
            color: var(--purple);
            font-size: 11px;
            width: 14px;
        }

        .project-footer {
            margin-top: auto;
            padding-top: 20px;
            border-top: 1px solid var(--border);
            display: flex;
            gap: 12px;
        }

        .project-card.small .project-img-wrap {
            aspect-ratio: 16/9;
        }

        .project-card.small .project-body {
            padding: 24px;
        }

        .project-card.small .project-body h3 {
            font-size: 20px;
        }

        /* ═══════════════════════════════════════════════
   STATS
═══════════════════════════════════════════════ */
        .stats-row {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 1px;
            background: var(--border);
            border: 1px solid var(--border);
            border-radius: var(--radius-lg);
            overflow: hidden;
            margin: 80px 0;
        }

        .stat-cell {
            background: var(--bg-card);
            padding: 40px 32px;
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .stat-num {
            font-family: var(--font-mono);
            font-size: 42px;
            font-weight: 700;
            letter-spacing: -0.04em;
            background: linear-gradient(135deg, var(--text) 0%, var(--text-muted) 100%);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .stat-label {
            font-size: 13px;
            color: var(--text-muted);
        }

        /* ═══════════════════════════════════════════════
   CTA BANNER
═══════════════════════════════════════════════ */
        .cta-banner {
            margin: 0 24px 120px;
            padding: 80px 60px;
            border-radius: var(--radius-lg);
            background: linear-gradient(135deg, rgba(124, 111, 255, 0.12) 0%, rgba(34, 211, 238, 0.06) 100%);
            border: 1px solid rgba(124, 111, 255, 0.25);
            text-align: center;
            position: relative;
            overflow: hidden;
        }

        .cta-banner::before {
            content: '';
            position: absolute;
            inset: 0;
            background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%237c6fff' fill-opacity='0.07'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
            pointer-events: none;
        }

        .cta-banner h2 {
            font-size: clamp(28px, 4vw, 44px);
            font-weight: 700;
            letter-spacing: -0.03em;
            margin-bottom: 14px;
        }

        .cta-banner p {
            font-size: 16px;
            color: var(--text-muted);
            max-width: 480px;
            margin: 0 auto 36px;
            line-height: 1.7;
        }

        .cta-banner-btns {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 14px;
            position: relative;
        }

        /* ═══════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════ */
        footer {
            border-top: 1px solid var(--border);
            background: var(--bg-2);
        }

        .footer-grid {
            max-width: 1200px;
            margin: 0 auto;
            padding: 80px 24px 48px;
            display: grid;
            grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
            gap: 48px;
        }

        .footer-brand-col {
            display: flex;
            flex-direction: column;
            gap: 16px;
        }

        .footer-brand-desc {
            font-size: 13px;
            color: var(--text-muted);
            line-height: 1.65;
            max-width: 240px;
        }

        .footer-socials {
            display: flex;
            gap: 10px;
        }

        .footer-socials a {
            width: 36px;
            height: 36px;
            border-radius: 8px;
            display: grid;
            place-items: center;
            border: 1px solid var(--border);
            color: var(--text-muted);
            font-size: 14px;
            transition: border-color 0.2s, color 0.2s, background 0.2s;
        }

        .footer-socials a:hover {
            border-color: var(--border-light);
            color: var(--text);
            background: var(--bg-glass);
        }

        .footer-col h4 {
            font-size: 12px;
            font-weight: 700;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            color: var(--text);
            margin-bottom: 16px;
            padding-bottom: 10px;
            border-bottom: 1px solid var(--border);
        }

        .footer-col ul {
            list-style: none;
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .footer-col ul a {
            font-size: 13px;
            color: var(--text-muted);
            transition: color 0.2s;
        }

        .footer-col ul a:hover {
            color: var(--text);
        }

        .footer-bottom {
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px 24px;
            border-top: 1px solid var(--border);
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 10px;
        }

        .footer-bottom p {
            font-size: 12px;
            color: var(--text-dim);
        }

        .footer-bottom-links {
            display: flex;
            gap: 14px;
            flex-wrap: wrap;
        }

        .footer-bottom-links a {
            color: var(--text-muted);
            font-size: 12px;
            transition: color 0.2s;
        }

        .footer-bottom-links a:hover {
            color: var(--text);
        }

        /* ═══════════════════════════════════════════════
   COOKIE BAR
═══════════════════════════════════════════════ */
        #cookie-bar {
            position: fixed;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            width: calc(100% - 40px);
            max-width: 480px;
            background: var(--bg-card);
            border: 1px solid var(--border-light);
            border-radius: var(--radius-lg);
            z-index: 5000;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
            overflow: hidden;
            animation: slide-up 0.4s ease;
            display: none;
        }

        @keyframes slide-up {
            from {
                transform: translateX(-50%) translateY(20px);
                opacity: 0;
            }

            to {
                transform: translateX(-50%) translateY(0);
                opacity: 1;
            }
        }

        .cookie-header {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 16px 20px 14px;
            border-bottom: 1px solid var(--border);
            background: rgba(124, 111, 255, 0.05);
        }

        .cookie-header-icon {
            font-size: 22px;
            line-height: 1;
        }

        .cookie-header h3 {
            font-size: 15px;
            font-weight: 700;
            color: var(--text);
        }

        .cookie-body {
            padding: 16px 20px;
        }

        .cookie-body p {
            font-size: 13px;
            color: var(--text-muted);
            line-height: 1.65;
        }

        .cookie-btns {
            padding: 0 20px 16px;
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
        }

        .cookie-btn {
            flex: 1;
            min-width: 90px;
            padding: 9px 14px;
            border-radius: 10px;
            font-size: 13px;
            font-weight: 600;
            text-align: center;
            cursor: pointer;
            border: none;
            font-family: inherit;
            transition: opacity 0.2s, transform 0.15s;
        }

        .cookie-btn:active {
            transform: scale(0.97);
        }

        .cookie-btn-accept {
            background: linear-gradient(135deg, var(--purple), var(--purple-dim));
            color: #fff;
            box-shadow: 0 4px 14px var(--purple-glow);
        }

        .cookie-btn-accept:hover {
            opacity: 0.88;
        }

        .cookie-btn-settings {
            background: var(--bg-glass);
            border: 1px solid var(--border-light);
            color: var(--text);
        }

        .cookie-btn-settings:hover {
            background: rgba(124, 111, 255, 0.1);
            border-color: var(--purple);
        }

        .cookie-btn-reject {
            background: rgba(248, 113, 113, 0.1);
            border: 1px solid rgba(248, 113, 113, 0.2);
            color: #f87171;
        }

        .cookie-btn-reject:hover {
            background: rgba(248, 113, 113, 0.18);
        }

        #cookie-settings-panel {
            display: none;
            padding: 0 20px 16px;
            border-top: 1px solid var(--border);
            margin-top: 4px;
        }

        #cookie-settings-panel.open {
            display: block;
        }

        .cookie-setting-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 10px 0;
            border-bottom: 1px solid var(--border);
            font-size: 13px;
        }

        .cookie-setting-row:last-child {
            border-bottom: none;
        }

        .cookie-setting-name {
            font-weight: 600;
            color: var(--text);
        }

        .cookie-setting-desc {
            font-size: 11px;
            color: var(--text-muted);
            margin-top: 2px;
        }

        .toggle-switch {
            position: relative;
            display: inline-block;
            width: 36px;
            height: 20px;
            flex-shrink: 0;
        }

        .toggle-switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }

        .toggle-slider {
            position: absolute;
            cursor: pointer;
            inset: 0;
            background: var(--border-light);
            border-radius: 20px;
            transition: background 0.25s;
        }

        .toggle-slider::before {
            content: '';
            position: absolute;
            height: 14px;
            width: 14px;
            left: 3px;
            bottom: 3px;
            background: white;
            border-radius: 50%;
            transition: transform 0.25s;
        }

        .toggle-switch input:checked+.toggle-slider {
            background: var(--purple);
        }

        .toggle-switch input:checked+.toggle-slider::before {
            transform: translateX(16px);
        }

        .toggle-switch input:disabled+.toggle-slider {
            opacity: 0.5;
            cursor: not-allowed;
        }

        .cookie-save-btn {
            margin-top: 12px;
            width: 100%;
            padding: 9px;
            border-radius: 10px;
            background: var(--purple);
            color: #fff;
            font-size: 13px;
            font-weight: 600;
            font-family: inherit;
            cursor: pointer;
            border: none;
            transition: opacity 0.2s;
        }

        .cookie-save-btn:hover {
            opacity: 0.85;
        }

        /* ═══════════════════════════════════════════════
   LOGIN MODAL
═══════════════════════════════════════════════ */
        .modal-overlay {
            position: fixed;
            inset: 0;
            z-index: 6000;
            background: rgba(0, 0, 0, 0.65);
            backdrop-filter: blur(8px);
            display: grid;
            place-items: center;
        }

        #login-offer-modal .modal-box {
            background: var(--bg-card);
            border: 1px solid var(--border-light);
            border-radius: var(--radius-lg);
            width: calc(100% - 40px);
            max-width: 420px;
            overflow: hidden;
            box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
            animation: dropIn 0.25s ease;
        }

        .modal-header {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 18px 22px 16px;
            border-bottom: 1px solid var(--border);
            background: rgba(124, 111, 255, 0.05);
        }

        .modal-header-icon {
            font-size: 22px;
            color: var(--purple);
        }

        .modal-header h3 {
            font-size: 16px;
            font-weight: 700;
            color: var(--text);
        }

        .modal-body {
            padding: 18px 22px;
        }

        .modal-body p {
            font-size: 13px;
            color: var(--text-muted);
            line-height: 1.65;
        }

        .modal-btns {
            padding: 0 22px 18px;
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
        }

        .modal-btn {
            flex: 1;
            min-width: 110px;
            padding: 10px 16px;
            border-radius: 10px;
            font-size: 13px;
            font-weight: 600;
            text-align: center;
            cursor: pointer;
            font-family: inherit;
            border: none;
            transition: opacity 0.2s, transform 0.15s;
            text-decoration: none;
            display: inline-block;
        }

        .modal-btn:active {
            transform: scale(0.97);
        }

        .modal-btn-yes {
            background: linear-gradient(135deg, var(--purple), var(--purple-dim));
            color: #fff;
            box-shadow: 0 4px 14px var(--purple-glow);
        }

        .modal-btn-yes:hover {
            opacity: 0.88;
        }

        .modal-btn-no {
            background: rgba(248, 113, 113, 0.1);
            border: 1px solid rgba(248, 113, 113, 0.2);
            color: #f87171;
        }

        .modal-btn-no:hover {
            background: rgba(248, 113, 113, 0.18);
        }

        /* ═══════════════════════════════════════════════
   UTILS
═══════════════════════════════════════════════ */
        .reveal {
            opacity: 0;
            transform: translateY(28px);
            transition: opacity 0.6s ease, transform 0.6s ease;
        }

        .reveal.visible {
            opacity: 1;
            transform: none;
        }

        @media (prefers-reduced-motion: reduce) {
            .reveal {
                opacity: 1;
                transform: none;
                transition: none;
            }

            .ticker-track {
                animation: none;
            }

            #hero-canvas {
                display: none;
            }

            #nav-menu {
                transition: none;
            }
        }

        /* ═══════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════ */
        @media (max-width: 1024px) {
            .bento {
                grid-template-columns: 1fr 1fr;
            }

            .bento-card.big {
                grid-column: span 2;
            }

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

            .project-card.featured {
                grid-template-columns: 1fr;
                grid-column: span 1;
            }

            .stats-row {
                grid-template-columns: 1fr 1fr;
            }

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

            .footer-brand-col {
                grid-column: span 3;
            }
        }

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

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

            .footer-brand-col {
                grid-column: span 1;
            }

            #cookie-bar {
                bottom: 10px;
            }
        }
