/* Color scheme from AppColors.swift */
:root {
    --gradient-start: #142E3F;
    --gradient-end: #073F57;
    --dark-background: #001923;
    --card-background: #001920;
    --accent-cyan: #1CABCD;
    --accent-cyan-light: #7AF1FF;
    --card-border: #11343D;
    --button-dark: #00131D;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(180deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    min-height: 100vh;
    color: var(--text-primary);
    position: relative;
    overflow-x: hidden;
}

/* Cyan glow at bottom (like AppBackground) */
.glow-bottom {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(ellipse at center bottom, rgba(122, 241, 255, 0.22) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1rem 2rem;
    background: rgba(20, 46, 63, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--card-border);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-cyan);
}

.nav-cta {
    background: var(--accent-cyan);
    color: var(--button-dark);
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.nav-cta:hover {
    background: var(--accent-cyan-light);
    transform: translateY(-1px);
}

/* Main content */
main {
    position: relative;
    z-index: 1;
    padding-top: 80px;
}

/* Hero section */
.hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem 6rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: calc(100vh - 80px);
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-content .highlight {
    color: var(--accent-cyan);
}

.hero-content .subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 480px;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
}

.app-store-badge img {
    height: 54px;
    transition: transform 0.2s ease;
}

.app-store-badge:hover img {
    transform: scale(1.05);
}

.app-store-badge.large img {
    height: 64px;
}

/* iPhone mockup */
.hero-device {
    display: flex;
    justify-content: center;
}

.iphone-frame {
    background: #1a1a1a;
    border-radius: 40px;
    padding: 12px;
    width: 280px;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.5);
    position: relative;
}

.iphone-frame.small {
    width: 200px;
    border-radius: 30px;
    padding: 8px;
}

.iphone-notch {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 28px;
    background: #1a1a1a;
    border-radius: 0 0 20px 20px;
    z-index: 10;
}

.iphone-frame.small .iphone-notch {
    width: 70px;
    height: 20px;
    top: 8px;
    border-radius: 0 0 14px 14px;
}

.iphone-screen {
    background: var(--dark-background);
    border-radius: 30px;
    aspect-ratio: 9/19.5;
    overflow: hidden;
}

.iphone-frame.small .iphone-screen {
    border-radius: 22px;
}

.placeholder-screen {
    width: 100%;
    height: 100%;
    padding: 50px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.placeholder-screen.dark {
    background: linear-gradient(180deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    justify-content: center;
    align-items: center;
    padding: 0;
}

.placeholder-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

.placeholder-header {
    height: 40px;
    background: var(--card-background);
    border-radius: 8px;
    border: 1px solid var(--card-border);
}

.placeholder-channels {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.placeholder-channel {
    height: 60px;
    background: var(--card-background);
    border-radius: 12px;
    border: 1px solid var(--card-border);
}

/* Features section */
.features {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem;
    text-align: center;
}

.features h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

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

.feature-card {
    background: rgba(0, 25, 32, 0.6);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: left;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-cyan);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(28, 171, 205, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

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

/* Screenshots section */
.screenshots {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem;
    text-align: center;
}

.screenshots h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.screenshots-row {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.screenshot-device {
    transition: transform 0.3s ease;
}

.screenshot-device:hover {
    transform: translateY(-8px);
}

/* Download section */
.download {
    max-width: 800px;
    margin: 0 auto;
    padding: 6rem 2rem;
    text-align: center;
}

.download h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

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

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

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

@media (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 3rem 1.5rem 4rem;
        min-height: auto;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content .subtitle {
        max-width: 100%;
    }

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

    .hero-device {
        order: -1;
    }

    .iphone-frame {
        width: 220px;
    }

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

    .screenshots-row {
        flex-wrap: wrap;
    }

    .iphone-frame.small {
        width: 160px;
    }
}
