/* ======================================
   CINEMATIC DEMO - GHOST WORKFORCE
   ====================================== */

/* Global Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #050508;
    font-family: 'Inter', sans-serif;
    color: #ffffff;
    cursor: default;
}

/* ======================================
   FILM OVERLAYS (PERMANENT)
   ====================================== */

/* Film Grain Canvas — barely visible */
#grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1000;
    opacity: 0.015;
    pointer-events: none;
    mix-blend-mode: overlay;
}

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

/* Scanlines — very subtle, almost invisible */
#scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 3px,
        rgba(255, 255, 255, 0.008) 3px,
        rgba(255, 255, 255, 0.008) 4px
    );
}

/* Vignette */
#vignette {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 998;
    pointer-events: none;
    background: radial-gradient(
        ellipse at center,
        transparent 0%,
        transparent 30%,
        rgba(0, 0, 0, 0.4) 70%,
        rgba(0, 0, 0, 0.8) 100%
    );
}

/* Ambient Glow Orbs */
#ambient-orbs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
}

/* Platform Icons Layer */
#platform-icons {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 3;
    pointer-events: none;
}

.platform-icon {
    position: absolute;
    width: 40px;
    height: 40px;
    opacity: 0.15;
}

.platform-icon svg {
    width: 100%;
    height: 100%;
    stroke: #94a3b8;
    fill: none;
    stroke-width: 1.5;
}

.platform-icon.glow {
    opacity: 0.8;
    filter: drop-shadow(0 0 10px currentColor);
    transition: all 0.3s ease;
}

.glow-orb {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(150px);
}

.gold-orb {
    background: #C9A84C;
    opacity: 0.05;
    top: 10%;
    right: 10%;
}

.gold-light-orb {
    background: #DDB95E;
    opacity: 0.04;
    bottom: 10%;
    left: 10%;
}

/* ======================================
   SCENE CONTAINER
   ====================================== */

#scene-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10;
    /* NO FLEX — all children use absolute positioning to prevent reflow jumps */
}

/* ======================================
   TYPOGRAPHY CLASSES
   ====================================== */

.text-main {
    font-family: 'Inter', sans-serif;
    font-weight: 200;
    text-transform: uppercase;
    letter-spacing: 0.5em;
    font-size: 7vw;
    line-height: 1.2;
    text-align: center;
    filter: blur(20px);
    opacity: 0;
    /* Chromatic Aberration — very subtle */
    text-shadow:
        -1px 0 rgba(255, 0, 0, 0.06),
        1px 0 rgba(201, 168, 76, 0.06);
}

.text-secondary {
    font-family: 'Inter', sans-serif;
    font-weight: 200;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 1.5vw;
    line-height: 1.4;
    text-align: center;
    filter: blur(10px);
    opacity: 0;
    color: #94a3b8;
    text-shadow:
        -1px 0 rgba(255, 0, 0, 0.08),
        1px 0 rgba(201, 168, 76, 0.08);
}

.text-small {
    font-family: 'Inter', sans-serif;
    font-weight: 200;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    font-size: 1vw;
    line-height: 1.4;
    text-align: center;
    filter: blur(10px);
    opacity: 0;
    color: #94a3b8;
}

.text-number {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 200;
    font-size: 12vw;
    line-height: 1;
    text-align: center;
    filter: blur(15px);
    opacity: 0;
    /* Chromatic aberration — subtle */
    text-shadow:
        -1px 0 rgba(255, 0, 0, 0.08),
        1px 0 rgba(201, 168, 76, 0.08);
}

.text-brand {
    font-family: 'Inter', sans-serif;
    font-weight: 200;
    text-transform: uppercase;
    letter-spacing: 0.6em;
    font-size: 8vw;
    line-height: 1.1;
    text-align: center;
    filter: blur(25px);
    opacity: 0;
    text-shadow:
        -2px 0 rgba(255, 0, 0, 0.12),
        2px 0 rgba(201, 168, 76, 0.12);
}

.text-brand.workforce {
    font-weight: 300;
    letter-spacing: 0.3em;
    background: linear-gradient(135deg, #C9A84C 0%, #DDB95E 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ======================================
   COLOR VARIATIONS
   ====================================== */

.color-white {
    color: #ffffff;
}

.color-red {
    color: #ef4444;
}

.color-gold {
    color: #C9A84C;
}

.color-gold-light {
    color: #DDB95E;
}

.color-green {
    color: #4CAF50;
}

.color-gray {
    color: #94a3b8;
}

/* ======================================
   SPECIAL ELEMENTS
   ====================================== */

.horizon-line {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%);
    height: 1px;
    width: 0;
    opacity: 0;
    background: linear-gradient(90deg,
        transparent 0%,
        currentColor 20%,
        currentColor 80%,
        transparent 100%
    );
}

.light-dots {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    opacity: 0;
    background: currentColor;
    box-shadow: 0 0 20px currentColor;
}

.typewriter-cursor {
    display: inline-block;
    width: 2px;
    height: 1.2em;
    background: currentColor;
    margin-left: 2px;
    opacity: 1;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.underline-glow {
    position: absolute;
    bottom: -4px;
    left: 0;
    height: 2px;
    width: 0;
    background: linear-gradient(90deg,
        transparent 0%,
        currentColor 20%,
        currentColor 80%,
        transparent 100%
    );
    box-shadow: 0 0 10px currentColor;
}

/* ======================================
   ENHANCED VISUAL ELEMENTS
   ====================================== */

/* Pulse Ring */
.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    border: 1px solid #C9A84C;
    border-radius: 50%;
    opacity: 0.1;
}

/* Floating Money */
.floating-money {
    position: absolute;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 200;
    font-size: 0.8vw;
    color: #94a3b8;
    opacity: 0;
    pointer-events: none;
}

/* Concentric Rings */
.concentric-ring {
    position: absolute;
    border: 1px solid #C9A84C;
    border-radius: 50%;
    opacity: 0.1;
    transform: translate(-50%, -50%);
}

/* Connection Lines */
.connection-line {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        #C9A84C 50%,
        transparent 100%
    );
    opacity: 0.2;
    transform-origin: left center;
}

/* Data Points */
.data-point {
    position: absolute;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: #C9A84C;
    opacity: 0.6;
}

/* Scanning Line */
.scanning-line {
    position: absolute;
    width: 100vw;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        #C9A84C 50%,
        transparent 100%
    );
    opacity: 0.1;
    left: 0;
}

/* Filter Indicators */
.filter-indicator {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ef4444;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    box-shadow: 0 0 10px #ef4444;
}

/* Progress Bar Fill */
.progress-bar-fill {
    position: absolute;
    height: 4px;
    background: linear-gradient(90deg, transparent, #DDB95E, transparent);
    border-radius: 2px;
    width: 0;
}

/* Ripple Effect */
.ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 2px solid #C9A84C;
    border-radius: 50%;
    opacity: 0;
}

.channel-icon-pulse {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    opacity: 0;
}

/* Notification Popups */
.notification {
    position: absolute;
    font-family: 'Inter', sans-serif;
    font-weight: 200;
    font-size: 0.7vw;
    color: #94a3b8;
    background: rgba(201, 168, 76, 0.05);
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid rgba(201, 168, 76, 0.1);
    opacity: 0;
    pointer-events: none;
}

/* Notification Icon */
.notif-icon {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    margin-right: 6px;
    color: #C9A84C;
}

.notif-icon svg {
    display: inline-block;
    vertical-align: middle;
}

/* Energy Lines */
.energy-line {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        #C9A84C 50%,
        transparent 100%
    );
    opacity: 0.3;
    transform-origin: center;
}

/* Plus Symbols */
.plus-symbol {
    position: absolute;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 200;
    font-size: 1.2vw;
    color: #C9A84C;
    opacity: 0;
    pointer-events: none;
}

/* Light Sweep */
.light-sweep {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100px;
    height: 100%;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 100%
    );
    transform: skewX(-20deg);
}

/* ======================================
   NEW VISUAL ELEMENTS (V5)
   ====================================== */

/* Line Graph */
.line-graph {
    position: absolute;
    top: 15%;
    right: 10%;
    width: 200px;
    height: 120px;
    opacity: 0.1;
}

.line-graph svg {
    width: 100%;
    height: 100%;
}

.graph-line {
    stroke: #ef4444;
    stroke-width: 2;
    fill: none;
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
}

.graph-axis {
    stroke: #94a3b8;
    stroke-width: 1;
    opacity: 0.3;
}

.graph-label {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    fill: #94a3b8;
    opacity: 0.6;
}

/* World Map */
.world-map {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    height: 30vw;
    opacity: 0.05;
    z-index: -1;
}

.world-map svg {
    width: 100%;
    height: 100%;
}

.continent-path {
    stroke: #94a3b8;
    stroke-width: 1;
    fill: none;
    opacity: 0.3;
}

/* Circular Gauge — centered between number and qualified text */
.circular-gauge {
    position: absolute;
    top: 49%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
}

.circular-gauge svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.gauge-track {
    stroke: rgba(221, 185, 94, 0.2);
    stroke-width: 8;
    fill: none;
}

.gauge-fill {
    stroke: #DDB95E;
    stroke-width: 8;
    fill: none;
    stroke-linecap: round;
    stroke-dasharray: 251.2;
    stroke-dashoffset: 251.2;
}

/* Status Indicators */
.status-indicators {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #94a3b8;
    opacity: 0.3;
    transition: all 0.3s ease;
}

.status-dot.active {
    background: #C9A84C;
    opacity: 1;
    box-shadow: 0 0 15px #C9A84C;
}

/* Bar Chart */
.bar-chart {
    position: absolute;
    bottom: 20%;
    left: 15%;
    width: 250px;
    height: 150px;
    opacity: 0.1;
}

.chart-bar {
    fill: #C9A84C;
    opacity: 0.6;
}

.chart-axis {
    stroke: #94a3b8;
    stroke-width: 1;
    opacity: 0.3;
}

.chart-label {
    font-family: 'Inter', sans-serif;
    font-size: 9px;
    fill: #94a3b8;
    opacity: 0.6;
}

/* ======================================
   PROGRESS BAR
   ====================================== */

#progress-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 99999;
    background: rgba(255, 255, 255, 0.08);
    pointer-events: none;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

#progress-fill {
    height: 100%;
    width: 0%;
    min-width: 1px;
    background: linear-gradient(90deg, #C9A84C, #DDB95E, #C9A84C);
    background-size: 200% 100%;
    animation: shimmer 2s linear infinite;
    box-shadow: 0 0 15px rgba(201, 168, 76, 0.6), 0 0 30px rgba(221, 185, 94, 0.3);
    transition: width 0.15s linear;
    display: block !important;
    visibility: visible !important;
}

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

/* ======================================
   RESPONSIVE ADJUSTMENTS
   ====================================== */

@media (max-width: 768px) {
    .text-main {
        font-size: 9vw;
        letter-spacing: 0.08em;
    }

    .text-number {
        font-size: 18vw;
    }

    .text-brand {
        font-size: 12vw;
        letter-spacing: 0.12em;
    }

    .text-secondary {
        font-size: 5vw;
        letter-spacing: 0.08em;
        font-weight: 300;
    }

    .text-small {
        font-size: 4.5vw;
        letter-spacing: 0.06em;
        font-weight: 300;
    }

    .notification {
        font-size: 3.8vw;
        padding: 8px 14px;
        font-weight: 300;
    }

    .notif-icon svg {
        width: 14px;
        height: 14px;
    }

    .status-dot {
        width: 10px;
        height: 10px;
    }

    .floating-money {
        font-size: 2.5vw;
    }

    .plus-symbol {
        font-size: 3.5vw;
    }

    .circular-gauge {
        width: 70px;
        height: 70px;
        top: 36% !important;
    }

    .bar-chart {
        transform: scale(0.8);
    }

    .channel-icon-pulse {
        width: 40px;
        height: 40px;
    }

    .channel-icon-pulse svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .text-main {
        font-size: 9vw;
        letter-spacing: 0.05em;
    }

    .text-number {
        font-size: 18vw;
    }

    .text-brand {
        font-size: 12vw;
        letter-spacing: 0.06em;
    }

    .text-brand.workforce {
        letter-spacing: 0.10em;
    }

    .text-secondary {
        font-size: 5vw;
        letter-spacing: 0.06em;
        font-weight: 300;
    }

    .text-small {
        font-size: 4.2vw;
        letter-spacing: 0.04em;
        font-weight: 300;
    }

    .notification {
        font-size: 2.8vw;
        padding: 5px 10px;
        max-width: 85vw;
        font-weight: 300;
    }

    .notif-icon svg {
        width: 12px;
        height: 12px;
    }

    .floating-money {
        font-size: 3vw;
    }

    .plus-symbol {
        font-size: 4.5vw;
    }

    .gauge-container {
        transform: scale(0.8);
    }

    .circular-gauge {
        width: 60px;
        height: 60px;
        top: 35% !important;
    }

    .status-indicators {
        top: 55% !important;
    }

    .channel-icon-pulse {
        width: 32px;
        height: 32px;
    }

    .channel-icon-pulse svg {
        width: 16px;
        height: 16px;
    }

    .bar-chart {
        transform: scale(0.6);
        bottom: 25% !important;
    }

    .status-indicators {
        top: 57% !important;
        gap: 10px;
    }

    .notification {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* ======================================
   UTILITY CLASSES
   ====================================== */

.absolute-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.text-center {
    text-align: center;
}

.full-width {
    width: 100%;
}

.no-select {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* CTA Button — gradient pill with glow (matches landing page) */
.cta-button {
    position: absolute;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    letter-spacing: 0.05em;
    font-size: 1.1vw;
    color: #ffffff;
    background: linear-gradient(135deg, #C9A84C 0%, #DDB95E 100%);
    border: none;
    border-radius: 50px;
    padding: 18px 48px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    pointer-events: auto;
    z-index: 50;
    box-shadow: 0 0 30px rgba(201, 168, 76, 0.4), 0 0 60px rgba(221, 185, 94, 0.2);
    transition: all 0.3s ease;
}

.cta-button:hover {
    box-shadow: 0 0 60px rgba(201, 168, 76, 0.8), 0 0 120px rgba(201, 168, 76, 0.4);
    transform: translateY(-2px) scale(1.05);
    color: #ffffff;
}

.cta-button .arrow {
    display: inline-block;
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.cta-button:hover .arrow {
    transform: translateX(4px);
}

@media (max-width: 768px) {
    .cta-button {
        font-size: 3.5vw;
        padding: 14px 32px;
    }
}

@media (max-width: 480px) {
    .cta-button {
        font-size: 4.5vw;
        padding: 12px 28px;
        border-radius: 40px;
    }
}

/* ======================================
   CINEMATIC EFFECTS
   ====================================== */

/* Chromatic Aberration on text during key moments */
.chromatic {
    text-shadow:
        -2px 0 rgba(201, 168, 76, 0.5),
        2px 0 rgba(221, 185, 94, 0.5);
    animation: chromatic-pulse 0.1s ease-out;
}

@keyframes chromatic-pulse {
    0% { text-shadow: -4px 0 rgba(201, 168, 76, 0.7), 4px 0 rgba(221, 185, 94, 0.7); }
    100% { text-shadow: 0 0 transparent, 0 0 transparent; }
}

/* Screen shake class */
.screen-shake {
    animation: shake 0.3s ease-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10% { transform: translateX(-8px) translateY(2px); }
    20% { transform: translateX(6px) translateY(-3px); }
    30% { transform: translateX(-4px) translateY(1px); }
    40% { transform: translateX(3px); }
    50% { transform: translateX(-2px); }
}

/* Glitch line for scene transitions */
.glitch-line {
    position: fixed;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(201, 168, 76, 0.8);
    z-index: 999;
    pointer-events: none;
    opacity: 0;
}

/* Hide scrollbars */
::-webkit-scrollbar {
    display: none;
}

/* Custom cursor for debug (remove in production) */
body.debug {
    cursor: crosshair;
}

/* Scene positioning helpers */
.scene {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.scene-content {
    max-width: 90vw;
    text-align: center;
}