/* ===== OncoX — cancer molecular diagnostics =====
   Brand: navy + violet on white, with selective dark sections for contrast.
   Voice: "the power of smart" — calm, clinical, scientific.
*/

:root {
  --bg:       #ffffff;
  --bg-2:     #f6f4ff;        /* faint lavender wash for alternate sections */
  --bg-3:     #ecebf9;
  --bg-dark:  #15103e;        /* deep navy for inverted sections */
  --bg-deeper:#0c0830;
  --ink:      #15103e;        /* primary text, deep navy-violet */
  --ink-2:    #4a4280;
  --ink-3:    #7d77a8;
  --ink-soft: #b6b2d4;
  --surface:  rgba(255,255,255,0.6);
  --line:     #e6e3f5;
  --line-2:   #d9d4ee;
  --line-dark:rgba(255,255,255,0.12);

  --violet:   #7c5cff;
  --violet-2: #5b4bd6;
  --violet-3: #4a3aa8;
  --lavender: #b8b0ff;
  --pale:     #e8e5ff;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --max: 1280px;
  --nav-h: 70px;
  /* Vertical breathing room top/bottom for every full-width section. One
     value to rule them all — change here, the whole page re-rhythms. */
  --sec-pad: 72px;

  --font:    'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
  --display: 'Space Grotesk', 'Inter', sans-serif;
}

/* "Script accent" — italic display sans in purple. Used wherever a soft,
   emphasised phrase needs to feel different from body type without
   slipping into a handwritten/cursive register. */
.script-accent {
  font-family: var(--font);
  font-style: italic;
  font-weight: 500;
  color: var(--violet);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg, canvas { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- nav ----------
   Two states:
   - Default (over hero video): fully transparent, white logo + light links.
   - .is-scrolled (everywhere else): frosted white glass, dark logo + dark
     links. JS toggles the class once the user scrolls past 40px.
*/
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 32px;
  padding: 0 32px;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .35s ease, border-color .35s ease, backdrop-filter .35s ease;
}
.nav.is-scrolled {
  background: rgba(255, 255, 255, 0.86);
  border-bottom-color: var(--line);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
}

.nav__brand {
  display: inline-flex; align-items: center;
  height: 100%;
  position: relative;
}
.nav__logo {
  height: 34px;
  width: auto;
  transition: opacity .35s ease;
}
.nav__brand:hover .nav__logo { opacity: .9; }
/* show white logo over the hero; dark logo once scrolled / on light pages */
.nav__logo--dark { position: absolute; left: 0; top: 50%; transform: translateY(-50%); opacity: 0; }
.nav.is-scrolled .nav__logo--light { opacity: 0; }
.nav.is-scrolled .nav__logo--dark  { opacity: 1; }

.nav__links {
  display: flex; gap: 28px; margin-left: auto;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
  transition: color .35s ease;
}
.nav__links a {
  position: relative; padding: 6px 0;
  transition: color .2s ease;
}
.nav__links a:hover { color: #ffffff; }
.nav__links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1.5px; background: var(--lavender); transform: scaleX(0);
  transform-origin: left; transition: transform .25s ease;
}
.nav__links a:hover::after { transform: scaleX(1); }

/* scrolled state: links flip to dark for white-glass nav */
.nav.is-scrolled .nav__links { color: var(--ink-2); }
.nav.is-scrolled .nav__links a:hover { color: var(--ink); }
.nav.is-scrolled .nav__links a::after { background: var(--violet); }

.nav__cta {
  padding: 9px 18px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  border-radius: 999px;
  font-size: 13.5px; font-weight: 600;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.nav__cta:hover { background: var(--lavender); transform: translateY(-1px); }
.nav.is-scrolled .nav__cta {
  background: var(--ink);
  color: #ffffff;
}
.nav.is-scrolled .nav__cta:hover { background: var(--violet); }

@media (max-width: 760px) {
  .nav__links { display: none; }
  .nav { gap: 12px; padding: 0 18px; }
}

/* ---------- typography ---------- */
.display {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(40px, 6.4vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 16px 0 24px;
  color: var(--ink);
}
.h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(28px, 3.6vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 12px 0 16px;
  color: var(--ink);
}
.h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 0;
}
.lede {
  font-size: clamp(16px, 1.2vw, 19px);
  color: var(--ink-2);
  max-width: 60ch;
  line-height: 1.6;
}
.lede--narrow { max-width: 52ch; margin: 0 auto; }
.purple { color: var(--violet); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-2);
  background: var(--bg);
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 12px rgba(124, 92, 255, .8);
}

.section-head {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 32px;
  padding: 0 24px;
}
.section-head .eyebrow { margin-bottom: 16px; }

/* dark section variants */
.is-dark {
  background: var(--bg-dark);
  color: #ffffff;
}
.is-dark .h2, .is-dark .display, .is-dark .h3 { color: #ffffff; }
.is-dark .lede { color: rgba(255,255,255,0.7); }
.is-dark .eyebrow {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.8);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 600; font-size: 14.5px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn svg { width: 16px; height: 16px; }
.btn--primary {
  background: var(--ink);
  color: #ffffff;
  box-shadow: 0 12px 36px -12px rgba(21, 16, 62, .35);
}
.btn--primary:hover {
  background: var(--violet);
  transform: translateY(-2px);
  box-shadow: 0 18px 44px -10px rgba(124, 92, 255, .5);
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-2);
}
.btn--ghost:hover { border-color: var(--ink); background: var(--bg-2); }
.is-dark .btn--ghost { color: #fff; border-color: rgba(255,255,255,0.25); }
.is-dark .btn--ghost:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.45); }

/* ============ HERO ============ */
/* Full-bleed dark hero with looping microscopy video and a navy→purple
   gradient overlay so the body copy stays legible. If the video file is
   missing, the dark gradient + soft halos still read as an elegant hero. */
.hero {
  position: relative;
  min-height: 92vh;
  overflow: hidden;
  /* base color — also the no-video fallback */
  background:
    radial-gradient(60% 90% at 80% 30%, rgba(124, 92, 255, 0.35), transparent 70%),
    radial-gradient(70% 100% at 20% 80%, rgba(74, 58, 168, 0.50), transparent 75%),
    linear-gradient(180deg, #0b0833 0%, #15103e 60%, #0e0a30 100%);
  color: #fff;
  isolation: isolate;
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  /* the source is already brand-tinted; tiny boost on contrast + brightness
     so the helix glow pops against the navy overlay. */
  filter: brightness(1.15) contrast(1.1) saturate(1.2);
}
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  /* Two-layer overlay tuned for the DNA-helix video:
     - Horizontal: heavy on the left (text legibility), feather to barely
       anything on the right (so the lavender helix shines through).
     - Vertical vignette: soft top + bottom darkening to anchor the section
       and make it feel framed. */
  background:
    linear-gradient(95deg,
      rgba(11, 8, 51, 0.85) 0%,
      rgba(11, 8, 51, 0.65) 30%,
      rgba(21, 16, 62, 0.30) 60%,
      rgba(21, 16, 62, 0.10) 100%),
    linear-gradient(180deg,
      rgba(11, 8, 51, 0.30) 0%,
      transparent 30%,
      transparent 70%,
      rgba(11, 8, 51, 0.45) 100%);
}
.hero__inner {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  padding: calc(var(--nav-h) + 72px) 32px 96px;
  min-height: 92vh;
  display: flex;
  align-items: center;
}
.hero__copy { max-width: 720px; }

/* ----- recolor copy for the dark hero ----- */
.hero .display { color: #ffffff; }
.hero .display .purple {
  /* on the dark hero, brighten the accent so it doesn't muddy */
  color: var(--lavender);
}
.hero .lede {
  color: #ffffff;
  font-size: clamp(16px, 1.18vw, 18.5px);
  max-width: 56ch;
}
.hero .eyebrow {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.hero .eyebrow .dot {
  background: var(--lavender);
  box-shadow: 0 0 14px rgba(184, 176, 255, 0.85);
}
.hero__tag {
  color: var(--lavender);
}
.hero .btn--primary {
  background: var(--lavender);
  color: var(--navy);
  box-shadow: 0 16px 44px -14px rgba(184, 176, 255, 0.6);
}
.hero .btn--primary:hover {
  background: #ffffff;
  color: var(--ink);
}
.hero .btn--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(6px);
}
.hero .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.55);
}
.hero__hint { color: rgba(255, 255, 255, 0.6); z-index: 3; }

@media (prefers-reduced-motion: reduce) {
  /* respect users who don't want motion — hide the video, keep the gradient */
  .hero__video { display: none; }
}
.hero__copy .lede { color: #ffffff; font-size: clamp(17px, 1.25vw, 20px); margin-top: 6px; }
.hero__actions {
  display: flex; gap: 14px; flex-wrap: wrap;
  margin-top: 32px;
}
.hero__tag {
  font-family: var(--font);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(22px, 1.8vw, 26px);
  color: #ffffff;
  letter-spacing: -0.01em;
  margin: 18px 0 0;
}

.hero__hint {
  position: absolute;
  left: 50%; bottom: 24px;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-3);
  z-index: 3;
}
.hero__hint svg { width: 14px; height: 14px; animation: bob 2.2s ease-in-out infinite; }
@keyframes bob {
  0%, 100% { transform: translateY(0); opacity: .5; }
  50% { transform: translateY(4px); opacity: 1; }
}

@media (max-width: 980px) {
  .hero { min-height: 78vh; }
  .hero__inner { min-height: 78vh; padding: calc(var(--nav-h) + 32px) 24px 56px; }
  .hero__hint { display: none; }
  /* darker overlay on mobile — the video frame is much narrower and the
     text needs more contrast against busier crops */
  .hero__overlay {
    background:
      linear-gradient(180deg,
        rgba(11, 8, 51, 0.88) 0%,
        rgba(11, 8, 51, 0.65) 60%,
        rgba(21, 16, 62, 0.55) 100%);
  }
}

/* ============ PROBLEM ============ */
.problem {
  padding: var(--sec-pad) 32px;
  background: var(--bg-2);
  border-block: 1px solid var(--line);
}
.problem__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.problem__copy h2 { margin-top: 18px; }
.problem__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.problem__stat {
  background: var(--bg);
  padding: 32px 28px;
  display: flex; flex-direction: column; gap: 8px;
}
.problem__stat .big {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(36px, 4.2vw, 56px);
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.025em;
}
.problem__stat .big em { font-style: normal; color: var(--violet); }
.problem__stat .small { font-size: 13.5px; color: var(--ink-2); }
.problem__cite {
  margin-top: 14px;
  font-size: 11.5px;
  color: var(--ink-3);
}

@media (max-width: 900px) {
  .problem__inner { grid-template-columns: 1fr; gap: 36px; }
}

/* ============ APPROACH (platform-neutral) ============ */
.approach {
  padding: var(--sec-pad) 32px;
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
}
.approach__canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  opacity: .5;
  pointer-events: none;
}
.approach .section-head, .approach__grid { position: relative; z-index: 1; }

.approach__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.approach__card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 28px 26px 30px;
  display: flex; flex-direction: column; gap: 12px;
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.approach__card:hover {
  border-color: var(--violet);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px -20px rgba(124, 92, 255, .35);
}
.approach__num {
  font-family: var(--font);
  font-style: italic;
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--violet);
  line-height: 1;
}
.approach__card p { color: var(--ink-2); font-size: 14.5px; margin: 0; line-height: 1.6; }

@media (max-width: 900px) {
  .approach__grid { grid-template-columns: 1fr; }
}

/* ============ GUIDELINE GENES ============ */
/* White background — keeps it visually distinct from .problem (lavender)
   above. Removed the border-block since white-on-white reads as nothing. */
.panel {
  padding: var(--sec-pad) 32px;
  background: var(--bg);
}
.panel__inner { max-width: var(--max); margin: 0 auto; }
.panel__head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 32px; flex-wrap: wrap; }
.panel__head h2 { margin: 8px 0 0; max-width: 18ch; }
.panel__head .lede { max-width: 36ch; }

.panel__counts {
  display: flex; gap: 32px; flex-wrap: wrap;
  margin: 22px 0 36px;
}
.panel__count {
  font-family: var(--display);
}
.panel__count strong {
  display: block;
  font-weight: 600;
  font-size: clamp(24px, 2.2vw, 34px);
  color: var(--violet);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 4px;
}
.panel__count span {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.genes {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.gene {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 22px 18px;
  display: flex; flex-direction: column; gap: 6px;
  transition: transform .2s ease, border-color .2s ease;
}
.gene:hover { border-color: var(--violet); transform: translateY(-2px); }
.gene__name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.gene__type {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--violet);
}
.gene__detail {
  font-size: 12px; color: var(--ink-2);
  line-height: 1.4;
}
@media (max-width: 980px) { .genes { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 640px) { .genes { grid-template-columns: repeat(2, 1fr); } }

/* ============ PERFORMANCE TABLE ============ */
/* Lavender backdrop — alternates with the white .panel above and the
   white .flagship below, so each section reads as its own unit. */
.perf {
  padding: var(--sec-pad) 32px;
  background: var(--bg-2);
  border-block: 1px solid var(--line);
}
.perf__inner {
  max-width: var(--max);
  margin: 0 auto;
}
.perf__tables {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.perf__table {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.perf__head {
  background: var(--ink);
  color: #fff;
  padding: 18px 22px;
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
}
.perf__head strong {
  font-family: var(--display); font-size: 18px; font-weight: 600;
}
.perf__head span { font-size: 12px; color: rgba(255,255,255,.7); letter-spacing: 0.08em; text-transform: uppercase; }
.perf__rows { padding: 4px 0; }
.perf__row {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  padding: 14px 22px;
  border-top: 1px solid var(--line);
  align-items: center;
  font-size: 13.5px;
}
.perf__row:first-child { border-top: none; background: var(--bg-2); font-weight: 500; color: var(--ink-3); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.perf__row .label { color: var(--ink-2); }
.perf__row .val { font-family: var(--display); font-weight: 600; color: var(--ink); }
.perf__row.spec .val { color: var(--violet); }

.perf__note {
  margin-top: 28px;
  padding: 22px 26px;
  background: var(--bg-2);
  border: 1px dashed var(--line-2);
  border-radius: var(--r-md);
  font-size: 13.5px;
  color: var(--ink-2);
}
.perf__note strong { color: var(--ink); }

@media (max-width: 900px) {
  .perf__tables { grid-template-columns: 1fr; }
}

/* ============ FLAGSHIP PRODUCT ============ */
/* Two-column layout: descriptive copy and chip nav on the left, spec table
   on the right. Both columns top-aligned so the table sits beside the
   headline, not below it. */
.flagship {
  padding: var(--sec-pad) 32px;
  max-width: var(--max);
  margin: 0 auto;
}
.flagship__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: start;
}
.flagship__copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.flagship__copy .eyebrow { align-self: flex-start; }
.flagship__spec {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}

@media (max-width: 900px) {
  .flagship__grid { grid-template-columns: 1fr; gap: 32px; }
  .flagship__spec { position: static; }
}

/* The spec dl defaults to a 2-column inner grid. In the right-side card
   column it would wrap awkwardly, so collapse it to a clean stacked list. */
.flagship__spec .spec {
  grid-template-columns: 1fr;
  margin: 0;
}

.spec {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin: 12px 0 24px;
  background: var(--line-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  overflow: hidden;
}
.spec > div {
  background: var(--bg);
  padding: 18px 20px;
  display: flex; flex-direction: column; gap: 4px;
}
.spec dt {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-3);
}
.spec dd {
  margin: 0;
  font-family: var(--display);
  font-size: 14.5px;
  color: var(--ink);
}

.flagship__nav { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  background: var(--bg);
  border: 1px solid var(--line-2);
  color: var(--ink-2);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px; font-weight: 500;
  transition: all .2s ease;
}
.chip:hover { color: var(--ink); border-color: var(--ink); }
.chip.is-active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}


/* ============ WORKFLOW ============ */
.workflow {
  padding: var(--sec-pad) 32px;
  background: var(--bg-dark);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.workflow .section-head { color: rgba(255,255,255,.85); }
.workflow__inner { max-width: var(--max); margin: 0 auto; position: relative; }
.workflow__canvas {
  position: absolute;
  inset: 0; width: 100%; height: 100%;
  opacity: 0.65;
  pointer-events: none;
}
.workflow .section-head, .steps { position: relative; z-index: 1; }

.steps {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.step {
  position: relative;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-md);
  padding: 22px 20px 24px;
  display: flex; flex-direction: column; gap: 10px;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.step:hover {
  transform: translateY(-4px);
  border-color: var(--violet);
  background: rgba(124,92,255,.08);
}
.step__num {
  font-family: var(--font);
  font-style: italic;
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.005em;
  color: var(--lavender);
  line-height: 1;
}
.step h3 { font-family: var(--display); font-weight: 600; margin: 4px 0 0; font-size: 16px; color: #fff; }
.step p { margin: 0; font-size: 13px; color: rgba(255,255,255,0.65); line-height: 1.55; }
.step__time {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed rgba(255,255,255,0.12);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lavender);
}

@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
}

/* ============ VALIDATION ============ */
.validation {
  padding: var(--sec-pad) 32px;
}
.validation__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
}
.validation__copy h2 { margin: 8px 0 16px; }
.validation__copy ul {
  margin: 0; padding: 0; list-style: none;
  display: flex; flex-direction: column; gap: 14px;
}
/* Bullet rendered via absolute-positioned ::before instead of a flex item.
   With display:flex on the <li>, the inline <strong> and the trailing text
   node would each become their own flex item — that's what caused the
   awkward gap between "ISO 13485" and "manufacturing for reagents." */
.validation__copy li {
  position: relative;
  padding-left: 18px;
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.6;
}
.validation__copy li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--violet);
}
.validation__copy strong { color: var(--ink); font-weight: 600; }

.validation__sites {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.site {
  background: var(--bg);
  padding: 26px 24px;
  display: flex; flex-direction: column; gap: 6px;
  transition: background .25s ease;
}
.site:hover { background: var(--bg-2); }
.site__name { font-family: var(--display); font-weight: 600; color: var(--ink); font-size: 16px; }
.site__role { font-size: 12px; color: var(--ink-3); letter-spacing: 0.06em; text-transform: uppercase; }

@media (max-width: 900px) {
  .validation__inner { grid-template-columns: 1fr; gap: 40px; }
}

/* ============ CASE STUDY ============ */
.case {
  padding: var(--sec-pad) 32px;
  background: var(--bg-2);
  border-block: 1px solid var(--line);
}
.case__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}
/* Left column stacks the patient card + the "Report in 34 hours" finding
   so the column heights balance against the right-side narrative. */
.case__left {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.case__patient {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px;
  display: flex; flex-direction: column; gap: 18px;
}
.case__avatar {
  width: 84px; height: 84px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--violet), var(--violet-3));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 700;
  color: #fff; font-size: 28px;
  letter-spacing: -0.02em;
}
.case__patient dl {
  margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 16px;
  font-size: 14px;
}
.case__patient dt { color: var(--ink-3); }
.case__patient dd { margin: 0; color: var(--ink); font-weight: 500; }

.case__story h2 { margin-bottom: 14px; }
.case__story p { color: var(--ink-2); font-size: 15.5px; line-height: 1.65; margin: 0 0 14px; }
.case__finding {
  padding: 22px 26px;
  background: linear-gradient(120deg, rgba(124,92,255,.08), rgba(184,176,255,.18));
  border: 1px solid var(--lavender);
  border-radius: var(--r-md);
}
.case__finding strong {
  font-family: var(--display); font-size: 22px; color: var(--ink); display: block; margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.case__finding p { margin: 0; font-size: 14px; color: var(--ink-2); }
.case__finding em { font-style: normal; color: var(--violet); font-weight: 600; }
.case__fine {
  font-size: 11.5px;
  color: var(--ink-3);
  margin-top: 14px;
}

@media (max-width: 900px) {
  .case__inner { grid-template-columns: 1fr; gap: 32px; }
}

/* ============ PIPELINE ============ */
.pipeline {
  padding: var(--sec-pad) 32px;
  max-width: var(--max);
  margin: 0 auto;
}
.roadmap {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  font-size: 14px;
}
.roadmap thead { background: var(--bg-2); }
.roadmap th, .roadmap td {
  padding: 18px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.roadmap th {
  font-weight: 500;
  color: var(--ink-3);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.roadmap tbody tr:last-child td { border-bottom: none; }
.roadmap td:first-child {
  font-family: var(--display);
  font-weight: 600;
  color: var(--ink);
}
.roadmap td.platform { color: var(--violet); font-weight: 500; font-size: 13px; }
.roadmap td.stage {
  width: 80px;
  text-align: center;
}
.roadmap td.stage::after {
  content: '';
  display: inline-block;
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: transparent;
}
.roadmap td.stage.done::after {
  background: var(--violet);
  border-color: var(--violet);
  box-shadow: 0 0 12px rgba(124,92,255,.55);
}
.roadmap td.stage.active::after {
  background: radial-gradient(circle, var(--violet) 30%, transparent 70%);
  border-color: var(--violet);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(124,92,255,.55); }
  50% { box-shadow: 0 0 0 8px rgba(124,92,255,0); }
}

@media (max-width: 760px) {
  .roadmap { font-size: 12.5px; }
  .roadmap th, .roadmap td { padding: 12px 10px; }
  .roadmap td.stage { width: auto; }
}

/* ============ AVAILABILITY ============ */
.avail {
  padding: var(--sec-pad) 32px;
  background: var(--bg-dark);
  color: #fff;
}
.avail__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.avail__map {
  position: relative;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r-lg);
  padding: 36px;
  min-height: 320px;
  display: flex; flex-direction: column; justify-content: center;
}
.avail__map .marker {
  font-family: var(--font);
  font-style: italic;
  font-weight: 500;
  font-size: 26px;
  color: var(--lavender);
  letter-spacing: -0.005em;
  margin: 0 0 8px;
}
.avail__map .country {
  font-family: var(--display);
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.avail__map .meta { color: rgba(255,255,255,0.7); font-size: 14px; margin: 0; }

.avail__copy h2 { color: #fff; }
.avail__copy ul {
  margin: 18px 0 0; padding: 0; list-style: none;
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px;
}
.avail__copy li {
  font-size: 14px; color: rgba(255,255,255,0.78); line-height: 1.5;
  position: relative; padding-left: 18px;
}
.avail__copy li::before {
  content: '';
  position: absolute; left: 0; top: 9px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--lavender);
}

@media (max-width: 900px) {
  .avail__inner { grid-template-columns: 1fr; }
  .avail__copy ul { grid-template-columns: 1fr; }
}

/* ============ POWER-OF-SIMPLE CLOSER ============ */
.simple {
  padding: var(--sec-pad) 32px;
  text-align: center;
  background: var(--bg-deeper);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.simple__inner { max-width: 900px; margin: 0 auto; position: relative; z-index: 1; }
.simple__big {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(52px, 9vw, 132px);
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0;
}
.simple__big em { font-style: normal; color: var(--lavender); }
.simple__big .dot { color: var(--violet); }
.simple__sub {
  font-size: clamp(16px, 1.4vw, 19px);
  color: #ffffff;
  margin: 26px auto 36px;
  max-width: 58ch;
}

/* ONCO X brand mark anchored top-left of the closing section.
   White-on-dark variant so the serif "ONCO" reads against the deep navy. */
.simple__brand {
  position: absolute;
  top: 8%;
  left: 6%;
  width: clamp(120px, 14vw, 200px);
  height: auto;
  z-index: 1;
  opacity: 0.92;
}

/* Solid "Talk to us" button — high-contrast lavender on the dark section,
   hovers to white for clear feedback. */
.simple__cta.btn--primary {
  background: var(--lavender);
  color: var(--navy);
  box-shadow: 0 14px 38px -14px rgba(184, 176, 255, 0.55);
}
.simple__cta.btn--primary:hover {
  background: #ffffff;
  color: var(--violet-3);
  transform: translateY(-2px);
  box-shadow: 0 18px 46px -12px rgba(255, 255, 255, 0.45);
}

@media (max-width: 760px) {
  .simple__brand { width: 100px; top: 24px; left: 24px; }
}

/* ============ CTA / CONTACT ============ */
.cta {
  padding: var(--sec-pad) 32px;
}
.cta__inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  padding: 64px 40px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: 0 30px 80px -40px rgba(21, 16, 62, .25);
}
.cta__form {
  display: flex; gap: 10px;
  max-width: 480px; margin: 28px auto 16px;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 5px 5px 5px 22px;
}
.cta__form input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  outline: none;
  min-width: 0;
}
.cta__form input::placeholder { color: var(--ink-3); }
.cta__form button { padding: 11px 18px; }
.cta__direct {
  font-size: 15px;
  color: var(--ink-2);
  margin: 18px auto 0;
}
.cta__direct a {
  color: var(--violet);
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, color .2s ease;
}
.cta__direct a:hover {
  color: var(--violet-3);
  border-bottom-color: var(--violet);
}
.cta__fine {
  font-size: 12px; color: var(--ink-3); max-width: 60ch; margin: 14px auto 0;
}

/* ============ FOOTER ============ */
.foot {
  border-top: 1px solid var(--line);
  padding: 60px 32px 28px;
  background: var(--bg-2);
}
.foot__row {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
}
.foot__brand {
  display: flex; flex-direction: column; gap: 16px;
  align-items: flex-start;
}
/* Lock the logo to a fixed width and let the height follow native aspect.
   This guarantees the PNG never stretches regardless of parent flex/grid
   sizing — the previous height-only constraint sometimes let `width: auto`
   evaluate to the natural pixel width on certain browsers. */
.foot__logo {
  width: 160px;
  height: auto;
  display: block;
  flex-shrink: 0;
}
.foot__brand p { font-size: 14px; color: var(--ink-2); margin: 0; max-width: 30ch; }
.foot__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.foot__cols h4 {
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-3); margin: 0 0 14px;
  font-weight: 500;
}
.foot__cols a {
  display: block;
  font-size: 14px;
  color: var(--ink-2);
  padding: 5px 0;
  transition: color .2s ease;
}
.foot__cols a:hover { color: var(--violet); }
.foot__legal {
  max-width: var(--max);
  margin: 48px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12px; color: var(--ink-3);
}
@media (max-width: 760px) {
  .foot__row { grid-template-columns: 1fr; gap: 36px; }
  .foot__cols { grid-template-columns: repeat(2, 1fr); }
}
