:root {
    --bg-dark: #000000;
    --accent-blue: #00d2ff;
    --accent-glow: rgba(0, 210, 255, 0.3);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(0, 210, 255, 0.25);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --font-main: 'Outfit', sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    font-family: var(--font-main);
    color: var(--text-primary);
    overflow: hidden;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1200px; /* Enable 3D tilt */
}

/* Gaussian Background Blur */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    filter: blur(3px) saturate(1.1); /* Reduced blur to reveal stars */
    transition: filter 1s ease;
}

/* Glass Dashboard */
/* Glass Dashboard */
.glass-dashboard {
    position: relative;
    z-index: 100;
    width: 92%;
    max-width: 1250px;
    height: 750px;
    background: radial-gradient(circle at 50% 50%, rgba(0, 210, 255, 0.08) 0%, rgba(0, 0, 0, 0.25) 100%);
    backdrop-filter: blur(45px) saturate(140%);
    -webkit-backdrop-filter: blur(45px) saturate(140%);
    border: 1px solid var(--glass-border);
    border-radius: 40px;
    box-shadow: 0 0 30px var(--accent-glow), 0 40px 100px rgba(0, 0, 0, 0.6);
    padding: 60px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: dashboardEnter 1.2s cubic-bezier(0.23, 1, 0.32, 1), glowPulse 5s infinite ease-in-out;
    /* Removed 'transition: all' to prevent conflict with GSAP 3D transforms */
    transition: opacity 0.8s ease, backdrop-filter 0.8s ease, box-shadow 0.8s ease, filter 0.8s ease;
}

@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 25px var(--accent-glow), 0 40px 100px rgba(0, 0, 0, 0.6); }
    50% { box-shadow: 0 0 60px rgba(0, 210, 255, 0.5), 0 40px 100px rgba(0, 0, 0, 0.6); }
}

/* TV Overlay (Scanlines, Vignette, Flicker) */
.tv-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 50;
    background: 
        repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.04) 0px, rgba(0, 0, 0, 0.04) 1px, transparent 1px, transparent 2px),
        radial-gradient(circle at center, transparent 40%, rgba(0, 0, 0, 0.35) 100%);
    opacity: 0.8;
    animation: tvFlicker 10s infinite;
}

@keyframes tvFlicker {
    0%, 100% { opacity: 0.8; }
    92% { opacity: 0.8; }
    93% { opacity: 0.75; }
    94% { opacity: 0.8; }
    95% { opacity: 0.78; }
    96% { opacity: 0.81; }
}

/* Traveling Status Indicator */
.travel-status {
    position: absolute;
    bottom: 50px;
    right: 60px;
    color: var(--accent-blue);
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    text-shadow: 0 0 10px var(--accent-glow);
}

.glass-dashboard.traveling .travel-status {
    opacity: 1;
}

/* Hide all content while traveling for clean 'Traveling' screen */
.glass-dashboard.traveling .tab-content {
    opacity: 0 !important;
    pointer-events: none;
    transform: translateY(-20px) scale(0.95);
}

.dots::after {
    content: '';
    animation: dotPulse 1.5s steps(1) infinite;
}

@keyframes dotPulse {
    0% { content: ''; }
    25% { content: '.'; }
    50% { content: '..'; }
    75% { content: '...'; }
    100% { content: ''; }
}

/* Traveling State (Subtle Momentum) */
.glass-dashboard.traveling {
    opacity: 0.85;
    transform: scale(0.995);
    filter: saturate(1.1);
}

.glass-dashboard.hidden {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
    pointer-events: none;
}

/* Window Controls (Minimize/Close) */
.window-controls {
    position: absolute;
    top: 30px;
    right: 50px;
    display: flex;
    gap: 20px;
    z-index: 100;
}

.ctrl-btn {
    font-size: 0.75rem;
    color: var(--text-secondary);
    opacity: 0.4;
    cursor: none;
    transition: all 0.3s ease;
    user-select: none;
}

.ctrl-btn:hover {
    color: var(--text-primary);
    opacity: 1;
    text-shadow: 0 0 10px var(--accent-blue);
}

/* Dashboard Header */
.dash-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 80px;
}

.logo {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 4px;
    color: var(--text-primary);
    text-shadow: 0 0 15px var(--accent-glow);
}

.nav-links {
    display: flex;
    gap: 40px;
}

.dash-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: none;
    padding: 10px 0;
    transition: all 0.3s ease;
    position: relative;
}

.dash-btn.active {
    color: var(--text-primary);
    font-weight: 600;
}

.dash-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-blue);
    box-shadow: 0 0 15px var(--accent-blue);
    animation: lineGlow 1.5s infinite alternate;
}

.dash-btn:hover {
    color: var(--text-primary);
}

/* Tab Transitions (Slide & Fade) */
.tab-content {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.tab-content.active {
    display: flex;
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Exit Classes for staggering */
.tab-content.exiting {
    display: flex;
    opacity: 0;
    transform: translateY(-20px) scale(0.9);
    filter: blur(10px);
    pointer-events: none;
}

.hero-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
    width: 100%;
    margin: auto 0;
}

.hero-text {
    flex: 1.2;
    text-align: left;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

#hero-chart {
    width: 100%;
    max-width: 550px;
    height: 400px;
    background: transparent;
    filter: drop-shadow(0 0 20px rgba(0, 210, 255, 0.2));
}

.hero-title {
    font-size: 4.8rem;
    font-weight: 800;
    margin-bottom: 25px;
    letter-spacing: -3px;
    line-height: .95;
}

.hero-title span {
    background: linear-gradient(90deg, var(--accent-blue), #ffffff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 50px;
    font-weight: 200;
}

/* Buttons */
.cta-group { display: flex; gap: 20px; }
.primary-btn, .secondary-btn {
    padding: 16px 36px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: none;
    transition: all 0.3s ease;
}
.primary-btn { background: white; color: black; border: none; }
.primary-btn:hover { background: var(--accent-blue); color: black; transform: translateY(-5px); box-shadow: 0 10px 30px var(--accent-glow); }
.secondary-btn { background: rgba(255, 255, 255, 0.05); color: white; border: 1px solid var(--glass-border); }

/* Info Grid & Forms */
.section-title { font-size: 2.5rem; font-weight: 800; margin-bottom: 40px; }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.info-card { background: rgba(255, 255, 255, 0.02); border: 1px solid var(--glass-border); padding: 30px; border-radius: 20px; text-align: left; transition: all 0.3s ease; }
.info-card:hover { background: rgba(255, 255, 255, 0.05); border-color: var(--accent-blue); box-shadow: inset 0 0 15px rgba(0, 210, 255, 0.1); }
.info-card h3 { margin-bottom: 15px; color: var(--accent-blue); font-size: 1.2rem; }
.info-card p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.6; }

.join-form { width: 100%; max-width: 500px; display: flex; flex-direction: column; gap: 15px; }
.form-group input, .form-group textarea { width: 100%; background: rgba(0, 0, 0, 0.2); border: 1px solid var(--glass-border); border-radius: 12px; padding: 16px; color: white; font-family: inherit; outline: none; transition: border-color 0.3s; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--accent-blue); }

.submit-btn { padding: 16px; border-radius: 12px; background: linear-gradient(90deg, var(--accent-blue), #0044ff); border: none; color: white; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; cursor: none; box-shadow: 0 0 15px var(--accent-glow); }

/* Custom Cursor */
.custom-cursor { 
    position: fixed; 
    width: 25px; 
    height: 25px; 
    background: rgba(255, 255, 255, 0.1); 
    border: 1px solid rgba(255, 255, 255, 0.3); 
    border-radius: 50%; 
    pointer-events: none; 
    z-index: 9999; 
    transform: translate(-50%, -50%); 
    backdrop-filter: invert(1); 
}

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
    .glass-dashboard {
        padding: 40px;
        height: auto;
        min-height: 85vh;
        width: 95%;
    }
    
    .hero-title { font-size: 3.5rem; }
    #hero-chart { max-width: 450px; height: 300px; }
}

@media (max-width: 992px) {
    .hero-main {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 30px;
    }
    
    .hero-text { text-align: center; }
    .hero-subtitle { margin: 0 auto 40px; }
    .cta-group { justify-content: center; }
    
    #hero-chart { height: 280px; }
}

@media (max-width: 768px) {
    body { 
        cursor: auto; 
        overflow-y: auto; 
        align-items: flex-start;
        padding: 20px 0;
    }
    .custom-cursor { display: none; }
    * { cursor: auto !important; }

    .dash-nav {
        flex-direction: column;
        gap: 25px;
        margin-bottom: 50px;
    }

    .window-controls { top: 20px; right: 25px; gap: 12px; }
    
    .logo { font-size: 1rem; letter-spacing: 2px; }
    .nav-links { gap: 20px; }
    .dash-btn { font-size: 0.85rem; }

    .hero-title { font-size: 2.2rem; letter-spacing: -1px; }
    .hero-subtitle { font-size: 1rem; }

    .info-grid { grid-template-columns: 1fr; }
    .section-title { font-size: 1.8rem; }
    
    .glass-dashboard {
        border-radius: 25px;
        padding: 30px 20px;
    }
    
    .travel-status {
        bottom: 25px;
        right: 50%;
        transform: translateX(50%);
        font-size: 0.75rem;
    }
}

@keyframes dashboardEnter { from { opacity: 0; transform: scale(0.9) translateY(40px); } to { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes tabEnter { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes lineGlow { from { box-shadow: 0 0 5px var(--accent-blue); } to { box-shadow: 0 0 15px var(--accent-blue); } }
