/* =========================================================
   RareCellX — landing page styles
   ========================================================= */

:root {
  --bg: #07080a;
  --bg-2: #0a0c0e;
  --surface: #0e1113;
  --surface-2: #13171a;
  --line: rgba(233, 240, 234, 0.08);
  --line-2: rgba(233, 240, 234, 0.15);
  --text: #edf0ea;
  --muted: #9aa39d;
  --dim: #6a736d;
  --accent: #c9ef7d;
  --accent-soft: rgba(201, 239, 125, 0.1);
  --violet: #9d8cff;

  --sans: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --mono: "SFMono-Regular", ui-monospace, "Cascadia Code", "Consolas", monospace;

  --maxw: 1180px;
  --radius: 16px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

img,
svg,
canvas {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4,
p,
figure {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

::selection {
  background: var(--accent);
  color: #0a0d07;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: min(100% - 56px, var(--maxw));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--accent);
  color: #0a0d07;
  font-size: 13px;
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

/* ---------- Typography helpers ---------- */

.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.kicker > span {
  display: block;
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: 0.9;
}

.kicker.dark {
  color: #3f5a1f;
}

.mono-label {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--dim);
}

.section {
  position: relative;
  padding: 112px 0;
  border-top: 1px solid var(--line);
}

.section-head {
  margin-bottom: 52px;
}

.section-head h2 {
  margin-top: 18px;
  font-size: clamp(2.1rem, 4vw, 3.25rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.035em;
  max-width: 22ch;
  text-wrap: balance;
}

.section-head.split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
}

.section-sub {
  max-width: 38ch;
  padding-bottom: 6px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  text-wrap: pretty;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: pointer;
  appearance: none;
  background: none;
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease), transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.btn-primary {
  background: var(--text);
  color: #08090a;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset;
}

.btn-primary:hover {
  background: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 10px 30px -12px rgba(201, 239, 125, 0.55);
}

.btn-ghost {
  border-color: var(--line-2);
  color: var(--text);
  background: transparent;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(233, 240, 234, 0.28);
}

.btn-sm {
  padding: 10px 16px;
  font-size: 13px;
}

.btn .arrow {
  width: 14px;
  height: 14px;
  flex: none;
  transition: transform 0.25s var(--ease);
}

.btn:hover .arrow {
  transform: translateX(2px);
}

.btn:hover .arrow.down {
  transform: translateY(2px);
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease),
    backdrop-filter 0.3s var(--ease);
}

.site-header.scrolled {
  background: rgba(7, 8, 10, 0.72);
  border-bottom-color: var(--line);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: var(--text);
}

.brand-mark svg {
  width: 28px;
  height: 28px;
  transition: transform 0.4s var(--ease);
}

.brand:hover .brand-mark svg {
  transform: rotate(-12deg) scale(1.06);
}

.brand-name {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
}

.nav-links a {
  position: relative;
  font-size: 13px;
  color: var(--muted);
  transition: color 0.2s var(--ease);
}

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

.nav-links a.active {
  color: var(--text);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateX(-50%);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  position: relative;
}

.menu-toggle span {
  position: absolute;
  left: 11px;
  width: 16px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.3s var(--ease), top 0.3s var(--ease),
    opacity 0.2s var(--ease);
}

.menu-toggle span:first-child {
  top: 16px;
}

.menu-toggle span:last-child {
  top: 22px;
}

.menu-toggle[aria-expanded="true"] span:first-child {
  top: 19px;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  top: 19px;
  transform: rotate(-45deg);
}

/* ---------- Mobile menu ---------- */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(7, 8, 10, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  padding: 110px 28px 40px;
  height: 100%;
  overflow-y: auto;
}

.mobile-menu-inner > a:not(.btn) {
  width: 100%;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(1.5rem, 7vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.03em;
}

.mobile-menu-inner .btn {
  margin-top: 28px;
}

.mobile-menu-note {
  margin-top: 26px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 168px 0 56px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(720px 520px at 16% 14%, rgba(201, 239, 125, 0.075), transparent 65%),
    radial-gradient(760px 540px at 84% 34%, rgba(120, 108, 255, 0.1), transparent 66%);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: 56px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 12px 6px 10px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c3ccc5;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(201, 239, 125, 0.12);
  animation: softPulse 2.6s ease-in-out infinite;
}

.hero h1 {
  margin-top: 24px;
  font-size: clamp(3.1rem, 6.2vw, 5.5rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.048em;
  text-wrap: balance;
}

.hero h1 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.06em;
  letter-spacing: -0.02em;
  color: var(--accent);
  padding-right: 0.02em;
  white-space: nowrap;
}

.lede {
  max-width: 49ch;
  margin-top: 26px;
  font-size: 17.5px;
  line-height: 1.65;
  color: var(--muted);
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.trust {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 30px;
  font-size: 12.5px;
  color: var(--dim);
}

.trust-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(201, 239, 125, 0.1);
}

.trust .sep {
  color: #414a44;
}

/* ---------- Hero visual ---------- */

.hero-visual {
  position: relative;
  perspective: 1200px;
}

.specimen {
  display: flex;
  flex-direction: column;
  height: 474px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(165deg, #14191c 0%, #0a0c0e 55%, #08090b 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 50px 100px -40px rgba(0, 0, 0, 0.9);
  transform: translateZ(0);
}

.specimen-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c1cbc3;
}

.live i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 7px rgba(201, 239, 125, 0.8);
  animation: softPulse 2s ease-in-out infinite;
}

.plot {
  position: relative;
  flex: 1;
  overflow: hidden;
  background:
    radial-gradient(420px 300px at 34% 40%, rgba(201, 239, 125, 0.09), transparent 62%),
    radial-gradient(380px 280px at 70% 62%, rgba(140, 125, 255, 0.1), transparent 64%);
}

.plot::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.075) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.55;
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, #000 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, #000 30%, transparent 100%);
}

#cellCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.cluster-tag {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(220, 230, 222, 0.42);
  pointer-events: none;
}

.cluster-tag::before {
  content: "";
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
}

.tag-beta {
  left: 17%;
  top: 19%;
  color: rgba(201, 239, 125, 0.72);
}

.tag-alpha {
  right: 11%;
  top: 12%;
}

.tag-ductal {
  right: 9%;
  bottom: 17%;
}

.tag-immune {
  left: 43%;
  bottom: 7%;
}

.specimen-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 18px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}

.legend {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #5a645e;
  margin-left: 6px;
}

.legend .dot:first-child {
  margin-left: 0;
}

.dot.accent {
  background: var(--accent);
  box-shadow: 0 0 6px rgba(201, 239, 125, 0.7);
}

.float-card {
  position: absolute;
  left: -30px;
  bottom: 34px;
  z-index: 2;
  width: 238px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(12, 15, 17, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 26px 60px -22px rgba(0, 0, 0, 0.95);
}

.float-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 11px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.sample-tag {
  padding: 2px 5px;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}

.gene-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0;
}

.gene-name {
  width: 44px;
  flex: none;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.gene-bar {
  flex: 1;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.gene-bar i {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, rgba(201, 239, 125, 0.45), var(--accent));
  transform-origin: left center;
  animation: barGrow 1.2s var(--ease) both;
  animation-delay: 0.9s;
}

.gene-row:nth-child(3) .gene-bar i {
  animation-delay: 1s;
}

.gene-row:nth-child(4) .gene-bar i {
  animation-delay: 1.1s;
}

.float-foot {
  margin-top: 11px;
  padding-top: 9px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
}

/* ---------- Tech strip ---------- */

.tech-strip {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 72px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tech-label {
  color: #7f8a83;
}

.tech-items {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  color: #aeb7b1;
}

.tech-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--line-2);
}

/* ---------- Problem ---------- */

.problem-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 72px;
  align-items: start;
}

.problem-head h2 {
  margin-top: 18px;
  font-size: clamp(2.1rem, 4vw, 3.3rem);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.038em;
  text-wrap: balance;
}

.dim {
  color: #79837c;
}

.problem-body p {
  max-width: 50ch;
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--muted);
  text-wrap: pretty;
}

.problem-tags {
  margin-top: 36px;
  border-top: 1px solid var(--line);
}

.problem-tags li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
  color: #c3ccc5;
}

.problem-tags li span {
  width: 22px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--accent);
}

/* ---------- Solution ---------- */

.solution-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 320px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.006));
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease),
    background 0.35s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 239, 125, 0.28);
}

.spotlight::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%),
      rgba(201, 239, 125, 0.09), transparent 70%);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
}

.spotlight:hover::before {
  opacity: 1;
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(201, 239, 125, 0.16);
  border-radius: 11px;
  background: rgba(201, 239, 125, 0.08);
  color: var(--accent);
}

.card-icon svg {
  width: 19px;
  height: 19px;
}

.card-num {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  color: #59625c;
}

.card h3 {
  margin: 24px 0 8px;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

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

.mini-states {
  margin-top: auto;
  padding-top: 24px;
}

.state-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.state-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #7ea63a, var(--accent));
}

.state-labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--dim);
}

.state-labels span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.state-pct {
  color: #5f6963;
}

.mini-genes {
  display: grid;
  gap: 9px;
  margin-top: auto;
  padding-top: 22px;
}

.mini-gene {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mini-gene span {
  width: 44px;
  flex: none;
  font-family: var(--mono);
  font-size: 9px;
  color: #98a29b;
}

.mini-gene i {
  flex: 1;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.mini-gene b {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: rgba(201, 239, 125, 0.62);
}

.mini-quote {
  margin-top: auto;
  padding: 12px 14px;
  border-left: 2px solid rgba(201, 239, 125, 0.5);
  border-radius: 0 8px 8px 0;
  background: rgba(255, 255, 255, 0.022);
}

.mini-quote p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  line-height: 1.4;
  color: #dfe5dd;
}

.mini-quote span {
  display: block;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}

/* ---------- Steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px;
}

.step {
  position: relative;
  padding-top: 26px;
  border-top: 1px solid var(--line-2);
}

.step::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(201, 239, 125, 0.09);
}

.step-num {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.step h3 {
  margin: 18px 0 10px;
  font-size: 18.5px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.step p {
  max-width: 34ch;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.model-chip {
  display: inline-flex;
  margin-top: 20px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #aab3ac;
}

/* ---------- Results ---------- */

.results {
  background: var(--bg-2);
  overflow: hidden;
}

.results-glow {
  position: absolute;
  top: -240px;
  left: 50%;
  width: 900px;
  height: 600px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(201, 239, 125, 0.07), transparent 100%);
  pointer-events: none;
}

.results-head {
  position: relative;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid rgba(201, 239, 125, 0.22);
  border-radius: 999px;
  background: rgba(201, 239, 125, 0.055);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d7dfd6;
  white-space: nowrap;
}

.badge i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  animation: softPulse 2.4s ease-in-out infinite;
}

.results-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 20px;
  align-items: stretch;
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.stat {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 154px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.026), transparent);
}

.stat-value {
  display: flex;
  align-items: baseline;
  gap: 2px;
  font-size: clamp(2rem, 3vw, 2.65rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
}

.stat-suffix {
  font-size: 0.5em;
  color: var(--accent);
  letter-spacing: 0;
}

.stat-label {
  max-width: 24ch;
  margin-top: 16px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--dim);
}

.roc-card {
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    radial-gradient(420px 260px at 70% 0%, rgba(201, 239, 125, 0.05), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
}

.roc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.roc-score {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.roc-plot {
  display: grid;
  place-items: center;
  flex: 1;
  padding: 12px 0 4px;
}

.roc-plot svg {
  width: 100%;
  height: auto;
  max-height: 292px;
}

.roc-grid line {
  stroke: rgba(255, 255, 255, 0.055);
  stroke-width: 1;
}

.roc-diagonal {
  stroke: rgba(255, 255, 255, 0.16);
  stroke-width: 1;
  stroke-dasharray: 3 5;
}

.roc-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.roc-area {
  opacity: 0;
  transition: opacity 0.8s ease 0.5s;
}

.roc-card.in-view .roc-line {
  transition: stroke-dashoffset 1.8s cubic-bezier(0.3, 0.7, 0.2, 1) 0.2s;
  stroke-dashoffset: 0;
}

.roc-card.in-view .roc-area {
  opacity: 1;
}

.roc-tick {
  font-family: var(--mono);
  font-size: 8px;
  fill: #5f6963;
}

.roc-axis {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.04em;
  fill: #7d8780;
  text-transform: uppercase;
}

.roc-card figcaption {
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  color: #5c665f;
}

.footnote {
  max-width: 84ch;
  margin-top: 28px;
  font-size: 11.5px;
  line-height: 1.75;
  color: #67716a;
}

.footnote em {
  color: #8a948d;
}

/* ---------- Audience ---------- */

.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.audience {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.014);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.audience:hover {
  border-color: var(--line-2);
  background: rgba(255, 255, 255, 0.028);
}

.audience-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: #b9c3bc;
}

.audience-icon svg {
  width: 20px;
  height: 20px;
}

.audience h3 {
  margin: 1px 0 6px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.audience p {
  max-width: 28ch;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.audience-index {
  position: absolute;
  top: 22px;
  right: 20px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: #4f5852;
}

/* ---------- Vision ---------- */

.vision-panel {
  position: relative;
  padding: 56px;
  border-radius: 24px;
  background: #e9ebe2;
  color: #0b0d0e;
  overflow: hidden;
}

.vision-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(0, 0, 0, 0.16) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.5;
  -webkit-mask-image: radial-gradient(ellipse 60% 80% at 85% 10%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse 60% 80% at 85% 10%, #000 0%, transparent 70%);
  pointer-events: none;
}

.vision-panel::after {
  content: "";
  position: absolute;
  top: -120px;
  right: -80px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(126, 166, 58, 0.22), transparent);
  pointer-events: none;
}

.vision-content {
  position: relative;
  z-index: 1;
  max-width: 660px;
}

.vision-content h2 {
  margin: 18px 0 20px;
  font-size: clamp(2rem, 3.7vw, 2.9rem);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.04em;
  color: #0b0d0e;
  text-wrap: balance;
}

.vision-content > p:last-child {
  max-width: 58ch;
  font-size: 15.5px;
  line-height: 1.72;
  color: #4f5852;
  text-wrap: pretty;
}

.vision-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
  padding-top: 26px;
  border-top: 1px solid rgba(0, 0, 0, 0.14);
}

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

.vision-stat + .vision-stat {
  padding-left: 24px;
  border-left: 1px solid rgba(0, 0, 0, 0.1);
}

.vision-number {
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.045em;
  color: #0b0d0e;
  font-variant-numeric: tabular-nums;
}

.vision-label {
  max-width: 24ch;
  font-size: 12px;
  line-height: 1.5;
  color: #5a6259;
}

.vision-source {
  position: relative;
  z-index: 1;
  margin-top: 28px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.05em;
  color: #7a8279;
}

/* ---------- Team ---------- */

.team-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
  gap: 64px;
  align-items: center;
}

.team-intro h2 {
  margin-top: 18px;
  font-size: clamp(2.1rem, 4vw, 3.25rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.team-intro .location-chip {
  margin-top: 20px;
}

.team-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.team-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

.team-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-2);
}

.avatar {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.avatar-a {
  background: linear-gradient(135deg, #2c3a1c, #141a10);
  color: #d9f2a5;
}

.team-card--solo {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 18px;
  padding: 28px;
}

.team-card--solo .avatar {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 60px;
  height: 60px;
  font-size: 14px;
}

.team-card--solo h3,
.team-card--solo p {
  grid-column: 2;
}

.team-card--solo h3 {
  margin: 0 0 5px;
  font-size: 18px;
}

.team-card--solo p {
  font-size: 13px;
}

.team-card h3 {
  margin: 20px 0 6px;
  font-size: 16.5px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.team-alias {
  font-weight: 400;
  font-size: 14px;
  color: var(--dim);
}

.team-card p {
  font-size: 12.5px;
  color: var(--dim);
}

.location-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  color: #aab4ad;
  white-space: nowrap;
}

.location-chip svg {
  width: 14px;
  height: 14px;
}

/* ---------- CTA ---------- */

.cta-section {
  padding-bottom: 112px;
}

.cta-panel {
  position: relative;
  padding: 64px 40px;
  border: 1px solid var(--line-2);
  border-radius: 24px;
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(620px 340px at 50% 118%, rgba(201, 239, 125, 0.14), transparent 70%),
    linear-gradient(180deg, #101417, #0a0c0e);
}

.cta-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.5;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 100%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 70% at 50% 100%, #000 0%, transparent 75%);
  pointer-events: none;
}

.cta-panel .kicker {
  position: relative;
  justify-content: center;
}

.cta-panel h2 {
  position: relative;
  max-width: 19ch;
  margin: 18px auto 0;
  font-size: clamp(2.2rem, 4.6vw, 3.5rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.042em;
  text-wrap: balance;
}

.cta-body {
  position: relative;
  max-width: 46ch;
  margin: 18px auto 0;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--muted);
}

.cta-actions {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.email-link {
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 13px;
  color: #c7d0c9;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.email-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.cta-note {
  position: relative;
  margin-top: 28px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5c665f;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 56px 0 32px;
  border-top: 1px solid var(--line);
  background: #060708;
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-brand p {
  margin-top: 12px;
  font-size: 12.5px;
  color: #7a847d;
}

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

.footer-links a {
  font-size: 12.5px;
  color: #97a099;
  transition: color 0.2s var(--ease);
}

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

.disclaimer {
  max-width: 82ch;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  line-height: 1.7;
  color: #7a847d;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  font-size: 10.5px;
  color: #7a847d;
}

/* ---------- Reveal ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
  will-change: auto;
}

/* ---------- Keyframes ---------- */

@keyframes softPulse {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 0 3px rgba(201, 239, 125, 0.1);
  }
  50% {
    opacity: 0.65;
    box-shadow: 0 0 0 5px rgba(201, 239, 125, 0.04);
  }
}

@keyframes barGrow {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1100px) {
  .nav-links {
    gap: 22px;
  }

  .hero-grid {
    gap: 40px;
  }

  .float-card {
    left: auto;
    right: 14px;
    bottom: 14px;
  }

  .tag-immune {
    display: none;
  }

  .problem-grid {
    gap: 52px;
  }
}

@media (max-width: 980px) {
  .nav-links,
  .nav-actions > .btn {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero {
    padding-top: 138px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .hero-copy {
    max-width: 640px;
  }

  .hero h1 {
    font-size: clamp(3rem, 8.6vw, 4.6rem);
  }

  .hero-visual {
    width: 100%;
    max-width: 620px;
  }

  .specimen {
    height: 440px;
  }

  .float-card {
    right: -8px;
    bottom: -14px;
  }

  .tech-strip {
    margin-top: 64px;
  }

  .problem-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .problem-head h2 {
    max-width: 20ch;
  }

  .section-head.split {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .section-sub {
    max-width: 50ch;
    padding-bottom: 0;
  }

  .solution-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .card {
    min-height: 0;
    padding: 24px;
  }

  .mini-states,
  .mini-genes,
  .mini-quote {
    margin-top: 22px;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .step p {
    max-width: 56ch;
  }

  .results-grid {
    grid-template-columns: 1fr;
  }

  .roc-card {
    width: 100%;
    max-width: 560px;
    margin-inline: auto;
  }

  .audience-grid {
    grid-template-columns: 1fr;
  }

  .audience p {
    max-width: 48ch;
  }

  .vision-panel {
    padding: 44px 36px;
  }

  .team-layout {
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: start;
  }

  .team-grid {
    max-width: 520px;
  }
}

@media (max-width: 760px) {
  .section {
    padding: 84px 0;
  }

  .wrap {
    width: min(100% - 40px, var(--maxw));
  }

  .hero {
    padding: 128px 0 48px;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 10.4vw, 3.8rem);
  }

  .lede {
    font-size: 16px;
  }

  .float-card {
    display: none;
  }

  .cluster-tag {
    font-size: 7.5px;
  }

  .tag-alpha {
    right: 7%;
  }

  .tag-ductal {
    right: 6%;
  }

  .specimen {
    height: 410px;
  }

  .tech-strip {
    gap: 12px 18px;
    margin-top: 52px;
  }

  .tech-items {
    gap: 10px 14px;
  }

  .vision-panel {
    padding: 36px 24px;
    border-radius: 20px;
  }

  .vision-stats {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 36px;
    padding-top: 22px;
  }

  .vision-stat {
    flex-direction: row;
    align-items: baseline;
    gap: 16px;
  }

  .vision-stat + .vision-stat {
    padding-left: 0;
    padding-top: 18px;
    border-left: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
  }

  .vision-number {
    flex: none;
    width: 104px;
    font-size: 2.2rem;
  }

  .vision-label {
    max-width: 30ch;
  }

  .cta-panel {
    padding: 48px 24px;
    border-radius: 20px;
  }

  .cta-section {
    padding-bottom: 84px;
  }

  .footer-top {
    flex-direction: column;
    gap: 28px;
    padding-bottom: 32px;
  }

  .footer-links {
    gap: 18px 24px;
  }
}

@media (max-width: 560px) {
  .wrap {
    width: min(100% - 36px, var(--maxw));
  }

  .hero h1 {
    font-size: clamp(2.6rem, 12vw, 3.2rem);
  }

  .hero-actions {
    gap: 10px;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
    justify-content: center;
  }

  .trust {
    flex-wrap: wrap;
    row-gap: 4px;
  }

  .specimen {
    height: 380px;
  }

  .specimen-foot {
    font-size: 7.5px;
    letter-spacing: 0.06em;
  }

  .legend {
    gap: 4px;
  }

  .legend .dot {
    margin-left: 4px;
  }

  .stat-grid {
    grid-template-columns: 1fr;
  }

  .stat {
    min-height: 0;
  }

  .stat-label {
    max-width: none;
  }

  .results-head .badge {
    white-space: normal;
    line-height: 1.5;
  }

  .team-grid {
    max-width: none;
  }

  .team-card {
    padding: 22px;
  }

  .cta-actions {
    flex-direction: column;
    gap: 16px;
  }

  .cta-actions .btn {
    width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }

  .roc-line {
    stroke-dashoffset: 0;
  }

  .roc-area {
    opacity: 1;
  }
}
