@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
:root {
  --bg-primary: #0f172a;
  --text-primary: #f8fafc;
  --bg-secondary: #1e293b;
  --text-secondary: #e2e8f0;
  --accent: #7c3aed;
  --nav-bg: rgba(15, 23, 42, 0.9);
}
body {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    background: var(--bg-primary);
    color: var(--text-primary);
    padding-top: 80px;
    transition: background 0.3s, color 0.3s;
    background-image: linear-gradient(to bottom right, var(--bg-primary), #1e1b4b);
}

body::before,
body::after {
    content: '';
    position: fixed;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.35;
    z-index: -1;
    pointer-events: none;
}

body::before {
    top: -140px;
    right: -120px;
    background: rgba(99, 102, 241, 0.55);
}

body::after {
    bottom: -160px;
    left: -120px;
    background: rgba(236, 72, 153, 0.45);
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section-block {
    margin-bottom: 5rem;
}

.hero-section {
    position: relative;
    overflow: hidden;
    padding: clamp(2rem, 5vw, 4rem);
    border-radius: 1.75rem;
    border: 1px solid rgba(148, 163, 184, 0.12);
    background: linear-gradient(135deg, rgba(76, 29, 149, 0.45), rgba(30, 41, 59, 0.85));
    box-shadow: 0 40px 80px -40px rgba(76, 29, 149, 0.7);
}

.hero-section::after {
    content: '';
    position: absolute;
    inset: -20%;
    background: radial-gradient(circle at top right, rgba(147, 197, 253, 0.18), transparent 55%),
                radial-gradient(circle at bottom left, rgba(196, 181, 253, 0.25), transparent 62%);
    z-index: 0;
    pointer-events: none;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 360px;
    position: relative;
    z-index: 1;
}

.hero-actions a {
    position: relative;
    z-index: 1;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 320px;
}

.hero-visual img {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 480px;
    border-radius: 1.5rem;
    box-shadow: 0 25px 60px -25px rgba(59, 130, 246, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.3);
    backdrop-filter: blur(4px);
}

.hero-blob {
    position: absolute;
    border-radius: 999px;
    opacity: 0.65;
    z-index: 1;
}

.hero-blob-1 {
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(129, 140, 248, 0.55), rgba(129, 140, 248, 0));
    top: 15%;
    right: 20%;
}

.hero-blob-2 {
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.45), rgba(236, 72, 153, 0));
    bottom: 10%;
    left: 10%;
}

.glass-panel {
    position: relative;
    border-radius: 1rem;
    border: 1px solid rgba(226, 232, 240, 0.08);
    backdrop-filter: blur(8px);
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.75), rgba(30, 41, 59, 0.35));
    box-shadow: 0 20px 50px -35px rgba(148, 163, 184, 0.6);
}

.warning-banner {
    min-height: 84px;
}

.warning-inner {
    display: flex;
    align-items: center;
    gap: 12px;
}

.warning-icon {
    width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.warning-text {
    flex: 1 1 auto;
    text-align: left;
}

/* force left alignment to override any inherited text-center */
.warning-banner .warning-text {
    text-align: left !important;
}

.warning-text p {
    margin: 0;
}

.warning-banner svg {
    display: block;
}
/* Meta Quest Hand Tracking section */
.hand-tracking-demo {
    margin: 4rem 0;
}
.hand-tracking-demo video {
    width: 100%;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}
.hand-tracking-demo ul li {
    background: rgba(99, 102, 241, 0.1);
    padding: 1rem;
    border-radius: 0.5rem;
    transition: transform 0.2s;
}
.hand-tracking-demo ul li:hover {
    transform: translateY(-2px);
    background: rgba(99, 102, 241, 0.2);
}

.download-btn {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(139, 92, 246, 0.3), 
                0 2px 4px -1px rgba(139, 92, 246, 0.2);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap; /* avoid wrapping on language changes */
}

.hero-actions a {
    min-width: 140px;
}

.download-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(139, 92, 246, 0.3), 
                0 4px 6px -2px rgba(139, 92, 246, 0.2);
}
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

a {
    transition: all 0.2s ease;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}
.video-container iframe,
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 0.5rem;
}
custom-footer {
  --footer-bg: var(--bg-secondary);
  --footer-text: var(--text-secondary);
  --footer-border: rgba(0, 0, 0, 0.1);
}

/* Stabilize the game-card dimensions */
game-card {
    display: block;
}
/* if card uses shadow DOM, we can't style inside; instead set default min-height on host */
.game-card-fixed, game-card {
    min-height: 180px;
}

.features-section .grid {
    gap: 2.75rem;
}

.hand-tracking-demo .grid > div {
    border: 1px solid rgba(148, 163, 184, 0.12);
    background: linear-gradient(160deg, rgba(30, 41, 59, 0.72), rgba(30, 41, 59, 0.3));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(4px);
}

.hand-tracking-demo .grid > div h3 {
    color: #c4b5fd;
}

.hand-tracking-demo .bg-gradient-to-r {
    border: 1px solid rgba(148, 163, 184, 0.1);
    background: linear-gradient(120deg, rgba(55, 48, 163, 0.55), rgba(30, 64, 175, 0.3));
    box-shadow: 0 25px 50px -35px rgba(30, 64, 175, 0.6);
}

.gameplay-section ul li {
    background: rgba(99, 102, 241, 0.12);
    padding: 0.9rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(99, 102, 241, 0.18);
    box-shadow: inset 0 1px 0 rgba(129, 140, 248, 0.15);
}

.download-section {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.45), rgba(147, 51, 234, 0.48));
    border-radius: 1.5rem;
    padding: clamp(2rem, 5vw, 3rem);
    border: 1px solid rgba(148, 163, 184, 0.15);
    box-shadow: 0 25px 50px -30px rgba(147, 51, 234, 0.6);
}

.download-section p {
    color: rgba(226, 232, 240, 0.9);
}

.hero-actions a:first-child {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.9), rgba(99, 102, 241, 0.7));
    border: 1px solid rgba(129, 140, 248, 0.35);
    box-shadow: 0 18px 35px -25px rgba(99, 102, 241, 0.9);
}

.hero-actions a:last-child {
    border: 1px solid rgba(129, 140, 248, 0.4);
    background: rgba(15, 23, 42, 0.65);
    box-shadow: inset 0 1px 0 rgba(129, 140, 248, 0.2);
}

/* Ensure headings keep consistent line-height */
h1, h2, h3 { line-height: 1.2; }
@media (max-width: 1024px) {
        .hero-section {
                padding: 2.5rem;
        }
        .hero-visual {
                margin-top: 2.5rem;
        }
}

@media (max-width: 768px) {
    body {
        padding-top: 60px;
    }
    .section-block {
        margin-bottom: 3.5rem;
    }
    .hero-section {
        padding: 2rem;
    }
    .hero-copy {
        min-height: 220px;
    }
    .hero-actions a {
        width: 100%;
    }
    .hero-visual img {
        max-width: 360px;
    }
    .hero-blob-1,
    .hero-blob-2 {
        opacity: 0.45;
    }
    .warning-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .warning-icon {
        width: 28px;
    }
        /* Mobile typography and spacing improvements */
        h1 {
            font-size: 2rem;
        }
        h2 {
            font-size: 1.25rem;
        }
        p, .text-xl, .text-lg {
            font-size: 0.95rem;
        }
        /* Make hero stack neatly */
        .hero-section {
            flex-direction: column;
            gap: 18px;
            padding: 1.5rem;
        }
        .hero-copy {
            min-height: auto;
            align-items: flex-start;
        }
        .hero-visual {
            width: 100%;
            display: block;
        }
        .hero-visual img {
            max-width: 100%;
            height: auto;
            border-radius: 1rem;
        }
        /* Stack and expand CTA buttons on mobile */
        .hero-actions {
            width: 100%;
            display: flex;
            flex-direction: column;
        }
        .hero-actions a {
            width: 100%;
            text-align: center;
            padding: 0.9rem 1rem;
            margin-bottom: 0.6rem;
        }
        /* Collapse feature grids to single column */
        .features-section .grid,
        .hand-tracking-demo .grid,
        .download-section .grid {
            grid-template-columns: 1fr !important;
            gap: 1rem;
        }
        .gameplay-section ul {
            max-width: 100%;
        }
        /* Reduce large paddings on download section */
        .download-section {
            padding: 1.25rem;
        }
}

.language-option {
  transition: all 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.language-option:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
