@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800;900&display=swap');

:root {
    --alpha-red: #ff003c;
    --alpha-cyan: #00d2ff;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: #030303;
    color: #fff;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ATMOSPHERIC BACKGROUND */
#bg-canvas {
    position: fixed;
    inset: 0;
    z-index: -4;
    pointer-events: none;
}

.grid-overlay {
    position: fixed;
    inset: 0;
    z-index: -3;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(circle at 50% 50%, black, transparent 80%);
    pointer-events: none;
}

/* DOLLAR BACKGROUND LAYER */
#money-bg {
    position: fixed;
    inset: 0;
    z-index: -4;
    pointer-events: none;
    overflow: hidden;
}

.floating-dollar {
    position: absolute;
    opacity: 0.15;
    pointer-events: none;
    filter: blur(1px);
    animation: float-down linear infinite;
}

@keyframes float-down {
    0% {
        transform: translateY(-10vh) rotate(0deg);
    }
    100% {
        transform: translateY(110vh) rotate(360deg);
    }
}

#video-bg-container {
    position: fixed;
    inset: 0;
    z-index: -5;
    overflow: hidden;
    opacity: 0.15;
    filter: grayscale(1) blur(4px);
}

#video-bg-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* TYPOGRAPHY & INTERFACE */
.kinetic-title {
    font-size: clamp(3rem, 15vw, 9rem);
    font-weight: 900;
    line-height: 0.85;
    letter-spacing: -0.05em;
    background: linear-gradient(to bottom, #fff 40%, rgba(255,255,255,0.2) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 30px rgba(255,255,255,0.1));
}

/* ENHANCED GLOW & SHIMMER BADGE */
.hero-badge-glow {
    position: relative;
    background: rgba(0, 210, 255, 0.1);
    border: 1px solid rgba(0, 210, 255, 0.5);
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.2);
    animation: pulse-glow 3s infinite ease-in-out;
    transition: all 0.4s ease;
    overflow: hidden;
}

.hero-badge-glow::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -150%;
    width: 100%;
    height: 200%;
    background: linear-gradient(
        to right,
        transparent,
        rgba(255, 255, 255, 0.1),
        rgba(255, 255, 255, 0.4),
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: rotate(30deg);
    animation: shimmer-sweep 4s infinite linear;
}

@keyframes shimmer-sweep {
    0% { left: -150%; }
    20% { left: 150%; }
    100% { left: 150%; }
}

@keyframes pulse-glow {
    0%, 100% { 
        box-shadow: 0 0 15px rgba(0, 210, 255, 0.2), inset 0 0 5px rgba(0, 210, 255, 0.1);
        border-color: rgba(0, 210, 255, 0.4);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 35px rgba(0, 210, 255, 0.6), inset 0 0 15px rgba(0, 210, 255, 0.2);
        border-color: rgba(0, 210, 255, 1);
        transform: scale(1.02);
    }
}

.btn-slim-tg {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 32px;
    background: rgba(255, 0, 60, 0.05);
    border: 1px solid rgba(255, 0, 60, 0.2);
    border-radius: 100px;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    backdrop-filter: blur(10px);
    width: 100%;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(255, 0, 60, 0.1);
}

.btn-slim-tg::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 0, 60, 0.4),
        transparent
    );
    transition: 0.5s;
    animation: electric-sweep 3s infinite;
}

@keyframes electric-sweep {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

.btn-slim-tg:hover {
    background: var(--alpha-red);
    border-color: var(--alpha-red);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(255, 0, 60, 0.5);
}

.btn-header-earn {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--alpha-cyan);
    border: 1px solid rgba(0, 210, 255, 0.3);
    padding: 8px 16px;
    border-radius: 100px;
    background: rgba(0, 210, 255, 0.05);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-header-earn:hover {
    background: var(--alpha-cyan);
    color: #000;
    border-color: var(--alpha-cyan);
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.2);
}

/* MOBILE ADJUSTMENTS */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1px;
        background: rgba(255,255,255,0.05);
    }
    .stat-item {
        border-right: none !important;
        background: #080808;
        padding: 24px !important;
    }
}

/* TICKER */
.ticker-wrap {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: rgba(0,0,0,0.9);
    padding: 10px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    backdrop-filter: blur(20px);
    z-index: 100;
}

.ticker-scroll {
    display: flex;
    white-space: nowrap;
    animation: scroll 30s linear infinite;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.reveal {
    opacity: 1; 
    transform: translateY(0);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Accessibility & Utility */
.skip-link {
    position: absolute;
    left: 1rem;
    top: 1rem;
    background: #000;
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    z-index: 9999;
    transform: translateY(-120%);
    transition: transform 0.18s ease;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.6);
}
.skip-link:focus,
.skip-link:focus-visible {
    transform: translateY(0);
    outline: none;
}

/* Ticker control */
.ticker-controls { display: flex; justify-content: flex-start; padding: 0 12px 8px; }
.ticker-toggle {
    background: rgba(255,255,255,0.04);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.06);
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
}
.ticker-toggle[aria-pressed="true"] { background: rgba(255,255,255,0.08); box-shadow: 0 0 8px rgba(0,0,0,0.6) inset; }

/* Pause animation when data-playing is false */
.ticker-scroll[data-playing="false"] { animation-play-state: paused; }

/* Focus visible styles (for keyboard users) */
a:focus-visible, button:focus-visible { outline: 3px solid var(--alpha-cyan); outline-offset: 3px; }

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .ticker-scroll,
  .btn-slim-tg::before,
  .hero-badge-glow::after,
  .hero-badge-glow,
  .floating-dollar,
  #bg-canvas,
  .kinetic-title {
    animation: none !important;
    transition: none !important;
  }
  .ticker-scroll { animation-duration: 1ms !important; }
}
