/* ===========================================
   OnTrack Landing Page
   =========================================== */

:root {
    --color-bg: #000000;
    --color-text: #ffffff;
    --color-text-muted: rgba(255, 255, 255, 0.5);
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html,
body {
    height: 100%;
}

body {
    font-family: var(--font-family);
    background: var(--color-bg);
    color: var(--color-text);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ===========================================
   Header
   =========================================== */

.header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2.5rem 2rem 0;
}

.header-icon {
    width: 80px;
    height: 80px;
    border-radius: 18px;
}

/* App Store Button */
.app-store-link {
    display: inline-block;
    transition: opacity 0.2s ease;
    text-decoration: none;
}

.app-store-link:hover {
    opacity: 0.8;
}

.app-store-link img {
    height: 40px;
    width: auto;
    display: block;
}

/* ===========================================
   Main Content
   =========================================== */

.main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 2rem;
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
}

/* ===========================================
   Hero Section
   =========================================== */

.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 6rem;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

h1 {
    font-size: clamp(2.5rem, 5.5vw, 4rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 2rem;
}

.feature-list {
    list-style: none;
    margin-bottom: 1.75rem;
}

.feature-list li {
    font-size: 0.9rem;
    font-weight: 400;
    margin-bottom: 0.3rem;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature-list li:first-child {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
}

.feature-list li:last-child {
    color: rgba(255, 255, 255, 0.35);
}

.feature-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    opacity: 0.7;
}

.hero-punchline {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.25rem;
    letter-spacing: -0.01em;
}

.cta-block {
    margin-top: 0;
}

/* Social Proof */
.social-proof {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
}

.social-proof-avatars {
    display: flex;
}

.avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1.5px solid var(--color-bg);
    object-fit: cover;
    margin-left: -8px;
}

.avatar:first-child {
    margin-left: 0;
}

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

.hero .app-store-link img {
    height: 52px;
}

/* Phone Mockup */
.hero-mockup {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.phone-frame {
    position: relative;
    width: 380px;
}

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

.app-screens-overlay {
    position: absolute;
    top: 13%;
    left: 50%;
    transform: translateX(-50%);
    width: 88%;
}

.app-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease-in-out;
}

.app-screen:first-child {
    position: relative;
}

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

/* Carousel Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 1rem;
}

.dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    transition: background 0.3s ease, transform 0.3s ease;
}

.dot.active {
    background: rgba(255, 255, 255, 0.85);
    transform: scale(1.25);
}

/* ===========================================
   Footer
   =========================================== */

.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem 2.5rem;
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
}

.copyright {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    font-size: 0.75rem;
    transition: color 0.2s ease;
}

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

/* ===========================================
   Legal Pages (Privacy, Terms)
   =========================================== */

.legal-page {
    display: block;
    padding: 2rem 2rem 4rem;
    max-width: 800px;
    margin: 0 auto;
    align-items: flex-start;
}

.legal-content {
    width: 100%;
}

.legal-content h1 {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
}

.legal-content .last-updated {
    color: var(--color-text);
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
}

.legal-content section {
    margin-bottom: 2rem;
}

.legal-content h2 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1rem;
    margin-left: 1.5rem;
    color: var(--color-text);
}

.legal-content h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--color-text);
}

.legal-content p {
    color: var(--color-text);
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.legal-content ul {
    color: var(--color-text);
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.7;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

.legal-content a {
    color: var(--color-text);
    text-decoration: underline;
}

.legal-content a:hover {
    opacity: 0.8;
}

/* ===========================================
   Responsive
   =========================================== */

@media (max-width: 768px) {
    .header {
        padding: 1.5rem 1.5rem 0;
    }

    .header-icon {
        width: 64px;
        height: 64px;
        border-radius: 14px;
    }

    .main {
        padding: 2rem 1.5rem;
        align-items: center;
        justify-content: center;
    }

    .hero {
        flex-direction: column-reverse;
        align-items: center;
        text-align: center;
        gap: 2rem;
    }

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

    h1 {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }

    .feature-list li {
        font-size: 0.85rem;
        justify-content: center;
    }

    .social-proof {
        justify-content: center;
    }

    .hero .app-store-link img {
        height: 44px;
    }

    .phone-frame {
        width: 280px;
    }

    .footer {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
        padding: 1.25rem 1.5rem 1.5rem;
    }

    .footer-links {
        gap: 1.25rem;
    }
}