/* ========================================
   Cloudy God Tier Design System - Ultimate Expansion
   No Limits. Full Power. Waitlist Terminal.
   ======================================== */

:root {
    --bg-deep: #000000;
    --bg-surface: #050508;
    --bg-glass: rgba(5, 5, 8, 0.4);
    
    --neon-blue: #00f0ff;
    --neon-purple: #8a2be2;
    --neon-pink: #ff007f;
    --neon-red: #ff003c;
    --neon-green: #00ff41; /* For Terminal */
    
    --text-main: #ffffff;
    --text-muted: #666677;
    
    --border-light: rgba(255, 255, 255, 0.05);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --gradient-epic: linear-gradient(135deg, var(--neon-blue), var(--neon-purple), var(--neon-pink));
}

* { margin: 0; padding: 0; box-sizing: border-box; cursor: none !important; }

body { background-color: var(--bg-deep); color: var(--text-main); font-family: var(--font-body); overflow-x: hidden; line-height: 1.6; }

/* Hide Scrollbar Globally */
::-webkit-scrollbar { display: none; }
html { -ms-overflow-style: none; scrollbar-width: none; }

h1, h2, h3, h4, .giant-text { font-family: var(--font-heading); font-weight: 900; letter-spacing: -0.02em; }
.text-gradient { background: var(--gradient-epic); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.text-center { text-align: center; }

/* --- Terminal Waitlist --- */
#waitlist-terminal { position: fixed; inset: 0; background: rgba(0, 5, 10, 0.95); z-index: 200000; display: flex; flex-direction: column; padding: 4rem; backdrop-filter: blur(20px); font-family: var(--font-mono); color: var(--neon-blue); }
#terminal-close { position: absolute; top: 2rem; right: 2rem; font-size: 2rem; font-weight: bold; cursor: pointer; z-index: 50; }
#terminal-close:hover { color: white; text-shadow: 0 0 10px white; }
.crt-overlay { position: absolute; inset: 0; background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06)); background-size: 100% 4px, 6px 100%; pointer-events: none; z-index: 10; animation: crtFlicker 0.15s infinite; }
@keyframes crtFlicker { 0% { opacity: 0.95; } 100% { opacity: 1; } }
.terminal-content { position: relative; z-index: 20; max-width: 800px; margin: 0 auto; width: 100%; height: 100%; display: flex; flex-direction: column; text-shadow: 0 0 10px var(--neon-blue); }
.terminal-header { border-bottom: 1px solid var(--neon-blue); padding-bottom: 1rem; margin-bottom: 2rem; font-weight: bold; letter-spacing: 2px; }
#terminal-output { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1rem; font-size: 1.2rem; white-space: pre-wrap; }
.terminal-line { animation: terminalLineFade 0.1s ease-out; }
@keyframes terminalLineFade { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: translateX(0); } }
.terminal-input-line { display: flex; align-items: center; gap: 1rem; font-size: 1.5rem; margin-top: 2rem; }
.terminal-input-line input { background: transparent; border: none; color: white; font-family: var(--font-mono); font-size: 1.5rem; outline: none; flex: 1; text-transform: uppercase; text-shadow: 0 0 10px white; }
.cursor-block { display: inline-block; width: 15px; height: 1.2em; background: var(--neon-blue); animation: blink 1s step-end infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* HUD */
#live-stats-hud { position: fixed; bottom: 30px; left: 30px; z-index: 999; display: flex; flex-direction: column; gap: 15px; pointer-events: none; }
.stat-item { display: flex; flex-direction: column; background: rgba(0,0,0,0.6); padding: 10px 20px; border-left: 3px solid var(--neon-blue); backdrop-filter: blur(5px); }
.stat-label { font-family: var(--font-mono); font-size: 0.7rem; color: var(--neon-blue); letter-spacing: 2px; }
.stat-value { font-family: var(--font-mono); font-size: 1.5rem; color: white; font-weight: 700; text-shadow: 0 0 10px var(--neon-blue); }

/* Enter Gate & Cursor */
#enter-gate { position: fixed; inset: 0; background: #000; z-index: 100000; display: flex; justify-content: center; align-items: center; text-align: center; transition: opacity 1s ease-out; }
.enter-content p { color: var(--neon-red); font-weight: bold; margin: 2rem 0; letter-spacing: 1px; }

.cursor-dot { width: 6px; height: 6px; background: #fff; border-radius: 50%; position: fixed; pointer-events: none; z-index: 9999; transform: translate(-50%, -50%); mix-blend-mode: difference; }
.cursor-glow { width: 50px; height: 50px; border: 1px solid rgba(0, 240, 255, 0.5); border-radius: 50%; position: fixed; pointer-events: none; z-index: 9998; transform: translate(-50%, -50%); transition: width 0.2s, height 0.2s, background 0.2s, border 0.2s; mix-blend-mode: screen; }
.cursor-hover .cursor-glow { width: 100px; height: 100px; background: rgba(0, 240, 255, 0.2); border-color: transparent; filter: blur(2px); }

/* Three.js Canvas */
#canvas-container { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -1; pointer-events: none; }
.magnetic { display: inline-block; }

/* Glitch Text Effect */
.glitch-text { position: relative; }
.glitch-text::before, .glitch-text::after { content: attr(data-text); position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0.8; }
.glitch-text::before { color: var(--neon-blue); z-index: -1; animation: glitch-anim-1 2s infinite linear alternate-reverse; }
.glitch-text::after { color: var(--neon-pink); z-index: -2; animation: glitch-anim-2 3s infinite linear alternate-reverse; }
@keyframes glitch-anim-1 { 0% { clip-path: inset(20% 0 80% 0); transform: translate(-2px, 1px); } 20% { clip-path: inset(60% 0 10% 0); transform: translate(2px, -1px); } 40% { clip-path: inset(40% 0 50% 0); transform: translate(-2px, 2px); } 60% { clip-path: inset(80% 0 5% 0); transform: translate(2px, -2px); } 80% { clip-path: inset(10% 0 70% 0); transform: translate(-1px, 1px); } 100% { clip-path: inset(30% 0 50% 0); transform: translate(1px, -1px); } }
@keyframes glitch-anim-2 { 0% { clip-path: inset(10% 0 60% 0); transform: translate(2px, -1px); } 20% { clip-path: inset(30% 0 20% 0); transform: translate(-2px, 1px); } 40% { clip-path: inset(70% 0 10% 0); transform: translate(2px, 2px); } 60% { clip-path: inset(20% 0 50% 0); transform: translate(-2px, -2px); } 80% { clip-path: inset(50% 0 30% 0); transform: translate(1px, 1px); } 100% { clip-path: inset(5% 0 80% 0); transform: translate(-1px, -1px); } }
.glitch-hover:hover { animation: text-shake 0.2s infinite; }
@keyframes text-shake { 0% { transform: translate(2px, 1px) rotate(0deg); } 10% { transform: translate(-1px, -2px) rotate(-1deg); } 20% { transform: translate(-3px, 0px) rotate(1deg); } 30% { transform: translate(0px, 2px) rotate(0deg); } 40% { transform: translate(1px, -1px) rotate(1deg); } 50% { transform: translate(-1px, 2px) rotate(-1deg); } }

/* Layout */
.glass-nav { position: fixed; top: 0; width: 100%; z-index: 1000; padding: 1.5rem 0; background: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent); pointer-events: none; }
.nav-content { max-width: 1400px; margin: 0 auto; padding: 0 3rem; display: flex; justify-content: space-between; align-items: center; pointer-events: auto; }
.logo { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; font-family: var(--font-heading); font-weight: 900; font-size: 1.5rem; color: white; }
.logo-icon { color: var(--neon-blue); text-shadow: 0 0 20px var(--neon-blue); }
.nav-links { display: flex; gap: 3rem; align-items: center; }
.nav-links a { color: var(--text-main); text-decoration: none; font-weight: 600; font-size: 1.1rem; }
.btn-neon { padding: 0.8rem 2rem; border-radius: 100px; border: 1px solid rgba(255,255,255,0.2) !important; background: rgba(0,0,0,0.5); backdrop-filter: blur(10px); }

/* Hero */
.hero { min-height: 100vh; display: flex; align-items: center; max-width: 1400px; margin: 0 auto; padding: 8rem 3rem 2rem; }
.hero-content { flex: 1.2; z-index: 10; }
.badge-glow { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1.2rem; border-radius: 100px; background: rgba(0, 240, 255, 0.1); border: 1px solid var(--neon-blue); font-size: 0.9rem; font-weight: 700; letter-spacing: 2px; margin-bottom: 2.5rem; color: var(--neon-blue); box-shadow: 0 0 20px rgba(0,240,255,0.2); }
.pulse-dot { width: 10px; height: 10px; background: var(--neon-blue); border-radius: 50%; box-shadow: 0 0 20px var(--neon-blue); animation: pulse 1s infinite; }
.hero-title { font-size: clamp(5rem, 10vw, 12rem); line-height: 0.85; margin-bottom: 2rem; text-transform: uppercase; text-shadow: 0 0 40px rgba(0,240,255,0.3); }
.word, .char { display: inline-block; overflow: hidden; }
.hero-subtitle { font-size: 1.4rem; color: var(--text-main); max-width: 550px; margin-bottom: 4rem; line-height: 1.6; text-shadow: 0 2px 10px rgba(0,0,0,0.8); }
.btn-primary { display: inline-flex; align-items: center; justify-content: center; width: 220px; height: 220px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.2); color: var(--text-main); text-decoration: none; font-family: var(--font-heading); font-weight: 900; font-size: 1.2rem; border-radius: 50%; backdrop-filter: blur(10px); box-shadow: inset 0 0 40px rgba(0,0,0,0.5); transition: background 0.3s, border-color 0.3s; }
.btn-primary:hover { background: rgba(0,240,255,0.2); border-color: var(--neon-blue); box-shadow: 0 0 60px rgba(0,240,255,0.4), inset 0 0 20px rgba(0,240,255,0.4); text-shadow: 0 0 10px #fff; }
.hero-visual { flex: 0.8; display: flex; justify-content: center; position: relative; z-index: 5; }
.mockup-container { width: 450px; }
.app-mockup { width: 100%; border-radius: 48px; box-shadow: 0 0 100px rgba(138,43,226,0.4), 0 0 0 2px rgba(255,255,255,0.1); }
.float-anim { animation: floating 6s ease-in-out infinite; }
@keyframes floating { 0% { transform: translateY(0px) rotate(0deg); } 50% { transform: translateY(-30px) rotate(2deg); } 100% { transform: translateY(0px) rotate(0deg); } }

/* Manifesto */
.manifesto-section { padding: 15rem 0; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; position: relative; }
.manifesto-block { width: 100%; text-align: center; margin-bottom: 5rem; }
.kinetic-text { font-size: clamp(4rem, 10vw, 15rem); line-height: 0.85; white-space: nowrap; text-transform: uppercase; mix-blend-mode: exclusion; }
.kinetic-text.outline { color: transparent; -webkit-text-stroke: 2px var(--text-main); opacity: 0.6; }
.kinetic-text.solid { color: var(--text-main); text-shadow: 0 0 40px rgba(255,255,255,0.2); }
.philosophy-sub { margin-top: 10rem; font-size: 2.5rem; max-width: 900px; text-align: center; color: var(--text-main); text-shadow: 0 0 20px rgba(0,0,0,1); }

/* Horizontal Simulator & Features */
.horizontal-scroll-section { width: 100%; height: 100vh; overflow: hidden; position: relative; }
.horizontal-scroll-container { display: flex; width: 400vw; height: 100%; }
.horizontal-panel { width: 100vw; height: 100%; display: flex; align-items: center; justify-content: center; padding: 0 5vw; }
.intro-panel { flex-direction: column; text-align: left; align-items: flex-start; }
.intro-panel .giant-text { font-size: clamp(8rem, 15vw, 20rem); line-height: 0.8; }
.panel-content { display: flex; align-items: center; gap: 8rem; width: 100%; max-width: 1600px; }
.panel-text { flex: 1; }
.panel-text h3 { font-size: 6rem; margin-bottom: 1.5rem; text-shadow: 0 0 30px rgba(0,240,255,0.5); }
.panel-text p { font-size: 1.8rem; color: rgba(255,255,255,0.8); }
.panel-visual { flex: 1; display: flex; justify-content: center; align-items: center; }
.bento-img { width: 100%; max-width: 500px; border-radius: 24px; box-shadow: 0 40px 80px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.1); filter: drop-shadow(0 0 30px rgba(138,43,226,0.3)); }

/* Interactive Simulator Maps */
.simulator-map { position: relative; width: 100%; max-width: 450px; border-radius: 40px; overflow: hidden; box-shadow: 0 0 50px rgba(0,240,255,0.2), 0 0 0 2px rgba(255,255,255,0.1); }
.simulator-img { width: 100%; display: block; opacity: 0.8; transition: opacity 0.3s; }
.simulator-map:hover .simulator-img { opacity: 1; }
.simulator-overlay-text { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: rgba(0,0,0,0.8); padding: 10px 20px; border: 1px solid var(--neon-blue); border-radius: 100px; color: var(--neon-blue); font-family: var(--font-mono); font-size: 1rem; pointer-events: none; z-index: 10; animation: pulse 2s infinite; }
.sim-flare { position: absolute; width: 20px; height: 20px; background: var(--neon-blue); border-radius: 50%; transform: translate(-50%, -50%); pointer-events: none; z-index: 5; box-shadow: 0 0 20px var(--neon-blue); }
.sim-flare::after { content: ''; position: absolute; inset: -20px; border-radius: 50%; border: 2px solid var(--neon-blue); animation: flare-shockwave 1.5s ease-out forwards; }
@keyframes flare-shockwave { 0% { transform: scale(0.5); opacity: 1; } 100% { transform: scale(10); opacity: 0; } }

/* Cinematic Cult */
.cinematic-cult { padding: 10rem 2rem; }
.cult-grid { display: flex; flex-direction: column; gap: 4rem; max-width: 1200px; margin: 5rem auto 0; }
.cult-card { position: relative; height: 300px; border-radius: 30px; overflow: hidden; border: 1px solid rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; text-align: center; background: #000; }
.cult-bg { position: absolute; inset: 0; opacity: 0; transition: opacity 0.5s; background: linear-gradient(45deg, rgba(138,43,226,0.4), rgba(0,240,255,0.4)); filter: saturate(2) contrast(1.5); }
.cult-card:hover .cult-bg { opacity: 1; animation: glitch-anim-1 0.2s infinite; }
.cult-content { position: relative; z-index: 2; pointer-events: none; }
.cult-content h3 { font-size: 4rem; color: #fff; text-shadow: 0 5px 20px rgba(0,0,0,0.8); margin-bottom: 1rem; }
.cult-content p { font-size: 1.5rem; color: var(--neon-blue); font-family: var(--font-mono); }

/* B2B Portal */
.b2b-portal { padding: 15rem 2rem; background: #020000; border-top: 1px solid var(--neon-red); text-align: center; }
.red-glitch::before { color: var(--neon-red); }
.red-glitch::after { color: #fff; }
.b2b-subtitle { font-size: 3rem; color: var(--neon-red); margin-top: 2rem; text-shadow: 0 0 20px var(--neon-red); }
.b2b-desc { font-size: 1.8rem; color: #ccc; max-width: 800px; margin: 3rem auto 5rem; }
.b2b-btn { border-color: var(--neon-red); }
.b2b-btn:hover { background: var(--neon-red); color: #000; box-shadow: 0 0 60px rgba(255, 0, 60, 0.6); }

/* Download Section */
.download { height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.download .giant-text { font-size: clamp(8rem, 15vw, 25rem); }
.btn-massive { display: inline-block; padding: 2.5rem 6rem; background: transparent; color: white; text-decoration: none; font-family: var(--font-heading); font-size: 2.5rem; font-weight: 900; border: 2px solid var(--neon-blue); border-radius: 100px; transition: all 0.3s; text-transform: uppercase; cursor: pointer; }
.btn-massive:hover { background: var(--neon-blue); color: #000; box-shadow: 0 0 60px rgba(0, 240, 255, 0.6); }

/* Footer */
footer { padding: 5rem 3rem 2rem; border-top: 1px solid rgba(255,255,255,0.1); background: #000; }
.footer-content { display: flex; justify-content: space-between; align-items: center; max-width: 1400px; margin: 0 auto 3rem; }
.footer-content .brand { font-size: 2.5rem; font-family: var(--font-heading); font-weight: 900; }
.footer-content .links a { margin-left: 3rem; color: var(--text-muted); text-decoration: none; font-size: 1.2rem; }
.footer-bottom { text-align: center; color: var(--text-muted); }

/* ========================================
   MOBILE RESPONSIVE OVERHAUL 
   ======================================== */
@media (max-width: 768px) {
    * { cursor: auto !important; }
    a, button, .cta-waitlist, .simulator-map, #terminal-close { cursor: pointer !important; }
    .cursor-dot, .cursor-glow { display: none !important; }

    .nav-content { padding: 0 1.5rem; }
    .nav-links a:not(.cta-waitlist) { display: none; }
    .btn-neon { padding: 0.6rem 1.2rem; font-size: 0.9rem; }

    .hero { padding: 8rem 1.5rem 2rem; flex-direction: column; text-align: center; justify-content: center; }
    .hero-content { margin-bottom: 3rem; }
    .hero-title { font-size: 4rem; }
    .hero-subtitle { font-size: 1.1rem; margin: 0 auto 3rem; }
    .btn-primary { width: 160px; height: 160px; font-size: 1rem; }
    .mockup-container { width: 300px; }
    
    .manifesto-section { padding: 8rem 1rem; }
    .kinetic-text { font-size: 3rem; white-space: normal; line-height: 1.1; }
    .manifesto-block { margin-bottom: 3rem; }
    .philosophy-sub { margin-top: 5rem; font-size: 1.5rem; }

    .horizontal-scroll-container { width: auto; flex-direction: column; height: auto; display: block; }
    .horizontal-scroll-section { height: auto; overflow: visible; }
    .horizontal-panel { width: 100vw; height: auto; padding: 4rem 1.5rem; text-align: center; }
    .panel-content { flex-direction: column; gap: 3rem; }
    .panel-text h3 { font-size: 3rem; }
    .panel-text p { font-size: 1.2rem; }
    .intro-panel { align-items: center; text-align: center; min-height: 50vh; }
    .intro-panel .giant-text { font-size: 4rem; }

    .cinematic-cult { padding: 5rem 1.5rem; }
    .cult-card { height: 250px; }
    .cult-content h3 { font-size: 2.5rem; }
    
    .b2b-portal { padding: 6rem 1.5rem; }
    .b2b-subtitle { font-size: 2rem; }
    .b2b-desc { font-size: 1.2rem; }
    .btn-massive { padding: 1.5rem 2.5rem; font-size: 1.5rem; }

    .download { padding: 0 1.5rem; }
    .download .giant-text { font-size: 5rem; }

    .footer-content { flex-direction: column; gap: 2rem; }
    .footer-content .links a { margin: 0 1rem; }

    #live-stats-hud { bottom: 15px; left: 15px; transform: scale(0.8); transform-origin: bottom left; }

    #waitlist-terminal { padding: 2rem 1rem; }
    .terminal-header { font-size: 0.9rem; }
    #terminal-output { font-size: 1rem; }
    .terminal-input-line { font-size: 1.2rem; flex-direction: column; align-items: flex-start; gap: 0.5rem; }
    .terminal-input-line input { font-size: 1.2rem; width: 100%; }
}