/* ============================================================
   Bloodstock AI — Homepage v3 "Void & Violet"
   Cinematic near-black hero fading to white body, single violet
   accent, geometric sans (Space Grotesk + Inter), glass cards.
   Technical, credible, quietly ambitious.
   ============================================================ */

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

:root {
  --void: #07070c;
  --void-2: #0d0d16;
  --white: #fafafa;
  --paper: #ffffff;
  --ink: #101016;
  --ink-soft: #4b4b58;
  --muted: #83838f;
  --violet: #7c5cff;
  --violet-deep: #5b3df5;
  --violet-soft: #a993ff;
  --on-void: #f2f1f7;
  --on-void-soft: #a3a3b4;
  --glass: rgba(255, 255, 255, 0.055);
  --glass-line: rgba(255, 255, 255, 0.12);
  --line-light: rgba(16, 16, 22, 0.1);
  --sans: "Space Grotesk", "Inter", system-ui, sans-serif;
  --body-font: "Inter", system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--void);
  color: var(--ink);
  font-family: var(--body-font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--sans); letter-spacing: -0.02em; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
img, video { max-width: 100%; display: block; }

.wrap { width: min(1140px, 100% - 2.5rem); margin: 0 auto; }

/* ---------- header ---------- */
.hd {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  transition: background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.hd.scrolled {
  background: rgba(7, 7, 12, 0.82);
  backdrop-filter: blur(14px);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
.hd-in { display: flex; align-items: center; gap: 1rem; padding: 1rem 0; }
.logo { display: flex; align-items: center; gap: 0.6rem; }
.logo-mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: conic-gradient(from 140deg, #f97316, #facc15, #22c55e, #3b82f6, #a855f7, #f97316);
}
.logo-text { font-family: var(--sans); font-weight: 600; font-size: 1.05rem; color: var(--on-void); }
.hd-nav { display: none; margin-left: auto; }
.hd-nav a {
  font-size: 0.86rem; color: var(--on-void-soft); padding: 0.4rem 0.85rem; border-radius: 8px;
}
.hd-nav a:hover { color: #fff; }
.hd .cta { margin-left: auto; }
@media (min-width: 860px) {
  .hd-nav { display: flex; gap: 0.2rem; }
  .hd .cta { margin-left: 0.8rem; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--sans); font-weight: 600; font-size: 0.92rem;
  padding: 0.78rem 1.6rem; border-radius: 10px; border: 1px solid transparent;
  cursor: pointer; transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-violet {
  background: linear-gradient(135deg, var(--violet), var(--violet-deep));
  color: #fff; box-shadow: 0 10px 30px rgba(124, 92, 255, 0.35);
}
.btn-ghost { background: transparent; color: var(--on-void); border-color: rgba(255, 255, 255, 0.25); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.5); }
.btn-light { background: var(--ink); color: #fff; }
.btn-lg { padding: 0.95rem 2rem; font-size: 1rem; }
.full { width: 100%; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 92vh; display: flex; align-items: center;
  overflow: hidden; color: var(--on-void);
}
.hero-media {
  position: absolute; inset: 0; z-index: 0;
}
.hero-media video, .hero-media .fallback {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero-media .fallback {
  background:
    radial-gradient(900px 500px at 70% 30%, rgba(124, 92, 255, 0.22), transparent 60%),
    radial-gradient(700px 400px at 20% 80%, rgba(124, 92, 255, 0.12), transparent 60%),
    var(--void);
}
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(rgba(7, 7, 12, 0.55), rgba(7, 7, 12, 0.35) 45%, var(--void) 96%);
}
.hero-in { position: relative; z-index: 1; padding: 8.5rem 0 6rem; max-width: 44rem; }
.tag {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--violet-soft); border: 1px solid rgba(124, 92, 255, 0.45);
  background: rgba(124, 92, 255, 0.1); border-radius: 999px; padding: 0.38rem 1rem;
  margin-bottom: 1.5rem; backdrop-filter: blur(6px);
}
.tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--violet); }
.hero h1 {
  margin: 0 0 1.2rem; font-size: clamp(2.6rem, 6.5vw, 4.4rem);
  line-height: 1.03; font-weight: 700; color: #fff;
}
.hero h1 em { font-style: normal; color: var(--violet-soft); }
.hero p {
  margin: 0 0 2rem; font-size: 1.08rem; color: var(--on-void-soft); max-width: 34rem; line-height: 1.7;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 1.4rem; }
.hero-note { font-size: 0.8rem; color: rgba(163, 163, 180, 0.7); }
.scroll-cue {
  position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%);
  width: 22px; height: 36px; border: 1.5px solid rgba(255, 255, 255, 0.3); border-radius: 12px;
  z-index: 1;
}
.scroll-cue::after {
  content: ""; position: absolute; top: 6px; left: 50%; width: 3px; height: 7px;
  border-radius: 3px; background: var(--violet-soft); transform: translateX(-50%);
  animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue { 0%,100% { opacity: 1; top: 6px; } 50% { opacity: 0.2; top: 16px; } }

/* ---------- credibility strip ---------- */
.strip {
  background: var(--void); color: var(--on-void-soft);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.2rem 0 3rem; text-align: center;
}
.strip span { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; }
.strip b { color: var(--on-void); font-weight: 600; }
.strip .dot { margin: 0 0.9rem; color: var(--violet); }

/* ---------- AI read section (dark, real horse video) ---------- */
.read { background: var(--void); color: var(--on-void); padding: 3rem 0 5rem; }
.sec-head { max-width: 42rem; margin: 0 auto 2.4rem; text-align: center; }
.sec-kicker {
  font-family: var(--sans); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--violet-soft);
}
.sec-head h2 { margin: 0.5rem 0 0.7rem; font-size: clamp(1.8rem, 4vw, 2.6rem); color: #fff; }
.read .sec-head p, .sec-head p { margin: 0; color: var(--on-void-soft); font-size: 0.98rem; }

.stagev {
  position: relative; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--glass-line); background: var(--void-2);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  aspect-ratio: 16 / 9;
}
.stagev video, .stagev img.still { width: 100%; height: 100%; object-fit: cover; }
.stagev .view { display: none; position: absolute; inset: 0; }
.stagev .view.on { display: block; }

/* HUD overlay on real footage */
.hud { position: absolute; inset: 0; pointer-events: none; }
.hud .corner {
  position: absolute; width: 34px; height: 34px; border: 2px solid rgba(124, 92, 255, 0.85);
}
.hud .c1 { top: 5%; left: 4%; border-right: 0; border-bottom: 0; }
.hud .c2 { top: 5%; right: 4%; border-left: 0; border-bottom: 0; }
.hud .c3 { bottom: 7%; left: 4%; border-right: 0; border-top: 0; }
.hud .c4 { bottom: 7%; right: 4%; border-left: 0; border-top: 0; }
.hud .scanline {
  position: absolute; top: 0; bottom: 0; width: 1.5px;
  background: linear-gradient(transparent, rgba(124, 92, 255, 0.9), transparent);
  filter: drop-shadow(0 0 6px rgba(124, 92, 255, 0.9));
  animation: hsweep 5.5s ease-in-out infinite;
}
@keyframes hsweep { 0%, 100% { left: 8%; } 50% { left: 92%; } }
.hud .kpt {
  position: absolute; width: 10px; height: 10px; border-radius: 50%;
  background: var(--violet-soft); box-shadow: 0 0 10px rgba(124, 92, 255, 0.9);
  animation: kblink 1.8s ease-in-out infinite;
}
@keyframes kblink { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }
.hud .chip {
  position: absolute; font-family: var(--sans); font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.06em; color: #fff; background: rgba(7, 7, 12, 0.72);
  border: 1px solid rgba(124, 92, 255, 0.5); border-radius: 7px; padding: 0.3rem 0.6rem;
  backdrop-filter: blur(4px);
}
.hud .chip b { color: var(--violet-soft); font-variant-numeric: tabular-nums; }
.hud .status {
  position: absolute; top: 5.5%; left: 50%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-family: var(--sans); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--violet-soft);
  text-shadow: 0 1px 8px rgba(5, 6, 10, 0.95), 0 0 2px rgba(5, 6, 10, 0.9);
}
.hud .status::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--violet);
  animation: kblink 1.6s infinite;
}

/* x-ray & pedigree panels reuse the stage */
.panelv {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: var(--void-2); padding: 2rem;
}
/* X-ray: real radiograph + animated AI measurement overlay */
.xray-view { background: #05060a; }
.xray-wrap { position: absolute; inset: 0; margin: auto; height: 100%; aspect-ratio: 800 / 578; }
.xray-wrap .film { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: contrast(1.08) brightness(1.04); }
.xray-ov { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.xray-scan {
  position: absolute; top: 6%; bottom: 6%; width: 2px; left: 12%;
  background: linear-gradient(transparent, rgba(124, 92, 255, 0.95), transparent);
  filter: drop-shadow(0 0 8px rgba(124, 92, 255, 0.9)); animation: xsweep 9s ease-in-out infinite;
}
@keyframes xsweep { 0% { left: 10%; opacity: 0; } 4% { opacity: 1; } 20% { left: 90%; opacity: 1; } 26%, 100% { opacity: 0; } }
.xray-ov .mline {
  fill: none; stroke: var(--violet-soft); stroke-width: 2.2; stroke-linecap: round;
  filter: drop-shadow(0 0 3px rgba(124, 92, 255, 0.85));
  stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: xdraw 9s ease-in-out infinite;
}
.xray-ov .mline.l2 { animation-delay: 0.45s; }
.xray-ov .mline.l3 { animation-delay: 0.9s; }
@keyframes xdraw { 0%, 22% { stroke-dashoffset: var(--len); } 42%, 92% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: var(--len); } }
.xray-ov .arc { fill: none; stroke: var(--violet); stroke-width: 2.2; opacity: 0; animation: xfade 9s ease infinite; }
.xray-ov .kp {
  fill: var(--violet-soft); filter: drop-shadow(0 0 6px rgba(124, 92, 255, 0.95)); opacity: 0;
  animation: xkp 9s ease infinite;
}
.xray-ov .kp.k2 { animation-delay: 0.16s; }
.xray-ov .kp.k3 { animation-delay: 0.32s; }
.xray-ov .kp.k4 { animation-delay: 0.48s; }
.xray-ov .kp.k5 { animation-delay: 0.64s; }
@keyframes xkp { 0%, 12% { opacity: 0; } 20% { opacity: 1; } 30%, 92% { opacity: 0.9; } 100% { opacity: 0; } }
.xray-ov .rev { fill: none; stroke: var(--violet); stroke-width: 2; stroke-dasharray: 6 5; opacity: 0; animation: xrev 9s ease infinite; }
@keyframes xrev { 0%, 60% { opacity: 0; } 70%, 90% { opacity: 1; } 100% { opacity: 0.25; } }
.xray-ov .mlab {
  font: 700 14px var(--sans); fill: #fff; letter-spacing: 0.02em; opacity: 0;
  paint-order: stroke; stroke: rgba(5, 6, 10, 0.9); stroke-width: 3.5px; animation: xfade 9s ease infinite;
}
.xray-ov .mlab.a { fill: var(--violet-soft); }
@keyframes xfade { 0%, 52% { opacity: 0; } 64%, 92% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .xray-scan { display: none !important; }
  .xray-ov .mline { stroke-dashoffset: 0 !important; animation: none !important; }
  .xray-ov .arc, .xray-ov .kp, .xray-ov .rev, .xray-ov .mlab { opacity: 1 !important; animation: none !important; }
}
.ped { width: min(560px, 94%); display: flex; flex-direction: column; gap: 0.6rem; }
.ped .row { display: flex; gap: 0.6rem; }
.ped .node {
  flex: 1; background: var(--glass); border: 1px solid var(--glass-line);
  border-radius: 10px; padding: 0.65rem 0.8rem; font-size: 0.74rem; color: var(--on-void-soft);
  opacity: 0; transform: translateY(10px); transition: all 0.5s;
}
.view.on .ped .node { opacity: 1; transform: none; }
.ped .node b { display: block; color: #fff; font-size: 0.8rem; font-family: var(--sans); }
.ped .node .st { color: var(--violet-soft); font-variant-numeric: tabular-nums; }
.ped .row:nth-child(2) .node { transition-delay: 0.2s; }
.ped .row:nth-child(3) .node { transition-delay: 0.4s; }

.mode-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin: 1.4rem 0 1rem; }
.mtab {
  font-family: var(--sans); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 0.55rem 1.2rem; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18); background: transparent;
  color: var(--on-void-soft); cursor: pointer; transition: all 0.2s;
}
.mtab:hover { color: #fff; }
.mtab.on { background: linear-gradient(135deg, var(--violet), var(--violet-deep)); color: #fff; border-color: transparent; }
.mode-copy { max-width: 40rem; margin: 0 auto; text-align: center; }
.mode-copy h3 { margin: 0 0 0.4rem; font-size: 1.25rem; color: #fff; }
.mode-copy p { margin: 0; font-size: 0.92rem; color: var(--on-void-soft); min-height: 4.4em; }

/* ---------- fade to white ---------- */
.fadeband { height: 8rem; background: linear-gradient(var(--void), var(--white)); }

/* ---------- white body ---------- */
.body-w { background: var(--white); color: var(--ink); }
.body-w .sec-head h2 { color: var(--ink); }
.body-w .sec-head p { color: var(--ink-soft); }
.body-w .sec-kicker { color: var(--violet-deep); }
.sec { padding: 4.5rem 0; }

/* feature trio */
.trio { display: grid; gap: 1.2rem; }
@media (min-width: 820px) { .trio { grid-template-columns: repeat(3, 1fr); } }
.tcard {
  background: var(--paper); border: 1px solid var(--line-light); border-radius: 16px;
  padding: 1.8rem 1.6rem; box-shadow: 0 6px 30px rgba(16, 16, 22, 0.05);
}
.tcard .n {
  font-family: var(--sans); font-size: 0.78rem; font-weight: 700; color: var(--violet-deep);
  letter-spacing: 0.16em; text-transform: uppercase;
}
.tcard h3 { margin: 0.5rem 0 0.55rem; font-size: 1.25rem; }
.tcard p { margin: 0; font-size: 0.9rem; color: var(--ink-soft); }
.tcard .dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; margin-right: 0.5rem; vertical-align: middle; }

/* inline note / disclaimer callout */
.note {
  max-width: 46rem; margin: 1.6rem auto 0; padding: 1rem 1.2rem; border-radius: 12px;
  background: rgba(124, 92, 255, 0.06); border: 1px solid rgba(91, 61, 245, 0.18);
  font-size: 0.88rem; color: var(--ink-soft); line-height: 1.6;
}
.note strong { color: var(--ink); }

/* counters */
.counts { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); text-align: center; }
.count .n {
  font-family: var(--sans); font-weight: 700; font-size: clamp(2rem, 4.5vw, 3rem);
  color: var(--ink); font-variant-numeric: tabular-nums;
}
.count .n i { font-style: normal; color: var(--violet-deep); }
.count .l { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-top: 0.3rem; }

/* product frame */
.browser {
  max-width: 900px; margin: 0 auto; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line-light); box-shadow: 0 40px 90px rgba(16, 16, 22, 0.14);
  background: var(--void-2);
}
.browser .bar {
  display: flex; align-items: center; gap: 0.45rem; padding: 0.7rem 1rem;
  background: #16161f; border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.browser .bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); }
.browser .bar .url {
  margin-left: 0.6rem; font-size: 0.7rem; color: var(--on-void-soft);
  background: rgba(255, 255, 255, 0.06); border-radius: 6px; padding: 0.25rem 0.9rem;
}
.report { padding: 1.6rem 1.7rem; color: var(--on-void); }
.report .rhead { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; border-bottom: 1px solid rgba(255,255,255,0.09); padding-bottom: 0.9rem; margin-bottom: 1.1rem; }
.report .rhead .lot { font-family: var(--sans); font-weight: 600; font-size: 1.1rem; color: #fff; }
.report .rhead .lot small { display: block; font-size: 0.68rem; color: var(--on-void-soft); letter-spacing: 0.12em; text-transform: uppercase; font-family: var(--body-font); }
.report .grow { display: grid; gap: 0.55rem; margin-bottom: 1.1rem; }
.report .g { display: grid; grid-template-columns: 64px 1fr 34px; gap: 0.8rem; align-items: center; }
.report .g .gn { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-void-soft); }
.report .g .gb { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.report .g .gb i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--violet-soft), var(--violet)); }
.report .g .gv { text-align: right; font-family: var(--sans); font-weight: 600; font-variant-numeric: tabular-nums; }
.report .heartline {
  display: flex; gap: 0.9rem; align-items: center; background: rgba(124, 92, 255, 0.1);
  border: 1px solid rgba(124, 92, 255, 0.4); border-radius: 10px; padding: 0.75rem 0.95rem;
}
.report .heartline .hs { font-family: var(--sans); font-weight: 700; font-size: 1.5rem; color: var(--violet-soft); }
.report .heartline .ht { font-size: 0.76rem; color: var(--on-void-soft); }
.report .heartline .ht b { display: block; color: #fff; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; font-family: var(--sans); }

/* downloads */
.dl { text-align: center; }
.badges { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; margin-top: 1.6rem; }
.badge-store {
  display: inline-flex; align-items: center; gap: 0.7rem; background: var(--ink); color: #fff;
  border-radius: 12px; padding: 0.7rem 1.4rem; min-width: 190px; text-align: left;
}
.badge-store .bi { font-size: 1.5rem; }
.badge-store .bt small { display: block; font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.65; }
.badge-store .bt b { font-family: var(--sans); font-size: 0.95rem; }
.soon {
  display: inline-block; margin-top: 1.1rem; font-size: 0.75rem; font-weight: 600;
  color: var(--violet-deep); background: rgba(124, 92, 255, 0.1);
  border: 1px solid rgba(124, 92, 255, 0.35); border-radius: 999px; padding: 0.32rem 1.05rem;
}

/* pricing */
.plans { display: grid; gap: 1.2rem; max-width: 1000px; margin: 0 auto; }
@media (min-width: 860px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan {
  background: var(--paper); border: 1px solid var(--line-light); border-radius: 16px;
  padding: 1.8rem 1.6rem; display: flex; flex-direction: column; gap: 0.9rem;
  box-shadow: 0 6px 30px rgba(16, 16, 22, 0.05);
}
.plan .pn { font-family: var(--sans); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.plan h3 { margin: 0; font-size: 1.35rem; }
.plan .pp { font-size: 0.88rem; font-weight: 600; }
.plan ul { margin: 0; padding-left: 1.15rem; font-size: 0.86rem; color: var(--ink-soft); display: flex; flex-direction: column; gap: 0.4rem; }
.plan .btn { margin-top: auto; }
.plan.hot {
  border-color: rgba(124, 92, 255, 0.5);
  box-shadow: 0 0 0 1.5px var(--violet), 0 24px 60px rgba(124, 92, 255, 0.18);
  position: relative;
}
.plan.hot .pn { color: var(--violet-deep); }

/* faq */
.faq { max-width: 46rem; margin: 0 auto; display: flex; flex-direction: column; gap: 0.7rem; }
.faq details { background: var(--paper); border: 1px solid var(--line-light); border-radius: 12px; padding: 1rem 1.2rem; }
.faq summary { cursor: pointer; font-family: var(--sans); font-weight: 600; font-size: 0.95rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--violet-deep); font-size: 1.2rem; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0.7rem 0 0; font-size: 0.88rem; color: var(--ink-soft); }

/* founder */
.founder { display: grid; gap: 2rem; align-items: center; max-width: 880px; margin: 0 auto; }
@media (min-width: 760px) { .founder { grid-template-columns: 300px 1fr; } }
.founder img {
  width: 100%; height: auto; max-width: 300px; aspect-ratio: 4 / 5;
  object-fit: cover; object-position: center 30%;
  border-radius: 16px; box-shadow: 0 24px 60px rgba(16, 16, 22, 0.18); margin: 0 auto;
}
.founder h3 { margin: 0 0 0.2rem; font-size: 1.4rem; }
.founder .role { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--violet-deep); font-weight: 600; }
.founder p { font-size: 0.92rem; color: var(--ink-soft); }

/* final CTA over video */
.final {
  position: relative; color: var(--on-void); overflow: hidden; padding: 6rem 0;
}
.final .bgv { position: absolute; inset: 0; }
.final .bgv video, .final .bgv .fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.final .bgv .fallback { background: radial-gradient(800px 400px at 50% 40%, rgba(124, 92, 255, 0.25), transparent 65%), var(--void); }
.final .bgv::after { content: ""; position: absolute; inset: 0; background: rgba(7, 7, 12, 0.72); }
.final .wrap { position: relative; z-index: 1; }
.final h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 0.6rem; text-align: center; }
.final > .wrap > p { text-align: center; color: var(--on-void-soft); margin: 0 auto 2.2rem; max-width: 34rem; }
.glass-form {
  max-width: 560px; margin: 0 auto; background: var(--glass); border: 1px solid var(--glass-line);
  border-radius: 18px; padding: 1.8rem 1.6rem; backdrop-filter: blur(14px);
}
.gf-grid { display: grid; gap: 0.9rem; }
@media (min-width: 640px) { .gf-grid { grid-template-columns: 1fr 1fr; } .gf-grid .sp2 { grid-column: span 2; } }
.gf label { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.8rem; font-weight: 500; color: var(--on-void-soft); }
.gf input, .gf select, .gf textarea {
  font-family: inherit; font-size: 0.92rem; padding: 0.65rem 0.8rem; border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.18); background: rgba(7, 7, 12, 0.5); color: #fff;
}
.gf input:focus, .gf select:focus, .gf textarea:focus { outline: 2px solid rgba(124, 92, 255, 0.6); border-color: var(--violet); }
.gf .note { font-size: 0.72rem; color: rgba(163, 163, 180, 0.75); margin-top: 0.7rem; }
.gf .note a { text-decoration: underline; }

/* footer */
.ft { background: var(--void); color: var(--on-void-soft); padding: 3.5rem 0 1.8rem; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.ft-grid { display: grid; gap: 1.8rem; margin-bottom: 2.2rem; }
@media (min-width: 760px) { .ft-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.ft-brand p { margin: 0.7rem 0 0; font-size: 0.84rem; max-width: 20rem; }
.ft h4 { margin: 0 0 0.7rem; font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--violet-soft); }
.ft a.fl { display: block; font-size: 0.86rem; padding: 0.22rem 0; }
.ft a.fl:hover { color: #fff; }
.ft-bottom { border-top: 1px solid rgba(255, 255, 255, 0.07); padding-top: 1.3rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; font-size: 0.75rem; }
.ig { display: inline-flex; align-items: center; gap: 0.45rem; }
.ig svg { width: 16px; height: 16px; fill: currentColor; }

/* reveal */
.rv { opacity: 0; transform: translateY(24px); transition: opacity 0.7s, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.rv.in { opacity: 1; transform: none; }

/* ---------- inner pages (violet theme) ---------- */
.phero {
  position: relative; color: var(--on-void); padding: 9.5rem 0 4.5rem;
  background:
    radial-gradient(900px 480px at 72% 0%, rgba(124, 92, 255, 0.2), transparent 60%),
    radial-gradient(600px 380px at 12% 90%, rgba(124, 92, 255, 0.1), transparent 60%),
    var(--void);
}
.phero h1 { margin: 0 0 1rem; font-size: clamp(2.2rem, 5.5vw, 3.6rem); line-height: 1.06; font-weight: 700; color: #fff; max-width: 44rem; }
.phero p { margin: 0; max-width: 38rem; color: var(--on-void-soft); font-size: 1.05rem; line-height: 1.7; }
.prose-w { max-width: 46rem; margin: 0 auto; }
.prose-w h2 { font-size: 1.45rem; margin: 2.4rem 0 0.7rem; }
.prose-w h2:first-child { margin-top: 0; }
.prose-w p { color: var(--ink-soft); font-size: 0.97rem; margin: 0 0 1rem; }
.prose-w a { color: var(--violet-deep); text-decoration: underline; }
.prose-w .lede { font-size: 1.08rem; color: var(--ink); }
.prose-w ul { margin: 0 0 1rem; padding-left: 1.3rem; color: var(--ink-soft); font-size: 0.97rem; display: flex; flex-direction: column; gap: 0.45rem; }
.prose-w .updated { font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.8rem; }
@media (max-width: 640px) { .phero { padding: 7.5rem 0 3rem; } }

/* ===== light form card (contact page) ===== */
.form-card {
  background: var(--paper); border: 1px solid var(--line-light); border-top: 2px solid var(--violet);
  border-radius: 16px; box-shadow: 0 6px 30px rgba(16, 16, 22, 0.05);
  padding: 1.9rem 1.7rem; max-width: 40rem; margin: 0 auto;
}
.form-grid { display: grid; gap: 0.95rem; }
@media (min-width: 640px) {
  .form-grid.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid.two-col .span-2 { grid-column: span 2; }
}
.form-field { display: flex; flex-direction: column; gap: 0.32rem; font-size: 0.84rem; font-weight: 500; color: var(--ink); }
.form-field input, .form-field select, .form-field textarea {
  font-family: var(--body-font); font-size: 0.92rem; padding: 0.62rem 0.8rem;
  border-radius: 0.6rem; border: 1px solid var(--line-light); background: #fbfbfd; color: var(--ink);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: 2px solid rgba(124, 92, 255, 0.4); outline-offset: 1px; border-color: var(--violet);
}
.form-field textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: 0.78rem; color: var(--muted); margin-top: 0.9rem; }
.form-note a { color: var(--violet-deep); text-decoration: underline; }
.full-width { width: 100%; }

@media (prefers-reduced-motion: reduce) {
  .rv, .hud .scanline, .hud .kpt, .scroll-cue::after { animation: none !important; transition: none !important; opacity: 1 !important; transform: none !important; }
}

/* ===== pedigree deep-dive ===== */
.ped .node.hero-node { background: rgba(124,92,255,0.14); border-color: rgba(124,92,255,0.55); }
.ped .node.dim { opacity: 0.72; }
.ped .node.dim b { color: var(--on-void-soft); }

.pedigree-grid { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 900px) { .pedigree-grid { grid-template-columns: 1.15fr 1fr; } }

.ptree { display: flex; flex-direction: column; gap: 0.9rem; }
.pt-gen { display: grid; gap: 0.7rem; }
.pt-parents { grid-template-columns: 1fr 1fr; }
.pt-grand { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 560px) { .pt-grand { grid-template-columns: repeat(4, 1fr); } }
.pt-card {
  background: var(--paper); border: 1px solid var(--line-light); border-radius: 12px;
  padding: 0.85rem 0.95rem; box-shadow: 0 4px 18px rgba(16,16,22,0.05);
  border-left: 3px solid var(--violet);
}
.pt-card.subject { border-left-color: var(--violet-deep); background: linear-gradient(135deg, rgba(124,92,255,0.08), var(--paper)); }
.pt-card.small { padding: 0.6rem 0.7rem; border-left-width: 2px; }
.pt-role { font-family: var(--sans); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--violet-deep); }
.pt-card b { display: block; font-size: 0.98rem; margin: 0.15rem 0; font-family: var(--sans); }
.pt-card.small b { font-size: 0.82rem; }
.pt-meta { font-size: 0.76rem; color: var(--ink-soft); line-height: 1.45; }
.pt-card.small .pt-meta { font-size: 0.68rem; }

.pread {
  background: var(--void-2); color: var(--on-void); border-radius: 16px; padding: 1.5rem 1.4rem;
  box-shadow: 0 20px 50px rgba(16,16,22,0.14);
}
.pread-score { display: flex; align-items: center; gap: 1rem; padding-bottom: 1.1rem; margin-bottom: 1.1rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.ps-num { font-family: var(--sans); font-weight: 700; font-size: 2.6rem; color: var(--violet-soft); line-height: 1; }
.ps-num small { font-size: 1rem; color: var(--on-void-soft); }
.ps-label { font-size: 0.8rem; color: var(--on-void-soft); line-height: 1.4; }
.ps-label b { color: #fff; font-family: var(--sans); }
.pread-factors { display: flex; flex-direction: column; gap: 1rem; }
.pf { display: grid; grid-template-columns: 1fr; gap: 0.3rem; }
.pf-t { font-family: var(--sans); font-size: 0.82rem; font-weight: 600; color: #fff; }
.pf-bar { height: 5px; border-radius: 999px; background: rgba(255,255,255,0.1); overflow: hidden; }
.pf-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--violet-soft), var(--violet)); }
.pf-note { font-size: 0.74rem; color: var(--on-void-soft); line-height: 1.45; }

.rel-table { margin-top: 2rem; background: var(--paper); border: 1px solid var(--line-light); border-radius: 16px; padding: 1.5rem 1.4rem; box-shadow: 0 6px 30px rgba(16,16,22,0.05); overflow: hidden; }
.rel-head { margin-bottom: 1rem; }
.rel-table table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.rel-table th { text-align: left; font-family: var(--sans); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding: 0.5rem 0.6rem; border-bottom: 1px solid var(--line-light); }
.rel-table td { padding: 0.7rem 0.6rem; border-bottom: 1px solid var(--line-light); color: var(--ink-soft); }
.rel-table tbody tr:last-child td { border-bottom: 0; }
.rel-table td:first-child { font-weight: 600; color: var(--ink); font-family: var(--sans); }
.rel-note { margin: 0.9rem 0 0; font-size: 0.72rem; color: var(--muted); }
@media (max-width: 560px) {
  .rel-table { padding: 1.1rem 0.9rem; }
  .rel-table table { font-size: 0.76rem; }
  .rel-table th, .rel-table td { padding: 0.5rem 0.4rem; }
  .rel-table th:nth-child(5), .rel-table td:nth-child(5) { display: none; }
}

/* ===== mobile polish (phones) ===== */
@media (max-width: 640px) {
  .wrap { width: min(1140px, 100% - 2rem); }
  .sec { padding: 3rem 0; }

  /* header: keep logo + CTA only, shrink */
  .hd-in { padding: 0.7rem 0; gap: 0.6rem; }
  .logo-text { font-size: 0.98rem; }
  .hd .cta { margin-left: auto; padding: 0.6rem 1.05rem; font-size: 0.82rem; }

  /* hero */
  .hero { min-height: 88vh; }
  .hero-in { padding: 7rem 0 4rem; }
  .hero h1 { font-size: clamp(2.4rem, 12vw, 3.2rem); }
  .hero p { font-size: 1rem; }
  .hero-actions { gap: 0.6rem; }
  .hero-actions .btn { flex: 1 1 auto; }

  /* strip */
  .strip { padding: 1rem 0 2.2rem; }
  .strip span { font-size: 0.72rem; line-height: 1.9; }
  .strip .dot { margin: 0 0.5rem; }

  /* AI read stage — HUD chips smaller so they don't cover the horse */
  .read { padding: 2.2rem 0 3.5rem; }
  .sec-head h2 { font-size: clamp(1.6rem, 7vw, 2.1rem); }
  .hud .chip { font-size: 0.6rem; padding: 0.24rem 0.45rem; }
  .hud .corner { width: 22px; height: 22px; }
  .hud .status { font-size: 0.58rem; letter-spacing: 0.14em; }
  .mode-tabs { gap: 0.4rem; }
  .mtab { padding: 0.45rem 0.85rem; font-size: 0.68rem; letter-spacing: 0.05em; }
  .mode-copy p { min-height: 0; }
  .panelv { padding: 1.1rem; }
  .ped .node { padding: 0.5rem 0.6rem; font-size: 0.68rem; }
  .ped .node b { font-size: 0.72rem; }

  /* counters stack 2x2 */
  .counts { grid-template-columns: 1fr 1fr; gap: 1.4rem 1rem; }
  .count .n { font-size: clamp(1.8rem, 9vw, 2.4rem); }

  /* report frame */
  .report { padding: 1.1rem 1rem; }
  .report .rhead { flex-direction: column; gap: 0.4rem; }
  .report .g { grid-template-columns: 52px 1fr 28px; gap: 0.6rem; }
  .browser .bar .url { font-size: 0.6rem; }

  /* pricing / plans stack */
  .plan { padding: 1.4rem 1.2rem; }

  /* founder */
  .founder { gap: 1.4rem; text-align: center; }
  .founder img { margin: 0 auto; }
  .founder .ig { justify-content: center; }

  /* pedigree */
  .pt-parents { grid-template-columns: 1fr; }
  .ps-num { font-size: 2.1rem; }
  .pread { padding: 1.2rem 1.1rem; }

  /* final CTA form */
  .final { padding: 4rem 0; }
  .glass-form { padding: 1.3rem 1.1rem; }
  .gf-grid { grid-template-columns: 1fr; }
  .gf-grid .sp2 { grid-column: auto; }

  /* footer */
  .ft-grid { gap: 1.4rem; }
}

/* smallest phones */
@media (max-width: 380px) {
  .hero h1 { font-size: 2.1rem; }
  .hd .cta { padding: 0.5rem 0.85rem; font-size: 0.78rem; }
  .mtab { padding: 0.4rem 0.7rem; }
}

/* ===== v9 — advanced biomechanics HUD (walk / gallop) ===== */
.hud .movov { position: absolute; inset: 0; width: 100%; height: 100%; }
.sk { stroke: rgba(169,147,255,0.9); stroke-width: 2; fill: none;
  stroke-dasharray: var(--l,600); stroke-dashoffset: var(--l,600);
  animation: skdraw 2.2s ease forwards; }
@keyframes skdraw { to { stroke-dashoffset: 0; } }
.skp { fill: #fff; stroke: var(--violet); stroke-width: 2; animation: skblink 1.9s ease-in-out infinite; }
@keyframes skblink { 0%,100%{opacity:1} 50%{opacity:.35} }
.meas { stroke: rgba(232,231,255,0.85); stroke-width: 1.4; stroke-dasharray: 6 4; fill: none; }
.meas-tick { stroke: rgba(232,231,255,0.85); stroke-width: 1.4; }
.ang { fill: none; stroke: #a993ff; stroke-width: 2; }
.zone { fill: rgba(124,92,255,0.12); stroke: rgba(169,147,255,0.6); stroke-width: 1; stroke-dasharray: 3 3; }
.topline { stroke: rgba(169,147,255,0.7); stroke-width: 1.4; stroke-dasharray: 2 4; fill: none; }
.track-box { fill: none; stroke: #a993ff; stroke-width: 1.6; }
.track-box.pulse { animation: skblink 1.6s ease-in-out infinite; }
.mlab { font-family: var(--sans); font-size: 15px; font-weight: 600; fill: #fff;
  paint-order: stroke; stroke: rgba(7,7,12,0.7); stroke-width: 3px; letter-spacing: .02em; }
.mlab.v { fill: var(--violet-soft); }
.mlab.sm { font-size: 13px; }

/* telemetry panel */
.telem {
  position: absolute; top: 9%; left: 3.5%; width: 30%; max-width: 260px;
  background: rgba(7,7,12,0.62); border: 1px solid rgba(124,92,255,0.4);
  border-radius: 12px; padding: 0.7rem 0.8rem; backdrop-filter: blur(6px);
  font-family: var(--sans);
}
.telem-h { display: flex; align-items: center; gap: 0.4rem; font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--violet-soft);
  padding-bottom: 0.45rem; margin-bottom: 0.45rem; border-bottom: 1px solid rgba(255,255,255,0.12); }
.telem-h::before { content:""; width:6px; height:6px; border-radius:50%; background: var(--violet); animation: skblink 1.6s infinite; }
.telem-row { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem;
  font-size: 0.66rem; color: var(--on-void-soft); padding: 0.16rem 0; }
.telem-row .v { color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.telem-row .v.ok { color: #86efac; }
.telem-row .v.good { color: #a5f3c0; }
.telem-wave { margin-top: 0.5rem; }
.telem-wave svg { width: 100%; height: 26px; display: block; }
.telem-wave path { fill: none; stroke: var(--violet-soft); stroke-width: 1.6; }
.telem-wave .dash { stroke-dasharray: 220; animation: wave 3s linear infinite; }
@keyframes wave { from { stroke-dashoffset: 220; } to { stroke-dashoffset: 0; } }

@media (max-width: 640px) {
  /* stage is ~343x193 on a phone: the 1600-unit viewBox scales ~4.7x down, so
     text labels become unreadable — drop them and let the telemetry panel carry
     the numbers, while thickening the geometry so it still reads as analysis. */
  .telem { width: 42%; max-width: 152px; padding: 0.35rem 0.5rem; top: 6%; left: 3%; }
  .telem-h { font-size: 0.46rem; letter-spacing: 0.1em; padding-bottom: 0.22rem; margin-bottom: 0.22rem; }
  .telem-h::before { width: 4px; height: 4px; }
  .telem-row { font-size: 0.5rem; padding: 0.06rem 0; }
  .telem-wave { display: none; }
  .telem .m-hide { display: none; }
  .mlab { display: none; }
  .sk { stroke-width: 7; }
  .meas, .topline { stroke-width: 5; }
  .meas-tick { stroke-width: 5; }
  .ang { stroke-width: 7; }
  .track-box { stroke-width: 6; }
  .skp { r: 9; stroke-width: 4; }
}
@media (prefers-reduced-motion: reduce) {
  .sk, .skp, .track-box.pulse, .telem-wave .dash, .telem-h::before { animation: none !important; stroke-dashoffset: 0 !important; }
}
