:root {
    --bg-color: #050505;
    --bg-accent: #0a0a0c;
    --primary: #00ff9c;
    --primary-glow: rgba(0, 255, 156, 0.4);
    --secondary: #00d4ff;
    --secondary-glow: rgba(0, 212, 255, 0.3);
    --text-main: #e0e0e0;
    --text-dim: #888;
    --accent-red: #ff3e3e;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --font-mono: 'JetBrains Mono', monospace;
    --font-sans: 'Outfit', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-glow);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* CRT Scanline Effect */
body::after {
    content: " ";
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0.1) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    z-index: 9999;
    background-size: 100% 4px, 6px 100%;
    pointer-events: none;
    opacity: 0.15;
}

h1,
h2,
h3,
.mono {
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Background Effects */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.6;
}

.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(var(--glass-border) 1px, transparent 1px),
        linear-gradient(90deg, var(--glass-border) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    pointer-events: none;
    opacity: 0.2;
}

.hero-float {
    pointer-events: none;
    z-index: 10;
    transition: opacity 0.5s ease;
}

@media (max-width: 1024px) {
    .hero-float {
        display: none;
    }
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 8rem 0;
    position: relative;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

.hero-title {
    font-size: clamp(4rem, 15vw, 10rem);
    font-weight: 800;
    line-height: 0.9;
    margin-bottom: 1.5rem;
    background: linear-gradient(to bottom, #fff, var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 30px var(--primary-glow));
    position: relative;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    color: var(--text-dim);
    max-width: 600px;
    margin-bottom: 3rem;
    font-family: var(--font-mono);
}

.cta-button {
    padding: 1.2rem 3rem;
    font-family: var(--font-mono);
    font-size: 1.2rem;
    font-weight: 700;
    background: var(--primary);
    color: var(--bg-color);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px var(--primary-glow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px var(--primary-glow);
}

.cta-button::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: rotate(45deg);
    transition: 0.5s;
}

.cta-button:hover::after {
    left: 100%;
}

/* Glass Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.glass-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2.5rem;
    backdrop-filter: blur(14px);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.02);
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
}

.glass-card:hover::before {
    transform: scaleX(1);
}

.glass-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary-glow);
    box-shadow: 0 30px 60px rgba(0, 255, 156, 0.15), inset 0 0 20px rgba(0, 255, 156, 0.05);
}

.glass-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    display: block;
}

.glass-card h3 {
    margin-bottom: 1rem;
    color: #fff;
}

.glass-card p {
    color: var(--text-dim);
    font-size: 0.95rem;
}

/* Timeline */
.timeline {
    max-width: 800px;
    margin: 4rem auto;
    position: relative;
}

/* Timeline Refinement */
.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--primary), transparent);
    transform: translateX(-50%);
}

.timeline-item {
    margin-bottom: 4rem;
    position: relative;
    width: 50%;
    padding: 0 3rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.timeline-item.aos-animate {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

.timeline-dot {
    position: absolute;
    top: 0;
    left: 100%;
    width: 20px;
    height: 20px;
    background: var(--bg-color);
    border: 3px solid var(--primary);
    border-radius: 50%;
    transform: translate(-50%, 0);
    box-shadow: 0 0 15px var(--primary-glow);
    z-index: 1;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: 0;
}

/* Reward Cards */
.reward-card {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(0, 255, 156, 0.1));
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    transition: 0.3s;
}

.reward-card:hover {
    border-color: var(--secondary);
    box-shadow: 0 0 30px var(--secondary-glow);
}

.reward-image {
    width: 100%;
    height: 200px;
    background: #111;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    object-fit: cover;
}

/* Community Section */
.community-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 4rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    display: block;
}

.stat-label {
    color: var(--text-dim);
    text-transform: uppercase;
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

/* Glitch Effect */
.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.glitch::before {
    color: #ff00ff;
    z-index: -1;
    animation: glitch-anim 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
}

.glitch::after {
    color: #00ffff;
    z-index: -2;
    animation: glitch-anim 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) reverse both infinite;
}

@keyframes glitch-anim {
    0% {
        transform: translate(0);
    }

    20% {
        transform: translate(-2px, 2px);
    }

    40% {
        transform: translate(-2px, -2px);
    }

    60% {
        transform: translate(2px, 2px);
    }

    80% {
        transform: translate(2px, -2px);
    }

    100% {
        transform: translate(0);
    }
}

/* Footer Terminals */
.terminal-footer {
    padding: 4rem 0;
    background: var(--bg-accent);
    border-top: 1px solid var(--glass-border);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-dim);
}

.terminal-prompt {
    color: var(--primary);
    margin-right: 0.5rem;
}

/* Animations */
[data-aos] {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* Loading Screen */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: var(--font-mono);
    color: var(--primary);
}

.loader-text {
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.loader-bar {
    width: 200px;
    height: 2px;
    background: var(--glass-border);
    position: relative;
    overflow: hidden;
}

.loader-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        left: -100%;
    }

    50% {
        left: 0;
    }

    100% {
        left: 100%;
    }
}

@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 0;
        text-align: left !important;
    }

    .timeline-dot {
        left: 20px !important;
    }

    .hero-title {
        font-size: 4rem;
    }
}