/* ============ Base ============ */
:root {
  --ink: #0f172a;
  --ink-soft: #475569;
  --ink-faint: #94a3b8;
  --bg: #ffffff;
  --bg-alt: #f6f7fb;
  --indigo: #5b54d9;
  --indigo-dark: #443dbb;
  --emerald: #10b981;
  --amber: #f59e0b;
  --rose: #ef4444;
  --card-border: #e6e8f0;
  --radius: 16px;
  --shadow: 0 8px 30px rgba(15, 23, 42, 0.07);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============ Reveal-on-scroll ============ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--card-border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-weight: 800;
}
.brand-nexus {
  letter-spacing: 0.18em;
  color: var(--indigo);
  font-size: 0.95rem;
}
.brand-divider { color: var(--ink-faint); font-weight: 500; }
.brand-client { font-size: 1.05rem; }
.header-tag {
  font-size: 0.8rem;
  color: var(--ink-soft);
  font-weight: 500;
}

/* ============ Hero ============ */
.hero {
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(91, 84, 217, 0.35), transparent 60%),
    radial-gradient(800px 400px at 0% 110%, rgba(16, 185, 129, 0.22), transparent 60%),
    var(--ink);
  color: #fff;
  padding: 84px 0 72px;
  text-align: center;
}
.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  color: #a5b4fc;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(2rem, 5.4vw, 3.4rem);
  line-height: 1.12;
  font-weight: 800;
  margin-bottom: 20px;
}
.hero h1 .accent {
  background: linear-gradient(90deg, #34d399, #6ee7b7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  max-width: 560px;
  margin: 0 auto 44px;
  color: #cbd5e1;
  font-size: 1.05rem;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 920px;
  margin: 0 auto;
}
.stat-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 26px 14px 20px;
  transition: transform 0.25s ease, background 0.25s ease;
}
.stat-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.12);
}
.stat-number {
  display: block;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 800;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.stat-prefix, .stat-suffix { font-size: 0.75em; }
.stat-label {
  display: block;
  margin-top: 6px;
  font-size: 0.82rem;
  color: #a7b3c9;
  font-weight: 500;
}
.hero-footnote {
  margin-top: 30px;
  font-size: 0.75rem;
  color: #64748b;
}

/* ============ Sections ============ */
.section { padding: 78px 0; }
.section-alt { background: var(--bg-alt); }
.section-title {
  font-size: clamp(1.55rem, 3.4vw, 2.2rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px;
}
.section-sub {
  text-align: center;
  color: var(--ink-soft);
  max-width: 620px;
  margin: 0 auto 44px;
}

/* ============ Before / After ============ */
.ba-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: stretch;
}
.ba-card {
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--card-border);
  background: #fff;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.ba-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.12);
}
.ba-before { border-top: 4px solid var(--rose); }
.ba-after  { border-top: 4px solid var(--emerald); }
.ba-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.ba-head h3 { font-size: 1.05rem; font-weight: 700; color: var(--ink-soft); }
.ba-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  border-radius: 999px;
}
.badge-before { background: #fee2e2; color: #b91c1c; }
.badge-after  { background: #d1fae5; color: #047857; }
.ba-list { list-style: none; }
.ba-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px dashed var(--card-border);
  font-size: 0.95rem;
}
.ba-list li:last-child { border-bottom: none; }
.mark {
  flex: 0 0 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  margin-top: 2px;
}
.mark-x { background: #fee2e2; color: #dc2626; }
.mark-check { background: #d1fae5; color: #059669; }
.ba-arrow {
  align-self: center;
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--indigo);
}

/* ============ Charts ============ */
.chart-toggle {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}
.toggle-btn {
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 9px 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.toggle-btn:hover { border-color: var(--indigo); color: var(--indigo); }
.toggle-btn.active {
  background: var(--indigo);
  border-color: var(--indigo);
  color: #fff;
}
.chart-wrap {
  position: relative;
  height: 380px;
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}
.chart-wrap-sm { height: 320px; }

.timeline-notes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 26px;
}
.note-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 18px 20px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.note-card strong { color: var(--ink); display: block; margin-bottom: 2px; }
.note-dot {
  flex: 0 0 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 7px;
}
.note-list {
  margin-top: 10px;
  padding-left: 18px;
}
.note-list li { margin-bottom: 6px; }
.note-list li:last-child { margin-bottom: 0; }
.note-list li strong { display: inline; margin: 0; }

/* ============ Beyond the lead count ============ */
.beyond-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.beyond-card {
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease;
}
.beyond-card:hover { transform: translateY(-4px); }
.beyond-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.badge-confirmed { background: #d1fae5; color: #047857; }
.badge-gap { background: #fef3c7; color: #b45309; }
.beyond-card h4 { font-size: 1.02rem; font-weight: 700; margin-bottom: 8px; }
.beyond-card p { font-size: 0.92rem; color: var(--ink-soft); }

/* ============ Top angle ============ */
.angle-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  align-items: center;
}
.angle-badge {
  display: inline-block;
  background: #ede9fe;
  color: var(--indigo-dark);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.angle-copy h3 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800;
  margin-bottom: 14px;
}
.angle-copy p { color: var(--ink-soft); margin-bottom: 14px; font-size: 0.98rem; }
.angle-stat-row { display: flex; gap: 14px; margin-top: 22px; }
.angle-stat {
  flex: 1;
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  transition: transform 0.25s ease;
}
.angle-stat:hover { transform: translateY(-3px); }
.angle-stat-num {
  display: block;
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--indigo);
}
.angle-stat-label { font-size: 0.78rem; color: var(--ink-soft); font-weight: 500; }

/* ============ What's next ============ */
.next-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.next-card {
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease;
}
.next-card:hover { transform: translateY(-4px); }
.next-num {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--indigo);
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}
.next-card h4 { font-size: 1.02rem; font-weight: 700; margin-bottom: 8px; }
.next-card p { font-size: 0.88rem; color: var(--ink-soft); }

/* ============ Footer ============ */
.site-footer {
  background: var(--ink);
  color: #94a3b8;
  padding: 46px 0;
  text-align: center;
  font-size: 0.85rem;
}
.footer-inner { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.brand-footer .brand-client { color: #fff; }
.site-footer a { color: #a5b4fc; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* ============ Mobile ============ */
@media (max-width: 820px) {
  .hero { padding: 60px 0 54px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 56px 0; }
  .ba-grid { grid-template-columns: 1fr; }
  .ba-arrow { transform: rotate(90deg); justify-self: center; }
  .angle-grid { grid-template-columns: 1fr; }
  .timeline-notes { grid-template-columns: 1fr; }
  .beyond-grid { grid-template-columns: 1fr; }
  .next-grid { grid-template-columns: 1fr; }
  .chart-wrap { height: 320px; padding: 14px; }
  .header-tag { display: none; }
}
