:root {
    --bg-dark: #050505;
    --text-light: #f4f4f4;
    --neon-cyan: #00ffff;
    --neon-magenta: #ff00ff;
    --neon-volt: #ccff00;
    --neon-red: #e62e2e;
    --neon-teal: #00ffcc;
    --neon-orange: #ffaa00;
    --neon-purple: #9933ff;
    --neon-ocean: #001133;
    
    --font-display: 'Bebas Neue', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; cursor: none; }
body { background: var(--bg-dark); color: var(--text-light); font-family: var(--font-body); overflow-x: hidden; }
.mono { font-family: var(--font-mono); }

.noise { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 9000; opacity: 0.08; background: url('https://grainy-gradients.vercel.app/noise.svg'); }
.cursor-dot { position: fixed; width: 4px; height: 4px; background: #fff; border-radius: 50%; transform: translate(-50%, -50%); mix-blend-mode: difference; pointer-events: none; z-index: 9999; }
.cursor-wrapper { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9998; }
.cursor-outline { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.3); transform: translate(-50%, -50%); transition: transform 0.1s; mix-blend-mode: difference; }
body.hovering .cursor-outline { transform: translate(-50%, -50%) scale(1.5); border-color: var(--neon-cyan); }

.preloader-v3 {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: var(--bg-dark); z-index: 10000;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
    will-change: clip-path;
}

.slanted-loader {
    width: 120px; height: 120px;
    background: var(--neon-cyan);
    margin-bottom: 30px;
    animation: frantic-polygon 0.3s infinite alternate;
}

.loading-text { font-size: 1.2rem; color: #fff; letter-spacing: 2px; }

@keyframes frantic-polygon {
    0% { clip-path: polygon(10% 0%, 90% 10%, 100% 90%, 0% 100%); background: var(--neon-cyan); transform: scale(1) rotate(0deg); }
    25% { clip-path: polygon(0% 30%, 100% 0%, 80% 100%, 20% 100%); background: var(--neon-magenta); transform: scale(1.1) rotate(25deg); }
    50% { clip-path: polygon(40% 0%, 100% 40%, 60% 100%, 0% 60%); background: var(--neon-volt); transform: scale(0.8) rotate(-25deg); }
    75% { clip-path: polygon(0% 10%, 100% 30%, 80% 90%, 10% 80%); background: var(--neon-red); transform: scale(1.3) rotate(60deg); }
    100% { clip-path: polygon(20% 0%, 100% 20%, 90% 100%, 0% 80%); background: var(--neon-teal); transform: scale(1) rotate(90deg); }
}

.v3-nav { 
    position: fixed; top: 0; width: 100%; padding: 30px 50px; 
    display: flex; justify-content: space-between; align-items: center; 
    z-index: 1000; opacity: 0;
    mix-blend-mode: difference;
    color: #fff;
    pointer-events: none;
}
.v3-nav * { pointer-events: auto; }
.logo { font-size: 1.5rem; text-decoration: none; color: #fff; font-weight: 700; }
.neon-dot { color: #fff; }
.switch-nav { border: 1px solid #fff; padding: 10px 20px; border-radius: 30px; text-decoration: none; color: #fff; font-size: 0.8rem; transition: all 0.3s; background: transparent; }
.switch-nav:hover { background: #fff; color: #000; }

.viewport-3d {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background-color: var(--bg-dark); 
}

.scene-3d {
    position: absolute;
    width: 100%;
    height: 100%;
    will-change: filter; 
}

.layer {
    position: absolute;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    display: flex; justify-content: center; align-items: center;
    visibility: hidden;
    opacity: 0;
    will-change: opacity, visibility; 
}

.layer-0 { visibility: visible; opacity: 1; }

.slant-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -1;
    will-change: clip-path;
    background-size: cover;
}

.bg-cyan { background: var(--neon-cyan); }
.bg-magenta { background: var(--neon-magenta); }
.bg-volt { background: var(--neon-volt); }
.bg-red { background: var(--neon-red); }
.bg-teal { background: var(--neon-teal); }
.bg-orange { background: var(--neon-orange); }
.bg-purple { background: var(--neon-purple); }
.bg-ocean { background: var(--neon-ocean); }

.content-block { position: relative; width: 90%; max-width: 1200px; padding: 40px; z-index: 2; will-change: transform, opacity, filter; }
.right-align { text-align: right; margin-left: auto; }
.left-align { text-align: left; margin-right: auto; }
.center-align { text-align: center; margin: 0 auto; }

.dark-text { color: #050505; }
.dark-text .fact-number { 
    background: #050505; 
    color: #fff; 
    padding: 8px 16px; 
    display: inline-block; 
    transform: skewX(-15deg);
}
.dark-text .fact-title { color: #050505; text-shadow: 3px 3px 0px rgba(255,255,255,0.6); }
.dark-text .fact-desc { 
    color: #050505; 
    font-weight: 500; 
    background: transparent; 
    padding: 0; 
    border-left: none;
    box-shadow: none;
    font-size: 1.4rem;
}

.dark-text .fact-desc::before {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #050505;
    margin-bottom: 20px;
}

.light-text .fact-desc { 
    color: rgba(255, 255, 255, 0.9); 
    font-weight: 400; 
    background: transparent; 
    padding: 0; 
    border-left: none;
    box-shadow: none;
    backdrop-filter: none;
    font-size: 1.4rem;
}

.light-text .fact-desc::before {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--neon-cyan);
    margin-bottom: 20px;
}

.light-text { color: #fff; }
.light-text .fact-number { 
    background: #fff; 
    color: #050505; 
    padding: 8px 16px; 
    display: inline-block; 
    transform: skewX(-15deg);
}
.light-text .fact-title { color: #fff; text-shadow: 3px 3px 0px rgba(0,0,0,0.4); }

.massive-title { font-family: var(--font-display); font-size: clamp(6rem, 18vw, 18rem); line-height: 0.85; margin: 0; text-transform: uppercase; }
.outline { color: transparent; -webkit-text-stroke: 2px rgba(255,255,255,0.4); }
.subtitle { color: #fff; margin-top: 20px; font-size: 1rem; letter-spacing: 4px; pointer-events: none; }

.fact-number { font-size: 1.5rem; margin-bottom: 20px; letter-spacing: 6px; font-weight: 700; }
.fact-title { font-family: var(--font-display); font-size: clamp(5rem, 10vw, 10rem); line-height: 0.9; margin-bottom: 40px; }
.fact-desc { font-size: 1.5rem; line-height: 1.6; max-width: 500px; display: inline-block; text-align: left; }

.char { display: inline-block; will-change: transform, opacity; }