:root {
    color-scheme: light dark;
    --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
    --page-bg: #f7f5f0;
    --page-bg-accent: #eee7d9;
    --surface: #ffffff;
    --surface-raised: #fffdf8;
    --surface-subtle: #eeeae2;
    --text-primary: #1d1b18;
    --text-secondary: #5b554c;
    --text-on-accent: #000000;
    --accent: #b86a00;
    --accent-strong: #7c4300;
    --accent-soft: #ffe6aa;
    --accent-border: #b86a00;
    --border: #d5cec2;
    --border-strong: #9b9182;
    --focus-ring: #005fcc;
    --shadow-soft: 0 1rem 3rem rgba(73, 50, 11, 0.1);
    --shadow-device: 0 1.5rem 4rem rgba(39, 24, 3, 0.24);
    --content-width: 76rem;
    --reading-width: 48rem;
    --radius-small: 0.75rem;
    --radius-medium: 1.25rem;
    --radius-large: 2rem;
}

@media (prefers-color-scheme: dark) {
    :root {
        --page-bg: #0d0c0a;
        --page-bg-accent: #1d170e;
        --surface: #181612;
        --surface-raised: #211e18;
        --surface-subtle: #29251e;
        --text-primary: #f8f4eb;
        --text-secondary: #c9c1b3;
        --text-on-accent: #000000;
        --accent: #ffc857;
        --accent-strong: #ffd77f;
        --accent-soft: #3e2c0d;
        --accent-border: #d69b2d;
        --border: #4d463a;
        --border-strong: #7e7464;
        --focus-ring: #8bc1ff;
        --shadow-soft: 0 1rem 3rem rgba(0, 0, 0, 0.32);
        --shadow-device: 0 1.5rem 4rem rgba(0, 0, 0, 0.58);
    }
}

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

html {
    scroll-behavior: smooth;
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    min-width: 20rem;
    margin: 0;
    background:
        radial-gradient(circle at 85% 8%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 28rem),
        linear-gradient(180deg, var(--page-bg-accent) 0, var(--page-bg) 24rem);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
}

img,
svg {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

a {
    color: var(--accent-strong);
    text-underline-offset: 0.18em;
    text-decoration-thickness: 0.08em;
}

a:hover {
    text-decoration-thickness: 0.14em;
}

button,
[role="button"] {
    min-width: 2.75rem;
    min-height: 2.75rem;
    font: inherit;
}

:focus-visible {
    outline: 0.2rem solid var(--focus-ring);
    outline-offset: 0.2rem;
}

::selection {
    background: var(--accent);
    color: var(--text-on-accent);
}

.skip-link {
    position: fixed;
    z-index: 1000;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-small);
    background: var(--text-primary);
    color: var(--page-bg);
    font-weight: 700;
    transform: translateY(-200%);
    transition: transform 160ms ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: sticky;
    z-index: 100;
    top: 0;
    border-bottom: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
    background: color-mix(in srgb, var(--page-bg) 88%, transparent);
    -webkit-backdrop-filter: blur(1rem) saturate(130%);
    backdrop-filter: blur(1rem) saturate(130%);
}

.nav-shell {
    display: flex;
    width: min(100% - 2rem, var(--content-width));
    min-height: 4.5rem;
    margin-inline: auto;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    display: inline-flex;
    min-height: 2.75rem;
    align-items: center;
    gap: 0.7rem;
    color: var(--text-primary);
    font-size: 1.125rem;
    font-weight: 750;
    letter-spacing: -0.02em;
    text-decoration: none;
}

.brand:hover {
    text-decoration: none;
}

.brand-mark {
    display: grid;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid var(--accent-border);
    border-radius: 0.85rem;
    background: var(--accent);
    color: var(--text-on-accent);
    place-items: center;
    box-shadow: 0 0.45rem 1.1rem color-mix(in srgb, var(--accent) 24%, transparent);
}

.site-nav,
.nav-links,
.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links {
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-links a,
.site-nav > a {
    display: inline-flex;
    min-height: 2.75rem;
    padding-inline: 0.75rem;
    align-items: center;
    border-radius: 999px;
    color: var(--text-secondary);
    font-weight: 650;
    text-decoration: none;
}

.nav-links a:hover,
.site-nav > a:hover {
    background: var(--surface-subtle);
    color: var(--text-primary);
}

main {
    overflow: clip;
}

.hero {
    position: relative;
    isolation: isolate;
    padding-block: clamp(4rem, 9vw, 8rem);
}

.hero::before {
    position: absolute;
    z-index: -1;
    top: 8%;
    right: -15rem;
    width: 32rem;
    height: 32rem;
    border-radius: 50%;
    background: color-mix(in srgb, var(--accent) 16%, transparent);
    content: "";
    filter: blur(2rem);
}

.hero-grid {
    display: grid;
    width: min(100% - 2rem, var(--content-width));
    margin-inline: auto;
    align-items: start;
    gap: clamp(3rem, 7vw, 7rem);
    grid-template-columns: minmax(0, 0.85fr) minmax(22rem, 1.15fr);
}

.hero-copy {
    max-width: 40rem;
}

.status-badge {
    display: inline-flex;
    min-height: 2rem;
    margin-bottom: 1.25rem;
    padding: 0.35rem 0.75rem;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid var(--accent-border);
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-strong);
    font-size: 0.875rem;
    font-weight: 750;
    line-height: 1.3;
}

.status-badge::before {
    width: 0.55rem;
    height: 0.55rem;
    flex: 0 0 auto;
    border-radius: 50%;
    background: currentColor;
    content: "";
}

.hero h1,
.hero-copy h1 {
    max-width: 13ch;
    margin: 0;
    font-size: clamp(2.75rem, 7vw, 5.75rem);
    letter-spacing: -0.055em;
    line-height: 0.96;
    text-wrap: balance;
}

.hero-copy > p,
.hero-copy .lede {
    max-width: 58ch;
    margin-block: 1.5rem 0;
    color: var(--text-secondary);
    font-size: clamp(1.1rem, 1.7vw, 1.3rem);
}

.hero-actions {
    display: flex;
    margin-top: 2rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.button,
.hero-actions a,
.callout a[role="button"] {
    display: inline-flex;
    min-height: 2.75rem;
    padding: 0.75rem 1rem;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text-primary);
    font-weight: 750;
    line-height: 1.25;
    text-decoration: none;
    transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.button:hover,
.hero-actions a:hover,
.callout a[role="button"]:hover {
    border-color: var(--accent-border);
    background: var(--surface-raised);
    text-decoration: none;
    transform: translateY(-0.1rem);
}

.button-primary,
.hero-actions .button-primary,
.hero-actions a:first-child {
    border-color: var(--accent-border);
    background: var(--accent);
    color: var(--text-on-accent);
}

.button-primary:hover,
.hero-actions .button-primary:hover,
.hero-actions a:first-child:hover {
    border-color: var(--text-primary);
    background: var(--accent);
    color: var(--text-on-accent);
}

.hero-gallery {
    display: grid;
    min-width: 0;
    align-items: start;
    gap: clamp(0.75rem, 2vw, 1.25rem);
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hero-gallery > :nth-child(even) {
    margin-top: clamp(2rem, 6vw, 5rem);
}

.device-frame {
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: clamp(0.3rem, 0.7vw, 0.55rem);
    border: 1px solid #4b463e;
    border-radius: clamp(1.35rem, 3vw, 2.35rem);
    background: #171612;
    box-shadow: var(--shadow-device);
}

.device-frame::before {
    position: absolute;
    z-index: 1;
    top: 0.7rem;
    left: 50%;
    width: 29%;
    height: 1.05rem;
    border-radius: 999px;
    background: #050505;
    content: "";
    transform: translateX(-50%);
}

.device-frame img {
    width: 100%;
    border-radius: clamp(1.05rem, 2.5vw, 1.9rem);
    background: #000000;
}

.device-frame figcaption {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    margin: -1px;
    padding: 0;
    border: 0;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.section {
    padding-block: clamp(4rem, 9vw, 8rem);
    scroll-margin-top: 5.5rem;
}

.section > .section-inner,
.section-inner,
.section > header,
.section > .feature-grid,
.section > .privacy-card,
.section > .callout {
    width: min(100% - 2rem, var(--content-width));
    margin-inline: auto;
}

.section > header,
.section-header {
    max-width: 48rem;
    margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.eyebrow {
    margin: 0 0 0.5rem;
    color: var(--accent-strong);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.section h2,
.section-header h2,
.legal-page h1 {
    margin-block: 0;
    font-size: clamp(2rem, 4.5vw, 3.75rem);
    letter-spacing: -0.045em;
    line-height: 1.05;
    text-wrap: balance;
}

.section-header p,
.section > header p {
    max-width: 64ch;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.journey {
    position: relative;
    border-block: 1px solid var(--border);
    background: color-mix(in srgb, var(--surface-subtle) 48%, transparent);
}

.section > .journey-track {
    width: min(100% - 2rem, var(--content-width));
    margin-inline: auto;
}

.journey-track {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.journey-step {
    display: flex;
    min-width: 0;
    padding: clamp(1.25rem, 3vw, 2rem) clamp(1.25rem, 3vw, 2rem) 0;
    flex-direction: column;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-large);
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    box-shadow: var(--shadow-soft);
}

.journey-copy {
    width: 100%;
}

.journey-number {
    display: inline-flex;
    min-width: 2.4rem;
    min-height: 2.1rem;
    padding-inline: 0.7rem;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--accent-border);
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-strong);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.journey-copy h3 {
    margin: 1rem 0 0.65rem;
    font-size: clamp(1.25rem, 2.2vw, 1.65rem);
    letter-spacing: -0.03em;
    line-height: 1.12;
}

.journey-copy p {
    margin: 0;
    color: var(--text-secondary);
}

.journey-device {
    width: min(100%, 18rem);
    overflow: hidden;
    margin: 1.75rem auto 0;
    padding: 0.35rem;
    border: 1px solid #4b463e;
    border-bottom: 0;
    border-radius: 1.8rem 1.8rem 0 0;
    background: #171612;
    box-shadow: 0 -0.8rem 2rem color-mix(in srgb, var(--accent) 12%, transparent);
}

.journey-device img {
    width: 100%;
    border-radius: 1.5rem 1.5rem 0 0;
    background: #000000;
}

.feature-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card,
.privacy-card,
.support-card,
.legal-section {
    border: 1px solid var(--border);
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    box-shadow: var(--shadow-soft);
}

.feature-card {
    min-height: 100%;
    padding: clamp(1.4rem, 3vw, 2rem);
    border-radius: var(--radius-medium);
}

.feature-card h3,
.privacy-card h2,
.support-card h2,
.legal-section h2,
.legal-section h3 {
    margin-block: 0 0.5rem;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.feature-card p,
.privacy-card p,
.support-card p,
.legal-section p,
.legal-section li {
    color: var(--text-secondary);
}

.feature-card p:last-child,
.privacy-card p:last-child,
.support-card p:last-child,
.legal-section p:last-child {
    margin-bottom: 0;
}

.tmdb-logo {
    display: inline-flex;
    width: min(100%, 10rem);
    min-height: 2.75rem;
    margin-top: 0.75rem;
    align-items: center;
}

.feature-icon {
    display: grid;
    width: 2.75rem;
    height: 2.75rem;
    margin-bottom: 1rem;
    border: 1px solid var(--accent-border);
    border-radius: 0.9rem;
    background: var(--accent-soft);
    color: var(--accent-strong);
    place-items: center;
}

.privacy-card {
    display: grid;
    padding: clamp(1.5rem, 4vw, 3rem);
    border-color: var(--accent-border);
    border-radius: var(--radius-large);
    gap: clamp(1.5rem, 4vw, 3rem);
    grid-template-columns: minmax(0, 0.75fr) minmax(18rem, 1.25fr);
}

.privacy-card ul,
.legal-section ul,
.legal-section ol {
    padding-left: 1.25rem;
}

.privacy-card li + li,
.legal-section li + li {
    margin-top: 0.55rem;
}

.callout {
    padding: clamp(1.75rem, 5vw, 4rem);
    border: 1px solid var(--accent-border);
    border-radius: var(--radius-large);
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--accent) 22%, var(--surface)), var(--surface-raised));
    box-shadow: var(--shadow-soft);
    text-align: center;
}

.callout h2 {
    max-width: 18ch;
    margin-inline: auto;
}

.callout p {
    max-width: 58ch;
    margin-inline: auto;
    color: var(--text-secondary);
}

.site-footer {
    border-top: 1px solid var(--border);
    background: var(--surface);
}

.site-footer > div,
.footer-shell {
    display: flex;
    width: min(100% - 2rem, var(--content-width));
    min-height: 8rem;
    margin-inline: auto;
    padding-block: 1.5rem;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2rem;
}

.site-footer p {
    margin: 0;
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1rem;
}

.footer-links a {
    display: inline-flex;
    min-height: 2.75rem;
    align-items: center;
    color: var(--text-secondary);
    font-weight: 650;
}

.legal-page {
    width: min(100% - 2rem, var(--reading-width));
    margin-inline: auto;
    padding-block: clamp(3rem, 8vw, 7rem);
}

.legal-page > header {
    margin-bottom: 2.5rem;
}

.legal-page > header p,
.legal-page .last-updated {
    color: var(--text-secondary);
}

.legal-section {
    padding: clamp(1.25rem, 4vw, 2.25rem);
    border-radius: var(--radius-medium);
    scroll-margin-top: 5.5rem;
}

.legal-section + .legal-section {
    margin-top: 1rem;
}

.legal-section a,
.support-card a {
    overflow-wrap: anywhere;
}

.faq-grid {
    display: grid;
    gap: 1rem;
}

.faq-grid details {
    padding: 0.25rem 1.25rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-medium);
    background: var(--surface);
}

.faq-grid summary {
    min-height: 2.75rem;
    padding-block: 0.85rem;
    color: var(--text-primary);
    font-weight: 750;
    cursor: pointer;
}

.faq-grid details p {
    margin-top: 0.25rem;
    color: var(--text-secondary);
}

.support-card {
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border-radius: var(--radius-medium);
}

.support-card + .support-card {
    margin-top: 1rem;
}

@media (max-width: 56rem) {
    .nav-shell {
        padding-block: 0.5rem;
        flex-wrap: wrap;
    }

    .site-nav {
        order: 3;
        width: 100%;
        overflow-x: auto;
        padding-bottom: 0.25rem;
        scroll-snap-type: x proximity;
        scrollbar-width: thin;
    }

    .nav-links {
        min-width: max-content;
    }

    .hero-grid {
        gap: 3.5rem;
        grid-template-columns: 1fr;
    }

    .hero-copy {
        max-width: 44rem;
    }

    .hero-gallery {
        width: min(100%, 38rem);
        margin-inline: auto;
    }

    .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 44rem) {
    .feature-grid,
    .privacy-card,
    .journey-track {
        grid-template-columns: 1fr;
    }

    .journey-step {
        align-items: stretch;
    }

    .journey-device {
        width: min(100%, 19rem);
    }

    .site-footer > div,
    .footer-shell {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
    }
}

@media (max-width: 32rem) {
    .nav-shell,
    .hero-grid,
    .section > .section-inner,
    .section-inner,
    .section > header,
    .section > .feature-grid,
    .section > .privacy-card,
    .section > .callout,
    .site-footer > div,
    .footer-shell,
    .legal-page {
        width: min(100% - 1.25rem, var(--content-width));
    }

    .brand-name {
        max-width: 9rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .hero h1,
    .hero-copy h1 {
        font-size: clamp(2.5rem, 15vw, 4rem);
    }

    .hero-gallery {
        gap: 0.5rem;
    }

    .device-frame {
        padding: 0.25rem;
        border-radius: 1.25rem;
    }

    .device-frame img {
        border-radius: 1rem;
    }
}

@media (prefers-contrast: more) {
    :root {
        --border: var(--border-strong);
    }

    .site-header {
        background: var(--page-bg);
    }

    .feature-card,
    .privacy-card,
    .support-card,
    .legal-section,
    .faq-grid details {
        border-width: 2px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

    .button:hover,
    .hero-actions a:hover,
    .callout a[role="button"]:hover {
        transform: none;
    }
}
