/* ===== ChonkTV Landing Page Styles ===== */

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

:root {
    --bg-primary: #0d0d0d;
    --bg-secondary: #1a1a1a;
    --bg-card: #222222;
    --text-primary: #f0f0f0;
    --text-secondary: #a0a0a0;
    --accent: #c026d3;
    --accent-light: #d946ef;
    --accent-dark: #86198f;
    --accent-glow: rgba(192, 38, 211, 0.3);
    --border-color: #2a2a2a;
    --max-width: 1100px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--accent-light);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--accent);
}

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

/* --- Layout --- */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- Header / Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(13, 13, 13, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 0;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-primary);
}

.navbar-brand img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

.navbar-brand:hover {
    color: var(--text-primary);
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
}

.navbar-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

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

/* Mobile hamburger */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    margin: 5px 0;
    transition: transform 0.3s, opacity 0.3s;
}

/* --- Hero Section --- */
.hero {
    padding: 8rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-logo {
    width: 140px;
    height: 140px;
    margin: 0 auto 1.5rem;
    border-radius: 28px;
    filter: drop-shadow(0 0 30px var(--accent-glow));
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.hero h1 .accent {
    color: var(--accent-light);
}

.hero .tagline {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* App Store Buttons */
.store-badges {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.store-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.7rem 1.4rem;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.store-badge:hover {
    border-color: var(--accent);
    background: var(--bg-secondary);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.store-badge svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.store-badge .badge-text {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.2;
}

.store-badge .badge-text small {
    font-size: 0.65rem;
    font-weight: 400;
    color: var(--text-secondary);
}

/* --- Features Section --- */
.features {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-size: 1.05rem;
}

.features-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.feature-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.75rem;
    width: 300px;
    transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
    border-color: var(--accent-dark);
    transform: translateY(-3px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-dark);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

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

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

/* --- Screenshots Section --- */
.screenshots {
    padding: 5rem 0;
}

.screenshots-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem;
    padding: 1rem 0 2rem;
}

.screenshot-item {
    width: 200px;
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid var(--border-color);
    transition: border-color 0.2s, transform 0.3s;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.screenshot-item:hover {
    border-color: var(--accent);
    transform: scale(1.03);
}

.screenshot-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* --- CTA Section --- */
.cta {
    padding: 5rem 0;
    text-align: center;
}

.cta-box {
    background: linear-gradient(135deg, var(--accent-dark), var(--bg-secondary));
    border: 1px solid var(--accent-dark);
    border-radius: 24px;
    padding: 3.5rem 2rem;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    pointer-events: none;
}

.cta-box h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    position: relative;
}

.cta-box p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.05rem;
    position: relative;
}

/* --- Footer --- */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
}

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

.footer-copy {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

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

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

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

/* --- Legal Pages --- */
.legal-page {
    padding: 7rem 0 4rem;
}

.legal-page h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.legal-page h2 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--accent-light);
}

.legal-page h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.legal-page p,
.legal-page li {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.legal-page ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-page strong {
    color: var(--text-primary);
}

.legal-page a {
    color: var(--accent-light);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero {
        padding: 6.5rem 0 3rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero .tagline {
        font-size: 1.05rem;
    }

    .hero-logo {
        width: 110px;
        height: 110px;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .feature-card {
        width: 100%;
    }

    .screenshot-item {
        width: 180px;
    }

    .cta-box {
        padding: 2.5rem 1.5rem;
    }

    .cta-box h2 {
        font-size: 1.5rem;
    }

    .footer .container {
        flex-direction: column;
        text-align: center;
    }

    /* Mobile nav */
    .nav-toggle {
        display: block;
    }

    .navbar-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(13, 13, 13, 0.95);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 1rem 1.5rem;
        border-bottom: 1px solid var(--border-color);
    }

    .navbar-links.active {
        display: flex;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.7rem;
    }

    .store-badges {
        flex-direction: column;
        align-items: center;
    }

    .screenshot-item {
        width: 160px;
    }
}
