:root {
    --bg-color: #0A1118;
    --text-primary: #F8FAFC;
    --text-secondary: #94A3B8;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.07);
    --glass-hover: rgba(255, 255, 255, 0.07);
    --accent: #38BDF8;
    --accent-gold: #F5C542;
    --glow-1: rgba(56, 189, 248, 0.16);
    --glow-2: rgba(167, 139, 250, 0.16);
    --glow-3: rgba(52, 211, 153, 0.12);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Ambient Glowing Spheres */
.ambient-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -1;
    animation: float 20s infinite ease-in-out alternate;
    pointer-events: none;
}

.glow-1 {
    width: 520px;
    height: 520px;
    background: var(--glow-1);
    top: -150px;
    left: -150px;
}

.glow-2 {
    width: 620px;
    height: 620px;
    background: var(--glow-2);
    bottom: -200px;
    right: -150px;
    animation-delay: -5s;
}

.glow-3 {
    width: 450px;
    height: 450px;
    background: var(--glow-3);
    top: 40%;
    left: 45%;
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, 30px) scale(1.06); }
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
.glass-header {
    background: rgba(10, 17, 24, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    text-decoration: none;
    color: inherit;
}

.app-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

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

.logo h1 {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    line-height: 1.1;
}

.logo-subtitle {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-gold);
    font-weight: 600;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.925rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

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

.header-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
    padding: 0.5rem 1.1rem;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 5rem 0 4rem;
    min-height: 85vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 4rem;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1.15;
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
    animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(30px);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    width: fit-content;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    background: rgba(245, 197, 66, 0.12);
    border: 1px solid rgba(245, 197, 66, 0.3);
    color: #F8D068;
    font-size: 0.825rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.headline {
    font-size: 3.75rem;
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
    background: linear-gradient(180deg, #FFFFFF 0%, #CBD5E1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.headline span.gold-text {
    background: linear-gradient(180deg, #FFE082 0%, #F5C542 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tagline {
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--text-primary);
    opacity: 0.95;
    line-height: 1.4;
}

.description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 95%;
    line-height: 1.7;
}

.cta-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.play-store-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--text-primary);
    color: #0A1118;
    text-decoration: none;
    padding: 0.875rem 1.85rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1.025rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 14px rgba(255, 255, 255, 0.15);
}

.play-store-btn i {
    font-size: 1.35rem;
}

.play-store-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.25);
    background: #ffffff;
}

.secondary-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: var(--text-primary);
    text-decoration: none;
    padding: 0.875rem 1.65rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* Hero Visuals */
.hero-visuals {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeIn 1.2s ease-out forwards;
    opacity: 0;
    animation-delay: 0.2s;
    width: 100%;
}

.visual-composition {
    position: relative;
    width: 100%;
    max-width: 450px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Pure CSS Phone Mockup */
.phone-mockup {
    position: relative;
    width: 280px;
    height: 580px;
    border-radius: 40px;
    border: 10px solid #1a202c;
    background: #000;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6), inset 0 0 0 2px #4a5568, 0 0 40px var(--glow-1);
    overflow: hidden;
    z-index: 2;
    flex-shrink: 0;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.phone-mockup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 24px;
    background: #1a202c;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    z-index: 10;
}

/* Carousel */
.carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.phone-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: block;
}

.phone-screen.active {
    opacity: 1;
}

.hero-phone:hover {
    transform: translateY(-8px);
}

/* Carousel Dots Indicator */
.carousel-indicators {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.25rem;
    z-index: 10;
}

.indicator-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator-dot.active {
    background: var(--accent);
    width: 24px;
    border-radius: 4px;
}

/* Stats Counter Bar */
.stats-bar {
    padding: 2.5rem 2rem;
    margin-top: -1rem;
    margin-bottom: 3rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 20px;
    padding: 2rem 1.5rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.35rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(180deg, #FFFFFF 0%, #38BDF8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.stat-sub {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Feature Rows (Zig-Zag Layout) */
.feature-rows {
    padding: 5rem 2rem 7rem;
    display: flex;
    flex-direction: column;
    gap: 7rem;
}

.feature-row {
    display: flex;
    align-items: center;
    gap: 5rem;
}

.feature-row.reverse {
    flex-direction: row-reverse;
}

.feature-content {
    flex: 1.1;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.feature-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    width: fit-content;
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.25);
    color: var(--accent);
    font-size: 0.775rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.feature-content h3 {
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

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

.feature-icon {
    width: 56px;
    height: 56px;
    background: rgba(56, 189, 248, 0.12);
    color: var(--accent);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}

.feature-visual {
    flex: 0.9;
    display: flex;
    justify-content: center;
    position: relative;
}

.feature-visual::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140%;
    height: 140%;
    background: radial-gradient(circle, var(--glow-2) 0%, transparent 60%);
    z-index: -1;
    opacity: 0.4;
}

.feature-visual .phone-mockup:hover {
    transform: translateY(-8px) scale(1.02);
}

.feature-visual .phone-screen {
    position: relative;
    opacity: 1;
}

/* Glass Card Base for Games Grid */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.glass-card:hover {
    background: var(--glass-hover);
    border-color: rgba(255, 255, 255, 0.14);
}

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

/* Games Showcase Section */
.games-showcase {
    padding: 3rem 2rem 7rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 0 1rem;
}

.section-header h2 {
    font-size: 2.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto;
}

/* Filter Bar & Search */
.catalog-controls {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    align-items: center;
}

.search-container {
    position: relative;
    width: 100%;
    max-width: 540px;
}

.search-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    padding: 0.85rem 1.5rem 0.85rem 3rem;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    transition: all 0.25s ease;
}

.search-input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
}

.search-icon {
    position: absolute;
    left: 1.15rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 1.2rem;
    pointer-events: none;
}

.filter-pills {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-pill {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    padding: 0.5rem 1.1rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.filter-pill:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.filter-pill.active {
    background: var(--text-primary);
    color: #0A1118;
    border-color: var(--text-primary);
    font-weight: 600;
}

.catalog-status {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Games Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}

.game-card {
    padding: 1.35rem;
    display: flex;
    align-items: flex-start;
    gap: 1.15rem;
    cursor: default;
}

.game-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

.game-icon {
    font-size: 1.75rem;
    color: var(--accent);
    background: rgba(56, 189, 248, 0.1);
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.game-card:hover .game-icon {
    background: rgba(56, 189, 248, 0.2);
    color: #fff;
    transform: scale(1.05);
}

.game-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.game-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.game-info h4 {
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

.game-era {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--accent-gold);
    background: rgba(245, 197, 66, 0.1);
    border: 1px solid rgba(245, 197, 66, 0.2);
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    white-space: nowrap;
}

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

.game-parlor-tag {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    margin-top: 0.25rem;
}

/* Call to Action Banner Section */
.bottom-cta {
    padding: 4rem 2rem 6rem;
}

.cta-banner {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.8) 100%);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 28px;
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

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

.cta-banner h2 {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.cta-banner p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* Footer */
footer {
    border-top: 1px solid var(--glass-border);
    margin-top: auto;
    padding: 2.5rem 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.footer-brand {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

/* Animations */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive Fixes */
img {
    max-width: 100%;
    height: auto;
}

@media (max-width: 1024px) {
    .headline {
        font-size: 3.25rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 900px) {
    .hero-container,
    .feature-row, 
    .feature-row.reverse {
        flex-direction: column;
        text-align: center;
        gap: 3.5rem;
        padding-top: 1rem;
    }
    
    .hero-content {
        align-items: center;
    }
    
    .feature-content {
        align-items: center;
    }

    .description, .feature-content p {
        max-width: 100%;
        margin: 0 auto;
    }

    .cta-container {
        justify-content: center;
    }
    
    .header-nav {
        display: none; /* Mobile header simplicity */
    }
    
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 600px) {
    .headline {
        font-size: 2.35rem;
    }
    
    .tagline {
        font-size: 1.15rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-content h3 {
        font-size: 1.85rem;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .phone-mockup {
        width: 240px;
        height: 500px;
    }
    
    .cta-banner {
        padding: 2.5rem 1.25rem;
    }
    
    .cta-banner h2 {
        font-size: 2rem;
    }
}
