:root {
  --bg: #0a0a0f;
  --bg-elevated: #12121a;
  --bg-card: #16161f;
  --fg: #e8e8ed;
  --fg-muted: #7a7a8c;
  --accent: #00e5a0;
  --accent-dim: rgba(0, 229, 160, 0.12);
  --warn: #ffb224;
  --warn-dim: rgba(255, 178, 36, 0.12);
  --error: #ff4d6a;
  --border: #1e1e2a;
  --font-display: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

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

.accent { color: var(--accent); }
.mono-tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem 4rem;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(0, 229, 160, 0.06) 0%, transparent 70%),
    var(--bg);
}

.hero-grid {
  max-width: 800px;
  text-align: center;
}

.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);
  border: 1px solid rgba(0, 229, 160, 0.2);
  padding: 0.4rem 1rem;
  border-radius: 2px;
  margin-bottom: 2rem;
}

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

.hero .lede {
  font-size: 1.15rem;
  color: var(--fg-muted);
  max-width: 600px;
  margin: 0 auto 3rem;
  line-height: 1.7;
}

.hero-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.stat { text-align: center; }
.stat-value {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
  font-family: var(--font-mono);
}
.stat-label {
  font-size: 0.8rem;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

.scan-line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.3;
}

/* ===== METRICS ===== */
.metrics {
  padding: 6rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.metrics-header {
  margin-bottom: 3rem;
}

.metrics-header h2 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 600;
  margin-top: 0.5rem;
  letter-spacing: -0.02em;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2rem;
}

.metric-card.highlight {
  border-color: rgba(0, 229, 160, 0.3);
  background: linear-gradient(135deg, var(--bg-card), rgba(0, 229, 160, 0.04));
}

.metric-number {
  font-family: var(--font-mono);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.3rem;
}

.metric-desc {
  font-size: 0.9rem;
  color: var(--fg-muted);
  margin-bottom: 1.2rem;
}

.metric-bar {
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.metric-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 1s ease;
}

.metric-fill.zero {
  width: 0;
  background: var(--error);
}

/* ===== CAPABILITIES ===== */
.capabilities {
  padding: 6rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.cap-header {
  margin-bottom: 3rem;
}

.cap-header h2 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 600;
  margin-top: 0.5rem;
  letter-spacing: -0.02em;
}

.cap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.2rem;
}

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

.cap-card:hover {
  border-color: rgba(0, 229, 160, 0.25);
}

.cap-icon {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-dim);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 2px;
  margin-bottom: 1rem;
}

.cap-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.cap-card p {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* ===== TERMINAL ===== */
.terminal-section {
  padding: 4rem 2rem 6rem;
  max-width: 800px;
  margin: 0 auto;
}

.terminal-window {
  background: #0d0d14;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

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

.terminal-dots {
  display: flex;
  gap: 6px;
}

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

.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }

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

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

.terminal-line { margin-bottom: 0.15rem; }

.prompt {
  color: var(--accent);
  margin-right: 0.5rem;
}

.output { color: var(--fg-muted); }

.ok {
  color: var(--accent);
  font-weight: 500;
}

.warn {
  color: var(--warn);
  font-weight: 500;
}

.warn-text { color: var(--warn); }

.cursor {
  color: var(--accent);
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* ===== CLOSING ===== */
.closing {
  padding: 8rem 2rem;
  text-align: center;
  background:
    radial-gradient(ellipse 50% 60% at 50% 100%, rgba(0, 229, 160, 0.05) 0%, transparent 70%),
    var(--bg);
}

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

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

.closing-text {
  font-size: 1.05rem;
  color: var(--fg-muted);
  line-height: 1.7;
}

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

.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-brand {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--fg);
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
  .hero { min-height: 80vh; padding: 4rem 1.5rem 3rem; }
  .hero-stats { gap: 1.5rem; }
  .stat-divider { display: none; }
  .stat-value { font-size: 1.4rem; }
  .metrics, .capabilities { padding: 4rem 1.5rem; }
  .terminal-body { font-size: 0.7rem; padding: 1rem; overflow-x: auto; }
  .footer-inner { flex-direction: column; text-align: center; }
}