/* ================================================
   STACKO - Main Stylesheet
   Premium Gaming Website Design
   Matches exact game visual style
   ================================================ */

/* -------------------- CSS Variables -------------------- */
:root {
    /* Colors - Exact from STACKO Game Screenshots */
    --bg-primary: #0F1923;
    --bg-secondary: #1A2735;
    --bg-tertiary: #243442;
    --bg-card: #1E2D3D;

    /* Accent Colors from Game */
    --accent-primary: #4ECDC4;  /* Teal/Cyan - main buttons */
    --accent-secondary: #3DB8B0;
    --accent-gold: #F5A623;     /* Gold for gems/trophy */
    --accent-blue: #00B4D8;     /* Gem color */
    --accent-pink: #E991B3;
    --accent-purple: #8B7EC8;

    /* Block Colors - Teal/Cyan palette matching Rainy Day theme (lightest to darkest) */
    --block-1: #7DD8D8;
    --block-2: #68C8C8;
    --block-3: #5CBCBC;
    --block-4: #50B0B0;
    --block-5: #4AA8A8;
    --block-6: #409898;
    --block-7: #389090;
    --block-8: #2A7878;

    /* Text Colors */
    --text-primary: #FFFFFF;
    --text-secondary: #8BA3B8;
    --text-muted: #5A7A94;

    /* Gradients */
    --gradient-hero: linear-gradient(180deg, #0F1923 0%, #1A2735 50%, #0F1923 100%);
    --gradient-card: linear-gradient(180deg, rgba(30, 45, 61, 0.9) 0%, rgba(26, 39, 53, 0.95) 100%);
    --gradient-button: linear-gradient(180deg, #4ECDC4 0%, #3DB8B0 100%);

    /* Typography */
    --font-primary: 'Poppins', sans-serif;
    --font-display: 'Russo One', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Border Radius - Matching game UI */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Shadows */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
    --shadow-glow-teal: 0 0 30px rgba(78, 205, 196, 0.3);
    --shadow-glow-gold: 0 0 20px rgba(245, 166, 35, 0.3);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

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

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

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* -------------------- Rain Particle Canvas -------------------- */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* -------------------- Navigation -------------------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition-normal);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(15, 25, 35, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(78, 205, 196, 0.1);
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: contain;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    letter-spacing: 3px;
    color: var(--text-primary);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-secondary);
    transition: var(--transition-fast);
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: var(--transition-normal);
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-primary);
}

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

.nav-cta {
    padding: 0.75rem 1.75rem;
    background: var(--gradient-button);
    color: var(--bg-primary);
    font-weight: 600;
    border-radius: var(--radius-lg);
    transition: var(--transition-fast);
    box-shadow: var(--shadow-glow-teal);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(78, 205, 196, 0.5);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition-fast);
}

/* -------------------- Hero Section -------------------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 6rem 2rem 4rem;
    background: var(--gradient-hero);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 30% 70%, rgba(78, 205, 196, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 30%, rgba(0, 180, 216, 0.05) 0%, transparent 40%);
    pointer-events: none;
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    animation: fadeInLeft 1s ease forwards;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1.25rem;
    background: rgba(78, 205, 196, 0.1);
    border: 1px solid rgba(78, 205, 196, 0.3);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
}

.badge-icon {
    width: 20px;
    height: 20px;
    background: var(--accent-blue);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 5.5rem);
    line-height: 1.1;
    margin-bottom: 0.5rem;
    letter-spacing: 4px;
}

.hero-tagline {
    font-size: 1.1rem;
    color: var(--text-secondary);
    letter-spacing: 8px;
    text-transform: uppercase;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeIn 1s ease forwards;
    animation-delay: 0.5s;
}

.title-line {
    display: block;
    opacity: 0;
    animation: slideUp 0.8s ease forwards;
}

.title-line:nth-child(1) { animation-delay: 0.2s; }
.title-line:nth-child(2) { animation-delay: 0.4s; }
.title-line:nth-child(3) { animation-delay: 0.6s; }

.title-line.accent {
    color: var(--accent-primary);
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 480px;
    opacity: 0;
    animation: fadeIn 1s ease forwards;
    animation-delay: 0.8s;
    line-height: 1.8;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: fadeIn 1s ease forwards;
    animation-delay: 1s;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--accent-primary);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeIn 1s ease forwards;
    animation-delay: 1.2s;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-lg);
    transition: var(--transition-normal);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-icon {
    width: 20px;
    height: 20px;
}

.btn-primary {
    background: var(--gradient-button);
    color: var(--bg-primary);
    box-shadow: var(--shadow-glow-teal);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 50px rgba(78, 205, 196, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(78, 205, 196, 0.3);
    color: var(--accent-primary);
}

.btn-secondary:hover {
    background: rgba(78, 205, 196, 0.1);
    border-color: var(--accent-primary);
    transform: translateY(-3px);
}

/* Hero Visual - 3D Tower */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 1s ease forwards;
    animation-delay: 0.5s;
    opacity: 0;
}

.tower-container {
    position: relative;
    width: 400px;
    height: 550px;
}

.tower-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300%;
    height: 300%;
    background: radial-gradient(ellipse, rgba(78, 205, 196, 0.1) 0%, transparent 50%);
    animation: pulse 4s ease-in-out infinite;
}

.tower {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
}

/* 3D Block Styles - Matching Game */
.tower-block {
    position: relative;
    transform-style: preserve-3d;
    margin-bottom: -12px;
    animation: blockFloat 3s ease-in-out infinite;
}

.tower-block .block-3d {
    position: relative;
    transform: perspective(800px) rotateX(25deg) rotateY(-35deg) rotateZ(0deg);
}

.tower-block .top {
    position: absolute;
    border-radius: 4px;
}

.tower-block .left {
    position: absolute;
    border-radius: 0 0 0 4px;
}

.tower-block .front {
    position: absolute;
    border-radius: 0 0 4px 0;
}

.tower-shadow {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%) rotateX(60deg);
    width: 220px;
    height: 100px;
    background: radial-gradient(ellipse, rgba(0, 0, 0, 0.4) 0%, transparent 70%);
    filter: blur(15px);
}

/* Floating Block Animation */
.floating-block {
    position: absolute;
    animation: floatingBlock 2s ease-in-out infinite;
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.float-gem {
    position: absolute;
    font-size: 1.5rem;
    animation: float 4s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(0, 180, 216, 0.5));
}

.gem-1 { top: 15%; left: 10%; animation-delay: 0s; }
.gem-2 { top: 60%; right: 10%; animation-delay: 1s; }

.float-star {
    position: absolute;
    font-size: 1.2rem;
    color: var(--accent-gold);
    animation: float 3s ease-in-out infinite;
}

.star-1 { top: 25%; right: 20%; animation-delay: 0.5s; }
.star-2 { bottom: 35%; left: 8%; animation-delay: 1.5s; }

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: fadeIn 1s ease forwards, bounce 2s ease-in-out infinite;
    animation-delay: 2s, 2s;
    opacity: 0;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--accent-primary);
    border-bottom: 2px solid var(--accent-primary);
    transform: rotate(45deg);
}

/* -------------------- Section Styles -------------------- */
.section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(78, 205, 196, 0.1);
    border: 1px solid rgba(78, 205, 196, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.section-title .accent {
    color: var(--accent-primary);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* -------------------- Preview Section (Screenshots) -------------------- */
.preview {
    padding: var(--spacing-xl) 0;
    position: relative;
    overflow: hidden;
}

.screenshots-gallery {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 2rem;
    perspective: 1000px;
}

.phone-mockup {
    position: relative;
    transition: transform 0.4s ease, z-index 0s;
}

.phone-mockup:hover {
    transform: translateY(-10px);
    z-index: 10;
}

.phone-mockup.featured {
    transform: scale(1.1);
    z-index: 5;
}

.phone-mockup.featured:hover {
    transform: scale(1.1) translateY(-10px);
}

.phone-frame {
    position: relative;
    background: linear-gradient(145deg, #2a2a3a 0%, #1a1a2a 100%);
    border-radius: 36px;
    padding: 8px;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.phone-notch {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 24px;
    background: #1a1a2a;
    border-radius: 0 0 16px 16px;
    z-index: 10;
}

.phone-notch::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: #333;
    border-radius: 50%;
}

.phone-screen {
    display: block;
    width: 180px;
    aspect-ratio: 9 / 19.5;
    border-radius: 28px;
    object-fit: cover;
    object-position: top;
}

.phone-mockup.featured .phone-screen {
    width: 220px;
}

.phone-label {
    display: block;
    text-align: center;
    margin-top: 1.25rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Responsive adjustments for screenshots */
@media (max-width: 1200px) {
    .screenshots-gallery {
        gap: 1rem;
    }

    .phone-screen {
        width: 140px;
        border-radius: 24px;
    }

    .phone-mockup.featured .phone-screen {
        width: 170px;
    }

    .phone-frame {
        border-radius: 28px;
        padding: 5px;
    }
}

@media (max-width: 900px) {
    .screenshots-gallery {
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .phone-screen {
        width: 130px;
    }

    .phone-mockup.featured .phone-screen {
        width: 160px;
    }

    .phone-notch {
        width: 50px;
        height: 16px;
    }
}

@media (max-width: 640px) {
    .screenshots-gallery {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
    }

    .phone-mockup,
    .phone-mockup.featured {
        transform: none;
    }

    .phone-mockup:hover,
    .phone-mockup.featured:hover {
        transform: translateY(-5px);
    }

    .phone-screen,
    .phone-mockup.featured .phone-screen {
        width: 140px;
    }

    .phone-frame {
        border-radius: 22px;
        padding: 4px;
    }

    .phone-screen {
        border-radius: 18px;
    }

    .phone-notch {
        width: 40px;
        height: 12px;
    }

    .phone-label {
        font-size: 0.8rem;
        margin-top: 0.75rem;
    }
}

/* -------------------- Features Section -------------------- */
.features {
    padding: var(--spacing-xl) 0;
    position: relative;
    z-index: 1;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.feature-card {
    background: var(--gradient-card);
    border: 1px solid rgba(78, 205, 196, 0.1);
    border-radius: var(--radius-xl);
    padding: 2rem;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-blue));
    opacity: 0;
    transition: var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(78, 205, 196, 0.3);
    box-shadow: var(--shadow-lg), var(--shadow-glow-teal);
}

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

.feature-card.wide-card {
    grid-column: span 2;
}

.card-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    background: rgba(78, 205, 196, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.card-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--accent-primary);
}

.card-icon.gold { background: rgba(245, 166, 35, 0.15); }
.card-icon.gold svg { stroke: var(--accent-gold); }

.card-icon.blue { background: rgba(0, 180, 216, 0.15); }
.card-icon.blue svg { stroke: var(--accent-blue); }

.card-icon.purple { background: rgba(139, 126, 200, 0.15); }
.card-icon.purple svg { stroke: var(--accent-purple); }

.card-icon.pink { background: rgba(233, 145, 179, 0.15); }
.card-icon.pink svg { stroke: var(--accent-pink); }

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

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

/* Game Modes Card - Matching Game UI */
.modes-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.mode-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: rgba(78, 205, 196, 0.05);
    border: 1px solid rgba(78, 205, 196, 0.15);
    border-radius: var(--radius-lg);
    transition: var(--transition-fast);
}

.mode-item:hover {
    background: rgba(78, 205, 196, 0.1);
    border-color: var(--accent-primary);
}

.mode-item.active {
    background: rgba(78, 205, 196, 0.15);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow-teal);
}

.mode-icon {
    width: 40px;
    height: 40px;
    background: rgba(78, 205, 196, 0.2);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}

.mode-info {
    flex: 1;
}

.mode-name {
    font-weight: 600;
    font-size: 1rem;
    display: block;
}

.mode-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Power-ups Showcase - Matching Game */
.powerups-showcase {
    display: flex;
    gap: 1rem;
    margin-top: 1.25rem;
}

.powerup {
    position: relative;
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(78, 205, 196, 0.2);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.powerup:hover {
    transform: scale(1.08);
    border-color: var(--accent-primary);
    background: rgba(78, 205, 196, 0.1);
}

.powerup-icon {
    font-size: 1.8rem;
    margin-bottom: 0.25rem;
}

.powerup-count {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.powerup.slowmo { border-color: rgba(139, 126, 200, 0.4); }
.powerup.slowmo:hover { border-color: var(--accent-purple); background: rgba(139, 126, 200, 0.1); }

.powerup.magnet { border-color: rgba(233, 145, 179, 0.4); }
.powerup.magnet:hover { border-color: var(--accent-pink); background: rgba(233, 145, 179, 0.1); }

.powerup.ghost { border-color: rgba(78, 205, 196, 0.4); }
.powerup.ghost:hover { border-color: var(--accent-primary); }

/* Combo Demo */
.combo-demo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.25rem;
    padding: 1.25rem;
    background: rgba(245, 166, 35, 0.08);
    border: 1px solid rgba(245, 166, 35, 0.2);
    border-radius: var(--radius-lg);
}

.combo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--text-secondary);
    letter-spacing: 2px;
    animation: pulse 1.5s ease-in-out infinite;
}

.combo-multiplier {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--accent-gold);
}

/* -------------------- Themes Section -------------------- */
.themes {
    padding: var(--spacing-xl) 0;
    position: relative;
    z-index: 1;
    background: linear-gradient(180deg, transparent 0%, rgba(78, 205, 196, 0.02) 50%, transparent 100%);
}

.theme-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 3rem;
}

.theme-tab {
    padding: 0.75rem 1.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-full);
    transition: var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.theme-tab:hover {
    color: var(--text-primary);
    background: rgba(78, 205, 196, 0.1);
    border-color: rgba(78, 205, 196, 0.2);
}

.theme-tab.active {
    color: var(--bg-primary);
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

.themes-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.theme-card {
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--gradient-card);
    border: 2px solid rgba(78, 205, 196, 0.1);
    transition: var(--transition-normal);
    cursor: pointer;
}

.theme-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--accent-primary);
    box-shadow: 0 0 40px rgba(78, 205, 196, 0.2);
}

.theme-card.equipped {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow-teal);
}

.theme-preview {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.theme-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 100%);
}

.theme-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 0.35rem 0.75rem;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.theme-badge.weather { background: rgba(78, 205, 196, 0.3); }
.theme-badge.space { background: rgba(139, 126, 200, 0.3); }
.theme-badge.nature { background: rgba(76, 175, 80, 0.3); }
.theme-badge.fantasy { background: rgba(233, 145, 179, 0.3); }
.theme-badge.premium { background: rgba(245, 166, 35, 0.3); color: var(--accent-gold); }

.theme-check {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    background: var(--accent-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.theme-tower {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 140px;
}

/* Theme blocks are now rendered via canvas in JS */
.theme-block {
    display: none;
}

/* Theme Particles */
.theme-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.rain-particles {
    background:
        linear-gradient(180deg, rgba(150, 180, 220, 0.4) 0%, transparent 100%);
    background-size: 1px 15px;
    animation: rainfall 0.4s linear infinite;
}

.snow-particles {
    background:
        radial-gradient(2px 2px at 20% 30%, white, transparent),
        radial-gradient(2px 2px at 50% 50%, white, transparent),
        radial-gradient(2px 2px at 80% 20%, white, transparent),
        radial-gradient(3px 3px at 30% 70%, rgba(255,255,255,0.8), transparent);
    animation: snowfall 4s linear infinite;
}

.stars-particles {
    background:
        radial-gradient(1px 1px at 20% 30%, white, transparent),
        radial-gradient(1px 1px at 40% 70%, white, transparent),
        radial-gradient(1px 1px at 60% 20%, white, transparent),
        radial-gradient(1px 1px at 80% 60%, white, transparent),
        radial-gradient(2px 2px at 10% 50%, rgba(255,255,255,0.6), transparent),
        radial-gradient(2px 2px at 90% 40%, rgba(255,255,255,0.6), transparent);
    animation: twinkle 3s ease-in-out infinite;
}

.firefly-particles {
    background:
        radial-gradient(4px 4px at 25% 45%, rgba(180, 255, 100, 0.8), transparent),
        radial-gradient(3px 3px at 65% 65%, rgba(180, 255, 100, 0.6), transparent),
        radial-gradient(4px 4px at 80% 35%, rgba(180, 255, 100, 0.7), transparent);
    animation: fireflies 2.5s ease-in-out infinite;
}

/* ===== THUNDERSTORM THEME ===== */
.thunderstorm-theme .theme-bg {
    background: linear-gradient(180deg, #0d0d1a 0%, #1a1a2e 50%, #050510 100%);
}

/* Rain is rendered via canvas in JS - this just ensures proper positioning */
.rain-heavy {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.lightning-effect {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    animation: screenFlash 4s ease-in-out infinite;
}

.lightning-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 60%;
    background: linear-gradient(180deg,
        rgba(255, 255, 255, 0.9) 0%,
        rgba(255, 255, 100, 0.8) 30%,
        rgba(255, 255, 255, 0.6) 60%,
        transparent 100%);
    filter: blur(1px);
    animation: lightningFlash 4s ease-in-out infinite;
    box-shadow: 0 0 10px 3px rgba(255, 255, 255, 0.5),
                0 0 20px 6px rgba(255, 255, 100, 0.3);
}

.lightning-effect::after {
    content: '';
    position: absolute;
    top: 20%;
    left: 45%;
    width: 2px;
    height: 40%;
    background: linear-gradient(180deg,
        rgba(255, 255, 255, 0.7) 0%,
        rgba(255, 255, 100, 0.5) 50%,
        transparent 100%);
    transform: rotate(15deg);
    filter: blur(1px);
    animation: lightningFlash 4s ease-in-out infinite 0.05s;
}

/* ===== MIDNIGHT THEME (Snowy) ===== */
.midnight-theme .theme-bg {
    background: linear-gradient(180deg, #0A1628 0%, #1A2A4A 50%, #0A1628 100%);
}

.midnight-theme .snow-particles {
    background:
        radial-gradient(3px 3px at 15% 20%, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(2px 2px at 35% 45%, rgba(200, 220, 255, 0.8), transparent),
        radial-gradient(3px 3px at 55% 15%, rgba(255, 255, 255, 0.85), transparent),
        radial-gradient(2px 2px at 75% 60%, rgba(200, 220, 255, 0.7), transparent),
        radial-gradient(4px 4px at 25% 75%, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(2px 2px at 85% 35%, rgba(200, 220, 255, 0.8), transparent),
        radial-gradient(3px 3px at 45% 85%, rgba(255, 255, 255, 0.7), transparent);
    animation: snowfallWobble 5s linear infinite;
}

/* ===== DEEP GALAXY THEME ===== */
.galaxy-theme .theme-bg {
    background: linear-gradient(180deg, #0a0a1a 0%, #1a0a2e 50%, #050510 100%);
    animation: galaxyPulse 8s ease-in-out infinite;
}

.galaxy-theme .stars-particles {
    background:
        radial-gradient(2px 2px at 10% 15%, rgba(255, 255, 255, 1), transparent),
        radial-gradient(1px 1px at 25% 40%, rgba(255, 228, 181, 0.9), transparent),
        radial-gradient(2px 2px at 40% 10%, rgba(230, 230, 250, 0.95), transparent),
        radial-gradient(1px 1px at 55% 65%, rgba(173, 216, 230, 0.85), transparent),
        radial-gradient(3px 3px at 70% 25%, rgba(255, 255, 255, 1), transparent),
        radial-gradient(1px 1px at 85% 50%, rgba(255, 228, 181, 0.8), transparent),
        radial-gradient(2px 2px at 20% 70%, rgba(230, 230, 250, 0.9), transparent),
        radial-gradient(1px 1px at 60% 85%, rgba(173, 216, 230, 0.75), transparent),
        radial-gradient(2px 2px at 90% 80%, rgba(255, 255, 255, 0.95), transparent),
        radial-gradient(1px 1px at 5% 55%, rgba(255, 228, 181, 0.7), transparent);
    animation: twinkle 3s ease-in-out infinite;
}

/* Star glow effect */
.galaxy-theme .stars-particles::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 70%;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 6px 2px rgba(255, 215, 0, 0.6),
                0 0 12px 4px rgba(255, 215, 0, 0.3);
    animation: starTwinkle 2s ease-in-out infinite;
}

.galaxy-theme .stars-particles::after {
    content: '';
    position: absolute;
    top: 60%;
    left: 25%;
    width: 3px;
    height: 3px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 5px 2px rgba(173, 216, 230, 0.6),
                0 0 10px 4px rgba(173, 216, 230, 0.3);
    animation: starTwinkle 2.5s ease-in-out infinite 0.5s;
}

/* ===== METEOR SHOWER THEME ===== */
.meteor-theme .theme-bg {
    background: linear-gradient(180deg, #0a0a20 0%, #15152a 50%, #050515 100%);
}

.meteor-particles {
    position: relative;
    overflow: visible;
    /* Background stars */
    background:
        radial-gradient(2px 2px at 15% 25%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1px 1px at 45% 55%, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(2px 2px at 75% 35%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(1px 1px at 35% 75%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1px 1px at 85% 65%, rgba(255, 255, 255, 0.6), transparent);
    animation: twinkle 4s ease-in-out infinite;
}

/* Main meteor - diagonal streak */
.meteor-particles::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 80%;
    width: 50px;
    height: 2px;
    background: linear-gradient(270deg,
        rgba(255, 255, 255, 1) 0%,
        rgba(255, 215, 0, 0.8) 30%,
        rgba(255, 165, 0, 0.4) 60%,
        transparent 100%);
    border-radius: 2px;
    transform: rotate(-45deg);
    transform-origin: right center;
    animation: meteorFly 2.5s ease-in infinite;
    box-shadow: 0 0 8px 2px rgba(255, 215, 0, 0.8),
                0 0 15px 4px rgba(255, 165, 0, 0.5);
}

/* Second meteor - smaller, delayed */
.meteor-particles::after {
    content: '';
    position: absolute;
    top: 35%;
    left: 60%;
    width: 35px;
    height: 2px;
    background: linear-gradient(270deg,
        rgba(255, 255, 255, 0.9) 0%,
        rgba(255, 99, 71, 0.7) 40%,
        rgba(255, 165, 0, 0.3) 70%,
        transparent 100%);
    border-radius: 2px;
    transform: rotate(-45deg);
    transform-origin: right center;
    animation: meteorFly 3s ease-in infinite 1.2s;
    box-shadow: 0 0 6px 2px rgba(255, 99, 71, 0.6),
                0 0 12px 3px rgba(255, 165, 0, 0.4);
}

.theme-info {
    padding: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.theme-info h4 {
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.theme-info h4 .icon {
    font-size: 1.1rem;
}

.theme-status {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.theme-status.owned { color: var(--text-muted); }
.theme-status.equipped { color: var(--accent-primary); }
.theme-status.price { color: var(--accent-blue); }

/* -------------------- Gameplay Section -------------------- */
.gameplay {
    padding: var(--spacing-xl) 0;
    position: relative;
    z-index: 1;
}

.gameplay-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
}

.gameplay-steps-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.gameplay-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.step {
    display: flex;
    gap: 1.5rem;
    padding: 1.75rem;
    background: rgba(30, 45, 61, 0.6);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(78, 205, 196, 0.1);
    transition: var(--transition-normal);
}

.step:hover {
    background: rgba(78, 205, 196, 0.08);
    border-color: rgba(78, 205, 196, 0.3);
    transform: translateX(10px);
}

.step-number {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--accent-primary);
    opacity: 0.4;
    line-height: 1;
}

.step-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

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

/* Phone Mockup - Matching Game Screenshots */
.gameplay-demo {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.phone-mockup {
    width: 300px;
    height: 620px;
    background: linear-gradient(180deg, #E8E8E8 0%, #C0C0C0 100%);
    border-radius: 45px;
    padding: 8px;
    position: relative;
    box-shadow:
        0 0 0 2px #A0A0A0,
        0 25px 50px rgba(0, 0, 0, 0.4);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    border-radius: 38px;
    overflow: hidden;
    position: relative;
}

.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 25px;
    background: #1A1A1A;
    border-radius: 0 0 15px 15px;
    z-index: 10;
}

.phone-button {
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 35%;
    height: 4px;
    background: #606060;
    border-radius: 2px;
}

/* Demo Game - Matching STACKO Gameplay */
.demo-game {
    width: 100%;
    height: 100%;
    position: relative;
    cursor: pointer;
    user-select: none;
    background: linear-gradient(180deg, #0F1923 0%, #1A2735 100%);
    overflow: hidden;
}

/* Rain effect in demo */
.demo-game::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        180deg,
        transparent 0px,
        transparent 8px,
        rgba(150, 180, 220, 0.1) 8px,
        rgba(150, 180, 220, 0.1) 9px
    );
    animation: rainfall 0.5s linear infinite;
    pointer-events: none;
}

.demo-ui {
    position: absolute;
    top: 40px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 5;
}

.demo-pause {
    width: 50px;
    height: 50px;
    background: rgba(78, 205, 196, 0.2);
    border: 2px solid rgba(78, 205, 196, 0.4);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    font-size: 1.2rem;
}

.demo-score {
    text-align: center;
}

.score-label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.score-value {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--text-primary);
}

.demo-level {
    text-align: center;
}

.level-label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.level-value {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--text-secondary);
}

.demo-tower {
    position: absolute;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
}

.demo-tower-block {
    margin-bottom: -5px;
    border-radius: 4px;
    transform: perspective(500px) rotateX(18deg) rotateY(-25deg);
    box-shadow:
        5px 5px 0 rgba(0, 0, 0, 0.2),
        -2px 2px 0 rgba(255, 255, 255, 0.08) inset;
}

.demo-block {
    position: absolute;
    border-radius: 4px;
    transform: perspective(500px) rotateX(18deg) rotateY(-25deg);
    box-shadow:
        5px 5px 0 rgba(0, 0, 0, 0.2),
        -2px 2px 0 rgba(255, 255, 255, 0.08) inset;
    animation: demoSlide 1.8s ease-in-out infinite;
}

.demo-powerups {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
}

.demo-powerup {
    width: 55px;
    height: 65px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.demo-powerup span {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.demo-perfect {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-display);
    font-size: 2rem;
    color: rgba(200, 200, 210, 0.9);
    letter-spacing: 4px;
    opacity: 0;
    text-shadow: 0 0 30px rgba(200, 200, 210, 0.5);
}

.demo-perfect.show {
    animation: perfectPop 1s ease forwards;
}

.demo-hint {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Scoring Info */
.scoring-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.score-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 2rem;
    background: rgba(30, 45, 61, 0.6);
    border: 1px solid rgba(78, 205, 196, 0.1);
    border-radius: var(--radius-xl);
    transition: var(--transition-normal);
}

.score-card:hover {
    background: rgba(78, 205, 196, 0.08);
    transform: translateY(-4px);
}

.score-card .score-icon {
    width: 50px;
    height: 50px;
    background: rgba(78, 205, 196, 0.15);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.score-card.perfect .score-icon {
    background: rgba(245, 166, 35, 0.15);
}

.score-card.combo .score-icon {
    background: rgba(233, 145, 179, 0.15);
}

.score-details {
    display: flex;
    flex-direction: column;
}

.score-details .score-points {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--accent-primary);
}

.score-details .score-name {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* -------------------- Download Section -------------------- */
.download {
    padding: var(--spacing-xl) 0;
    position: relative;
    z-index: 1;
    background: linear-gradient(180deg, transparent 0%, rgba(78, 205, 196, 0.03) 50%, transparent 100%);
}

.download-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.download-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.download-blocks {
    position: relative;
    width: 350px;
    height: 350px;
}

/* Download blocks are now rendered via canvas in JS - keeping styles for reference */
.d-block {
    display: none;
}

.d-block.b1 {
    width: 200px;
    height: 42px;
    bottom: 20px;
    background: linear-gradient(135deg, var(--block-8) 0%, #1C6060 100%);
    animation-delay: 0s;
}

.d-block.b2 {
    width: 190px;
    height: 42px;
    bottom: 68px;
    background: linear-gradient(135deg, var(--block-6) 0%, var(--block-7) 100%);
    animation-delay: 0.1s;
}

.d-block.b3 {
    width: 180px;
    height: 42px;
    bottom: 116px;
    background: linear-gradient(135deg, var(--block-4) 0%, var(--block-5) 100%);
    animation-delay: 0.2s;
}

.d-block.b4 {
    width: 170px;
    height: 42px;
    bottom: 164px;
    background: linear-gradient(135deg, var(--block-2) 0%, var(--block-3) 100%);
    animation-delay: 0.3s;
}

.d-block.b5 {
    width: 160px;
    height: 42px;
    bottom: 212px;
    background: linear-gradient(135deg, var(--block-1) 0%, var(--block-2) 100%);
    animation-delay: 0.4s;
}

.download-text {
    max-width: 500px;
}

.download-text h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.download-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.download-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.store-button {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    background: var(--bg-card);
    border: 2px solid rgba(78, 205, 196, 0.2);
    border-radius: var(--radius-xl);
    transition: var(--transition-normal);
}

.store-button:hover {
    background: rgba(78, 205, 196, 0.1);
    border-color: var(--accent-primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow-teal);
}

.store-button svg {
    width: 36px;
    height: 36px;
    fill: var(--accent-primary);
}

.store-text {
    display: flex;
    flex-direction: column;
}

.store-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.store-name {
    font-size: 1.1rem;
    font-weight: 600;
}

.download-stats {
    display: flex;
    gap: 3rem;
}

.d-stat {
    display: flex;
    flex-direction: column;
}

.d-stat-value {
    font-family: var(--font-display);
    font-size: 1.75rem;
    color: var(--accent-gold);
}

.d-stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* -------------------- Footer -------------------- */
.footer {
    padding: 4rem 0 2rem;
    background: rgba(10, 18, 25, 0.8);
    border-top: 1px solid rgba(78, 205, 196, 0.1);
    position: relative;
    z-index: 1;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    max-width: 300px;
    line-height: 1.7;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.footer-column a {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 0.4rem 0;
    transition: var(--transition-fast);
}

.footer-column a:hover {
    color: var(--text-primary);
    transform: translateX(4px);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

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

/* -------------------- Responsive Design -------------------- */
@media (max-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-card.wide-card {
        grid-column: span 2;
    }
}

@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text {
        order: 2;
    }

    .hero-visual {
        order: 1;
    }

    .hero-description {
        margin: 0 auto 2rem;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .gameplay-showcase {
        grid-template-columns: 1fr;
    }

    .gameplay-demo {
        order: -1;
    }

    .download-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .download-visual {
        order: -1;
    }

    .download-buttons,
    .download-stats {
        justify-content: center;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-brand {
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-brand p {
        max-width: none;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(15, 25, 35, 0.98);
        backdrop-filter: blur(20px);
        padding: 2rem;
        flex-direction: column;
        gap: 1.5rem;
        border-bottom: 1px solid rgba(78, 205, 196, 0.1);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-cta {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

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

    .feature-card.wide-card {
        grid-column: span 1;
    }

    .hero-stats {
        gap: 2rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .footer-links {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .scoring-info {
        flex-direction: column;
        align-items: center;
    }

    .score-card {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }

    .gameplay-steps-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 5rem 1rem 3rem;
    }

    .section-container {
        padding: 0 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        flex-wrap: wrap;
    }

    .phone-mockup {
        width: 260px;
        height: 540px;
    }

    .theme-categories {
        gap: 0.5rem;
    }

    .theme-tab {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }

    .download-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .tower-container {
        width: 300px;
        height: 450px;
    }
}

/* -------------------- Theme Filter -------------------- */
.theme-card[data-hidden="true"] {
    display: none;
}

/* -------------------- Utility Classes -------------------- */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.accent {
    color: var(--accent-primary);
}