/* --- GLOBAL BASE --- */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    text-decoration: none !important; 
}

html {
    scroll-behavior: smooth;
    overscroll-behavior-y: none;
}

body {
    font-family: 'Inter', sans-serif;
    background: #0b0f1a;
    color: #fff;
    overflow-x: hidden;
    line-height: 1.5;
    text-rendering: optimizeSpeed;
    -webkit-font-smoothing: antialiased;
}

/* --- JOIN OVERLAY --- */
#join-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: #0b0f1a;
    z-index: 9999;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.loader {
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid #7dd3fc;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* --- NAVIGATION & HEADERS --- */
.social-header {
    position: fixed;
    top: 20px;
    right: 30px;
    z-index: 100;
    display: flex;
    gap: 15px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    align-items: center;
}

.social-header a {
    font-size: 1.4rem;
    color: rgba(255,255,255,0.4);
    transition: 0.3s;
    display: flex;
}

.social-header a:hover { 
    color: #7dd3fc; 
    transform: translateY(-2px); 
}

nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 90;
    padding: 10px 25px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    white-space: nowrap;
}

nav ul { display: flex; gap: 25px; list-style: none; align-items: center; }
nav ul li a { color: #fff; font-size: 0.9rem; font-weight: 600; opacity: 0.6; transition: 0.3s; }
nav ul li a:hover { opacity: 1; color: #7dd3fc; }

/* --- BACKGROUND BUBBLES --- */
.bubble-container {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    background: radial-gradient(circle at center, #161b2d 0%, #0b0f1a 100%);
    overflow: hidden;
    pointer-events: none;
}

.bubble {
    position: absolute;
    top: 100%;
    background: linear-gradient(135deg, rgba(125, 211, 252, 0.1), rgba(192, 132, 252, 0.1));
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    will-change: transform;
    animation: float 22s infinite linear;
}

@keyframes float {
    0% { transform: translateY(0); opacity: 0; }
    10% { opacity: 0.4; }
    90% { opacity: 0.4; }
    100% { transform: translateY(-125vh); opacity: 0; }
}

.bubble:nth-child(1) { left: 10%; width: 80px; height: 80px; animation-delay: -2s; animation-duration: 18s; }
.bubble:nth-child(2) { left: 30%; width: 120px; height: 120px; animation-delay: -8s; animation-duration: 25s; }
.bubble:nth-child(3) { left: 50%; width: 60px; height: 60px; animation-delay: -14s; animation-duration: 20s; }
.bubble:nth-child(4) { left: 80%; width: 100px; height: 100px; animation-delay: -5s; animation-duration: 22s; }
.bubble:nth-child(5) { left: 15%; width: 40px; height: 40px; animation-delay: -18s; animation-duration: 15s; }

/* --- HERO & BUTTONS --- */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 800;
    letter-spacing: -2px;
    background: linear-gradient(90deg, #7dd3fc, #c084fc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p { font-size: 1.2rem; opacity: 0.6; margin-top: 10px; }

.btn {
    margin-top: 35px;
    padding: 15px 40px;
    background: linear-gradient(135deg, #7dd3fc, #c084fc);
    color: #0b0f1a;
    border-radius: 50px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(125, 211, 252, 0.4);
}

/* Version Detection Animation */
.version-update {
    animation: versionPop 0.8s ease;
}

@keyframes versionPop {
    0% { transform: scale(1); filter: brightness(1); }
    40% { transform: scale(1.15); filter: brightness(1.5); }
    100% { transform: scale(1); filter: brightness(1); }
}

/* --- CONTENT SECTIONS --- */
section { padding: 80px 8% 100px; display: flex; flex-direction: column; align-items: center; }
h2 { font-size: 2.5rem; margin-bottom: 50px; font-weight: 800; }

.features-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    width: 100%;
    max-width: 1200px;
}

.feature-category {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 35px;
    transition: 0.3s;
}

.feature-category:hover { 
    border-color: rgba(125, 211, 252, 0.3); 
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-5px);
}

.highlight-card {
    border-color: rgba(192, 132, 252, 0.2);
    background: linear-gradient(135deg, rgba(125, 211, 252, 0.03), rgba(192, 132, 252, 0.03));
}

.feature-category h3 { color: #7dd3fc; margin-bottom: 20px; font-size: 1.4rem; }

.feature-list { list-style: none; }
.feature-list li {
    margin-bottom: 12px;
    font-size: 0.95rem;
    opacity: 0.75;
    position: relative;
    padding-left: 25px;
}

.feature-list li::before {
    content: "-";
    position: absolute;
    left: 0;
}

.about-box { 
    max-width: 800px; 
    padding: 50px; 
    text-align: center; 
    font-size: 1.2rem;
    background: rgba(30, 41, 59, 0.4); 
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    border-radius: 24px;
}

/* --- REVEAL EFFECTS --- */
.reveal { 
    opacity: 0; 
    transform: translateY(20px); 
    transition: 0.6s ease-out; 
}

.reveal.active { 
    opacity: 1; 
    transform: translateY(0); 
}

/* --- FOOTER --- */
footer {
    background: rgba(255, 255, 255, 0.01);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 80px 10% 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-item h4 { color: #7dd3fc; margin-bottom: 20px; font-size: 1.1rem; }
.footer-item a { display: block; color: #888; margin-bottom: 10px; transition: 0.3s; }
.footer-item a:hover { color: #fff; }
.bottom-bar { text-align: center; font-size: 0.8rem; opacity: 0.3; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 30px; }

@media (max-width: 768px) {
    .social-header { top: auto; bottom: 25px; right: 50%; transform: translateX(50%); gap: 20px; }
    nav { width: 95%; padding: 10px; }
    nav ul { gap: 15px; justify-content: center; }
    .hero h1 { font-size: 2.8rem; }
    .features-container { grid-template-columns: 1fr; }
    .bubble:nth-child(4), .bubble:nth-child(5) { display: none; }
}