/* ═══════════════════════════════════════════════════════════
   TITO AI — PREMIUM SCROLLYTELLING LANDING PAGE
   Design System: Apple-level, Dark Mode, Accessible
   ═══════════════════════════════════════════════════════════ */

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

:root {
    /* Colors */
    --bg-primary: #050505;
    --bg-secondary: #0A0A0C;
    --bg-elevated: rgba(5, 5, 5, 0.85);
    --text-heading: rgba(255, 255, 255, 0.92);
    --text-body: rgba(255, 255, 255, 0.78);
    --text-muted: rgba(255, 255, 255, 0.45);
    --accent-red: #D32F2F;
    --accent-red-dim: rgba(211, 47, 47, 0.15);
    --accent-green: #7BAE4C;
    --accent-green-dim: rgba(123, 174, 76, 0.14);
    --accent-gold: #D4A24C;
    --accent-gold-dim: rgba(212, 162, 76, 0.14);
    --border-subtle: rgba(255, 255, 255, 0.06);
    --glow-red: 0 0 60px rgba(211, 47, 47, 0.08);
    --glow-green: 0 0 60px rgba(123, 174, 76, 0.08);

    /* Typography scale */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --fs-display: clamp(3rem, 7vw, 6.5rem);
    --fs-h1: clamp(2.5rem, 5.5vw, 5rem);
    --fs-h2: clamp(2rem, 4vw, 3.5rem);
    --fs-h3: clamp(1.25rem, 2vw, 1.5rem);
    --fs-body: clamp(1rem, 1.3vw, 1.25rem);
    --fs-body-lg: clamp(1.125rem, 1.5vw, 1.375rem);
    --fs-small: clamp(0.8125rem, 1vw, 0.9375rem);
    --fs-badge: 0.75rem;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;

    /* Easing */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);

    /* Layout */
    --navbar-height: 48px;
    --content-max-width: 1400px;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--font-family);
    background: var(--bg-primary);
    color: var(--text-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Hide scrollbar for cleaner look (still scrollable) */
body::-webkit-scrollbar {
    width: 0;
}

body {
    scrollbar-width: none;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

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

/* ── LOADING SCREEN ───────────────────────────────────── */
.loader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s var(--ease-out-expo), visibility 0.8s;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-inner {
    text-align: center;
    width: 200px;
}

.loader-logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-heading);
    margin-bottom: var(--space-lg);
    background: linear-gradient(135deg, var(--text-heading), var(--accent-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.loader-bar-track {
    width: 100%;
    height: 2px;
    background: var(--border-subtle);
    border-radius: 1px;
    overflow: hidden;
}

.loader-bar-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-red), var(--accent-green));
    border-radius: 1px;
    transition: width 0.15s linear;
}

.loader-percent {
    font-size: var(--fs-small);
    color: var(--text-muted);
    margin-top: var(--space-sm);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.05em;
}

/* ── NAVBAR ───────────────────────────────────────────── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9000;
    height: var(--navbar-height);
    background: transparent;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    border-bottom: 1px solid transparent;
    transition: background 0.5s var(--ease-out-expo),
        backdrop-filter 0.5s var(--ease-out-expo),
        border-color 0.5s var(--ease-out-expo);
    opacity: 0;
    transform: translateY(-10px);
    animation: navFadeIn 1s var(--ease-out-expo) 0.5s forwards;
}

@keyframes navFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.navbar.scrolled {
    background: var(--bg-elevated);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom-color: var(--border-subtle);
}

.navbar-inner {
    max-width: var(--content-max-width);
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-lg);
}

.navbar-logo {
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-heading);
    transition: opacity 0.3s;
    white-space: nowrap;
}

.navbar-logo:hover {
    opacity: 0.7;
}

.navbar-links {
    display: flex;
    gap: clamp(12px, 2vw, var(--space-lg));
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}

.navbar-links a {
    font-size: var(--fs-small);
    font-weight: 400;
    color: var(--text-muted);
    letter-spacing: 0;
    padding: var(--space-xs) 0;
    position: relative;
    white-space: nowrap;
    transition: color 0.3s var(--ease-out-expo);
}

.navbar-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--accent-red);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s var(--ease-out-expo);
}

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

.navbar-links a:hover::after {
    transform: scaleX(1);
}

.navbar-links a:focus-visible {
    color: var(--text-heading);
    outline: 2px solid var(--accent-green);
    outline-offset: 4px;
    border-radius: 2px;
}

.navbar-cta {
    font-size: var(--fs-small);
    font-weight: 600;
    color: #050505;
    padding: 6px 18px;
    border-radius: 980px;
    background: #ffffff;
    border: none;
    transition: all 0.4s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.navbar-cta:hover {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.navbar-cta:focus-visible {
    outline: 2px solid var(--accent-green);
    outline-offset: 4px;
}

/* Hamburger */
.navbar-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 9100;
}

.navbar-hamburger span {
    display: block;
    width: 20px;
    height: 1.5px;
    background: var(--text-heading);
    transition: all 0.3s var(--ease-out-expo);
    transform-origin: center;
}

.navbar-hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(4.5px, 4.5px);
}

.navbar-hamburger.active span:nth-child(2) {
    opacity: 0;
}

.navbar-hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4.5px, -4.5px);
}

/* Mobile menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 8999;
    background: rgba(5, 5, 5, 0.97);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s var(--ease-out-expo);
}

.mobile-menu.open {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-links {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.mobile-menu-links a {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-heading);
    letter-spacing: -0.02em;
    transition: color 0.3s;
}

.mobile-menu-links a:hover {
    color: var(--accent-red);
}

.mobile-cta {
    font-size: 1.25rem !important;
    padding: 10px 32px;
    border: 1px solid var(--accent-red);
    border-radius: 980px;
    display: inline-block;
    margin-top: var(--space-md);
}

/* ── SCROLL CONTAINER ─────────────────────────────────── */
.scroll-container {
    position: relative;
    height: 500vh;
}

.sticky-wrapper {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

/* ── CANVAS ───────────────────────────────────────────── */
#sequenceCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ── COPY SECTIONS (overlay on canvas) ────────────────── */
.copy-section {
    position: absolute;
    z-index: 10;
    opacity: 0;
    transition: none;
    /* JS handles visibility */
    pointer-events: none;
    will-change: opacity, transform;
}

.copy-section.visible {
    pointer-events: auto;
}

/* ── HERO COPY ────────────────────────────────────────── */
.hero-copy {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    width: 90%;
    max-width: 900px;
    padding-top: calc(var(--navbar-height) + var(--space-lg));
    background: linear-gradient(180deg, rgba(5, 5, 5, 0.95) 0%, rgba(5, 5, 5, 0.7) 60%, transparent 100%);
    padding-bottom: var(--space-xl);
}

.hero-headline {
    font-size: var(--fs-display);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.0;
    color: var(--text-heading);
    margin-bottom: var(--space-md);
    text-shadow: 0 4px 40px rgba(0, 0, 0, 0.9), 0 0 80px rgba(0, 0, 0, 0.7);
}

.hero-subtitle {
    font-size: var(--fs-h3);
    font-weight: 400;
    color: var(--text-body);
    margin-bottom: var(--space-sm);
    letter-spacing: -0.01em;
}

.hero-supporting {
    font-size: var(--fs-body);
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 540px;
    margin: 0 auto;
}

.hero-scroll-hint {
    margin-top: var(--space-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    opacity: 1;
    transition: opacity 0.5s;
}

.scroll-text {
    font-size: var(--fs-small);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #ffffff;
}

.scroll-arrow {
    animation: scrollBounce 2s var(--ease-in-out) infinite;
    color: #ffffff;
}

@keyframes scrollBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(6px);
    }
}

/* ── ENGINEERING / LEFT-ALIGNED COPY ──────────────────── */
.engineering-copy {
    top: 50%;
    left: 5%;
    transform: translateY(-50%);
    max-width: 420px;
    background: rgba(8, 8, 8, 0.88);
    backdrop-filter: blur(24px) saturate(120%);
    -webkit-backdrop-filter: blur(24px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: var(--space-xl) var(--space-lg);
    border-radius: 24px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

/* ── ACCESSIBILITY / RIGHT-ALIGNED COPY ──────────────── */
.accessibility-copy {
    top: 50%;
    right: 5%;
    transform: translateY(-50%);
    max-width: 420px;
    text-align: right;
    background: rgba(8, 8, 8, 0.88);
    backdrop-filter: blur(24px) saturate(120%);
    -webkit-backdrop-filter: blur(24px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: var(--space-xl) var(--space-lg);
    border-radius: 24px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

/* ── SOUND / LEFT-ALIGNED COPY ────────────────────────── */
.sound-copy {
    top: 50%;
    left: 5%;
    transform: translateY(-50%);
    max-width: 420px;
    background: rgba(8, 8, 8, 0.88);
    backdrop-filter: blur(24px) saturate(120%);
    -webkit-backdrop-filter: blur(24px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: var(--space-xl) var(--space-lg);
    border-radius: 24px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

/* ── CTA / CENTER COPY ────────────────────────────────── */
.cta-copy {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 90%;
    max-width: 700px;
    background: rgba(8, 8, 8, 0.90);
    backdrop-filter: blur(32px) saturate(120%);
    -webkit-backdrop-filter: blur(32px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: var(--space-2xl);
    border-radius: 32px;
    box-shadow: 0 12px 60px rgba(0, 0, 0, 0.6);
}

/* ── SHARED TYPOGRAPHY ────────────────────────────────── */
.copy-badge {
    display: inline-block;
    font-size: var(--fs-badge);
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-red);
    background: var(--accent-red-dim);
    padding: 5px 14px;
    border-radius: 980px;
    margin-bottom: var(--space-md);
}

.copy-badge.accent-green {
    color: var(--accent-green);
    background: var(--accent-green-dim);
}

.copy-badge.accent-gold {
    color: var(--accent-gold);
    background: var(--accent-gold-dim);
}

.section-headline {
    font-size: var(--fs-h2);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--text-heading);
    margin-bottom: var(--space-md);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 0, 0, 0.5);
}

.section-body {
    font-size: var(--fs-body-lg);
    color: var(--text-body);
    line-height: 1.7;
    margin-bottom: var(--space-sm);
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.6);
}

.section-body:last-of-type {
    margin-bottom: var(--space-lg);
}

/* Feature list */
.feature-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.feature-list li {
    display: flex;
    gap: var(--space-sm);
    font-size: var(--fs-body-lg);
    color: var(--text-body);
    line-height: 1.6;
}

.accessibility-copy .feature-list li {
    justify-content: flex-end;
    text-align: right;
}

.feature-icon {
    color: var(--accent-green);
    font-size: 0.6em;
    flex-shrink: 0;
    margin-top: 0.5em;
}

/* Feature pills */
.feature-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.accessibility-copy .feature-pills {
    justify-content: flex-end;
}

.pill {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    color: var(--text-muted);
    border: 1px solid var(--border-subtle);
    padding: 5px 14px;
    border-radius: 980px;
    transition: all 0.3s var(--ease-out-expo);
}

.visible .pill {
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--text-body);
}

/* ── CTA SECTION ──────────────────────────────────────── */
.cta-headline {
    font-size: var(--fs-h1);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.05;
    color: var(--text-heading);
    margin-bottom: var(--space-md);
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.9), 0 0 60px rgba(0, 0, 0, 0.7);
    background: linear-gradient(135deg, var(--text-heading) 40%, var(--accent-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-subheadline {
    font-size: var(--fs-body-lg);
    color: var(--text-body);
    margin-bottom: var(--space-xl);
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    color: #050505;
    background: #ffffff;
    padding: 14px 42px;
    border-radius: 980px;
    letter-spacing: -0.01em;
    transition: all 0.4s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: scale(1.03);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.2), 0 8px 32px rgba(255, 255, 255, 0.1);
}

.btn-primary:focus-visible {
    outline: 2px solid var(--accent-green);
    outline-offset: 4px;
}

.btn-secondary {
    font-size: var(--fs-small);
    font-weight: 500;
    color: var(--accent-green);
    letter-spacing: 0;
    padding: 8px 0;
    border-bottom: 1px solid transparent;
    transition: all 0.3s var(--ease-out-expo);
}

.btn-secondary:hover {
    border-bottom-color: var(--accent-green);
}

.btn-secondary:focus-visible {
    outline: 2px solid var(--accent-green);
    outline-offset: 4px;
}

/* ── FOOTER — STICKY BRAND REVEAL ────────────────── */
.site-footer {
    position: sticky;
    bottom: 0;
    width: 100%;
    height: 40vh;
    /* Shallower reveal as requested */
    background: var(--bg-primary);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 1;
    /* Sit behind the main content */
    overflow: hidden;
}

.footer-minimal {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 2vh;
}

.footer-spotlight {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle at center,
            rgba(211, 47, 47, 0.15) 0%,
            rgba(211, 47, 47, 0.05) 30%,
            transparent 70%);
    filter: blur(60px);
    pointer-events: none;
    z-index: 0;
    will-change: transform;
    opacity: 0;
    transition: opacity 1s ease;
}

.site-footer:hover .footer-spotlight {
    opacity: 1;
}

.footer-wordmark {
    position: relative;
    z-index: 1;
    font-size: clamp(4rem, 20vw, 22rem);
    /* Slightly smaller for the shorter height */
    font-weight: 950;
    letter-spacing: -0.07em;
    color: #ffffff;
    line-height: 0.75;
    white-space: nowrap;
    user-select: none;
    text-align: center;
    text-transform: uppercase;
}

.fw-red {
    color: var(--accent-red);
}

/* The main container sits above the sticky footer */
main {
    position: relative;
    z-index: 2;
    background: var(--bg-primary);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8);
}

/* Soft modeled edge at the bottom of the "door" */
main::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    /* The "feathering" zone */
    background: linear-gradient(to top,
            var(--bg-primary) 0%,
            transparent 100%);
    pointer-events: none;
    z-index: 2;
    /* Sit on top of the main content's edge */
}

/* Ensure the scroll container doesn't have transparency that breaks the reveal */
.scroll-container {
    background: var(--bg-primary);
}

/* ── RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 1024px) {

    .engineering-copy,
    .sound-copy {
        left: 5%;
        max-width: 380px;
    }

    .accessibility-copy {
        right: 5%;
        max-width: 380px;
    }
}

@media (max-width: 768px) {
    :root {
        --navbar-height: 44px;
    }

    .navbar-links {
        display: none;
    }

    .navbar-cta {
        display: none;
    }

    .navbar-hamburger {
        display: flex;
    }

    .hero-copy {
        padding-top: var(--space-xl);
    }

    .engineering-copy,
    .accessibility-copy,
    .sound-copy {
        position: absolute;
        left: 50% !important;
        right: auto !important;
        transform: translate(-50%, -50%) !important;
        top: 50%;
        text-align: center !important;
        max-width: 85%;
        width: 85%;
    }

    .accessibility-copy .feature-list li {
        justify-content: center;
        text-align: center;
    }

    .feature-pills {
        justify-content: center !important;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-sm);
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-headline {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    .section-headline {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    .cta-headline {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
    }
}

/* ── ACCESSIBILITY: Reduced Motion ────────────────────── */
@media (prefers-reduced-motion: reduce) {

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

/* ── FOCUS VISIBLE (keyboard users) ───────────────────── */
:focus-visible {
    outline: 2px solid var(--accent-green);
    outline-offset: 3px;
    border-radius: 4px;
}

:focus:not(:focus-visible) {
    outline: none;
}

/* ── Skip link for accessibility ──────────────────────── */
.skip-link {
    position: absolute;
    top: -100%;
    left: var(--space-md);
    background: var(--accent-green);
    color: var(--bg-primary);
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 600;
    z-index: 99999;
    transition: top 0.2s;
}

.skip-link:focus {
    top: var(--space-sm);
}

/* ═══════════════════════════════════════════════════════════
   PRE-ORDER OVERLAY
   ═══════════════════════════════════════════════════════════ */
.preorder-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(5, 5, 5, 0.96);
    backdrop-filter: blur(40px) saturate(150%);
    -webkit-backdrop-filter: blur(40px) saturate(150%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s var(--ease-out-expo), visibility 0.6s;
    overflow-y: auto;
    padding: var(--space-lg);
}

.preorder-overlay.active {
    opacity: 1;
    visibility: visible;
}

.preorder-close {
    position: fixed;
    top: 20px;
    right: 24px;
    z-index: 10001;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-heading);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
}

.preorder-close:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: rotate(90deg);
}

.preorder-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    max-width: 1000px;
    width: 100%;
    align-items: center;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s var(--ease-out-expo) 0.2s,
        transform 0.5s var(--ease-out-expo) 0.2s;
}

.preorder-overlay.active .preorder-content {
    opacity: 1;
    transform: translateY(0);
}

/* ── Left: Product showcase ──────────────────────── */
.preorder-showcase {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
}

.preorder-image-wrapper {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 16 / 12;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    background: radial-gradient(ellipse at 50% 60%, rgba(211, 47, 47, 0.08) 0%, transparent 70%);
}

.preorder-product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ── Color selector ──────────────────────────────── */
.preorder-colors {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.preorder-color-label {
    font-size: var(--fs-small);
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.04em;
}

.preorder-color-options {
    display: flex;
    gap: 10px;
}

.color-swatch {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
    position: relative;
}

.color-swatch::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: border-color 0.3s;
}

.color-swatch.active::after {
    border-color: var(--text-heading);
}

.color-swatch:hover {
    transform: scale(1.15);
}

.preorder-color-name {
    font-size: var(--fs-small);
    color: var(--text-body);
    font-weight: 400;
    min-width: 100px;
}

/* ── Right: Form side ────────────────────────────── */
.preorder-form-side {
    display: flex;
    flex-direction: column;
}

.preorder-badge {
    display: inline-block;
    font-size: var(--fs-badge);
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-green);
    background: var(--accent-green-dim);
    padding: 5px 14px;
    border-radius: 980px;
    margin-bottom: var(--space-md);
    width: fit-content;
}

.preorder-title {
    font-size: var(--fs-h2);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--text-heading);
    margin-bottom: var(--space-xs);
}

.preorder-subtitle {
    font-size: var(--fs-body);
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
}

.preorder-price-block {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px var(--space-sm);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--border-subtle);
}

.preorder-price {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-heading);
}

.preorder-price-cents {
    font-size: 0.55em;
    font-weight: 700;
    vertical-align: super;
    margin-left: 1px;
}

.preorder-price-original {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: line-through;
    text-decoration-color: var(--accent-red);
    text-decoration-thickness: 2px;
}

.preorder-price-note {
    font-size: var(--fs-small);
    color: var(--text-muted);
    width: 100%;
}

/* ── Mini features ───────────────────────────────── */
.preorder-features-mini {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: var(--space-lg);
}

.mini-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: var(--fs-body);
    color: var(--text-body);
}

.mini-icon {
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

/* ── Form ────────────────────────────────────────── */
.preorder-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-group input {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-heading);
    font-size: var(--fs-body);
    font-family: var(--font-family);
    transition: all 0.3s var(--ease-out-expo);
    outline: none;
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.form-group input:focus {
    border-color: var(--accent-red);
    background: rgba(211, 47, 47, 0.04);
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
}

.preorder-submit {
    width: 100%;
    padding: 16px;
    background: var(--accent-red);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-family);
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.4s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
    margin-top: 4px;
}

.preorder-submit:hover {
    transform: scale(1.02);
    box-shadow: 0 0 40px rgba(211, 47, 47, 0.3), 0 8px 32px rgba(211, 47, 47, 0.2);
}

.preorder-submit:active {
    transform: scale(0.98);
}

.preorder-submit.success {
    background: var(--accent-green);
    pointer-events: none;
}

.preorder-disclaimer {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 8px;
    line-height: 1.5;
}

/* ── Pre-order responsive ────────────────────────── */
@media (max-width: 768px) {
    .preorder-content {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
        padding: var(--space-lg) 0;
    }

    .preorder-showcase {
        order: -1;
    }

    .preorder-image-wrapper {
        max-width: 280px;
    }

    .preorder-colors {
        flex-wrap: wrap;
        justify-content: center;
    }

    .preorder-price-block {
        flex-direction: column;
        gap: var(--space-xs);
    }
}