/* ==========================================================================
   QUANTUM NEXUS - COMING SOON TEASER STYLESHEET
   Solar Eclipse Corona, Deep Starfield & Apple Pro Typography
   ========================================================================== */

/* Self-hosted JetBrains Mono (the only web font the page uses; body text is the system stack).
   No third-party request, so nothing blocks the first paint on a slow connection. */
@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-display: swap;
    font-weight: 400;
    src: url(../assets/fonts/jetbrains-mono/files/jetbrains-mono-latin-400-normal.woff2) format('woff2');
    unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-display: swap;
    font-weight: 400;
    src: url(../assets/fonts/jetbrains-mono/files/jetbrains-mono-latin-ext-400-normal.woff2) format('woff2');
    unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-display: swap;
    font-weight: 500;
    src: url(../assets/fonts/jetbrains-mono/files/jetbrains-mono-latin-500-normal.woff2) format('woff2');
    unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-display: swap;
    font-weight: 500;
    src: url(../assets/fonts/jetbrains-mono/files/jetbrains-mono-latin-ext-500-normal.woff2) format('woff2');
    unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-display: swap;
    font-weight: 700;
    src: url(../assets/fonts/jetbrains-mono/files/jetbrains-mono-latin-700-normal.woff2) format('woff2');
    unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-display: swap;
    font-weight: 700;
    src: url(../assets/fonts/jetbrains-mono/files/jetbrains-mono-latin-ext-700-normal.woff2) format('woff2');
    unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* --------------------------------------------------------------------------
   DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
    --bg-void: #000000;
    --text-white: #ffffff;
    --text-primary: #f4f4f5;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    
    --border-subtle: rgba(255, 255, 255, 0.1);
    --border-medium: rgba(255, 255, 255, 0.2);
    --border-focus: #ffffff;
    
    --font-apple: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "SF Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --font-sans: var(--font-apple);
    --font-main: var(--font-apple);
    --font-mono: 'JetBrains Mono', monospace;
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

::selection {
   background: rgba(205, 214, 228, 0.72);
   color: #111;
}

::-moz-selection {
   background: rgba(205, 214, 228, 0.72);
   color: #111;
}

/* Placeholder fades on focus for textarea without layout shift */
textarea::placeholder {
    transition: opacity 0.15s ease;
}

textarea:focus::placeholder {
    opacity: 0;
}

html, body {
    width: 100%;
    min-height: 100vh;
    background-color: var(--bg-void);
    color: var(--text-primary);
    font-family: var(--font-main);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Starfield Canvas */
#space-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

.cosmic-vignette {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 50% 40%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.7) 80%, rgba(0, 0, 0, 0.95) 100%);
    pointer-events: none;
    z-index: 1;
}

/* --------------------------------------------------------------------------
   HEADER NAVIGATION (Official Website Navbar Branding)
   -------------------------------------------------------------------------- */
.teaser-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 64px;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 50;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-white);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    position: relative;
    transition: opacity 0.2s ease;
}

.nav-brand:hover {
    opacity: 0.85;
}

.nav-brand-logo-slot {
    width: 30px;
    height: 30px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-brand-logo {
    height: 50px;
    width: auto;
    max-height: 52px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.35));
    transition: transform 0.2s ease, filter 0.2s ease;
}

.nav-brand:hover .nav-brand-logo {
    transform: scale(1.03);
    filter: drop-shadow(0 0 14px rgba(255, 255, 255, 0.6));
}

.lang-switch-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 6px 14px;
    border-radius: 99px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.lang-btn {
    background: none;
    border: none;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    /* Links now, keep the old button box: default button padding, no underline */
    display: inline-block;
    padding: 1px 6px;
    line-height: normal;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.lang-btn:hover, .lang-btn.active {
    color: var(--text-white);
}

.lang-divider {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--border-subtle);
}

/* --------------------------------------------------------------------------
   MAIN TEASER CONTAINER
   -------------------------------------------------------------------------- */
.teaser-main {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 24px 60px;
}

.teaser-container {
    width: 100%;
    max-width: 840px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* --------------------------------------------------------------------------
   REALISTIC TOTAL SOLAR ECLIPSE STAGE
   -------------------------------------------------------------------------- */
.eclipse-stage {
    position: relative;
    width: 380px;
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    cursor: pointer;
}

/* 1. Deep Atmospheric Outer Halo (Warm Golden-Amber Glow) */
.sun-glow-outer {
    position: absolute;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle at center, 
        rgba(255, 230, 180, 0.18) 0%, 
        rgba(255, 170, 70, 0.12) 32%, 
        rgba(220, 110, 30, 0.05) 55%, 
        rgba(0, 0, 0, 0) 72%
    );
    filter: blur(48px);
    pointer-events: none;
    z-index: 0;
    animation: outerHaloBreathe 8s infinite ease-in-out alternate;
}

@keyframes outerHaloBreathe {
    0% { transform: scale(0.96); opacity: 0.85; }
    100% { transform: scale(1.06); opacity: 1; }
}

/* 2. Coronal Plasma Streamers (Radial rays shooting outward) */
.sun-corona-rays {
    position: absolute;
    width: 440px;
    height: 440px;
    border-radius: 50%;
    background: repeating-conic-gradient(
        from 18deg,
        rgba(255, 245, 220, 0.14) 0deg 4deg,
        rgba(255, 210, 140, 0.04) 4deg 12deg,
        rgba(255, 230, 170, 0.22) 12deg 17deg,
        rgba(255, 190, 100, 0.02) 17deg 28deg,
        rgba(255, 250, 235, 0.18) 28deg 34deg,
        rgba(255, 180, 90, 0.03) 34deg 48deg
    );
    mask-image: radial-gradient(circle, transparent 38%, black 46%, transparent 72%);
    -webkit-mask-image: radial-gradient(circle, transparent 38%, black 46%, transparent 72%);
    filter: blur(4px);
    pointer-events: none;
    z-index: 1;
    animation: coronalRaySpin 90s linear infinite;
}

@keyframes coronalRaySpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 3. Luminous Solar Corona (Intense inner white-gold corona) */
.sun-corona {
    position: absolute;
    width: 290px;
    height: 290px;
    border-radius: 50%;
    background: radial-gradient(circle at center, 
        rgba(255, 255, 255, 1) 0%, 
        rgba(255, 248, 225, 0.95) 44%, 
        rgba(255, 220, 150, 0.75) 58%, 
        rgba(255, 160, 60, 0.35) 75%, 
        rgba(180, 70, 10, 0.1) 88%,
        rgba(0, 0, 0, 0) 100%
    );
    box-shadow: 0 0 50px rgba(255, 250, 230, 0.9), 
                0 0 100px rgba(255, 190, 90, 0.65), 
                0 0 160px rgba(255, 140, 40, 0.35);
    filter: blur(10px);
    animation: coronaPulse 5s infinite ease-in-out alternate;
    pointer-events: none;
    z-index: 2;
}

/* Transform + opacity only: animating the blur re-rasterised this large,
   heavily shadowed disc on every frame (the main source of stutter). */
@keyframes coronaPulse {
    0% { transform: scale(0.97); opacity: 0.9; }
    100% { transform: scale(1.04); opacity: 1; }
}

/* 4. Pure Black Moon Occulting Disc (The dark body creating the eclipse) */
.eclipse-moon-disc {
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle at 75% 25%, #0a0a0f 0%, #020204 80%);
    box-shadow: 
        inset 0 0 25px rgba(0, 0, 0, 0.95),
        0 0 1px 1px rgba(255, 235, 190, 0.45);
    pointer-events: none;
    z-index: 4;
}

/* Fiery Chromosphere Rim Light along the occulting edge */
.chromosphere-rim {
    position: absolute;
    inset: -1px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 235, 190, 0.85);
    box-shadow: 0 0 12px 2px rgba(255, 220, 140, 0.9), 
                inset 0 0 10px rgba(255, 180, 80, 0.3);
    opacity: 0.88;
}

/* 5. Realistic Diamond Ring Flare (Asymmetric blazing breakout at top-right ~2 o'clock) */
.sun-flare-diamond {
    position: absolute;
    top: 50px;
    right: 56px;
    width: 32px;
    height: 32px;
    pointer-events: none;
    z-index: 6;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: diamondGlint 3.6s infinite ease-in-out alternate;
}

@keyframes diamondGlint {
    0% { transform: scale(0.92); opacity: 0.88; }
    100% { transform: scale(1.12); opacity: 1; }
}

/* Blazing White-Hot Core */
.diamond-core {
    position: absolute;
    width: 22px;
    height: 22px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 
        0 0 20px 8px #ffffff,
        0 0 50px 18px rgba(255, 230, 160, 0.95),
        0 0 90px 32px rgba(255, 170, 50, 0.8);
}

/* Wide Amber/Golden Glare Bubble */
.diamond-glare {
    position: absolute;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(255, 230, 150, 0.6) 25%, 
        rgba(255, 150, 40, 0.25) 55%, 
        rgba(0, 0, 0, 0) 75%
    );
    filter: blur(6px);
}

/* Diffraction Spike: Horizontal */
.diamond-spike-h {
    position: absolute;
    width: 190px;
    height: 2px;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 220, 140, 0.6) 20%, 
        #ffffff 50%, 
        rgba(255, 220, 140, 0.6) 80%, 
        rgba(255, 255, 255, 0) 100%
    );
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.9);
}

/* Diffraction Spike: Vertical */
.diamond-spike-v {
    position: absolute;
    width: 2px;
    height: 190px;
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 220, 140, 0.6) 20%, 
        #ffffff 50%, 
        rgba(255, 220, 140, 0.6) 80%, 
        rgba(255, 255, 255, 0) 100%
    );
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.9);
}

/* Diffraction Spike: 45deg Diagonal Cross */
.diamond-spike-diag {
    position: absolute;
    width: 130px;
    height: 1.5px;
    transform: rotate(45deg);
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0) 0%, 
        #ffffff 50%, 
        rgba(255, 255, 255, 0) 100%
    );
    box-shadow: 0 0 8px rgba(255, 240, 180, 0.8);
}

.sun-flare-anamorphic {
    display: none !important;
}

/* 7. Logo Mounted Over Eclipse Core with Parallax Depth */
.eclipse-logo-wrap {
    position: relative;
    width: 220px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    overflow: visible !important;
    z-index: 10;
}

.eclipse-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: transparent !important;
    filter: drop-shadow(0 0 18px rgba(255, 255, 255, 0.9)) drop-shadow(0 0 35px rgba(255, 200, 100, 0.6));
    transition: filter 0.3s ease;
    will-change: transform, filter;
}

.eclipse-stage:hover .eclipse-logo {
    filter: drop-shadow(0 0 28px rgba(255, 255, 255, 1)) drop-shadow(0 0 55px rgba(255, 220, 130, 0.85));
}

/* --------------------------------------------------------------------------
   TEASER COPYWRITING & TYPOGRAPHY
   -------------------------------------------------------------------------- */
.teaser-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* --------------------------------------------------------------------------
   CINEMATIC REVEALS (driven by main.js)
   1. .is-revealed — slow timed entrance with --reveal-delay: the hero on load,
      and every element after the video, which main.js queues so they arrive
      strictly one by one as they scroll into view.
   2. .is-scroll   — the video, if below the fold, is scrubbed by scroll
      position: main.js writes a smoothed progress --p (0..1) every frame.
   The hidden state only applies once html.js-reveal is set, so content stays
   visible without JS.
   -------------------------------------------------------------------------- */
:root {
    --ease-reveal: cubic-bezier(0.16, 1, 0.3, 1);
}

.js-reveal [data-reveal]:not(.is-revealed) {
    opacity: 0;
}

/* Generic: soft rise out of blur */
[data-reveal="rise"].is-revealed {
    animation: revealRise 1.4s var(--ease-reveal) var(--reveal-delay, 0ms) both;
}

/* No animated blur in any entrance: a filter on a large element is repainted
   every frame and was the one effect that measurably dropped frames on phones. */
@keyframes revealRise {
    0%   { opacity: 0; transform: translateY(40px); }
    100% { opacity: 1; transform: none; }
}

/* Large stage elements: zoom in from depth */
[data-reveal="depth"].is-revealed {
    animation: revealDepth 2.2s var(--ease-reveal) var(--reveal-delay, 0ms) both;
}

@keyframes revealDepth {
    0%   { opacity: 0; transform: translateY(36px) scale(0.92); }
    100% { opacity: 1; transform: none; }
}

/* Fixed header: slide down, no blur (keeps backdrop-filter intact) */
[data-reveal="drop"].is-revealed {
    animation: revealDrop 1.3s var(--ease-reveal) var(--reveal-delay, 0ms) both;
}

@keyframes revealDrop {
    0%   { opacity: 0; transform: translateY(-100%); }
    100% { opacity: 1; transform: none; }
}

/* Headline: each word rises out of its own mask, one after another */
.js-reveal [data-reveal="title"]:not(.is-revealed) {
    opacity: 1;
}

.js-reveal [data-reveal="title"]:not(.is-revealed) .title-word-inner {
    opacity: 0;
}

.teaser-title.is-split {
    background: none;
    -webkit-text-fill-color: currentColor;
}

.title-word {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
    padding: 0.06em 0.02em 0.14em;
    margin: -0.06em 0 -0.14em;
}

.title-word-inner {
    display: inline-block;
    background: linear-gradient(180deg, #ffffff 35%, rgba(205, 214, 228, 0.72) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

[data-reveal="title"].is-revealed .title-word-inner {
    animation: revealWord 1.6s var(--ease-reveal) calc(var(--reveal-delay, 0ms) + var(--word-i, 0) * 130ms) both;
}

@keyframes revealWord {
    0%   { opacity: 0; transform: translateY(105%) rotate(4deg); }
    100% { opacity: 1; transform: none; }
}

/* Climax: tracking tightens into place, glow line draws, then a light sweep */
[data-reveal="climax"].is-revealed {
    animation: revealClimax 1.6s var(--ease-reveal) var(--reveal-delay, 0ms) both;
}

[data-reveal="climax"].is-revealed .climax-text {
    animation:
        climaxTrack 1.8s var(--ease-reveal) var(--reveal-delay, 0ms) both,
        climaxSweep 2.4s ease-in-out calc(var(--reveal-delay, 0ms) + 1.2s) both;
}

[data-reveal="climax"].is-revealed .climax-glow-line {
    animation: climaxLine 1.3s var(--ease-reveal) calc(var(--reveal-delay, 0ms) + 0.7s) both;
}

@keyframes revealClimax {
    0%   { opacity: 0; transform: translateY(18px); }
    100% { opacity: 1; transform: none; }
}

@keyframes climaxTrack {
    0%   { letter-spacing: 0.1em; }
    100% { letter-spacing: -0.025em; }
}

@keyframes climaxSweep {
    0%   { background-position: 100% 0; }
    100% { background-position: 0% 0; }
}

@keyframes climaxLine {
    0%   { width: 0; opacity: 0; }
    100% { width: 120px; opacity: 1; }
}

/* Scroll-scrubbed mode (the video). Uses the individual translate/scale
   properties so it never fights the components' own transform rules. */
html.js-reveal [data-reveal].is-scroll {
    --rise: 64px;
    opacity: var(--p, 0);
    translate: 0 calc((1 - var(--p, 0)) * var(--rise));
}

html.js-reveal [data-reveal="depth"].is-scroll {
    scale: calc(1 - (1 - var(--p, 0)) * 0.08);
}

@media (max-width: 600px) {
    html.js-reveal [data-reveal].is-scroll {
        --rise: 40px;
    }

    /* Keep the long Hungarian line from re-wrapping mid-animation: sweep only */
    [data-reveal="climax"].is-revealed .climax-text {
        animation: climaxSweep 2.4s ease-in-out calc(var(--reveal-delay, 0ms) + 1.2s) both;
    }
}

@media (prefers-reduced-motion: reduce) {
    .js-reveal [data-reveal]:not(.is-revealed),
    .js-reveal [data-reveal="title"]:not(.is-revealed) .title-word-inner {
        opacity: 1;
    }

    [data-reveal].is-revealed,
    [data-reveal].is-revealed .title-word-inner,
    [data-reveal].is-revealed .tagline-line,
    [data-reveal].is-revealed .climax-text,
    [data-reveal].is-revealed .climax-glow-line {
        animation: none !important;
    }
}

.teaser-title {
    font-size: clamp(3.2rem, 6.2vw, 5.2rem);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.04em;
    color: #ffffff;
    background: linear-gradient(180deg, #ffffff 40%, rgba(200, 210, 225, 0.6) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    max-width: 860px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -o-user-select: none;
    user-select: none;
}

/* Laptop-height windows: shorten the logo stage (its glow overflows anyway) so the
   headline and the slogan both sit above the fold instead of at its very edge */
@media (min-width: 601px) and (max-height: 860px) {
    .eclipse-stage {
        height: 300px;
    }
}

/* The slogan's punchline: second beat of the headline, so it gets real weight */
.teaser-subtitle {
    font-size: clamp(1.7rem, 3.3vw, 2.5rem);
    font-weight: 600;
    letter-spacing: -0.025em;
    color: #e6e6ec;
    line-height: 1.25;
    max-width: 760px;
    margin-bottom: 40px;
    text-wrap: balance;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -o-user-select: none;
    user-select: none;
}

/* --------------------------------------------------------------------------
   TEASER VIDEO CARD & PSYCHOLOGICAL GAME OVER MASKED REVEAL
   -------------------------------------------------------------------------- */
.teaser-video-card {
    position: relative;
    width: 100%;
    max-width: 780px;
    margin: 0 auto 36px auto;
    border-radius: 16px;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.teaser-video-card:hover {
    box-shadow: none;
}

.video-ambient-glow {
    display: none;
}

.video-viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 1402 / 1080;
    max-height: 480px;
    background: #000000;
    border-radius: 14px;
    overflow: hidden;
    z-index: 1;
}

/* Minimalist elegant scrub progress bar: visible only on hover */
.video-scrub-bar-wrap {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 36px;
    display: flex;
    align-items: flex-end;
    cursor: pointer;
    z-index: 50;
    opacity: 0;
    transition: opacity 0.25s ease;
    padding-bottom: 6px;
    padding-left: 12px;
    padding-right: 12px;
}

.video-viewport:hover .video-scrub-bar-wrap,
.video-scrub-bar-wrap:hover,
.video-scrub-bar-wrap.seeking {
    opacity: 1;
}

.video-scrub-track {
    position: relative;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.18);
    transition: height 0.15s ease;
}

.video-scrub-bar-wrap:hover .video-scrub-track,
.video-scrub-bar-wrap.seeking .video-scrub-track {
    height: 3px;
}

.video-scrub-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: #ffffff;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
    pointer-events: none;
}

.video-scrub-thumb {
    position: absolute;
    right: -4px;
    top: 50%;
    transform: translateY(-50%) scale(0);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.9);
    transition: transform 0.15s ease;
    pointer-events: none;
}

.video-scrub-bar-wrap:hover .video-scrub-thumb,
.video-scrub-bar-wrap.seeking .video-scrub-thumb {
    transform: translateY(-50%) scale(1);
}

.teaser-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #000000;
}

/* Play Trigger Overlay */
.video-play-overlay {
    display: none !important;
}

.btn-video-play {
    position: relative;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease, border-color 0.2s ease;
}

.video-play-overlay:hover .btn-video-play {
    transform: scale(1.08);
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.6);
}

.icon-play {
    width: 26px;
    height: 26px;
    margin-left: 3px;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}

.play-pulse-ring {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.4);
    animation: pulseRing 2s cubic-bezier(0.25, 1, 0.5, 1) infinite;
}

@keyframes pulseRing {
    0% { transform: scale(0.95); opacity: 0.8; }
    100% { transform: scale(1.4); opacity: 0; }
}

.video-play-hint {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

/* QUANTUM BLACK HOLE (Hyper-realistic Gargantua Singularity) */
.quantum-black-hole {
    display: none !important;
}

.quantum-black-hole.active {
    opacity: 1 !important;
    animation: blackHoleAwaken 2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes blackHoleAwaken {
    0% {
        transform: scale(0.1) rotate(0deg);
        opacity: 0;
    }
    40% {
        transform: scale(1.1) rotate(120deg);
        opacity: 1;
    }
    70% {
        transform: scale(0.97) rotate(240deg);
        opacity: 1;
    }
    100% {
        transform: scale(1) rotate(360deg);
        opacity: 1;
    }
}

/* Event Horizon (Pure Black Void Abyss) */
.black-hole-event-horizon {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 140px;
    height: 140px;
    margin: -70px 0 0 -70px;
    border-radius: 50%;
    background: #000000;
    box-shadow: 
        0 0 35px #000000,
        0 0 70px #000000,
        inset 0 0 30px #000000;
    z-index: 4;
}

/* Photon Ring / Relativistic White-Hot Inner Rim */
.black-hole-photon-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 148px;
    height: 148px;
    margin: -74px 0 0 -74px;
    border-radius: 50%;
    border: 3px solid #ffffff;
    box-shadow: 
        0 0 15px #ffffff,
        0 0 30px rgba(255, 220, 120, 0.95),
        0 0 60px rgba(255, 120, 0, 0.9),
        0 0 100px rgba(0, 240, 255, 0.7);
    z-index: 3;
    animation: photonFlicker 0.25s infinite alternate;
}

@keyframes photonFlicker {
    0% { opacity: 0.85; filter: brightness(1.2); }
    100% { opacity: 1; filter: brightness(1.8); }
}

/* Accretion Disk (Blazing Plasma Torus with Relativistic Gravitational Distortion) */
.black-hole-accretion-disk {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(
        circle at 50% 50%,
        transparent 28%,
        rgba(255, 255, 255, 0.95) 36%,
        rgba(255, 175, 45, 0.95) 44%,
        rgba(255, 85, 0, 0.9) 56%,
        rgba(0, 220, 255, 0.75) 68%,
        transparent 88%
    );
    box-shadow: 
        0 0 80px rgba(255, 120, 0, 0.85),
        0 0 140px rgba(255, 60, 0, 0.5),
        0 0 200px rgba(0, 240, 255, 0.45);
    filter: drop-shadow(0 0 40px rgba(255, 140, 0, 0.95));
    z-index: 2;
    animation: accretionSpin 6s linear infinite;
}

@keyframes accretionSpin {
    0% { transform: rotate(0deg) scaleY(0.68); }
    50% { transform: rotate(180deg) scaleY(0.78); }
    100% { transform: rotate(360deg) scaleY(0.68); }
}

/* QUANTUM GLITCH & IMPLOSION FX */
.quantum-implosion-fx {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 4;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.quantum-implosion-fx.active {
    opacity: 1;
}

.quantum-glitch-scanlines {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.25) 0px,
        rgba(0, 0, 0, 0.25) 1px,
        transparent 1px,
        transparent 3px
    );
    z-index: 6;
    pointer-events: none;
    opacity: 0;
    mix-blend-mode: overlay;
    transition: opacity 0.1s ease;
}

.quantum-glitch-scanlines.active {
    opacity: 0.85;
    animation: scanlineFlicker 0.15s steps(2) infinite;
}

@keyframes scanlineFlicker {
    0% { transform: translateY(0); }
    100% { transform: translateY(2px); }
}

.quantum-shockwave {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 40px rgba(0, 240, 255, 0.9), inset 0 0 20px rgba(255, 60, 60, 0.9);
    z-index: 7;
    pointer-events: none;
    opacity: 0;
    transform: scale(0.1);
}

.quantum-shockwave.fire {
    animation: shockwaveBoom 0.65s cubic-bezier(0.1, 0.8, 0.2, 1) forwards;
}

@keyframes shockwaveBoom {
    0% {
        opacity: 1;
        transform: scale(0.1);
        border-width: 6px;
    }
    40% {
        opacity: 0.9;
        border-color: rgba(255, 60, 80, 0.9);
    }
    100% {
        opacity: 0;
        transform: scale(55);
        border-width: 1px;
    }
}

/* Clean video finish: keep video visible without explosion/distortion */
.video-viewport.quantum-shake {
    animation: none !important;
}

.teaser-video.imploding {
    animation: none !important;
}

/* GAME OVER MASKED REVEAL OVERLAY */
.video-gameover-overlay {
    position: absolute;
    inset: 0;
    z-index: 8;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.video-gameover-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.gameover-backdrop {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.75) 50%, rgba(0, 0, 0, 0.95) 100%);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    z-index: 1;
    transition: backdrop-filter 0.5s ease;
}

.gameover-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
    gap: 16px;
    width: 100%;
}

/* Fentrol lefele beuszo, homalyosodva fokuszba ero szoveg maszk */
.masked-line-wrap {
    overflow: visible;
    position: relative;
    padding: 8px 16px;
    display: block;
}

.gameover-line-primary {
    font-family: var(--font-apple);
    font-size: clamp(2rem, 3.8vw, 2.9rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    color: #ffffff !important;
    line-height: 1.25;
    margin: 0;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.7);
    transform: translateY(0);
    opacity: 1;
    filter: none;
    will-change: transform, opacity, filter;
}

.gameover-line-secondary {
    font-family: var(--font-apple);
    font-size: clamp(2rem, 3.8vw, 2.9rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    color: #ffffff !important;
    line-height: 1.25;
    margin: 0;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.7);
    transform: translateY(0);
    opacity: 1;
    filter: none;
    will-change: transform, opacity, filter;
}

.masked-line-wrap.line-two-wrap {
    margin-top: 18px;
}

.masked-line-wrap.cta-wrap {
    margin-top: 14px;
}

.masked-line-wrap.cta-wrap {
    margin-top: 24px;
}

.gameover-cta-group {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    transform: translateY(0);
    opacity: 1;
    will-change: transform, opacity;
}

/* Secondary Action: Replay Button ("Replay / Újrajátszás") */
.btn-modern-replay {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.78);
    font-family: var(--font-apple);
    font-size: clamp(0.88rem, 1.3vw, 0.98rem);
    font-weight: 600;
    letter-spacing: -0.01em;
    cursor: pointer;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-modern-replay .replay-icon {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), stroke 0.2s ease;
    stroke: rgba(255, 255, 255, 0.7);
    flex-shrink: 0;
}

.btn-modern-replay .replay-text {
    position: relative;
    z-index: 2;
}

.btn-modern-replay:hover {
    transform: translateY(-2px);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.btn-modern-replay:hover .replay-icon {
    transform: rotate(-180deg);
    stroke: #ffffff;
}

.btn-modern-replay:active {
    transform: translateY(0) scale(0.97);
}

/* Primary Highlighted Action: "I need to see this / Ezt látnom kell." */
.btn-modern-prove {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 11px;
    padding: 13px 28px;
    border-radius: 99px;
    background: #ffffff;
    border: 1px solid #ffffff;
    color: #000000;
    font-family: var(--font-apple);
    font-size: clamp(0.92rem, 1.4vw, 1.05rem);
    font-weight: 700;
    letter-spacing: -0.015em;
    cursor: pointer;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.45), 0 8px 25px rgba(0, 0, 0, 0.5);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.btn-modern-prove .prove-arrow {
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    stroke: #000000;
}

.btn-modern-prove:hover {
    transform: translateY(-2px) scale(1.02);
    background: #00f0ff;
    border-color: #00f0ff;
    color: #000000;
    box-shadow: 0 0 35px rgba(0, 240, 255, 0.75), 0 10px 30px rgba(0, 0, 0, 0.6);
}

.btn-modern-prove:hover .prove-arrow {
    transform: translateY(3px);
}

.btn-modern-prove:active {
    transform: translateY(0) scale(0.97);
}

/* End screen on phones: the video frame is only ~260px tall, so the two lines and
   the buttons are sized to the screen width and must all fit inside the frame. */
@media (max-width: 640px) {
    .gameover-content {
        padding: 10px 12px;
        gap: 2px;
    }

    .masked-line-wrap {
        padding: 2px 8px;
    }

    .masked-line-wrap.line-two-wrap {
        margin-top: 0;
    }

    .masked-line-wrap.cta-wrap {
        margin-top: 10px;
    }

    .gameover-line-primary,
    .gameover-line-secondary {
        font-size: clamp(1.05rem, 5.6vw, 1.9rem);
        line-height: 1.15;
        text-wrap: balance;
    }

    .gameover-cta-group {
        gap: 8px;
        flex-wrap: nowrap;
    }

    .btn-modern-prove {
        padding: 9px 16px;
        gap: 8px;
        font-size: 0.86rem;
        white-space: nowrap;
        box-shadow: 0 0 16px rgba(255, 255, 255, 0.4), 0 6px 16px rgba(0, 0, 0, 0.5);
    }

    /* Replay becomes a round icon button; the label stays for screen readers */
    .btn-modern-replay {
        width: 38px;
        height: 38px;
        padding: 0;
        gap: 0;
        justify-content: center;
        flex-shrink: 0;
    }

    .btn-modern-replay .replay-text {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }
}

/* Video Description Block */
.video-description-block {
    margin: 8px auto 64px;
    max-width: 640px;
    text-align: center;
    padding: 0 16px;
}

.video-desc-text {
    font-size: clamp(0.95rem, 1.8vw, 1.08rem);
    line-height: 1.75;
    color: var(--text-secondary);
    font-weight: 400;
    letter-spacing: 0.005em;
    margin-bottom: 28px;
}

/* Two-beat tagline: quiet setup, bright punchline (same white/silver language as the headline) */
.video-desc-tagline {
    font-size: clamp(1.15rem, 2.4vw, 1.45rem);
    line-height: 1.45;
    font-weight: 600;
    letter-spacing: -0.015em;
    color: var(--text-white);
    margin: 0;
}

.tagline-line {
    display: block;
}

.tagline-line:first-child {
    color: var(--text-muted);
    font-weight: 500;
}

.tagline-line:last-child {
    color: var(--text-white);
    text-shadow: 0 0 28px rgba(255, 255, 255, 0.18);
}

/* Climax Banner */

.climax-banner {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    margin-top: 12px;
    margin-bottom: 48px;
}

/* The last message before the sign-up form: the strongest line on the page after the headline */
.climax-text {
    font-size: clamp(1.7rem, 3.4vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.15;
    text-align: center;
    text-wrap: balance;
    color: #ffffff;
    /* Wide gradient with a warm eclipse-gold highlight; climaxSweep slides it across once */
    background: linear-gradient(100deg, #ffffff 0%, #ffffff 42%, #ffe2a8 50%, #ffffff 58%, #ffffff 100%);
    background-size: 300% 100%;
    background-position: 100% 0;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 22px rgba(255, 255, 255, 0.35));
}

/* Desktop: the line never wraps, not even while the letter-spacing animation is
   still wide (the Hungarian line is longer and used to break into two lines).
   Phones keep the balanced two-line wrap. */
@media (min-width: 601px) {
    .climax-text {
        white-space: nowrap;
    }
}

/* Mid-size windows: no tracking animation (the wide start would not fit); only the light sweep */
@media (min-width: 601px) and (max-width: 900px) {
    [data-reveal="climax"].is-revealed .climax-text {
        animation: climaxSweep 2.4s ease-in-out calc(var(--reveal-delay, 0ms) + 1.2s) both;
    }
}

.climax-glow-line {
    width: 120px;
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), #ffffff 50%, rgba(255, 255, 255, 0));
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    margin-top: 16px;
    border-radius: 99px;
}

/* --------------------------------------------------------------------------
   SIGNUP NOTIFICATION FORM
   -------------------------------------------------------------------------- */
.signup-module {
    width: 100%;
    max-width: 500px;
}

.signup-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.signup-input-wrap {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    background: rgba(12, 12, 16, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 99px;
    padding: 6px 6px 6px 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    transition: var(--transition-smooth);
}

.signup-input-wrap:focus-within {
    border-color: rgba(255, 255, 255, 0.45);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(255, 255, 255, 0.15);
}

.signup-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    font-family: var(--font-main);
    font-size: 0.95rem;
    color: var(--text-white);
    padding-right: 12px;
}

.signup-input::placeholder {
    color: var(--text-muted);
    transition: opacity 0.2s ease;
}

.signup-input:focus::placeholder {
    opacity: 0;
}

.signup-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    color: #000000;
    border: none;
    padding: 12px 22px;
    border-radius: 99px;
    font-family: var(--font-main);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
    white-space: nowrap;
}

.signup-btn:hover {
    background: #e4e4e7;
    transform: scale(1.03);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.4);
}

.signup-btn:active {
    transform: scale(0.97);
}

.btn-arrow {
    width: 15px;
    height: 15px;
    transition: transform 0.2s ease;
}

.signup-btn:hover .btn-arrow {
    transform: translateX(3px);
}

.btn-check-icon {
    width: 16px;
    height: 16px;
    display: none;
    stroke: #000000;
}

.signup-btn.success {
    background: #00ffaa;
    color: #000000;
    box-shadow: 0 0 30px rgba(0, 255, 170, 0.6);
}

.signup-btn.success .btn-arrow {
    display: none;
}

.signup-btn.success .btn-check-icon {
    display: inline-block;
    animation: checkPop 0.35s cubic-bezier(0.17, 0.89, 0.32, 1.49) forwards;
}

@keyframes checkPop {
    0% { transform: scale(0.2); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* Cloudflare Turnstile slot: takes no space unless Cloudflare shows the checkbox */
.turnstile-slot {
    display: flex;
    justify-content: center;
}

.turnstile-slot:empty {
    display: none;
}

.signup-feedback {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: #00ffaa;
    min-height: 20px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.signup-feedback.show {
    opacity: 1;
}

/* --------------------------------------------------------------------------
   TACTICAL ORBITAL CLEARANCE & GAMIFIED CONSENT
   -------------------------------------------------------------------------- */
.orbital-clearance-wrap {
    width: 100%;
    margin-top: 10px;
    display: flex;
    justify-content: center;
}

.clearance-toggle {
    width: 100%;
    max-width: 480px;
    background: rgba(14, 14, 20, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: left;
    position: relative;
    overflow: hidden;
}

.clearance-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
    transition: left 0.6s ease;
}

.clearance-toggle:hover::before {
    left: 100%;
}

.clearance-toggle:hover {
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(20, 20, 28, 0.9);
    transform: translateY(-1px);
}

/* Active / Granted State */
.clearance-toggle.granted {
    border-color: rgba(0, 255, 170, 0.45);
    background: rgba(0, 255, 170, 0.06);
    box-shadow: 0 0 25px rgba(0, 255, 170, 0.15), inset 0 0 15px rgba(0, 255, 170, 0.05);
}

/* Warning Flash State */
.clearance-toggle.warning-flash {
    border-color: #ff3366 !important;
    background: rgba(255, 51, 102, 0.12) !important;
    box-shadow: 0 0 30px rgba(255, 51, 102, 0.4) !important;
    animation: shakeWarn 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes shakeWarn {
    10%, 90% { transform: translate3d(-2px, 0, 0); }
    20%, 80% { transform: translate3d(3px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-3px, 0, 0); }
    40%, 60% { transform: translate3d(3px, 0, 0); }
}

.clearance-indicator {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.clearance-toggle:hover .clearance-indicator {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.08);
}

.clearance-toggle.granted .clearance-indicator {
    background: #00ffaa;
    border-color: #00ffaa;
    box-shadow: 0 0 14px rgba(0, 255, 170, 0.6);
}

.clearance-icon-check {
    width: 14px;
    height: 14px;
    stroke: #000000;
    opacity: 0;
    transform: scale(0.4);
    transition: all 0.25s cubic-bezier(0.17, 0.89, 0.32, 1.49);
}

.clearance-toggle.granted .clearance-icon-check {
    opacity: 1;
    transform: scale(1);
}

.clearance-text-wrap {
    flex: 1;
}

.clearance-status-label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.clearance-toggle.granted .clearance-status-label {
    color: #00ffaa;
    text-shadow: 0 0 10px rgba(0, 255, 170, 0.5);
}

.clearance-toggle.warning-flash .clearance-status-label {
    color: #ff3366;
    text-shadow: 0 0 10px rgba(255, 51, 102, 0.5);
}

.clearance-subtext {
    font-family: var(--font-main);
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.35;
    margin-top: 2px;
}

.clearance-link-text {
    color: #ffffff;
    text-decoration: underline;
    cursor: pointer;
    font-weight: 600;
    transition: color 0.2s ease;
}

.clearance-link-text:hover {
    color: #00ffaa;
}

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.teaser-footer {
    position: relative;
    z-index: 10;
    width: 100%;
    padding: 24px;
    text-align: center;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.footer-link-btn {
    background: none;
    border: none;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s ease;
    padding: 2px 4px;
}

.footer-link-btn:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-dot {
    color: var(--border-subtle);
    font-size: 0.75rem;
}

.footer-copy {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   PRIVACY MODAL (Apple Pro Dark Glassmorphism)
   -------------------------------------------------------------------------- */
.privacy-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 20px;
}

.privacy-modal-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

.privacy-modal-container {
    width: 100%;
    max-width: 720px;
    max-height: 84vh;
    background: rgba(16, 16, 22, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    display: flex;
    flex-direction: column;
    transform: translateY(24px) scale(0.96);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.privacy-modal-backdrop.open .privacy-modal-container {
    transform: translateY(0) scale(1);
}

.privacy-modal-header {
    padding: 18px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.02);
}

.privacy-modal-header h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.privacy-modal-close {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    max-width: 32px;
    max-height: 32px;
    border-radius: 50%;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    box-sizing: border-box;
}

.privacy-modal-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    transform: scale(1.05);
}

.privacy-modal-body {
    padding: 24px;
    overflow-y: auto;
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.65;
}

.privacy-modal-body h3 {
    color: #ffffff;
    font-size: 0.98rem;
    margin-top: 20px;
    margin-bottom: 8px;
}

.privacy-modal-body h3:first-child {
    margin-top: 0;
}

.privacy-modal-body p {
    margin-bottom: 12px;
}

.privacy-modal-body ul {
    padding-left: 20px;
    margin-bottom: 14px;
}

.privacy-modal-body li {
    margin-bottom: 6px;
}

.privacy-modal-body strong {
    color: #ffffff;
}

.privacy-modal-body a {
    color: #58a6ff;
    text-decoration: underline;
}

.privacy-modal-footer {
    padding: 14px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.3);
}

.privacy-modal-extlink {
    font-family: var(--font-mono);
    font-size: 0.76rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.privacy-modal-extlink:hover {
    color: #ffffff;
}

.modal-inline-link {
    color: #58a6ff;
    text-decoration: underline;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    cursor: pointer;
    display: inline;
    vertical-align: baseline;
    transition: color 0.2s ease;
}

.modal-inline-link:hover {
    color: #8ac0ff;
}

/* --------------------------------------------------------------------------
   DATA ERASURE / UNSUBSCRIBE MODAL (Crimson Security Cyberpunk Theme)
   -------------------------------------------------------------------------- */
.delete-modal-container {
    max-width: 520px;
    border-color: rgba(255, 60, 100, 0.25);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9), 0 0 40px rgba(255, 51, 102, 0.12);
}

.delete-modal-header {
    border-bottom-color: rgba(255, 60, 100, 0.15);
}

.modal-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.delete-badge {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    color: #ff3366;
    background: rgba(255, 51, 102, 0.12);
    border: 1px solid rgba(255, 51, 102, 0.3);
    padding: 2px 8px;
    border-radius: 99px;
    letter-spacing: 0.05em;
}

.delete-modal-body {
    padding: 26px 24px;
}

.delete-modal-body p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    margin-bottom: 18px;
    line-height: 1.55;
}

.delete-input-group {
    margin-bottom: 16px;
}

.delete-input {
    width: 100%;
    height: 48px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 0 16px;
    font-family: var(--font-main);
    font-size: 0.95rem;
    color: #ffffff;
    outline: none;
    transition: var(--transition-smooth);
}

.delete-input:focus {
    border-color: rgba(255, 51, 102, 0.6);
    background: rgba(255, 51, 102, 0.04);
    box-shadow: 0 0 20px rgba(255, 51, 102, 0.2);
}

.delete-status-msg {
    min-height: 24px;
    font-family: var(--font-mono);
    font-size: 0.84rem;
    margin-bottom: 20px;
    padding: 10px 14px;
    border-radius: 8px;
    display: none;
    line-height: 1.45;
}

.delete-status-msg.show {
    display: block;
}

.delete-status-msg.success {
    color: #00ffaa;
    background: rgba(0, 255, 170, 0.08);
    border: 1px solid rgba(0, 255, 170, 0.25);
}

.delete-status-msg.error {
    color: #ff4d6d;
    background: rgba(255, 77, 109, 0.08);
    border: 1px solid rgba(255, 77, 109, 0.25);
}

.delete-status-msg.info {
    color: #58a6ff;
    background: rgba(88, 166, 255, 0.08);
    border: 1px solid rgba(88, 166, 255, 0.25);
}

.delete-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.btn-confirm-delete {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    background: linear-gradient(135deg, #ff3366 0%, #d81159 100%);
    border: 1px solid rgba(255, 51, 102, 0.4);
    border-radius: 10px;
    color: #ffffff;
    font-family: var(--font-main);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 51, 102, 0.25);
    transition: all 0.2s ease;
}

.btn-confirm-delete:hover {
    background: linear-gradient(135deg, #ff477e 0%, #ea1b68 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 51, 102, 0.4);
}

.btn-confirm-delete:active {
    transform: translateY(1px);
}

.btn-confirm-delete:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-cancel-delete {
    height: 44px;
    padding: 0 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #1e1e26;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: #e2e2e8;
    font-family: var(--font-main);
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-cancel-delete:hover {
    background: #272732;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.22);
}

/* --------------------------------------------------------------------------
   APPLE PRO CONTACT MODAL & INTERACTIVE COMPOSER (Deep Charcoal & Minimalist)
   -------------------------------------------------------------------------- */
.contact-modal-container {
    max-width: 640px;
    background: #141418;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 35px 90px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.16);
    border-radius: 20px;
}

.contact-badge {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 600;
    color: #00ffaa;
    background: rgba(0, 255, 170, 0.08);
    border: 1px solid rgba(0, 255, 170, 0.25);
    padding: 3px 10px;
    border-radius: 99px;
    letter-spacing: 0.04em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.contact-beacon {
    width: 5px;
    height: 5px;
    background: #00ffaa;
    border-radius: 50%;
    box-shadow: 0 0 6px #00ffaa;
    animation: beaconPulse 2s infinite ease-in-out;
}

@keyframes beaconPulse {
    0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 6px #00ffaa; }
    50% { opacity: 0.4; transform: scale(0.7); box-shadow: 0 0 2px #00ffaa; }
}

.contact-modal-body {
    padding: 22px 26px 22px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 78vh;
    overflow-y: auto;
}

.contact-hero-quote {
    text-align: center;
    padding: 0 10px 2px;
}

.contact-quote-pill {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    color: var(--text-muted);
    text-transform: uppercase;
    display: block;
    margin-bottom: 5px;
}

.contact-quote-title {
    font-size: clamp(1.35rem, 3.6vw, 1.75rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #ffffff;
    margin: 0 0 6px;
    background: linear-gradient(180deg, #ffffff 40%, rgba(255, 255, 255, 0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-quote-desc {
    font-size: 0.86rem;
    color: var(--text-secondary);
    line-height: 1.48;
    margin: 0 auto;
    max-width: 520px;
}

/* Topic selector pills */
.contact-topics-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-topics-label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0.04em;
}

.contact-topic-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.topic-chip {
    padding: 6px 14px;
    background: #1b1b22;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 99px;
    color: var(--text-secondary);
    font-family: var(--font-main);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.topic-chip .chip-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #00ffaa;
    box-shadow: 0 0 5px #00ffaa;
}

.topic-chip:hover {
    background: #23232c;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.22);
}

.topic-chip.active {
    background: #ffffff;
    border-color: #ffffff;
    color: #000000;
    font-weight: 600;
    box-shadow: 0 2px 14px rgba(255, 255, 255, 0.25);
}

.topic-chip.active .chip-dot {
    background: #000000;
    box-shadow: none;
}

/* Interactive Composer Form */
.contact-composer-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 540px) {
    .contact-form-grid {
        grid-template-columns: 1fr;
    }
}

.contact-input-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.contact-field-label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.03em;
    transition: color 0.25s ease;
}

.contact-form-input,
.contact-form-textarea {
    width: 100%;
    background: #191920;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 10px 14px;
    font-family: var(--font-main);
    font-size: 0.88rem;
    color: #ffffff;
    outline: none;
    transition: all 0.2s ease;
}

.contact-form-input:focus,
.contact-form-textarea:focus {
    background: #1e1e27;
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.08);
}

.contact-form-textarea {
    resize: vertical;
    min-height: 75px;
    max-height: 180px;
    line-height: 1.5;
}

.contact-form-feedback {
    min-height: 20px;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    border-radius: 8px;
    padding: 0;
    display: none;
    line-height: 1.4;
    transition: all 0.3s ease;
}

.contact-form-feedback.show {
    display: block;
    padding: 8px 12px;
}

.contact-form-feedback.success {
    color: #00ffaa;
    background: rgba(0, 255, 170, 0.1);
    border: 1px solid rgba(0, 255, 170, 0.3);
}

.contact-form-feedback.error {
    color: #ff3366;
    background: rgba(255, 51, 102, 0.1);
    border: 1px solid rgba(255, 51, 102, 0.3);
}

/* Action Buttons */
.contact-actions-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-send-transmission {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    color: #000000;
    font-family: var(--font-main);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 14px rgba(255, 255, 255, 0.18);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.btn-send-transmission:hover {
    background: #f0f0f5;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.28);
}

.btn-send-transmission:active {
    transform: translateY(1px);
    background: #e4e4eb;
}

.btn-send-transmission:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-spinner {
    display: none;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(0, 0, 0, 0.3);
    border-top-color: #000000;
    border-radius: 50%;
    animation: btnSpin 0.7s linear infinite;
}

@keyframes btnSpin {
    to { transform: rotate(360deg); }
}

.btn-send-transmission.sending .btn-spinner {
    display: inline-block;
}

.btn-send-transmission.sending .btn-send-icon {
    display: none;
}

.btn-open-email-app {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 44px;
    padding: 0 16px;
    background: #1e1e26;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    color: #e2e2e8;
    font-family: var(--font-main);
    font-size: 0.84rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-open-email-app:hover {
    background: #272732;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

/* Direct Studio Bottom Card */
.contact-card-apple {
    background: #181820;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-avatar-slot {
    position: relative;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-avatar-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15), transparent 70%);
    filter: blur(4px);
}

.contact-avatar-img {
    position: relative;
    z-index: 1;
    border-radius: 6px;
    object-fit: contain;
}

.contact-card-info {
    flex: 1;
    min-width: 0;
}

.contact-entity-name {
    font-size: 0.86rem;
    font-weight: 700;
    color: #ffffff;
}

.contact-rep-name {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-bottom: 3px;
}

.contact-email-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.contact-email-val {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 500;
    color: #a0a0b0;
}

.contact-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    color: #d0d0dc;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.contact-copy-btn:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

.contact-copy-btn .copy-icon-done {
    display: none;
}

.contact-copy-btn.copied {
    background: rgba(0, 255, 170, 0.15);
    border-color: rgba(0, 255, 170, 0.4);
    color: #00ffaa;
}

.contact-copy-btn.copied .copy-icon-ready {
    display: none;
}

.contact-copy-btn.copied .copy-icon-done {
    display: inline-block;
}

.contact-sla-note {
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
    margin: 0;
}

.footer-delete-btn:hover {
    color: #ff4d6d;
}

/* --------------------------------------------------------------------------
   RESPONSIVE ADJUSTMENTS (Mobile & Tablet Precision Tuning)
   -------------------------------------------------------------------------- */
@media (max-width: 600px) {
    .teaser-header {
        padding: 10px 16px;
        height: 56px;
    }
    
    .nav-brand-logo-slot {
        width: 24px;
        height: 24px;
    }

    .nav-brand-logo {
        height: 36px;
        width: auto;
        max-height: 38px;
    }

    .nav-brand span {
        font-size: 0.78rem;
        letter-spacing: 0.1em;
    }

    .lang-switch-wrap {
        padding: 3px 8px;
        gap: 4px;
    }

    .lang-btn {
        font-size: 0.72rem;
    }

    .teaser-main {
        padding: 72px 14px 30px;
        min-height: calc(100vh - 56px);
        justify-content: center;
    }

    .teaser-container {
        padding: 0;
        max-width: 100%;
    }

    .eclipse-stage {
        width: 260px;
        height: 260px;
        margin: 0 auto 12px;
    }

    .sun-glow-outer {
        width: 320px;
        height: 320px;
        filter: blur(28px);
    }

    .sun-corona-rays {
        width: 290px;
        height: 290px;
    }

    .sun-corona {
        width: 190px;
        height: 190px;
        filter: blur(8px);
    }

    .eclipse-moon-disc {
        width: 170px;
        height: 170px;
    }

    .sun-flare-diamond {
        top: 36px;
        right: 40px;
        width: 24px;
        height: 24px;
    }

    .diamond-core {
        width: 16px;
        height: 16px;
    }

    .diamond-spike-h {
        width: 120px;
    }

    .diamond-spike-v {
        height: 120px;
    }

    .diamond-spike-diag {
        width: 80px;
    }

    .sun-flare-anamorphic {
        width: 340px;
        max-width: 92vw;
    }

    .eclipse-logo-wrap {
        width: 150px !important;
        height: 150px !important;
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
        overflow: visible !important;
    }

    .eclipse-logo {
        width: 100% !important;
        height: 100% !important;
        background: transparent !important;
        object-fit: contain !important;
    }

    .teaser-title {
        font-size: clamp(2.1rem, 9.4vw, 2.9rem);
        margin-bottom: 12px;
        line-height: 1.12;
        letter-spacing: -0.035em;
    }

    .teaser-subtitle {
        font-size: clamp(1.3rem, 6vw, 1.6rem);
        line-height: 1.25;
        margin-bottom: 26px;
        padding: 0 6px;
    }

    .climax-banner {
        margin-bottom: 18px;
    }

    .climax-text {
        font-size: clamp(1.3rem, 6.2vw, 1.65rem);
    }

    .signup-module {
        width: 100%;
        max-width: 360px;
        margin: 0 auto;
    }

    /* Signup: pill-shaped container marad, de stacked mobilon */
    .signup-input-wrap {
        flex-direction: column;
        background: #141418;
        border: 1px solid rgba(255, 255, 255, 0.18);
        border-radius: 18px;
        padding: 10px;
        gap: 10px;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
        align-items: stretch;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        transform: none !important;
        will-change: auto !important;
    }

    .signup-input {
        width: 100%;
        height: 58px;
        line-height: 58px;
        text-align: left;
        font-size: 16px; /* Prevents iOS Safari auto-zoom */
        padding: 0 16px;
        background: rgba(255, 255, 255, 0.05);
        border: none;
        border-radius: 12px;
        color: #ffffff;
        outline: none;
        caret-color: #ffffff;
        box-sizing: border-box;
        -webkit-appearance: none;
        appearance: none;
        display: block;
        vertical-align: middle;
        transform: none !important;
        will-change: auto !important;
    }

    .signup-input:focus {
        background: rgba(255, 255, 255, 0.08);
    }

    .signup-btn {
        width: 100%;
        height: 54px;
        justify-content: center;
        border-radius: 12px;
        font-size: 0.95rem;
        letter-spacing: 0.02em;
    }

    .orbital-clearance-wrap {
        margin-top: 10px;
        width: 100%;
    }

    .clearance-toggle {
        padding: 7px 10px;
        gap: 8px;
        border-radius: 10px;
    }

    .clearance-indicator {
        width: 18px;
        height: 18px;
        min-width: 18px;
    }

    .clearance-status-label {
        font-size: 0.72rem;
    }

    .clearance-sub-desc {
        font-size: 0.72rem;
    }

    .teaser-footer {
        padding: 20px 14px 28px;
    }

    .footer-links {
        gap: 6px;
        font-size: 0.78rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-link-btn {
        font-size: 0.76rem;
    }

    .footer-copy {
        font-size: 0.72rem;
        margin-top: 10px;
    }

    /* Modal Mobile Adaptations */
    .privacy-modal-backdrop {
        padding: 10px;
        align-items: center;
        justify-content: center;
    }

    .privacy-modal-container,
    .delete-modal-container,
    .contact-modal-container {
        width: 95vw;
        max-width: 95vw;
        max-height: 88vh;
        border-radius: 16px;
    }

    .privacy-modal-header,
    .delete-modal-header,
    .contact-modal-header {
        padding: 12px 14px;
    }

    .privacy-modal-header h2,
    .delete-modal-header h2,
    .contact-modal-header h2 {
        font-size: 1.05rem;
    }

    .privacy-modal-body,
    .delete-modal-body,
    .contact-modal-body {
        padding: 14px;
        max-height: calc(88vh - 100px);
        -webkit-overflow-scrolling: touch;
    }

    .contact-hero-quote {
        padding: 0;
    }

    .contact-quote-title {
        font-size: 1.22rem;
    }

    .contact-quote-desc {
        font-size: 0.8rem;
        line-height: 1.4;
    }

    .contact-topics-label {
        font-size: 0.68rem;
    }

    .contact-topic-chips {
        gap: 6px;
    }

    .topic-chip {
        padding: 5px 10px;
        font-size: 0.74rem;
    }

    .contact-form-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .contact-field-label {
        font-size: 0.68rem;
    }

    .contact-form-input,
    .contact-form-textarea {
        font-size: 16px; /* Prevents iOS auto-zoom */
        padding: 8px 10px;
        border-radius: 8px;
    }

    .contact-form-textarea {
        min-height: 65px;
    }

    .btn-send-transmission {
        height: 42px;
        font-size: 0.85rem;
        border-radius: 8px;
    }

    .contact-card-apple {
        padding: 8px 10px;
        gap: 10px;
    }

    .contact-avatar-slot {
        width: 30px;
        height: 30px;
    }

    .contact-avatar-img {
        width: 30px;
        height: 30px;
    }

    .contact-entity-name {
        font-size: 0.8rem;
    }

    .contact-rep-name {
        font-size: 0.68rem;
    }

    .contact-email-val {
        font-size: 0.74rem;
    }

    /* Delete action buttons: side by side on mobile */
    .delete-actions {
        display: flex;
        flex-direction: row;
        gap: 10px;
        width: 100%;
        margin-top: 12px;
    }

    .btn-confirm-delete {
        flex: 2;
        height: 48px !important;
        font-size: 0.85rem !important;
        border-radius: 12px !important;
        box-sizing: border-box;
        min-width: 0;
        padding: 0 12px !important;
    }

    .btn-cancel-delete {
        flex: 1;
        height: 48px !important;
        font-size: 0.85rem !important;
        border-radius: 12px !important;
        box-sizing: border-box;
        min-width: 0;
        padding: 0 12px !important;
    }
}

/* ==========================================================================
   PERFORMANCE: OFF-SCREEN PAUSE & LITE MODE
   html.perf-lite is set in <head> on weak devices and slow or metered
   connections, and by main.js if the frame rate drops. The look stays the
   same; only the costly effects are swapped for cheaper equivalents.
   ========================================================================== */

/* The eclipse loops stop while the logo is scrolled out of view */
.eclipse-stage.is-offscreen,
.eclipse-stage.is-offscreen * {
    animation-play-state: paused !important;
}

/* Frosted glass → solid tint. A live blur over the animated starfield is
   recomputed on every frame, which old GPUs cannot keep up with. */
html.perf-lite .teaser-header {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

html.perf-lite .lang-switch-wrap,
html.perf-lite .btn-video-play,
html.perf-lite .btn-modern-replay,
html.perf-lite .signup-input-wrap,
html.perf-lite .clearance-toggle {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

html.perf-lite .privacy-modal-backdrop {
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

html.perf-lite .gameover-backdrop {
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.86) 50%, rgba(0, 0, 0, 0.96) 100%);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* Entrances without the animated blur (blur is repainted every frame; fade + move is not) */
html.perf-lite [data-reveal="rise"].is-revealed {
    animation-name: revealRiseLite;
}

html.perf-lite [data-reveal="depth"].is-revealed {
    animation-name: revealDepthLite;
}

html.perf-lite [data-reveal="title"].is-revealed .title-word-inner {
    animation-name: revealWordLite;
}

html.perf-lite [data-reveal="climax"].is-revealed {
    animation-name: revealClimaxLite;
}

@keyframes revealRiseLite {
    0%   { opacity: 0; transform: translateY(40px); }
    100% { opacity: 1; transform: none; }
}

@keyframes revealDepthLite {
    0%   { opacity: 0; transform: translateY(36px) scale(0.92); }
    100% { opacity: 1; transform: none; }
}

@keyframes revealWordLite {
    0%   { opacity: 0; transform: translateY(105%) rotate(4deg); }
    100% { opacity: 1; transform: none; }
}

@keyframes revealClimaxLite {
    0%   { opacity: 0; transform: translateY(18px); }
    100% { opacity: 1; transform: none; }
}

/* ==========================================================================
   DOUBLE OPT-IN: "SIGNAL SENT" CARD
   Replaces the form after a sign-up: the confirmation link is on its way.
   ========================================================================== */
.signup-form.is-signal .signup-input-wrap,
.signup-form.is-signal .orbital-clearance-wrap {
    display: none;
}

.signal-card {
    display: none;
    width: 100%;
    padding: 26px 22px 20px;
    border-radius: 22px;
    text-align: center;
    background: rgba(12, 12, 18, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 1px rgba(255, 210, 138, 0.06), 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 50px rgba(255, 190, 110, 0.08);
}

.signup-form.is-signal .signal-card {
    display: block;
}

.signal-card.is-in {
    animation: signalIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes signalIn {
    from { opacity: 0; transform: translateY(14px) scale(0.98); }
    to { opacity: 1; transform: none; }
}

.signal-card [hidden] {
    display: none !important;
}

/* Planet with an orbiting satellite sending a pulse */
.signal-orbit {
    position: relative;
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
    border-radius: 50%;
    border: 1px dashed rgba(255, 210, 138, 0.35);
    animation: signalSpin 4s linear infinite;
}

.signal-planet {
    position: absolute;
    inset: 20px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #ffe9c4, #ffb35c 55%, #6b3a12 100%);
    box-shadow: 0 0 18px rgba(255, 190, 110, 0.55);
    animation: signalSpin 4s linear infinite reverse; /* keeps the planet's light still */
}

.signal-sat {
    position: absolute;
    top: -4px;
    left: 50%;
    width: 8px;
    height: 8px;
    margin-left: -4px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 10px #ffffff, 0 0 20px rgba(255, 210, 138, 0.8);
}

.signal-wave {
    position: absolute;
    top: -14px;
    left: 50%;
    width: 28px;
    height: 28px;
    margin-left: -14px;
    border-radius: 50%;
    border: 2px solid rgba(255, 210, 138, 0.8);
    opacity: 0;
    animation: signalWave 2s ease-out infinite;
}

@keyframes signalSpin {
    to { transform: rotate(360deg); }
}

@keyframes signalWave {
    0% { transform: scale(0.3); opacity: 0.9; }
    100% { transform: scale(1.8); opacity: 0; }
}

.signal-title {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #ffffff;
    margin: 0 0 8px;
}

.signal-text {
    font-size: 0.92rem;
    color: var(--text-secondary);
    margin: 0 0 4px;
}

.signal-email {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffd28a;
    word-break: break-all;
    margin: 0 0 16px;
}

.signal-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.signal-open,
.signal-resend {
    font-family: var(--font-main);
    font-size: 0.88rem;
    font-weight: 700;
    padding: 11px 18px;
    border-radius: 99px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.signal-open {
    background: #ffffff;
    color: #000000;
    border: 1px solid #ffffff;
}

.signal-open:hover {
    background: #ffd28a;
    border-color: #ffd28a;
}

.signal-resend {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    font-variant-numeric: tabular-nums;
}

.signal-resend:hover:not(:disabled) {
    border-color: rgba(255, 255, 255, 0.6);
}

.signal-resend:disabled {
    cursor: default;
    opacity: 0.55;
}

.signal-hint {
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--text-muted);
    margin: 0 0 10px;
}

.signal-change {
    background: none;
    border: none;
    padding: 4px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-decoration: underline;
    cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
    .signal-orbit, .signal-planet, .signal-wave, .signal-card.is-in { animation: none; }
}

html.perf-lite .signal-orbit,
html.perf-lite .signal-planet,
html.perf-lite .signal-wave {
    animation: none;
}

/* ==========================================================================
   FOUNDER PROGRAM BADGE ("x of 30 codes left")
   ========================================================================== */
.founder-badge {
    width: 100%;
    margin: 0 auto 16px;
    padding: 14px 18px 12px;
    border-radius: 18px;
    text-align: left;
    background: linear-gradient(135deg, rgba(255, 210, 138, 0.10), rgba(255, 210, 138, 0.03) 60%, rgba(0, 0, 0, 0));
    border: 1px solid rgba(255, 210, 138, 0.35);
    box-shadow: 0 0 30px rgba(255, 190, 110, 0.08);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.founder-badge.is-in {
    opacity: 1;
    transform: none;
}

.founder-badge-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.founder-badge-tag {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #ffd28a;
}

.founder-badge-left {
    font-size: 0.95rem;
    font-weight: 800;
    color: #ffffff;
    font-variant-numeric: tabular-nums;
}

.founder-badge-bar {
    height: 4px;
    margin: 10px 0 8px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.founder-badge-bar span {
    display: block;
    height: 100%;
    border-radius: 99px;
    background: linear-gradient(90deg, #ffb35c, #ffd28a);
    box-shadow: 0 0 12px rgba(255, 210, 138, 0.7);
    transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.founder-badge-sub {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.45;
    color: var(--text-secondary);
}

/* Last few codes: a soft pulse on the edge */
.founder-badge.is-low {
    animation: founderPulse 2.4s ease-in-out infinite;
}

@keyframes founderPulse {
    0%, 100% { box-shadow: 0 0 24px rgba(255, 190, 110, 0.08); border-color: rgba(255, 210, 138, 0.35); }
    50% { box-shadow: 0 0 34px rgba(255, 190, 110, 0.28); border-color: rgba(255, 210, 138, 0.75); }
}

html.perf-lite .founder-badge.is-low { animation: none; }

@media (prefers-reduced-motion: reduce) {
    .founder-badge, .founder-badge-bar span { transition: none; }
    .founder-badge.is-low { animation: none; }
}

.signal-founder {
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 0.82rem;
    line-height: 1.45;
    color: #ffd28a;
    background: rgba(255, 210, 138, 0.08);
    border: 1px solid rgba(255, 210, 138, 0.3);
}

.signal-card .signal-founder[hidden] {
    display: none !important;
}

/* "Signal sent" card → confirmed: the orbit turns into a check, the actions go away */
.signal-check {
    display: none;
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    background: rgba(0, 255, 170, 0.1);
    border: 2px solid #00ffaa;
    box-shadow: 0 0 28px rgba(0, 255, 170, 0.35);
}

.signal-check svg {
    width: 30px;
    height: 30px;
    stroke: #00ffaa;
    stroke-dasharray: 40;
    stroke-dashoffset: 40;
}

.signal-card.is-done .signal-orbit,
.signal-card.is-done .signal-actions {
    display: none;
}

.signal-card.is-done .signal-check {
    display: flex;
    animation: checkPop 0.45s cubic-bezier(0.17, 0.89, 0.32, 1.49) both;
}

.signal-card.is-done .signal-check svg {
    animation: signalDraw 0.5s 0.15s ease-out forwards;
}

.signal-card.is-done .signal-title {
    color: #00ffaa;
}

@keyframes signalDraw {
    to { stroke-dashoffset: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .signal-card.is-done .signal-check, .signal-card.is-done .signal-check svg { animation: none; stroke-dashoffset: 0; }
}
