:root {
    --pitch-black: #050505;
    --gunmetal: #1a1c23;
    --neon-blue: rgba(0, 212, 255, 0.9);
    --emerald-green: rgba(10, 255, 153, 0.9);
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--pitch-black);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

/* FLOATING NAV */
.floating-nav {
    position: fixed;
    top: 30px;
    right: 40px;
    z-index: 100;
}
.nav-link {
    font-family: 'Inter', monospace;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-decoration: none;
    letter-spacing: 2px;
    transition: color 0.3s;
}
.nav-link:hover {
    color: var(--neon-blue);
}

/* MASTER PIN CONTAINER */
#master-container {
    width: 100vw;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

/* VIDEO LAYER */
.video-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.bg-vid {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    opacity: 0; /* JS will control opacity */
}

/* THE VEO MASK: Perfect 1080p quality, no watermark */
.veo-mask {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 250px;
    height: 80px;
    background: radial-gradient(ellipse at bottom right, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
    z-index: 5;
    pointer-events: none;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(5,5,5,0.2) 0%, var(--pitch-black) 100%), 
                rgba(0, 0, 0, 0.5);
    z-index: 2;
}

/* TEXT LAYER */
.text-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none; /* Let clicks pass through unless interactive */
}

.cinematic-section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 10vw;
    opacity: 0; /* JS controls this */
    visibility: hidden;
    pointer-events: all;
}

/* ALIGNMENTS */
.right-aligned {
    align-items: flex-end;
    text-align: right;
}
.left-aligned {
    align-items: flex-start;
    text-align: left;
}
.center-aligned {
    align-items: center;
    text-align: center;
}
.bottom-left-aligned {
    justify-content: flex-end;
    align-items: flex-start;
    text-align: left;
    padding-bottom: 10vh;
}

/* TYPOGRAPHY */
.title-large {
    font-family: 'Cinzel', serif;
    font-size: 5rem;
    font-weight: 700;
    letter-spacing: 4px;
    margin-bottom: 1rem;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}
.title-medium {
    font-family: 'Cinzel', serif;
    font-size: 3.5rem;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    color: var(--neon-blue);
    text-shadow: 0 0 20px rgba(74, 158, 255, 0.4);
}
.title-massive {
    font-family: 'Cinzel', serif;
    font-size: 10rem;
    font-weight: 800;
    color: var(--neon-blue);
    text-shadow: 0 0 50px rgba(74, 158, 255, 0.6);
}
.subtitle {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 4px;
    margin-bottom: 2rem;
}
.body-text {
    font-family: 'Inter', sans-serif;
    font-size: 1.4rem;
    line-height: 1.8;
    max-width: 800px;
}

/* The magic for SplitType */
.split-text {
    /* overflow: hidden; Removed overflow hidden to allow text shadow to bloom */
}
.word, .char {
    display: inline-block; /* Required for GSAP transforms */
}

/* UI ELEMENTS */
.action-btn {
    margin-top: 4rem;
    padding: 1rem 3rem;
    border: 1px solid var(--neon-blue);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: inset 0 0 15px rgba(0, 212, 255, 0.1);
}
.action-btn:hover {
    background: var(--neon-blue);
    color: var(--pitch-black);
    box-shadow: 0 0 30px var(--neon-blue);
}

/* DATA CALLOUT (Section 1) */
.data-callout {
    margin-top: 3rem;
    border-left: 4px solid var(--emerald-green);
    padding-left: 2rem;
    display: flex;
    flex-direction: column;
}
.data-callout .label {
    font-size: 1.2rem;
    color: var(--text-muted);
    letter-spacing: 2px;
}
.data-callout .value {
    font-size: 2rem;
    color: var(--emerald-green);
    font-weight: 600;
    margin-top: 0.5rem;
}

/* STAT GRID (Section 2) */
.stat-grid {
    display: flex;
    gap: 4rem;
    margin: 3rem 0;
}
.stat-num {
    font-family: 'Cinzel', serif;
    font-size: 4rem;
    color: var(--neon-blue);
    margin-bottom: 0.5rem;
}
.stat-label {
    font-size: 1rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* MATRIX LIST (Section 3) */
.matrix-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin-top: 2rem;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}
.matrix-item {
    padding: 1.5rem 1rem;
    border: 1px solid rgba(255,255,255,0.05);
    background: rgba(0,0,0,0.3);
    font-size: 1.1rem;
    font-family: 'Cinzel', serif;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.4s;
    text-align: center;
}
.matrix-item span {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    letter-spacing: 1px;
}
.matrix-item:hover {
    border-color: var(--emerald-green);
    color: var(--emerald-green);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(10, 255, 153, 0.1);
}

/* PERFORMANCE GRID (Section 4) */
.perf-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}
.perf-item {
    border-top: 1px solid var(--neon-blue);
    padding-top: 1rem;
}
.perf-item h4 {
    font-size: 0.9rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}
.perf-item p {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    color: var(--text-main);
}
.highlight-math {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--neon-blue);
    letter-spacing: 2px;
}

/* SCROLL INDICATOR */
.scroll-indicator {
    position: fixed;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 50;
    gap: 10px;
}
.scroll-track {
    width: 2px;
    height: 150px;
    background: rgba(255,255,255,0.1);
    position: relative;
}
.scroll-thumb {
    width: 2px;
    height: 100%;
    background: var(--neon-blue);
    position: absolute;
    top: 0;
    left: 0;
    transform: scaleY(0);
    transform-origin: top center;
    box-shadow: 0 0 10px var(--neon-blue);
}
.scroll-label {
    writing-mode: vertical-rl;
    font-size: 0.7rem;
    letter-spacing: 4px;
    color: var(--text-muted);
    margin-top: 10px;
}

/* LIVE STREAM & ORDER BOOK (Section 5) */
.order-book-grid {
    position: absolute;
    top: 25%;
    left: 0;
    width: 100%;
    height: 75%;
    display: flex;
    justify-content: space-between;
    padding: 0 5vw;
    font-family: 'Inter', monospace;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.04); /* EXTREMELY FAINT BACKGROUND COLOR NATIVELY */
    overflow: hidden;
    z-index: 10;
}
.order-book-grid .col {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 18%;
}
.live-stream-container {
    position: absolute;
    top: 25%;
    left: 0;
    width: 100%;
    height: 75%;
    z-index: 20;
}
.data-blip {
    position: absolute;
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(255,255,255,0.5);
    opacity: 0;
    white-space: nowrap;
}

/* SMOKE MODAL */
.smoke-modal {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: 100;
    display: flex; align-items: center; justify-content: center;
    pointer-events: none; opacity: 0;
}
.smoke-modal.active { pointer-events: all; opacity: 1; }
.smoke-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, rgba(10,10,10,0.95), var(--pitch-black));
    backdrop-filter: blur(10px);
    transition: opacity 1s;
}
.modal-content {
    position: relative; z-index: 101; width: 600px;
    text-align: center; transform: scale(0.9); transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.smoke-modal.active .modal-content { transform: scale(1); }
.close-btn { position: absolute; top: -50px; right: 0; font-size: 3rem; cursor: pointer; color: var(--text-muted); }
.close-btn:hover { color: var(--neon-blue); }
.cinematic-header { font-family: 'Cinzel', serif; font-size: 3rem; color: var(--neon-blue); margin-bottom: 1rem; }
.cinematic-body { font-size: 1.2rem; line-height: 1.6; color: var(--text-main); margin-bottom: 2rem; }
.chart-line { width: 100%; height: 2px; background: linear-gradient(90deg, transparent, var(--emerald-green), transparent); }
