:root {
  --bg: #0a0a0f;
  --bg-secondary: #111118;
  --bg-card: #16161f;
  --fg: #e8e8ed;
  --fg-dim: #8888a0;
  --fg-muted: #55556a;
  --accent: #6ee7b7;
  --accent-secondary: #34d399;
  --gradient-start: #6ee7b7;
  --gradient-mid: #3b82f6;
  --gradient-end: #a78bfa;
  --border: #1e1e2e;
  --border-highlight: #2a2a3e;
  --radius: 12px;
  --radius-sm: 8px;
  --font-body: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

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

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(110, 231, 183, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(110, 231, 183, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 50% at 50% 40%, black 20%, transparent 70%);
}

.hero-content {
  max-width: 800px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--accent);
  border: 1px solid rgba(110, 231, 183, 0.2);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 32px;
}

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

.gradient-text {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-mid), var(--gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lede {
  font-size: 1.1rem;
  color: var(--fg-dim);
  max-width: 600px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

/* Terminal */
.terminal-preview {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: left;
  max-width: 580px;
  margin: 0 auto;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}

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

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

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

.terminal-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.terminal-body code {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--fg);
  line-height: 1.8;
}

.terminal-body code.dim { color: var(--fg-muted); }
.terminal-body code.success { color: var(--accent); }
.terminal-body .prompt { color: var(--accent); margin-right: 8px; }

/* ===== METRICS ===== */
.metrics {
  padding: 40px 24px 80px;
  max-width: 900px;
  margin: 0 auto;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.metric-card {
  background: var(--bg-secondary);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

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

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

/* ===== FEATURES ===== */
.features {
  padding: 100px 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: 64px;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--accent);
  display: block;
  margin-bottom: 16px;
}

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

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

.feature-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
  transition: border-color 0.3s;
}

.feature-card:hover {
  border-color: var(--border-highlight);
}

.feature-card.large {
  grid-column: span 2;
}

.feature-icon {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 20px;
  opacity: 0.6;
}

.feature-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

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

/* ===== COMPETITIVE ===== */
.competitive {
  padding: 100px 24px;
  max-width: 800px;
  margin: 0 auto;
}

.comparison-table {
  margin-top: 48px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.table-row {
  display: grid;
  grid-template-columns: 140px repeat(4, 1fr);
  border-bottom: 1px solid var(--border);
}

.table-row:last-child {
  border-bottom: none;
}

.table-row.header {
  background: var(--bg-card);
}

.table-row.header span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: var(--fg-muted);
  text-transform: uppercase;
}

.table-row.highlight {
  background: rgba(110, 231, 183, 0.05);
}

.table-row span {
  padding: 16px;
  text-align: center;
  font-size: 0.9rem;
}

.row-label {
  text-align: left !important;
  font-weight: 500;
  color: var(--fg);
}

.table-row.highlight .row-label {
  color: var(--accent);
  font-weight: 600;
}

.yes {
  color: var(--accent);
  font-size: 1.2rem !important;
}

.no {
  color: var(--fg-muted);
  font-size: 1.2rem !important;
  opacity: 0.4;
}

/* ===== CLOSING ===== */
.closing {
  padding: 120px 24px;
  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;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.closing p {
  font-size: 1.05rem;
  color: var(--fg-dim);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto;
}

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

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

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-logo {
  font-weight: 600;
  font-size: 0.95rem;
}

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

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

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero {
    padding: 80px 20px 60px;
    min-height: auto;
  }

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

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

  .feature-card.large {
    grid-column: span 1;
  }

  .table-row {
    grid-template-columns: 100px repeat(4, 1fr);
  }

  .table-row span {
    padding: 12px 8px;
    font-size: 0.75rem;
  }

  .table-row.header span {
    font-size: 0.6rem;
  }

  .footer-content {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

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

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

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

  .badge {
    font-size: 0.6rem;
    padding: 4px 12px;
  }
}