:root {
            --bg-primary: #1a1a1b;
            --bg-secondary: #2d2d2f;
            --bg-tertiary: #3a3a3c;
            --text-primary: #e4e4e4;
            --text-secondary: #a0a0a0;
            --accent: #ff6b35;
            --accent-hover: #ff8555;
            --nano: #209CE9;
            --nano-dark: #1a7cb8;
            --nano-glow: rgba(32, 156, 233, 0.3);
            --success: #4ade80;
            --rarity-common: #b0b0b0;
            --rarity-rare: #3b82f6;
            --rarity-epic: #a855f7;
            --rarity-legendary: #f59e0b;
        }

        * { margin: 0; padding: 0; box-sizing: border-box; }
        html { scroll-behavior: smooth; }

        body {
            font-family: 'IBM Plex Sans', sans-serif;
            background: var(--bg-primary);
            color: var(--text-primary);
            overflow-x: hidden;
            -webkit-font-smoothing: antialiased;
        }

        /* ===== NAV ===== */
        .landing-nav {
            position: fixed;
            top: 0; left: 0; right: 0;
            z-index: 100;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0.75rem 1.5rem;
            background: rgba(26,26,27,0.9);
            backdrop-filter: blur(12px);
            border-bottom: 1px solid rgba(255,255,255,0.05);
        }
        .landing-nav .logo {
            font-weight: 800;
            font-size: 1.15rem;
            color: var(--text-primary);
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 0.4rem;
        }
        .nav-links {
            display: flex;
            align-items: center;
            gap: 1.5rem;
        }
        .nav-links a {
            color: var(--text-secondary);
            text-decoration: none;
            font-size: 0.9rem;
            font-weight: 500;
            transition: color 0.2s;
        }
        .nav-links a:hover { color: var(--text-primary); }

        /* ===== BUTTONS ===== */
        .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 0.8rem 1.8rem;
            border-radius: 12px;
            font-family: inherit;
            font-weight: 600;
            font-size: 1rem;
            text-decoration: none;
            border: none;
            cursor: pointer;
            transition: all 0.2s;
        }
        .btn-primary { background: var(--accent); color: #fff; }
        .btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,107,53,0.3); }
        .btn-outline { background: transparent; color: var(--text-primary); border: 2px solid var(--bg-tertiary); }
        .btn-outline:hover { border-color: var(--text-secondary); transform: translateY(-2px); }
        .btn-nano { background: var(--nano); color: #fff; }
        .btn-nano:hover { background: var(--nano-dark); transform: translateY(-2px); box-shadow: 0 8px 24px var(--nano-glow); }
        .btn-sm { padding: 0.5rem 1.25rem; font-size: 0.9rem; }
        .btn-full { width: 100%; margin-top: 0.5rem; }

        /* ===== HERO ===== */
        .hero {
            min-height: 100vh;
            min-height: 100dvh;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-align: center;
            padding: 5rem 1.5rem 3rem;
            position: relative;
            overflow: hidden;
        }
        .hero::before {
            content: '';
            position: absolute;
            inset: 0;
            background:
                radial-gradient(ellipse at 20% 50%, rgba(255,107,53,0.1) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 20%, rgba(32,156,233,0.08) 0%, transparent 50%),
                radial-gradient(ellipse at 50% 80%, rgba(168,85,247,0.06) 0%, transparent 50%);
            animation: heroGlow 8s ease-in-out infinite alternate;
        }
        @keyframes heroGlow {
            0% { opacity: 0.7; }
            100% { opacity: 1; }
        }

        /* Particles */
        .particles {
            position: absolute;
            inset: 0;
            pointer-events: none;
            overflow: hidden;
        }
        .particle {
            position: absolute;
            font-size: 1.6rem;
            opacity: 0.12;
            animation: floatUp linear infinite;
        }
        @keyframes floatUp {
            0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
            10% { opacity: 0.12; }
            90% { opacity: 0.12; }
            100% { transform: translateY(-10vh) rotate(360deg); opacity: 0; }
        }
        @media (prefers-reduced-motion: reduce) {
            .particle { animation: none !important; display: none; }
            .battle-troop { animation: none !important; }
            .fade-in { transition: none !important; opacity: 1 !important; transform: none !important; }
            .hero::before { animation: none !important; }
        }

        .hero-content {
            position: relative;
            z-index: 2;
            max-width: 700px;
        }
        .hero-title {
            font-size: clamp(3rem, 8vw, 5.5rem);
            font-weight: 800;
            letter-spacing: -0.02em;
            background: linear-gradient(135deg, #fff 0%, var(--accent) 50%, var(--nano) 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            line-height: 1.1;
            margin-bottom: 0.5rem;
        }
        .hero-subtitle {
            font-size: clamp(1rem, 2.5vw, 1.3rem);
            font-weight: 600;
            color: var(--text-secondary);
            margin-bottom: 1.5rem;
            letter-spacing: 0.03em;
        }
        .hero-buttons {
            display: flex;
            gap: 1rem;
            justify-content: center;
            flex-wrap: wrap;
            margin-bottom: 3rem;
        }

        /* ===== BATTLE SCENE ===== */
        .battle-scene {
            position: relative;
            width: 100%;
            max-width: 600px;
            height: 180px;
            margin: 0 auto;
            z-index: 2;
        }
        .battle-team {
            position: absolute;
            top: 0;
            height: 100%;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        .team-blue { left: 0; }
        .team-red { right: 0; flex-direction: row-reverse; }
        .battle-troop {
            width: 60px;
            height: 60px;
            animation: troopBounce 2.5s ease-in-out infinite;
            filter: drop-shadow(0 4px 8px rgba(0,0,0,0.4));
        }
        .battle-troop:nth-child(2) { animation-delay: -0.4s; }
        .battle-troop:nth-child(3) { animation-delay: -0.8s; }
        .battle-troop:nth-child(4) { animation-delay: -1.2s; }
        @keyframes troopBounce {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-12px); }
        }
        .battle-vs {
            position: absolute;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%);
            font-size: 2rem;
            font-weight: 800;
            color: var(--accent);
            text-shadow: 0 0 20px rgba(255,107,53,0.5);
        }

        /* ===== SECTIONS ===== */
        section {
            padding: 5rem 1.5rem;
            max-width: 1100px;
            margin: 0 auto;
        }
        .section-title {
            font-size: clamp(1.8rem, 4vw, 2.5rem);
            font-weight: 700;
            text-align: center;
            margin-bottom: 0.5rem;
        }
        .section-subtitle {
            text-align: center;
            color: var(--text-secondary);
            margin-bottom: 3rem;
            font-size: 1.05rem;
        }

        /* Fade-in */
        .fade-in {
            opacity: 0;
            transform: translateY(30px);
            transition: opacity 0.6s ease, transform 0.6s ease;
        }
        .fade-in.visible {
            opacity: 1;
            transform: translateY(0);
        }

        /* ===== FEATURES ===== */
        .features-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 1.5rem;
        }
        .feature-card {
            background: var(--bg-secondary);
            border-radius: 16px;
            padding: 1.75rem;
            text-align: center;
            border: 1px solid var(--bg-tertiary);
            transition: transform 0.2s, border-color 0.2s;
        }
        .feature-card:hover { transform: translateY(-4px); border-color: var(--accent); }
        .feature-icon { font-size: 2.2rem; margin-bottom: 0.75rem; }
        .feature-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
        .feature-card p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.5; }

        /* ===== HOW IT WORKS ===== */
        .steps {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 1.5rem;
            max-width: 900px;
            margin: 0 auto;
        }
        .step {
            text-align: center;
            background: var(--bg-secondary);
            padding: 1.5rem 1rem;
            border-radius: 12px;
            border: 1px solid var(--bg-tertiary);
            position: relative;
        }
        .step-num {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: var(--accent);
            color: #fff;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 0.95rem;
            margin-bottom: 0.75rem;
        }
        .step h4 { font-size: 0.95rem; margin-bottom: 0.4rem; }
        .step p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.4; }

        /* ===== NANO FAUCET SECTION ===== */
        .nano-section {
            background: linear-gradient(135deg, rgba(32,156,233,0.08) 0%, rgba(32,156,233,0.02) 100%);
            border: 1px solid rgba(32,156,233,0.2);
            border-radius: 24px;
            padding: 3.5rem 2.5rem;
            max-width: 900px;
            margin: 0 auto;
            text-align: center;
        }
        .nano-section .section-title { color: var(--nano); }
        .nano-badge {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            background: rgba(32,156,233,0.15);
            border: 1px solid rgba(32,156,233,0.3);
            border-radius: 8px;
            padding: 0.5rem 1rem;
            font-size: 0.9rem;
            color: var(--nano);
            font-weight: 600;
            margin-bottom: 1.5rem;
        }
        .nano-features {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 1.5rem;
            margin: 2rem 0;
            text-align: left;
        }
        .nano-feature {
            background: rgba(32,156,233,0.06);
            border-radius: 12px;
            padding: 1.25rem;
            border: 1px solid rgba(32,156,233,0.12);
        }
        .nano-feature h4 { font-size: 0.95rem; margin-bottom: 0.4rem; color: var(--nano); }
        .nano-feature p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.5; }

        /* ===== CARD SHOWCASE ===== */
        .card-showcase-wrapper {
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: none;
            padding-bottom: 1rem;
        }
        .card-showcase-wrapper::-webkit-scrollbar { display: none; }
        .card-showcase {
            display: flex;
            gap: 1rem;
            padding: 0.5rem 0;
            min-width: min-content;
            justify-content: center;
        }
        .showcase-card {
            flex-shrink: 0;
            width: 120px;
            background: var(--bg-secondary);
            border-radius: 12px;
            padding: 1rem 0.75rem 0.75rem;
            text-align: center;
            border: 2px solid var(--bg-tertiary);
            transition: transform 0.2s;
        }
        .showcase-card:hover { transform: translateY(-4px); }
        .showcase-card.common { border-color: var(--rarity-common); }
        .showcase-card.rare { border-color: var(--rarity-rare); }
        .showcase-card.epic { border-color: var(--rarity-epic); }
        .showcase-card.legendary { border-color: var(--rarity-legendary); }
        .showcase-card svg {
            width: 56px;
            height: 56px;
            margin-bottom: 0.4rem;
        }
        .showcase-card .card-name {
            font-size: 0.78rem;
            font-weight: 600;
            margin-bottom: 0.2rem;
        }
        .showcase-card .card-rarity {
            font-size: 0.65rem;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            color: var(--text-secondary);
        }

        /* ===== LIVE STATS ===== */
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 1.5rem;
            text-align: center;
        }
        .stat-card {
            background: var(--bg-secondary);
            border-radius: 16px;
            padding: 1.75rem 1rem;
            border: 1px solid var(--bg-tertiary);
        }
        .stat-value {
            font-size: 2rem;
            font-weight: 800;
            color: var(--accent);
            margin-bottom: 0.25rem;
        }
        .stat-value.nano-color { color: var(--nano); }
        .stat-label {
            font-size: 0.8rem;
            color: var(--text-secondary);
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        /* ===== SPONSOR ===== */
        .sponsor-banner {
            text-align: center;
            padding: 3rem 1.5rem;
            max-width: 700px;
            margin: 0 auto;
        }
        .sponsor-banner p {
            color: var(--text-secondary);
            margin-bottom: 1rem;
            font-size: 1rem;
        }

        /* ===== MODAL ===== */
        .modal-overlay {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.7);
            z-index: 1000;
            align-items: center;
            justify-content: center;
            padding: 1rem;
            backdrop-filter: blur(4px);
        }
        .modal-overlay.active { display: flex; }
        .modal {
            background: var(--bg-secondary);
            border-radius: 16px;
            padding: 2rem;
            width: 100%;
            max-width: 400px;
            border: 1px solid var(--bg-tertiary);
            position: relative;
        }
        .modal-close {
            position: absolute;
            top: 1rem;
            right: 1rem;
            background: none;
            border: none;
            color: var(--text-secondary);
            font-size: 1.5rem;
            cursor: pointer;
            line-height: 1;
        }
        .modal h2 {
            font-size: 1.5rem;
            margin-bottom: 1.5rem;
            text-align: center;
        }
        .form-group { margin-bottom: 1rem; }
        .form-group label {
            display: block;
            font-size: 0.85rem;
            font-weight: 600;
            margin-bottom: 0.4rem;
            color: var(--text-secondary);
        }
        .form-group input {
            width: 100%;
            padding: 0.75rem 1rem;
            border-radius: 8px;
            border: 1px solid var(--bg-tertiary);
            background: var(--bg-primary);
            color: var(--text-primary);
            font-family: inherit;
            font-size: 1rem;
            outline: none;
            transition: border-color 0.2s;
        }
        .form-group input:focus { border-color: var(--accent); }
        .form-error {
            color: #ef4444;
            font-size: 0.85rem;
            margin-top: 0.5rem;
            min-height: 1.2em;
        }
        .modal-tabs {
            display: flex;
            margin-bottom: 1.5rem;
            border-radius: 8px;
            overflow: hidden;
            border: 1px solid var(--bg-tertiary);
        }
        .modal-tab {
            flex: 1;
            padding: 0.6rem;
            text-align: center;
            font-weight: 600;
            font-size: 0.9rem;
            cursor: pointer;
            background: var(--bg-primary);
            color: var(--text-secondary);
            border: none;
            font-family: inherit;
            transition: all 0.2s;
        }
        .modal-tab.active { background: var(--accent); color: #fff; }

        /* ===== FOOTER ===== */
        .footer {
            text-align: center;
            padding: 3rem 1.5rem;
            border-top: 1px solid var(--bg-tertiary);
            color: var(--text-secondary);
            font-size: 0.9rem;
        }
        .footer-links {
            display: flex;
            gap: 2rem;
            justify-content: center;
            flex-wrap: wrap;
            margin-bottom: 1rem;
        }
        .footer-links a {
            color: var(--text-secondary);
            text-decoration: none;
            transition: color 0.2s;
        }
        .footer-links a:hover { color: var(--text-primary); }

        /* ===== MOBILE RESPONSIVE ===== */
        .hide-mobile { display: inline; }

        @media (max-width: 768px) {
            .hide-mobile { display: none !important; }

            /* Nav compact */
            .landing-nav {
                padding: 0.5rem 1rem;
            }
            .nav-links {
                gap: 0.75rem;
            }

            /* Features: stack vertically */
            .features-grid {
                grid-template-columns: 1fr;
                gap: 1rem;
            }

            /* Steps: 2 columns then stack */
            .steps {
                grid-template-columns: repeat(2, 1fr);
                gap: 1rem;
            }

            /* Stats: 2x2 grid */
            .stats-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 1rem;
            }

            /* Nano features: stack */
            .nano-features {
                grid-template-columns: 1fr;
                gap: 1rem;
            }

            /* Nano section: less padding */
            .nano-section {
                padding: 2rem 1.25rem;
                border-radius: 16px;
            }

            /* Sections: less padding */
            section {
                padding: 3rem 1rem;
            }

            /* Hero: less bottom padding */
            .hero {
                padding: 4rem 1rem 2rem;
                min-height: auto;
            }

            /* Battle scene: smaller */
            .battle-scene {
                height: 120px;
                max-width: 100%;
            }
            .battle-troop {
                width: 40px;
                height: 40px;
            }
            .battle-vs {
                font-size: 1.5rem;
            }

            /* Card showcase: allow horizontal scroll gracefully */
            .card-showcase {
                justify-content: flex-start;
                padding: 0.5rem 1rem;
            }
            .showcase-card {
                width: 100px;
            }

            /* Hero buttons: full width on very small */
            .hero-buttons {
                flex-direction: column;
                align-items: center;
            }
            .hero-buttons .btn {
                width: 100%;
                max-width: 280px;
            }

            /* Footer */
            .footer-links {
                gap: 1rem;
                flex-direction: column;
            }
        }

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

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

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

            .hero-title {
                font-size: clamp(2.2rem, 10vw, 3.5rem);
            }

            .landing-nav .logo {
                font-size: 1rem;
            }

            .feature-card {
                padding: 1.25rem;
            }
        }
