@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700;800&family=Manrope:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

body {
    font-family: 'Manrope', sans-serif;
    background-color: #09090B;
    color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.font-display { font-family: 'Outfit', sans-serif; }
.font-ticker { font-family: 'JetBrains Mono', monospace; }

::selection { background: #00FF66; color: #09090B; }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #09090B; }
::-webkit-scrollbar-thumb { background: #222225; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #00FF66; }

.noise-overlay {
    pointer-events: none;
    position: fixed;
    inset: 0;
    z-index: 90;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero-mask {
    mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
}

.text-glow { text-shadow: 0 0 40px rgba(0, 255, 102, 0.35); }

.grid-pattern {
    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: 44px 44px;
}

/* Hero masked line reveal */
.mask-line { overflow: hidden; }
.mask-line > span {
    display: block;
    transform: translateY(110%);
    animation: line-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.mask-line.d1 > span { animation-delay: 0.35s; }
.mask-line.d2 > span { animation-delay: 0.55s; }
@keyframes line-rise { to { transform: translateY(0); } }

/* Fade-up entrance */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.fade-up.d3 { animation-delay: 0.9s; }
.fade-up.d4 { animation-delay: 1.05s; }
.fade-up.d5 { animation-delay: 1.6s; }
@keyframes fade-up { to { opacity: 1; transform: translateY(0); } }

/* Scroll reveal (JS IntersectionObserver adds .visible) */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal.dl1 { transition-delay: 0.1s; }
.reveal.dl2 { transition-delay: 0.2s; }
.reveal.dl3 { transition-delay: 0.3s; }

/* Ticker marquee */
.marquee { overflow: hidden; }
.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 35s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

@keyframes float-slow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-16px); }
}
.animate-float-slow { animation: float-slow 6s ease-in-out infinite; }

/* Inputs */
.tw-input {
    width: 100%;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    padding: 0.875rem 1rem;
    color: #fff;
    font-size: 0.875rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.tw-input::placeholder { color: #52525B; }
.tw-input:focus {
    outline: none;
    border-color: #00FF66;
    box-shadow: 0 0 0 1px #00FF66;
}

/* Auth card entrance */
.card-in {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
    animation: card-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes card-in { to { opacity: 1; transform: translateY(0) scale(1); } }

.pop-in { animation: pop-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes pop-in {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Hero candle bars grow in */
.candle-bar {
    opacity: 0;
    transform: translateY(24px);
    animation: candle-rise 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes candle-rise { to { opacity: 1; transform: translateY(0); } }

/* Subtitle word-by-word reveal */
.sub-word {
    display: inline-block;
    margin-right: 0.28em;
    opacity: 0;
    transform: translateY(14px);
    animation: fade-up 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Floating particles */
.particle {
    position: absolute;
    border-radius: 9999px;
    background: #00FF66;
    opacity: 0.15;
    pointer-events: none;
    animation: particle-pulse 8s ease-in-out infinite;
}
@keyframes particle-pulse {
    0%, 100% { opacity: 0.15; transform: translateY(0); }
    50% { opacity: 0.7; transform: translateY(-28px); }
}

/* Scroll progress bar */
#scroll-progress { transform: scaleX(0); transform-origin: left; }
