:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #111118;
  --bg-card: #16161f;
  --bg-terminal: #0d0d14;
  --fg-primary: #e8e8ed;
  --fg-secondary: #8888a0;
  --fg-muted: #555570;
  --accent: #00d4aa;
  --accent-dim: rgba(0, 212, 170, 0.15);
  --red: #ff4d6a;
  --yellow: #ffc53d;
  --green: #00d4aa;
  --blue: #4d9fff;
  --border: #1e1e2e;
  --font-display: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

body {
  background: var(--bg-primary);
  color: var(--fg-primary);
  font-family: var(--font-display);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 2rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-grid {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(0, 212, 170, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 170, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

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

.hero-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

.accent {
  color: var(--accent);
}

.lede {
  font-size: 1.15rem;
  color: var(--fg-secondary);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  gap: 3rem;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--accent);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.25rem;
}

/* ---- TERMINAL ---- */
.hero-terminal {
  position: relative;
  z-index: 1;
  margin-top: 4rem;
  background: var(--bg-terminal);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  max-width: 900px;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}

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

.terminal-dot.red { background: var(--red); }
.terminal-dot.yellow { background: var(--yellow); }
.terminal-dot.green { background: var(--green); }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--fg-muted);
  margin-left: 0.5rem;
}

.terminal-body {
  padding: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 2;
}

.terminal-line {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.terminal-line.fade {
  opacity: 0.5;
}

.t-time {
  color: var(--fg-muted);
  margin-right: 0.75rem;
}

.t-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  margin-right: 0.5rem;
  letter-spacing: 0.05em;
}

.t-tag.bullish { background: rgba(0, 212, 170, 0.2); color: var(--green); }
.t-tag.bearish { background: rgba(255, 77, 106, 0.2); color: var(--red); }
.t-tag.neutral { background: rgba(136, 136, 160, 0.2); color: var(--fg-secondary); }

.t-ticker {
  color: var(--fg-primary);
  font-weight: 500;
  margin-right: 0.5rem;
}

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

.features-header {
  margin-bottom: 4rem;
}

.features-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.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: 16px;
  padding: 2.5rem;
  transition: border-color 0.3s;
}

.feature-card:hover {
  border-color: rgba(0, 212, 170, 0.3);
}

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

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--fg-secondary);
  line-height: 1.7;
}

/* ---- HOW / COMPARISON ---- */
.how {
  padding: 6rem 2rem 8rem;
  max-width: 1200px;
  margin: 0 auto;
}

.how h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 3rem;
  letter-spacing: -0.02em;
}

.how-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.how-col {
  border-radius: 16px;
  padding: 2.5rem;
  border: 1px solid var(--border);
}

.how-col.old {
  background: var(--bg-secondary);
}

.how-col.new {
  background: linear-gradient(135deg, rgba(0, 212, 170, 0.08), rgba(0, 212, 170, 0.02));
  border-color: rgba(0, 212, 170, 0.25);
}

.how-col-header {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  color: var(--fg-muted);
}

.how-col.new .how-col-header {
  color: var(--accent);
}

.how-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.how-col.old li {
  color: var(--fg-muted);
  padding-left: 1.5rem;
  position: relative;
}

.how-col.old li::before {
  content: '\2013';
  position: absolute;
  left: 0;
  color: var(--fg-muted);
}

.how-col.new li {
  color: var(--fg-primary);
  padding-left: 1.5rem;
  position: relative;
}

.how-col.new li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ---- CLOSING ---- */
.closing {
  padding: 8rem 2rem;
  text-align: center;
}

.closing-content {
  max-width: 700px;
  margin: 0 auto;
}

.closing h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.closing p {
  font-size: 1.1rem;
  color: var(--fg-secondary);
  line-height: 1.7;
}

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

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  font-weight: 600;
  font-size: 1rem;
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--fg-muted);
}

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

  .hero-stats {
    gap: 2rem;
  }

  .hero-terminal {
    margin-top: 2.5rem;
  }

  .terminal-body {
    font-size: 0.7rem;
    padding: 1rem;
  }

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

  .how-comparison {
    grid-template-columns: 1fr;
  }

  .features,
  .how {
    padding: 4rem 1.5rem;
  }

  .closing {
    padding: 5rem 1.5rem;
  }

  .footer-content {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  .stat-value {
    font-size: 1.3rem;
  }
}

/* ---- HERO CTA ---- */
.hero-cta {
  margin-bottom: 2.5rem;
}

.cta-btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--bg-primary);
  background: var(--accent);
  padding: 0.8rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: background 0.2s, transform 0.15s;
}

.cta-btn:hover {
  background: #00efc0;
  transform: translateY(-1px);
}
