/* ==========================================================================
   VeriTriage — Design System
   Multi-Modal Clinical Triage & Doctor Handoff System
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --bg: #05070f;
  --bg-2: #080c18;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text: #e8eefb;
  --muted: #9aa8c2;
  --muted-2: #6f7d98;

  --teal: #22d3ee;
  --teal-2: #06b6d4;
  --violet: #8b5cf6;
  --violet-2: #a78bfa;
  --emerald: #34d399;
  --amber: #fbbf24;
  --rose: #fb7185;
  --brand-red: #e63946;

  --grad: linear-gradient(120deg, #22d3ee 0%, #6ee7ff 40%, #a78bfa 100%);
  --grad-soft: linear-gradient(120deg, rgba(34, 211, 238, 0.14), rgba(167, 139, 250, 0.14));

  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 28px;

  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 0 1px rgba(34, 211, 238, 0.25), 0 24px 70px -24px rgba(34, 211, 238, 0.35);

  --max: 1180px;
  --font: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

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

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

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

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 600px at 12% -5%, rgba(34, 211, 238, 0.16), transparent 60%),
    radial-gradient(820px 620px at 92% 8%, rgba(139, 92, 246, 0.16), transparent 60%),
    radial-gradient(900px 700px at 50% 110%, rgba(6, 182, 212, 0.08), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 20%, #000 0%, transparent 78%);
}

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

h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 0.5em; font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); }
p { margin: 0 0 1rem; color: var(--muted); }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: 22px; }
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section-tight { padding: clamp(44px, 6vw, 76px) 0; }
.center { text-align: center; }
.stack > * + * { margin-top: 1rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--grad);
}

.lead { font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: #b9c6de; max-width: 68ch; }
.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section-head { max-width: 760px; margin-bottom: 52px; }
.section-head.center { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary {
  background: var(--grad);
  color: #04121a;
  box-shadow: 0 14px 34px -14px rgba(34, 211, 238, 0.8);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 44px -14px rgba(34, 211, 238, 0.95); }
.btn-ghost {
  border-color: var(--border-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}
.btn-ghost:hover { border-color: var(--teal); color: #fff; transform: translateY(-2px); }
.btn-soft { background: var(--surface-2); border-color: var(--border); color: var(--text); }
.btn-soft:hover { border-color: var(--teal); transform: translateY(-2px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(5, 7, 15, 0.55);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.site-header.scrolled {
  background: rgba(5, 7, 15, 0.86);
  border-bottom-color: var(--border);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: -0.02em; font-size: 1.12rem; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center;
  color: var(--brand-red);
  background: rgba(230, 57, 70, 0.08);
  box-shadow: 0 8px 22px -8px rgba(230, 57, 70, 0.55), inset 0 0 0 1px rgba(230, 57, 70, 0.22);
}
.brand-mark img { display: block; width: 30px; height: 30px; object-fit: contain; }
.brand-mark svg { width: 25px; height: 25px; }
.brand-copy { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.brand-copy .brand-text { color: var(--text); line-height: 1; }
.brand-tagline { color: var(--muted); font-size: 0.43rem; font-weight: 700; letter-spacing: 0.11em; line-height: 1.15; text-transform: uppercase; white-space: nowrap; }
.brand-text b { font-weight: 800; color: var(--brand-red); }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-links a.active { color: #fff; background: var(--surface-2); }

.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: 11px;
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; margin: auto; }

/* ---------- Hero ---------- */
.hero { padding: clamp(56px, 8vw, 104px) 0 clamp(50px, 7vw, 90px); position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero .lead { margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px 7px 11px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--grad-soft);
  font-size: 0.82rem;
  font-weight: 500;
  color: #d5e4ff;
  margin-bottom: 26px;
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.18); }

.hero-trust { display: flex; flex-wrap: wrap; gap: 22px 34px; padding-top: 24px; border-top: 1px solid var(--border); }
.hero-trust .t-item { display: flex; flex-direction: column; }
.hero-trust .t-num { font-size: 1.5rem; font-weight: 800; color: #fff; letter-spacing: -0.02em; }
.hero-trust .t-lbl { font-size: 0.8rem; color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.08em; }

/* ---------- Hero visual ---------- */
.hero-visual { position: relative; }
.mock {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(160deg, rgba(16, 22, 40, 0.95), rgba(8, 12, 24, 0.95));
  box-shadow: var(--shadow);
  overflow: hidden;
}
.mock-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}
.mock-bar .d { width: 11px; height: 11px; border-radius: 50%; background: #2c3648; }
.mock-bar .d.a { background: var(--rose); }
.mock-bar .d.b { background: var(--amber); }
.mock-bar .d.c { background: var(--emerald); }
.mock-bar span { margin-left: 8px; font-size: 0.78rem; color: var(--muted-2); font-family: var(--mono); }
.mock-body { padding: 18px; display: grid; gap: 14px; }
.mock-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.mock-row .lbl { font-size: 0.82rem; color: var(--muted); }
.mock-row .val { font-size: 0.84rem; font-weight: 600; }
.tag { font-size: 0.72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; letter-spacing: 0.03em; }
.tag.ok { background: rgba(52, 211, 153, 0.14); color: var(--emerald); border: 1px solid rgba(52, 211, 153, 0.3); }
.tag.warn { background: rgba(251, 191, 36, 0.14); color: var(--amber); border: 1px solid rgba(251, 191, 36, 0.3); }
.tag.crit { background: rgba(251, 113, 133, 0.14); color: var(--rose); border: 1px solid rgba(251, 113, 133, 0.3); }
.tag.info { background: rgba(34, 211, 238, 0.13); color: var(--teal); border: 1px solid rgba(34, 211, 238, 0.3); }

.mock-heat { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); }
.mock-heat img { width: 100%; height: 168px; object-fit: cover; opacity: 0.92; }
.mock-heat .hot {
  position: absolute; inset: 0;
  background:
    radial-gradient(120px 80px at 62% 46%, rgba(251, 113, 133, 0.55), transparent 70%),
    radial-gradient(90px 70px at 40% 62%, rgba(251, 191, 36, 0.4), transparent 70%);
  mix-blend-mode: screen;
}
.mock-heat .cap {
  position: absolute; left: 10px; bottom: 10px;
  font-family: var(--mono); font-size: 0.68rem; color: #cfe0ff;
  background: rgba(4, 8, 18, 0.75); border: 1px solid var(--border);
  padding: 3px 8px; border-radius: 7px;
}
.bars { display: grid; gap: 8px; }
.bar { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 999px; background: var(--grad); }

.float-card {
  position: absolute;
  padding: 12px 15px;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  background: rgba(10, 14, 26, 0.92);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
  font-size: 0.8rem;
  animation: float 6s ease-in-out infinite;
}
.float-card.a { top: -18px; left: -26px; }
.float-card.b { bottom: -20px; right: -18px; animation-delay: -3s; }
.float-card .fc-title { font-weight: 700; color: #fff; font-size: 0.78rem; }
.float-card .fc-sub { color: var(--muted-2); font-size: 0.72rem; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 22px; }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative;
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}
.card::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(320px 160px at var(--mx, 50%) var(--my, 0%), rgba(34, 211, 238, 0.12), transparent 70%);
  opacity: 0; transition: opacity 0.35s ease; pointer-events: none;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.card:hover::after { opacity: 1; }
.card h3 { margin-bottom: 9px; }
.card p { margin-bottom: 0; font-size: 0.94rem; }

.icon-badge {
  width: 46px; height: 46px;
  border-radius: 13px;
  display: grid; place-items: center;
  margin-bottom: 18px;
  background: var(--grad-soft);
  border: 1px solid var(--border-strong);
  color: var(--teal);
}
.icon-badge svg { width: 23px; height: 23px; }
.icon-badge.v { color: var(--violet-2); }
.icon-badge.e { color: var(--emerald); }
.icon-badge.a { color: var(--amber); }

.card-index { font-family: var(--mono); font-size: 0.78rem; color: var(--muted-2); }

/* ---------- Stat band ---------- */
.stat-band {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; background: var(--border);
}
.stat-band .s {
  padding: 28px 24px;
  background: rgba(8, 12, 24, 0.7);
}
.stat-band .s-num { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; color: #fff; letter-spacing: -0.03em; }
.stat-band .s-lbl { color: var(--muted); font-size: 0.86rem; }
.stat-band .s-num .gradient-text { display: inline; }

/* ---------- Pipeline ---------- */
.pipeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; position: relative; }
.pipe-step {
  padding: 24px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  position: relative;
}
.pipe-step .step-no {
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center; font-weight: 800; font-size: 0.9rem;
  background: var(--grad); color: #04121a; margin-bottom: 16px;
}
.pipe-step h4 { margin: 0 0 8px; font-size: 1.02rem; }
.pipe-step p { font-size: 0.88rem; margin: 0 0 14px; }
.artifact {
  font-size: 0.76rem; font-family: var(--mono); color: var(--teal);
  border-top: 1px solid var(--border); padding-top: 12px;
}
.artifact b { display: block; color: var(--muted-2); font-weight: 600; font-family: var(--font); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 4px; }

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); }
.split-media img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.feature-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.feature-list li { display: flex; gap: 11px; align-items: flex-start; color: #c6d3ea; font-size: 0.94rem; }
.feature-list .chk { flex: none; width: 21px; height: 21px; border-radius: 6px; display: grid; place-items: center; background: rgba(34, 211, 238, 0.14); color: var(--teal); margin-top: 2px; }
.feature-list .chk svg { width: 13px; height: 13px; }

/* ---------- Callout / band ---------- */
.band {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background: linear-gradient(150deg, rgba(34, 211, 238, 0.1), rgba(139, 92, 246, 0.1));
  padding: clamp(32px, 5vw, 56px);
  position: relative;
  overflow: hidden;
}
.band::before {
  content: "";
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at 80% 30%, #000, transparent 70%);
  opacity: 0.5;
}

/* ---------- Steps list (vertical) ---------- */
.vsteps { display: grid; gap: 16px; }
.vstep { display: grid; grid-template-columns: 52px 1fr; gap: 20px; padding: 24px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.vstep .n { font-family: var(--mono); font-weight: 700; font-size: 1.1rem; color: var(--teal); }
.vstep h4 { margin: 0 0 5px; font-size: 1.05rem; }
.vstep p { margin: 0; font-size: 0.92rem; }

/* ---------- Table ---------- */
.table-wrap { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
thead th {
  text-align: left; padding: 16px 20px; font-size: 0.74rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted-2); background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border); font-weight: 700;
}
tbody td { padding: 16px 20px; border-bottom: 1px solid var(--border); color: #c6d3ea; vertical-align: top; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: rgba(255, 255, 255, 0.02); }
tbody td:first-child { color: #fff; font-weight: 600; }
.validation-table th:last-child,
.validation-table td:last-child { min-width: 128px; white-space: nowrap; }
.validation-table td:last-child .tag { display: inline-flex; align-items: center; }

/* ---------- Timeline / roadmap ---------- */
.timeline { display: grid; gap: 0; position: relative; }
.tl-item { display: grid; grid-template-columns: 210px 1fr; gap: 30px; padding: 34px 0; border-top: 1px solid var(--border); }
.tl-item:first-child { border-top: none; }
.tl-phase { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal); }
.tl-phase span { display: block; color: var(--muted-2); font-weight: 500; letter-spacing: 0.04em; text-transform: none; font-size: 0.82rem; margin-top: 6px; }
.tl-body h3 { margin-bottom: 10px; }
.tl-body ul { margin: 0; padding-left: 18px; color: #c6d3ea; }
.tl-body li { margin-bottom: 7px; font-size: 0.94rem; }

/* ---------- FAQ ---------- */
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); margin-bottom: 12px; overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: 0; color: var(--text); font-weight: 600; font-size: 1rem; padding: 20px 22px; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq-q .chev { transition: transform 0.3s ease; color: var(--teal); flex: none; }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-a p { padding: 0 22px 20px; margin: 0; font-size: 0.93rem; }

/* ---------- Notice / disclaimer ---------- */
.notice {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px 22px; border-radius: var(--radius);
  border: 1px solid rgba(251, 191, 36, 0.3);
  background: rgba(251, 191, 36, 0.06);
}
.notice svg { width: 24px; height: 24px; color: var(--amber); flex: none; margin-top: 2px; }
.notice p { margin: 0; font-size: 0.92rem; color: #ded4b6; }
.notice.info { border-color: rgba(34, 211, 238, 0.3); background: rgba(34, 211, 238, 0.06); }
.notice.info svg { color: var(--teal); }
.notice.info p { color: #c3d9e6; }

/* ---------- CTA ---------- */
.cta-final { text-align: center; }
.cta-final h2 { max-width: 720px; margin-inline: auto; }

/* ---------- Form ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.84rem; font-weight: 600; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: 12px;
  border: 1px solid var(--border-strong); background: rgba(255, 255, 255, 0.03);
  color: var(--text); font-family: inherit; font-size: 0.94rem; transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.16);
}
.field select option { background: #0b1120; }
.form-note { font-size: 0.82rem; color: var(--muted-2); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 64px 0 34px; margin-top: 40px; background: rgba(4, 6, 14, 0.6); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand p { font-size: 0.9rem; max-width: 34ch; margin-top: 16px; }
.footer-contact { margin-top: 10px; }
.footer-contact a { color: var(--teal); transition: opacity 0.2s ease; }
.footer-contact a:hover { opacity: 0.8; }
.footer-col h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted-2); margin-bottom: 16px; }
.footer-col a { display: block; color: var(--muted); font-size: 0.9rem; padding: 5px 0; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--teal); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 48px; padding-top: 26px; border-top: 1px solid var(--border); font-size: 0.84rem; color: var(--muted-2); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-legal a { color: var(--muted-2); transition: color 0.2s ease; }
.footer-legal a:hover { color: var(--teal); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .float-card { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Page hero (interior pages) ---------- */
.page-hero { padding: clamp(48px, 7vw, 84px) 0 clamp(30px, 4vw, 48px); }
.contact-hero { padding-top: clamp(60px, 8vw, 96px); }
.breadcrumb { font-size: 0.82rem; color: var(--muted-2); margin-bottom: 16px; }
.breadcrumb a:hover { color: var(--teal); }

/* ==========================================================================
   Visual mockups (self-contained, no external images)
   ========================================================================== */
.viz {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(160deg, rgba(16, 22, 40, 0.96), rgba(8, 12, 24, 0.96));
  box-shadow: var(--shadow);
  overflow: hidden;
}
.viz-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 15px; border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}
.viz-bar .d { width: 10px; height: 10px; border-radius: 50%; background: #2c3648; }
.viz-bar .d.a { background: var(--rose); }
.viz-bar .d.b { background: var(--amber); }
.viz-bar .d.c { background: var(--emerald); }
.viz-bar .t { margin-left: 8px; font-family: var(--mono); font-size: 0.73rem; color: var(--muted-2); }
.viz-body { padding: 18px; display: grid; gap: 12px; }

/* When a split media slot holds a mockup, drop the photo frame */
.split-media.has-mock {
  border: 0; box-shadow: none; border-radius: 0; overflow: visible; background: none;
}

/* Simulated medical scan with attention overlay */
.scan {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); aspect-ratio: 16 / 10;
  background: radial-gradient(120% 95% at 50% 42%, #1b2231 0%, #0b111c 68%, #070a12 100%);
}
.scan .ribs {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(76deg, rgba(182, 206, 232, 0.09) 0 2px, transparent 2px 20px),
    repeating-linear-gradient(-76deg, rgba(182, 206, 232, 0.09) 0 2px, transparent 2px 20px);
  opacity: 0.65;
}
.scan .spine {
  position: absolute; left: 50%; top: 8%; bottom: 8%; width: 13px; transform: translateX(-50%);
  border-radius: 8px; background: linear-gradient(180deg, rgba(200, 222, 244, 0.28), rgba(200, 222, 244, 0.05));
  filter: blur(1.5px);
}
.scan .lungs {
  position: absolute; inset: 14% 10% 16% 10%;
  background:
    radial-gradient(36% 46% at 26% 46%, rgba(118, 158, 200, 0.2), transparent 72%),
    radial-gradient(36% 46% at 74% 46%, rgba(118, 158, 200, 0.2), transparent 72%);
}
.scan .hot {
  position: absolute; inset: 0;
  background:
    radial-gradient(92px 74px at 66% 45%, rgba(251, 113, 133, 0.62), transparent 71%),
    radial-gradient(70px 60px at 43% 61%, rgba(251, 191, 36, 0.42), transparent 73%);
  mix-blend-mode: screen;
}
.scan .cap {
  position: absolute; left: 10px; bottom: 10px;
  font-family: var(--mono); font-size: 0.67rem; color: #cfe0ff;
  background: rgba(4, 8, 18, 0.78); border: 1px solid var(--border);
  padding: 3px 8px; border-radius: 7px;
}
/* Hero slot: scan fills the fixed-height frame */
.mock-heat { min-height: 190px; }
.mock-heat .scan { position: absolute; inset: 0; aspect-ratio: auto; border: 0; border-radius: 0; }

/* Structured fields mock */
.field-mock { display: grid; gap: 6px; }
.field-mock .fl { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted-2); }
.field-mock .fv {
  font-size: 0.86rem; color: #dbe6f7; padding: 10px 12px;
  border-radius: 10px; border: 1px solid var(--border); background: rgba(255, 255, 255, 0.03);
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: 0.72rem; padding: 5px 11px; border-radius: 999px;
  border: 1px solid var(--border-strong); background: rgba(255, 255, 255, 0.03); color: #cfe0ff;
}
.chip.on { border-color: var(--teal); background: rgba(34, 211, 238, 0.12); color: #9fe9f7; }
.chip.warn { border-color: rgba(251, 191, 36, 0.4); background: rgba(251, 191, 36, 0.1); color: #fbe3a3; }

/* Lab report mock */
.lab { border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; background: linear-gradient(160deg, rgba(16, 22, 40, 0.96), rgba(8, 12, 24, 0.96)); }
.lab-head { padding: 14px 16px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.lab-head b { font-size: 0.9rem; }
.lab-head span { font-family: var(--mono); font-size: 0.72rem; color: var(--muted-2); }
.lab-row {
  display: grid; grid-template-columns: 1.5fr 0.8fr 1fr auto; gap: 12px; align-items: center;
  padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 0.84rem;
}
.lab-row:last-child { border-bottom: 0; }
.lab-row .nm { color: #e8eefb; }
.lab-row .vl { font-family: var(--mono); color: #cfe0ff; }
.lab-row .rg { color: var(--muted-2); font-size: 0.78rem; }
.lab-row .st { justify-self: end; }

/* Conflicting streams mock */
.conflict { display: grid; gap: 12px; }
.conflict .stream {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  border-radius: 14px; border: 1px solid var(--border); background: rgba(255, 255, 255, 0.03);
}
.conflict .stream .ic {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; flex: none;
  background: var(--grad-soft); border: 1px solid var(--border-strong); color: var(--teal);
}
.conflict .stream .ic svg { width: 18px; height: 18px; }
.conflict .stream .tx b { display: block; font-size: 0.85rem; color: #fff; }
.conflict .stream .tx span { font-size: 0.78rem; color: var(--muted); }
.conflict .vs { text-align: center; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.24em; color: var(--amber); }
.conflict .flag {
  display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-radius: 14px;
  border: 1px solid rgba(251, 113, 133, 0.38); background: rgba(251, 113, 133, 0.08);
  color: #f7c6cf; font-size: 0.84rem; font-weight: 600;
}
.conflict .flag svg { width: 18px; height: 18px; color: var(--rose); flex: none; }

/* Knowledge base / citations mock */
.kb { display: grid; gap: 10px; }
.kb-item { padding: 14px 16px; border-radius: 14px; border: 1px solid var(--border); background: rgba(255, 255, 255, 0.03); }
.kb-item .kq { font-size: 0.86rem; color: #e8eefb; margin-bottom: 10px; }
.kb-item .km { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.kb-item .src { font-family: var(--mono); font-size: 0.73rem; color: var(--teal); }
.conf { display: flex; align-items: center; gap: 8px; font-size: 0.72rem; color: var(--muted-2); }
.conf .bar { width: 74px; }
.conf b { color: #cfe0ff; font-weight: 600; }

/* SOAP handoff mock */
.soap { display: grid; gap: 10px; }
.soap-row {
  display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start;
  padding: 14px 16px; border-radius: 14px; border: 1px solid var(--border); background: rgba(255, 255, 255, 0.03);
}
.soap-row .k {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  font-weight: 800; font-size: 0.85rem; background: var(--grad); color: #04121a;
}
.soap-row .c b { display: block; font-size: 0.84rem; color: #fff; margin-bottom: 3px; }
.soap-row .c span { font-size: 0.8rem; color: var(--muted); }

/* Privacy / shield mock */
.shield-mock {
  position: relative; overflow: hidden; padding: 24px;
  border-radius: var(--radius); border: 1px solid var(--border);
  background: linear-gradient(160deg, rgba(16, 22, 40, 0.96), rgba(8, 12, 24, 0.96));
  display: grid; gap: 16px;
}
.shield-mock .glow {
  position: absolute; inset: -30% -10% auto -10%; height: 65%;
  background: radial-gradient(closest-side, rgba(34, 211, 238, 0.22), transparent); filter: blur(12px);
}
.shield-mock .svis { display: grid; place-items: center; position: relative; }
.shield-mock .svis svg { width: 92px; height: 92px; }
.tokens { display: grid; gap: 10px; position: relative; }
.tok { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: center; }
.tok .lbl { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.06em; color: var(--muted-2); }
.tok .seg { height: 12px; border-radius: 4px; background: linear-gradient(90deg, rgba(34, 211, 238, 0.55), rgba(167, 139, 250, 0.55)); }

/* Founder section */
#founder.section { padding-top: clamp(52px, 6vw, 76px); padding-bottom: clamp(28px, 3.5vw, 44px); }
.founder-panel {
  position: relative; min-height: 360px; padding: 24px; overflow: hidden;
  border-radius: var(--radius-lg); border: 1px solid var(--border-strong);
  background:
    radial-gradient(300px 240px at 50% 36%, rgba(34, 211, 238, 0.17), transparent 72%),
    linear-gradient(155deg, rgba(17, 23, 42, 0.98), rgba(7, 10, 20, 0.98));
  display: flex; flex-direction: column; justify-content: space-between;
}
.founder-panel::before {
  content: ""; position: absolute; inset: 0; opacity: 0.38;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 34px 34px; mask-image: radial-gradient(circle at 50% 42%, #000, transparent 78%);
}
.founder-art { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; flex: 1; min-height: 0; }
.founder-art img {
  width: auto; height: auto; max-width: 100%; max-height: 440px; object-fit: contain;
  border-radius: 18px; border: 1px solid var(--border-strong);
  filter: grayscale(100%); position: relative;
}
.founder-caption {
  position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: 16px; border-top: 1px solid var(--border);
}
.founder-caption b { display: block; font-size: .96rem; color: #fff; }
.founder-caption span { display: block; color: var(--muted-2); font-size: .78rem; }
.founder-caption .tag { white-space: nowrap; }
.founder-copy { max-width: 620px; }
.founder-copy .lead { margin-bottom: 18px; }
.founder-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin: 22px 0 16px; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--border); }
.founder-stats > div { padding: 13px 14px; background: rgba(8, 12, 24, .82); }
.founder-stats b { display: block; color: #fff; font-size: 1.04rem; }
.founder-stats span { display: block; color: var(--muted-2); font-size: .74rem; line-height: 1.4; }
.founder-credentials { display: flex; flex-wrap: wrap; gap: 8px; }
.founder-focus { font-size: .86rem; margin: 14px 0 0; }
.founder-principles { display: flex; flex-wrap: wrap; gap: 9px; margin: 18px 0 22px; }

/* ==========================================================================
   Tighter vertical rhythm (applied via body.tight)
   ========================================================================== */
body.tight .section { padding: clamp(46px, 5.4vw, 78px) 0; }
body.tight .section-tight { padding: clamp(30px, 3.6vw, 50px) 0; }
body.tight .page-hero { padding: clamp(36px, 5vw, 62px) 0 clamp(18px, 2.4vw, 28px); }
body.tight .section-head { margin-bottom: 38px; }
body.tight .split { gap: 46px; }
body.tight .vsteps { gap: 14px; }
body.tight .vstep { padding: 22px; }
body.tight .tl-item { padding: 30px 0; }
body.tight .pipeline { gap: 16px; }

/* Tighter, snappier scroll reveals with subtle stagger */
.reveal { transform: translateY(16px); transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 0.7, 0.2, 1); }
.grid > .reveal:nth-child(2),
.vsteps > .reveal:nth-child(2),
.pipeline > .reveal:nth-child(2) { transition-delay: 0.06s; }
.grid > .reveal:nth-child(3),
.vsteps > .reveal:nth-child(3),
.pipeline > .reveal:nth-child(3) { transition-delay: 0.12s; }
.grid > .reveal:nth-child(4),
.vsteps > .reveal:nth-child(4),
.pipeline > .reveal:nth-child(4) { transition-delay: 0.18s; }
.grid > .reveal:nth-child(5) { transition-delay: 0.24s; }
.grid > .reveal:nth-child(6) { transition-delay: 0.3s; }

/* ==========================================================================
   FAQ polish
   ========================================================================== */
.faq-item { margin-bottom: 10px; }
.faq-q { padding: 18px 22px; font-size: 0.98rem; }
.faq-a p { padding: 0 22px 18px; margin: 0; }

/* ==========================================================================
   Form feedback
   ========================================================================== */
.form-status {
  display: flex; gap: 10px; align-items: flex-start; margin-top: 14px;
  padding: 14px 16px; border-radius: 12px; font-size: 0.88rem; border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03); color: var(--muted);
}
.form-status.ok { border-color: rgba(52, 211, 153, 0.35); background: rgba(52, 211, 153, 0.08); color: #b7f0d6; }
.form-status.err { border-color: rgba(251, 113, 133, 0.35); background: rgba(251, 113, 133, 0.08); color: #f7c6cf; }
.form-status svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.btn.is-loading { opacity: 0.72; pointer-events: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .g-4 { grid-template-columns: repeat(2, 1fr); }
  .stat-band { grid-template-columns: repeat(2, 1fr); }
  .pipeline { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .float-card.a { left: -6px; }
  .float-card.b { right: -6px; }
}
@media (max-width: 860px) {
  .nav-links {
    position: fixed; inset: 72px 0 auto 0;
    flex-direction: column; align-items: stretch;
    gap: 4px; padding: 16px 22px 26px;
    background: rgba(6, 9, 18, 0.98);
    border-bottom: 1px solid var(--border);
    transform: translateY(-140%); transition: transform 0.3s ease;
    backdrop-filter: blur(14px);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 13px 14px; border-radius: 12px; font-size: 1rem; }
  .nav-toggle { display: grid; }
  .nav-cta .btn-ghost { display: none; }
  .split { grid-template-columns: 1fr; gap: 34px; }
  .split.reverse .split-media { order: 0; }
  .g-2, .g-3 { grid-template-columns: 1fr; }
  .tl-item { grid-template-columns: 1fr; gap: 12px; }
  .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .g-4, .pipeline, .stat-band { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-trust { gap: 18px 26px; }
  .float-card { display: none; }
  .lab-row { grid-template-columns: 1.3fr auto; gap: 6px 12px; }
  .lab-row .rg { display: none; }
  .tok { grid-template-columns: 78px 1fr; }
  .viz-body { padding: 15px; }
  .founder-panel { min-height: 310px; padding: 20px; }
  .founder-art img { max-height: 420px; }
  .founder-caption { align-items: flex-start; flex-direction: column; }
}
