/* =========================================
   AERIS WATCH | CORE STYLES
   ========================================= */

:root {
    --bg-dark: #0a0a0c;
    --text-on-dark: #f0f0f5;
    --text-muted: #888890;
    --accent: #d4af37;
    /* Soft gold for premium feel */
    --font-display: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing & Sizes */
    --pad-x: 5vw;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-on-dark);
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
.section-label,
.loader-brand,
.logo,
.marquee-text,
.stat-number {
    font-family: var(--font-display);
}

/* =========================================
   PRELOADER
   ========================================= */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-dark);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.loader-brand {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.loader-track {
    width: 200px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

#loader-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: var(--accent);
    transition: width 0.3s ease;
}

#loader-percent {
    margin-top: 1rem;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

/* =========================================
   HEADER
   ========================================= */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem var(--pad-x);
    z-index: 100;
    /* Above canvas, below loader */
    mix-blend-mode: difference;
    pointer-events: none;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.15em;
}

.nav-links {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-on-dark);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: opacity 0.3s ease;
}

.nav-links a:hover {
    opacity: 0.6;
}

.nav-cta {
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
}

.nav-cta:hover {
    background: var(--text-on-dark);
    color: var(--bg-dark) !important;
    opacity: 1 !important;
}

/* =========================================
   HERO (Standalone 100vh)
   ========================================= */
.hero-standalone {
    position: relative;
    width: 100%;
    height: 100vh;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    padding: 0 var(--pad-x);
    z-index: 10;
    /* Will fade out as circle clip reveals canvas below */
}

.hero-inner {
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.hero-standalone .section-label {
    display: block;
    font-size: 1rem;
    color: var(--accent);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.hero-heading {
    font-size: clamp(4rem, 10vw, 12rem);
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.hero-heading span {
    display: block;
}

.hero-tagline {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--text-muted);
}

.scroll-hint {
    position: absolute;
    bottom: -15vh;
    left: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    opacity: 0.5;
}

.hint-text {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.hint-arrow {
    width: 40px;
    height: 1px;
    background: currentColor;
    position: relative;
}

.hint-arrow::after {
    content: '';
    position: absolute;
    right: 0;
    top: -4px;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 5px solid currentColor;
}

/* =========================================
   CANVAS & LAYERING
   ========================================= */
.canvas-wrap {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1;
    /* Below sections, revealed by hero */
    clip-path: circle(0% at 50% 50%);
    /* Initial state, opened by GSAP */
    background: var(--bg-dark);
}

canvas {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Subtitles legibility overlay */
.legibility-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 50%;
    height: 100vh;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
    z-index: 2;
    pointer-events: none;
}

#dark-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #000;
    opacity: 0;
    z-index: 3;
    pointer-events: none;
}

/* =========================================
   MARQUEE
   ========================================= */
.marquee-wrap {
    position: fixed;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    z-index: 4;
    opacity: 0;
    /* Managed by GSAP */
    pointer-events: none;
    overflow: hidden;
    white-space: nowrap;
}

.marquee-text {
    display: inline-block;
    font-size: 15vw;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 2px rgba(255, 255, 255, 0.15);
    text-transform: uppercase;
    will-change: transform;
}

/* =========================================
   SCROLL SECTIONS
   ========================================= */
#scroll-container {
    height: 1000vh;
    /* Triggers sequence */
    position: relative;
    z-index: 20;
    /* Put sections super high so they are definitely visible */
}

.scroll-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 var(--pad-x);
    pointer-events: none;
    visibility: hidden;
    z-index: 21;
}

/* Alignment Classes */
.align-left {
    justify-content: flex-start;
    padding-right: 55vw;
}

.align-right {
    justify-content: flex-end;
    padding-left: 55vw;
}

.section-inner {
    max-width: 450px;
    padding: 3rem;
    background: rgba(8, 8, 10, 0.75);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    pointer-events: auto;
}

.section-label {
    display: block;
    font-size: 0.85rem;
    color: var(--accent);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section-heading {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.01em;
    margin-bottom: 1.5rem;
}

.section-body {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 300;
}

/* =========================================
   STATS SECTION
   ========================================= */
.section-stats {
    justify-content: center;
    padding: 0;
}

.stats-grid {
    display: flex;
    gap: 8vw;
    pointer-events: auto;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-number {
    font-size: 8rem;
    font-weight: 800;
    line-height: 1;
    color: var(--text-on-dark);
}

.stat-suffix {
    font-size: 2rem;
    color: var(--accent);
    margin-left: 5px;
    vertical-align: super;
}

.stat-label {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-top: 1rem;
}

/* =========================================
   CTA BUTTON
   ========================================= */
.cta-actions {
    margin-top: 2rem;
}

.primary-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--text-on-dark);
    color: var(--bg-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.15);
}

/* =========================================
   MOBILE RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
    .site-header {
        padding: 1.5rem 5vw;
    }

    .nav-links {
        display: none;
    }

    .hero-heading {
        font-size: 4rem;
    }

    .align-left,
    .align-right {
        padding: 0 5vw;
        justify-content: center;
    }

    .section-inner {
        max-width: 100%;
        text-align: center;
        padding: 2rem 1.5rem;
        background: rgba(10, 10, 12, 0.85);
    }

    .stats-grid {
        flex-direction: column;
        gap: 3rem;
    }

    .stat-number {
        font-size: 5rem;
    }

    .marquee-text {
        font-size: 25vw;
    }
}