/* 🌌 MODERN PLAYFUL RESET */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
    background: radial-gradient(circle at 50% 0%, #1A1333 0%, #0B0E14 60%, #050608 100%); 
    color: #F8FAFC; 
    overflow-x: hidden; 
    line-height: 1.6; 
    font-family: 'Inter', sans-serif;
}

h1, h2, h3, .waypoint-title, .logo, .cta-btn, .fab-text, .tagline {
    font-family: 'Nunito', sans-serif; 
}

/* 📢 VIBRANT MARKETING TICKER */
.marketing-ticker {
    background: linear-gradient(90deg, #FFB703, #FF477E, #118AB2, #FFB703);
    background-size: 300% 100%;
    animation: gradientPan 10s linear infinite;
    color: #fff; height: 38px;
    display: flex; align-items: center; overflow: hidden;
    position: relative; z-index: 50;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}
.ticker-content {
    white-space: nowrap; font-weight: 900; font-size: 0.85rem;
    text-transform: uppercase; letter-spacing: 1.5px;
    display: inline-block;
    animation: marketingScroll 60s linear infinite;
    text-shadow: 0px 2px 4px rgba(0,0,0,0.3);
}
@keyframes marketingScroll {
    0% { transform: translateX(100vw); }
    100% { transform: translateX(-100%); }
}
@keyframes gradientPan {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

/* 🚀 FLOATING COMING SOON BADGE (MOBILE-FRIENDLY REWRITE) */
.coming-soon-badge {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(136, 204, 255, 0.3);
    border-radius: 50px;
    padding: 10px 20px;
    color: #88ccff;
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 0.9rem;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    user-select: none;
}

.coming-soon-badge:hover {
    border-color: #88ccff;
    box-shadow: 0 0 20px rgba(136, 204, 255, 0.4);
    transform: translateY(-2px);
}

.roadmap-tooltip {
    position: absolute;
    bottom: 120%; /* Opens upward by default */
    left: 0;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(136, 204, 255, 0.3);
    padding: 20px;
    border-radius: 16px;
    width: max-content;
    max-width: 300px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    
    /* Hidden by default */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
    
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    line-height: 1.4;
    color: #fff;
    text-align: left;
}

/* 🖱️ Desktop Hover Trigger */
@media (hover: hover) and (pointer: fine) {
    .coming-soon-badge:hover .roadmap-tooltip {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }
}

/* 👆 Mobile Tap Class Trigger */
.coming-soon-badge.active .roadmap-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* ✨ CINEMATIC DEEP SPACE BACKGROUND */
body {
    background: #020305; /* Deepest cosmic black */
}

#space-canvas {
    position: fixed; top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: -1; /* Top layer: The stars */
    pointer-events: none;
    background: transparent; 
}

/* Rich, vibrant gas clouds */
.cosmic-nebula {
    position: fixed; top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: -2; /* Middle layer: Gas */
    pointer-events: none;
    background: 
        radial-gradient(circle at 15% 20%, rgba(107, 33, 168, 0.4) 0%, transparent 45%), /* Deep Violet */
        radial-gradient(circle at 80% 30%, rgba(6, 182, 212, 0.3) 0%, transparent 50%), /* Cyan */
        radial-gradient(circle at 50% 80%, rgba(225, 29, 72, 0.25) 0%, transparent 60%), /* Crimson */
        radial-gradient(circle at 10% 80%, rgba(245, 158, 11, 0.15) 0%, transparent 40%); /* Gold */
    filter: blur(60px);
    mix-blend-mode: screen;
    animation: breatheNebula 12s infinite alternate ease-in-out;
}

/* Slowly rotating spiral arms */
.galaxy-spiral {
    position: fixed; top: 50%; left: 50%;
    width: 200vw; height: 200vw; /* Massive size to cover screen while spinning */
    margin-left: -100vw; margin-top: -100vw; 
    z-index: -3; /* Bottom layer: The galaxy core */
    pointer-events: none;
    background: conic-gradient(
        from 0deg, 
        transparent 0%, 
        rgba(147, 51, 234, 0.2) 15%, /* Purple arm */
        transparent 30%, 
        rgba(56, 189, 248, 0.2) 45%, /* Blue arm */
        transparent 60%, 
        rgba(236, 72, 153, 0.2) 75%, /* Pink arm */
        transparent 90%
    );
    filter: blur(80px);
    mix-blend-mode: screen;
    animation: spinGalaxy 90s linear infinite; /* Very slow, majestic rotation */
}

@keyframes breatheNebula {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.1); opacity: 1; }
}

@keyframes spinGalaxy {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
    100% { transform: rotate(360deg) scale(1); }
}

/* 🚀 NAVIGATION */
nav { display: flex; justify-content: space-between; align-items: center; padding: 20px 5%; max-width: 1200px; margin: 0 auto; }
.logo { font-size: 1.5rem; font-weight: 900; color: #fff; letter-spacing: 1px; display: flex; align-items: center; gap: 12px; }
.nav-btn { background: rgba(255,255,255,0.1); border: 2px solid rgba(255,255,255,0.2); color: #fff; text-decoration: none; padding: 10px 24px; border-radius: 50px; font-weight: 800; transition: 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }
.nav-btn:hover { background: #fff; color: #111; transform: translateY(-2px) scale(1.05); box-shadow: 0 10px 25px rgba(255,255,255,0.2); }

/* 🦸‍♂️ HERO SECTION */
.hero { text-align: center; padding: 80px 20px 60px; max-width: 900px; margin: 0 auto; }
.hero-img { height: 130px; width: 130px; border-radius: 50%; box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.05), 0 15px 35px rgba(0, 0, 0, 0.5); margin-bottom: 30px; animation: heroFloat 6s ease-in-out infinite; }
@keyframes heroFloat { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-12px); } }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.2rem); font-weight: 900; line-height: 1.15; margin-bottom: 5px; background: linear-gradient(90deg, #00C9FF 0%, #92FE9D 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.tagline { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; color: #E2E8F0; margin-bottom: 25px; display: block;}
.hero p { font-size: clamp(1.05rem, 2vw, 1.25rem); color: #CBD5E1; margin-bottom: 45px; max-width: 650px; margin-inline: auto; font-weight: 400; }

/* TACTILE 3D BUTTONS */
.cta-btn { display: inline-block; background: #FFD166; color: #1E1B4B; text-decoration: none; padding: 18px 45px; border-radius: 100px; font-size: 1.25rem; font-weight: 900; transition: all 0.15s ease; box-shadow: 0 6px 0 #CC9900, 0 15px 25px rgba(255, 209, 102, 0.2); }
.cta-btn:hover { transform: translateY(2px); box-shadow: 0 4px 0 #CC9900, 0 10px 20px rgba(255, 209, 102, 0.3); }
.cta-btn:active { transform: translateY(6px); box-shadow: 0 0 0 #CC9900; }
.cta-secondary { background: #4D9FFF; color: #fff; box-shadow: 0 6px 0 #0066CC, 0 15px 25px rgba(77, 159, 255, 0.2); }
.cta-secondary:hover { transform: translateY(2px); box-shadow: 0 4px 0 #0066CC, 0 10px 20px rgba(77, 159, 255, 0.3); }
.cta-secondary:active { transform: translateY(6px); box-shadow: 0 0 0 #0066CC; }

/* 🗺️ COSMIC TIMELINE ARCHITECTURE */
.timeline-container { position: relative; max-width: 1100px; margin: 0 auto; padding: 40px 20px 100px; }
.timeline-line { position: absolute; top: 0; bottom: 0; left: 50%; width: 4px; transform: translateX(-50%); background: rgba(255, 255, 255, 0.05); border-radius: 4px; z-index: 1; }
.timeline-line::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 100%; background: linear-gradient(to bottom, transparent, #00C9FF, #92FE9D, #FFD166, #FF477E, #118AB2, #cc88ff, #88ccff, transparent); opacity: 0.7; box-shadow: 0 0 20px rgba(0, 201, 255, 0.5); }

.waypoint { position: relative; display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 80px; width: 100%; z-index: 5; }
.waypoint:nth-child(even) { flex-direction: row-reverse; }

.waypoint-content { width: calc(50% - 60px); background: rgba(255, 255, 255, 0.03); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border: 2px solid rgba(255, 255, 255, 0.08); border-top: 2px solid rgba(255, 255, 255, 0.15); border-radius: 36px; padding: 35px 40px; box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), inset 0 2px 10px rgba(255,255,255,0.02); transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }
.waypoint-content:hover { transform: translateY(-5px); border-color: rgba(255, 255, 255, 0.3); box-shadow: 0 25px 45px rgba(0, 0, 0, 0.4); }

.waypoint-marker { position: absolute; left: 50%; top: 20px; transform: translate(-50%, 0); width: 70px; height: 70px; background: #0B0E14; border: 4px solid #fff; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 2.2rem; z-index: 10; box-shadow: 0 0 25px rgba(0,0,0,0.6); transition: 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }
.waypoint:hover .waypoint-marker { transform: translate(-50%, -5px) scale(1.1); }

.wp-1 .waypoint-marker { border-color: #00C9FF; box-shadow: 0 0 20px rgba(0, 201, 255, 0.5); }
.wp-2 .waypoint-marker { border-color: #92FE9D; box-shadow: 0 0 20px rgba(146, 254, 157, 0.5); }
.wp-3 .waypoint-marker { border-color: #FFD166; box-shadow: 0 0 20px rgba(255, 209, 102, 0.5); }
.wp-4 .waypoint-marker { border-color: #FF477E; box-shadow: 0 0 20px rgba(255, 71, 126, 0.5); }
.wp-5 .waypoint-marker { border-color: #118AB2; box-shadow: 0 0 20px rgba(17, 138, 178, 0.5); }
.wp-6 .waypoint-marker { border-color: #cc88ff; box-shadow: 0 0 20px rgba(204, 136, 255, 0.5); }
.wp-7 .waypoint-marker { border-color: #88ccff; box-shadow: 0 0 20px rgba(136, 204, 255, 0.5); }
.wp-8 .waypoint-marker { border-color: #00ffcc; box-shadow: 0 0 20px rgba(0, 255, 204, 0.5); }

.waypoint-title { font-size: 1.6rem; color: #fff; margin-bottom: 12px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.waypoint-desc { color: #94A3B8; font-size: 1rem; line-height: 1.6; }
.install-list { list-style: none; margin-top: 20px; font-size: 0.95rem; color: #E2E8F0; }
.install-list li { margin-bottom: 12px; background: rgba(255,255,255,0.05); padding: 12px 18px; border-radius: 16px; border: 1px solid rgba(255,255,255,0.05); }
.install-label { font-weight: 700; display: block; margin-bottom: 4px; font-family: 'Nunito', sans-serif;}

/* Encyclopedia Links */
.encyclopedia-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 25px; }
.encyclopedia-links a { background: rgba(255,255,255,0.05); color: #fff; padding: 10px 20px; border-radius: 50px; text-decoration: none; font-size: 0.9rem; font-weight: 700; font-family: 'Nunito', sans-serif; border: 1px solid rgba(255,255,255,0.1); transition: 0.2s cubic-bezier(0.34, 1.56, 0.64, 1); box-shadow: 0 4px 10px rgba(0,0,0,0.2); }
.encyclopedia-links a:hover { background: #fff; color: #000; transform: translateY(-3px) scale(1.05); box-shadow: 0 10px 20px rgba(255,255,255,0.2); }

/* 📡 NASA NEWS STYLING */
.news-ticker-box { height: 130px; overflow-y: auto; padding-right: 5px; margin-top: 15px; }
.news-item { display: block; text-decoration: none; padding: 10px; background: rgba(0,0,0,0.2); border-radius: 12px; margin-bottom: 8px; border: 1px solid rgba(255,255,255,0.05); transition: 0.2s; }
.news-item:hover { background: rgba(255,255,255,0.05); transform: translateX(4px); border-color: rgba(255,255,255,0.2); }
.news-date { font-size: 0.7rem; color: #4D9FFF; font-family: monospace; display: block; margin-bottom: 2px;}
.news-headline { font-size: 0.85rem; color: #fff; font-weight: 600; line-height: 1.3; }
.news-ticker-box::-webkit-scrollbar { width: 6px; }
.news-ticker-box::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 10px; }

/* 🛡️ UPGRADED FOOTER */
footer { background: rgba(0,0,0,0.4); border-top: 1px solid rgba(255, 255, 255, 0.05); padding: 80px 5% 40px; margin-top: 50px; }
.footer-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-bottom: 50px; }
.footer-brand h2 { color: #fff; font-size: 1.8rem; margin-bottom: 15px; font-weight: 900;}
.footer-text { color: #94A3B8; font-size: 0.95rem; line-height: 1.6; margin-bottom: 20px; }
.footer-title { color: #fff; font-size: 1.3rem; font-weight: 800; margin-bottom: 20px; font-family: 'Nunito', sans-serif;}
.footer-bottom { max-width: 1200px; margin: 0 auto; text-align: center; border-top: 1px solid rgba(255, 255, 255, 0.05); padding-top: 25px; color: #64748B; font-size: 0.85rem; }

/* 🚀 ENTERPRISE SPONSOR TOAST */
.glass-toast {
    position: fixed; bottom: 30px; right: 30px; width: 380px; max-width: calc(100vw - 40px);
    background: rgba(15, 23, 42, 0.85); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(56, 189, 248, 0.3); border-radius: 24px; padding: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 20px rgba(56, 189, 248, 0.1); z-index: 1500;
    font-family: 'Inter', sans-serif; transform: translateX(120%); transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.glass-toast.show { transform: translateX(0); }
.toast-content { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 15px; }
.toast-icon { font-size: 24px; background: rgba(56, 189, 248, 0.1); padding: 10px; border-radius: 50%; }
.toast-text h4 { margin: 0 0 5px 0; color: #38bdf8; font-size: 1.1rem; font-weight: 800; font-family: 'Nunito', sans-serif; }
.toast-text p { margin: 0; color: #cbd5e1; font-size: 0.85rem; line-height: 1.5; }
.toast-actions { display: flex; justify-content: flex-end; gap: 10px; }
.btn-dismiss { background: transparent; border: none; color: #94a3b8; cursor: pointer; font-weight: 600; padding: 8px 16px; border-radius: 12px; transition: background 0.2s; font-family: 'Nunito', sans-serif; }
.btn-dismiss:hover { background: rgba(255, 255, 255, 0.1); color: #f8fafc; }
.btn-sponsor { background: #deff9a; color: #020617; text-decoration: none; font-weight: 800; padding: 8px 20px; border-radius: 12px; box-shadow: 0 4px 10px rgba(222, 255, 154, 0.3); transition: transform 0.1s, box-shadow 0.1s; font-family: 'Nunito', sans-serif; }
.btn-sponsor:hover { transform: translateY(-2px); box-shadow: 0 6px 15px rgba(222, 255, 154, 0.4); }
.btn-sponsor:active { transform: translateY(2px); box-shadow: 0 2px 5px rgba(222, 255, 154, 0.3); }

/* 📱 MOBILE RESPONSIVE FIXES */
@media (max-width: 900px) { 
    .footer-grid { grid-template-columns: 1fr; }
    .timeline-line { left: 35px; transform: none; }
    .waypoint { flex-direction: column !important; align-items: flex-end; margin-bottom: 60px; }
    .waypoint-content { width: calc(100% - 75px); padding: 30px 25px; }
    .waypoint-marker { left: 35px; transform: translateX(-50%); width: 50px; height: 50px; font-size: 1.6rem; }
    .waypoint:hover .waypoint-marker { transform: translate(-50%, -5px) scale(1.1); }
}

@media (max-width: 768px) {
    /* 🛠️ MOBILE BADGE FIX: Anchored to bottom, opening upward! */
    .coming-soon-badge {
        top: auto;
        bottom: 25px; 
        left: 50%;
        transform: translateX(-50%);
        font-size: 0.8rem;
    }
    .coming-soon-badge:hover {
        transform: translateX(-50%); /* Prevent weird movement on tap */
    }
    .roadmap-tooltip {
        top: auto;
        bottom: 130%; /* Forces the tooltip to shoot upward! */
        left: 50%;
        transform: translateX(-50%) translateY(10px);
        width: 280px;
    }
    .coming-soon-badge.active .roadmap-tooltip {
        transform: translateX(-50%) translateY(0);
    }
    
    .hero { padding-top: 100px; }
    .logo { font-size: 1.2rem; }
    .nav-btn { padding: 8px 18px; font-size: 0.9rem; }
    .waypoint-content { padding: 25px 20px; }
    /* Nudged the toast up slightly so it doesn't collide with the centered badge */
    .glass-toast { bottom: 85px; right: 20px; width: calc(100vw - 40px); transform: translateX(150%); }
}
