/* ── Reset & Base ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0E0E12;
  --bg-2: #14141A;
  --bg-3: #1A1A22;
  --surface: #22222E;
  --border: #2A2A38;
  --amber: #F59E0B;
  --amber-dim: rgba(245,158,11,0.12);
  --amber-mid: rgba(245,158,11,0.5);
  --cream: #FAF7F2;
  --text: #C8C4BE;
  --text-dim: #6A6874;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

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

/* ── Nav ─────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 48px;
  background: rgba(14,14,18,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 17px;
  color: var(--cream);
  letter-spacing: -0.3px;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--cream); }

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

.section-title {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  color: var(--cream);
  margin-bottom: 64px;
}

/* ── Hero ────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 48px 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(245,158,11,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(245,158,11,0.04) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--amber-dim);
  border: 1px solid rgba(245,158,11,0.2);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--amber);
  margin-bottom: 28px;
}

.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--amber);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-headline {
  font-family: var(--serif);
  font-size: clamp(44px, 6vw, 68px);
  line-height: 1.05;
  color: var(--cream);
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.hero-headline em {
  font-style: italic;
  color: var(--amber);
}

.hero-sub {
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-dim);
  max-width: 500px;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.stat { display: flex; flex-direction: column; gap: 4px; }

.stat-value {
  font-family: var(--serif);
  font-size: 28px;
  color: var(--cream);
}

.stat-label {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.3;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
  align-self: center;
}

/* Hero Visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.geo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 12px;
  position: relative;
  z-index: 2;
}

.geo-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.geo-card-3 { grid-column: span 2; }

.geo-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.geo-val {
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 12px;
}

.geo-val.accent { color: var(--amber); }

.geo-bar {
  height: 4px;
  border-radius: 2px;
  background: var(--surface);
  position: relative;
}

.geo-bar::after {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: var(--pct);
  background: var(--text-dim);
  border-radius: 2px;
}

.geo-bar.accent::after { background: var(--amber); }

.geo-accent-ring {
  position: absolute;
  top: -30px; right: -30px;
  width: 120px; height: 120px;
  border: 1px solid var(--amber-mid);
  border-radius: 50%;
  z-index: 1;
}

.ring-2 {
  top: -10px; right: -10px;
  width: 80px; height: 80px;
  border-color: rgba(245,158,11,0.15);
}

.geo-connector {
  position: absolute;
  bottom: -20px; left: -20px;
  width: 100px; height: 100px;
  z-index: 3;
}

/* ── Trust ───────────────────────────────────────── */
.trust {
  padding: 40px 48px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.trust-inner {
  display: flex;
  align-items: center;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.trust-label {
  font-size: 12px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
  flex-shrink: 0;
}

.trust-logos {
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
}

.trust-logo {
  opacity: 0.4;
  transition: opacity 0.3s;
}

.trust-logo:hover { opacity: 0.7; }

/* ── How It Works ─────────────────────────────────── */
.how-it-works {
  padding: 120px 48px;
  background: var(--bg-2);
}

.hiw-inner { max-width: 1200px; margin: 0 auto; }

.hiw-steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.hiw-step {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: start;
  padding: 40px;
  background: var(--bg);
  transition: background 0.3s;
}

.hiw-step:hover { background: var(--bg-3); }

.step-num {
  font-family: var(--serif);
  font-size: 36px;
  color: var(--border);
  line-height: 1;
  font-style: italic;
  transition: color 0.3s;
}

.hiw-step:hover .step-num { color: var(--amber-mid); }

.step-body h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 10px;
}

.step-body p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.65;
}

/* ── Features ──────────────────────────────────────── */
.features {
  padding: 120px 48px;
}

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

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.feature-card {
  padding: 40px 36px;
  background: var(--bg);
  transition: background 0.3s;
}

.feature-card:hover { background: var(--bg-3); }

.feature-icon {
  margin-bottom: 24px;
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.65;
}

/* ── Calculator Teaser ───────────────────────────── */
.calc-teaser {
  padding: 120px 48px;
  background: var(--bg-2);
}

.calc-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.calc-left h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 3.5vw, 40px);
  color: var(--cream);
  line-height: 1.15;
  margin-bottom: 20px;
}

.calc-left > p {
  font-size: 16px;
  color: var(--text-dim);
  line-height: 1.65;
  margin-bottom: 40px;
}

.calc-demo {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.demo-row {
  display: flex;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.demo-key { color: var(--text-dim); }
.demo-val { color: var(--cream); font-weight: 500; }
.demo-val.accent { color: var(--amber); font-weight: 600; }
.result-row { background: var(--amber-dim); }
.demo-yield {
  padding: 10px 20px;
  font-size: 12px;
  color: var(--amber);
  font-weight: 500;
  background: var(--amber-dim);
  border-top: 1px solid rgba(245,158,11,0.2);
}

/* Viz */
.calc-viz {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
}

.viz-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-dim);
  margin-bottom: 20px;
}

.viz-bar-full {
  display: flex;
  border-radius: 8px;
  overflow: hidden;
  height: 44px;
  margin-bottom: 24px;
}

.viz-seg {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 16px;
  gap: 2px;
}

.viz-seg.federal { background: var(--amber); }
.viz-seg.prov { background: rgba(245,158,11,0.3); }

.viz-seg span { font-size: 11px; color: rgba(14,14,18,0.7); font-weight: 500; }
.viz-seg strong { font-size: 15px; color: var(--cream); font-weight: 600; }

.viz-yield {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 20px;
}

.yield-num {
  font-family: var(--serif);
  font-size: 36px;
  color: var(--cream);
}

.yield-label {
  font-size: 14px;
  color: var(--text-dim);
}

.viz-comp {
  background: var(--bg-3);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.comp-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
  color: var(--text-dim);
}

.comp-row span:last-child { color: var(--cream); font-weight: 500; }

.comp-row.traditional { background: var(--bg-2); }

.comp-diff {
  padding: 10px 16px;
  font-size: 12px;
  color: var(--amber);
  font-weight: 500;
  background: var(--amber-dim);
}

/* ── Closing ──────────────────────────────────────── */
.closing {
  padding: 120px 48px;
  text-align: center;
}

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

.closing h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 46px);
  color: var(--cream);
  line-height: 1.15;
  margin-bottom: 28px;
}

.closing > .closing-inner > p {
  font-size: 17px;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 32px;
}

.closing-rule {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
}

.closing-statement {
  font-family: var(--serif);
  font-size: 18px;
  font-style: italic;
  color: var(--amber) !important;
  line-height: 1.6;
  margin-bottom: 0 !important;
}

/* ── Footer ───────────────────────────────────────── */
.footer {
  padding: 60px 48px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  color: var(--cream);
}

.footer-tagline {
  font-size: 13px;
  color: var(--text-dim);
  flex: 1;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--cream); }

.footer-legal {
  width: 100%;
  font-size: 12px;
  color: var(--text-dim);
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* ── Mobile ───────────────────────────────────────── */
@media (max-width: 768px) {
  .nav { padding: 16px 24px; }
  .nav-links { display: none; }

  .hero { padding: 100px 24px 60px; }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { order: -1; }
  .hero-headline { font-size: 40px; }
  .hero-stats { gap: 20px; }
  .stat-value { font-size: 22px; }

  .trust { padding: 32px 24px; }
  .trust-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .trust-logos { gap: 24px; }

  .how-it-works,
  .features,
  .calc-teaser,
  .closing { padding: 80px 24px; }

  .hiw-steps,
  .feature-grid { grid-template-columns: 1fr; }

  .calc-inner { grid-template-columns: 1fr; gap: 48px; }

  .footer { padding: 40px 24px; }
  .footer-inner { gap: 16px; }
  .footer-tagline { flex: unset; }
}
