:root {
  --bg: #FAFAF8;
  --fg: #111827;
  --accent: #D97706;
  --accent-light: #FEF3C7;
  --muted: #6B7280;
  --border: #E5E7EB;
  --card-bg: #FFFFFF;
  --dark: #111827;
  --amber: #D97706;
  --amber-light: #FEF3C7;
}

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* HEADER */
.site-header {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 900;
  font-size: 22px;
  color: var(--dark);
  letter-spacing: -0.5px;
}
.tagline {
  font-size: 13px;
  color: var(--muted);
}

/* HERO */
.hero {
  padding: 96px 24px 80px;
  text-align: center;
  background: var(--dark);
  color: #fff;
}
.hero-inner { max-width: 780px; margin: 0 auto; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--amber);
  margin-bottom: 28px;
  font-weight: 600;
}
.eyebrow-dot {
  width: 6px; height: 6px;
  background: var(--amber);
  border-radius: 50%;
  display: inline-block;
}
.hero-headline {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 900;
  font-size: clamp(40px, 7vw, 68px);
  line-height: 1.08;
  letter-spacing: -1.5px;
  color: #FFFFFF;
  margin-bottom: 24px;
}
.hero-sub {
  font-size: 18px;
  color: rgba(255,255,255,0.65);
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.7;
}
.hero-cta {
  display: inline-block;
  background: var(--amber);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  padding: 14px 32px;
  border-radius: 8px;
  margin-bottom: 56px;
  transition: background 0.2s;
  letter-spacing: 0.3px;
}
.hero-cta:hover { background: #b45309; }
.hero-metrics {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 36px;
}
.metric { padding: 0 40px; text-align: center; }
.metric-value {
  display: block;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  font-size: 24px;
  color: #fff;
  margin-bottom: 4px;
}
.metric-label { font-size: 13px; color: rgba(255,255,255,0.5); }
.metric-divider { width: 1px; height: 40px; background: rgba(255,255,255,0.12); }

/* SECTION LABELS */
.section-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  color: var(--amber);
  margin-bottom: 16px;
}

/* FEATURES */
.features { padding: 96px 24px; background: var(--bg); }
.features-inner { max-width: 1100px; margin: 0 auto; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.feature-card {
  background: var(--card-bg);
  padding: 40px 36px;
}
.feature-icon {
  width: 44px; height: 44px;
  background: var(--amber-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--amber);
  margin-bottom: 20px;
}
.feature-card h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--dark);
  margin-bottom: 10px;
}
.feature-card p { font-size: 14px; color: var(--muted); line-height: 1.7; }

/* ROUTING */
.routing { padding: 96px 24px; background: #fff; }
.routing-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.routing-headline {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  font-size: 36px;
  line-height: 1.2;
  color: var(--dark);
  margin-bottom: 20px;
}
.routing-desc { font-size: 16px; color: var(--muted); line-height: 1.8; }
.routing-diagram {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px 32px;
}
.flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}
.flow-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}
.flow-icon.inbound { background: #DBEAFE; color: #2563EB; }
.flow-icon.filter { background: #FEF3C7; color: #D97706; }
.flow-icon.distribute { background: #D1FAE5; color: #059669; }
.flow-icon.client { background: #EDE9FE; color: #7C3AED; }
.flow-step span { font-size: 12px; font-weight: 500; color: var(--muted); text-align: center; max-width: 60px; }
.flow-arrow { color: var(--border); flex-shrink: 0; }

/* BILLING */
.billing { padding: 96px 24px; background: var(--dark); color: #fff; }
.billing-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.billing-headline {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  font-size: 36px;
  color: #fff;
  margin-bottom: 20px;
  line-height: 1.2;
}
.billing-text p { font-size: 16px; color: rgba(255,255,255,0.6); line-height: 1.8; }
.billing-text .section-label { color: var(--amber); }
.invoice-mock {
  background: #1C1C2E;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 32px;
  max-width: 360px;
  margin: 0 auto;
}
.invoice-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.invoice-brand {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 900;
  font-size: 16px;
  color: #fff;
}
.invoice-badge {
  background: #059669;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}
.invoice-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.invoice-row.highlight { border-bottom: none; padding-top: 16px; color: #fff; font-weight: 600; font-size: 16px; }
.invoice-stripe { margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); }

/* DASHBOARDS */
.dashboards { padding: 96px 24px; background: var(--bg); }
.dashboards-inner { max-width: 1100px; margin: 0 auto; text-align: center; }
.dashboards-headline {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  font-size: clamp(28px, 4vw, 40px);
  color: var(--dark);
  margin-bottom: 20px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.dashboards-desc { font-size: 16px; color: var(--muted); max-width: 520px; margin: 0 auto 56px; line-height: 1.8; }
.metrics-row { display: flex; justify-content: center; gap: 48px; }
.metric-block { text-align: center; }
.metric-num { display: block; font-family: 'Fraunces', Georgia, serif; font-weight: 900; font-size: 52px; color: var(--dark); line-height: 1; }
.metric-block .metric-name { display: block; font-size: 13px; color: var(--muted); margin-top: 8px; text-transform: uppercase; letter-spacing: 1px; font-weight: 500; }

/* PRICING */
.pricing { padding: 96px 24px; background: #fff; }
.pricing-inner { max-width: 1100px; margin: 0 auto; text-align: center; }
.pricing-headline {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  font-size: clamp(28px, 4vw, 40px);
  color: var(--dark);
  margin-bottom: 56px;
  line-height: 1.2;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: left;
}
.pricing-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px 32px;
  position: relative;
}
.pricing-card.featured { border-color: var(--amber); background: var(--bg); }
.plan-badge {
  position: absolute;
  top: -13px;
  left: 32px;
  background: var(--amber);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}
.plan-name { font-family: 'Fraunces', Georgia, serif; font-weight: 700; font-size: 20px; color: var(--dark); margin-bottom: 8px; }
.plan-price { font-family: 'Fraunces', Georgia, serif; font-weight: 900; font-size: 42px; color: var(--dark); margin-bottom: 28px; }
.plan-price span { font-size: 18px; font-weight: 400; color: var(--muted); }
.plan-features { list-style: none; margin-bottom: 32px; }
.plan-features li { font-size: 14px; color: var(--muted); padding: 8px 0; border-bottom: 1px solid var(--border); }
.plan-features li:last-child { border-bottom: none; }
.plan-cta {
  display: block;
  text-align: center;
  background: var(--dark);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 13px 24px;
  border-radius: 8px;
  transition: background 0.2s;
}
.pricing-card.featured .plan-cta { background: var(--amber); }
.plan-cta:hover { opacity: 0.85; }

/* CLOSING */
.closing { padding: 96px 24px; background: var(--amber-light); }
.closing-inner { max-width: 680px; margin: 0 auto; text-align: center; }
.closing-headline {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 900;
  font-size: clamp(32px, 5vw, 48px);
  color: var(--dark);
  line-height: 1.15;
  margin-bottom: 20px;
}
.closing-sub { font-size: 17px; color: #5B4810; line-height: 1.8; margin-bottom: 36px; }
.closing-cta {
  display: inline-block;
  background: var(--dark);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 13px 28px;
  border-radius: 8px;
  transition: opacity 0.2s;
}
.closing-cta:hover { opacity: 0.8; }

/* FOOTER */
.site-footer { background: var(--dark); padding: 32px 24px; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; gap: 16px; }
.footer-logo { font-family: 'Fraunces', Georgia, serif; font-weight: 900; font-size: 18px; color: #fff; }
.footer-copy { font-size: 14px; color: rgba(255,255,255,0.4); }

/* RESPONSIVE */
@media (max-width: 768px) {
  .routing-inner, .billing-inner { grid-template-columns: 1fr; gap: 48px; }
  .feature-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .hero-metrics { flex-direction: column; gap: 24px; }
  .metric-divider { display: none; }
  .metrics-row { flex-wrap: wrap; gap: 32px; }
  .routing-diagram { flex-wrap: wrap; justify-content: center; gap: 12px; }
  .flow-arrow { display: none; }
  .hero { padding: 64px 24px; }
}
@media (max-width: 480px) {
  .metrics-row { gap: 24px; }
  .metric-num { font-size: 38px; }
  .feature-card { padding: 28px 24px; }
}