:root {
  --bg: #0a0e17;
  --bg-surface: #111827;
  --bg-card: #1a2235;
  --fg: #e8edf5;
  --fg-muted: #8896b0;
  --accent: #3b82f6;
  --accent-glow: rgba(59, 130, 246, 0.15);
  --accent-bright: #60a5fa;
  --warning: #f59e0b;
  --border: rgba(136, 150, 176, 0.12);
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

* {
  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.65;
  -webkit-font-smoothing: antialiased;
}

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

.hero-inner {
  max-width: 820px;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--accent-bright);
  background: var(--accent-glow);
  border: 1px solid rgba(59, 130, 246, 0.25);
  padding: 0.4rem 1.2rem;
  border-radius: 100px;
  margin-bottom: 2rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.hero h1 .accent {
  color: var(--accent-bright);
}

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

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 2rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent-bright);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--fg-muted);
  line-height: 1.4;
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
}

/* ===== PROBLEM ===== */
.problem {
  padding: 6rem 2rem;
}

.problem-inner {
  max-width: 900px;
  margin: 0 auto;
}

.problem h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.2rem;
}

.problem-text {
  font-size: 1.1rem;
  color: var(--fg-muted);
  max-width: 700px;
  margin-bottom: 3rem;
  line-height: 1.7;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

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

.problem-icon {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.problem-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

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

/* ===== FEATURES ===== */
.features {
  padding: 6rem 2rem;
  background: var(--bg-surface);
}

.features-inner {
  max-width: 800px;
  margin: 0 auto;
}

.features h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
}

.features-sub {
  color: var(--fg-muted);
  font-size: 1.1rem;
  margin-bottom: 3.5rem;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.feature-row {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}

.feature-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.feature-number {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  min-width: 40px;
  padding-top: 0.2rem;
}

.feature-content h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

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

/* ===== COMPARISON ===== */
.comparison {
  padding: 6rem 2rem;
}

.comparison-inner {
  max-width: 820px;
  margin: 0 auto;
}

.comparison h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 2.5rem;
}

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

.comp-header,
.comp-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
}

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

.comp-header .comp-col {
  padding: 1rem 1.2rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.comp-row {
  border-top: 1px solid var(--border);
}

.comp-row .comp-col {
  padding: 1rem 1.2rem;
  font-size: 0.9rem;
}

.comp-label {
  font-weight: 500;
  color: var(--fg);
}

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

.comp-new {
  color: var(--accent-bright);
  font-weight: 500;
}

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

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

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

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

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

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

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
}

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

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

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

  .stat-divider {
    width: 60px;
    height: 1px;
  }

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

  .feature-row {
    flex-direction: column;
    gap: 0.5rem;
  }

  .feature-number {
    min-width: auto;
  }

  .comp-header,
  .comp-row {
    grid-template-columns: 1fr;
  }

  .comp-header .comp-col:first-child,
  .comp-row .comp-col:first-child {
    display: none;
  }

  .comp-row {
    padding: 0.8rem 0;
  }

  .comp-row .comp-col {
    padding: 0.3rem 1.2rem;
  }

  .comp-old::before {
    content: 'Today: ';
    font-weight: 600;
    color: var(--fg-muted);
  }

  .comp-new::before {
    content: 'PipeOps: ';
    font-weight: 600;
  }

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

  .closing {
    padding: 5rem 1.5rem;
  }

  section {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}