/* ===== IMPORTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ===== CSS RESET & VARIABLES ===== */
:root {
    --bg-primary: #0a0e1a;
    --bg-secondary: #0d1220;
    --bg-card: rgba(15, 20, 40, 0.6);
    --bg-card-border: rgba(50, 70, 120, 0.3);
    --text-primary: #ffffff;
    --text-secondary: #8a95b0;
    --text-muted: #5a6580;
    --accent-blue: #3b82f6;
    --accent-blue-light: #60a5fa;
    --accent-blue-glow: rgba(59, 130, 246, 0.3);
    --accent-blue-dark: #1d4ed8;
    --gradient-blue: linear-gradient(135deg, #3b82f6, #2563eb);
    --border-subtle: rgba(59, 130, 246, 0.15);
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

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

/* ===== ANIMATED BACKGROUND ===== */
.bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0 40px;
    height: 65px;
    display: flex;
    align-items: center;
    background: rgba(10, 14, 26, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(10, 14, 26, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 1px;
    text-decoration: none;
    color: var(--text-primary);
    margin-right: 50px;
}

.nav-brand span {
    color: var(--accent-blue);
}

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

.nav-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
    background: rgba(59, 130, 246, 0.1);
}

.nav-links a svg {
    width: 18px;
    height: 18px;
    opacity: 0.7;
}

.nav-links a.nav-partner-btn {
    background: rgba(88, 101, 242, 0.18);
    border: 1px solid rgba(88, 101, 242, 0.45);
    border-radius: 50px;
    padding: 7px 18px;
    color: #e0e7ff;
    box-shadow: 0 0 16px rgba(88, 101, 242, 0.22);
    margin-left: 6px;
}

.nav-links a.nav-partner-btn:hover {
    background: rgba(88, 101, 242, 0.32);
    border-color: #5865F2;
    color: #ffffff;
    box-shadow: 0 0 22px rgba(88, 101, 242, 0.45);
    transform: translateY(-1px);
}

.nav-links a.nav-partner-btn svg {
    opacity: 1;
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 60px;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 50px;
    border: 1px solid var(--bg-card-border);
    background: var(--bg-card);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent-blue-light);
    margin-bottom: 30px;
    animation: fadeInDown 0.8s ease;
}

.hero-badge .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-blue);
    box-shadow: 0 0 10px var(--accent-blue-glow);
    animation: pulse-dot 2s ease-in-out infinite;
}

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

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    letter-spacing: -1px;
    line-height: 1.1;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease 0.1s both;
}

.hero h1 .highlight {
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 8px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-description .blue-text {
    color: var(--accent-blue-light);
    font-weight: 600;
}

.hero-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 50px;
    animation: fadeInUp 0.8s ease 0.3s both;
}

/* ===== VIDEO PREVIEW ===== */
.video-preview {
    position: relative;
    width: 100%;
    max-width: 850px;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    border: 1px solid var(--bg-card-border);
    background: linear-gradient(135deg, rgba(15, 25, 50, 0.8), rgba(10, 15, 35, 0.9));
    overflow: hidden;
    cursor: pointer;
    animation: fadeInUp 0.8s ease 0.4s both;
    transition: all 0.4s ease;
}

.video-preview:hover {
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 0 60px rgba(59, 130, 246, 0.1);
    transform: translateY(-4px);
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--accent-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 40px var(--accent-blue-glow);
    transition: all 0.3s ease;
}

.video-play-btn svg {
    width: 28px;
    height: 28px;
    fill: white;
    margin-left: 4px;
}

.video-preview:hover .video-play-btn {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 0 60px var(--accent-blue-glow);
}

/* ===== SUPPORTED GAMES SECTION ===== */
.section {
    position: relative;
    z-index: 1;
    padding: 80px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.3rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-title .bar {
    width: 4px;
    height: 28px;
    background: var(--accent-blue);
    border-radius: 2px;
}

.version-badge {
    padding: 8px 18px;
    border-radius: 50px;
    border: 1px solid var(--bg-card-border);
    background: var(--bg-card);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.game-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--bg-card-border);
    background: var(--bg-card);
    aspect-ratio: 4 / 5;
    transition: all 0.4s ease;
    cursor: pointer;
}

.game-card:hover {
    border-color: rgba(59, 130, 246, 0.4);
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.game-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.game-card:hover img {
    transform: scale(1.05);
}

.game-card .game-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 16px 16px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.game-card.info-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    gap: 12px;
}

.game-card.info-card .info-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--accent-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-blue);
    font-size: 1.2rem;
    font-weight: 700;
}

.game-card.info-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ===== DOWNLOAD SECTION ===== */
.download-section {
    position: relative;
    z-index: 1;
    padding: 80px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px 80px;
    border-radius: 14px;
    background: var(--gradient-blue);
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 8px 30px var(--accent-blue-glow);
    position: relative;
    overflow: hidden;
}

.download-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.6s ease;
}

.download-btn:hover::before {
    left: 100%;
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.4);
}

.download-btn svg {
    width: 22px;
    height: 22px;
}

.download-features {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 30px;
}

.download-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

.download-feature svg {
    width: 20px;
    height: 20px;
    color: var(--accent-blue-light);
}

/* ===== FAQ SECTION ===== */
.faq-section {
    position: relative;
    z-index: 1;
    padding: 80px 40px;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.faq-section h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 900;
    margin-bottom: 10px;
}

.faq-section .faq-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 40px;
}

.faq-item {
    border: 1px solid var(--bg-card-border);
    background: var(--bg-card);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(59, 130, 246, 0.3);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 20px 24px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s ease;
}

.faq-question:hover {
    color: var(--accent-blue-light);
}

.faq-question svg {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
    color: var(--accent-blue);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding: 0 24px 20px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    text-align: left;
}

/* ===== FOOTER ===== */
.footer {
    position: relative;
    z-index: 1;
    padding: 40px;
    text-align: center;
    border-top: 1px solid var(--border-subtle);
    margin-top: 40px;
}

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

.footer a {
    color: var(--accent-blue-light);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .navbar {
        padding: 0 20px;
    }

    .nav-links a {
        font-size: 0.75rem;
        padding: 6px 10px;
        letter-spacing: 1px;
    }

    .download-features {
        flex-direction: column;
        gap: 15px;
    }

    .download-btn {
        padding: 18px 50px;
    }
}

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

    .hero h1 {
        font-size: 2.2rem;
    }

    .section-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .nav-links a span {
        display: none;
    }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(59, 130, 246, 0.5);
}
