/* ============================================
   STAKING.ONL — Stake & Earn
   ============================================ */

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

:root {
    --purple: #8b5cf6;
    --blue: #6366f1;
    --cyan: #22d3ee;
    --gold: #f59e0b;
    --purple-glow: rgba(139, 92, 246, 0.3);
    --bg: #08080f;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-glass: rgba(15, 12, 30, 0.6);
    --text: #e4e0f0;
    --text-dim: #6b6b8a;
    --border: rgba(139, 92, 246, 0.15);
    --glass-border: rgba(255, 255, 255, 0.06);
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: var(--purple) transparent; }
body { font-family: var(--font-body); background: var(--bg); color: var(--text); overflow-x: hidden; -webkit-font-smoothing: antialiased; cursor: none; min-height: 100vh; display: flex; flex-direction: column; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-thumb { background: var(--purple); border-radius: 3px; }
a { color: inherit; text-decoration: none; cursor: none; }
button { cursor: none; background: none; border: none; }

#cursor { position: fixed; top: 0; left: 0; width: 8px; height: 8px; background: var(--purple); border-radius: 50%; pointer-events: none; z-index: 10000; transform: translate(-50%, -50%); transition: width 0.3s var(--ease), height 0.3s var(--ease); mix-blend-mode: screen; }
#cursor-follower { position: fixed; top: 0; left: 0; width: 40px; height: 40px; border: 1px solid var(--purple); border-radius: 50%; pointer-events: none; z-index: 9999; transform: translate(-50%, -50%); transition: width 0.4s var(--ease), height 0.4s var(--ease), opacity 0.3s; opacity: 0.4; }
#cursor.hover { width: 16px; height: 16px; }
#cursor-follower.hover { width: 60px; height: 60px; opacity: 0.2; }

#loader { position: fixed; inset: 0; background: var(--bg); z-index: 9999; display: flex; align-items: center; justify-content: center; transition: opacity 0.6s var(--ease), visibility 0.6s; }
#loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-inner { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.loader-hex { width: 36px; height: 36px; background: linear-gradient(135deg, var(--purple), var(--blue)); clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%); animation: hexPulse 1.5s ease-in-out infinite; }
@keyframes hexPulse { 0%,100% { transform: scale(1); opacity: 0.7; } 50% { transform: scale(1.15); opacity: 1; } }
.loader-bar { width: 180px; height: 2px; background: rgba(255,255,255,0.06); border-radius: 1px; overflow: hidden; }
.loader-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--blue), var(--purple), var(--cyan)); border-radius: 1px; transition: width 0.3s; }
.loader-text { font-size: 10px; letter-spacing: 5px; color: var(--text-dim); }

#bg-canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

#hero { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; z-index: 1; flex: 1; }
.hero-content { text-align: center; max-width: 720px; padding: 0 24px; position: relative; z-index: 2; }

.hero-badge { display: inline-flex; align-items: center; gap: 10px; padding: 8px 20px; border: 1px solid var(--border); border-radius: 100px; font-size: 11px; font-weight: 600; letter-spacing: 3px; color: var(--purple); background: rgba(139,92,246,0.05); margin-bottom: 32px; opacity: 0; transform: translateY(20px); }
.badge-dot { width: 6px; height: 6px; background: var(--purple); border-radius: 50%; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 var(--purple-glow); } 50% { box-shadow: 0 0 0 8px transparent; } }

.hero-title { font-family: var(--font-display); font-size: clamp(42px, 9vw, 100px); font-weight: 700; line-height: 1; letter-spacing: -1px; margin-bottom: 20px; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0 8px; }
.title-line { display: inline-block; color: var(--text); opacity: 0; transform: translateY(40px); }
.title-line.accent { background: linear-gradient(135deg, var(--purple), var(--cyan)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.title-dot { display: inline-block; color: var(--purple); -webkit-text-fill-color: var(--purple); font-size: 0.7em; opacity: 0; transform: scale(0); }

.hero-subtitle { font-size: clamp(14px, 1.7vw, 17px); line-height: 1.7; color: var(--text-dim); max-width: 480px; margin: 0 auto 24px; opacity: 0; transform: translateY(20px); }

/* Yield Ticker */
.yield-ticker { overflow: hidden; max-width: 520px; margin: 0 auto 28px; border: 1px solid var(--glass-border); border-radius: 8px; background: var(--bg-glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 10px 0; opacity: 0; transform: translateY(15px); }
.ticker-track { display: flex; gap: 20px; animation: tickerScroll 25s linear infinite; width: max-content; }
.ticker-item { display: flex; align-items: center; gap: 8px; white-space: nowrap; padding: 0 12px; }
.ticker-asset { font-family: var(--font-display); font-size: 12px; font-weight: 700; color: var(--gold); letter-spacing: 0.5px; }
.ticker-apy { font-family: var(--font-display); font-size: 12px; font-weight: 600; color: var(--text-dim); }
.ticker-apy.up { color: var(--cyan); }
@keyframes tickerScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Countdown */
.countdown { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 36px; opacity: 0; transform: translateY(20px); }
.cd-item { display: flex; flex-direction: column; align-items: center; min-width: 60px; }
.cd-val { font-family: var(--font-display); font-size: clamp(32px, 5vw, 48px); font-weight: 700; background: linear-gradient(135deg, var(--purple), var(--cyan)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1.1; }
.cd-label { font-size: 9px; letter-spacing: 2px; text-transform: uppercase; color: var(--text-dim); margin-top: 6px; }
.cd-sep { font-family: var(--font-display); font-size: clamp(26px, 4vw, 38px); color: var(--purple); opacity: 0.3; margin-top: -14px; animation: blink 1s ease-in-out infinite; }
@keyframes blink { 0%,100% { opacity: 0.3; } 50% { opacity: 0.05; } }

/* Notify */
.notify-section { margin-bottom: 32px; opacity: 0; transform: translateY(20px); }
.notify-text { font-size: 13px; color: var(--text-dim); margin-bottom: 14px; }
.notify-form { display: flex; gap: 8px; max-width: 400px; margin: 0 auto; }
.notify-input { flex: 1; padding: 12px 18px; background: var(--bg-card); border: 1px solid var(--glass-border); border-radius: 6px; color: var(--text); font-family: var(--font-body); font-size: 14px; outline: none; transition: border-color 0.3s; cursor: none; }
.notify-input::placeholder { color: var(--text-dim); }
.notify-input:focus { border-color: var(--purple); }
.notify-success { font-size: 13px; color: var(--purple); margin-top: 12px; display: none; }
.notify-success.show { display: block; }

.btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-body); font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; padding: 12px 24px; border-radius: 6px; transition: all 0.4s var(--ease); white-space: nowrap; }
.btn-primary { background: linear-gradient(135deg, var(--purple), var(--blue)); color: #fff; border: none; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 24px var(--purple-glow); }

/* Footer */
#footer { position: relative; z-index: 1; padding: 20px 24px; border-top: 1px solid var(--glass-border); }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-logo { font-family: var(--font-display); font-size: 14px; font-weight: 700; letter-spacing: 2px; }
.footer-logo span { color: var(--purple); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 12px; color: var(--text-dim); transition: color 0.3s; }
.footer-links a:hover { color: var(--purple); }
.footer-copy { font-size: 11px; color: var(--text-dim); width: 100%; text-align: center; margin-top: 8px; }

@media (max-width: 575.98px) {
    .notify-form { flex-direction: column; }
    .btn { width: 100%; justify-content: center; }
    #cursor, #cursor-follower { display: none; }
    body { cursor: auto; }
    .footer-inner { flex-direction: column; text-align: center; }
}

@media (min-width: 248px) and (max-width: 383.98px) {
    .hero-title { font-size: clamp(32px, 12vw, 60px); }
    .cd-item { min-width: 48px; }
    .cd-val { font-size: 28px; }
    .yield-ticker { max-width: 100%; }
}

@media (min-width: 1536px) {
    .hero-content { max-width: 800px; }
}
