/* =============================================
   WT2124 LANDING PAGE — DESIGN SYSTEM v2
   "Welcome to 2124"
   ============================================= */

/* --- Design Tokens --- */
:root {
    /* Colors — The Void */
    --color-void: #090a0c;
    --color-deep: #090a0c;
    --color-surface: #0f0f1a;
    --color-elevated: #161625;

    /* Glass */
    --glass-bg: rgba(42, 135, 244, 0.04);
    --glass-border: rgba(42, 135, 244, 0.08);
    --glass-border-hover: rgba(168, 85, 247, 0.3);

    /* Text */
    --color-text: #e3e5e8;
    --color-text-secondary: #94a3b8;
    --color-text-muted: #838c95;

    /* Accents */
    --color-accent: #2a87f4;
    --color-accent-light: #f42aec;
    --color-cyan: #22d3ee;
    --color-gold: #fbbf24;
    --color-red: #ef4444;

    /* Glow */
    --glow-accent: 0 0 30px rgba(42, 135, 244, 0.15);
    --glow-accent-strong: 0 0 60px rgba(168, 85, 247, 0.25);
    --glow-cyan: 0 0 40px rgba(34, 211, 238, 0.15);

    /* Typography */
    --font-display: 'Outfit', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

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

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --duration-fast: 0.2s;
    --duration-normal: 0.4s;
    --duration-slow: 0.8s;

    /* Layout */
    --max-width: 800px;
    --section-padding: clamp(4rem, 10vh, 8rem);
}


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

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

body {
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--color-text);
    background-color: var(--color-void);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

button {
    border: none;
    background: none;
    font: inherit;
    color: inherit;
    cursor: pointer;
}

input {
    border: none;
    background: none;
    font: inherit;
    color: inherit;
    outline: none;
}


/* --- Layout --- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
}


/* --- Overlays --- */

.noise-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    pointer-events: none;
    opacity: 0.035;
    background-repeat: repeat;
    background-size: 200px 200px;
}

.scanlines {
    position: fixed;
    inset: 0;
    z-index: 999;
    pointer-events: none;
    background: repeating-linear-gradient(0deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.015) 2px,
            rgba(0, 0, 0, 0.015) 4px);
}

.particles {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    animation: particle-float linear infinite;
    will-change: transform;
}

@keyframes particle-float {
    0% {
        transform: translateY(110vh) translateX(0);
        opacity: 0;
    }

    5% {
        opacity: var(--p-opacity);
    }

    90% {
        opacity: var(--p-opacity);
    }

    100% {
        transform: translateY(-5vh) translateX(var(--p-drift));
        opacity: 0;
    }
}


/* --- Section Shared Styles --- */
.section-prefix {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.3em;
    color: var(--color-accent);
    text-transform: uppercase;
    margin-bottom: var(--space-sm);
}

.section-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    line-height: 1.2;
    color: var(--color-text);
    margin-bottom: var(--space-lg);
}


/* ===========================================
   SECTION 1: HERO
   =========================================== */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-md);
    z-index: 2;
    background: var(--color-void);
    overflow: hidden;
}

/* Background video */
.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}

/* Dark overlay to dim the video */
.hero-video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 15, 0.72);
    z-index: 1;
    pointer-events: none;
}

/* Bottom gradient fade to hide VEO watermark */
.hero-video-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 35%;
    background: linear-gradient(to bottom, transparent 0%, var(--color-void) 85%);
    z-index: 1;
    pointer-events: none;
}

/* Acknowledgement bar */
.acknowledgement {
    position: absolute;
    top: 1.5rem;
    z-index: 3;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.05em;
    color: var(--color-text);
    white-space: nowrap;
    padding: 0.4rem 1rem;
    border: 1px solid rgba(168, 85, 247, 0.08);
    border-radius: 100px;
    background: rgba(10, 10, 20, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    max-width: calc(100vw - 2rem);
    overflow: hidden;
    text-overflow: ellipsis;
}

.fade-in-early {
    opacity: 0;
    animation: fade-in-down 0.6s var(--ease-out) 0.5s forwards;
}

.hero-content {
    position: relative;
    z-index: 3;
}

/* "WELCOME TO" subtitle — matches main title font */
.hero-subtitle {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 3.5vw, 2.2rem);
    font-weight: 900;
    letter-spacing: 0.25em;
    color: var(--color-text);
    text-transform: uppercase;
    margin-bottom: 0;
    opacity: 0;
    animation: fade-in-down 0.6s var(--ease-out) 0.8s forwards;
}

/* "2124" glitch title */
.glitch-text {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(5rem, 18vw, 12rem);
    line-height: 0.95;
    letter-spacing: -0.02em;
    color: var(--color-text);
    position: relative;
    display: inline-block;
    margin-bottom: var(--space-md);
    opacity: 0;
    animation: fade-in-up 0.8s var(--ease-out) 1.2s forwards;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.glitch-text::before {
    color: var(--color-cyan);
    z-index: -1;
    animation: glitch-layer-1 4s infinite linear;
    animation-delay: 2s;
}

.glitch-text::after {
    color: var(--color-red);
    z-index: -1;
    animation: glitch-layer-2 4s infinite linear;
    animation-delay: 2.2s;
}

@keyframes glitch-layer-1 {

    0%,
    100% {
        clip-path: inset(0 0 100% 0);
        transform: translate(0);
    }

    2% {
        clip-path: inset(15% 0 55% 0);
        transform: translate(-5px, -2px);
    }

    4% {
        clip-path: inset(0 0 100% 0);
        transform: translate(0);
    }

    5% {
        clip-path: inset(60% 0 10% 0);
        transform: translate(3px, 1px);
    }

    7% {
        clip-path: inset(0 0 100% 0);
        transform: translate(0);
    }

    8% {
        clip-path: inset(35% 0 40% 0);
        transform: translate(-3px, 2px);
    }

    10% {
        clip-path: inset(0 0 100% 0);
        transform: translate(0);
    }
}

@keyframes glitch-layer-2 {

    0%,
    100% {
        clip-path: inset(100% 0 0 0);
        transform: translate(0);
    }

    1% {
        clip-path: inset(45% 0 30% 0);
        transform: translate(4px, 1px);
    }

    3% {
        clip-path: inset(0 0 100% 0);
        transform: translate(0);
    }

    6% {
        clip-path: inset(70% 0 5% 0);
        transform: translate(-4px, -1px);
    }

    8% {
        clip-path: inset(100% 0 0 0);
        transform: translate(0);
    }

    9% {
        clip-path: inset(20% 0 60% 0);
        transform: translate(5px, -2px);
    }

    11% {
        clip-path: inset(100% 0 0 0);
        transform: translate(0);
    }
}

/* Genre line */
.hero-genre {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(0.95rem, 2.2vw, 1.25rem);
    color: var(--color-text-secondary);
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto var(--space-lg);
    opacity: 0;
    animation: fade-in-up 0.8s var(--ease-out) 1.8s forwards;
}

/* CTA Button */
.hero-cta {
    opacity: 0;
    animation: fade-in-up 0.6s var(--ease-out) 2.2s forwards;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text);
    padding: 1rem 2.5rem;
    border: 1px solid var(--glass-border-hover);
    border-radius: 2px;
    background: rgba(168, 85, 247, 0.08);
    transition: all var(--duration-normal) var(--ease-smooth);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(34, 211, 238, 0.08));
    opacity: 0;
    transition: opacity var(--duration-normal) var(--ease-smooth);
}

.btn-primary:hover {
    border-color: var(--color-accent-light);
    box-shadow: var(--glow-accent);
    transform: translateY(-2px);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary span {
    position: relative;
    z-index: 1;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    animation: fade-in-up 0.6s var(--ease-out) 2.8s forwards;
}

.scroll-indicator span {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    letter-spacing: 0.4em;
    color: var(--color-text-muted);
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--color-accent), transparent);
    animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {

    0%,
    100% {
        opacity: 0.3;
        transform: scaleY(0.6);
    }

    50% {
        opacity: 0.8;
        transform: scaleY(1);
    }
}


/* ===========================================
   SECTION 2: THE STORY (Movie-Trailer Tease)
   =========================================== */
.story {
    position: relative;
    z-index: 2;
    padding: var(--section-padding) 0 calc(var(--section-padding) * 1.3);
    background:
        radial-gradient(ellipse 50% 40% at 50% 20%, rgba(168, 85, 247, 0.04) 0%, transparent 70%),
        var(--color-deep);
}

.story-cards {
    display: flex;
    flex-direction: column;
    gap: clamp(2rem, 5vh, 3.5rem);
    margin-bottom: var(--space-xl);
}

.story-card {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: clamp(1rem, 2vw, 1.15rem);
    line-height: 1.8;
    color: var(--color-text-secondary);
    max-width: 650px;
    position: relative;
    padding-left: var(--space-md);
    border-left: 1px solid rgba(168, 85, 247, 0.1);
    transition:
        border-color var(--duration-normal) var(--ease-smooth),
        opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.story-card:hover {
    border-left-color: rgba(168, 85, 247, 0.3);
}

.story-card em {
    font-style: normal;
    font-weight: 500;
    color: var(--color-text);
}

.story-card .accent {
    color: var(--color-accent);
    font-weight: 500;
}




/* Closing hook — dramatic */
.story-hook {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.5rem, 3.5vw, 2.4rem);
    line-height: 1.3;
    text-align: center;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    max-width: 500px;
    margin: 0 auto;
}


/* ===========================================
   SECTION 3: THE AUTHOR
   =========================================== */
.author {
    position: relative;
    z-index: 2;
    padding: var(--section-padding) 0;
    text-align: center;
    background:
        radial-gradient(ellipse 40% 30% at 50% 50%, rgba(34, 211, 238, 0.03) 0%, transparent 60%),
        var(--color-void);
}

.author-content {
    max-width: 600px;
    margin: 0 auto var(--space-lg);
}

.author-content p {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(1rem, 2vw, 1.1rem);
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-sm);
}

.author-content strong {
    color: var(--color-text);
    font-weight: 500;
}

.author-tagline {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    opacity: 0.8;
}


/* ===========================================
   SECTION 4: CTA (Email Capture)
   =========================================== */
.notify {
    position: relative;
    z-index: 2;
    padding: var(--section-padding) 0 calc(var(--section-padding) * 1.5);
    text-align: center;
    background:
        radial-gradient(ellipse 40% 30% at 50% 60%, rgba(168, 85, 247, 0.04) 0%, transparent 60%),
        var(--color-deep);
}

.signal-form {
    max-width: 520px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    gap: 0;
    border: 1px solid rgba(168, 85, 247, 0.25);
    border-radius: 4px;
    background: rgba(20, 20, 40, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    overflow: hidden;
    transition: all var(--duration-normal) var(--ease-smooth);
}

.form-group:focus-within {
    border-color: var(--color-accent);
    box-shadow: var(--glow-accent), inset 0 0 20px rgba(168, 85, 247, 0.05);
}

.form-group input {
    flex: 1;
    padding: 1rem 1.2rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--color-text);
    background: transparent;
    min-width: 0;
}

.form-group input::placeholder {
    color: #64748b;
}

.btn-submit {
    padding: 1rem 1.2rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text);
    background: rgba(168, 85, 247, 0.15);
    border-left: 1px solid var(--glass-border);
    transition: all var(--duration-normal) var(--ease-smooth);
    white-space: nowrap;
    position: relative;
}

.btn-submit:hover {
    background: rgba(168, 85, 247, 0.25);
    color: white;
}

.btn-submit .btn-loading {
    display: none;
}

.btn-submit.is-loading .btn-text {
    display: none;
}

.btn-submit.is-loading .btn-loading {
    display: inline-flex;
    gap: 4px;
    align-items: center;
}

.loading-dot {
    width: 4px;
    height: 4px;
    background: var(--color-accent-light);
    border-radius: 50%;
    animation: loading-bounce 1s ease-in-out infinite;
}

.loading-dot:nth-child(2) {
    animation-delay: 0.15s;
}

.loading-dot:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes loading-bounce {

    0%,
    80%,
    100% {
        opacity: 0.3;
        transform: scale(0.8);
    }

    40% {
        opacity: 1;
        transform: scale(1.2);
    }
}

.form-note {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--color-text-muted);
    letter-spacing: 0.05em;
    margin-top: var(--space-sm);
}

/* Success state */
.form-success {
    display: none;
    text-align: center;
    padding: var(--space-lg) 0;
}

.form-success.is-visible {
    display: block;
    animation: fade-in-up 0.6s var(--ease-out);
}

.success-icon {
    font-size: 2rem;
    color: var(--color-accent);
    margin-bottom: var(--space-sm);
    animation: success-pulse 2s ease-in-out infinite;
}

@keyframes success-pulse {

    0%,
    100% {
        opacity: 0.6;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

.success-title {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    color: var(--color-accent-light);
    margin-bottom: var(--space-sm);
}

.success-message {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}


/* ===========================================
   FOOTER
   =========================================== */
.footer {
    position: relative;
    z-index: 2;
    padding: var(--space-lg) 0 var(--space-md);
    text-align: center;
    background: var(--color-void);
}

.footer-divider {
    height: 1px;
    background: linear-gradient(90deg,
            transparent,
            rgba(168, 85, 247, 0.15),
            rgba(34, 211, 238, 0.1),
            transparent);
    margin-bottom: var(--space-lg);
}

.footer-proverb {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: 0.9rem;
    font-style: italic;
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.social-link {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    text-transform: uppercase;
    transition: color var(--duration-fast) var(--ease-smooth);
}

.social-link:hover {
    color: var(--color-accent-light);
}

.social-separator {
    color: var(--color-text-muted);
    opacity: 0.3;
}

.footer-copy {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    color: var(--color-text-muted);
    opacity: 0.5;
}


/* ===========================================
   ANIMATIONS — Scroll Reveals
   =========================================== */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity var(--duration-slow) var(--ease-out),
        transform var(--duration-slow) var(--ease-out);
}

.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes fade-in-down {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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


/* ===========================================
   RESPONSIVE
   =========================================== */
@media (max-width: 768px) {
    :root {
        --section-padding: clamp(3rem, 8vh, 5rem);
    }

    .form-group {
        flex-direction: column;
    }

    .btn-submit {
        border-left: none;
        border-top: 1px solid var(--glass-border);
        padding: 0.9rem;
    }

    .story-card {
        padding-left: var(--space-sm);
    }

    .acknowledgement {
        font-size: 0.55rem;
        padding: 0.3rem 0.8rem;
        z-index: 10;
        color: #e6edf3;
        border: 1px solid rgba(168, 85, 247, 0.25);
    }
}

@media (max-width: 380px) {
    .glitch-text {
        font-size: 4.5rem;
    }

    .hero-subtitle {
        font-size: 0.7rem;
        letter-spacing: 0.3em;
    }
}


/* ===========================================
   REDUCED MOTION — Accessibility
   =========================================== */
@media (prefers-reduced-motion: reduce) {

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

    .hero-subtitle,
    .glitch-text,
    .hero-genre,
    .hero-cta,
    .scroll-indicator,
    .fade-in-early {
        opacity: 1;
    }

    .fade-in {
        opacity: 1;
        transform: none;
    }

    .particle {
        display: none;
    }

    .noise-overlay,
    .scanlines {
        display: none;
    }

    .glitch-text::before,
    .glitch-text::after {
        display: none;
    }
}