: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.06);
    --accent: #38BDF8;
    --glow-1: rgba(56, 189, 248, 0.15);
    --glow-2: rgba(167, 139, 250, 0.15);
    --glow-3: rgba(52, 211, 153, 0.1);
}

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

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(120px);
    z-index: -1;
    animation: float 20s infinite ease-in-out alternate;
}

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

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

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

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

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

/* Header */
.glass-header {
    background: rgba(10, 17, 24, 0.7);
    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;
}

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

.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.1);
}

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

/* Hero Section */
.hero {
    position: relative;
    padding: 6rem 0;
    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.1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(30px);
}

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

.tagline {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-primary);
    opacity: 0.9;
}

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

.cta-container {
    margin-top: 1rem;
}

.play-store-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--text-primary);
    color: #0A1118;
    text-decoration: none;
    padding: 0.875rem 2rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1.05rem;
    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.4rem;
}

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

/* Hero Visuals */
.hero-visuals {
    flex: 1;
    display: flex;
    justify-content: 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;
    justify-content: center;
    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 1s ease-in-out;
    display: block;
}

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

/* Fallback for non-carousel screens */
.feature-visual .phone-screen {
    position: relative;
    opacity: 1;
}

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

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

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

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

.feature-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-content h3 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

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

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

.feature-visual {
    flex: 1;
    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.5;
}

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

/* 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: 20px;
    transition: all 0.4s 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.1), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

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

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

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

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

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

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

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

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

.game-icon {
    font-size: 2rem;
    color: var(--accent);
    background: rgba(56, 189, 248, 0.1);
    width: 48px;
    height: 48px;
    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;
}

.game-info h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.375rem;
    letter-spacing: -0.01em;
}

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

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

/* 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;
    }
}

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

    .description, .feature-content p {
        max-width: 100%;
        margin: 0 auto;
    }
    
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 600px) {
    .headline {
        font-size: 2.5rem;
    }
    
    .tagline {
        font-size: 1.25rem;
    }
    
    .feature-content h3 {
        font-size: 2rem;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .phone-mockup {
        width: 240px;
        height: 500px;
    }
}
