/* CSS Variables */
:root {
    --bg-dark: #0d0d14;
    --bg-card: #151520;
    --bg-elevated: #1a1a28;
    --text-primary: #ffffff;
    --text-secondary: #8b8b9e;
    --text-muted: #5a5a6e;
    --accent-green: #b448e1;
    --accent-pink: #b448e1;
    --accent-purple: #9c4dff;
    --accent-cyan: #00d4ff;
    --gradient-main: linear-gradient(135deg, var(--accent-green) 0%, var(--accent-cyan) 100%);
    --gradient-pink: linear-gradient(135deg, var(--accent-pink) 0%, var(--accent-purple) 100%);
    --border-subtle: rgba(255, 255, 255, 0.06);
    --glow-green: rgba(0, 230, 118, 0.4);
    --glow-pink: rgba(255, 77, 109, 0.4);
    --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'Space Mono', monospace;
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Animated Background */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

.glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
    animation: float 20s ease-in-out infinite;
}

.glow-1 {
    width: 600px;
    height: 600px;
    background: var(--glow-green);
    top: -200px;
    right: -200px;
    opacity: 0.3;
}

.glow-2 {
    width: 500px;
    height: 500px;
    background: var(--glow-pink);
    bottom: -150px;
    left: -150px;
    opacity: 0.25;
    animation-delay: -7s;
}

.glow-3 {
    width: 400px;
    height: 400px;
    background: var(--accent-purple);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.15;
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(-30px, -20px) scale(1.02); }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1rem 2rem;
    background: rgba(13, 13, 20, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    animation: slideDown 0.8s var(--ease-out-expo) forwards;
}

@keyframes slideDown {
    from { 
        opacity: 0; 
        transform: translateY(-100%); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.accent {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-cta {
    padding: 0.625rem 1.25rem;
    background: var(--gradient-main);
    color: var(--bg-dark);
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    border-radius: 100px;
    transition: all 0.3s var(--ease-out-expo);
    box-shadow: 0 4px 20px var(--glow-green);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px var(--glow-green);
}

/* Hero Section */
.hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 8rem 2rem 4rem;
}

.hero-content {
    animation: fadeInUp 1s var(--ease-out-expo) 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 230, 118, 0.1);
    border: 1px solid rgba(0, 230, 118, 0.2);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--accent-green);
    margin-bottom: 1.5rem;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-green);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 480px;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s var(--ease-out-expo);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-main);
    color: var(--bg-dark);
    box-shadow: 0 4px 24px var(--glow-green);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px var(--glow-green);
}

.btn-secondary {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
    background: var(--bg-card);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    font-family: var(--font-mono);
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-subtle);
}

/* Phone Mockup */
.hero-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeInUp 1s var(--ease-out-expo) 0.4s both;
}

.phone-mockup {
    position: relative;
}

.phone-frame {
    position: relative;
    width: 280px;
    height: 580px;
    background: linear-gradient(145deg, #2a2a3d 0%, #1a1a28 100%);
    border-radius: 40px;
    padding: 12px;
    box-shadow: 
        0 0 0 1px rgba(255, 255, 255, 0.1),
        0 25px 80px -20px rgba(0, 0, 0, 0.8),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.phone-notch {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 28px;
    background: #0d0d14;
    border-radius: 0 0 16px 16px;
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 28px;
    opacity: 0;
    position: absolute;
    top: 12px;
    left: 12px;
    width: calc(100% - 24px);
    height: calc(100% - 24px);
    transition: opacity 0.5s var(--ease-out-expo);
}

.phone-screen.active {
    opacity: 1;
}

.phone-glow {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 100px;
    background: var(--accent-green);
    filter: blur(60px);
    opacity: 0.4;
}

.screenshot-dots {
    display: flex;
    gap: 0.75rem;
    margin-top: 2rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
}

.dot.active {
    background: var(--accent-green);
    border-color: var(--accent-green);
    box-shadow: 0 0 12px var(--glow-green);
}

.dot:hover:not(.active) {
    background: var(--bg-card);
}

/* Features Section */
.features {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    padding: 0.375rem 1rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    transition: all 0.4s var(--ease-out-expo);
    animation: fadeInUp 0.8s var(--ease-out-expo) both;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 230, 118, 0.2);
    box-shadow: 0 20px 60px -20px var(--glow-green);
}

.feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 230, 118, 0.1);
    border-radius: 14px;
    margin-bottom: 1.25rem;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--accent-green);
}

.feature-icon.icon-pink {
    background: rgba(255, 77, 109, 0.1);
}

.feature-icon.icon-pink svg {
    stroke: var(--accent-pink);
}

.feature-icon.icon-purple {
    background: rgba(156, 77, 255, 0.1);
}

.feature-icon.icon-purple svg {
    stroke: var(--accent-purple);
}

.feature-icon.icon-cyan {
    background: rgba(0, 212, 255, 0.1);
}

.feature-icon.icon-cyan svg {
    stroke: var(--accent-cyan);
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Games Section */
.games {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem 6rem;
}

.games-showcase {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.game-pill {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 100px;
    font-weight: 500;
    transition: all 0.3s var(--ease-out-expo);
    animation: fadeInUp 0.6s var(--ease-out-expo) both;
}

.game-pill:nth-child(1) { animation-delay: 0.1s; }
.game-pill:nth-child(2) { animation-delay: 0.15s; }
.game-pill:nth-child(3) { animation-delay: 0.2s; }
.game-pill:nth-child(4) { animation-delay: 0.25s; }
.game-pill:nth-child(5) { animation-delay: 0.3s; }
.game-pill:nth-child(6) { animation-delay: 0.35s; }

.game-pill:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 230, 118, 0.3);
    box-shadow: 0 10px 40px -10px var(--glow-green);
}

.game-icon {
    font-size: 1.25rem;
}

/* Download Section */
.download {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin: 0 auto;
    padding: 4rem 2rem 6rem;
}

.download-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4rem;
    align-items: center;
    padding: 3.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 28px;
    position: relative;
    overflow: hidden;
}

.download-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-main);
}

.download-title {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.download-text {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    max-width: 400px;
    line-height: 1.7;
}

.download-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.download-badge svg {
    color: var(--accent-green);
}

.download-qr {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.qr-container {
    position: relative;
    padding: 1.25rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px -20px rgba(0, 230, 118, 0.3);
}

.qr-code {
    width: 180px;
    height: 180px;
}

.qr-code canvas,
.qr-code img {
    border-radius: 8px;
}

.qr-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 198px;
    height: 198px;
    background: white;
    border-radius: 10px;
    padding: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.qr-logo img {
    width: 100%;
    height: 100%;
    border-radius: 6px;
}

.qr-hint {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Footer */
.footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border-subtle);
    padding: 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.footer-name {
    font-size: 1rem;
    font-weight: 600;
}

.footer-copy {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--accent-green);
}

/* Responsive */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 7rem;
        gap: 3rem;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        order: -1;
    }

    .phone-frame {
        width: 240px;
        height: 500px;
    }

    .download-card {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2.5rem;
    }

    .download-text {
        margin-left: auto;
        margin-right: auto;
    }

    .download-badge {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .navbar {
        padding: 0.875rem 1.25rem;
    }

    .hero {
        padding: 6rem 1.25rem 3rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.25rem;
    }

    .stat-divider {
        display: none;
    }

    .features,
    .games,
    .download {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .download-card {
        padding: 2rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        gap: 1.25rem;
    }
}

/* Scroll Animation Trigger */
.feature-card,
.game-pill {
    opacity: 0;
}

.feature-card.visible,
.game-pill.visible {
    opacity: 1;
}
