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

:root {
    --bg: #fff;
    --text: #1d1d1f;
    --text-secondary: #6e6e73;
    --accent: #0071e3;
    --hero-bg: #000;
    --section-alt: #f5f5f7;
    --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

/* ─── Nav ─────────────────────────────────────────── */

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    height: 52px;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.nav-brand {
    font-size: 17px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.01em;
}

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

.nav-links a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #fff;
}

.nav-links .nav-cta {
    color: var(--accent);
    font-weight: 500;
}

.nav-links .nav-cta:hover {
    color: #409cff;
}

/* ─── Hero ─────────────────────────────────────────── */

.hero {
    background: var(--hero-bg);
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
    gap: 24px;
}

.hero-eyebrow {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
}

.hero h1 {
    font-size: clamp(48px, 8vw, 96px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: #f5f5f7;
    max-width: 800px;
}

.hero-sub {
    font-size: clamp(17px, 2.5vw, 24px);
    font-weight: 400;
    color: #a1a1a6;
    max-width: 520px;
    line-height: 1.5;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.app-store-btn img {
    height: 48px;
    display: block;
}

.hero-footnote {
    font-size: 13px;
    color: #6e6e73;
}

.hero-screenshot {
    margin-top: 40px;
    width: min(280px, 70vw);
}

.hero-screenshot img {
    width: 100%;
    border-radius: 40px;
}

/* ─── Scroll reveal ────────────────────────────────── */

.reveal {
    opacity: 0;
    transform: translateY(48px);
    transition: opacity 0.75s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.75s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-48px);
    transition: opacity 0.75s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.75s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(48px);
    transition: opacity 0.75s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.75s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ─── Feature sections ─────────────────────────────── */

.feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 80px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 120px 40px;
}

.feature.alt {
    background: var(--section-alt);
}

.feature.alt-layout {
    direction: rtl;
}

.feature.alt-layout > * {
    direction: ltr;
}

.feature-text {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-eyebrow {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
}

.feature-text h2 {
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: var(--text);
}

.feature-text p {
    font-size: 18px;
    line-height: 1.65;
    color: var(--text-secondary);
    max-width: 420px;
}

.feature-image {
    display: flex;
    justify-content: center;
}

.feature-image img {
    width: min(260px, 100%);
    border-radius: 36px;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.12);
}

/* ─── Pills / badges ───────────────────────────────── */

.badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    background: #f5f5f7;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    border: 1px solid rgba(0,0,0,0.06);
}

/* ─── Screenshots grid ─────────────────────────────── */

.screenshots-section {
    background: var(--hero-bg);
    padding: 120px 40px;
    text-align: center;
}

.screenshots-section h2 {
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 700;
    letter-spacing: -0.025em;
    color: #f5f5f7;
    margin-bottom: 64px;
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.screenshots-grid img {
    width: 100%;
    border-radius: 24px;
    transition: transform 0.3s ease;
}

.screenshots-grid img:hover {
    transform: scale(1.03);
}

/* ─── CTA section ──────────────────────────────────── */

.cta-section {
    padding: 160px 24px;
    text-align: center;
    background: var(--bg);
}

.cta-section .reveal {
    display: flex;
    justify-content: center;
}

.cta-section h2 {
    font-size: clamp(40px, 6vw, 80px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.05;
    color: var(--text);
    margin-bottom: 24px;
}

.cta-section p {
    font-size: 19px;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

/* ─── Footer ───────────────────────────────────────── */

footer {
    border-top: 1px solid #d2d2d7;
    padding: 40px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 13px;
    color: var(--text-secondary);
}

footer a {
    color: var(--text-secondary);
    text-decoration: none;
}

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

.footer-links {
    display: flex;
    gap: 24px;
}

/* ─── Responsive ───────────────────────────────────── */

@media (max-width: 768px) {
    nav {
        padding: 0 20px;
    }

    .nav-links {
        gap: 20px;
    }

    .feature {
        grid-template-columns: 1fr;
        gap: 48px;
        padding: 80px 24px;
        text-align: center;
    }

    .feature.alt-layout {
        direction: ltr;
    }

    .feature-text p {
        max-width: 100%;
    }

    .feature-image {
        order: -1;
    }

    .badge-row {
        justify-content: center;
    }

    .screenshots-section {
        padding: 80px 24px;
    }

    .cta-section {
        padding: 100px 24px;
    }

    footer {
        flex-direction: column;
        align-items: flex-start;
        padding: 32px 24px;
    }
}
