/* =========================================================================
   UMAY — design system
   A dark "scientific instrument" palette taken from the product's own
   architecture diagram: slate ink, cyan evidence, blue network, emerald
   safety, violet design, amber output.
   ========================================================================= */

/* ---------- tokens ---------- */
:root {
  /* Dark ground, one accent.
     This is the dark theme kept, not the original one restored. The faults in
     that version were the five rotating accents, the gradient headline and the
     radial glows — not the darkness. Generate Biomedicines is near-black and
     reads as serious precisely because it holds to one colour and flat
     surfaces. Same discipline here, on a dark ground. */

  --paper:          #0b0d10;
  --surface:        #131619;
  --surface-2:      #171b1f;
  --surface-3:      #21262b;

  --line:           #262b31;
  --line-strong:    #39414a;

  --text:           #eef0f2;
  --text-muted:     #9aa4ae;
  --text-faint:     #6c757e;

  /* The single accent, lifted to read on a dark ground. */
  --accent:         #45c8bd;
  --accent-deep:    #6fdad1;
  --accent-soft:    rgba(69, 200, 189, 0.12);

  /* Reserved for meaning, never for decoration. */
  --ok:             #51c98a;
  --warn:           #d8a548;

  --ink:            var(--paper);
  --ink-raise:      var(--surface);
  --cyan:           var(--accent);
  --blue:           var(--accent);
  --emerald:        var(--ok);
  --violet:         var(--accent);
  --amber:          var(--warn);

  --radius-sm:      5px;
  --radius:         10px;
  --radius-lg:      14px;

  --font-sans:      "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono:      "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --shell:          1120px;
  --gutter:         clamp(20px, 5vw, 48px);

  --ease:           cubic-bezier(0.22, 1, 0.36, 1);
}

/* data-accent is kept in the markup but no longer changes hue: one accent. */

/* ---------- cross-document page transitions ----------
   Native, progressive, and ignored entirely by browsers that lack it.
   Chromium and Safari animate between pages; Firefox simply navigates. */
@view-transition { navigation: auto; }

::view-transition-old(root) { animation: vt-out 0.18s ease both; }
::view-transition-new(root) { animation: vt-in 0.3s var(--ease) both; }

@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in  { from { opacity: 0; transform: translateY(8px); } }

/* The header and brand persist across navigations rather than cross-fading. */
.site-header { view-transition-name: site-header; }
.brand       { view-transition-name: brand; }

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

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: "cv05" 1, "ss01" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ambient field: a faint signal gradient behind everything */
/* No ambient glow: a flat ground reads as deliberate. */


img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

::selection { background: var(--accent-soft); color: var(--text); }

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

/* ---------- layout ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(72px, 10vw, 136px); position: relative; }
.section--tight { padding-block: clamp(56px, 7vw, 96px); }
.section--hairline { border-top: 1px solid var(--line); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  background: var(--surface-2);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  z-index: 200;
}
.skip-link:focus { left: 16px; }

/* ---------- type ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

h1, h2, h3, h4 {
  margin: 0;
  color: var(--text);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.08;
  color: var(--text);
}

.display {
  font-size: clamp(2.75rem, 7vw, 5.1rem);
  line-height: 1.03;
  letter-spacing: -0.04em;
  font-weight: 300;
}
.display em {
  font-style: normal;
  font-weight: 500;
  color: var(--accent);
}

.h2 { font-size: clamp(1.85rem, 3.6vw, 3rem); line-height: 1.1; font-weight: 350; }
.h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); font-weight: 450; letter-spacing: -0.02em; }
.h4 { font-size: 1.0625rem; font-weight: 500; letter-spacing: -0.01em; }

.lede {
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.62;
  color: var(--text-muted);
  max-width: 62ch;
  margin: 22px 0 0;
}
.body { color: var(--text-muted); margin: 14px 0 0; }
.small { font-size: 0.875rem; color: var(--text-faint); }

.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.section-head { max-width: 66ch; margin-bottom: clamp(40px, 5vw, 64px); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease),
              border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), color 0.2s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--accent);
  color: #06100f;
}
.btn--primary:hover { background: var(--accent-deep); }

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

.btn--accent {
  background: var(--accent-soft);
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
  color: var(--accent);
}
.btn--accent:hover { background: color-mix(in srgb, var(--accent) 18%, transparent); }

.btn--block { width: 100%; }
.btn--lg { padding: 16px 30px; font-size: 1rem; }
.btn--sm { padding: 9px 17px; font-size: 0.8125rem; }

.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 0.9375rem;
  font-weight: 450;
}
.link-arrow:hover { gap: 12px; }
.link-arrow { transition: gap 0.2s var(--ease); }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s;
}
.site-header[data-scrolled="true"] {
  background: rgba(11, 13, 16, 0.86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}

.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand__mark { width: 30px; height: 30px; flex: none; }
.brand__text {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text);
}
.brand__text span { color: var(--text-faint); font-weight: 400; margin-left: 6px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.18s, background 0.18s;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  cursor: pointer;
}

/* ---------- hero ---------- */
.hero { position: relative; padding-block: clamp(64px, 9vw, 120px) clamp(48px, 6vw, 80px); }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.hero__note {
  margin-top: 18px;
  font-size: 0.8125rem;
  color: var(--text-faint);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.hero__note::before {
  content: "";
  margin-top: 7px;
  flex: none;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: none;
}

/* hero visual: the funnel */
.funnel {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 24px;
  overflow: hidden;
}
.funnel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: none;
  pointer-events: none;
}
.funnel__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  color: var(--text-faint);
}
.funnel__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--emerald);
  animation: pulse 2.6s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: .45; }
}

.funnel__rows { display: grid; gap: 7px; }

.funnel__row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}
.funnel__row:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  background: var(--accent-soft);
  transform: translateX(3px);
}
.funnel__num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.05em;
}
.funnel__name { font-size: 0.9rem; color: var(--text); }
.funnel__meta { font-family: var(--font-mono); font-size: 10.5px; color: var(--text-faint); }

.funnel__bar {
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), transparent);
  margin-top: 6px;
  transform-origin: left;
  animation: grow 1.1s var(--ease) both;
}
@keyframes grow { from { transform: scaleX(0); opacity: 0; } to { transform: scaleX(1); opacity: 1; } }

.funnel__out {
  margin-top: 16px;
  padding: 15px 16px;
  border: 1px solid #2f5a44;
  border-radius: var(--radius);
  background: rgba(81, 201, 138, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.funnel__out strong { color: var(--emerald); font-weight: 500; }
.funnel__out .mono { white-space: nowrap; }

/* ---------- metric band ---------- */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}
.metric { background: var(--ink); padding: 30px clamp(16px, 2.4vw, 32px); }
.metric__value {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1;
}
.metric__label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 12px;
}
.metric__note { font-size: 0.8125rem; color: var(--text-faint); margin-top: 8px; line-height: 1.5; }

.metrics .metric:nth-child(1) { --accent: var(--cyan); }
.metrics .metric:nth-child(2) { --accent: var(--blue); }
.metrics .metric:nth-child(3) { --accent: var(--violet); }
.metrics .metric:nth-child(4) { --accent: var(--emerald); }

/* ---------- generic grids / cards ---------- */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: clamp(22px, 2.6vw, 30px);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), background 0.3s var(--ease);
}
.card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.card__index {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.12em;
  margin-bottom: 16px;
  display: block;
}
.card p { color: var(--text-muted); margin: 12px 0 0; font-size: 0.9375rem; }

/* ---------- pipeline (stage list) ---------- */
.stages { display: grid; gap: 14px; }

.stage {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: clamp(16px, 3vw, 40px);
  padding: clamp(22px, 2.6vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.stage:hover { border-color: color-mix(in srgb, var(--accent) 40%, transparent); transform: translateX(4px); }
.stage::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), transparent);
}

.stage__num {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 300;
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1;
  opacity: 0.85;
}

.stage__summary { color: var(--text-muted); font-size: 1rem; margin: 10px 0 0; }
.stage__detail { color: var(--text-faint); font-size: 0.9375rem; margin: 16px 0 0; max-width: 72ch; }

.stage__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.chip {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--text-muted);
  white-space: nowrap;
}
.chip--gate {
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  background: var(--accent-soft);
  color: var(--accent);
  margin-left: auto;
}

/* formula plate */
.formula {
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: clamp(22px, 3vw, 32px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.formula__code {
  font-family: var(--font-mono);
  font-size: clamp(0.8125rem, 1.5vw, 1rem);
  color: var(--cyan);
  letter-spacing: 0.01em;
}
.formula p { margin: 0; max-width: 46ch; font-size: 0.875rem; color: var(--text-faint); }

/* ---------- rigour / claims ---------- */
.claims { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.claim {
  background: var(--ink-raise);
  padding: clamp(22px, 2.6vw, 30px);
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.claim__icon { margin-top: 2px; }
.claim p { margin: 8px 0 0; color: var(--text-muted); font-size: 0.9375rem; max-width: 76ch; }

/* ---------- products ---------- */
.products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }

.product {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: clamp(24px, 3vw, 34px);
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.product:hover { border-color: color-mix(in srgb, var(--accent) 42%, transparent); transform: translateY(-3px); }

.product__top { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.product__code {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--accent);
}
.status {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--text-faint);
}
.status--live {
  border-color: #2f5a44;
  background: rgba(81, 201, 138, 0.12);
  color: var(--ok);
}
.status--beta { border-color: var(--line-strong); background: var(--surface-2); color: var(--text-muted); }

.product__tagline { color: var(--text-muted); margin: 10px 0 0; font-size: 0.9375rem; }
.product__desc { color: var(--text-faint); font-size: 0.9rem; margin: 16px 0 0; }

.product__features { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 9px; }
.product__features li {
  position: relative;
  padding-left: 22px;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.product__features li::before {
  content: "";
  position: absolute;
  left: 2px; top: 9px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.8;
}
.product__foot {
  margin-top: auto;
  padding-top: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.product__price { font-size: 1.25rem; font-weight: 400; color: #fff; }

/* ---------- data source wall ---------- */
.sources { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.source { background: var(--ink-raise); padding: 24px 26px; transition: background 0.25s var(--ease); }
.source:hover { background: var(--surface-2); }
.source__name { font-size: 1rem; color: #fff; font-weight: 450; }
.source__detail { font-size: 0.8125rem; color: var(--text-faint); margin-top: 6px; }

/* ---------- quote / callout ---------- */
.callout {
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  background: var(--accent-soft);
  padding: clamp(24px, 3vw, 36px);
}
.callout p { margin: 0; font-size: clamp(1.0625rem, 1.8vw, 1.375rem); line-height: 1.5; color: var(--text); font-weight: 300; letter-spacing: -0.015em; }

/* ---------- team ---------- */
.people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.person { display: flex; gap: 18px; align-items: flex-start; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.person__avatar {
  width: 52px; height: 52px; flex: none;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
}
.person__role { font-size: 0.875rem; color: var(--accent); margin-top: 3px; }
.person__bio { font-size: 0.875rem; color: var(--text-muted); margin-top: 10px; }
.person__aff { font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); margin-top: 8px; letter-spacing: 0.03em; }

/* ---------- closing CTA ---------- */
.cta {
  border: 1px solid var(--line-strong);
  border-radius: clamp(18px, 3vw, 28px);
  background:
    var(--surface-2);
  padding: clamp(40px, 6vw, 76px) clamp(24px, 4vw, 56px);
  text-align: center;
}
.cta .lede { margin-inline: auto; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 34px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 56px 40px; margin-top: 40px; }
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
}
.footer__col h5 {
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 400;
}
.footer__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer__col a { font-size: 0.875rem; color: var(--text-muted); }
.footer__col a:hover { color: var(--text); }

.footer__bottom {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
}
.footer__note { font-size: 0.75rem; color: var(--text-faint); max-width: 68ch; line-height: 1.6; }

/* ---------- auth pages ---------- */
.auth {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.auth__form-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(32px, 6vw, 72px) var(--gutter);
}
.auth__form { width: 100%; max-width: 420px; }
.auth__aside {
  border-left: 1px solid var(--line);
  background:
    var(--surface-2);
  padding: clamp(32px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
}

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-weight: 450;
}
.field input {
  width: 100%;
  padding: 13px 15px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text);
  font-size: 0.9375rem;
  font-family: inherit;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.field input::placeholder { color: var(--text-faint); }
.field input:focus {
  outline: none;
  border-color: var(--cyan);
  background: var(--accent-soft);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field__hint { font-size: 0.75rem; color: var(--text-faint); margin-top: 7px; }

.alert {
  padding: 13px 16px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  margin-bottom: 22px;
  border: 1px solid;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.alert--error { border-color: #6b3636; background: #231617; color: #f0a8a8; }
.alert--info  { border-color: var(--line-strong); background: var(--accent-soft); color: var(--accent); }

.auth__switch { margin-top: 26px; font-size: 0.875rem; color: var(--text-faint); text-align: center; }
.auth__switch a { color: var(--cyan); }

.auth__points { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.auth__points li { display: grid; grid-template-columns: 20px minmax(0,1fr); gap: 14px; font-size: 0.9375rem; color: var(--text-muted); }
.auth__points strong { color: var(--text); font-weight: 500; display: block; margin-bottom: 3px; }

/* ---------- workspace ---------- */
.workspace { padding-block: clamp(36px, 5vw, 64px); }
.workspace__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 36px;
}
.avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: 14px;
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--cyan) 35%, transparent);
  color: var(--cyan);
}
.workspace__user { display: flex; align-items: center; gap: 14px; }

.launch-card {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background:
    var(--surface-2);
  padding: clamp(26px, 3.4vw, 40px);
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  align-items: center;
  justify-content: space-between;
}
.launch-card__body { max-width: 58ch; }

.locked { opacity: 0.55; }
.locked .btn { pointer-events: none; }

.kv { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.kv__row { background: var(--ink-raise); padding: 14px 18px; display: flex; justify-content: space-between; gap: 16px; font-size: 0.875rem; }
.kv__row dt { color: var(--text-faint); margin: 0; }
.kv__row dd { margin: 0; color: var(--text); font-family: var(--font-mono); font-size: 12px; }

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding-block: 80px; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- entrance motion ----------
   One short, staggered arrival per page. It runs on load only — nothing
   re-animates on scroll, which is the thing that makes motion tiring.

   These rules are armed only under `html.anim`, set by an inline script, and
   disarmed again by `html.anim-settled` once the sequence has had its time.
   Content must never depend on an animation running in order to be visible:
   with JS off, with reduced motion, in a background tab that never animates,
   or on any browser that skips them, the page renders plainly and in full. */
.line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.line__in { display: block; }

.anim:not(.anim-settled) .rise {
  animation: rise 0.75s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 70ms + 60ms);
}
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* Headline lines wipe up from behind a mask. */
.anim:not(.anim-settled) .line__in {
  animation: line-in 0.9s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 110ms + 80ms);
}
@keyframes line-in {
  from { opacity: 0; transform: translateY(100%); }
  to   { opacity: 1; transform: none; }
}

/* Hero funnel rows arrive in sequence. */
.anim:not(.anim-settled) .funnel__row {
  animation: rise 0.6s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 80ms + 420ms);
}

/* ---------- scroll-driven progress rail ----------
   Native CSS scroll timeline where supported; the rail simply stays filled
   where it is not, so nothing depends on it. */
.scroll-rail {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 120;
  background: var(--accent);
  transform-origin: 0 50%;
  transform: scaleX(0);
  opacity: 0.85;
  pointer-events: none;
}
@supports (animation-timeline: scroll()) {
  .scroll-rail {
    animation: rail linear;
    animation-timeline: scroll(root block);
  }
}
@keyframes rail { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- pointer-reactive hero glow ----------
   A single soft light that follows the cursor in the hero only. Pointer
   devices only, and it never moves anything the reader is trying to read. */
.hero { isolation: isolate; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  background: none;
}
@media (hover: hover) and (pointer: fine) {
  .hero[data-pointer="true"]::after { opacity: 1; }
}

/* ---------- page heads ---------- */
.page-head {
  padding-block: clamp(56px, 8vw, 104px) clamp(24px, 3vw, 40px);
  position: relative;
}
.page-head__title {
  font-size: clamp(2.2rem, 5.2vw, 3.9rem);
  max-width: 20ch;
}
.page-head .lede { max-width: 58ch; }

/* ---------- landing: three steps ---------- */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.step:hover { border-color: color-mix(in srgb, var(--accent) 40%, transparent); transform: translateY(-3px); }
.step__num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--accent);
  display: block;
  margin-bottom: 18px;
}
.step p { color: var(--text-muted); margin: 12px 0 0; font-size: 0.9375rem; }

/* a connector line between the steps */
.step::after {
  content: "";
  position: absolute;
  top: calc(clamp(24px, 3vw, 34px) + 5px);
  right: -18px;
  width: 18px;
  height: 1px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 60%, transparent), transparent);
}
.step:last-child::after { display: none; }

/* ---------- card as link ---------- */
.card--link { display: flex; flex-direction: column; }
.card--link .link-arrow { margin-top: auto; }
.card--link:hover { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }

/* ---------- data source ticker ---------- */
.ticker {
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding-block: 22px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.ticker__track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: ticker 48s linear infinite;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__item {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color 0.25s;
}
.ticker__item:hover { color: var(--cyan); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- scoring weights ---------- */
.weights { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.weight {
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.weight__top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.weight__name { font-size: 1rem; color: #fff; }
.weight__pct {
  font-family: var(--font-mono);
  font-size: 1.125rem;
  color: var(--accent);
}
.weight__track {
  height: 4px;
  border-radius: 999px;
  background: var(--surface-3);
  margin-top: 16px;
  overflow: hidden;
}
.weight__fill {
  height: 100%;
  width: var(--w);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 35%, transparent));
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1s var(--ease);
}
.is-visible .weight__fill,
.weight.is-visible .weight__fill { transform: scaleX(1); }
.weight__note { font-size: 0.8125rem; color: var(--text-faint); margin: 14px 0 0; }

/* ---------- roadmap rail ---------- */
.roadmap {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  position: relative;
}
.roadmap::before {
  content: "";
  position: absolute;
  left: 6px; right: 6px;
  top: 5px;
  height: 1px;
  background: var(--line-strong);
  opacity: 0.35;
}
.roadmap__node { position: relative; padding-top: 22px; }
.roadmap__dot {
  position: absolute;
  top: 0; left: 0;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--ink);
  border: 1.5px solid var(--accent);
}
.roadmap__dot--live { background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.roadmap__label { display: block; }
.roadmap__code {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--accent);
}
.roadmap__name { display: block; font-size: 0.9375rem; color: var(--text-muted); margin-top: 4px; transition: color 0.2s; }
.roadmap__label:hover .roadmap__name { color: var(--text); }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth__aside { display: none; }
  .sources { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .nav { display: none; }
  .nav[data-open="true"] {
    display: flex;
    position: absolute;
    top: 72px;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px var(--gutter) 20px;
    background: rgba(11, 13, 16, 0.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
  }
  .nav-toggle { display: inline-flex; }
  .header-actions .btn--ghost { display: none; }
  /* At 375px the full call to action crowds the menu button off the bar. */
  .header-actions .btn--primary { padding: 9px 14px; font-size: .8125rem; }
  .header-actions .btn--primary .arrow { display: none; }

  .grid--2, .grid--3, .grid--4, .products, .people { grid-template-columns: minmax(0, 1fr); }
  .sources { grid-template-columns: minmax(0, 1fr); }
  .stage { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .stage__num { font-size: 1.5rem; }
  .chip--gate { margin-left: 0; }
  .metrics { grid-template-columns: minmax(0, 1fr); }
  .footer__grid { grid-template-columns: minmax(0, 1fr); }
  .funnel__row { grid-template-columns: 28px minmax(0, 1fr); }
  .funnel__meta { display: none; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step::after { display: none; }
  .weights { grid-template-columns: minmax(0, 1fr); }
  .roadmap { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .roadmap::before { display: none; }
}

@media (max-width: 560px) {
  .roadmap { grid-template-columns: minmax(0, 1fr); gap: 14px; }
}

/* Motion is opt-out at the system level: everything above collapses to a
   static page, and nothing here is load-bearing for comprehension. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .rise, .line__in, .funnel__row { animation: none; opacity: 1; transform: none; }
  .weight__fill { transform: scaleX(1); }
  .ticker__track { animation: none; }
  .scroll-rail { display: none; }
  .hero::after { display: none; }
  @view-transition { navigation: none; }
}


/* ---------- early-access block (showcase deployments) ---------- */
.access {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
  border: 1px solid var(--line-strong);
  border-radius: clamp(18px, 3vw, 28px);
  background:
    var(--surface-2);
  padding: clamp(28px, 4vw, 52px);
}
.access__form { width: 100%; }
.access__form textarea {
  width: 100%; padding: 13px 15px; border-radius: var(--radius);
  border: 1px solid var(--line-strong); background: var(--surface);
  color: var(--text); font-size: .9375rem; font-family: inherit; resize: vertical;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.access__form textarea::placeholder { color: var(--text-faint); }
.access__form textarea:focus {
  outline: none; border-color: var(--cyan); background: var(--accent-soft);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
@media (max-width: 1000px) { .access { grid-template-columns: minmax(0,1fr); } }

/* =========================================================================
   "See it run" — real engine output, replayed. The site has no engine behind
   it, so this is what stands in for a live run.
   ========================================================================= */
.demo { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }

.demo__tabs {
  display: flex; gap: 2px; padding: 8px;
  border-bottom: 1px solid var(--line); background: var(--surface-2); overflow-x: auto;
}
.demo__tab {
  flex: 1 1 auto; white-space: nowrap; background: none;
  border: 1px solid transparent; border-radius: 999px; padding: 9px 18px;
  font-size: .9rem; color: var(--text-muted); cursor: pointer;
  transition: color .2s, background .2s, border-color .2s;
}
.demo__tab:hover { color: var(--text); background: var(--surface); }
.demo__tab[aria-selected="true"] {
  color: var(--accent-deep); background: var(--surface); border-color: var(--line-strong);
}

.demo__panel { padding: clamp(20px, 3vw, 32px); }
.demo__head {
  display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start;
  justify-content: space-between; padding-bottom: 20px; margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.demo__short { color: var(--text-muted); margin: 6px 0 0; font-size: .9375rem; max-width: 48ch; }
.demo__stats { display: flex; gap: 28px; }
.demo__stat { text-align: right; }
.demo__stat-value { display: block; font-size: 1.4rem; font-weight: 400; color: var(--text); line-height: 1; }
.demo__stat-label {
  display: block; margin-top: 5px; font-family: var(--font-mono);
  font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint);
}

.strategy {
  border: 1px solid var(--line); border-left: 2px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0; background: var(--accent-soft);
  padding: 16px 18px; margin-bottom: 20px;
}
.strategy__head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.strategy__label {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--text-faint);
}
.strategy__value { font-size: 1.125rem; color: var(--accent-deep); font-weight: 500; }
.strategy__note { margin: 8px 0 0; color: var(--text-muted); font-size: .9rem; max-width: 80ch; }

.targets { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.target {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--surface); padding: 20px;
  transition: border-color .25s var(--ease);
}
.target:hover { border-color: var(--line-strong); }
.target__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.target__rank {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em;
  color: var(--text-faint); display: block; margin-bottom: 5px;
}
.target__gene { font-size: 1.2rem; color: var(--text); font-weight: 500; letter-spacing: -.01em; }
.target__score { text-align: right; }
.target__score-value { display: block; font-size: 1.05rem; color: var(--accent); font-family: var(--font-mono); }
.target__score-label {
  display: block; font-family: var(--font-mono); font-size: 9px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint); margin-top: 2px;
}
.target__name { color: var(--text-faint); font-size: .8125rem; margin: 8px 0 0; line-height: 1.45; }

.bands { display: grid; gap: 8px; margin-top: 16px; }
.band { display: grid; grid-template-columns: 84px 1fr 54px; align-items: center; gap: 10px; }
.band__label { font-size: .75rem; color: var(--text-muted); }
.band__track { height: 4px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.band__fill { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.band__fill.band--high { background: var(--accent); }
.band__fill.band--mid  { background: var(--accent); opacity: .62; }
.band__fill.band--low  { background: var(--accent); opacity: .3; }
.band__value { font-family: var(--font-mono); font-size: 10px; color: var(--text-faint); text-align: right; }

.target__foot {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line);
}
.demo__error { padding: 26px; text-align: center; color: var(--text-muted); font-size: .9375rem; }

@media (max-width: 1000px) { .targets { grid-template-columns: minmax(0,1fr); } }
@media (max-width: 760px) {
  .demo__head { flex-direction: column; }
  .demo__stats { gap: 20px; }
  .demo__stat { text-align: left; }
  .band { grid-template-columns: 76px 1fr 50px; }
}
