/* ═══════════════════════════════════════════
   GameXLoot Landing — Matching Flutter App Theme
   Gradient: #C40000 → #FF9D00
   Font: Outfit
   Dark: #2C2C2C  |  Grey: #5E5E5E
   ═══════════════════════════════════════════ */

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

:root {
    --red: #C40000;
    --orange: #FF9D00;
    --dark: #2C2C2C;
    --text: #5E5E5E;
    --grey: #D9D9D9;
    --grey-light: #EAEAEA;
    --white: #FFFFFF;
    --bg: #FFFAF6;
    --font: 'Outfit', sans-serif;
    --radius: 20px;
    --radius-sm: 12px;
    --shadow: 0 4px 24px rgba(0, 0, 0, .08);
    --shadow-lg: 0 12px 48px rgba(0, 0, 0, .12);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    color: var(--dark);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

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

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

/* ── Header ─────────────────────────────── */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: linear-gradient(135deg, var(--red), var(--orange));
    box-shadow: 0 2px 20px rgba(0, 0, 0, .15);
    transition: box-shadow .3s;
}

.site-header.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, .2);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 38px;
    width: auto;
}

.header-nav {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-weight: 500;
    font-size: .95rem;
    color: rgba(255, 255, 255, .85);
    position: relative;
    transition: color .2s;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: width .3s ease;
}

.nav-link:hover {
    color: var(--white);
}

.nav-link:hover::after {
    width: 100%;
}

/* ── Hero ───────────────────────────────── */
.hero {
    position: relative;
    padding: 160px 0 100px;
    overflow: hidden;
    text-align: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(196, 0, 0, .06) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 20%, rgba(255, 157, 0, .05) 0%, transparent 50%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    font-size: .85rem;
    font-weight: 600;
    color: var(--red);
    background: rgba(196, 0, 0, .08);
    border-radius: 100px;
    margin-bottom: 24px;
    letter-spacing: .02em;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -.03em;
    color: var(--dark);
    margin-bottom: 20px;
}

.hero-sub {
    font-size: 1.1rem;
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 36px;
}

.hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.hero-pill {
    padding: 10px 24px;
    font-size: .9rem;
    font-weight: 600;
    color: var(--dark);
    background: var(--bg);
    border: 1px solid var(--grey-light);
    border-radius: 100px;
    transition: all .2s;
}

.hero-pill:hover {
    background: linear-gradient(135deg, var(--red), var(--orange));
    color: var(--white);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(196, 0, 0, .2);
}

/* ── Games Section ──────────────────────── */
.games-section {
    padding: 80px 0 100px;
}

.section-heading {
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
    letter-spacing: -.02em;
    margin-bottom: 8px;
}

.section-sub {
    text-align: center;
    color: var(--text);
    font-size: 1.05rem;
    margin-bottom: 48px;
}

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

/* ── Game Card ──────────────────────────── */
.game-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .35s cubic-bezier(.25, .8, .25, 1), box-shadow .35s;
    cursor: pointer;
}

.game-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.game-card-link {
    display: block;
    position: relative;
    width: 100%;
    height: 320px;
}

.game-card-img {
    position: absolute;
    inset: 0;
}

.game-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s cubic-bezier(.25, .8, .25, 1);
}

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

.game-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 30%, #200F07 100%);
    z-index: 1;
}

.game-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px;
    z-index: 2;
}

.game-card-badge {
    display: inline-block;
    padding: 2px 10px 4px;
    font-size: .7rem;
    font-weight: 600;
    color: var(--white);
    background: linear-gradient(90deg, var(--red), var(--orange));
    border-radius: 5px;
    letter-spacing: .02em;
    margin-bottom: 8px;
}

.game-card-content h3 {
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--white);
    line-height: 1.3;
    letter-spacing: -.01em;
    text-shadow: 0 4px 8px rgba(0, 0, 0, .3);
}

.game-card-desc {
    font-size: .85rem;
    color: rgba(255, 255, 255, .75);
    margin-top: 6px;
    font-weight: 400;
}

/* ── About Section ──────────────────────── */
.about-section {
    padding: 80px 0 100px;
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 48px;
}

.about-card {
    padding: 36px 28px;
    border-radius: var(--radius-sm);
    background: var(--bg);
    border: 1px solid var(--grey-light);
    text-align: center;
    transition: transform .3s, box-shadow .3s;
}

.about-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.about-icon {
    font-size: 2.4rem;
    margin-bottom: 16px;
}

.about-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.about-card p {
    font-size: .92rem;
    color: var(--text);
    line-height: 1.6;
}

/* ── Footer ─────────────────────────────── */
.site-footer {
    background: var(--dark);
    color: rgba(255, 255, 255, .7);
    padding: 60px 0 0;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.footer-logo-img {
    height: 36px;
    width: auto;
    filter: brightness(10);
}

.footer-tagline {
    margin-top: 12px;
    font-size: .9rem;
    color: rgba(255, 255, 255, .5);
}

.footer-links h4 {
    color: var(--white);
    font-weight: 700;
    font-size: .95rem;
    margin-bottom: 16px;
}

.footer-links a {
    display: block;
    font-size: .88rem;
    color: rgba(255, 255, 255, .6);
    padding: 4px 0;
    transition: color .2s;
}

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

.footer-bottom {
    padding: 20px 0;
    text-align: center;
    font-size: .82rem;
    color: rgba(255, 255, 255, .35);
}

/* ── Scroll Reveal Animation ────────────── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .6s ease, transform .6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Responsive ─────────────────────────── */
@media (max-width: 900px) {
    .games-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .hero {
        padding: 130px 0 70px;
    }

    .game-card-link {
        height: 260px;
    }
}

@media (max-width: 600px) {
    .header-nav {
        gap: 20px;
    }

    .nav-link {
        font-size: .85rem;
    }

    .logo-img {
        height: 30px;
    }

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

    .hero-sub {
        font-size: .95rem;
    }

    .hero-pill {
        padding: 8px 14px;
        font-size: .8rem;
    }

    .section-heading {
        font-size: 1.5rem;
    }

    .game-card-content h3 {
        font-size: 1.05rem;
    }

    .game-card-content {
        padding: 20px;
    }

    .game-card-link {
        height: 220px;
    }
}