/* ==========================================================================
   LiverAI - company website
   Design system: clinical royal-blue palette (from logo) + single teal pulse
   accent (echoing the ECG mark in the logo).
   Display: Plus Jakarta Sans · Body: Inter · Data/labels: JetBrains Mono
   ========================================================================== */

:root {
  /* Brand blues (anchored to logo ~#2870C4) */
  --brand-50:  #EEF5FD;
  --brand-100: #D7E8FA;
  --brand-200: #B4D3F4;
  --brand-300: #7FB2EC;
  --brand-400: #418FDF;
  --brand-500: #2271C9;   /* primary */
  --brand-600: #195CAE;
  --brand-700: #134A8E;
  --brand-800: #103C73;
  --brand-900: #0A2A5E;   /* deepest navy */

  /* Teal pulse accent - used sparingly */
  --accent:      #14C5BE;
  --accent-600:  #0FA8A2;
  --accent-glow: rgba(20, 197, 190, .40);

  /* Ink + neutrals */
  --ink:        #0B1F38;
  --ink-soft:   #46597A;
  --ink-faint:  #7888A0;
  --surface:    #FFFFFF;
  --surface-2:  #F4F8FD;
  --surface-3:  #E9F1FA;
  --line:       #DCE7F2;
  --line-2:     #C8D8EA;

  /* Radii */
  --r-xl: 30px;
  --r-lg: 22px;
  --r-md: 14px;
  --r-sm: 10px;
  --r-pill: 999px;

  /* Shadows */
  --shadow-sm:   0 1px 2px rgba(11,31,56,.05), 0 4px 10px -6px rgba(16,60,115,.18);
  --shadow-card: 0 1px 2px rgba(11,31,56,.04), 0 16px 38px -16px rgba(16,60,115,.22);
  --shadow-float:0 30px 70px -24px rgba(10,42,94,.42), 0 6px 16px -8px rgba(10,42,94,.20);

  --container: 1200px;
  --header-h: 74px;

  --ease: cubic-bezier(.22,.61,.36,1);

  --font-display: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html:focus-within { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
ul { list-style: none; padding: 0; }

::selection { background: var(--brand-200); color: var(--brand-900); }

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

.skip-link {
  position: absolute; left: 16px; top: -60px;
  background: var(--brand-900); color: #fff;
  padding: 10px 16px; border-radius: var(--r-sm);
  z-index: 200; transition: top .2s var(--ease);
  font-weight: 600;
}
.skip-link:focus { top: 16px; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
}
.section { padding-block: clamp(72px, 9vw, 132px); }
.section--tight { padding-block: clamp(56px, 6vw, 92px); }
.section--alt { background: var(--surface-2); }

/* ---------- Typography ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--brand-500);
  display: inline-flex;
  align-items: center;
  gap: .6em;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: var(--accent);
  display: inline-block;
  border-radius: 2px;
}
.eyebrow--center { justify-content: center; }

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.1; }
h1 {
  font-size: clamp(2.4rem, 1.4rem + 3.6vw, 4.05rem);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.04;
}
h2 {
  font-size: clamp(1.85rem, 1.2rem + 2.4vw, 2.85rem);
  font-weight: 700;
  letter-spacing: -.018em;
}
h3 { font-size: clamp(1.12rem, 1rem + .5vw, 1.35rem); font-weight: 700; letter-spacing: -.01em; }

.lead {
  font-size: clamp(1.06rem, 1rem + .5vw, 1.28rem);
  color: var(--ink-soft);
  line-height: 1.62;
  font-weight: 400;
}

.section-head { max-width: 760px; }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head h2 { margin-bottom: 18px; }
.section-head--center { margin-inline: auto; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .55em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .98rem;
  padding: .82em 1.5em;
  border-radius: var(--r-pill);
  transition: transform .18s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .2s var(--ease);
  white-space: nowrap;
  line-height: 1;
}
.btn svg { width: 1.05em; height: 1.05em; }
.btn--primary {
  background: linear-gradient(180deg, var(--brand-500), var(--brand-600));
  color: #fff;
  box-shadow: 0 1px 1px rgba(255,255,255,.25) inset, var(--shadow-sm);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -10px rgba(34,113,201,.55); }
.btn--secondary {
  background: var(--surface);
  color: var(--brand-700);
  box-shadow: inset 0 0 0 1.5px var(--line-2);
}
.btn--secondary:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1.5px var(--brand-300); color: var(--brand-600); }
.btn--ghost { color: var(--brand-700); padding-inline: .4em; }
.btn--ghost:hover { color: var(--brand-500); }
.btn--on-dark {
  background: #fff; color: var(--brand-700);
}
.btn--on-dark:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(0,0,0,.4); }
.btn--lg { padding: 1em 1.8em; font-size: 1.04rem; }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background .3s var(--ease), box-shadow .3s var(--ease), backdrop-filter .3s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 var(--line), 0 8px 24px -18px rgba(10,42,94,.5);
}
.nav {
  width: 100%; max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
  display: flex; align-items: center; gap: 24px;
}
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { height: 34px; width: auto; }
.nav-links {
  display: flex; align-items: center; gap: 4px;
  margin-left: 12px;
}
.nav-links a {
  font-size: .94rem; font-weight: 500; color: var(--ink-soft);
  padding: .5em .8em; border-radius: var(--r-sm);
  transition: color .18s var(--ease), background .18s var(--ease);
}
.nav-links a:hover { color: var(--brand-600); background: var(--brand-50); }
.nav-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.nav-actions .btn { padding: .62em 1.15em; font-size: .92rem; }

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: var(--r-sm);
  align-items: center; justify-content: center;
  flex-direction: column; gap: 5px;
}
.menu-toggle span {
  width: 22px; height: 2px; background: var(--ink);
  border-radius: 2px; transition: transform .25s var(--ease), opacity .2s var(--ease);
}
body.menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: clamp(40px, 6vw, 76px);
  padding-bottom: clamp(56px, 7vw, 104px);
  overflow: hidden;
}
.hero::before {
  /* soft brand wash */
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(1100px 520px at 88% -8%, var(--brand-50), transparent 60%),
    radial-gradient(720px 420px at -6% 8%, #F0F7FE, transparent 62%);
  z-index: -2;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.hero-copy { max-width: 620px; }
.hero h1 { margin: 20px 0 0; }
.hero h1 .grad {
  background: linear-gradient(100deg, var(--brand-500), var(--accent-600));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero-lead { margin-top: 22px; max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-trust {
  display: flex; flex-wrap: wrap; gap: 10px 10px;
  margin-top: 30px;
}
.pill {
  display: inline-flex; align-items: center; gap: .55em;
  font-size: .85rem; font-weight: 500; color: var(--ink-soft);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: .5em .9em; border-radius: var(--r-pill);
  box-shadow: var(--shadow-sm);
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-glow); }

/* Pulse line under hero copy */
.pulse-wrap { margin-top: 30px; max-width: 540px; }
.pulse-line { width: 100%; height: 40px; overflow: visible; }
.pulse-line .track { stroke: var(--brand-100); stroke-width: 2; fill: none; }
.pulse-line .beat {
  stroke: var(--accent); stroke-width: 2.4; fill: none;
  stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 0 6px var(--accent-glow));
  stroke-dasharray: 760;
  stroke-dashoffset: 760;
  animation: drawBeat 3.4s var(--ease) forwards, pulseGlow 2.6s ease-in-out 3.4s infinite;
}
@keyframes drawBeat { to { stroke-dashoffset: 0; } }
@keyframes pulseGlow { 0%,100% { opacity: .85; } 50% { opacity: 1; } }

/* Hero visual */
.hero-visual { position: relative; }
.hero-photo {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-float);
  aspect-ratio: 5 / 4;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10,42,94,.28));
  pointer-events: none;
}
.hero-ring {
  position: absolute; inset: -10% -8% auto auto;
  width: 64%; aspect-ratio: 1; z-index: -1;
  background: radial-gradient(circle at 50% 50%, var(--accent-glow), transparent 62%);
  filter: blur(6px);
}

/* Floating analysis card */
.analysis-card {
  position: absolute;
  left: -7%; bottom: 8%;
  width: min(290px, 78%);
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255,255,255,.9);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-float);
  padding: 16px 18px;
}
.analysis-card .ac-top {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-mono); font-size: .66rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-faint);
  margin-bottom: 12px;
}
.live { display: inline-flex; align-items: center; gap: .5em; color: var(--accent-600); }
.live .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: .25; } }
.ac-scan {
  position: relative; height: 92px; border-radius: var(--r-md);
  overflow: hidden;
  background:
    radial-gradient(60px 46px at 64% 56%, rgba(255,120,80,.85), rgba(255,170,60,.35) 55%, transparent 72%),
    repeating-linear-gradient(115deg, #0b1f33 0 3px, #11304d 3px 6px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}
.ac-scan::before {
  /* ultrasound fan vignette */
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 120% at 50% -30%, transparent 38%, rgba(8,18,30,.85) 72%);
}
.ac-meta { margin-top: 12px; }
.ac-label { font-size: .8rem; color: var(--ink-soft); }
.ac-flag { font-family: var(--font-display); font-weight: 700; font-size: .98rem; color: var(--ink); margin-top: 2px; }
.ac-bar { margin-top: 10px; height: 7px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.ac-bar > i { display: block; height: 100%; width: 94%; border-radius: 99px; background: linear-gradient(90deg, var(--brand-400), var(--accent)); }
.ac-bottom { display: flex; justify-content: space-between; align-items: baseline; margin-top: 8px; }
.ac-bottom .v { font-family: var(--font-mono); font-weight: 700; font-size: 1.05rem; color: var(--brand-700); }
.ac-bottom .k { font-size: .72rem; color: var(--ink-faint); }

/* ---------- Origin strip ---------- */
.origin {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.origin-inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 32px;
  padding-block: 26px;
}
.origin-label {
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-faint);
}
.origin-marks { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; }
.origin-mark {
  display: inline-flex; align-items: center; gap: .55em;
  font-weight: 600; color: var(--ink); font-size: .96rem;
}
.origin-mark svg { width: 18px; height: 18px; color: var(--brand-500); }
.origin-sep { width: 1px; height: 18px; background: var(--line-2); }

/* ---------- Stat grid (problem) ---------- */
.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
}
.stat-cards {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.stat:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.stat .num {
  font-family: var(--font-mono); font-weight: 700;
  font-size: clamp(1.9rem, 1.2rem + 2vw, 2.5rem);
  color: var(--brand-700); line-height: 1; letter-spacing: -.02em;
}
.stat .num small { font-size: .55em; color: var(--brand-400); font-weight: 700; }
.stat .desc { margin-top: 10px; font-size: .92rem; color: var(--ink-soft); line-height: 1.5; }
.problem-copy p + p { margin-top: 16px; }
.problem-copy .lead { margin-top: 18px; }

/* ---------- How it works (steps) ---------- */
.how-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 5vw, 72px); align-items: center;
}
.steps { display: grid; gap: 14px; }
.step {
  display: grid; grid-template-columns: auto 1fr; gap: 18px;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.step:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); border-color: var(--brand-200); }
.step .n {
  font-family: var(--font-mono); font-weight: 700; font-size: .9rem;
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  color: #fff; background: linear-gradient(180deg, var(--brand-500), var(--brand-700));
  box-shadow: var(--shadow-sm);
}
.step h3 { margin-bottom: 6px; }
.step p { font-size: .96rem; color: var(--ink-soft); }
.step .note { color: var(--accent-600); font-weight: 500; }

/* Product preview mock */
.product-mock {
  border-radius: var(--r-xl);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-float);
}
.pm-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 13px 16px; border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.pm-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.pm-bar .dot:nth-child(1){ background:#e9837a;} .pm-bar .dot:nth-child(2){ background:#e7c06a;} .pm-bar .dot:nth-child(3){ background:#7fc08a;}
.pm-bar .pm-title { margin-left: 8px; font-family: var(--font-mono); font-size: .72rem; color: var(--ink-faint); letter-spacing: .06em; }
.pm-body { padding: 18px; display: grid; gap: 14px; }
.pm-patient {
  display: flex; align-items: center; justify-content: space-between;
  font-size: .82rem; color: var(--ink-soft);
  background: var(--surface-2); border-radius: var(--r-md); padding: 10px 14px;
}
.pm-patient b { color: var(--ink); font-family: var(--font-display); }
.pm-scan {
  position: relative; height: 200px; border-radius: var(--r-md); overflow: hidden;
  background:
    radial-gradient(90px 70px at 58% 60%, rgba(255,120,80,.9), rgba(255,180,70,.4) 52%, transparent 72%),
    repeating-linear-gradient(118deg, #091a2c 0 3px, #11304d 3px 7px);
}
.pm-scan::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(135% 120% at 50% -28%, transparent 36%, rgba(6,15,26,.9) 74%);
}
.pm-scan .tag {
  position: absolute; left: 12px; top: 12px; z-index: 2;
  font-family: var(--font-mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase;
  color: #cfe6ff; background: rgba(8,20,36,.6); border: 1px solid rgba(255,255,255,.14);
  padding: .35em .6em; border-radius: 99px;
}
.pm-scan .roi {
  position: absolute; z-index: 2; left: 49%; top: 49%; width: 84px; height: 64px;
  transform: translate(-50%,-50%);
  border: 1.5px dashed rgba(255,200,120,.9); border-radius: 8px;
}
.pm-result {
  display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center;
  border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px;
}
.pm-result .label { font-family: var(--font-mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); }
.pm-result .flag { font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; color: var(--ink); margin-top: 2px; }
.pm-result .pbar { margin-top: 9px; height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.pm-result .pbar > i { display: block; height: 100%; width: 92%; background: linear-gradient(90deg, var(--brand-400), var(--accent)); border-radius: 99px; }
.pm-ring {
  width: 76px; height: 76px; border-radius: 50%;
  display: grid; place-items: center; text-align: center;
  background:
    conic-gradient(var(--accent) 0 92%, var(--surface-3) 0);
  position: relative;
}
.pm-ring::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: #fff; }
.pm-ring span { position: relative; font-family: var(--font-mono); font-weight: 700; font-size: 1.08rem; color: var(--brand-700); }
.pm-ring small { position: relative; display: block; font-size: .54rem; letter-spacing: .1em; color: var(--ink-faint); text-transform: uppercase; }
.pm-foot { display: flex; align-items: center; justify-content: space-between; }
.pm-foot .rec { font-size: .82rem; color: var(--ink-soft); }
.pm-foot .dl {
  display: inline-flex; align-items: center; gap: .5em;
  font-size: .82rem; font-weight: 600; color: var(--brand-600);
}
.pm-foot .dl svg { width: 15px; height: 15px; }

/* ---------- Feature grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 48px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); border-color: var(--brand-200); }
.feature .ic {
  width: 46px; height: 46px; border-radius: 13px;
  display: grid; place-items: center; margin-bottom: 16px;
  background: var(--brand-50); color: var(--brand-600);
  border: 1px solid var(--brand-100);
}
.feature .ic svg { width: 22px; height: 22px; }
.feature h3 { font-size: 1.05rem; margin-bottom: 7px; }
.feature p { font-size: .9rem; color: var(--ink-soft); line-height: 1.55; }

/* ---------- Technology ---------- */
.tech-grid {
  display: grid; grid-template-columns: 1.1fr .9fr;
  gap: clamp(36px, 5vw, 72px); align-items: center;
}
.pillars { display: grid; gap: 14px; margin-top: 8px; }
.pillar {
  display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start;
  padding: 20px 4px;
  border-bottom: 1px solid var(--line);
}
.pillar:last-child { border-bottom: 0; }
.pillar .pic {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(180deg, var(--brand-50), #fff);
  border: 1px solid var(--brand-100); color: var(--brand-600);
}
.pillar .pic svg { width: 22px; height: 22px; }
.pillar h3 { margin-bottom: 5px; }
.pillar p { font-size: .94rem; color: var(--ink-soft); }

/* Tech visual: wireframe liver + metrics */
.tech-visual {
  position: relative;
  background: linear-gradient(160deg, var(--brand-800), var(--brand-900));
  border-radius: var(--r-xl);
  padding: 34px 30px 30px;
  overflow: hidden;
  box-shadow: var(--shadow-float);
}
.tech-visual::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(420px 300px at 78% 12%, rgba(20,197,190,.22), transparent 60%),
              radial-gradient(360px 280px at 8% 92%, rgba(63,143,223,.28), transparent 62%);
}
.tv-liver { position: relative; display: grid; place-items: center; margin-bottom: 22px; }
.tv-liver svg { width: min(260px, 80%); height: auto; filter: drop-shadow(0 0 24px rgba(20,197,190,.35)); }
.tv-metrics { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tv-metric {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-md); padding: 16px 16px;
  backdrop-filter: blur(4px);
}
.tv-metric .v { font-family: var(--font-mono); font-weight: 700; font-size: clamp(1.5rem,1rem+1.6vw,2rem); color: #fff; line-height: 1; }
.tv-metric .v small { color: var(--accent); font-size: .55em; }
.tv-metric .k { margin-top: 8px; font-size: .78rem; color: #B9D2F0; letter-spacing: .02em; }
.tech-note {
  margin-top: 26px; font-size: .86rem; color: var(--ink-faint);
  max-width: 720px; line-height: 1.55;
  padding-left: 16px; border-left: 2px solid var(--line-2);
}

/* ---------- Impact band ---------- */
.impact {
  position: relative;
  background: linear-gradient(155deg, var(--brand-700), var(--brand-900) 70%);
  color: #fff;
  overflow: hidden;
}
.impact::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(700px 420px at 90% -10%, rgba(20,197,190,.16), transparent 60%),
    radial-gradient(620px 420px at -8% 110%, rgba(63,143,223,.22), transparent 60%);
}
.impact .container { position: relative; }
.impact .eyebrow { color: var(--accent); }
.impact .eyebrow::before { background: var(--accent); }
.impact h2 { color: #fff; }
.impact .lead { color: #CBDDF3; }
.impact-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin-top: 48px;
}
.impact-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-lg);
  padding: 28px 26px;
  transition: transform .25s var(--ease), background .25s var(--ease);
}
.impact-card:hover { transform: translateY(-4px); background: rgba(255,255,255,.1); }
.impact-card .ic {
  width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center;
  background: rgba(20,197,190,.16); color: var(--accent); margin-bottom: 18px;
  border: 1px solid rgba(20,197,190,.3);
}
.impact-card .ic svg { width: 24px; height: 24px; }
.impact-card h3 { color: #fff; margin-bottom: 8px; }
.impact-card p { color: #BFD3EC; font-size: .94rem; line-height: 1.55; }

/* ---------- Demo CTA ---------- */
.demo-cta { background: var(--surface-2); }
.demo-cta-inner {
  display: grid; grid-template-columns: 1.2fr auto; gap: 32px; align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(28px, 4vw, 48px);
  box-shadow: var(--shadow-card);
  position: relative; overflow: hidden;
}
.demo-cta-inner::before {
  content: ""; position: absolute; right: -40px; top: -40px; width: 280px; height: 280px;
  background: radial-gradient(circle, var(--brand-50), transparent 65%);
}
.demo-cta-copy { position: relative; }
.demo-cta-copy h2 { margin-bottom: 12px; }
.demo-cta-copy p { color: var(--ink-soft); max-width: 560px; }
.demo-cta-actions { position: relative; display: flex; flex-direction: column; gap: 12px; }

/* ---------- Team ---------- */
.team-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px;
  margin-top: 48px;
}
.member {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.member:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.member .avatar {
  width: 92px; height: 92px; border-radius: 50%;
  margin: 0 auto 16px; overflow: hidden;
  background: linear-gradient(160deg, var(--brand-100), var(--brand-300));
  display: grid; place-items: center;
  border: 3px solid #fff;
  box-shadow: 0 6px 18px -8px rgba(10,42,94,.4);
}
.member .avatar img { width: 100%; height: 100%; object-fit: cover; }
.member .avatar .mono {
  font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; color: var(--brand-700);
}
.member .name { font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--ink); }
.member .role { font-size: .82rem; color: var(--brand-600); font-weight: 500; margin-top: 4px; }
.member .org { font-size: .76rem; color: var(--ink-faint); margin-top: 6px; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid; grid-template-columns: .95fr 1.05fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.contact-copy h2 { margin-bottom: 14px; }
.contact-copy > p { color: var(--ink-soft); max-width: 480px; }
.contact-details { display: grid; gap: 14px; margin-top: 28px; }
.cd-item { display: flex; align-items: center; gap: 14px; }
.cd-item .ic {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center; background: var(--brand-50); color: var(--brand-600);
  border: 1px solid var(--brand-100);
}
.cd-item .ic svg { width: 20px; height: 20px; }
.cd-item .k { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); }
.cd-item .v { font-weight: 600; color: var(--ink); font-size: .98rem; }
.cd-item a.v:hover { color: var(--brand-600); }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(24px, 3vw, 34px);
  box-shadow: var(--shadow-card);
  display: grid; gap: 16px;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-size: .82rem; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--surface-2);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  padding: .8em .95em;
  font-size: .95rem;
  transition: border-color .18s var(--ease), background .18s var(--ease), box-shadow .18s var(--ease);
}
.field textarea { resize: vertical; min-height: 116px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand-400);
  background: #fff; box-shadow: 0 0 0 4px var(--brand-50);
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); }
.form-note { font-size: .8rem; color: var(--ink-faint); }
.contact-form .btn { width: 100%; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--brand-900);
  color: #C4D6EE;
  padding-block: clamp(48px, 6vw, 72px) 28px;
}
.footer-top {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px;
}
.footer-brand .chip {
  display: inline-flex; background: #fff; border-radius: var(--r-md);
  padding: 10px 14px; box-shadow: var(--shadow-sm);
}
.footer-brand .chip img { height: 30px; width: auto; }
.footer-brand p { margin-top: 16px; max-width: 320px; font-size: .92rem; color: #9FB8D8; line-height: 1.6; }
.footer-col h4 {
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: #7E9AC0; font-weight: 600; margin-bottom: 16px;
}
.footer-col a, .footer-col span {
  display: block; font-size: .92rem; color: #C4D6EE; padding: 5px 0;
  transition: color .18s var(--ease);
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  margin-top: 44px; padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center;
}
.footer-bottom .legal { font-size: .82rem; color: #8FA9CA; max-width: 720px; line-height: 1.5; }
.footer-bottom .copy { font-size: .82rem; color: #7E9AC0; }
.intended-use {
  margin-top: 28px; padding: 16px 18px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--r-md);
  font-size: .82rem; color: #A9C1DE; line-height: 1.55;
}
.intended-use b { color: #D6E6F8; font-weight: 600; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }

/* ---------- Demo page ---------- */
.demo-page { padding-top: clamp(48px, 7vw, 90px); }
.demo-hero-head { max-width: 720px; margin-inline: auto; text-align: center; }
.demo-hero-head h1 { font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.2rem); margin: 18px 0; }
.demo-panel {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px,4vw,56px);
  align-items: center; margin-top: 56px;
}
.demo-steps { display: grid; gap: 12px; margin: 22px 0 28px; }
.demo-steps li {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: .96rem; color: var(--ink-soft);
}
.demo-steps li svg { width: 20px; height: 20px; color: var(--accent-600); flex-shrink: 0; margin-top: 2px; }
.demo-status {
  margin-top: 18px; font-size: .86rem; color: var(--ink-faint);
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 12px 14px;
}
.demo-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Generic content page (privacy) ---------- */
.doc { max-width: 800px; margin-inline: auto; padding-top: clamp(40px,6vw,80px); }
.doc h1 { font-size: clamp(2rem,1.4rem+2vw,2.8rem); margin-bottom: 8px; }
.doc .updated { font-family: var(--font-mono); font-size: .78rem; color: var(--ink-faint); letter-spacing: .04em; margin-bottom: 36px; }
.doc h2 { font-size: 1.4rem; margin: 36px 0 12px; }
.doc p { color: var(--ink-soft); margin-bottom: 14px; }
.doc ul.bullets { display: grid; gap: 10px; margin: 0 0 16px; }
.doc ul.bullets li { position: relative; padding-left: 24px; color: var(--ink-soft); }
.doc ul.bullets li::before { content: ""; position: absolute; left: 4px; top: 11px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.doc a { color: var(--brand-600); font-weight: 500; }
.doc a:hover { text-decoration: underline; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 920px) {
  .nav-links { display: none; }
  .menu-toggle { display: flex; }
  .nav-actions .btn-talk { display: none; }

  /* Mobile menu panel */
  body.menu-open .nav-links {
    display: flex; flex-direction: column; align-items: stretch;
    position: fixed; inset: var(--header-h) 0 auto 0;
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(16px);
    padding: 16px clamp(20px,4vw,40px) 24px;
    gap: 4px; margin: 0;
    box-shadow: 0 20px 40px -20px rgba(10,42,94,.5);
    border-bottom: 1px solid var(--line);
    z-index: 99;
  }
  body.menu-open .nav-links a { padding: .85em 1em; font-size: 1.02rem; border-radius: var(--r-md); }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 520px; margin-inline: auto; width: 100%; }
  .hero-copy { max-width: 640px; }
  .analysis-card { left: auto; right: 4%; width: min(260px, 70%); }

  .problem-grid { grid-template-columns: 1fr; }
  .how-grid { grid-template-columns: 1fr; }
  .how-grid .product-mock { order: -1; }
  .tech-grid { grid-template-columns: 1fr; }
  .impact-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .demo-cta-inner { grid-template-columns: 1fr; }
  .demo-panel { grid-template-columns: 1fr; }
  .demo-panel .product-mock { order: -1; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .stat-cards { grid-template-columns: 1fr 1fr; }
  .feature-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .feature { padding: 20px 18px; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .demo-actions { flex-direction: column; align-items: stretch; }
  .demo-actions .btn { width: 100%; }
  .analysis-card { position: relative; right: auto; left: auto; width: 100%; margin-top: -28px; }
  .hero-photo { aspect-ratio: 4/3; }
  .field-row { grid-template-columns: 1fr; }
  .nav-actions .btn-demo span.full { display: none; }
}

@media (max-width: 400px) {
  .stat-cards { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .pulse-line .beat { stroke-dashoffset: 0; }
}
