:root {
    --bg-dark: #0a0a0a;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent: #3a86ff;
    --font-display: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    background: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Preloader */
#loader {
    position: fixed;
    inset: 0;
    background: var(--bg-dark);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-content {
    text-align: center;
    width: 300px;
}

.loader-brand {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 2.5rem;
    letter-spacing: 0.5rem;
    margin-bottom: 2rem;
}

.loader-track {
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1px;
    overflow: hidden;
    margin-bottom: 1rem;
}

#loader-bar {
    width: 0%;
    height: 100%;
    background: var(--text-primary);
}

#loader-percent {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0.5;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 5vw;
    z-index: 100;
}

.site-header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 0.2rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.nav-links a:hover {
    opacity: 1;
}

.nav-cta {
    background: var(--text-primary);
    color: var(--bg-dark) !important;
    padding: 0.6rem 1.2rem;
    border-radius: 100px;
    opacity: 1 !important;
}

/* Hero */
.hero-standalone {
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 5vw;
    background: transparent;
    /* Show camera behind */
    position: relative;
    z-index: 10;
}

.hero-inner {
    max-width: 800px;
}

.section-label {
    display: block;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.hero-heading {
    font-family: var(--font-display);
    font-size: 8rem;
    line-height: 0.9;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.hero-heading span {
    display: block;
}

.hero-tagline {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-secondary);
    max-width: 500px;
}

.scroll-hint {
    position: absolute;
    bottom: 3rem;
    left: 5vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.hint-text {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    opacity: 0.4;
}

.hint-arrow {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.hint-arrow::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--text-primary);
    animation: scrollLine 2s infinite cubic-bezier(0.77, 0, 0.175, 1);
}

@keyframes scrollLine {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(100%);
    }
}

/* Canvas */
.canvas-wrap {
    position: fixed;
    inset: 0;
    z-index: 1;
    /* Above background */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    /* Visible from start */
    clip-path: circle(25% at 50% 50%);
    /* Base reveal */
    transform: translateX(15%);
    /* Offset for text legibility */
}

canvas#canvas {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Overlays */
#dark-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg-dark);
    z-index: 3;
    pointer-events: none;
    opacity: 0;
}

.legibility-overlay {
    position: fixed;
    inset: 0;
    background: linear-gradient(90deg,
            rgba(10, 10, 10, 1) 0%,
            rgba(10, 10, 10, 0.8) 30%,
            rgba(10, 10, 10, 0) 60%);
    z-index: 2;
    /* Between canvas (1) and content (2-5) */
    pointer-events: none;
}

.marquee-wrap {
    position: fixed;
    bottom: 5vh;
    left: 0;
    width: 100%;
    z-index: 4;
    pointer-events: none;
    overflow: hidden;
    opacity: 0;
}

.marquee-text {
    display: inline-block;
    white-space: nowrap;
    font-family: var(--font-display);
    font-size: 15vw;
    font-weight: 900;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.05);
    line-height: 1;
}

/* Scroll Container */
#scroll-container {
    height: 1000vh;
    /* Deep scroll */
    position: relative;
    z-index: 20;
    /* Above everything else */
}

.scroll-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 5vw;
    pointer-events: none;
    visibility: hidden;
    z-index: 21;
}

.section-inner {
    max-width: 40vw;
    padding: 2rem;
    background: rgba(10, 10, 10, 0.4);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    border-left: 2px solid var(--accent);
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    /* Better readability over complex BG */
}

.align-left .section-inner {
    margin-right: auto;
}

.align-right .section-inner {
    margin-left: auto;
}

.section-heading {
    font-family: var(--font-display);
    font-size: 5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.section-body {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    gap: 4rem;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 6rem;
    font-weight: 800;
    line-height: 1;
}

.stat-suffix {
    font-size: 2rem;
    color: var(--accent);
    margin-top: -0.5rem;
}

.stat-label {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    color: var(--text-secondary);
    margin-top: 1rem;
}

/* CTA */
.cta-actions {
    margin-top: 3rem;
    pointer-events: all;
}

.primary-button {
    display: inline-block;
    background: var(--text-primary);
    color: var(--bg-dark);
    text-decoration: none;
    padding: 1.2rem 2.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    border-radius: 4px;
    transition: transform 0.3s, background 0.3s;
}

.primary-button:hover {
    transform: translateY(-5px);
    background: var(--accent);
    color: white;
}

/* Internal Labels */
.section-internals {
    pointer-events: none;
}

.label-item {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: white;
    z-index: 10;
}

.label-dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--accent);
    position: relative;
}

.label-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, var(--accent), transparent);
}

.label-text {
    display: flex;
    flex-direction: column;
    background: rgba(10, 10, 10, 0.4);
    backdrop-filter: blur(5px);
    padding: 0.5rem 1rem;
    border-left: 1px solid var(--accent);
}

.label-title {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
}

.label-desc {
    font-size: 0.7rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

/* Base Responsive */
@media (max-width: 1024px) {
    .hero-heading {
        font-size: 5rem;
    }

    .section-heading {
        font-size: 3.5rem;
    }

    .section-inner {
        max-width: 60vw;
    }
}

@media (max-width: 768px) {
    .hero-heading {
        font-size: 4rem;
    }

    .section-heading {
        font-size: 3rem;
    }

    .section-inner {
        max-width: 100%;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .stat-number {
        font-size: 4rem;
    }
}