/* ============================================
   SPOTEX - Main Stylesheet
   Theme: Dark + Mint Green (#00E8B4)
   ============================================ */

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

:root {
  --bg-primary: #0a0e14;
  --bg-secondary: #11161e;
  --bg-tertiary: #161c26;
  --bg-card: #141b24;
  --border: #1e2a3a;
  --text-primary: #e6edf3;
  --text-secondary: #8b949e;
  --text-muted: #5c6670;
  --accent: #00E8B4;
  --accent-dim: rgba(0, 232, 180, 0.15);
  --accent-glow: rgba(0, 232, 180, 0.3);
  --green: #00E8B4;
  --red: #f85149;
  --red-dim: rgba(248, 81, 73, 0.15);
  --font-display: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-display);
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 50% -20%, rgba(0, 232, 180, 0.06), transparent),
    radial-gradient(ellipse 50% 40% at 80% 80%, rgba(0, 232, 180, 0.03), transparent),
    var(--bg-primary);
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* Button base */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border: none; border-radius: var(--radius);
  font-family: var(--font-display); font-size: 15px; font-weight: 600;
  cursor: pointer; transition: all var(--transition);
  text-decoration: none !important;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--accent); color: #0a0e14;
  box-shadow: 0 0 30px var(--accent-glow);
}
.btn-primary:hover {
  box-shadow: 0 0 50px var(--accent-glow);
  transform: translateY(-2px);
}
.btn-secondary {
  background: transparent; color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--accent); color: var(--accent);
  background: var(--accent-dim);
}
.btn-large { padding: 16px 36px; font-size: 17px; }

/* ==================== TICKER ==================== */
.ticker-wrap {
  width: 100%; overflow: hidden; background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 10px 0; position: relative;
  mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}
.ticker {
  display: flex; gap: 40px; overflow: hidden;
}
.ticker-track {
  display: flex; gap: 40px; flex-shrink: 0;
}
.ticker-item { display: flex; align-items: center; gap: 8px; white-space: nowrap; flex-shrink: 0; }
.ticker-symbol { font-weight: 700; font-size: 13px; color: var(--text-primary); font-family: var(--font-mono); }
.ticker-price { font-size: 13px; color: var(--text-secondary); font-family: var(--font-mono); }
.ticker-change { font-size: 12px; font-weight: 600; font-family: var(--font-mono); }
.ticker-change.up { color: var(--accent); }
.ticker-change.down { color: var(--red); }

/* Pause ticker on hover */
.ticker-wrap:hover .ticker-track { animation-play-state: paused; }

/* ==================== NAVIGATION ==================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 16px 40px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(10, 14, 20, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 22px; font-weight: 700; color: var(--text-primary);
  text-decoration: none !important;
}
.nav-logo .logo-dot {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800; color: #0a0e14;
}
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-link {
  color: var(--text-secondary); font-size: 14px; font-weight: 500;
  transition: color var(--transition); text-decoration: none !important;
  position: relative;
}
.nav-link:hover, .nav-link.active { color: var(--text-primary); }
.nav-link.active::after {
  content: ''; position: absolute; bottom: -6px; left: 0; right: 0;
  height: 2px; background: var(--accent); border-radius: 1px;
}

/* ==================== HERO ==================== */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden; padding: 120px 40px 80px;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
}
.hero-content {
  position: relative; z-index: 1; text-align: center; max-width: 800px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 100px;
  background: var(--accent-dim); border: 1px solid rgba(0,232,180,0.25);
  font-size: 13px; color: var(--accent); font-weight: 500;
  margin-bottom: 32px;
}
.hero-badge .pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot { 0%,100%{opacity:1;box-shadow:0 0 0 0 var(--accent-glow)} 50%{opacity:0.6;box-shadow:0 0 0 8px transparent} }

.hero-title {
  font-size: clamp(42px, 8vw, 72px); font-weight: 700;
  line-height: 1.1; margin-bottom: 24px;
}
.hero-title .gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, #00d4ff 50%, #a78bfa 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 18px; color: var(--text-secondary); line-height: 1.7;
  margin-bottom: 40px; max-width: 560px; margin-left: auto; margin-right: auto;
}
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ==================== FEATURES ==================== */
.section { padding: 100px 40px; }
.section-label {
  font-size: 13px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 2px; color: var(--accent); margin-bottom: 12px;
}
.section-title {
  font-size: clamp(28px, 5vw, 44px); font-weight: 700;
  margin-bottom: 16px; line-height: 1.2;
}
.section-desc {
  font-size: 16px; color: var(--text-secondary); max-width: 560px;
  margin-bottom: 48px;
}

.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px; max-width: 1200px; margin: 0 auto;
}
.feature-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px;
  transition: all 0.3s ease; cursor: default;
  position: relative; overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.feature-card:hover {
  border-color: rgba(0, 232, 180, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 8px 40px rgba(0, 232, 180, 0.08);
}
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--accent-dim); display: flex; align-items: center;
  justify-content: center; font-size: 22px; margin-bottom: 20px;
  color: var(--accent);
}
.feature-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

/* ==================== STATS ==================== */
.stats-section {
  background: var(--bg-secondary); border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px; max-width: 1200px; margin: 0 auto;
}
.stat-item { text-align: center; }
.stat-value {
  font-size: clamp(28px, 4vw, 40px); font-weight: 700;
  font-family: var(--font-mono); color: var(--accent);
  margin-bottom: 4px;
}
.stat-label { font-size: 14px; color: var(--text-secondary); }

/* ==================== MARKET PREVIEW ==================== */
.market-preview { max-width: 1200px; margin: 0 auto; }
.market-table {
  width: 100%; border-collapse: collapse;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.market-table th {
  text-align: left; padding: 14px 20px; font-size: 12px;
  font-weight: 600; text-transform: uppercase; letter-spacing: 1px;
  color: var(--text-muted); background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border);
}
.market-table td {
  padding: 14px 20px; font-size: 14px; font-family: var(--font-mono);
  border-bottom: 1px solid var(--border);
}
.market-table tbody tr {
  transition: background var(--transition); cursor: pointer;
}
.market-table tbody tr:hover { background: var(--bg-secondary); }
.market-table .pair-name { font-weight: 600; color: var(--text-primary); font-family: var(--font-display); }
.market-table .change-up { color: var(--accent); }
.market-table .change-down { color: var(--red); }

/* ==================== CTA ==================== */
.cta-section { text-align: center; }
.cta-card {
  max-width: 800px; margin: 0 auto; padding: 60px 40px;
  background: linear-gradient(135deg, rgba(0,232,180,0.08), rgba(0,212,255,0.05));
  border: 1px solid rgba(0,232,180,0.2); border-radius: 20px;
  position: relative; overflow: hidden;
}
.cta-card::after {
  content: ''; position: absolute; width: 300px; height: 300px;
  border-radius: 50%; background: var(--accent);
  filter: blur(120px); opacity: 0.1;
  top: -100px; right: -100px; pointer-events: none;
}

/* ==================== FOOTER ==================== */
.footer {
  padding: 40px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px; max-width: 1200px; margin: 0 auto;
}
.footer-text { font-size: 13px; color: var(--text-muted); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 13px; color: var(--text-secondary); text-decoration: none; }
.footer-links a:hover { color: var(--accent); }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
  .nav { padding: 12px 20px; }
  .nav-links { gap: 20px; }
  .hero { padding: 100px 20px 60px; }
  .section { padding: 60px 20px; }
  .features-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%,100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}
.animate-in { animation: fadeInUp 0.6s ease forwards; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
