/* =========================================
   TerminalIQ — Dark Trading Terminal Theme
   ========================================= */

:root {
  --bg: #05050f;
  --bg-surface: #0a0a1a;
  --bg-card: #0d0d24;
  --fg: #e8e8f0;
  --fg-muted: #6a6a8a;
  --fg-dim: #3a3a5a;
  --accent: #00ff88;
  --accent-dim: #00ff8820;
  --accent-glow: #00ff8840;
  --warn: #ffb800;
  --err: #ff4466;
  --border: #1a1a3a;
  --font-head: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --radius: 8px;
  --radius-sm: 4px;
}

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-head);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* NAVBAR */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 48px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  backdrop-filter: blur(12px);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.nav-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  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 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* HERO */
.hero {
  padding: 80px 48px 60px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse at center, #00ff8808 0%, transparent 70%);
  pointer-events: none;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--accent-glow);
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 28px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.8s ease-in-out infinite;
}

.hero-copy h1 {
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  color: var(--fg);
}

.hero-sub {
  font-size: 18px;
  color: var(--fg-muted);
  line-height: 1.65;
  max-width: 480px;
  margin-bottom: 40px;
}

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

.stat { display: flex; flex-direction: column; }
.stat-value {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 600;
  color: var(--accent);
}
.stat-label { font-size: 12px; color: var(--fg-muted); margin-top: 2px; }
.stat-divider { width: 1px; height: 36px; background: var(--border); }

/* TERMINAL MOCKUP */
.hero-terminal {
  position: relative;
  z-index: 1;
}

.terminal-window {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 12px;
  box-shadow: 0 0 60px #00ff8808, 0 20px 60px rgba(0,0,0,0.5);
}

.terminal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}

.term-dots { display: flex; gap: 6px; }
.term-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--fg-dim);
}
.term-dots span:first-child { background: #ff5f57; }
.term-dots span:nth-child(2) { background: #febc2e; }
.term-dots span:nth-child(3) { background: #28c840; }

.term-title { color: var(--fg-muted); font-size: 11px; }

.term-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
  animation: pulse 1.5s ease-in-out infinite;
}

.terminal-body { padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.term-line { display: flex; align-items: center; gap: 10px; padding: 3px 0; }
.term-ts { color: var(--fg-dim); font-size: 11px; flex-shrink: 0; }
.term-ok { color: var(--accent); }
.term-hl { color: #7dd3fc; }
.term-warn { color: var(--warn); }
.term-muted { color: var(--fg-dim); }
.term-muted::before { content: '// '; }

.terminal-footer {
  display: flex;
  justify-content: space-between;
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  color: var(--fg-muted);
  font-size: 11px;
}

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

.terminal-glow {
  position: absolute;
  inset: -1px;
  border-radius: 12px;
  background: transparent;
  border: 1px solid var(--accent-glow);
  pointer-events: none;
  z-index: -1;
}

/* LIVE FEED */
.livefeed {
  padding: 0 48px 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.feed-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-muted);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.5s ease-in-out infinite;
}

.feed-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.feed-row::-webkit-scrollbar { display: none; }

.feed-item {
  flex-shrink: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 20px;
  min-width: 180px;
}

.feed-item.feed-profit {
  border-color: var(--accent-glow);
  background: var(--accent-dim);
}

.feed-metric {
  display: block;
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 2px;
}

.feed-profit .feed-metric { color: var(--accent); }
.feed-item:not(.feed-profit) .feed-metric { color: var(--fg-muted); }

.feed-token {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-muted);
  margin-bottom: 4px;
}

.feed-action {
  display: block;
  font-size: 12px;
  color: var(--fg-dim);
}

/* FEATURES */
.features {
  padding: 80px 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.features-header {
  text-align: center;
  margin-bottom: 60px;
}

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

.features-header p {
  font-size: 18px;
  color: var(--fg-muted);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  border-color: var(--accent-glow);
  box-shadow: 0 0 30px var(--accent-dim);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--accent-dim);
  border: 1px solid var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* HOW IT WORKS */
.howitworks {
  padding: 80px 48px;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.hiw-header { margin-bottom: 56px; }
.hiw-header h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 700; letter-spacing: -0.02em; }

.hiw-steps {
  display: flex;
  align-items: center;
  gap: 0;
  justify-content: center;
}

.hiw-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 220px;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 40px;
  font-weight: 700;
  color: var(--fg-dim);
  margin-bottom: 16px;
  letter-spacing: -0.04em;
}

.hiw-step h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.hiw-step p { font-size: 14px; color: var(--fg-muted); line-height: 1.6; }

.step-connector {
  width: 80px;
  height: 1px;
  background: linear-gradient(to right, var(--border), var(--accent-glow), var(--border));
  margin-bottom: 40px;
  flex-shrink: 0;
}

/* CLOSING */
.closing {
  padding: 100px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.closing::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 400px;
  background: radial-gradient(ellipse at center, #00ff8806 0%, transparent 70%);
  pointer-events: none;
}

.closing-inner { position: relative; z-index: 1; }

.closing h2 {
  font-size: clamp(28px, 4vw, 50px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 20px;
}

.closing p {
  font-size: 18px;
  color: var(--fg-muted);
  max-width: 580px;
  margin: 0 auto 40px;
  line-height: 1.65;
}

.cta-label {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid var(--accent-glow);
  border-radius: 100px;
  background: var(--accent-dim);
}

/* FOOTER */
.site-footer {
  padding: 40px 48px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-inner { max-width: 400px; margin: 0 auto; }

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 12px;
}

.footer-tagline { font-size: 14px; color: var(--fg-muted); margin-bottom: 4px; }
.footer-sub { font-size: 12px; color: var(--fg-dim); }

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-copy { text-align: center; }
  .hero-sub { margin: 0 auto 32px; }
  .hero-stats { justify-content: center; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .hiw-steps { flex-direction: column; gap: 20px; }
  .step-connector { width: 1px; height: 40px; background: linear-gradient(to bottom, var(--border), var(--accent-glow), var(--border)); }
}

@media (max-width: 600px) {
  .navbar { padding: 14px 20px; }
  .hero { padding: 48px 20px 40px; }
  .features { padding: 48px 20px; }
  .features-grid { grid-template-columns: 1fr; }
  .howitworks { padding: 48px 20px; }
  .closing { padding: 60px 20px; }
  .livefeed { padding: 0 20px 40px; }
  .feed-row { gap: 8px; }
  .feed-item { min-width: 150px; }
  .site-footer { padding: 32px 20px; }
}