* { 
        margin: 0; 
        padding: 0; 
        box-sizing: border-box;  
        -webkit-tap-highlight-color: transparent;
    }

    a { 
        text-decoration: none; 
    }

    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: optimizeLegibility;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }

    .icon {
        display: inline-block;
        background-color: currentColor;
        flex-shrink: 0;
        -webkit-mask: no-repeat center / contain;
        mask: no-repeat center / contain;
   }

    .icon-discord {
        width: 27px;
        height: 22px;
        -webkit-mask-image: url("../assets/icons/discord.svg");
        mask-image: url("../assets/icons/discord.svg");
    }

    .icon-github {
        width: 22px;
        height: 22px;
        -webkit-mask-image: url("../assets/icons/github.svg");
        mask-image: url("../assets/icons/github.svg");
    }

    .icon-download {
        width: 18px;
        height: 18px;
        -webkit-mask-image: url("../assets/icons/download.svg");
        mask-image: url("../assets/icons/download.svg");
    }

    #join-overlay {
        display: flex;
        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: rotate3d(0, 0, 1, 360deg); }
    }

    .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(14px);
        -webkit-backdrop-filter: blur(14px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 999px;
        align-items: center;
    }

    .social-header a {
        color: rgba(255,255,255,0.4);
        transition: color 0.3s;
        display: flex;
    }

    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(14px);
        -webkit-backdrop-filter: blur(14px);
        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: opacity 0.3s, color 0.3s; }

    .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;
        isolation: isolate;
        will-change: transform;
    }

    .bubble {
        position: absolute;
        top: 100lvh;
        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, opacity;
        animation: float 22s infinite linear;
        contain: strict;
        transform: translate3d(0, 0, 0);
        backface-visibility: hidden;
    }

    @keyframes float {
        0% { transform: translate3d(0, 0, 0); opacity: 0; }
        10% { opacity: 0.4; }
        90% { opacity: 0.4; }
        100% { transform: translate3d(0, -125lvh, 0); 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 {
        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: transform 0.4s ease, box-shadow 0.4s ease;
        border: none;
        cursor: pointer;
    }

    section { 
        padding: 80px 8% 100px; 
        display: flex; 
        flex-direction: column; 
        align-items: center; 
        content-visibility: auto;
        contain-intrinsic-size: auto 600px;
    }

    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(18, 22, 36, 0.6);
        border: 1px solid rgba(255, 255, 255, 0.04);
        border-radius: 24px;
        padding: 35px;
        transition: background 0.3s, border-color 0.3s;
    }

    .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); 
        border-radius: 24px;
    }

    .reveal { 
        opacity: 0; 
        transform: translate3d(0, 20px, 0); 
        transition: transform 0.6s ease-out, opacity 0.6s ease-out; 
    }

    .reveal.active { 
        opacity: 1; 
        transform: translate3d(0, 0, 0); 
    }

    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: color 0.3s; }
    .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: auto; 
            max-width: 92%; 
            padding: 10px 18px; 
        }
        nav ul { gap: 12px; justify-content: center; }
        nav ul li a { font-size: 0.82rem; }
        .hero h1 { font-size: 2.8rem; }
        .features-container { grid-template-columns: 1fr; }
            
        .btn {
            flex-direction: row;
            padding: 12px 24px;
            font-size: 0.9rem;
            gap: 8px;
            margin-top: 25px;         
        }    
        
        .bubble:nth-child(4), 
        .bubble:nth-child(5) { 
            display: none !important;
            animation: none !important; 
        }
        .bubble:nth-child(1) { left: 10%; width: 50px; height: 50px; animation-duration: 20s; }
        .bubble:nth-child(2) { left: 45%; width: 80px; height: 80px; animation-duration: 28s; }
        .bubble:nth-child(3) { left: 75%; width: 45px; height: 45px; animation-duration: 24s; }
    }

    @media (hover: hover) {
        .social-header a:hover { 
            color: #7dd3fc; 
        }
        nav ul li a:hover { 
            opacity: 1; 
            color: #7dd3fc; 
        }
        .btn:hover {
            box-shadow: 0 10px 30px rgba(125, 211, 252, 0.4);
        }
        .feature-category:hover { 
            border-color: rgba(125, 211, 252, 0.15); 
            background: rgba(255, 255, 255, 0.02);
        }
        .footer-item a:hover { 
            color: #fff; 
        }
    }

    @media (prefers-reduced-motion: reduce) {
        .bubble { animation: none !important; opacity: 0 !important; }
        .reveal { transition: none !important; opacity: 1 !important; transform: none !important; }
        .btn { transition: none !important; }
        .loader { animation: none !important; border-top-color: #7dd3fc; }
    }
