:root {
  --bg: #0a0e17;
  --bg-raised: #111827;
  --bg-card: #151c2c;
  --fg: #e2e8f0;
  --fg-dim: #64748b;
  --accent: #22d3a7;
  --accent-glow: rgba(34, 211, 167, 0.15);
  --profit: #22d3a7;
  --loss: #ef4444;
  --yellow: #facc15;
  --cyan: #38bdf8;
  --border: rgba(226, 232, 240, 0.08);
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
}

/* ===== HERO ===== */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: 6rem 2rem 4rem;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(34, 211, 167, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(56, 189, 248, 0.04) 0%, transparent 50%),
    var(--bg);
}

.hero-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--accent);
  border: 1px solid rgba(34, 211, 167, 0.3);
  padding: 0.4rem 1rem;
  border-radius: 2px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  color: #fff;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.lede {
  font-size: 1.1rem;
  color: var(--fg-dim);
  max-width: 520px;
  line-height: 1.7;
}

/* Terminal mock */
.hero-terminal {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 0.82rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.7rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.red { background: #ef4444; }
.dot.yellow { background: #facc15; }
.dot.green { background: #22c55e; }

.terminal-title {
  margin-left: 0.75rem;
  color: var(--fg-dim);
  font-size: 0.75rem;
}

.terminal-body {
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.terminal-line {
  color: var(--fg);
  white-space: nowrap;
}

.t-dim { color: var(--fg-dim); }
.t-green { color: var(--profit); font-weight: 600; }
.t-profit { color: var(--profit); font-weight: 600; }
.t-loss { color: var(--loss); }
.t-yellow { color: var(--yellow); }
.t-cyan { color: var(--cyan); }
.t-label { color: var(--fg-dim); font-weight: 500; }

.blink {
  animation: blink-cursor 1.2s step-end infinite;
}

@keyframes blink-cursor {
  50% { opacity: 0.4; }
}

/* ===== METRICS ===== */
.metrics {
  padding: 3rem 2rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-raised);
}

.metrics-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.metric-value {
  display: block;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.3rem;
}

.metric-label {
  font-size: 0.85rem;
  color: var(--fg-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ===== FEATURES ===== */
.features {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.features h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: #fff;
  margin-bottom: 3rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  transition: border-color 0.2s;
}

.feature-card:hover {
  border-color: rgba(34, 211, 167, 0.25);
}

.feature-icon {
  font-size: 1.4rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 0.6rem;
}

.feature-card p {
  font-size: 0.92rem;
  color: var(--fg-dim);
  line-height: 1.65;
}

/* ===== HOW IT WORKS ===== */
.how {
  padding: 6rem 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.how h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: #fff;
  margin-bottom: 3rem;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.step {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.step-number {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: rgba(34, 211, 167, 0.2);
  min-width: 60px;
  line-height: 1;
  padding-top: 0.2rem;
}

.step-content h3 {
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.step-content p {
  font-size: 0.92rem;
  color: var(--fg-dim);
  line-height: 1.65;
}

/* ===== CLOSING ===== */
.closing {
  padding: 6rem 2rem;
  background:
    radial-gradient(ellipse at 50% 80%, rgba(34, 211, 167, 0.08) 0%, transparent 60%),
    var(--bg);
}

.closing-content {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.closing h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: #fff;
  margin-bottom: 1.5rem;
}

.closing p {
  font-size: 1.05rem;
  color: var(--fg-dim);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.closing-accent {
  color: var(--accent) !important;
  font-weight: 500;
  font-size: 1.1rem !important;
}

/* ===== FOOTER ===== */
.site-footer {
  padding: 3rem 2rem;
  border-top: 1px solid var(--border);
}

.footer-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 1rem;
}

.footer-disclaimer {
  font-size: 0.72rem;
  color: var(--fg-dim);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto 1rem;
  opacity: 0.7;
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--fg-dim);
  opacity: 0.5;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: 4rem 1.25rem 3rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .step {
    flex-direction: column;
    gap: 0.75rem;
  }

  .step-number {
    font-size: 1.6rem;
    min-width: auto;
  }

  .terminal-line {
    white-space: normal;
    font-size: 0.72rem;
  }
}

@media (max-width: 480px) {
  .metrics-grid {
    grid-template-columns: 1fr 1fr;
  }

  .metric-value {
    font-size: 1.8rem;
  }
}