:root {
  --bg: #0A1628;
  --bg-alt: #0F1E35;
  --surface: #142340;
  --accent: #F59E0B;
  --accent-dim: rgba(245,158,11,0.12);
  --fg: #F0F4FA;
  --fg-muted: #8BA3C4;
  --fg-dim: rgba(240,244,250,0.5);
  --border: rgba(139,163,196,0.12);
  --radius: 8px;
  --font-display: 'Syne', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

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

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

/* ─── NAVBAR ─────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,22,40,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.nav-tagline {
  font-size: 12px;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ─── HERO ──────────────────────────── */
.hero {
  padding: 80px 24px 64px;
  max-width: 1200px;
  margin: 0 auto;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--fg-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.hero-lede {
  font-size: 17px;
  color: var(--fg-muted);
  line-height: 1.65;
  max-width: 480px;
  margin-bottom: 40px;
}
.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.hero-img {
  width: 100%;
  display: block;
}
.hero-image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  gap: 0;
  background: linear-gradient(to top, rgba(10,22,40,0.95), transparent);
  padding: 24px 20px 16px;
}
.overlay-stat {
  flex: 1;
  text-align: center;
}
.overlay-stat + .overlay-stat {
  border-left: 1px solid var(--border);
}
.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
}
.stat-label {
  display: block;
  font-size: 10px;
  color: var(--fg-muted);
  line-height: 1.4;
  margin-top: 2px;
}

/* Hero side */
.stats-row {
  display: flex;
  gap: 0;
  margin-bottom: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat-block {
  flex: 1;
  padding: 20px 16px;
  text-align: center;
}
.stat-divider {
  width: 1px;
  background: var(--border);
}
.stat-num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-desc {
  font-size: 11px;
  color: var(--fg-muted);
  line-height: 1.5;
}
.hero-description {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.hero-description p {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.7;
}

/* ─── HOW IT WORKS ──────────────────── */
.howitworks {
  background: var(--bg-alt);
  padding: 80px 24px;
}
.section-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  font-weight: 500;
}
.section-heading {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 48px;
  max-width: 640px;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
}
.step-number {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 20px;
  opacity: 0.6;
}
.step-icon {
  margin-bottom: 16px;
}
.step-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}
.step-card p {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* ─── FEATURES ───────────────────────── */
.features {
  padding: 80px 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.features-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.features-desc {
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.65;
  margin-bottom: 32px;
}
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.feature-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.feature-check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.feature-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}
.feature-sub {
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.6;
}
.feature-img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: block;
}
.feature-img-caption {
  font-size: 11px;
  color: var(--fg-dim);
  text-align: center;
  margin-top: 10px;
}

/* ─── RULES ENGINE ───────────────────── */
.rulesengine {
  background: var(--bg-alt);
  padding: 80px 24px;
}
.rulesengine-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.rules-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(245,158,11,0.25);
  background: var(--accent-dim);
  padding: 5px 10px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.rules-heading {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  max-width: 720px;
  margin-bottom: 40px;
}
.rules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}
.rule-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.rule-form {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}
.rule-checklist {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.rule-item {
  font-size: 12px;
  color: var(--fg-muted);
  display: flex;
  justify-content: space-between;
}
.rule-status {
  font-weight: 600;
}
.rule-status.ok { color: #34D399; }
.rule-status.warning { color: var(--accent); }
.rule-status-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 20px;
}
.rule-status-badge.ready { background: rgba(52,211,153,0.12); color: #34D399; }
.rule-status-badge.action { background: rgba(245,158,11,0.15); color: var(--accent); }
.rules-footer {
  font-size: 13px;
  color: var(--fg-dim);
  margin-top: 16px;
}

/* ─── CLOSING ────────────────────────── */
.closing {
  padding: 96px 24px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}
.closing-inner { max-width: 800px; margin: 0 auto; }
.closing-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 24px;
}
.badge-dot.amber { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.closing-headline {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 24px;
}
.closing-body {
  font-size: 17px;
  color: var(--fg-muted);
  line-height: 1.65;
  max-width: 580px;
  margin: 0 auto 48px;
}
.closing-proof {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-bottom: 48px;
}
.proof-item { text-align: center; }
.proof-num {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}
.proof-label {
  font-size: 12px;
  color: var(--fg-muted);
  line-height: 1.5;
}
.closing-statement {
  font-size: 18px;
  color: var(--fg);
  font-weight: 500;
  line-height: 1.5;
  max-width: 520px;
  margin: 0 auto;
  font-style: italic;
}

/* ─── FOOTER ─────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 24px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
}
.footer-copy {
  font-size: 12px;
  color: var(--fg-dim);
}

/* ─── RESPONSIVE ─────────────────────── */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .features-inner { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .rules-grid { grid-template-columns: 1fr; }
  .closing-proof { gap: 24px; }
  .stats-row { flex-direction: column; }
  .stat-divider { width: 100%; height: 1px; }
}
@media (max-width: 600px) {
  .hero { padding: 48px 16px 40px; }
  .howitworks, .features, .rulesengine, .closing { padding: 56px 16px; }
  .closing-proof { flex-direction: column; gap: 20px; }
  .footer-inner { flex-direction: column; gap: 8px; text-align: center; }
  .nav-tagline { display: none; }
}