/* =========================================
   MarketPulse AI — Cyberpunk Finance Theme
   ========================================= */

:root {
  --bg: #050507;
  --surface: #0F0F14;
  --surface-2: #141420;
  --border: rgba(255, 255, 255, 0.06);
  --red: #FF2D55;
  --red-glow: rgba(255, 45, 85, 0.18);
  --red-dim: rgba(255, 45, 85, 0.08);
  --text: #F0F0F5;
  --text-dim: rgba(240, 240, 245, 0.5);
  --text-dimmer: rgba(240, 240, 245, 0.25);
  --up: #00E676;
  --down: #FF5252;
  --font-display: 'Syne', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-display);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---- TICKER TAPE ---- */
.ticker-tape {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  padding: 10px 0;
  white-space: nowrap;
}

.ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 0;
  animation: tickerScroll 40s linear infinite;
}

@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 20px;
  font-family: var(--font-mono);
  font-size: 11px;
}

.ticker-symbol {
  color: var(--text-dim);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.ticker-price {
  color: var(--text);
  font-weight: 500;
}

.ticker-change.up { color: var(--up); }
.ticker-change.down { color: var(--down); }

.ticker-sep {
  color: var(--text-dimmer);
  font-family: var(--font-mono);
  font-size: 10px;
}

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 8vw 80px;
  overflow: hidden;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 45, 85, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 45, 85, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

.hero::after {
  content: '';
  position: absolute;
  top: -200px;
  right: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 45, 85, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 620px;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 12px var(--red);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 12px var(--red); }
  50% { opacity: 0.6; box-shadow: 0 0 24px var(--red); }
}

.eyebrow-text {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--red);
}

.hero-headline {
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  color: var(--text);
}

.hero-sub {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-dim);
  max-width: 500px;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
}

.stat { display: flex; flex-direction: column; gap: 4px; }

.stat-value {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.stat-label {
  font-size: 11px;
  color: var(--text-dimmer);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ---- HERO CHART ---- */
.hero-chart {
  position: absolute;
  right: 8vw;
  top: 50%;
  transform: translateY(-50%);
  width: 340px;
  z-index: 1;
}

.chart-svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 20px rgba(255, 45, 85, 0.3));
}

.chart-overlay {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 12px;
}

.chart-price {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
}

.chart-change.up {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--up);
  font-weight: 500;
}

.chart-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dimmer);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

/* ---- SECTIONS ---- */
.section-header {
  margin-bottom: 48px;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-sub {
  font-size: 15px;
  color: var(--text-dim);
  max-width: 480px;
}

/* ---- MARKET GRID ---- */
.market-section {
  padding: 80px 8vw;
  border-top: 1px solid var(--border);
}

.market-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.market-card {
  background: var(--surface);
  padding: 28px;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.card-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  padding: 4px 8px;
  border-radius: 4px;
}

.stocks-badge { background: rgba(0, 230, 118, 0.1); color: var(--up); }
.crypto-badge { background: rgba(255, 45, 85, 0.1); color: var(--red); }
.ai-badge { background: rgba(100, 120, 255, 0.1); color: #8090FF; }

.card-live {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--up);
  letter-spacing: 0.1em;
}

.card-list { display: flex; flex-direction: column; gap: 12px; }

.card-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.card-row:last-child { border-bottom: none; padding-bottom: 0; }

.row-symbol {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.row-price {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-dim);
}

.row-change.up { color: var(--up); font-family: var(--font-mono); font-size: 12px; font-weight: 500; }
.row-change.down { color: var(--down); font-family: var(--font-mono); font-size: 12px; font-weight: 500; }

/* ---- AI INSIGHTS ---- */
.insights-section {
  padding: 80px 8vw;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.insights-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.insight-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  position: relative;
  transition: border-color 0.2s;
}

.insight-card:hover { border-color: rgba(255, 45, 85, 0.3); }

.insight-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--red);
  background: var(--red-dim);
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 16px;
}

.insight-headline {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text);
  margin-bottom: 20px;
}

.insight-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.insight-signal {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--up);
  letter-spacing: 0.1em;
}

.insight-time {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dimmer);
}

/* ---- PREMIUM ---- */
.premium-section {
  padding: 80px 8vw;
  border-top: 1px solid var(--border);
}

.premium-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: start;
}

.premium-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px;
  position: relative;
  transition: border-color 0.2s;
}

.premium-card:hover { border-color: rgba(255, 255, 255, 0.12); }

.premium-card.featured {
  background: var(--surface-2);
  border-color: rgba(255, 45, 85, 0.4);
  box-shadow: 0 0 40px rgba(255, 45, 85, 0.1);
}

.featured-label {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--red);
  color: white;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 4px 14px;
  border-radius: 20px;
}

.premium-tier {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.premium-price {
  font-size: 48px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  margin-bottom: 28px;
}

.per-mo {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-dim);
}

.premium-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.premium-features li {
  font-size: 14px;
  color: var(--text-dim);
  padding-left: 20px;
  position: relative;
}

.premium-features li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--red);
  font-family: var(--font-mono);
}

/* ---- DISCORD ---- */
.discord-section {
  padding: 60px 8vw;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.discord-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  border: 1px solid rgba(88, 101, 242, 0.3);
  border-radius: 16px;
  padding: 40px 48px;
  background: rgba(88, 101, 242, 0.04);
}

.discord-icon { flex-shrink: 0; }

.discord-text { flex: 1; }

.discord-heading {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.discord-sub {
  font-size: 14px;
  color: var(--text-dim);
}

.discord-stat {
  text-align: right;
  flex-shrink: 0;
}

.discord-count {
  display: block;
  font-family: var(--font-mono);
  font-size: 36px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.discord-label {
  font-size: 12px;
  color: var(--text-dimmer);
}

/* ---- CLOSING ---- */
.closing-section {
  padding: 120px 8vw;
  border-top: 1px solid var(--border);
  text-align: center;
}

.closing-headline {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 28px;
}

.closing-body {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dim);
  max-width: 560px;
  margin: 0 auto;
}

/* ---- FOOTER ---- */
.site-footer {
  padding: 48px 8vw;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-logo {
  font-weight: 800;
  font-size: 16px;
  color: var(--text);
  letter-spacing: -0.01em;
}

.footer-tagline {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dimmer);
  margin-left: 12px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-link {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}

.footer-link:hover { color: var(--text); }

.footer-legal {
  width: 100%;
  font-size: 11px;
  color: var(--text-dimmer);
  font-family: var(--font-mono);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .hero { padding: 80px 6vw 60px; flex-direction: column; }
  .hero-content { max-width: 100%; }
  .hero-chart { position: static; width: 100%; transform: none; margin-top: 40px; }
  .market-grid { grid-template-columns: 1fr; }
  .insights-grid { grid-template-columns: 1fr; }
  .premium-grid { grid-template-columns: 1fr; }
  .discord-inner { flex-direction: column; text-align: center; }
  .discord-stat { text-align: center; }
  .site-footer { flex-direction: column; align-items: flex-start; }
  .hero-stats { gap: 20px; }
}

@media (max-width: 480px) {
  .hero-headline { font-size: 36px; }
  .stat-value { font-size: 22px; }
  .premium-price { font-size: 36px; }
  .closing-headline { font-size: 28px; }
  .market-section, .insights-section, .premium-section { padding: 60px 6vw; }
}