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

:root {
    --primary: #7c3aed;
    --primary-light: #a78bfa;
    --accent: #06d6a0;
    --accent-alt: #00b4d8;
    --hot: #f72585;
    --orange: #fb923c;
    --dark: #09090f;
    --dark-light: #111118;
    --dark-card: #16161f;
    --dark-card-hover: #1e1e2a;
    --text: #d4d4e0;
    --text-muted: #8888a4;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, var(--primary), var(--accent));
    --gradient-hot: linear-gradient(135deg, var(--hot), var(--orange));
    --gradient-cool: linear-gradient(135deg, var(--accent-alt), var(--accent));
    --glow-primary: rgba(124, 58, 237, 0.4);
    --glow-accent: rgba(6, 214, 160, 0.3);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(9, 9, 15, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(124, 58, 237, 0.12);
    padding: 18px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.7rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s;
    border-radius: 2px;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--white);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: 0.3s;
}

/* ===== Hero ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-bg .orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 8s ease-in-out infinite;
}

.hero-bg .orb-1 {
    width: 500px;
    height: 500px;
    background: var(--primary);
    top: -10%;
    left: -10%;
    opacity: 0.2;
    animation-delay: 0s;
}

.hero-bg .orb-2 {
    width: 400px;
    height: 400px;
    background: var(--accent);
    bottom: -5%;
    right: -5%;
    opacity: 0.15;
    animation-delay: -3s;
}

.hero-bg .orb-3 {
    width: 300px;
    height: 300px;
    background: var(--hot);
    top: 40%;
    right: 20%;
    opacity: 0.1;
    animation-delay: -5s;
}

.hero-bg .grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(124, 58, 237, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(124, 58, 237, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, var(--dark), transparent);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(124, 58, 237, 0.12);
    border: 1px solid rgba(124, 58, 237, 0.25);
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 28px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
}

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

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(6, 214, 160, 0.4); }
    50% { opacity: 0.7; box-shadow: 0 0 0 8px rgba(6, 214, 160, 0); }
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 28px;
    color: var(--white);
    letter-spacing: -1.5px;
}

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

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 44px;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.btn {
    display: inline-block;
    padding: 16px 40px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    position: relative;
}

.btn-primary {
    background: var(--gradient);
    color: var(--white);
    box-shadow: 0 4px 30px var(--glow-primary);
}

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

.btn-outline {
    background: rgba(255, 255, 255, 0.04);
    color: var(--white);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(6, 214, 160, 0.05);
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== Section General ===== */
.section {
    padding: 120px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 72px;
}

.section-header .tag {
    display: inline-block;
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.2);
    color: var(--primary-light);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 18px;
    letter-spacing: -0.5px;
}

.section-header p {
    color: var(--text-muted);
    max-width: 580px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* ===== Features / Cards ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.feature-card {
    background: var(--dark-card);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 20px;
    padding: 44px 32px 40px;
    transition: all 0.4s;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.4s;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(124, 58, 237, 0.2);
    background: var(--dark-card-hover);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 28px;
    font-size: 1.8rem;
}

.feature-icon.purple { background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(124, 58, 237, 0.05)); border: 1px solid rgba(124, 58, 237, 0.15); }
.feature-icon.green { background: linear-gradient(135deg, rgba(6, 214, 160, 0.2), rgba(6, 214, 160, 0.05)); border: 1px solid rgba(6, 214, 160, 0.15); }
.feature-icon.pink { background: linear-gradient(135deg, rgba(247, 37, 133, 0.2), rgba(247, 37, 133, 0.05)); border: 1px solid rgba(247, 37, 133, 0.15); }
.feature-icon.blue { background: linear-gradient(135deg, rgba(0, 180, 216, 0.2), rgba(0, 180, 216, 0.05)); border: 1px solid rgba(0, 180, 216, 0.15); }
.feature-icon.orange { background: linear-gradient(135deg, rgba(251, 146, 60, 0.2), rgba(251, 146, 60, 0.05)); border: 1px solid rgba(251, 146, 60, 0.15); }
.feature-icon.white { background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03)); border: 1px solid rgba(255, 255, 255, 0.08); }

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
}

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

/* ===== Genres Section ===== */
.genres-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 8px 0 20px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.genres-scroll::-webkit-scrollbar { display: none; }

.genre-card {
    flex: 0 0 220px;
    height: 280px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s;
}

.genre-card:hover {
    transform: scale(1.03);
}

.genre-card .genre-bg {
    position: absolute;
    inset: 0;
    opacity: 0.7;
}

.genre-card:nth-child(1) .genre-bg { background: linear-gradient(160deg, #7c3aed, #3b0764); }
.genre-card:nth-child(2) .genre-bg { background: linear-gradient(160deg, #f72585, #7c0a34); }
.genre-card:nth-child(3) .genre-bg { background: linear-gradient(160deg, #06d6a0, #065f46); }
.genre-card:nth-child(4) .genre-bg { background: linear-gradient(160deg, #00b4d8, #0a4c5c); }
.genre-card:nth-child(5) .genre-bg { background: linear-gradient(160deg, #fb923c, #7c2d12); }
.genre-card:nth-child(6) .genre-bg { background: linear-gradient(160deg, #a78bfa, #4c1d95); }

.genre-card .genre-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}

.genre-card .genre-emoji {
    font-size: 2.4rem;
    margin-bottom: 8px;
    display: block;
}

.genre-card h3 {
    color: var(--white);
    font-size: 1.15rem;
    font-weight: 700;
}

.genre-card .genre-count {
    color: rgba(255,255,255,0.6);
    font-size: 0.8rem;
    font-weight: 500;
}

/* ===== Stats ===== */
.stats {
    background: var(--dark-light);
    position: relative;
    overflow: hidden;
}

.stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.stats::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}

.stat-item {
    padding: 20px 0;
}

.stat-item h3 {
    font-size: 3.2rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    letter-spacing: -1px;
}

.stat-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
}

/* ===== How it works ===== */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    position: relative;
}

.step {
    text-align: center;
    position: relative;
    background: var(--dark-card);
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 20px;
    padding: 48px 32px 40px;
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--white);
    margin: 0 auto 24px;
    box-shadow: 0 4px 20px var(--glow-primary);
}

.step h3 {
    font-size: 1.2rem;
    color: var(--white);
    font-weight: 700;
    margin-bottom: 12px;
}

.step p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===== Showcase / Game Preview ===== */
.showcase {
    position: relative;
    overflow: hidden;
}

.showcase-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(124, 58, 237, 0.08) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 50%, rgba(6, 214, 160, 0.06) 0%, transparent 50%);
}

.showcase-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.showcase-text h2 {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.showcase-text p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 32px;
}

.showcase-list {
    list-style: none;
}

.showcase-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
    color: var(--text);
    font-size: 0.95rem;
}

.showcase-list .check {
    width: 24px;
    height: 24px;
    background: rgba(6, 214, 160, 0.15);
    border: 1px solid rgba(6, 214, 160, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 700;
    margin-top: 2px;
}

.showcase-visual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.game-tile {
    border-radius: 16px;
    height: 160px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s;
}

.game-tile:hover { transform: scale(1.04); }

.game-tile:nth-child(1) { background: linear-gradient(135deg, #7c3aed 0%, #3b0764 100%); }
.game-tile:nth-child(2) { background: linear-gradient(135deg, #f72585 0%, #b5179e 100%); grid-row: span 2; height: auto; }
.game-tile:nth-child(3) { background: linear-gradient(135deg, #06d6a0 0%, #065f46 100%); }
.game-tile:nth-child(4) { background: linear-gradient(135deg, #00b4d8 0%, #0a4c5c 100%); }
.game-tile:nth-child(5) { background: linear-gradient(135deg, #fb923c 0%, #7c2d12 100%); }

.game-tile-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
}

.game-tile-content .tile-emoji {
    font-size: 1.8rem;
    margin-bottom: 4px;
}

.game-tile-content span {
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 600;
}

/* ===== CTA ===== */
.cta {
    text-align: center;
    padding: 120px 24px;
    position: relative;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 50%, rgba(124, 58, 237, 0.15) 0%, transparent 60%);
}

.cta-inner {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
    background: var(--dark-card);
    border: 1px solid rgba(124, 58, 237, 0.15);
    border-radius: 28px;
    padding: 72px 48px;
}

.cta-inner h2 {
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 18px;
    letter-spacing: -0.5px;
}

.cta-inner p {
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* ===== Footer ===== */
.footer {
    background: var(--dark-light);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding: 64px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand .logo {
    margin-bottom: 16px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 360px;
    line-height: 1.7;
}

.footer-col h4 {
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

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

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-links a {
    color: var(--text-muted);
    font-size: 0.8rem;
    transition: color 0.3s;
}

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

/* ===== Legal Pages ===== */
.legal-hero {
    padding: 160px 0 60px;
    position: relative;
    overflow: hidden;
}

.legal-hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(124, 58, 237, 0.1) 0%, transparent 60%);
}

.legal-hero-content {
    position: relative;
    z-index: 1;
}

.legal-hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.legal-hero .last-updated {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.legal-content-wrapper {
    padding: 60px 0 100px;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--dark-card);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 24px;
    padding: 56px 48px;
}

.legal-content h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--white);
    margin-top: 44px;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content p,
.legal-content li {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 12px;
    line-height: 1.8;
}

.legal-content ul {
    padding-left: 24px;
    list-style: disc;
    margin-bottom: 16px;
}

.legal-content li::marker {
    color: var(--primary-light);
}

.legal-content a {
    color: var(--accent);
}

.legal-content a:hover {
    text-decoration: underline;
}

.legal-content strong {
    color: var(--text);
}

/* ===== Responsive ===== */
@media (max-width: 968px) {
    .features-grid,
    .steps-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

    .showcase-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .showcase-visual {
        max-width: 400px;
        margin: 0 auto;
    }

    .section-header h2,
    .cta-inner h2 {
        font-size: 2rem;
    }

    .legal-content {
        padding: 40px 28px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(9, 9, 15, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        border-bottom: 1px solid rgba(124, 58, 237, 0.12);
    }

    .nav-links.open {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

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

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

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

    .cta-inner {
        padding: 48px 24px;
    }

    .cta-inner h2 {
        font-size: 1.8rem;
    }

    .genre-card {
        flex: 0 0 180px;
        height: 240px;
    }

    .legal-hero h1 {
        font-size: 2rem;
    }
}
