:root {
  --bg: #0a0a0f;
  --bg-surface: #12121a;
  --bg-elevated: #1a1a26;
  --fg: #e8e8ed;
  --fg-muted: #8888a0;
  --accent: #00ff88;
  --accent-dim: #00cc6a;
  --accent-glow: rgba(0, 255, 136, 0.15);
  --red: #ff4466;
  --yellow: #ffcc33;
  --mono: 'JetBrains Mono', monospace;
  --sans: 'Space Grotesk', sans-serif;
  --max-w: 1120px;
  --radius: 12px;
}

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

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

/* ── HERO ── */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: 80px 24px 60px;
}

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

.tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  border: 1px solid var(--accent-dim);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

.glow {
  color: var(--accent);
  text-shadow: 0 0 40px var(--accent-glow), 0 0 80px rgba(0, 255, 136, 0.08);
}

.lede {
  font-size: 1.15rem;
  color: var(--fg-muted);
  max-width: 480px;
  line-height: 1.7;
}

/* ── TERMINAL ── */
.terminal {
  background: var(--bg-surface);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5), 0 0 60px var(--accent-glow);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: var(--bg-elevated);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

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

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

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

.terminal-body {
  padding: 20px;
  font-family: var(--mono);
  font-size: 0.85rem;
  line-height: 1.9;
}

.line { color: var(--fg); }
.line.output { color: var(--fg-muted); padding-left: 18px; }
.prompt { color: var(--accent); margin-right: 8px; }
.flag { color: var(--yellow); }
.up { color: var(--accent); }
.metric { color: var(--accent-dim); }
.line.blink .cursor {
  animation: blink 1s step-end infinite;
}

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

/* ── LOOP SECTION ── */
.loop-section {
  padding: 100px 24px;
  max-width: var(--max-w);
  margin: 0 auto;
  text-align: center;
}

.loop-section h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-sub {
  color: var(--fg-muted);
  font-size: 1.05rem;
  margin-bottom: 56px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.loop-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.loop-step {
  background: var(--bg-surface);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 28px 24px;
  width: 180px;
  text-align: center;
  transition: border-color 0.3s;
}

.loop-step:hover {
  border-color: var(--accent-dim);
}

.step-num {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

.step-label {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.step-desc {
  font-size: 0.82rem;
  color: var(--fg-muted);
  line-height: 1.5;
}

.loop-arrow {
  font-size: 1.4rem;
  color: var(--accent-dim);
}

/* ── FEATURES ── */
.features {
  padding: 100px 24px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.features-header {
  margin-bottom: 56px;
}

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

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

.feature-card {
  background: var(--bg-surface);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 36px 32px;
  transition: border-color 0.3s, transform 0.2s;
}

.feature-card:hover {
  border-color: rgba(255,255,255,0.12);
  transform: translateY(-2px);
}

.feature-card.accent {
  border-color: var(--accent-dim);
  background: linear-gradient(135deg, var(--bg-surface) 0%, rgba(0,255,136,0.04) 100%);
}

.feature-icon {
  color: var(--accent);
  font-size: 1.2rem;
  margin-bottom: 16px;
}

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

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

/* ── METRICS ── */
.metrics {
  padding: 100px 24px;
  background: var(--bg-surface);
  border-top: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.metrics-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.metrics-text h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 16px;
}

.metrics-text p {
  color: var(--fg-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 440px;
}

.metrics-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.metric-card {
  background: var(--bg-elevated);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
}

.metric-value {
  font-family: var(--mono);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 6px;
}

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

/* ── CLOSING ── */
.closing {
  padding: 120px 24px;
  text-align: center;
}

.closing-inner {
  max-width: 640px;
  margin: 0 auto;
}

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

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

.closing-small {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--fg-muted);
  opacity: 0.6;
  margin-top: 32px;
}

/* ── FOOTER ── */
.site-footer {
  padding: 48px 24px;
  border-top: 1px solid rgba(255,255,255,0.04);
  text-align: center;
}

.footer-brand {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.footer-tagline {
  font-size: 0.82rem;
  color: var(--fg-muted);
  margin-bottom: 12px;
}

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

.footer-powered a {
  color: var(--fg-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .hero { min-height: auto; padding: 60px 20px 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
  .features-grid { grid-template-columns: 1fr; }
  .metrics-inner { grid-template-columns: 1fr; gap: 40px; }
  .loop-diagram { flex-direction: column; }
  .loop-arrow { transform: rotate(90deg); }
  .loop-step { width: 100%; max-width: 280px; }
}

@media (max-width: 480px) {
  .metrics-cards { grid-template-columns: 1fr; }
  .terminal-body { font-size: 0.75rem; padding: 14px; }
}