:root {
    /* Palette */
    --brand-navy: #022550;
    --brand-orange: #EF7B45;
    --brand-blue: #8FA1E0;
    --brand-amber: #edae49;
    --brand-pink: #f092b0; /* NEW: Added for the bouncing ball */
    
    /* NEW: The Gradient */
    --brand-gradient: linear-gradient(135deg, #EF7B45 0%, #8FA1E0 100%);
    --brand-gradient-hover: linear-gradient(135deg, #ff8c56 0%, #aabbf5 100%);

    /* Theme Colors - Made slightly clearer/glassy */
    --bg-void: #05070a;       
    --bg-surface: #0f121d;    
    --bg-card: rgba(255, 255, 255, 0.03); /* Keep low opacity, we rely on blur now */
    
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(255, 255, 255, 0.15);
    --card-bg: rgba(255, 255, 255, 0.04);
    --card-border: rgba(255, 255, 255, 0.1);
    --text-main: #ffffff;
    --text-muted: #a0aec0; /* Slightly lighter gray for better readability */
    
    /* Fonts */
    --font-main: 'Inter', sans-serif;
    --font-head: 'Outfit', sans-serif;
}

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

body {
    background-color: var(--bg-void);
    color: var(--text-main);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.5;
}

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; color: white; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
img { display: block; max-width: 100%; }
.section-spacing { margin-top: 100px; }

/* --- Ambient Backgrounds --- */
.bg-noise {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none; z-index: 0; opacity: 0.4;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
.text-orange { color: var(--brand-orange); }
.text-blue { color: var(--brand-blue); }
.text-amber { color: var(--brand-amber); }
.center { text-align: center; }

.text-gradient {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}
/* Contact Modal CSS */
    .modal-overlay {
        display: none; 
        position: fixed; 
        z-index: 9999; 
        left: 0; 
        top: 0; 
        width: 100%; 
        height: 100%; 
        background-color: rgba(0, 0, 0, 0.75); 
        backdrop-filter: blur(5px);
        align-items: center; 
        justify-content: center;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    .modal-overlay.active {
        display: flex;
        opacity: 1;
    }
    .modal-content {
        background-color: #1a1a1a;
        padding: 30px;
        border-radius: 12px;
        width: 90%;
        max-width: 400px;
        position: relative;
        text-align: left;
        box-shadow: 0 10px 40px rgba(0,0,0,0.6);
        border: 1px solid #333;
        transform: translateY(-20px);
        transition: transform 0.3s ease;
        color: #fff;
    }
    .modal-overlay.active .modal-content {
        transform: translateY(0);
    }
    .modal-close {
        position: absolute;
        top: 15px;
        right: 15px;
        background: none;
        border: none;
        color: #888;
        font-size: 1.2rem;
        cursor: pointer;
        transition: color 0.2s;
    }
    .modal-close:hover { color: #fff; }
    
    .copy-email-box {
        display: flex;
        align-items: center;
        justify-content: space-between;
        background-color: #2a2a2a;
        padding: 12px 15px;
        border-radius: 8px;
        border: 1px solid #444;
    }
    .copy-email-box span {
        font-family: monospace;
        font-size: 1rem;
        color: #fff;
        user-select: all;
    }
    .copy-btn {
        background: #3a3a3a;
        color: #fff;
        border: none;
        padding: 8px 12px;
        border-radius: 6px;
        cursor: pointer;
        font-size: 0.9rem;
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        gap: 6px;
    }
    .copy-btn:hover { background: #4a4a4a; }
    .copy-btn.copied {
        background: #28a745; 
        color: white;
    }
/* --- CTA Button --- */
.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--brand-gradient);
    color: white;
    padding: 14px 32px;
    border-radius: 100px;
    font-weight: 600;
    font-family: var(--font-head);
    font-size: 1.1rem;
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
    border: none;
    cursor: pointer;
    margin-top: 15px;
}
.cta-btn:hover {
    background: var(--brand-gradient-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(239, 123, 69, 0.3);
    color: white;
}

/* --- Navbar --- */
.navbar {
    position: fixed; top: 20px; left: 0; width: 100%;
    display: flex; justify-content: center; z-index: 1000;
    padding: 0 20px;
}
.nav-pill {
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-radius: 24px;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    padding: 10px 24px;
    display: flex; align-items: center; gap: 32px; flex-wrap: nowrap;
    position: relative;
    background-clip: padding-box;
    border: 1px solid transparent;
}
.nav-pill::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 100px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(239, 123, 69, 0.3), rgba(143, 161, 224, 0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}
.logo { font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; color: white; }
.logo-text { font-weight: 800; }
.nav-link {
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
}
.nav-link:hover, .nav-link.active {
    background: var(--brand-gradient, linear-gradient(135deg, #EF7B45 0%, #8FA1E0 100%));
    color: #fff;
}
.nav-links-desktop { display: flex; gap: 20px; align-items: center; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.lang-dropdown { position: relative; }
.lang-btn {
    background: rgba(255,255,255,0.05); border: 1px solid var(--border-subtle);
    color: white; padding: 6px 14px; border-radius: 20px;
    cursor: pointer; display: flex; align-items: center; gap: 6px; font-size: 0.85rem;
    transition: 0.2s;
}
.lang-btn:hover { background: rgba(255,255,255,0.1); }
.lang-menu {
    display: none; position: absolute; top: 120%; right: 0;
    background: #111; border: 1px solid var(--border-subtle);
    border-radius: 12px; overflow: hidden; min-width: 120px;
}
.lang-dropdown.active .lang-menu { display: block; }
.lang-menu a {
    display: block; 
    width: 100%; 
    text-align: left; 
    background: none; 
    border: none;
    color: var(--text-muted); 
    padding: 10px 16px; 
    cursor: pointer; 
    font-size: 0.9rem;
    text-decoration: none; 
    box-sizing: border-box; 
}
.lang-menu a:hover { background: rgba(255,255,255,0.05); color: white; }
.menu-btn { display: none; background: none; border: none; color: white; font-size: 1.2rem; }

.mobile-menu {
    position: absolute;
    top: 100%; 
    left: 20px;
    right: 20px;
    background: rgba(20, 25, 40, 0.95);    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    padding: 16px;
    display: none;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    z-index: 1001;
}
.mobile-menu.active {
    display: flex;
    animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-nav-link {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-main);
    padding: 14px 20px;
    border-radius: 16px;
    text-align: left;
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.2s ease;
    border: 1px solid transparent;
}
.mobile-nav-link:hover {
    background: var(--brand-gradient);
    color: white;
    transform: translateX(4px);
    border-color: rgba(255,255,255,0.1);
}
.visually-hidden {
    position: absolute !important; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}
@media (max-width: 900px) {
    .nav-links-desktop { display: none; }
    .menu-btn {
        display: flex; align-items: center; justify-content: center;
        width: 40px; height: 40px; background: rgba(255,255,255,0.05);
        border-radius: 50%; cursor: pointer;
    }
    .nav-pill { gap: 15px; width: 100%; justify-content: space-between; }
    .footer-content { flex-direction: column; gap: 30px; text-align: center; }
}
@media (max-width: 600px) {
    .nav-pill { gap: 8px; padding: 6px 20px; }
    .logo { font-size: 0.95rem; }
    .nav-link { font-size: 1rem; padding: 12px 10px; }
}

/* --- SECTION 1: Video Hero --- */
.hero { padding: 140px 0 60px; position: relative; }
.hero-video-wrapper { position: relative; width: 100%; max-width: 100%; margin: 0 auto; z-index: 1; }
.video-glass-frame {
    position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 24px;
    overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5); z-index: 2;
}
.inline-video { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-glow {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 80%; height: 80%; background: var(--brand-gradient);
    filter: blur(100px); opacity: 0.2; z-index: 1; pointer-events: none;
}

/* Features Grid Section */
.features-section { display: flex; justify-content: center; align-items: center; width: 100%; flex-direction: column; }
.features-grid {
    display: flex; justify-content: center; align-items: stretch; gap: 40px;
    margin: 60px 0; width: 100%; max-width: 1100px;
}
.feature-card {
    background: var(--card-bg); border: 1px solid var(--card-border);
    border-radius: 24px; padding: 40px 30px; text-align: center;
    flex: 1 1 0; min-width: 220px; max-width: 340px;
    display: flex; flex-direction: column; align-items: center; gap: 18px;
}
.feature-icon { font-size: 2.5rem; color: var(--brand-orange); margin-bottom: 10px; }

/* --- MoonBoard Integration Section --- */
.moonboard-wrapper {
    display: flex;
    align-items: center;
    gap: 50px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 32px;
    padding: 50px;
    position: relative;
    overflow: hidden;
}
.moonboard-wrapper::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 100%; height: 100%;
    background: radial-gradient(circle, rgba(143, 161, 224, 0.15) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}
.moonboard-text {
    flex: 1;
    min-width: 300px;
    z-index: 1;
}
.moonboard-text h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    line-height: 1.1;
}
.moonboard-text p {
    color: var(--text-muted);
    font-size: 1.15rem;
    margin-bottom: 20px;
    line-height: 1.6;
}
.moonboard-image {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    z-index: 1;
}
.moonboard-image img {
    max-width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
    border: 1px solid var(--border-highlight);
    background: black;
}

@media (max-width: 768px) {
    .moonboard-wrapper {
        flex-direction: column-reverse;
        padding: 40px 24px;
        text-align: center;
    }
    .moonboard-text h2 { font-size: 2.2rem; }
}
.badge {
    background: rgba(41, 121, 255, 0.15); /* A subtle blue to stand out */
    color: #4facfe;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
    display: inline-block;
    letter-spacing: 1px;
}

.moonboard-text .lead {
    font-size: 1.15rem;
    color: #e0e0e0;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.benefit-box {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.benefit-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: rgba(255,255,255,0.03);
    padding: 16px;
    border-radius: 8px;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.benefit-item:hover {
    background: rgba(255,255,255,0.06);
    border-left-color: #ffbf00; /* Amber hover effect */
}

.benefit-item i {
    font-size: 1.5rem;
    margin-top: 2px;
}

/* Ensure these heading tags look like strong text, not giant headers */
.benefit-item h3 {
    font-size: 1.1rem;
    color: #ffffff;
    margin: 0 0 6px 0;
    font-weight: 600;
}

.benefit-item p {
    font-size: 0.95rem;
    color: #b0b0b0;
    margin: 0;
    line-height: 1.5;
}

.text-blue { color: #4facfe; }
.text-amber { color: #ffbf00; }
.text-green { color: #00e676; }

/* --- Interactive Game Modes Animations --- */
.game-icon-circle {
    width: 60px; height: 60px; background: rgba(255,255,255,0.05);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; margin-top: 10px;
}
.pixel-wall {
    width: 100%; height: 180px; background: #05070a;
    display: grid; grid-template-columns: repeat(10, 1fr);
    grid-template-rows: repeat(8, 1fr); gap: 4px; padding: 10px; border-radius: 12px;
    border: 2px solid #1a1a1a; position: relative; overflow: hidden; margin-bottom: 10px;
}
.pixel-block {
    width: 100%; height: 100%; background: #14151a;
    box-shadow: inset -1px -1px 0px #000, inset 1px 1px 0px rgba(255,255,255,0.02); border-radius: 1px;
}

/* Lava Animations */
.lava-row-8 .pixel-block { animation: lavaR8 16s infinite steps(1); }
.lava-row-7 .pixel-block { animation: lavaR7 16s infinite steps(1); }
.lava-row-6 .pixel-block { animation: lavaR6 16s infinite steps(1); }
.lava-row-5 .pixel-block { animation: lavaR5 16s infinite steps(1); }
.lava-row-4 .pixel-block { animation: lavaR4 16s infinite steps(1); }
.lava-row-3 .pixel-block { animation: lavaR3 16s infinite steps(1); }
.lava-row-2 .pixel-block { animation: lavaR2 16s infinite steps(1); }
.lava-row-1 .pixel-block { animation: lavaR1 16s infinite steps(1); }
@keyframes lavaR8 { 0%, 100% { background: var(--brand-orange); box-shadow: inset -2px -4px 0px #b04d1d, inset 2px 2px 0px #ffad82, 0 4px 12px rgba(239,69,113,0.3); transform: translateY(-2px); } }
@keyframes lavaR7 { 0%, 12.4% { background: #14151a; transform: translateY(0); box-shadow: inset -1px -1px 0px #000; } 12.5%, 100% { background: var(--brand-orange); box-shadow: inset -2px -4px 0px #b04d1d, inset 2px 2px 0px #ffad82; transform: translateY(-2px); } }
@keyframes lavaR6 { 0%, 24.9% { background: #14151a; transform: translateY(0); box-shadow: inset -1px -1px 0px #000; } 25%, 100% { background: var(--brand-orange); box-shadow: inset -2px -4px 0px #b04d1d, inset 2px 2px 0px #ffad82; transform: translateY(-2px); } }
@keyframes lavaR5 { 0%, 37.4% { background: #14151a; transform: translateY(0); box-shadow: inset -1px -1px 0px #000; } 37.5%, 100% { background: var(--brand-orange); box-shadow: inset -2px -4px 0px #b04d1d, inset 2px 2px 0px #ffad82; transform: translateY(-2px); } }
@keyframes lavaR4 { 0%, 49.9% { background: #14151a; transform: translateY(0); box-shadow: inset -1px -1px 0px #000; } 50%, 100% { background: var(--brand-orange); box-shadow: inset -2px -4px 0px #b04d1d, inset 2px 2px 0px #ffad82; transform: translateY(-2px); } }
@keyframes lavaR3 { 0%, 62.4% { background: #14151a; transform: translateY(0); box-shadow: inset -1px -1px 0px #000; } 62.5%, 100% { background: var(--brand-orange); box-shadow: inset -2px -4px 0px #b04d1d, inset 2px 2px 0px #ffad82; transform: translateY(-2px); } }
@keyframes lavaR2 { 0%, 74.9% { background: #14151a; transform: translateY(0); box-shadow: inset -1px -1px 0px #000; } 75%, 100% { background: var(--brand-orange); box-shadow: inset -2px -4px 0px #b04d1d, inset 2px 2px 0px #ffad82; transform: translateY(-2px); } }
@keyframes lavaR1 { 0%, 87.4% { background: #14151a; transform: translateY(0); box-shadow: inset -1px -1px 0px #000; } 87.5%, 100% { background: var(--brand-orange); box-shadow: inset -2px -4px 0px #b04d1d, inset 2px 2px 0px #ffad82; transform: translateY(-2px); } }

/* Reaction Hold Animation */
.hold-grid .pixel-block:nth-child(24) { animation: holdPulse 10s infinite steps(1) 0s; }
.hold-grid .pixel-block:nth-child(52) { animation: holdPulse 10s infinite steps(1) 2s; }
.hold-grid .pixel-block:nth-child(15) { animation: holdPulse 10s infinite steps(1) 4s; }
.hold-grid .pixel-block:nth-child(68) { animation: holdPulse 10s infinite steps(1) 6s; }
.hold-grid .pixel-block:nth-child(41) { animation: holdPulse 10s infinite steps(1) 8s; }
@keyframes holdPulse {
    0% { background: var(--brand-blue); box-shadow: inset -2px -4px 0px #5c6ba1, inset 2px 2px 0px #c3cefc, 0 4px 12px rgba(143,161,224,0.3); transform: translateY(-2px); }
    20%, 100% { background: #14151a; box-shadow: inset -1px -1px 0px #000; transform: translateY(0); }
}

/* Bouncing Ball */
.ball-active {
    background: var(--brand-pink) !important;
    box-shadow: inset -2px -4px 0px #b55d78, inset 2px 2px 0px #ffc4d6, 0 4px 12px rgba(240,146,176,0.4) !important;
    transform: translateY(-2px);
}

/* --- SECTION 3: Carousel --- */
.phone-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.phone-frame {
    border-radius: 36px; border: 3px solid #1a1a1a; box-shadow: 0 30px 80px rgba(0,0,0,0.8);
    overflow: hidden; background: #000; position: relative; z-index: 2; height: 530px; width: 255px; object-fit: cover; 
}
.carousel-section { padding: 60px 0; }
.section-head { margin-bottom: 40px; }
.section-head h2 { font-size: 2.5rem; margin-bottom: 10px; }
.section-head p { color: var(--text-muted); }
.carousel-container {
    display: flex; overflow-x: auto; scroll-behavior: smooth; gap: 30px;
    padding: 30px 50vw 30px 50vw; -ms-overflow-style: none; scroll-snap-type: x mandatory;
}
.carousel-container::-webkit-scrollbar { display: none; }
.carousel-item { flex: 0 0 auto; scroll-snap-align: center; display: flex; flex-direction: column; align-items: center; opacity: 0.4; transform: scale(0.8); transition: all 0.4s ease; }
.carousel-item.active { opacity: 1; transform: scale(1); z-index: 2; }
.carousel-item.active .phone-frame { border-color: var(--brand-blue); box-shadow: 0 10px 40px rgba(239, 123, 69, 0.2); }
.lang-tag {
    margin-top: 16px; display: flex; align-items: center; gap: 8px; font-weight: 600; background: rgba(255,255,255,0.05);
    padding: 6px 12px; border-radius: 20px; font-size: 0.9rem; color: var(--text-muted);
}
.carousel-item.active .lang-tag { color: white; background: rgba(239, 123, 69, 0.2); }
.carousel-dots { display: flex; justify-content: center; gap: 12px; margin-top: 30px; }
.carousel-dots button {
    width: 12px; height: 12px; border-radius: 50%; border: none; background-color: rgba(255, 255, 255, 0.2);
    cursor: pointer; transition: all 0.3s ease;
}
.carousel-dots button.active { background-color: var(--brand-orange); transform: scale(1.2); }

/* --- Scroll to Top Button --- */
#scrollToTopBtn {
    position: fixed; right: 24px; bottom: 32px; z-index: 1200; background: var(--brand-navy);
    color: #fff; border: none; border-radius: 50%; width: 48px; height: 48px; box-shadow: 0 4px 24px rgba(0,0,0,0.18);
    cursor: pointer; display: none; align-items: center; justify-content: center; font-size: 1.5rem;
    transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}
#scrollToTopBtn:hover { background: var(--brand-gradient-hover); transform: translateY(-4px) scale(1.08); box-shadow: 0 8px 32px rgba(0,0,0,0.28); }

/* --- Footer --- */
footer { border-top: 1px solid var(--border-subtle); padding: 60px 0 30px; background: #010205; }
.footer-content { display: flex; justify-content: space-between; align-items: center; }
.footer-left p { font-size: 0.9rem; color: var(--text-muted); margin-top: 8px; }
.socials { display: flex; gap: 16px; margin-bottom: 10px; justify-content: flex-end; }
.socials a { color: var(--text-muted); font-size: 1.2rem; }
.copyright { font-size: 0.8rem; color: #555; }

/* Mobile General Tweaks */
@media (max-width: 768px) {
    .features-section { flex-direction: column; align-items: center; }
    .features-grid { flex-direction: column; gap: 24px; align-items: center; max-width: 100%; }
    .feature-card { max-width: 100%; width: 100%; }
    .hero { padding-top: 100px; }
    .video-glass-frame { border-radius: 12px; }
    .nav-link { display: none; }
}