/* GeisterBio — landing page styles */

@import url('https://api.fontshare.com/v2/css?f[]=satoshi@400,500,700,900&display=swap');

:root {
  --bg: #FAF8F6;
  --bg-elevated: #FFFCFA;
  --ink: #0E0B1F;
  --ink-2: #2A2540;
  --ink-3: #5C5677;
  --ink-4: #8E89A6;
  --line: rgba(14, 11, 31, 0.08);
  --line-2: rgba(14, 11, 31, 0.14);
  --primary: #3727A4;
  --secondary: #7627A4;
  --tertiary: #2756A4;
  --primary-soft: rgba(55, 39, 164, 0.08);
  --secondary-soft: rgba(118, 39, 164, 0.08);
  --tertiary-soft: rgba(39, 86, 164, 0.08);
  --shadow-sm: 0 1px 2px rgba(14, 11, 31, 0.04), 0 1px 1px rgba(14, 11, 31, 0.03);
  --shadow-md: 0 4px 16px rgba(14, 11, 31, 0.05), 0 1px 3px rgba(14, 11, 31, 0.04);
  --shadow-lg: 0 24px 48px -12px rgba(55, 39, 164, 0.14), 0 8px 24px -8px rgba(14, 11, 31, 0.06);
  --shadow-glow: 0 0 0 1px rgba(55, 39, 164, 0.06), 0 24px 64px -20px rgba(55, 39, 164, 0.22);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --max: 1240px;
  --gutter: 32px;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Satoshi', system-ui, -apple-system, sans-serif;
  font-feature-settings: "ss01", "ss02", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

html { scroll-behavior: smooth; }

body {
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  letter-spacing: -0.005em;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }

/* ── Layout ───────────────────────────────────────────── */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
}
:root { --nav-offset: 140px; }
html { scroll-padding-top: var(--nav-offset); }
section { position: relative; }
section[id] { scroll-margin-top: var(--nav-offset); }
@media (max-width: 700px) {
  :root { --nav-offset: 104px; }
}

/* ── Type ─────────────────────────────────────────────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(55, 39, 164, 0.12);
}
h1, h2, h3, h4 {
  font-family: 'Satoshi', sans-serif;
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-weight: 900; font-size: clamp(44px, 6.2vw, 88px); line-height: 0.98; letter-spacing: -0.045em; }
h2 { font-weight: 700; font-size: clamp(32px, 3.8vw, 56px); line-height: 1.04; letter-spacing: -0.035em; }
h3 { font-weight: 700; font-size: 22px; line-height: 1.2; letter-spacing: -0.02em; }
p { margin: 0; color: var(--ink-2); text-wrap: pretty; }
.lede { font-size: clamp(17px, 1.4vw, 21px); line-height: 1.5; color: var(--ink-2); max-width: 60ch; }

/* ── Buttons ──────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.005em;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, background .2s, color .2s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(14,11,31,0.4), inset 0 1px 0 rgba(255,255,255,0.08);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 32px -10px rgba(55,39,164,0.5); background: var(--primary); }
.btn-secondary {
  background: rgba(255,255,255,0.6);
  color: var(--ink);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(10px);
}
.btn-secondary:hover { background: #fff; transform: translateY(-1px); border-color: var(--ink); }
.btn .arrow { transition: transform .25s; }
.btn:hover .arrow { transform: translate(2px, -2px); }

/* ── Nav ──────────────────────────────────────────────── */
.nav {
  position: fixed; top: 16px; left: 0; right: 0;
  z-index: 50;
  display: flex; justify-content: center;
  pointer-events: none;
}
.nav-inner {
  pointer-events: auto;
  display: flex; align-items: center; gap: 31px;
  padding: 11px 15px 11px 24px;
  background: rgba(250, 248, 246, 0.72);
  backdrop-filter: saturate(140%) blur(18px);
  -webkit-backdrop-filter: saturate(140%) blur(18px);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-md);
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; letter-spacing: -0.02em; font-size: 17.6px; }
.brand-mark {
  width: 44px; height: 44px;
  object-fit: contain;
  display: block;
}
.nav-links { display: flex; gap: 24px; }
.nav-links a {
  font-size: 15.4px; color: var(--ink-2); font-weight: 500;
  transition: color .2s;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover { color: var(--primary); }
.nav-links a.active {
  color: var(--primary);
  border-bottom-color: rgba(55,39,164,0.35);
}
.nav-cta { font-size: 14.3px; padding: 11px 18px; }
@media (max-width: 860px) { .nav-links { display: none; } }
@media (max-width: 700px) {
  .nav {
    top: 10px;
    padding: 0 12px;
  }
  .nav-inner {
    width: 100%;
    max-width: calc(100vw - 24px);
    gap: 10px;
    justify-content: space-between;
    padding: 8px 10px 8px 12px;
    overflow: hidden;
  }
  .brand {
    min-width: 0;
    flex: 1 1 auto;
    gap: 8px;
    font-size: 16px;
    white-space: nowrap;
  }
  .brand-mark {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
  }
  .brand span {
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .nav-cta {
    flex: 0 0 auto;
    padding: 10px 14px;
    font-size: 14px;
  }
  .nav-cta .arrow {
    display: none;
  }
}

/* ── Hero ─────────────────────────────────────────────── */
.hero {
  padding: 160px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(14,11,31,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(14,11,31,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 80%);
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  width: 900px; height: 900px;
  top: -300px; left: 50%; transform: translateX(-50%);
  background:
    radial-gradient(circle at 50% 50%, rgba(118, 39, 164, 0.18), transparent 50%),
    radial-gradient(circle at 30% 60%, rgba(39, 86, 164, 0.12), transparent 60%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero { padding-top: 130px; }
}

.hero h1 {
  font-size: clamp(32px, 4.36vw, 62px);
  line-height: 1.04;
  letter-spacing: 0;
}
.hero h1 .grad {
  background: linear-gradient(115deg, var(--primary) 0%, var(--secondary) 56%, var(--tertiary) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.hero-sub { margin-top: 26px; }
.hero-ctas { margin-top: 36px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-meta { margin-top: 56px; display: flex; gap: 32px; align-items: center; flex-wrap: wrap; }
.hero-meta .meta {
  display: flex; flex-direction: column; gap: 4px;
}
.hero-meta .meta .k { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-4); }
.hero-meta .meta .v { font-size: 14px; font-weight: 500; color: var(--ink); }
.hero-meta .div { width: 1px; height: 28px; background: var(--line-2); }

/* Hero device — bioprinter placeholder */
.hero-visual {
  position: relative;
  aspect-ratio: 1448 / 1086;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  isolation: isolate;
}
.hero-visual::before,
.hero-visual::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
.hero-visual::before {
  inset: 2% -8% 4% -10%;
  z-index: -1;
  background:
    radial-gradient(ellipse 58% 42% at 54% 46%, rgba(255,255,255,0.72), transparent 68%),
    radial-gradient(ellipse 72% 54% at 54% 50%, rgba(55,39,164,0.14), transparent 74%);
  filter: blur(18px);
}
.hero-visual::after {
  left: 12%;
  right: 4%;
  bottom: 2%;
  height: 18%;
  z-index: 0;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(14,11,31,0.22), rgba(14,11,31,0.08) 52%, transparent 76%);
  filter: blur(18px);
  transform: rotate(-2deg);
}
.hv-header {
  position: absolute; top: 0; left: 0; right: 0;
  padding: 16px 20px;
  display: flex; align-items: center; justify-content: space-between;
  font-family: ui-monospace, 'SF Mono', monospace;
  font-size: 11px; letter-spacing: 0.08em;
  color: var(--ink-3);
  background: transparent;
  z-index: 3;
}
.hv-header .live { display: flex; align-items: center; gap: 8px; }
.hv-header .live::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: #22A06B;
  box-shadow: 0 0 0 4px rgba(34, 160, 107, 0.18);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.hv-stage {
  position: absolute;
  top: 48px; left: 24px; right: 24px; bottom: 100px;
  border-radius: 18px;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(118,39,164,0.18), transparent 60%),
    linear-gradient(180deg, #1C133A 0%, #0E0B1F 100%);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06), inset 0 -40px 80px rgba(0,0,0,0.4);
}
/* Microfluidic channels */
.hv-stage::before {
  content: "";
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent 0 18px, rgba(118,39,164,0.18) 18px 19px),
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(39,86,164,0.14) 18px 19px);
  mask-image: radial-gradient(circle at 50% 50%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 30%, transparent 75%);
}
/* Tissue scaffold dome */
.hv-tissue {
  position: absolute;
  left: 50%; top: 50%;
  width: 56%; aspect-ratio: 1;
  transform: translate(-50%, -45%);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255,255,255,0.18), transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(118,39,164,0.55), rgba(55,39,164,0.6) 50%, rgba(14,11,31,0) 75%);
  filter: blur(0.5px);
  box-shadow: 0 30px 60px -10px rgba(118,39,164,0.5);
}
.hv-tissue::after {
  content: "";
  position: absolute; inset: 8%;
  border-radius: 50%;
  background-image:
    repeating-radial-gradient(circle at 50% 50%, rgba(255,255,255,0.08) 0 1px, transparent 1px 14px),
    repeating-conic-gradient(from 0deg, rgba(255,255,255,0.05) 0 6deg, transparent 6deg 12deg);
  mask: radial-gradient(circle, #000 50%, transparent 75%);
  -webkit-mask: radial-gradient(circle, #000 50%, transparent 75%);
}
/* Print head */
.hv-printhead {
  position: absolute;
  left: 50%; top: 18%;
  transform: translateX(-50%);
  width: 26%;
  height: 8px;
  background: linear-gradient(180deg, #C9C2E8, #5C4FAE);
  border-radius: 4px;
  box-shadow: 0 4px 16px rgba(118,39,164,0.5);
}
.hv-printhead::before {
  content: "";
  position: absolute; bottom: -4px; left: 50%;
  width: 2px; height: 28%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #B8AEE8, transparent);
  filter: blur(0.5px);
  animation: deposit 3s ease-in-out infinite;
}
@keyframes deposit {
  0%, 100% { opacity: 0.9; height: 28%; }
  50% { opacity: 0.4; height: 32%; }
}
.hv-rail {
  position: absolute; left: 12%; right: 12%; top: 14%;
  height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}
.hv-rail.b { top: auto; bottom: 26%; }

.hv-stage-photo {
  position: absolute;
  top: -2%; left: -3%; right: -2%; bottom: -1%;
  border-radius: 0;
  background:
    radial-gradient(ellipse 62% 54% at 55% 45%, rgba(255,255,255,0.24), transparent 70%),
    radial-gradient(ellipse 80% 72% at 56% 50%, rgba(55,39,164,0.06), transparent 78%);
  box-shadow: none;
  display: grid; place-items: center;
  overflow: visible;
  z-index: 1;
}
.hv-stage-photo::before { display: none; }
.printer-ground-shadow {
  position: absolute;
  left: 16%;
  right: 2%;
  bottom: 1%;
  height: 120px;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 52% 48%, rgba(14,11,31,0.5), rgba(14,11,31,0.24) 36%, rgba(14,11,31,0.08) 58%, transparent 78%);
  filter: blur(18px);
  transform: perspective(700px) rotateX(50deg) rotateZ(-2deg);
  transform-origin: center;
  opacity: 0.9;
  pointer-events: none;
  z-index: 1;
}
.hv-photo {
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  position: relative;
  z-index: 2;
  filter:
    contrast(1.04)
    saturate(0.94)
    brightness(1.02)
    drop-shadow(0 24px 18px rgba(14,11,31,0.18));
}
.hv-photo-shade { display: none; }
.hv-crosshair {
  position: absolute; inset: 12% 12% 30% 12%;
  border: 1px dashed rgba(255,255,255,0.12);
  border-radius: 4px;
  pointer-events: none;
}
.hv-crosshair::before, .hv-crosshair::after {
  content: ""; position: absolute;
  background: rgba(255,255,255,0.15);
}
.hv-crosshair::before { left: 50%; top: 0; bottom: 0; width: 1px; }
.hv-crosshair::after { top: 50%; left: 0; right: 0; height: 1px; }

.hv-readout {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 18px 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  font-family: ui-monospace, 'SF Mono', monospace;
  font-size: 11px;
  background: transparent;
}
.hv-readout .cell .l { font-size: 9px; letter-spacing: 0.18em; color: var(--ink-4); text-transform: uppercase; }
.hv-readout .cell .v { color: var(--ink); font-weight: 500; margin-top: 4px; }

.hv-tag {
  position: absolute;
  top: 70%; right: -6px;
  transform: rotate(90deg) translateY(50%);
  transform-origin: right center;
  font-family: ui-monospace, 'SF Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.3em;
  color: var(--ink-4);
  text-transform: uppercase;
  z-index: 4;
}

/* Floating data chips around hero visual */
.chip {
  position: absolute;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 500;
  display: flex; align-items: center; gap: 10px;
  box-shadow: var(--shadow-md);
  z-index: 4;
  color: var(--ink);
}
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--secondary); }
.chip-a { left: -16px; top: 22%; animation: floatA 6s ease-in-out infinite; }
.chip-b { right: -10px; top: 50%; animation: floatA 7s ease-in-out infinite reverse; }
@keyframes floatA {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@media (max-width: 980px) {
  .hero-visual {
    width: min(100%, 680px);
    margin: 0 auto;
    transform: none;
  }
  .hv-stage-photo {
    inset: -3% -8% -2% -8%;
  }
  .hv-photo {
    opacity: 1;
    filter:
      contrast(1.08)
      saturate(0.98)
      brightness(0.98)
      drop-shadow(0 22px 16px rgba(14,11,31,0.22));
  }
  .printer-ground-shadow {
    left: 10%;
    right: 2%;
    bottom: 0;
    height: 88px;
    opacity: 0.95;
  }
  .hv-header,
  .hv-readout,
  .hv-tag {
    display: none;
  }
  .chip-a { left: 4%; }
  .chip-b { right: 4%; }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 112px;
    padding-bottom: 48px;
  }
  .hero-inner { gap: 22px; }
  .hero-sub { margin-top: 18px; }
  .hero-ctas {
    margin-top: 24px;
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-ctas .btn {
    max-width: 100%;
    white-space: normal;
  }
  .hero-meta { display: none; }
  .hero-visual {
    width: 100%;
    min-height: 280px;
    margin: 0 auto;
  }
  .hv-stage-photo { inset: 0 -2% 0 -2%; }
  .chip {
    padding: 8px 10px;
    font-size: 11px;
    border-radius: 10px;
    max-width: 160px;
  }
  .chip-a { left: 8%; top: 18%; }
  .chip-b { right: 7%; top: 52%; }
}

/* ── Generic section ─────────────────────────────────── */
.section { padding: 120px 0; }
.page-route > .section:first-child,
.page-route > .finalcta:first-child,
.page-route > .whynow:first-child {
  padding-top: calc(var(--nav-offset) + 56px);
}
.route-section {
  background: linear-gradient(180deg, var(--bg) 0%, rgba(255,255,255,0.48) 100%);
}
.section-head { display: flex; flex-direction: column; gap: 18px; margin-bottom: 56px; max-width: 760px; }
.section-head.center { margin-left: auto; margin-right: auto; align-items: center; text-align: center; }

/* ── Problem ─────────────────────────────────────────── */
.problem {
  background: linear-gradient(180deg, var(--bg) 0%, #F4EFFA 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.problem-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 900px) { .problem-grid { grid-template-columns: 1fr; gap: 40px; } }
.problem h2 .accent { color: var(--secondary); font-style: italic; font-weight: 700; }
.problem-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(10px);
  overflow: hidden;
}
.pstat {
  padding: 24px 28px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}
.pstat:last-child { border-bottom: 0; }
.pstat .num {
  font-size: clamp(36px, 4vw, 44px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--primary);
  font-feature-settings: "tnum";
  flex: 0 0 132px;
  white-space: nowrap;
}
.pstat .lab {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.5;
  flex: 1;
}

@media (max-width: 820px) {
  .pstat {
    flex-direction: column;
    gap: 10px;
    padding: 22px 22px;
  }

  .pstat .num {
    flex: 0 0 auto;
    font-size: clamp(30px, 9vw, 40px);
  }

  .pstat .lab {
    font-size: 15px;
  }
}

/* ── Platform — 3 cards ──────────────────────────────── */
.platform-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 980px) { .platform-cards { grid-template-columns: 1fr; } }

.pcard {
  position: relative;
  padding: 32px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  display: flex; flex-direction: column;
  min-height: 0;
  overflow: hidden;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, border-color .35s;
}
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-glow); border-color: rgba(55,39,164,0.18); }
.pcard .ix {
  font-family: ui-monospace, 'SF Mono', monospace;
  font-size: 11px; letter-spacing: 0.16em; color: var(--ink-4);
}
.pcard h3 { margin-top: 12px; }
.pcard .desc { color: var(--ink-3); margin-top: 12px; font-size: 14.5px; line-height: 1.55; }
.pcard .tags { margin-top: auto; padding-top: 24px; display: flex; gap: 8px; flex-wrap: wrap; }
.pcard .tag {
  font-size: 11px; letter-spacing: 0.04em;
  padding: 5px 10px; border-radius: 999px;
  background: var(--primary-soft); color: var(--primary);
  font-weight: 500;
}

.pcard.is-secondary .ix { color: var(--secondary); }
.pcard.is-secondary .tag { background: var(--secondary-soft); color: var(--secondary); }
.pcard.is-tertiary .ix { color: var(--tertiary); }
.pcard.is-tertiary .tag { background: var(--tertiary-soft); color: var(--tertiary); }

/* Card visuals */
.viz-perfusion {
  background:
    radial-gradient(ellipse at 30% 50%, rgba(55,39,164,0.18), transparent 60%),
    repeating-linear-gradient(0deg, transparent 0 14px, rgba(55,39,164,0.18) 14px 15px);
  position: relative;
}
.viz-perfusion::after {
  content: "";
  position: absolute; left: 0; right: 0; top: 50%;
  height: 2px; background: linear-gradient(90deg, transparent, var(--primary), transparent);
  filter: blur(1px);
  animation: flow 3s linear infinite;
}
@keyframes flow {
  0% { transform: translateX(-100%); opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateX(100%); opacity: 0; }
}

.viz-liver {
  background:
    radial-gradient(circle at 50% 50%, rgba(118,39,164,0.4), transparent 55%),
    var(--bg-elevated);
  position: relative;
}
.viz-liver::before, .viz-liver::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(118,39,164,0.4);
}
.viz-liver::before { width: 80px; height: 80px; left: 40%; top: 50%; transform: translate(-50%, -50%); }
.viz-liver::after { width: 50px; height: 50px; left: 60%; top: 40%; transform: translate(-50%, -50%); background: rgba(118,39,164,0.18); }

.viz-heart {
  background:
    radial-gradient(circle at 50% 50%, rgba(39,86,164,0.32), transparent 60%),
    var(--bg-elevated);
  position: relative;
}
.viz-heart::before {
  content: "";
  position: absolute; inset: 20%;
  background: repeating-conic-gradient(from 0deg at 50% 50%, rgba(39,86,164,0.3) 0 10deg, transparent 10deg 20deg);
  mask: radial-gradient(circle, #000 30%, transparent 70%);
  -webkit-mask: radial-gradient(circle, #000 30%, transparent 70%);
  border-radius: 50%;
}
.viz-heart::after {
  content: "";
  position: absolute; left: 50%; top: 50%;
  width: 40px; height: 40px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(39,86,164,0.5);
  animation: beat 1.4s ease-in-out infinite;
}
@keyframes beat {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.7; }
  30% { transform: translate(-50%, -50%) scale(1.18); opacity: 1; }
  60% { transform: translate(-50%, -50%) scale(1.08); opacity: 0.85; }
}

/* ── Tech — 5 modular cards (equal size) ─────────────── */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.tech-card {
  padding: 28px 24px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 14px;
  min-height: 320px;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), border-color .3s, box-shadow .3s;
  position: relative;
  overflow: hidden;
}
.tech-card:hover { border-color: rgba(55,39,164,0.25); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.tech-card .num {
  font-family: ui-monospace, 'SF Mono', monospace;
  font-size: 11px; letter-spacing: 0.18em; color: var(--ink-4);
}
.tech-card h3 { font-size: 19px; }
.tech-card .desc { font-size: 13.5px; color: var(--ink-3); line-height: 1.5; }
.tech-card .icon {
  width: 44px; height: 44px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--primary-soft), var(--secondary-soft));
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--primary);
  margin-bottom: 4px;
}
@media (max-width: 1080px) {
  .tech-grid { grid-template-columns: repeat(3, 1fr); }
  .tech-card:nth-child(4), .tech-card:nth-child(5) { grid-column: span 1; }
}
@media (max-width: 760px) {
  .tech-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .tech-grid { grid-template-columns: 1fr; }
}

/* ── Why now ─────────────────────────────────────────── */
.whynow {
  background: var(--ink);
  color: #fff;
  border-radius: 0;
  position: relative;
  overflow: hidden;
}
.whynow::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(118, 39, 164, 0.32), transparent 50%),
    radial-gradient(circle at 10% 80%, rgba(39, 86, 164, 0.22), transparent 55%);
  pointer-events: none;
}
.whynow .wrap { position: relative; z-index: 1; }
.whynow h2 { color: #fff; }
.whynow .lede { color: rgba(255,255,255,0.7); }
.whynow .eyebrow { color: rgba(255,255,255,0.55); }
.whynow .eyebrow .dot { background: #C9C2E8; box-shadow: 0 0 0 4px rgba(201,194,232,0.18); }

.whynow-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 900px) { .whynow-grid { grid-template-columns: 1fr; gap: 32px; } }

.bullets { display: flex; flex-direction: column; gap: 0; }
.bullets .b {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 16px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  align-items: baseline;
}
.bullets .b:last-child { border-bottom: 0; }
.bullets .b .n {
  font-family: ui-monospace, 'SF Mono', monospace;
  font-size: 12px; letter-spacing: 0.16em;
  color: rgba(255,255,255,0.5);
}
.bullets .b .t { font-size: 18px; font-weight: 500; color: #fff; line-height: 1.4; letter-spacing: -0.01em; }

/* ── Traction ────────────────────────────────────────── */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 900px) { .metrics { grid-template-columns: 1fr 1fr; } }

.metric {
  padding: 32px 28px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 12px;
  min-height: 220px;
  position: relative;
  overflow: hidden;
}
.metric .v {
  font-size: 56px;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
  font-feature-settings: "tnum";
}
.metric .v .small { font-size: 22px; font-weight: 700; color: var(--ink-3); margin-left: 4px; letter-spacing: -0.02em; }
.metric .l { font-size: 14px; color: var(--ink-3); line-height: 1.4; margin-top: auto; font-weight: 500; }
.metric .meta { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-4); }
.metric.accent { background: linear-gradient(165deg, rgba(55,39,164,0.06), rgba(118,39,164,0.04)); border-color: rgba(55,39,164,0.18); }
.metric.accent .v { color: var(--primary); }

/* ── Team & SAB ──────────────────────────────────────── */
.team-grid, .sab-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .team-grid, .sab-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .team-grid, .sab-grid { grid-template-columns: 1fr; } }

.person {
  padding: 24px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  text-align: left;
  transition: transform .25s, box-shadow .25s;
}
.person:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.portrait {
  width: 130px; height: 130px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.6), transparent 50%),
    linear-gradient(165deg, var(--primary-soft) 0%, var(--secondary-soft) 100%);
  display: grid; place-items: center;
  font-weight: 700; font-size: 22px;
  color: var(--primary);
  letter-spacing: -0.02em;
  margin: 0 auto 22px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 8px 20px -8px rgba(55, 39, 164, 0.25);
}
.portrait-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}
.person .name { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); }
.person .role { font-size: 12.5px; color: var(--primary); font-weight: 500; margin-top: 4px; letter-spacing: 0.02em; }
.person .bio { font-size: 13px; color: var(--ink-3); line-height: 1.5; margin-top: 12px; }
.person .tags { margin-top: 14px; display: flex; gap: 6px; flex-wrap: wrap; }
.person .tag {
  font-size: 10.5px; padding: 3px 8px; border-radius: 999px;
  background: rgba(14,11,31,0.04); color: var(--ink-3);
  letter-spacing: 0.02em;
}

.sab .person .role { color: var(--secondary); }

.sab-grid-5 { grid-template-columns: repeat(5, 1fr); }
.advisory-headline { max-width: 100%; }
.advisory-subline { white-space: nowrap; }
@media (max-width: 1100px) {
  .sab-grid-5 { grid-template-columns: repeat(3, 1fr); }
  .advisory-subline { white-space: normal; }
}
@media (max-width: 700px) { .sab-grid-5 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .sab-grid-5 { grid-template-columns: 1fr; } }

.partner-section {
  padding: 42px 0 72px;
  background: var(--bg);
}
.partner-strip {
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.partner-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.partner-tile {
  min-height: 96px;
  display: grid;
  place-items: center;
  padding: 22px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.9);
}
.partner-tile img {
  display: block;
  width: min(100%, 190px);
  height: 50px;
  object-fit: contain;
}
@media (max-width: 760px) {
  .partner-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .partner-grid { grid-template-columns: 1fr; }
}

/* ── Final CTA ───────────────────────────────────────── */
.finalcta {
  padding: 140px 0;
  position: relative;
  overflow: hidden;
}
.finalcta-card {
  position: relative;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(ellipse at 80% 20%, rgba(118, 39, 164, 0.5), transparent 50%),
    radial-gradient(ellipse at 20% 80%, rgba(39, 86, 164, 0.4), transparent 55%),
    linear-gradient(135deg, #1B1240 0%, #0E0B1F 100%);
  color: #fff;
  padding: 88px 64px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 40px 80px -20px rgba(55, 39, 164, 0.4);
}
.finalcta-card::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 50% 50%, #000 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000 0%, transparent 80%);
}
.finalcta-card .inner {
  position: relative; z-index: 1;
  max-width: 720px;
}
.finalcta h2 { color: #fff; font-size: clamp(36px, 4.5vw, 64px); }
.finalcta .lede { color: rgba(255,255,255,0.72); margin-top: 22px; }
.finalcta .ctas { margin-top: 36px; display: flex; gap: 12px; flex-wrap: wrap; }
.finalcta .btn-primary { background: #fff; color: var(--ink); }
.finalcta .btn-primary:hover { background: var(--primary); color: #fff; }
.finalcta .btn-secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,0.22); }
.finalcta .btn-secondary:hover { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.5); }
.deck-form {
  margin-top: 34px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 760px;
}
.deck-form input,
.deck-form select,
.deck-form textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font: inherit;
  padding: 12px 14px;
  outline: none;
}
.deck-form input::placeholder,
.deck-form textarea::placeholder { color: rgba(255,255,255,0.56); }
.deck-form select option { color: var(--ink); }
.deck-form textarea {
  grid-column: 1 / -1;
  min-height: 104px;
  resize: vertical;
}
.deck-form .form-helper {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 13px;
  color: rgba(255,255,255,0.72);
}
.deck-form .consent {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(255,255,255,0.72);
  font-size: 13px;
  line-height: 1.4;
}
.deck-form .consent a {
  color: rgba(255,255,255,0.9);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.deck-form .consent input {
  width: 16px;
  min-height: 16px;
  margin-top: 2px;
  flex: 0 0 auto;
}
.deck-form .btn {
  width: fit-content;
  background: #fff;
  color: var(--ink);
}
.deck-form .btn:disabled {
  cursor: wait;
  opacity: 0.68;
  transform: none;
}
.form-message {
  align-self: center;
  margin: 0;
  color: rgba(255,255,255,0.72);
  font-size: 14px;
}
.form-message.success { color: #B7F3D4; }
.form-message.error { color: #FFD3D3; }
.contact-mail {
  display: inline-block;
  margin-top: 18px;
  color: rgba(255,255,255,0.72);
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 0.24em;
}
@media (max-width: 700px) {
  .finalcta-card { padding: 56px 28px; }
  .deck-form { grid-template-columns: 1fr; }
}

/* ── Page routing helpers ───────────────────────────── */
.page-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding-top: 20px;
  padding-bottom: 92px;
}
.page-nav-link {
  min-height: 96px;
  padding: 20px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.72);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.page-nav-link:hover {
  transform: translateY(-2px);
  border-color: rgba(55,39,164,0.2);
  box-shadow: var(--shadow-md);
}
.page-nav-link.is-next {
  text-align: right;
  align-items: flex-end;
}
.page-nav-link span {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.page-nav-link strong {
  margin-top: 6px;
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.legal-page {
  padding: 180px 0 110px;
  background:
    radial-gradient(ellipse at 80% 0%, rgba(55,39,164,0.08), transparent 44%),
    var(--bg);
}
.legal-wrap {
  max-width: 920px;
}
.legal-page h1 {
  margin-top: 18px;
  font-size: clamp(42px, 5vw, 68px);
}
.legal-page .lede {
  margin-top: 24px;
  max-width: 72ch;
}
.legal-document {
  margin: 34px 0 0;
  padding: 34px 36px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.72);
  color: var(--ink-2);
  font: inherit;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
}
.legal-list {
  margin-top: 42px;
  display: grid;
  gap: 16px;
}
.legal-list section {
  padding: 26px 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.68);
}
.legal-list h3 {
  font-size: 18px;
  margin-bottom: 10px;
}
.legal-list p {
  color: var(--ink-3);
  line-height: 1.62;
}
@media (max-width: 700px) {
  .page-route > .section:first-child,
  .page-route > .finalcta:first-child,
  .page-route > .whynow:first-child,
  .legal-page {
    padding-top: 132px;
  }
  .page-nav { grid-template-columns: 1fr; }
  .page-nav-link.is-next { text-align: left; align-items: flex-start; }
}

/* ── Footer ──────────────────────────────────────────── */
.foot {
  border-top: 1px solid var(--line);
  padding: 48px 0 36px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 900px) {
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
.foot h4 { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-4); font-weight: 600; }
.foot .links { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.foot .links a { font-size: 14px; color: var(--ink-2); transition: color .2s; }
.foot .links a:hover { color: var(--primary); }
.foot-meta {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--ink-4);
  flex-wrap: wrap; gap: 16px;
}
.foot-meta .legal { display: flex; gap: 18px; }

/* ── Back-to-top button ──────────────────────────────── */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 45;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid rgba(55,39,164,0.22);
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  transform: translateY(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease, border-color .2s ease, box-shadow .2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  border-color: rgba(55,39,164,0.4);
  box-shadow: var(--shadow-md);
}

@media (max-width: 700px) {
  .back-to-top {
    right: 14px;
    bottom: 14px;
    padding: 9px 12px;
    font-size: 12px;
  }
}

/* ── Section header tag ──────────────────────────────── */
.tag-num {
  font-family: ui-monospace, 'SF Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--ink-4);
}

/* ── Reveal on scroll ───────────────────────────────── */
.reveal {
  opacity: 1;
}
.reveal:not(.in) {
  /* Only apply hidden state if JS is alive AND has had a chance to mark above-fold elements */
}
@media (prefers-reduced-motion: no-preference) {
  html.js-ready .reveal:not(.in) {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .9s cubic-bezier(.2,.8,.2,1), transform .9s cubic-bezier(.2,.8,.2,1);
  }
  html.js-ready .reveal.in {
    opacity: 1;
    transform: translateY(0);
    transition: opacity .9s cubic-bezier(.2,.8,.2,1), transform .9s cubic-bezier(.2,.8,.2,1);
  }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0s !important; transition-duration: 0s !important; }
  .reveal { opacity: 1; transform: none; }
}
