/* ============ RESET & BASE ============ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #0A0A0F;
    --surface: #16161E;
    --surface-elevated: #1E1E2A;
    --border: #2A2A3A;
    --text-primary: #F0F0F5;
    --text-secondary: #8888A0;
    --accent: #4A9EFF;
    --accent-gold: #FFB844;
    --accent-green: #38D3AA;
    --accent-red: #FF5244;

    --font-heading: 'Manrope', sans-serif;
    --font-body: 'Inter', sans-serif;

    --nav-height: 64px;
    --container-width: 1120px;
    --section-padding: 120px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: var(--font-body);
    background-color: var(--bg);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

/* ============ NAVIGATION ============ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: 100;
    transition: background-color 0.3s, backdrop-filter 0.3s;
}

.nav.scrolled {
    background-color: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 18px;
}

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

.nav-logo-icon {
    font-size: 24px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s;
}

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

.nav-link-cta {
    color: var(--bg);
    background: var(--accent);
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600;
}

.nav-link-cta:hover {
    color: var(--bg);
    background: var(--accent-green);
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.nav-hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-hamburger.open span:nth-child(2) {
    opacity: 0;
}

.nav-hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ============ SHARED ============ */
.section-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section-heading {
    font-family: var(--font-heading);
    font-size: 40px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-subheading {
    font-size: 18px;
    color: var(--text-secondary);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 64px;
    line-height: 1.7;
}

/* ============ HERO ============ */
.hero {
    min-height: 100vh;
    max-height: 960px;
    display: flex;
    align-items: center;
    padding-top: var(--nav-height);
}

.hero-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.hero-headline {
    font-family: var(--font-heading);
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.hero-subheadline {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 480px;
}

.hero-cta {
    display: inline-block;
    margin-bottom: 32px;
}

.app-store-badge {
    display: block;
    transition: transform 0.2s;
}

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

.hero-stats {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-stat {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.hero-stat-divider {
    color: var(--border);
}

.hero-mockup {
    display: flex;
    justify-content: center;
}

/* ============ PHONE MOCKUP ============ */
.phone-mockup {
    position: relative;
    background: linear-gradient(160deg, #1a1a2e 0%, #16213e 40%, #0f3460 100%);
    border: 3px solid var(--border);
    overflow: hidden;
}

.phone-mockup-hero {
    width: 280px;
    aspect-ratio: 9 / 19.5;
    border-radius: 40px;
}

.phone-mockup-sm {
    width: 240px;
    aspect-ratio: 9 / 19.5;
    border-radius: 36px;
}

.phone-mockup-xs {
    width: 200px;
    aspect-ratio: 9 / 19.5;
    border-radius: 30px;
    flex-shrink: 0;
}

.phone-mockup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 28px;
    background: var(--bg);
    border-radius: 0 0 18px 18px;
    z-index: 2;
}

.phone-mockup-sm::before {
    width: 90px;
    height: 24px;
    border-radius: 0 0 16px 16px;
}

.phone-mockup-xs::before {
    width: 80px;
    height: 22px;
    border-radius: 0 0 14px 14px;
}

.phone-mockup[data-label]::after {
    content: attr(data-label);
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    z-index: 2;
}

.phone-screen {
    position: absolute;
    inset: 12px;
    border-radius: 28px;
    overflow: hidden;
}

/* Placeholder UI inside hero phone */
.phone-screen-placeholder {
    padding: 48px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100%;
}

.placeholder-header {
    height: 24px;
    width: 60%;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
}

.placeholder-frames {
    display: flex;
    gap: 4px;
}

.placeholder-frame {
    flex: 1;
    height: 36px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
}

.placeholder-score {
    height: 48px;
    width: 50%;
    background: rgba(74, 158, 255, 0.15);
    border-radius: 8px;
    margin: 8px auto 0;
}

.placeholder-pins {
    width: 80px;
    height: 80px;
    background: rgba(255, 184, 68, 0.1);
    border-radius: 50%;
    margin: auto auto 24px;
}

/* ============ FEATURES ============ */
.features {
    padding: var(--section-padding) 0;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    transition: transform 0.2s, border-color 0.2s;
}

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

.feature-icon {
    font-size: 36px;
    margin-bottom: 16px;
}

.feature-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.feature-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============ SHOWCASE ============ */
.showcase {
    padding: var(--section-padding) 0;
    background: #0F0F18;
}

.showcase-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.showcase-item {
    transition: transform 0.3s;
}

.showcase-item:hover {
    transform: translateY(-8px);
}

/* ============ SCREENSHOTS ============ */
.screenshots {
    padding: var(--section-padding) 0;
}

.screenshots-scroll {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    padding: 16px 0 32px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.screenshots-scroll::-webkit-scrollbar {
    display: none;
}

.screenshots-scroll .phone-mockup-xs {
    scroll-snap-align: start;
    transition: transform 0.2s;
}

.screenshots-scroll .phone-mockup-xs:hover {
    transform: translateY(-8px);
}

/* ============ NUMBERS ============ */
.numbers {
    padding: var(--section-padding) 0;
    background: var(--surface);
}

.numbers-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
    text-align: center;
}

.number-value {
    display: block;
    font-family: var(--font-heading);
    font-size: 40px;
    font-weight: 800;
    color: var(--accent-gold);
    margin-bottom: 8px;
}

.number-label {
    font-size: 15px;
    color: var(--text-secondary);
}

/* ============ DOWNLOAD CTA ============ */
.download {
    padding: var(--section-padding) 0;
}

.download-container {
    text-align: center;
}

.download-cta {
    display: inline-block;
    margin-bottom: 24px;
}

.app-store-badge-lg {
    width: 220px;
    height: auto;
}

.download-compat {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ============ FAQ ============ */
.faq {
    padding: var(--section-padding) 0;
    background: var(--surface);
}

.faq-container {
    max-width: 800px;
}

.faq-list {
    display: flex;
    flex-direction: column;
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-item:first-child {
    border-top: 1px solid var(--border);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    background: none;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
}

.faq-question:hover {
    color: var(--accent);
}

.faq-chevron {
    flex-shrink: 0;
    transition: transform 0.3s;
    color: var(--text-secondary);
}

.faq-item.open .faq-chevron {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer p {
    padding-bottom: 24px;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============ FOOTER ============ */
.footer {
    padding: 80px 0 40px;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.footer-logo-icon {
    font-size: 24px;
}

.footer-logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 18px;
}

.footer-tagline {
    font-size: 14px;
    color: var(--text-secondary);
}

.footer-heading {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.footer-link {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

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

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary);
}

/* ============ DEEP LINK PAGE ============ */
.deep-link-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    padding-top: calc(var(--nav-height) + 24px);
}

.deep-link-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 48px 40px;
    text-align: center;
    max-width: 420px;
    width: 100%;
}

.deep-link-icon {
    font-size: 56px;
    margin-bottom: 24px;
}

.deep-link-heading {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 12px;
}

.deep-link-body {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
}

.deep-link-code {
    font-family: 'Manrope', monospace;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: 4px;
    color: var(--accent-gold);
    background: var(--surface-elevated);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 24px;
    margin-bottom: 24px;
    display: inline-block;
}

.deep-link-instruction {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.6;
}

.deep-link-cta {
    display: inline-block;
    margin-bottom: 24px;
}

.deep-link-home {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
}

.deep-link-home:hover {
    color: var(--accent);
}

/* ============ RESPONSIVE ============ */

/* Tablet */
@media (min-width: 810px) {
    .features-grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }

    .numbers-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Desktop */
@media (min-width: 1200px) {
    .features-grid {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 32px;
    }

    .screenshots-scroll {
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        gap: 24px;
        overflow-x: visible;
    }
}

/* Mobile */
@media (max-width: 809px) {
    :root {
        --section-padding: 80px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: rgba(10, 10, 15, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        border-bottom: 1px solid var(--border);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-link-cta {
        text-align: center;
    }

    .nav-hamburger {
        display: flex;
    }

    .hero {
        min-height: auto;
        max-height: none;
        padding-top: calc(var(--nav-height) + 48px);
        padding-bottom: 64px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }

    .hero-headline {
        font-size: 36px;
    }

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

    .hero-stats {
        justify-content: center;
    }

    .hero-mockup {
        order: -1;
    }

    .phone-mockup-hero {
        width: 220px;
    }

    .section-heading {
        font-size: 30px;
    }

    .section-subheading {
        font-size: 16px;
        margin-bottom: 48px;
    }

    .showcase-grid {
        gap: 24px;
    }

    .phone-mockup-sm {
        width: 180px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .number-value {
        font-size: 32px;
    }

    .deep-link-card {
        padding: 32px 24px;
    }

    .deep-link-code {
        font-size: 24px;
        letter-spacing: 3px;
    }
}
