:root {
  --bg-primary: #0a0e17;
  --bg-secondary: #111827;
  --bg-card: #1a2235;
  --text-primary: #f0f4f8;
  --text-secondary: #8899aa;
  --text-muted: #556677;
  --accent: #d4a024;
  --accent-light: #f0c850;
  --accent-glow: rgba(212, 160, 36, 0.15);
  --border: #1e2d42;
  --success: #22c55e;
  --danger: #ef4444;
  --mono: 'JetBrains Mono', 'Fira Code', monospace;
  --sans: 'Outfit', sans-serif;
}

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

html { scroll-behavior: smooth; }

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

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

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(212, 160, 36, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 20%, rgba(212, 160, 36, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

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

.hero-badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(212, 160, 36, 0.3);
  padding: 0.4rem 1.2rem;
  border-radius: 2rem;
  margin-bottom: 2rem;
  background: var(--accent-glow);
}

.hero h1 {
  font-family: var(--sans);
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

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

.hero-sub {
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

.hero-stat-row {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 3rem;
}

.hero-stat {
  text-align: center;
}

.hero-stat .num {
  font-family: var(--mono);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent-light);
  display: block;
}

.hero-stat .label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.3rem;
}

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

.how-section .section-label {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  text-align: center;
  margin-bottom: 1rem;
}

.how-section h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 4rem;
  letter-spacing: -0.02em;
}

.steps {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.step {
  position: relative;
  padding: 2rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.step-num {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 1rem;
  opacity: 0.8;
}

.step h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.step p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ====== AUDIT DEMO / FEATURES ====== */
.audit-section {
  padding: 6rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.audit-section .section-label {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  text-align: center;
  margin-bottom: 1rem;
}

.audit-section h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.audit-section .section-sub {
  text-align: center;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 3rem;
  font-size: 1.05rem;
}

.invoice-demo {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 0.82rem;
}

.invoice-header {
  padding: 1rem 1.5rem;
  background: rgba(212, 160, 36, 0.06);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
}

.invoice-header .status {
  color: var(--accent);
  font-weight: 600;
}

.invoice-rows {
  padding: 0;
}

.invoice-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  padding: 0.9rem 1.5rem;
  border-bottom: 1px solid var(--border);
  align-items: center;
  transition: background 0.2s;
}

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

.invoice-row.flagged {
  background: rgba(239, 68, 68, 0.06);
}

.invoice-row .charge { color: var(--text-primary); font-weight: 500; }
.invoice-row .expected { color: var(--text-muted); }
.invoice-row .billed { color: var(--text-primary); }

.invoice-row .flag-ok {
  color: var(--success);
  font-weight: 600;
}

.invoice-row .flag-err {
  color: var(--danger);
  font-weight: 600;
}

.invoice-row .flag-dup {
  color: #f59e0b;
  font-weight: 600;
}

.invoice-summary {
  padding: 1.2rem 1.5rem;
  background: rgba(34, 197, 94, 0.06);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.invoice-summary .recovery {
  color: var(--success);
  font-weight: 700;
  font-size: 1rem;
}

.invoice-summary .auto-filed {
  color: var(--text-muted);
  font-size: 0.78rem;
}

/* ====== WHY SECTION ====== */
.why-section {
  padding: 6rem 2rem;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.why-section h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 3.5rem;
  letter-spacing: -0.02em;
}

.why-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

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

.why-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--text-primary);
}

.why-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

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

.closing h2 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.closing h2 .highlight { color: var(--accent); }

.closing p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto;
}

/* ====== FOOTER ====== */
footer {
  padding: 2.5rem 2rem;
  text-align: center;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.82rem;
}

footer .logo-text {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
  .steps {
    grid-template-columns: 1fr;
  }

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

  .invoice-row {
    grid-template-columns: 1.5fr 1fr 1fr 0.8fr;
    font-size: 0.72rem;
    padding: 0.7rem 1rem;
  }

  .invoice-header {
    font-size: 0.72rem;
    padding: 0.8rem 1rem;
  }

  .hero-stat-row {
    gap: 1.5rem;
  }

  .hero-stat .num {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .invoice-row {
    grid-template-columns: 1fr 1fr;
    gap: 0.3rem;
  }

  .invoice-row .expected { display: none; }

  .hero {
    padding: 4rem 1.5rem 3rem;
  }
}

/* ====== CTA BUTTON ====== */
.hero-cta {
  display: inline-block;
  margin-bottom: 2.5rem;
  padding: 0.9rem 2.2rem;
  background: var(--accent);
  color: #0a0e17;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s, transform 0.1s;
  letter-spacing: -0.01em;
}
.hero-cta:hover { background: var(--accent-light); transform: translateY(-1px); }
.hero-cta:active { transform: scale(0.98); }