/* === TOKENS === */
:root {
  --bg: #0d0b13;
  --bg-card: #141220;
  --bg-card-2: #1c1a2e;
  --fg: #ede8df;
  --fg-muted: #8a87a0;
  --accent: #00e87a;
  --accent-dim: rgba(0, 232, 122, 0.12);
  --border: rgba(237, 232, 223, 0.08);
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

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

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

/* === NAV === */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 48px;
  border-bottom: 1px solid var(--border);
}
.nav-brand {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.nav-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-family: var(--font-display);
  color: var(--fg-muted);
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse-glow 2s ease-in-out infinite;
}
@keyframes pulse-glow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* === HERO === */
.hero {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  padding: 64px 48px;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse 60% 50% at 70% 50%, rgba(0, 232, 122, 0.04) 0%, transparent 70%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  align-items: center;
}
.hero-eyebrow {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(48px, 5vw, 80px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 28px;
}
.hero-lede {
  font-size: 18px;
  line-height: 1.65;
  color: var(--fg-muted);
  max-width: 480px;
  font-weight: 300;
}

/* Signal monitor panel */
.hero-signals {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  font-family: var(--font-display);
}
.signal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.signal-title {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.signal-live {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 3px 8px;
  border-radius: 4px;
}
.signal-rows { display: flex; flex-direction: column; gap: 12px; }
.signal-row {
  display: grid;
  grid-template-columns: 80px 1fr 48px;
  align-items: center;
  gap: 12px;
}
.signal-artist {
  font-size: 13px;
  font-weight: 500;
  color: var(--fg);
}
.signal-bar-wrap {
  height: 4px;
  background: rgba(237,232,223,0.06);
  border-radius: 2px;
  overflow: hidden;
}
.signal-bar {
  height: 100%;
  width: var(--pct);
  background: var(--accent);
  border-radius: 2px;
  opacity: 0.8;
  box-shadow: 0 0 6px rgba(0, 232, 122, 0.4);
}
.signal-float {
  font-size: 12px;
  color: var(--accent);
  text-align: right;
  font-weight: 500;
}
.signal-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--fg-muted);
}
.signal-pulse { color: var(--accent); font-weight: 500; }

/* === PULSE STATS === */
.pulse {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}
.pulse-inner {
  display: flex;
  align-items: stretch;
  max-width: 1400px;
  margin: 0 auto;
}
.pulse-card {
  flex: 1;
  padding: 48px 48px;
  text-align: center;
}
.pulse-number {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--fg);
  line-height: 1;
  margin-bottom: 10px;
}
.pulse-label {
  font-size: 14px;
  color: var(--fg-muted);
  font-weight: 300;
}
.pulse-divider {
  width: 1px;
  background: var(--border);
  align-self: stretch;
}

/* === MECHANICS === */
.mechanics {
  padding: 96px 48px;
  max-width: 1400px;
  margin: 0 auto;
}
.mechanics-header {
  text-align: center;
  margin-bottom: 72px;
}
.section-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.mechanics-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 16px;
  line-height: 1.1;
}
.mechanics-sub {
  font-size: 17px;
  color: var(--fg-muted);
  font-weight: 300;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}
.mechanics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.mech-card {
  background: var(--bg-card);
  padding: 36px 32px;
}
.mech-num {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 20px;
  opacity: 0.7;
}
.mech-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.mech-desc {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.6;
  font-weight: 300;
}

/* === ENGINE === */
.engine {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 96px 48px;
}
.engine-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  max-width: 1400px;
  margin: 0 auto;
  align-items: start;
}
.engine-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--fg);
  line-height: 1.15;
  margin-bottom: 24px;
}
.engine-desc {
  font-size: 16px;
  color: var(--fg-muted);
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 40px;
}
.engine-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.eng-stat {
  background: var(--bg-card-2);
  padding: 20px 16px;
  text-align: center;
}
.eng-val {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}
.eng-key {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
  font-family: var(--font-display);
}
.eng-action .eng-val { color: var(--accent); }

/* Price tape */
.price-tape {
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.tape-row {
  display: grid;
  grid-template-columns: 80px 1fr 100px;
  padding: 16px 20px;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-display);
  font-size: 13px;
  align-items: center;
}
.tape-row:last-child { border-bottom: none; }
.tape-side {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  font-weight: 600;
}
.tape-art { color: var(--fg); }
.tape-price {
  text-align: right;
  font-weight: 600;
  color: var(--fg-muted);
}
.tape-price.tape-positive { color: var(--accent); }
.tape-badge {
  text-align: right;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  display: inline-block;
}
.tape-buy .tape-price { color: var(--accent); }
.tape-signal .tape-badge {
  background: var(--accent-dim);
  color: var(--accent);
}
.tape-floor .tape-price { color: var(--fg-muted); }
.tape-ceil .tape-price { color: var(--fg-muted); }
.tape-margin .tape-price.tape-positive { color: var(--accent); }
.tape-exec .tape-badge {
  background: rgba(0, 232, 122, 0.15);
  color: var(--accent);
}

/* === CLOSING === */
.closing {
  padding: 120px 48px;
  text-align: center;
  position: relative;
}
.closing::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 60% at 50% 50%, rgba(0, 232, 122, 0.05) 0%, transparent 70%);
  pointer-events: none;
}
.closing-inner { max-width: 800px; margin: 0 auto; position: relative; }
.closing-quote {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 400;
  line-height: 1.5;
  color: var(--fg-muted);
  margin-bottom: 48px;
  font-style: italic;
}
.closing-tagline {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
}

/* === FOOTER === */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 48px;
}
.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: -0.02em;
}
.footer-meta {
  font-size: 13px;
  color: var(--fg-muted);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-signals { max-width: 540px; }
  .mechanics-grid { grid-template-columns: repeat(2, 1fr); }
  .engine-inner { grid-template-columns: 1fr; }
  .pulse-inner { flex-direction: column; }
  .pulse-divider { display: none; }
  .pulse-card { border-bottom: 1px solid var(--border); }
  .pulse-card:last-child { border-bottom: none; }
}

@media (max-width: 600px) {
  .nav { padding: 20px 24px; }
  .hero { padding: 40px 24px; }
  .mechanics { padding: 64px 24px; }
  .mechanics-grid { grid-template-columns: 1fr; }
  .engine { padding: 64px 24px; }
  .closing { padding: 80px 24px; }
  .footer { padding: 32px 24px; }
  .footer-inner { flex-direction: column; gap: 8px; align-items: flex-start; }
  .engine-stats { grid-template-columns: repeat(2, 1fr); }
  .tape-row { grid-template-columns: 70px 1fr 80px; }
}