:root {
  --ink:        #1A2332;
  --ink2:       #46556B;
  --ink3:       #7B8AA0;
  --line:       #E2E6EC;
  --line2:      #EEF1F5;
  --surface:    #FFFFFF;
  --surface2:   #F7F9FC;
  --surface3:   #EEF2F8;
  --brand:      #1D4ED8;
  --brand-deep: #1E3A8A;
  --brand-soft: #EAF1FE;
  --befriend:   #D97A1F;
  --befriend-bg:#FCF1E1;
  --high-risk:  #D63A3A;
  --high-risk-bg:#FCE9E9;
  --sgo:        #2F8F4E;
  --sgo-bg:     #E5F2E9;
  --dark:       #0E1828;
  --dark-2:     #142036;
  --serif: 'DM Serif Display', serif;
  --font: 'Inter Tight', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--surface);
  font-feature-settings: "ss01" on;
  line-height: 1.5;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: 0; color: inherit; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Top nav ─────────────────────────────────────────── */
.topnav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px 28px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
  letter-spacing: -0.2px;
}
.brand .logo {
  width: 26px; height: 26px; border-radius: 7px;
  background: var(--brand); color: #fff;
  display: grid; place-items: center;
  font-size: 13px; font-weight: 700;
}
.brand .brand-text em { color: var(--ink2); font-style: normal; font-weight: 500; }
.topnav nav {
  display: flex;
  gap: 22px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink2);
  margin-left: auto;
}
.topnav nav a:hover { color: var(--brand); }
.nav-actions { display: flex; gap: 10px; }

.btn-primary, .btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1px;
  white-space: nowrap;
  transition: all 120ms ease;
}
.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 1px 2px rgba(29,78,216,0.2);
}
.btn-primary:hover { background: var(--brand-deep); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: var(--surface2); }
.btn-primary.lg, .btn-ghost.lg { height: 48px; padding: 0 22px; font-size: 15px; }
.on-dark.btn-ghost { color: #fff; border-color: rgba(255,255,255,0.25); }
.on-dark.btn-ghost:hover { background: rgba(255,255,255,0.08); }

/* Ghost buttons inside the hero (dark gradient background) need light text. */
.hero .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.04);
}
.hero .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.55);
}

/* Same treatment in the dark Workflow block. */
.block.dark .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.04);
}
.block.dark .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* ── Hero ────────────────────────────────────────────── */
.hero {
  position: relative;
  background: linear-gradient(180deg, var(--brand-deep) 0%, var(--brand) 100%);
  color: #fff;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-bg svg { width: 100%; height: 100%; }
.hero-blob {
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0) 60%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: 84px 24px 88px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-inner > * { max-width: 100%; }
.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-bottom: 16px;
}
.eyebrow.on-dark { color: rgba(255,255,255,0.7); }
.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -1px;
  margin: 0 0 18px;
}
.hero h1 em { font-style: italic; color: #FFD580; }
.hero-sub {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255,255,255,0.86);
  max-width: 620px;
  margin: 0 auto 28px;
}
.hero-sub b { font-weight: 700; color: #fff; }
.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ── Block ───────────────────────────────────────────── */
.block { padding: 90px 0; }
.block.tight { padding: 72px 0; }
.block.dark {
  background: var(--dark);
  color: #fff;
}
.block.dark .block-head h2 { color: #fff; }
.block.dark .lede { color: rgba(255,255,255,0.78); }
.block.light { background: var(--surface2); }

.block-head { max-width: 760px; margin-bottom: 56px; }
.block-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.block-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 3.6vw, 42px);
  letter-spacing: -0.6px;
  line-height: 1.15;
  margin: 0 0 12px;
}
.lede {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink2);
  margin: 0;
}
.lede.on-dark { color: rgba(255,255,255,0.78); }

/* ── Problem ──────────────────────────────────────────── */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.problem-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px;
  position: relative;
}
.problem-card .num {
  font-family: var(--serif);
  font-size: 38px;
  color: var(--brand);
  line-height: 1;
  margin-bottom: 12px;
}
.problem-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--ink);
  letter-spacing: -0.2px;
}
.problem-card p { color: var(--ink2); margin: 0; font-size: 14.5px; line-height: 1.55; }

/* ── Lane cards ──────────────────────────────────────── */
.lane-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.lane-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  background: var(--surface);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
  cursor: default;
}
.lane-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.07);
}
.lane-coral { --lane-color: var(--high-risk); --lane-bg: var(--high-risk-bg); }
.lane-amber { --lane-color: var(--befriend);  --lane-bg: var(--befriend-bg); }
.lane-green { --lane-color: var(--sgo);       --lane-bg: var(--sgo-bg); }
.lane-card:hover { border-color: var(--lane-color); }
.lane-card .lane-icon {
  width: 56px; height: 56px;
  border-radius: 12px;
  background: var(--lane-bg);
  color: var(--lane-color);
  display: grid; place-items: center;
  margin-bottom: 18px;
}
.lane-card h3 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--lane-color);
}
.lane-trigger {
  font-size: 12px;
  color: var(--ink2);
  margin: 0 0 14px;
}
.lane-trigger b { color: var(--ink); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; font-size: 11px; }
.lane-card p { color: var(--ink); font-size: 14.5px; margin: 0 0 16px; line-height: 1.55; }
.lane-list {
  margin: 0; padding: 0; list-style: none;
  display: flex; flex-direction: column; gap: 6px;
}
.lane-list li {
  font-size: 13px;
  color: var(--ink2);
  padding: 6px 12px;
  border-radius: 6px;
  background: var(--lane-bg);
  border-left: 3px solid var(--lane-color);
}
.lane-note {
  margin-top: 36px;
  text-align: center;
  font-size: 13px;
  color: var(--ink2);
  font-style: italic;
}

/* ── Workflow ─────────────────────────────────────────── */
.workflow-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}
.workflow-tabs { display: flex; flex-direction: column; gap: 10px; }
.wf-tab {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: flex-start;
  padding: 18px 20px;
  border-radius: 12px;
  text-align: left;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  color: rgba(255,255,255,0.85);
  transition: all 150ms ease;
}
.wf-tab:hover { background: rgba(255,255,255,0.06); }
.wf-tab.active {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.30);
  color: #fff;
}
.wf-num {
  font-family: var(--serif);
  font-size: 24px;
  color: rgba(255,255,255,0.45);
  line-height: 1;
  padding-top: 2px;
  min-width: 36px;
}
.wf-tab.active .wf-num { color: #FFD580; }
.wf-tab h4 { font-size: 17px; margin: 0 0 4px; font-weight: 700; }
.wf-tab p { margin: 0; font-size: 13.5px; line-height: 1.5; color: rgba(255,255,255,0.7); }
.wf-tab.active p { color: rgba(255,255,255,0.85); }

.phone-stage { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.phone-frame {
  width: 320px;
  height: 660px;
  background: #1A1F2A;
  border-radius: 38px;
  padding: 8px;
  box-shadow: 0 30px 70px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.08);
  position: relative;
}
.phone-notch {
  position: absolute;
  top: 14px; left: 50%; transform: translateX(-50%);
  width: 90px; height: 22px;
  background: #0A0E16;
  border-radius: 12px;
  z-index: 2;
}
.phone-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 30px;
  background: #F7F9FC;
}
.phone-actions { display: flex; gap: 10px; }

/* ── AI pipeline ──────────────────────────────────────── */
.pipeline {
  display: grid;
  grid-template-columns: 1fr 24px 1fr 24px 1fr 24px 1fr;
  gap: 12px;
  align-items: stretch;
  margin-bottom: 32px;
}
.pipe-step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  position: relative;
  display: flex; flex-direction: column;
}
.pipe-num {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid; place-items: center;
  font-weight: 700;
  margin-bottom: 12px;
  font-size: 13px;
}
.pipe-step h4 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.1px;
}
.pipe-step p {
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink2);
  margin: 0 0 12px;
  flex: 1;
}
.pipe-step code {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  background: var(--surface3);
  padding: 1px 5px;
  border-radius: 4px;
  color: var(--ink);
}
.pipe-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 5px 9px;
  border-radius: 5px;
  align-self: flex-start;
}
.pipe-arrow {
  display: grid; place-items: center;
  font-size: 24px;
  color: var(--ink3);
  font-weight: 300;
}

.ai-callout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  padding: 22px 26px;
  background: var(--brand-soft);
  border-radius: 14px;
  border-left: 4px solid var(--brand);
}
.ai-callout-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: grid; place-items: center;
}
.ai-callout h4 { margin: 0 0 4px; font-size: 16px; color: var(--brand-deep); }
.ai-callout p { margin: 0; font-size: 13.5px; color: var(--ink2); line-height: 1.5; }

/* ── Supervisor ───────────────────────────────────────── */
.supervisor-row {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 50px;
  align-items: center;
}
.supervisor-points { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 22px; }
.supervisor-points li { display: grid; grid-template-columns: auto 1fr; gap: 14px; }
.bullet {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--brand-soft);
  display: grid; place-items: center;
  font-size: 18px;
}
.supervisor-points h4 { margin: 0 0 4px; font-size: 16px; color: var(--ink); font-weight: 700; }
.supervisor-points p { margin: 0; font-size: 14px; color: var(--ink2); line-height: 1.55; }

.laptop-frame {
  position: relative;
  background: #1A1F2A;
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.18);
}
.laptop-bar {
  display: flex; gap: 6px;
  padding: 6px 10px;
}
.laptop-bar span {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
}
.laptop-bar span:nth-child(1) { background: #FF5F57; }
.laptop-bar span:nth-child(2) { background: #FEBC2E; }
.laptop-bar span:nth-child(3) { background: #28C840; }
.laptop-frame iframe {
  width: 100%;
  height: 460px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  display: block;
}
.laptop-cta {
  position: absolute;
  bottom: -20px;
  right: 24px;
}

/* ── Impact ──────────────────────────────────────────── */
.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.impact-tile {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 16px;
  padding: 32px 26px;
  text-align: center;
}
.impact-num {
  font-family: var(--serif);
  font-size: 64px;
  font-weight: 400;
  color: #FFD580;
  letter-spacing: -1.5px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.impact-label {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  margin-top: 10px;
  font-weight: 500;
}
.impact-note {
  margin: 36px auto 0;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  max-width: 720px;
  font-style: italic;
}

/* ── Final CTA ───────────────────────────────────────── */
.cta { text-align: center; background: var(--surface2); }
.cta h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3.6vw, 40px);
  margin: 0 0 12px;
  letter-spacing: -0.5px;
}
.cta .lede { max-width: 620px; margin: 0 auto 40px; }
.cta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.cta-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px 26px;
  text-align: left;
  transition: all 150ms ease;
}
.cta-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.07);
  border-color: var(--brand);
}
.cta-emoji { font-size: 30px; margin-bottom: 14px; }
.cta-card h3 { margin: 0 0 8px; font-size: 18px; font-weight: 700; }
.cta-card p { margin: 0 0 16px; color: var(--ink2); font-size: 14px; line-height: 1.55; }
.cta-link { color: var(--brand); font-weight: 600; font-size: 14px; }

/* ── Footer ──────────────────────────────────────────── */
.footer {
  padding: 36px 0 44px;
  border-top: 1px solid var(--line);
  background: #fff;
}
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}
.footer-meta { color: var(--ink3); font-size: 12px; max-width: 540px; margin-top: 10px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; font-size: 13px; }
.footer-links a:hover { color: var(--brand); }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 920px) {
  .topnav nav { display: none; }
  .hero-inner { grid-template-columns: 1fr; padding: 60px 24px 80px; }
  .hero-art { order: -1; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .problem-grid, .lane-grid, .impact-grid, .cta-grid { grid-template-columns: 1fr; }
  .workflow-row, .supervisor-row { grid-template-columns: 1fr; gap: 40px; }
  .pipeline { grid-template-columns: 1fr; }
  .pipe-arrow { transform: rotate(90deg); }
  .footer-row { flex-direction: column; }
  .footer-links { align-items: flex-start; flex-direction: row; gap: 18px; }
}
