/* ============================================
   TopRatedAU — Design System
   Theme: Blaze (Scarlet Red + White + Charcoal)
   Fonts: Space Grotesk (headings) + Inter (body)
   ============================================ */

/* --- Custom Properties --- */
:root {
    --bg-white: #ffffff;
    --bg-light: #FAFAFA;
    --bg-cream: #FFF5F5;
    --bg-dark: #0F0F0F;
    --bg-dark-card: #1A1A1A;
    --bg-dark-surface: #222222;
    --primary: #DC2626;
    --primary-light: #EF4444;
    --primary-dark: #B91C1C;
    --primary-glow: rgba(220,38,38,0.15);
    --accent: #FF6B6B;
    --accent-light: #FCA5A5;
    --accent-warm: #F97316;
    --text-dark: #0F0F0F;
    --text-body: #374151;
    --text-muted: #9CA3AF;
    --text-light: #F9FAFB;
    --text-light-secondary: #D1D5DB;
    --border-light: rgba(0,0,0,0.06);
    --border-dark: rgba(255,255,255,0.08);
    --radius: 14px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 100px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
    --shadow-red: 0 8px 30px rgba(220,38,38,0.25);
    --font-body: 'Inter', sans-serif;
    --font-heading: 'Space Grotesk', sans-serif;
    --gradient-fire: linear-gradient(135deg, #DC2626, #EF4444, #F97316);
    --gradient-fire-soft: linear-gradient(135deg, #FEE2E2, #FFF7ED);
    --gradient-dark: linear-gradient(135deg, #0F0F0F, #1F1F1F);
    --gradient-text: linear-gradient(135deg, #DC2626, #EF4444, #F97316);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --container-max: 1200px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
    font-family: var(--font-body);
    background: var(--bg-white);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { border: none; background: none; cursor: pointer; font-family: inherit; color: inherit; }

/* --- Container --- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Typography --- */
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; line-height: 1.15; }
h1 { font-size: clamp(2.6rem, 5.5vw, 4.2rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); letter-spacing: -0.02em; }
h3 { font-size: 1.25rem; }

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

.section-header { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-tag {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--primary);
    background: rgba(220,38,38,0.08);
    border: 1px solid rgba(220,38,38,0.15);
    padding: 6px 18px;
    border-radius: var(--radius-full);
    margin-bottom: 20px;
}
.section-tag--light {
    color: var(--accent-light);
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.15);
}
.section-header h2 { margin-bottom: 16px; }
.section-header p { color: var(--text-body); font-size: 1.05rem; }
.section-header--dark p { color: var(--text-light-secondary); }

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 13px 30px;
    border-radius: var(--radius);
    transition: var(--transition);
    cursor: pointer;
    border: none;
    white-space: nowrap;
}
.btn svg { flex-shrink: 0; }
.btn-primary {
    background: var(--gradient-fire);
    color: #fff;
    box-shadow: var(--shadow-red);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(220,38,38,0.35);
}
.btn-outline {
    background: transparent;
    color: var(--text-dark);
    border: 2px solid var(--border-light);
}
.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}
.btn-outline--light {
    color: var(--text-light);
    border-color: rgba(255,255,255,0.2);
}
.btn-outline--light:hover {
    border-color: var(--accent-light);
    color: var(--accent-light);
}
.btn-lg { padding: 16px 38px; font-size: 1.05rem; border-radius: var(--radius-lg); }
.btn-sm { padding: 10px 22px; font-size: 0.85rem; }

/* ================================
   NAVBAR
   ================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 18px 0;
    transition: var(--transition);
}
.navbar.scrolled {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    padding: 12px 0;
    box-shadow: 0 1px 10px rgba(0,0,0,0.04);
}
.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.navbar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 100;
}
.navbar-logo .logo-icon { width: 34px; height: 34px; }
.logo-text {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
}
.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-body);
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
    background: rgba(220,38,38,0.05);
}
.nav-cta { margin-left: 8px; }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    z-index: 100;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition);
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ================================
   HERO
   ================================ */
.hero {
    position: relative;
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 180px 0 100px;
    overflow: hidden;
    background: var(--bg-white);
}
.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(220,38,38,0.08) 0%, rgba(249,115,22,0.04) 40%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: heroFloat 8s ease-in-out infinite;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -150px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,107,107,0.06) 0%, transparent 60%);
    border-radius: 50%;
    pointer-events: none;
    animation: heroFloat 10s ease-in-out infinite reverse;
}
@keyframes heroFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-20px, 20px) scale(1.05); }
}
.hero-content { position: relative; z-index: 2; max-width: 780px; }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary);
    background: var(--gradient-fire-soft);
    border: 1px solid rgba(220,38,38,0.12);
    padding: 8px 20px;
    border-radius: var(--radius-full);
    margin-bottom: 28px;
}
.hero-badge svg { width: 16px; height: 16px; }
.hero h1 { margin-bottom: 24px; color: var(--text-dark); }
.hero-description {
    font-size: 1.15rem;
    color: var(--text-body);
    max-width: 560px;
    margin: 0 auto 40px;
    line-height: 1.8;
}
.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 56px;
}
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 24px 12px;
    max-width: 520px;
    margin: 0 auto;
    box-shadow: var(--shadow);
}
.stat-item { flex: 1; text-align: center; padding: 0 28px; }
.stat-value {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.7rem;
    font-weight: 700;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
    font-weight: 500;
}
.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-light);
    flex-shrink: 0;
}

/* ================================
   LIVE ACTIVITY TICKER
   ================================ */
.ticker-section {
    padding: 20px 0;
    background: var(--bg-light);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    overflow: hidden;
}
.ticker-wrap {
    display: flex;
    gap: 48px;
    animation: tickerScroll 30s linear infinite;
    width: max-content;
}
.ticker-item {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    font-size: 0.85rem;
    color: var(--text-body);
}
.ticker-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22C55E;
    flex-shrink: 0;
    animation: tickerPulse 2s ease-in-out infinite;
}
.ticker-item strong { color: var(--text-dark); font-weight: 600; }
@keyframes tickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
@keyframes tickerPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ================================
   GAMES SECTION (Dark)
   ================================ */
.games-section {
    padding: 120px 0;
    position: relative;
    background: var(--bg-dark);
    color: var(--text-light);
}
.games-section .section-header p { color: var(--text-light-secondary); }

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

/* Game card */
.game-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-dark);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
    min-height: 340px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.game-card:hover {
    transform: translateY(-8px);
    border-color: rgba(220,38,38,0.5);
    box-shadow: 0 0 30px rgba(220,38,38,0.2), 0 20px 60px rgba(0,0,0,0.4);
}
.game-card::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(220,38,38,0.5), transparent 40%, transparent 60%, rgba(249,115,22,0.4));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.game-card:hover::after { opacity: 1; }

.game-card-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.3s ease;
    filter: brightness(0.65);
}
.game-card:hover .game-card-img {
    transform: scale(1.05);
    filter: brightness(0.8);
}

.game-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15,15,15,0.95) 0%, rgba(15,15,15,0.4) 50%, rgba(15,15,15,0.1) 100%);
    z-index: 1;
    pointer-events: none;
}

.game-card-content {
    position: relative;
    z-index: 2;
    padding: 28px 28px 32px;
}
.game-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    background: rgba(255,107,107,0.15);
    border: 1px solid rgba(255,107,107,0.25);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    margin-bottom: 12px;
    backdrop-filter: blur(4px);
}
.game-card h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
    font-family: var(--font-heading);
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.game-card p {
    color: rgba(255,255,255,0.7);
    font-size: 0.88rem;
    margin-bottom: 20px;
    line-height: 1.6;
}
.btn-play {
    background: var(--gradient-fire);
    color: #fff;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 20px rgba(220,38,38,0.35);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}
.btn-play:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(220,38,38,0.5);
}

/* ================================
   GAME MODAL
   ================================ */
.game-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}
.game-modal.active { display: flex; }
.game-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.88);
    backdrop-filter: blur(10px);
}
.game-modal-container {
    position: relative;
    width: 92vw;
    max-width: 1100px;
    height: 82vh;
    background: var(--bg-dark-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-dark);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 80px rgba(0,0,0,0.6);
}
.game-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-dark);
    background: var(--bg-dark-surface);
    flex-shrink: 0;
    color: var(--text-light);
}
.game-modal-header h3 { font-size: 1.1rem; font-family: var(--font-heading); }
.game-modal-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-dark);
    color: var(--text-muted);
    transition: var(--transition);
}
.game-modal-close:hover {
    background: rgba(220,38,38,0.15);
    border-color: rgba(220,38,38,0.3);
    color: var(--primary);
}
.game-modal-body { flex: 1; position: relative; background: #000; }
.game-modal-body iframe { width: 100%; height: 100%; border: none; }

/* ================================
   CATEGORIES SECTION
   ================================ */
.categories-section {
    padding: 100px 0;
    background: var(--bg-white);
}
.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.category-card {
    position: relative;
    padding: 32px 24px;
    border-radius: var(--radius-lg);
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    text-align: center;
    transition: var(--transition);
    overflow: hidden;
}
.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-fire);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(220,38,38,0.15);
}
.category-card:hover::before { opacity: 1; }
.category-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    border-radius: var(--radius);
    background: rgba(220,38,38,0.08);
    color: var(--primary);
    transition: var(--transition);
}
.category-card:hover .category-icon {
    background: var(--gradient-fire);
    color: #fff;
}
.category-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.category-card p { font-size: 0.85rem; color: var(--text-muted); }

/* ================================
   FEATURES (Light)
   ================================ */
.features-section {
    padding: 120px 0;
    position: relative;
    background: var(--bg-light);
}
.features-bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.feature-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-fire);
    opacity: 0;
    transition: all 0.4s ease;
}
.feature-card:hover {
    border-color: rgba(220,38,38,0.15);
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}
.feature-card:hover::before { opacity: 1; }

.feature-card:nth-child(1) { grid-column: span 2; }

.feature-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(220,38,38,0.06);
    border: 1px solid rgba(220,38,38,0.1);
    border-radius: var(--radius);
    margin-bottom: 20px;
    color: var(--primary);
    transition: all 0.4s ease;
}
.feature-card:hover .feature-icon {
    background: var(--gradient-fire);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(220,38,38,0.3);
}
.feature-card h3 {
    margin-bottom: 10px;
    font-size: 1.15rem;
    color: var(--text-dark);
}
.feature-card p {
    color: var(--text-body);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ================================
   HOW IT WORKS (Dark)
   ================================ */
.how-section {
    padding: 120px 0;
    position: relative;
    background: var(--bg-dark);
    color: var(--text-light);
}
.how-section .section-header p { color: var(--text-light-secondary); }
.steps-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    position: relative;
}
.steps-row::before {
    content: '';
    position: absolute;
    top: 44px;
    left: calc(16.67% + 24px);
    right: calc(16.67% + 24px);
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent-warm), var(--primary));
    opacity: 0.3;
}
.step-card { text-align: center; position: relative; }
.step-num {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: var(--gradient-fire);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    color: #fff;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 20px rgba(220,38,38,0.4);
}
.step-card h3 { margin-bottom: 10px; font-size: 1.15rem; }
.step-card p {
    color: var(--text-light-secondary);
    font-size: 0.9rem;
    max-width: 280px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ================================
   TESTIMONIALS
   ================================ */
.testimonials-section {
    padding: 120px 0;
    background: var(--bg-white);
}
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.testimonial-card {
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    transition: var(--transition);
}
.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}
.testimonial-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 16px;
    color: #FBBF24;
}
.testimonial-card blockquote {
    font-size: 0.95rem;
    color: var(--text-body);
    line-height: 1.7;
    margin-bottom: 20px;
    font-style: italic;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}
.testimonial-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-fire);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
}
.testimonial-author-info strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
}
.testimonial-author-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ================================
   CTA SECTION
   ================================ */
.cta-section {
    padding: 120px 0;
    background: var(--bg-light);
}
.cta-card {
    position: relative;
    text-align: center;
    padding: 80px 40px;
    background: var(--gradient-fire);
    border-radius: var(--radius-xl);
    overflow: hidden;
    color: #fff;
}
.cta-card::before {
    content: '';
    position: absolute;
    top: -60%;
    left: -20%;
    width: 140%;
    height: 140%;
    background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.12) 0%, transparent 50%);
    pointer-events: none;
}
.cta-card h2 {
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
    color: #fff;
}
.cta-card h2 .gradient-text {
    background: linear-gradient(135deg, #FEE2E2, #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.cta-card > p {
    color: rgba(255,255,255,0.85);
    max-width: 520px;
    margin: 0 auto 36px;
    font-size: 1.05rem;
    position: relative;
    z-index: 1;
}
.cta-card .btn {
    position: relative;
    z-index: 1;
    background: #fff;
    color: var(--primary);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.cta-card .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

/* ================================
   FAQ
   ================================ */
.faq-section {
    padding: 120px 0;
    position: relative;
    background: var(--bg-white);
}
.faq-list {
    max-width: 720px;
    margin: 0 auto;
}
.faq-item {
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
    transition: var(--transition);
    background: var(--bg-white);
}
.faq-item:hover { border-color: rgba(220,38,38,0.15); }
.faq-item.active {
    border-color: rgba(220,38,38,0.3);
    box-shadow: 0 4px 20px rgba(220,38,38,0.08);
}
.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    background: var(--bg-white);
    transition: var(--transition);
    color: var(--text-dark);
}
.faq-question:hover { background: var(--bg-light); }
.faq-chevron {
    flex-shrink: 0;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}
.faq-item.active .faq-chevron { transform: rotate(180deg); color: var(--primary); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}
.faq-answer p {
    padding: 0 24px 20px;
    color: var(--text-body);
    font-size: 0.92rem;
    line-height: 1.8;
}

/* ================================
   FOOTER (Dark)
   ================================ */
.footer {
    padding: 72px 0 0;
    background: var(--bg-dark);
    color: var(--text-light);
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--border-dark);
}
.footer-brand { max-width: 340px; }
.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}
.footer-logo .logo-icon { width: 30px; height: 30px; }
.footer-logo span {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text-light);
}
.footer-brand > p {
    color: var(--text-light-secondary);
    font-size: 0.88rem;
    line-height: 1.7;
}
.footer-links-row {
    display: flex;
    gap: 60px;
}
.footer-links-group h4 {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 16px;
}
.footer-links-group li { margin-bottom: 10px; }
.footer-links-group a {
    font-size: 0.9rem;
    color: var(--text-light-secondary);
    transition: var(--transition);
}
.footer-links-group a:hover { color: var(--accent); }
.footer-bottom {
    padding: 28px 0;
    text-align: center;
}
.footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.8;
}
.footer-disclaimer {
    margin-top: 10px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ================================
   LEGAL PAGES (privacy, terms)
   ================================ */
.legal-page-header {
    padding: 140px 0 60px;
    text-align: center;
    position: relative;
    background: var(--bg-white);
}
.legal-page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient-fire);
    border-radius: 3px;
}
.legal-page-header h1 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    margin-bottom: 12px;
}
.legal-page-header p {
    color: var(--text-body);
    font-size: 0.95rem;
}
.legal-content {
    max-width: 780px;
    margin: 0 auto;
    padding: 60px 24px 100px;
}
.legal-content h2 {
    font-size: 1.35rem;
    margin-top: 48px;
    margin-bottom: 16px;
    color: var(--text-dark);
}
.legal-content p {
    color: var(--text-body);
    margin-bottom: 16px;
    font-size: 0.95rem;
    line-height: 1.8;
}
.legal-content ul {
    margin-bottom: 16px;
    padding-left: 0;
}
.legal-content li {
    color: var(--text-body);
    font-size: 0.95rem;
    line-height: 1.8;
    padding-left: 24px;
    position: relative;
    margin-bottom: 8px;
}
.legal-content li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 11px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
}
.legal-content a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.legal-content a:hover { color: var(--primary-dark); }

/* ================================
   RESPONSIVE
   ================================ */
@media (max-width: 1024px) {
    .features-bento {
        grid-template-columns: repeat(2, 1fr);
    }
    .feature-card:nth-child(1) {
        grid-column: span 1;
    }
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .testimonials-grid .testimonial-card:nth-child(3) {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 12px;
        z-index: 90;
    }
    .nav-links.active { display: flex; }
    .nav-links a { font-size: 1.2rem; padding: 14px 24px; color: var(--text-dark); }
    .nav-cta { display: none; }
    .hamburger { display: flex; }

    .hero { min-height: auto; padding: 140px 0 80px; }
    .hero h1 { font-size: 2.2rem; }
    .hero-stats { flex-direction: row; gap: 0; }
    .stat-item { padding: 0 16px; }

    .games-grid-2x2 { grid-template-columns: 1fr; }
    .game-card { min-height: 280px; }

    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .features-bento { grid-template-columns: 1fr; }
    .steps-row { grid-template-columns: 1fr; gap: 24px; }
    .steps-row::before { display: none; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .testimonials-grid .testimonial-card:nth-child(3) { grid-column: span 1; }

    .footer-inner { flex-direction: column; gap: 40px; }
    .footer-links-row { gap: 40px; }

    .game-modal-container { width: 96vw; height: 88vh; border-radius: var(--radius); }
}

@media (max-width: 480px) {
    .hero-actions { flex-direction: column; align-items: center; }
    .hero-stats { flex-direction: column; gap: 16px; border-radius: var(--radius-lg); }
    .stat-divider { width: 40px; height: 1px; }

    .categories-grid { grid-template-columns: 1fr; }
    .cta-card { padding: 48px 24px; }
    .footer-links-row { flex-direction: column; gap: 28px; }
    .game-modal-container { width: 100vw; height: 100vh; border-radius: 0; }
    .game-modal-header { padding: 12px 16px; }
}
