:root {
  --bg: #0a0a0f;
  --bg-elevated: #12121a;
  --bg-card: #16161f;
  --fg: #e8e8ed;
  --fg-muted: #8b8b9e;
  --accent: #00e59b;
  --accent-dim: rgba(0, 229, 155, 0.12);
  --accent-glow: rgba(0, 229, 155, 0.25);
  --border: #1e1e2a;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

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

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

/* ===== HERO ===== */
.hero {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 6rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0.4;
}

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

.hero-badge {
  display: inline-block;
  padding: 0.4rem 1.2rem;
  background: var(--accent-dim);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  border-radius: 100px;
  margin-bottom: 2rem;
  border: 1px solid rgba(0, 229, 155, 0.2);
}

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

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

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

/* Pipeline Visualization */
.hero-visual {
  margin-top: 4rem;
  position: relative;
  z-index: 1;
}

.pipeline-viz {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.pipe-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.node-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 12px;
  font-size: 1.2rem;
  color: var(--fg-muted);
  transition: all 0.3s;
}

.pipe-node.active .node-icon {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}

.pipe-node span {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--fg-muted);
  letter-spacing: 0.05em;
}

.pipe-node.active span {
  color: var(--accent);
}

.pipe-line {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--border));
  margin-bottom: 1.5rem;
}

/* ===== METRICS ===== */
.metrics {
  padding: 4rem 2rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.metrics-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
}

.metric {
  text-align: center;
}

.metric-value {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.metric-label {
  font-size: 0.85rem;
  color: var(--fg-muted);
  margin-top: 0.3rem;
  max-width: 180px;
}

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

/* ===== FEATURES ===== */
.features {
  padding: 6rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.features-header {
  max-width: 550px;
  margin-bottom: 4rem;
}

.features-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.features-header p {
  font-size: 1.05rem;
  color: var(--fg-muted);
  line-height: 1.7;
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
  transition: border-color 0.3s;
}

.feature-card:hover {
  border-color: rgba(0, 229, 155, 0.3);
}

.feature-number {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

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

/* ===== HOW ===== */
.how {
  padding: 6rem 2rem;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.how-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.how-text h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.how-text p {
  font-size: 1.05rem;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.how-stats {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-top: 0.5rem;
}

.stat-block {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.stat-icon {
  color: var(--accent);
  font-size: 1rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.stat-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.stat-text span {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.5;
}

/* ===== CLOSING ===== */
.closing {
  padding: 8rem 2rem;
  text-align: center;
  position: relative;
}

.closing::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0.2;
}

.closing-inner {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

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

.closing-sub {
  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: 1100px;
  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;
  letter-spacing: -0.02em;
}

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

/* ===== COMPARISON TABLE ===== */
.comparison {
  padding: 7rem 2rem;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

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

.comparison-header {
  max-width: 600px;
  margin-bottom: 3rem;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
  border: 1px solid rgba(0, 229, 155, 0.2);
  padding: 0.3rem 0.9rem;
  border-radius: 100px;
  background: var(--accent-dim);
}

.comparison-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

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

.comparison-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(0, 229, 155, 0.08);
  border: 1px solid rgba(0, 229, 155, 0.2);
  border-radius: 12px;
  padding: 0.9rem 1.5rem;
  margin-bottom: 3rem;
}

.badge-label {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}

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

.comparison-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 16px;
  border: 1px solid var(--border);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  background: var(--bg-card);
}

.comparison-table thead th {
  padding: 1.25rem 1.5rem;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}

.comparison-table thead th.th-label {
  text-align: left;
  color: var(--fg-muted);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.th-surge {
  background: rgba(0, 229, 155, 0.06) !important;
}

.th-brand {
  display: block;
  font-size: 1rem;
  font-weight: 700;
}

.th-ours {
  display: inline-block;
  background: var(--accent);
  color: #000;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: 100px;
  margin-top: 0.3rem;
}

.comparison-table tbody td {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  font-size: 0.88rem;
  color: var(--fg-muted);
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.col-label {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--fg) !important;
  font-size: 0.8rem;
  white-space: nowrap;
}

.col-surge {
  background: rgba(0, 229, 155, 0.04);
  border-left: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
  text-align: center;
}

.price-main {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.price-per {
  font-size: 1rem;
  font-weight: 500;
}

.price-sub {
  display: block;
  font-size: 0.75rem;
  color: var(--fg-muted);
  margin-top: 0.2rem;
}

.col-jungo, .col-encompass {
  text-align: center;
}

.col-jungo .price-main, .col-encompass .price-main {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.02em;
}

.tag-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.7rem;
  border-radius: 100px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--fg-muted);
}

.tag-green {
  background: var(--accent-dim);
  border-color: rgba(0, 229, 155, 0.25);
  color: var(--accent);
}

.check-text {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}

.warn-text {
  color: #f59e0b;
  font-size: 0.82rem;
}

.fail-text {
  color: #ef4444;
  font-size: 0.82rem;
}

.cta-btn {
  display: inline-block;
  background: var(--accent);
  color: #000;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.7rem 1.4rem;
  border-radius: 8px;
  text-decoration: none;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.cta-btn:hover { opacity: 0.85; color: #000; }

.cta-blocked {
  display: block;
  font-size: 0.75rem;
  color: var(--fg-muted);
  max-width: 130px;
  margin: 0 auto;
  line-height: 1.4;
}

.comparison-bottom {
  margin-top: 1.5rem;
}

.bottom-note {
  font-size: 0.72rem;
  color: var(--fg-muted);
  opacity: 0.6;
}

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

  .metrics-inner {
    flex-direction: column;
    gap: 2rem;
  }

  .metric-divider {
    width: 50px;
    height: 1px;
  }

  .metric-label {
    max-width: none;
  }

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

  .how-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .pipeline-viz {
    transform: scale(0.85);
  }

  .closing {
    padding: 5rem 1.5rem;
  }

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

  .comparison-badge {
    flex-direction: column;
    gap: 0.4rem;
    text-align: center;
  }

  .comparison-table-wrap {
    border-radius: 10px;
  }

  .comparison-table thead th {
    padding: 1rem 0.75rem;
    font-size: 0.78rem;
  }

  .price-main {
    font-size: 1.3rem;
  }

  .col-jungo .price-main, .col-encompass .price-main {
    font-size: 0.95rem;
  }
}