/* 
    REVIV0 - INDUSTRIAL RESURRECTION ENGINE (BALLER EDITION)
    Extreme Web3 Aesthetics: Glassmorphism, Mesh Gradients, Noise, Scanlines, Motion
*/

:root {
    --primary: #00ff9d; /* Neon Revival Green */
    --secondary: #7a00ff; /* Deep Neural Purple */
    --accent: #00d1ff; /* Digital Cyan */
    --dark: #05070a;
    --darker: #020305;
    --glass: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(255, 255, 255, 0.05);
    --font-main: 'Plus Jakarta Sans', sans-serif;
    --font-heading: 'Outfit', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--darker);
}

body {
    background-color: var(--darker);
    color: #e2e8f0;
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* NOISE OVERLAY */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 0.04;
    pointer-events: none;
    z-index: 9999;
}

/* SCANLINES EFFECT */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.2) 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, 3px 100%;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.15;
}

/* PREMIUM GRID BACKGROUND */
.grid-bg {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 255, 157, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 157, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: -1;
    mask-image: radial-gradient(circle at center, black, transparent 90%);
}

/* TYPOGRAPHY EXTREME */
h1, h2, h3, h4, h5, .font-heading {
    font-family: var(--font-heading);
    letter-spacing: -0.04em;
    font-weight: 900;
}

.mask-text {
    background: linear-gradient(to right, #fff 20%, rgba(255, 255, 255, 0.3) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-glow-primary {
    text-shadow: 0 0 20px rgba(0, 255, 157, 0.6);
}

/* BALLER BUTTONS */
.btn-premium {
    position: relative;
    padding: 1.25rem 3rem;
    border-radius: 16px;
    font-weight: 900;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--darker);
    border: none;
    box-shadow: 0 10px 40px -10px rgba(122, 0, 255, 0.4);
}

.btn-premium::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    transform: rotate(45deg);
    transition: 0.8s;
    left: -150%;
}

.btn-premium:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 30px 60px -15px rgba(0, 255, 157, 0.5);
    filter: brightness(1.1);
}

.btn-premium:hover::after {
    left: 100%;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: white;
    backdrop-filter: blur(20px);
}

.btn-outline:hover {
    border-color: var(--primary);
    background: rgba(0, 255, 157, 0.03);
    color: var(--primary);
    box-shadow: 0 0 30px rgba(0, 255, 157, 0.1);
}

/* PREMIUM GLASS CARD */
.glass-card {
    background: radial-gradient(120% 120% at 0% 0%, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
    backdrop-filter: blur(30px);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 3rem;
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
    border-color: rgba(0, 255, 157, 0.2);
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 255, 157, 0.05);
}

/* NAV LINKS */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary);
    transition: width 0.4s ease;
}
.nav-link:hover::after {
    width: 100%;
}

/* SCROLL REVEAL */
.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* PRELOADER */
#preloader {
    position: fixed;
    inset: 0;
    background: var(--darker);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), visibility 1s;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

/* ROADMAP STYLING */
#roadmap .glass-card {
    position: relative;
    overflow: hidden;
}

#roadmap .glass-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: transparent;
    transition: background 0.4s;
}

#roadmap .glass-card:hover::before {
    background: currentColor;
}

/* FAQ & TEAM HOVER GLOWS */
.glass-card.bg-white\/\[0\.02\]:hover {
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 40px rgba(0, 255, 157, 0.03);
}

/* CUSTOM CURSOR */
#cursor {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10001;
    mix-blend-mode: difference;
}

#cursor-outline {
    width: 40px;
    height: 40px;
    border: 1.5px solid rgba(0, 255, 157, 0.3);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10001;
    transition: transform 0.2s ease, width 0.3s, height 0.3s, border-color 0.4s;
}

/* RESPONSIVE BALLER FIXES */
@media (max-width: 1024px) {
}

@media (max-width: 768px) {
    .glass-card {
        padding: 2rem;
    }

    #cursor,
    #cursor-outline {
        display: none;
    }
    
    h1 {
    }
    
    .nav-link {
        display: none;
    }

    .mobile-link {
        opacity: 0;
        transform: translateX(-20px);
        transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }
}

/* ANIMATIONS */
@keyframes reverse-spin {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

.animate-reverse-spin-slow {
    animation: reverse-spin 15s linear infinite;
}
