/* ============================================================
   PlayerDNA Labs — Design System
   Premium dark sports-tech aesthetic. Original styling.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Surfaces */
  --bg: #05080d;
  --bg-2: #080d15;
  --surface: rgba(255, 255, 255, 0.025);
  --surface-2: rgba(255, 255, 255, 0.05);
  --surface-solid: #0b121c;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);

  /* Text */
  --text: #eaf1f8;
  --text-soft: #b6c2d1;
  --muted: #7f8ea1;
  --muted-2: #5c6b7e;

  /* Brand */
  --emerald: #2ea0ff;
  --cyan: #22d3ee;
  --violet: #a78bfa;
  --pink: #f472b6;
  --amber: #ffb454;
  --red: #ff5d6c;

  --brand: linear-gradient(135deg, #2ea0ff 0%, #22d3ee 100%);
  --brand-soft: linear-gradient(135deg, rgba(46, 160, 255, 0.16), rgba(34, 211, 238, 0.16));
  --brand-text: linear-gradient(120deg, #7fe6ff 0%, #2e8dff 100%);
  --brand-text-vivid: linear-gradient(115deg, #8fe9ff 0%, #2e8dff 55%, #1f6fe0 100%);
  --aurora: linear-gradient(120deg, #2ea0ff, #22d3ee 32%, #6ea8ff 56%, #a78bfa 78%, #f472b6);

  /* Effects */
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.3);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 0 1px rgba(34, 211, 238, 0.15), 0 24px 60px rgba(16, 185, 129, 0.12);
  --glow-cyan: 0 0 42px rgba(34, 211, 238, 0.32);
  --glow-emerald: 0 0 42px rgba(46, 160, 255, 0.28);
  --sheen: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0) 46%);
  --ring: 0 0 0 3px rgba(34, 211, 238, 0.3);

  /* Geometry */
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --container: 1200px;
  --container-wide: 1320px;

  /* Type */
  --font-display: "Space Grotesk", "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", "Roboto Mono", Menlo, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0.05, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --nav-h: 74px;
}

/* Animatable angle for rotating conic gradient borders (progressive enhancement) */
@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

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

* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

::selection { background: rgba(34, 211, 238, 0.3); color: #fff; }

/* Scrollbar */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--emerald), var(--cyan));
  border-radius: 99px;
  border: 3px solid var(--bg);
}

/* ---------- Ambient background ---------- */
body::before {
  content: "";
  position: fixed;
  inset: -20%;
  z-index: -2;
  background:
    radial-gradient(60% 50% at 15% 5%, rgba(46, 160, 255, 0.11), transparent 60%),
    radial-gradient(55% 45% at 95% 6%, rgba(34, 211, 238, 0.1), transparent 55%),
    radial-gradient(48% 42% at 80% 98%, rgba(167, 139, 250, 0.08), transparent 60%),
    var(--bg);
  animation: auroraDrift 44s var(--ease-in-out) infinite alternate;
  will-change: transform;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M0 .5H40M.5 0V40' fill='none' stroke='%23ffffff' stroke-opacity='0.02'/%3E%3C/svg%3E");
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 75%);
  pointer-events: none;
}

/* ---------- Neural-network backdrop (AI signature) ---------- */
.neural-net {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.32;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 30%, #000 0%, #000 48%, transparent 82%);
          mask-image: radial-gradient(120% 90% at 50% 30%, #000 0%, #000 48%, transparent 82%);
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}
.container-wide { max-width: var(--container-wide); }

section { position: relative; }
.section { padding-block: clamp(64px, 9vw, 130px); }
.section-sm { padding-block: clamp(48px, 6vw, 80px); }

.grid { display: grid; gap: 24px; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 720px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 720px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; }
.display {
  font-size: clamp(2.6rem, 6.4vw, 5.1rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.035em;
}
h2.section-title { font-size: clamp(2rem, 4.2vw, 3.2rem); letter-spacing: -0.03em; }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }

.gradient-text {
  background: var(--brand-text-vivid);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--text-soft);
  line-height: 1.65;
}
.muted { color: var(--muted); }
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
.measure { max-width: 60ch; }
.measure-sm { max-width: 46ch; }

/* ---------- Eyebrow / pills ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  padding: 7px 15px;
  border-radius: 99px;
  background: linear-gradient(135deg, rgba(46, 160, 255, 0.12), rgba(34, 211, 238, 0.1));
  border: 1px solid rgba(34, 211, 238, 0.22);
  box-shadow: 0 0 22px rgba(34, 211, 238, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 12px var(--emerald);
  animation: pulse 2s var(--ease) infinite;
}

.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 4px 11px;
  border-radius: 99px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text-soft);
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  padding: 14px 26px;
  border-radius: 99px;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.3s, color 0.3s, border-color 0.3s;
  white-space: nowrap;
  overflow: hidden;
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: var(--brand);
  color: #04130c;
  box-shadow: 0 10px 30px rgba(46, 160, 255, 0.28);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 44px rgba(46, 160, 255, 0.5), var(--glow-emerald); }
/* Shine sweep across the primary button on hover */
.btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 42%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: translateX(-160%) skewX(-18deg);
  pointer-events: none;
}
.btn-primary:hover::after { animation: shineSweep 0.85s var(--ease); }
.btn-ghost {
  background: var(--surface-2);
  border-color: var(--line-strong);
  color: var(--text);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { transform: translateY(-3px); border-color: var(--cyan); box-shadow: var(--shadow-glow); }
.btn-outline {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--cyan); color: #fff; transform: translateY(-3px); }
.btn-sm { padding: 10px 18px; font-size: 0.9rem; }
.btn-lg { padding: 17px 34px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: background 0.4s var(--ease), border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(6, 10, 16, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 700; font-size: 1.16rem; letter-spacing: 0.04em; }
.brand .logo-mark { width: auto; height: 38px; flex: none; filter: drop-shadow(0 0 9px rgba(46, 160, 255, 0.28)); }
.brand b { background: var(--brand-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand span { color: var(--text); }

.nav-links { display: none; align-items: center; gap: 4px; }
@media (min-width: 980px) { .nav-links { display: flex; } }
.nav-links a {
  position: relative;
  padding: 9px 15px;
  font-size: 0.95rem;
  color: var(--text-soft);
  border-radius: 10px;
  transition: color 0.25s, background 0.25s;
}
.nav-links a:hover { color: #fff; background: var(--surface-2); }
.nav-links a.active { color: #fff; }

.nav-cta { display: none; align-items: center; gap: 12px; }
@media (min-width: 980px) { .nav-cta { display: flex; } }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface-2);
}
@media (min-width: 980px) { .nav-toggle { display: none; } }
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: var(--nav-h) 0 auto 0;
  z-index: 999;
  background: rgba(8, 13, 21, 0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  padding: 18px 24px 28px;
  display: grid;
  gap: 6px;
  transform: translateY(-110%);
  transition: transform 0.45s var(--ease);
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu a { padding: 14px 16px; border-radius: 12px; font-family: var(--font-display); font-size: 1.05rem; color: var(--text-soft); }
.mobile-menu a:hover { background: var(--surface-2); color: #fff; }
.mobile-menu .btn { margin-top: 10px; }

/* ---------- Language switcher ---------- */
.lang-switch { position: relative; }
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 99px;
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: border-color 0.25s, color 0.25s, background 0.25s;
}
.lang-btn:hover { border-color: var(--cyan); color: #fff; }
.lang-btn svg { flex: none; }
.lang-caret { transition: transform 0.3s var(--ease); }
.lang-switch.open .lang-caret { transform: rotate(180deg); }
.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 170px;
  list-style: none;
  margin: 0;
  padding: 6px;
  border-radius: 14px;
  background: var(--surface-solid);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  display: grid;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.98);
  transform-origin: top right;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  z-index: 1100;
}
.lang-switch.open .lang-menu { opacity: 1; visibility: visible; transform: none; }
.lang-menu button {
  width: 100%;
  text-align: left;
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 0.92rem;
  color: var(--text-soft);
  transition: background 0.2s, color 0.2s;
}
.lang-menu button:hover { background: var(--surface-2); color: #fff; }
.lang-menu button.active { background: var(--brand-soft); color: #fff; }
[dir="rtl"] .lang-menu { right: auto; left: 0; transform-origin: top left; }
[dir="rtl"] .lang-menu button { text-align: right; }

.lang-row { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 4px; }
.lang-row button {
  flex: 1 1 auto;
  min-width: 54px;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
}
.lang-row button.active { background: var(--brand-soft); color: #fff; border-color: var(--cyan); }

/* ---------- RTL + language fonts ---------- */
html[lang="ar"], html[lang="ar"] body { font-family: "Noto Sans Arabic", var(--font-body); }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4, html[lang="ar"] .display, html[lang="ar"] .eyebrow, html[lang="ar"] .crest-label { font-family: "Noto Sans Arabic", var(--font-display); }
html[lang="ar"] .eyebrow, html[lang="ar"] .crest-label { letter-spacing: 0; }
html[lang="ja"], html[lang="ja"] body { font-family: "Noto Sans JP", var(--font-body); }
html[lang="ja"] h1, html[lang="ja"] h2, html[lang="ja"] h3, html[lang="ja"] h4, html[lang="ja"] .display { font-family: "Noto Sans JP", var(--font-display); }
[dir="rtl"] .hero .lead, [dir="rtl"] .hero-copy, [dir="rtl"] .display { text-align: right; }

/* ---------- Hero ---------- */
.hero { padding-top: calc(var(--nav-h) + 60px); padding-bottom: 40px; position: relative; overflow: hidden; }
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  z-index: -1;
  animation: float 18s ease-in-out infinite;
}
.hero-orb.a { width: 460px; height: 460px; background: radial-gradient(circle, rgba(46, 160, 255, 0.5), transparent 70%); top: -120px; left: -80px; }
.hero-orb.b { width: 520px; height: 520px; background: radial-gradient(circle, rgba(34, 211, 238, 0.42), transparent 70%); top: 40px; right: -140px; animation-delay: -4s; }
.hero-orb.c { width: 380px; height: 380px; background: radial-gradient(circle, rgba(167, 139, 250, 0.32), transparent 70%); bottom: -120px; left: 35%; animation-delay: -8s; }

.hero-grid { display: grid; gap: 44px; align-items: center; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 30px; } }

.hero h1 { margin-top: 22px; margin-bottom: 22px; }
.hero .lead { max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
/* Hero standards marquee (replaces the old stat counters) */
.hero-copy { min-width: 0; }
.hero-visual-tag { text-align: center; margin-bottom: 18px; }
.hero-visual-tag .eyebrow { margin-bottom: 12px; }
.hv-line { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.02rem, 1.6vw, 1.2rem); line-height: 1.34; color: var(--text); max-width: 34ch; margin: 0 auto; }
@media (min-width: 1000px) { .hero-visual { align-self: start; } }
.lead .cite { color: var(--text); font-weight: 600; }
.hero-disclaimer { margin-top: 11px; font-size: 0.72rem; line-height: 1.5; color: var(--muted-2); max-width: 60ch; }
.hero-standards { margin-top: 38px; max-width: 540px; width: 100%; min-width: 0; }
.hero-standards-label { display: inline-flex; align-items: flex-start; gap: 9px; font-size: 0.82rem; color: var(--text-soft); margin-bottom: 15px; line-height: 1.45; }
.hero-standards-label svg { width: 17px; height: 17px; color: var(--cyan); flex: none; margin-top: 1px; }
.std-marquee { position: relative; overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.std-mq-track { display: flex; width: max-content; will-change: transform; }
[data-marquee] .std-mq-track { animation: stdScroll 56s linear infinite; }
.std-marquee:hover .std-mq-track { animation-play-state: paused; }
@keyframes stdScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.std-chip { display: inline-flex; align-items: center; gap: 9px; margin-right: 12px; padding: 9px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); white-space: nowrap; transition: border-color 0.3s, background 0.3s, transform 0.3s; }
.std-chip:hover { border-color: color-mix(in srgb, var(--cyan) 50%, var(--line)); background: var(--surface-2); transform: translateY(-2px); }
.std-ic { width: 20px; height: 20px; flex: none; color: var(--cyan); }
.std-chip b { font-family: var(--font-display); font-weight: 600; font-size: 0.86rem; color: var(--text); letter-spacing: 0.01em; }
.std-chip i { font-style: normal; font-size: 0.72rem; color: var(--muted); border-left: 1px solid var(--line-strong); padding-left: 9px; }
/* Directional arrow gliding left -> right beneath the marquee */
.std-flow { position: relative; height: 15px; margin-top: 14px; overflow: hidden; }
.std-flow::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; transform: translateY(-50%); border-radius: 2px; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12) 12%, rgba(255,255,255,0.12) 88%, transparent); }
.std-flow-arrow { position: absolute; top: 50%; left: 0; width: 19px; height: 15px; transform: translateY(-50%); color: var(--cyan); filter: drop-shadow(0 0 6px rgba(46,160,255,0.55)); animation: stdArrowLR 2.8s cubic-bezier(0.5,0,0.5,1) infinite; }
@keyframes stdArrowLR { 0% { left: -5%; opacity: 0; } 14% { opacity: 1; } 84% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
@media (max-width: 980px) { .hero-standards { max-width: none; margin-inline: auto; } }
@media (prefers-reduced-motion: reduce) {
  .std-marquee { -webkit-mask: none; mask: none; }
  [data-marquee] .std-mq-track { animation: none; width: auto; flex-wrap: wrap; }
  .std-chip { margin-bottom: 10px; }
  .std-flow-arrow { animation: none; left: auto; right: 2px; }
}

/* Hero visual card */
.hero-visual { position: relative; }
.helix-wrap { position: relative; display: grid; place-items: center; }
.scan-card {
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(20, 30, 44, 0.9), rgba(8, 13, 21, 0.85));
  box-shadow: var(--shadow);
  padding: 22px;
  overflow: hidden;
}
.scan-card::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--emerald), var(--cyan), transparent);
  animation: scanline 3.6s linear infinite;
}
.scan-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.scan-head .who { display: flex; align-items: center; gap: 12px; }
.scan-head .avatar { width: 44px; height: 44px; border-radius: 12px; background: var(--brand); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; color: #04130c; }
.scan-head .name { font-family: var(--font-display); font-weight: 600; }
.scan-head .role { font-size: 0.8rem; color: var(--muted); }
.live-pill { font-size: 0.72rem; font-weight: 600; color: var(--emerald); display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 99px; background: rgba(46, 160, 255, 0.1); border: 1px solid rgba(46, 160, 255, 0.25); }
.live-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--emerald); animation: pulse 1.6s infinite; }

.scan-bars { display: grid; gap: 13px; }
.scan-bar .row { display: flex; justify-content: space-between; font-size: 0.85rem; margin-bottom: 5px; }
.scan-bar .row b { font-family: var(--font-display); }
.bar-track { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 99px; background: var(--brand); width: 0; transition: width 1.4s var(--ease); }

.scan-foot { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.scan-foot .pos { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.scan-foot .pct { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; background: var(--brand-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* floating chips around hero card */
.float-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(11, 18, 28, 0.85);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  font-size: 0.85rem;
  font-weight: 500;
  animation: float 8s ease-in-out infinite;
}
.float-chip .ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--brand-soft); color: var(--cyan); }
.float-chip.one { top: 8%; left: -28px; }
.float-chip.two { bottom: 16%; right: -22px; animation-delay: -3s; }

/* ---------- Logo / trust marquee ---------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 60px; width: max-content; animation: marquee 30s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: flex; align-items: center; gap: 10px; color: var(--muted); font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; letter-spacing: -0.01em; white-space: nowrap; }
.marquee-item svg { width: 22px; height: 22px; opacity: 0.8; }

/* ---------- Cards ---------- */
.card {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--sheen), var(--surface);
  padding: 30px;
  transition: transform 0.4s var(--ease), border-color 0.4s, background 0.4s, box-shadow 0.4s;
  overflow: hidden;
}
.card:hover { transform: translateY(-6px); border-color: rgba(34, 211, 238, 0.35); background: var(--sheen), var(--surface-2); box-shadow: var(--shadow), var(--glow-cyan); }
.card .ic-box {
  width: 54px; height: 54px;
  border-radius: 15px;
  display: grid; place-items: center;
  background: var(--brand-soft);
  border: 1px solid var(--line);
  margin-bottom: 20px;
  transition: transform 0.4s var(--ease);
}
.card:hover .ic-box { transform: scale(1.08) rotate(-4deg); }
.card .ic-box svg { width: 26px; height: 26px; color: var(--cyan); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--text-soft); font-size: 0.97rem; }
.card .num-badge {
  position: absolute; top: 22px; right: 24px;
  font-family: var(--font-display); font-weight: 700; font-size: 0.85rem;
  color: var(--muted-2);
}
.card.spot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), rgba(34, 211, 238, 0.1), transparent 60%);
  opacity: 0; transition: opacity 0.4s; pointer-events: none;
}
.card.spot:hover::after { opacity: 1; }

/* feature list inside cards */
.mini-list { display: grid; gap: 8px; margin-top: 16px; }
.mini-list li { position: relative; padding-left: 24px; font-size: 0.9rem; color: var(--text-soft); }
.mini-list li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 13px; height: 13px; border-radius: 4px;
  background: var(--brand); opacity: 0.85;
}

/* ---------- Section heading ---------- */
.sec-head { max-width: 720px; margin-bottom: 54px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head h2 { margin-block: 16px 18px; }
.sec-sub { font-size: 1rem; line-height: 1.6; color: var(--text-soft); max-width: 60ch; margin: 0 auto; }

/* ---------- Steps / how it works ---------- */
.steps { counter-reset: step; display: grid; gap: 22px; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; padding: 28px 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); transition: transform 0.4s var(--ease), border-color 0.4s; }
.step:hover { transform: translateY(-5px); border-color: var(--line-strong); }
.step .step-no {
  counter-increment: step;
  font-family: var(--font-display); font-weight: 700; font-size: 0.85rem;
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--brand-soft); color: var(--cyan);
  margin-bottom: 18px;
}
.step .step-no::before { content: "0" counter(step); }
.step h4 { font-size: 1.15rem; margin-bottom: 8px; }
.step p { font-size: 0.92rem; color: var(--muted); }
.step .connector { display: none; }
@media (min-width: 860px) {
  .step .connector { display: block; position: absolute; top: 46px; right: -13px; color: var(--line-strong); z-index: 2; }
  .step:last-child .connector { display: none; }
}

/* ---------- Stats band ---------- */
.stats-band { display: grid; gap: 24px; text-align: center; }
@media (min-width: 720px) { .stats-band { grid-template-columns: repeat(4, 1fr); } }
.stat-big .num { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1; background: var(--brand-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-big .lbl { color: var(--muted); margin-top: 10px; font-size: 0.95rem; }

/* ---------- Position intelligence showcase ---------- */
.pos-showcase { display: grid; gap: 40px; align-items: center; }
@media (min-width: 980px) { .pos-showcase { grid-template-columns: 1fr 1fr; } }
.pos-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.pos-pill {
  padding: 9px 16px; border-radius: 99px; font-size: 0.88rem; font-weight: 600;
  border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--text-soft);
  transition: all 0.3s var(--ease); cursor: default;
}
.pos-pill:hover { border-color: var(--cyan); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-glow); }

/* recommendation result block */
.rec-card { border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); padding: 28px; }
.rec-row { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.rec-row:last-child { border-bottom: none; }
.rec-rank { font-family: var(--font-display); font-weight: 700; font-size: 0.85rem; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--brand-soft); color: var(--cyan); flex: none; }
.rec-row .pos-name { font-family: var(--font-display); font-weight: 600; flex: none; width: 140px; }
.rec-row .bar-track { flex: 1; }
.rec-row .pct { font-family: var(--font-display); font-weight: 700; width: 54px; text-align: right; }

/* ---------- Radar ---------- */
.radar-card { display: grid; place-items: center; padding: 22px; }
.radar-svg .axis { stroke: var(--line); stroke-width: 1; }
.radar-svg .ring { fill: none; stroke: var(--line); stroke-width: 1; }
.radar-svg .label { fill: var(--muted); font-size: 11px; font-family: var(--font-body); }
.radar-svg .poly {
  fill: rgba(34, 211, 238, 0.16);
  stroke: var(--cyan);
  stroke-width: 2;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 8px rgba(34, 211, 238, 0.4));
}
.radar-svg .pt { fill: var(--emerald); }

/* ---------- Heatmap ---------- */
.pitch {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 9%),
    linear-gradient(120deg, #0a1f17, #08130e);
  overflow: hidden;
}
.pitch .lines { position: absolute; inset: 0; }
.pitch .lines::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: rgba(255,255,255,0.12); transform: translateX(-50%); }
.pitch .lines::after { content: ""; position: absolute; left: 50%; top: 50%; width: 110px; height: 110px; border: 2px solid rgba(255,255,255,0.12); border-radius: 50%; transform: translate(-50%, -50%); }
.heat-blob { position: absolute; border-radius: 50%; filter: blur(14px); mix-blend-mode: screen; animation: pulse 4s ease-in-out infinite; }

/* ---------- Module accordion / tabs ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.tab-btn {
  padding: 10px 18px; border-radius: 99px; font-family: var(--font-display); font-weight: 600; font-size: 0.92rem;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--text-soft);
  transition: all 0.3s var(--ease);
}
.tab-btn:hover { color: #fff; border-color: var(--line-strong); }
.tab-btn.active { background: var(--brand); color: #04130c; border-color: transparent; }
.tab-panel { display: none; animation: fadeUp 0.5s var(--ease); }
.tab-panel.active { display: block; }

/* module detailed card */
.module {
  display: grid; gap: 22px;
  grid-template-columns: 1fr;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 30px;
  scroll-margin-top: 110px;
  transition: border-color 0.4s, background 0.4s;
}
@media (min-width: 820px) { .module { grid-template-columns: 64px 1fr; gap: 28px; } }
.module:hover { border-color: var(--line-strong); background: var(--surface-2); }
.module .m-ic { width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; background: var(--brand-soft); border: 1px solid var(--line); color: var(--cyan); }
.module .m-ic svg { width: 28px; height: 28px; }
.module .m-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 6px; }
.module .m-num { font-family: var(--font-display); font-weight: 700; color: var(--muted-2); font-size: 0.9rem; }
.module h3 { font-size: 1.3rem; }
.module > div > p { color: var(--text-soft); margin: 12px 0 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: 0.8rem; padding: 6px 12px; border-radius: 99px;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text-soft);
  transition: all 0.25s;
}
.chip:hover { border-color: var(--cyan); color: #fff; }
.m-outputs { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.m-outputs .ttl { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }

/* ---------- Disclaimer ---------- */
.disclaimer {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 180, 84, 0.28);
  background: linear-gradient(160deg, rgba(255, 180, 84, 0.07), rgba(255, 93, 108, 0.04));
  padding: 30px 32px;
  display: grid; gap: 18px; grid-template-columns: 1fr;
}
@media (min-width: 760px) { .disclaimer { grid-template-columns: 52px 1fr; gap: 22px; } }
.disclaimer .d-ic { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 180, 84, 0.14); color: var(--amber); }
.disclaimer h3 { color: var(--amber); margin-bottom: 8px; font-size: 1.15rem; }
.disclaimer p { color: var(--text-soft); font-size: 0.96rem; }

/* ---------- Pitch band ---------- */
.pitch-band {
  position: relative;
  text-align: center;
  max-width: 920px;
  margin-inline: auto;
  padding: clamp(38px, 6vw, 68px);
  border-radius: var(--radius-xl);
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(75% 130% at 50% 0%, rgba(46, 160, 255, 0.1), transparent 60%),
    linear-gradient(160deg, rgba(20, 30, 44, 0.5), rgba(8, 13, 21, 0.42));
  overflow: hidden;
}
.pitch-band .eyebrow { margin-bottom: 18px; }
.pitch-band h2 { margin-bottom: 18px; }
.pitch-band .lead { max-width: 62ch; margin-inline: auto; }
.pitch-band .lead strong { color: var(--text); font-weight: 600; }
.pitch-model { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin: 28px 0 30px; }
.pitch-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 99px;
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  font-family: var(--font-mono);
  font-size: 0.86rem;
  font-weight: 600;
}
.pitch-chip svg { width: 18px; height: 18px; flex: none; }
.pitch-chip.est { color: var(--cyan); }
.pitch-chip.conf { color: var(--emerald); }
.pitch-arrow { width: 22px; height: 22px; color: var(--muted); flex: none; }
[dir="rtl"] .pitch-arrow { transform: scaleX(-1); }

/* ---------- Three modes ---------- */
.mode-card {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--sheen), var(--surface);
  padding: 28px;
  transition: transform 0.4s var(--ease), border-color 0.4s, background 0.4s, box-shadow 0.4s;
}
.mode-card:hover { transform: translateY(-6px); border-color: rgba(34, 211, 238, 0.35); box-shadow: var(--shadow), var(--glow-cyan); }
.mode-card.featured { border-color: rgba(46, 160, 255, 0.4); background: linear-gradient(160deg, rgba(46, 160, 255, 0.06), transparent 55%), var(--surface-2); }
.mode-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.mode-no { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.14em; color: var(--muted); text-transform: uppercase; }
.mode-tag { font-family: var(--font-mono); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.08em; padding: 4px 10px; border-radius: 99px; text-transform: uppercase; }
.mode-tag.est { color: var(--cyan); background: rgba(34, 211, 238, 0.12); }
.mode-tag.hyb { color: var(--amber); background: rgba(255, 180, 84, 0.12); }
.mode-tag.elite { color: var(--emerald); background: rgba(46, 160, 255, 0.12); }
.mode-card h3 { margin-bottom: 6px; }
.mode-for { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.03em; color: var(--cyan); margin-bottom: 12px; }
.mode-card > p { color: var(--text-soft); font-size: 0.95rem; }
.mode-card > p strong { color: var(--text); font-weight: 600; }
.mode-card .mini-list { margin-top: 16px; }
.mode-card .ic-box { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--brand-soft); border: 1px solid var(--line); color: var(--cyan); margin-bottom: 16px; transition: transform 0.4s var(--ease); }
.mode-card:hover .ic-box { transform: scale(1.08) rotate(-4deg); }
.mode-card .ic-box svg { width: 23px; height: 23px; }

/* ---------- Who it's for ---------- */
.aud-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 38px; }
.aud-chips span {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.04em;
  padding: 8px 16px; border-radius: 99px; border: 1px solid var(--line);
  background: var(--surface-2); color: var(--text-soft);
  transition: border-color 0.25s, color 0.25s;
}
.aud-chips span:hover { border-color: var(--cyan); color: #fff; }

/* ---------- Differentiation table ---------- */
.compare-wrap { max-width: 880px; margin-inline: auto; }
.compare { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); }
.compare-table { width: 100%; border-collapse: collapse; min-width: 580px; }
.compare-table th, .compare-table td { padding: 14px 18px; text-align: center; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.compare-table thead th { font-family: var(--font-display); font-weight: 600; font-size: 0.86rem; color: var(--muted); }
.compare-table thead th.us { color: var(--emerald); }
.compare-table thead th:first-child, .compare-table tbody td:first-child { text-align: left; color: var(--text-soft); }
.compare-table td.us { background: linear-gradient(180deg, rgba(46, 160, 255, 0.07), rgba(46, 160, 255, 0.02)); }
.compare-table .yes { color: var(--emerald); font-weight: 700; font-size: 1.05rem; }
.compare-table .no { color: var(--muted-2); }
.compare-table .part { color: var(--amber); font-weight: 700; }
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-note { text-align: center; font-size: 0.76rem; color: var(--muted); margin-top: 16px; }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 920px) { .pricing-grid { grid-template-columns: repeat(3, 1fr); align-items: start; } }
.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--sheen), var(--surface);
  padding: 30px 28px;
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
}
.price-card:hover { transform: translateY(-5px); border-color: var(--line-strong); }
.price-card.featured {
  border-color: rgba(46, 160, 255, 0.45);
  background: linear-gradient(165deg, rgba(46, 160, 255, 0.08), rgba(34, 211, 238, 0.03) 55%, transparent), var(--surface-2);
  box-shadow: var(--shadow), var(--glow-emerald);
}
@media (min-width: 920px) { .price-card.featured { transform: scale(1.03); } .price-card.featured:hover { transform: scale(1.03) translateY(-5px); } }
.price-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); font-family: var(--font-mono); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 14px; border-radius: 99px; background: var(--brand); color: #04130c; white-space: nowrap; }
.price-tag { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; }
.price-amt { font-family: var(--font-display); font-weight: 700; font-size: 2.2rem; line-height: 1; margin: 12px 0 4px; background: var(--brand-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.price-amt span { display: inline-block; font-family: var(--font-body); font-size: 0.78rem; font-weight: 500; color: var(--muted); -webkit-text-fill-color: var(--muted); margin-left: 6px; }
.price-for { font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); margin-bottom: 18px; }
.price-list { display: grid; gap: 11px; margin-bottom: 24px; flex: 1; }
.price-list li { position: relative; padding-left: 26px; font-size: 0.92rem; color: var(--text-soft); }
.price-list li::before { content: ""; position: absolute; left: 0; top: 5px; width: 15px; height: 15px; border-radius: 50%; background: var(--brand-soft); }
.price-list li::after { content: ""; position: absolute; left: 5px; top: 8px; width: 4px; height: 8px; border-right: 2px solid var(--emerald); border-bottom: 2px solid var(--emerald); transform: rotate(45deg); }
.price-card .btn { margin-top: auto; }

/* ---------- CTA ---------- */
.cta {
  position: relative;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line-strong);
  background: linear-gradient(150deg, rgba(46, 160, 255, 0.12), rgba(34, 211, 238, 0.08) 45%, rgba(167, 139, 250, 0.08));
  padding: clamp(40px, 6vw, 76px);
  text-align: center;
  overflow: hidden;
}
.cta::before {
  content: ""; position: absolute; inset: -2px;
  background: radial-gradient(60% 100% at 50% 0%, rgba(34, 211, 238, 0.22), transparent 60%);
  pointer-events: none;
}
.cta h2 { position: relative; margin-bottom: 18px; }
.cta .lead { position: relative; margin-inline: auto; }
.cta .hero-actions { position: relative; justify-content: center; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding-block: 64px 36px; margin-top: 40px; }
.footer-grid { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.footer .brand { margin-bottom: 16px; }
.footer p { color: var(--muted); font-size: 0.92rem; max-width: 34ch; }
.footer h5 { font-family: var(--font-display); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text); margin-bottom: 16px; }
.footer ul { display: grid; gap: 11px; }
.footer ul a { color: var(--muted); font-size: 0.93rem; transition: color 0.25s; }
.footer ul a:hover { color: var(--cyan); }
.footer-disclaimer { margin-top: 36px; font-size: 0.78rem; line-height: 1.6; color: var(--muted-2); max-width: 92ch; }
.footer-disclaimer strong { color: var(--muted); font-weight: 600; }
.footer-bottom { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; color: var(--muted); font-size: 0.85rem; }
.socials { display: flex; gap: 10px; }
.socials a { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface-2); transition: all 0.3s; }
.socials a:hover { border-color: var(--cyan); color: var(--cyan); transform: translateY(-3px); }

/* ---------- Auth / login ---------- */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr; }
@media (min-width: 980px) { .auth-wrap { grid-template-columns: 1.05fr 0.95fr; } }
.auth-aside { position: relative; display: none; padding: 56px; overflow: hidden; border-right: 1px solid var(--line); }
@media (min-width: 980px) { .auth-aside { display: flex; flex-direction: column; justify-content: space-between; } }
.auth-aside .quote { font-family: var(--font-display); font-size: 1.6rem; line-height: 1.3; letter-spacing: -0.02em; max-width: 22ch; }
.auth-feature { display: flex; gap: 14px; align-items: flex-start; margin-top: 16px; }
.auth-feature .ic { width: 38px; height: 38px; flex: none; border-radius: 11px; background: var(--brand-soft); display: grid; place-items: center; color: var(--cyan); }
.auth-feature h4 { font-size: 1rem; margin-bottom: 2px; }
.auth-feature p { font-size: 0.88rem; color: var(--muted); }

.auth-main { display: grid; place-items: center; padding: 40px 24px; }
.auth-card { width: 100%; max-width: 440px; }
.auth-card h1 { font-size: 2rem; margin-bottom: 8px; }
.auth-card > p.sub { color: var(--muted); margin-bottom: 30px; }

.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 8px; color: var(--text-soft); }
.input-wrap { position: relative; }
.input-wrap svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.field input, .field select {
  width: 100%;
  padding: 14px 16px 14px 44px;
  border-radius: 13px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text);
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}
.field input::placeholder { color: var(--muted-2); }
.field input:focus, .field select:focus { outline: none; border-color: var(--cyan); box-shadow: var(--ring); background: var(--surface-solid); }
.field .toggle-pw { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); padding: 6px; }
.auth-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; font-size: 0.88rem; }
.check { display: inline-flex; align-items: center; gap: 9px; color: var(--text-soft); cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--emerald); }
.auth-link { color: var(--cyan); font-weight: 600; }
.auth-link:hover { text-decoration: underline; }
.divider { display: flex; align-items: center; gap: 14px; margin: 24px 0; color: var(--muted); font-size: 0.82rem; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.oauth-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.oauth-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 12px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface-2); font-weight: 600; font-size: 0.92rem; transition: all 0.3s; }
.oauth-btn:hover { border-color: var(--cyan); transform: translateY(-2px); }
.auth-note { margin-top: 22px; font-size: 0.82rem; color: var(--muted); text-align: center; }
.form-msg { margin-top: 14px; padding: 12px 16px; border-radius: 12px; font-size: 0.9rem; display: none; }
.form-msg.show { display: block; }
.form-msg.ok { background: rgba(46, 160, 255, 0.1); border: 1px solid rgba(46, 160, 255, 0.3); color: var(--emerald); }
.form-msg.err { background: rgba(255, 93, 108, 0.1); border: 1px solid rgba(255, 93, 108, 0.3); color: var(--red); }

/* ===== FAQ accordion ===== */
.faq-list { max-width: 780px; margin-inline: auto; display: grid; gap: 12px; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.faq-item:hover { border-color: var(--line-strong); }
.faq-item[open] { border-color: color-mix(in srgb, var(--cyan) 45%, var(--line)); background: var(--surface-2); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 19px 24px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.04rem;
  line-height: 1.4;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  transition: color 0.25s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: #fff; }
.faq-item summary::after {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  margin-top: -4px;
  border-right: 2px solid var(--cyan);
  border-bottom: 2px solid var(--cyan);
  transform: rotate(45deg);
  transition: transform 0.35s var(--ease), margin 0.35s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(-135deg); margin-top: 3px; }
.faq-item > p {
  margin: 0;
  padding: 0 24px 22px;
  color: var(--text-soft);
  font-size: 0.96rem;
  line-height: 1.68;
  animation: faqIn 0.4s var(--ease);
}
.faq-item > p strong { color: var(--text); font-weight: 600; }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ===== Book-a-Demo modal ===== */
.demo-modal { max-width: 600px; }
.demo-badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 14px 7px 9px; margin-bottom: 18px;
  border-radius: 999px; border: 1px solid var(--line-strong);
  background: var(--surface-2);
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-soft);
}
.demo-badge img { display: block; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.field .opt { font-weight: 400; color: var(--muted); text-transform: none; letter-spacing: 0; }
.select-wrap select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer; }
.select-wrap::after {
  content: ""; position: absolute; right: 17px; top: 50%; width: 8px; height: 8px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg); pointer-events: none;
}
.field select option { background: var(--surface-solid); color: var(--text); }
.textarea-wrap textarea {
  width: 100%; padding: 13px 16px; border-radius: 13px;
  background: var(--surface-2); border: 1px solid var(--line);
  color: var(--text); font: inherit; line-height: 1.55; resize: vertical; min-height: 84px;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}
.textarea-wrap textarea::placeholder { color: var(--muted-2); }
.textarea-wrap textarea:focus { outline: none; border-color: var(--cyan); box-shadow: var(--ring); background: var(--surface-solid); }
@media (max-width: 540px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- Dashboard preview ---------- */
.dash { padding-top: calc(var(--nav-h) + 36px); }
.dash-head { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; margin-bottom: 30px; }
.player-id { display: flex; align-items: center; gap: 16px; }
.player-id .pic { width: 64px; height: 64px; border-radius: 18px; background: var(--brand); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: #04130c; }
.player-id h1 { font-size: 1.6rem; }
.player-id .meta { color: var(--muted); font-size: 0.9rem; display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 4px; }

.dash-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .dash-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .dash-grid { grid-template-columns: repeat(4, 1fr); } }

.panel { border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); padding: 24px; }
.panel h3 { font-size: 1.05rem; margin-bottom: 4px; }
.panel .panel-sub { font-size: 0.82rem; color: var(--muted); margin-bottom: 18px; }
.col-span-2 { grid-column: span 1; }
@media (min-width: 720px) { .col-span-2 { grid-column: span 2; } }

.score-card { text-align: left; }
.score-card .score-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.score-card .ic-mini { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--cyan); }
.score-card .trend { font-size: 0.78rem; font-weight: 600; padding: 3px 8px; border-radius: 99px; }
.trend.up { color: var(--emerald); background: rgba(46,160,255,0.1); }
.trend.flat { color: var(--amber); background: rgba(255,180,84,0.1); }
.score-card .val { font-family: var(--font-display); font-weight: 700; font-size: 2.4rem; line-height: 1; }
.score-card .val small { font-size: 1rem; color: var(--muted); font-weight: 600; }
.score-card .name { color: var(--muted); font-size: 0.9rem; margin-top: 6px; }
.ring-track { margin-top: 14px; height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.ring-track i { display: block; height: 100%; width: 0; border-radius: 99px; background: var(--brand); transition: width 1.4s var(--ease); }

/* dashboard notice + test rows */
.notice { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 18px; border-radius: 14px; border: 1px dashed var(--line-strong); background: var(--surface); color: var(--text-soft); font-size: 0.9rem; margin-bottom: 26px; }
.notice .ic { width: 30px; height: 30px; flex: none; border-radius: 9px; display: grid; place-items: center; background: var(--brand-soft); color: var(--cyan); }
.notice b { color: var(--text); font-family: var(--font-display); }

.test-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.test-row:last-child { border-bottom: none; }
.test-row .t-name { font-size: 0.92rem; color: var(--text-soft); }
.test-row .t-val { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
.test-row .bar-track { grid-column: 1 / -1; }
.test-row .t-note { grid-column: 1 / -1; font-size: 0.78rem; color: var(--muted); }

.kv-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 0.93rem; }
.kv-row:last-child { border-bottom: none; }
.kv-row .k { color: var(--text-soft); }
.kv-row .v { font-family: var(--font-display); font-weight: 600; }
.kv-row .v.good { color: var(--emerald); }
.kv-row .v.warn { color: var(--amber); }

/* risk map */
.risk-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.risk-row:last-child { border-bottom: none; }
.risk-row .rname { flex: 1; font-size: 0.94rem; }
.risk-level { font-size: 0.78rem; font-weight: 700; padding: 4px 12px; border-radius: 99px; }
.risk-level.low { color: var(--emerald); background: rgba(46,160,255,0.12); }
.risk-level.moderate { color: var(--amber); background: rgba(255,180,84,0.12); }
.risk-level.high { color: var(--red); background: rgba(255,93,108,0.12); }

/* ---------- Photographic backgrounds (royalty-free imagery) ---------- */
.has-photo { position: relative; isolation: isolate; overflow: hidden; }
.photo-bg {
  position: absolute; inset: 0; z-index: -1;
  background-color: var(--bg-2);
  background-size: cover; background-position: center;
  transform: scale(1.04);
}
.photo-bg::after {
  content: ""; position: absolute; inset: 0;
  background: var(--veil, linear-gradient(180deg, rgba(5,8,13,.74), rgba(5,8,13,.93) 60%, rgba(5,8,13,.99)));
}

/* Full-bleed photo band (stadium / atmosphere) */
.photo-band { position: relative; isolation: isolate; overflow: hidden; border-block: 1px solid var(--line); }
.photo-band .photo-bg { transform: scale(1.06); }
.photo-band .photo-bg::after { background: linear-gradient(120deg, rgba(5,8,13,.92), rgba(5,8,13,.62) 60%, rgba(8,13,21,.85)); }
.photo-band .band-inner { padding-block: clamp(56px, 8vw, 110px); }

/* Side media image (rounded, with frame glow) */
.media {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-strong);
  background-color: var(--bg-2);
  background-size: cover; background-position: center;
  box-shadow: var(--shadow);
  min-height: 320px;
  position: relative; overflow: hidden;
}
.media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(5,8,13,.5)); }
.media .media-tag {
  position: absolute; left: 16px; bottom: 16px; z-index: 1;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 99px;
  background: rgba(11,18,28,.78); border: 1px solid var(--line-strong);
  backdrop-filter: blur(8px); font-size: .82rem; font-weight: 600;
}

/* ---------- Three-pillar methodology ---------- */
.pillars { display: grid; gap: 24px; }
@media (min-width: 920px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.pillar {
  border-radius: var(--radius-lg); border: 1px solid var(--line);
  background: var(--surface); overflow: hidden;
  transition: transform .4s var(--ease), border-color .4s, box-shadow .4s;
}
.pillar:hover { transform: translateY(-6px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.pillar .p-media {
  height: 190px; background-size: cover; background-position: center;
  position: relative; background-color: var(--bg-2);
}
.pillar .p-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,8,13,.2), rgba(11,18,28,.92)); }
.pillar .p-step {
  position: absolute; left: 18px; bottom: 14px; z-index: 1;
  font-family: var(--font-display); font-weight: 700; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--cyan);
}
.pillar .p-body { padding: 26px 26px 30px; }
.pillar h3 { margin-bottom: 10px; }
.pillar p { color: var(--text-soft); font-size: .96rem; }

/* ---------- Testimonials ---------- */
.tgrid { display: grid; gap: 24px; }
@media (min-width: 840px) { .tgrid { grid-template-columns: repeat(3, 1fr); } }
.tcard {
  border-radius: var(--radius-lg); border: 1px solid var(--line);
  background: var(--surface); padding: 28px;
  display: flex; flex-direction: column; gap: 18px;
  transition: transform .4s var(--ease), border-color .4s;
}
.tcard:hover { transform: translateY(-5px); border-color: var(--line-strong); }
.tcard .qmark { font-family: var(--font-display); font-size: 2.6rem; line-height: .5; color: var(--cyan); opacity: .6; }
.tcard p { color: var(--text-soft); font-size: .98rem; }
.tcard .who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.tcard .who .pic {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  display: grid; place-items: center; background: var(--brand);
  font-family: var(--font-display); font-weight: 700; color: #04130c; font-size: .95rem;
}
.tcard .who .nm { font-family: var(--font-display); font-weight: 600; font-size: .95rem; }
.tcard .who .rl { font-size: .82rem; color: var(--muted); }

/* ---------- Modal open state (full modal styles live in the Login modal block below) ---------- */
body.modal-open { overflow: hidden; }

/* ---------- Logo / trust grid ---------- */
.logo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 720px) { .logo-grid { grid-template-columns: repeat(4, 1fr); } }
.logo-grid .lg-cell { background: var(--bg); padding: 26px 18px; display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--muted); font-family: var(--font-display); font-weight: 600; letter-spacing: -.01em; transition: color .3s, background .3s; }
.logo-grid .lg-cell:hover { color: var(--text); background: var(--surface-2); }
.logo-grid .lg-cell svg { width: 22px; height: 22px; opacity: .85; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(32px) scale(0.985); filter: blur(8px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), filter 0.8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; filter: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }
.reveal.d5 { transition-delay: 0.4s; }
.reveal.d6 { transition-delay: 0.48s; }

/* ---------- Keyframes ---------- */
@keyframes float { 0%, 100% { transform: translateY(0) translateX(0); } 50% { transform: translateY(-24px) translateX(10px); } }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.55; transform: scale(0.82); } }
@keyframes scanline { 0% { transform: translateY(0); opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { transform: translateY(440px); opacity: 0; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes spinSlow { to { transform: rotate(360deg); } }
@keyframes dash-draw { to { stroke-dashoffset: 0; } }
@keyframes textShimmer { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes auroraDrift {
  0%   { transform: translate3d(-1%, -0.5%, 0) scale(1.03); filter: hue-rotate(0deg); }
  100% { transform: translate3d(1%, 1%, 0) scale(1.06); filter: hue-rotate(-5deg); }
}
@keyframes borderRotate { to { --angle: 360deg; } }
@keyframes pitchSweep { 0% { transform: translateX(-130%); } 100% { transform: translateX(360%); } }
@keyframes radarGlow { 0%, 100% { filter: drop-shadow(0 0 7px rgba(34, 211, 238, 0.4)); } 50% { filter: drop-shadow(0 0 18px rgba(34, 211, 238, 0.7)); } }
@keyframes shineSweep { to { transform: translateX(130%) skewX(-18deg); } }
@keyframes floatUp {
  0% { transform: translateY(0) scale(0.5); opacity: 0; }
  12% { opacity: 0.9; }
  88% { opacity: 0.5; }
  100% { transform: translateY(-360px) scale(1.15); opacity: 0; }
}
@keyframes iconGlow { 0%, 100% { box-shadow: 0 0 0 rgba(34, 211, 238, 0); } 50% { box-shadow: 0 0 22px rgba(34, 211, 238, 0.28); } }
@keyframes ctaPulse { 0%, 100% { opacity: 0.65; } 50% { opacity: 1; } }
@keyframes boneDraw { to { stroke-dashoffset: 0; } }
@keyframes jointPop { 0% { opacity: 0; transform: scale(0); } 60% { transform: scale(1.4); } 100% { opacity: 1; transform: scale(1); } }
@keyframes scanDown { 0% { transform: translateY(10px); } 50% { transform: translateY(186px); } 100% { transform: translateY(10px); } }
@keyframes bboxLock { 0% { opacity: 0; transform: scale(1.18); } 100% { opacity: 1; transform: scale(1); } }
@keyframes bounceCue { 0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 0.45; } 50% { transform: rotate(45deg) translate(4px, 4px); opacity: 1; } }
@keyframes parallaxRise { from { transform: translateY(-7%) scale(1.12); } to { transform: translateY(7%) scale(1.12); } }
@keyframes dividerSweep { from { transform: translateX(-60%); } to { transform: translateX(160%); } }
@keyframes heroIn { to { opacity: 1; transform: none; filter: none; } }
@keyframes lineRise { to { transform: none; } }
@keyframes btnFlow { to { background-position: 200% center; } }
@keyframes ripple { to { transform: scale(2.6); opacity: 0; } }
@keyframes flowPulse { 0% { background-position: 200% 0; } 100% { background-position: -40% 0; } }
@keyframes caretBlink { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }

/* Typewriter heading (gradient colour + blinking caret) */
.typewriter {
  background: var(--brand-text-vivid);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.typewriter .tw-caret {
  display: inline-block;
  width: 4px;
  height: 0.9em;
  margin-left: 7px;
  vertical-align: -0.06em;
  border-radius: 1px;
  background: var(--emerald);
  box-shadow: 0 0 10px rgba(46, 160, 255, 0.6);
  animation: caretBlink 0.9s steps(1) infinite;
}

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 12px; } .mt-2 { margin-top: 24px; } .mt-3 { margin-top: 40px; }
.mb-2 { margin-bottom: 24px; }
.flex { display: flex; } .items-center { align-items: center; } .gap { gap: 14px; } .wrap { flex-wrap: wrap; }
.hide-mobile { display: none; }
@media (min-width: 720px) { .hide-mobile { display: initial; } }
.divider-line { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- Intro loader (AI athlete scan) ---------- */
body.loading { overflow: hidden; }
.loader {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(60% 50% at 50% 18%, rgba(46, 160, 255, 0.12), transparent 60%),
    radial-gradient(55% 50% at 50% 92%, rgba(34, 211, 238, 0.1), transparent 60%),
    var(--bg);
  transition: opacity 0.6s var(--ease), visibility 0.6s var(--ease);
}
.loader.done { opacity: 0; visibility: hidden; }
.loader-inner { display: grid; justify-items: center; gap: 16px; width: min(86vw, 340px); text-align: center; }
.loader-brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.02em; }
.loader-brand .logo-mark { width: 34px; height: 34px; }
.loader-brand b { background: var(--brand-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.loader-tagline { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--cyan); margin-top: -4px; }
.loader-logo { display: block; width: min(330px, 70vw); height: auto; filter: drop-shadow(0 0 36px rgba(46, 160, 255, 0.22)); animation: loaderLogoIn 0.9s var(--ease) both; }
@keyframes loaderLogoIn { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: none; } }

.loader-scan {
  position: relative;
  width: 164px;
  height: 200px;
  margin-top: 6px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(20, 30, 44, 0.55), rgba(8, 13, 21, 0.45));
  overflow: hidden;
}
.loader-scan .pose { position: relative; z-index: 1; width: 100%; height: 100%; overflow: visible; }
.loader-scan .bone { stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 90; stroke-dashoffset: 90; animation: boneDraw 0.85s var(--ease) forwards; }
.loader-scan .bone:nth-child(1) { animation-delay: 0.10s; }
.loader-scan .bone:nth-child(2) { animation-delay: 0.18s; }
.loader-scan .bone:nth-child(3) { animation-delay: 0.26s; }
.loader-scan .bone:nth-child(4) { animation-delay: 0.34s; }
.loader-scan .bone:nth-child(5) { animation-delay: 0.30s; }
.loader-scan .bone:nth-child(6) { animation-delay: 0.38s; }
.loader-scan .bone:nth-child(7) { animation-delay: 0.22s; }
.loader-scan .bone:nth-child(8) { animation-delay: 0.46s; }
.loader-scan .bone:nth-child(9) { animation-delay: 0.50s; }
.loader-scan .bone:nth-child(10) { animation-delay: 0.58s; }
.loader-scan .bone:nth-child(11) { animation-delay: 0.54s; }
.loader-scan .bone:nth-child(12) { animation-delay: 0.62s; }
.loader-scan .joint { fill: var(--emerald); transform-box: fill-box; transform-origin: center; opacity: 0; animation: jointPop 0.5s var(--ease) forwards; }
.loader-scan .joints .joint:nth-child(1) { animation-delay: 0.15s; }
.loader-scan .joints .joint:nth-child(2) { animation-delay: 0.30s; }
.loader-scan .joints .joint:nth-child(3) { animation-delay: 0.30s; }
.loader-scan .joints .joint:nth-child(4) { animation-delay: 0.42s; }
.loader-scan .joints .joint:nth-child(5) { animation-delay: 0.42s; }
.loader-scan .joints .joint:nth-child(6) { animation-delay: 0.54s; }
.loader-scan .joints .joint:nth-child(7) { animation-delay: 0.54s; }
.loader-scan .joints .joint:nth-child(8) { animation-delay: 0.48s; }
.loader-scan .joints .joint:nth-child(9) { animation-delay: 0.64s; }
.loader-scan .joints .joint:nth-child(10) { animation-delay: 0.64s; }
.loader-scan .joints .joint:nth-child(11) { animation-delay: 0.72s; }
.loader-scan .joints .joint:nth-child(12) { animation-delay: 0.72s; }
.loader-scan .scan-line {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 0;
  height: 2px;
  z-index: 2;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  box-shadow: 0 0 14px var(--cyan);
  animation: scanDown 1.9s ease-in-out infinite;
}
.loader-scan .corner { position: absolute; width: 16px; height: 16px; border: 2px solid var(--cyan); opacity: 0.65; }
.loader-scan .corner.tl { top: 8px; left: 8px; border-right: 0; border-bottom: 0; border-radius: 6px 0 0 0; }
.loader-scan .corner.tr { top: 8px; right: 8px; border-left: 0; border-bottom: 0; border-radius: 0 6px 0 0; }
.loader-scan .corner.bl { bottom: 8px; left: 8px; border-right: 0; border-top: 0; border-radius: 0 0 0 6px; }
.loader-scan .corner.br { bottom: 8px; right: 8px; border-left: 0; border-top: 0; border-radius: 0 0 6px 0; }

/* HUD overlays inside the scan viewport */
.loader-scan .hud-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(34, 211, 238, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.12) 1px, transparent 1px);
  background-size: 18px 18px;
  -webkit-mask-image: radial-gradient(circle at 50% 45%, #000 50%, transparent 86%);
          mask-image: radial-gradient(circle at 50% 45%, #000 50%, transparent 86%);
  opacity: 0.5;
}
.loader-scan .hud-tag {
  position: absolute;
  top: 11px;
  left: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-display);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--text-soft);
}
.loader-scan .hud-tag i { width: 6px; height: 6px; border-radius: 50%; background: var(--red); box-shadow: 0 0 8px var(--red); animation: pulse 1.2s infinite; }
.loader-scan .hud-frames {
  position: absolute;
  top: 11px;
  right: 12px;
  z-index: 3;
  font-family: var(--font-display);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--cyan);
}
.loader-scan .bbox {
  position: absolute;
  z-index: 2;
  left: 24px;
  right: 24px;
  top: 14px;
  bottom: 14px;
  border: 1.5px dashed rgba(34, 211, 238, 0.7);
  border-radius: 8px;
  opacity: 0;
  transform-origin: center;
  animation: bboxLock 0.7s var(--ease) 0.7s forwards;
}
.loader-scan .bbox-tag {
  position: absolute;
  top: -8px;
  left: 8px;
  font-family: var(--font-display);
  font-size: 0.52rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--cyan);
  background: var(--bg-2);
  padding: 1px 6px;
  border-radius: 5px;
  border: 1px solid rgba(34, 211, 238, 0.4);
  white-space: nowrap;
}

/* Telemetry read-outs below the scan viewport */
.loader-readouts { display: flex; gap: 8px; justify-content: center; width: 100%; }
.loader-readouts .data-chip {
  flex: 1;
  max-width: 100px;
  padding: 7px 9px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  display: grid;
  gap: 1px;
  text-align: left;
}
.loader-readouts .dl { font-family: var(--font-display); font-size: 0.55rem; letter-spacing: 0.14em; color: var(--muted); }
.loader-readouts b { font-family: var(--font-display); font-weight: 700; font-size: 0.8rem; color: var(--text); }
.loader-readouts .data-chip.live b { color: var(--emerald); }

.loader-status { min-height: 20px; font-family: var(--font-display); font-size: 0.85rem; letter-spacing: 0.03em; color: var(--text-soft); }
.loader-bar { width: 100%; height: 4px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.loader-bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: var(--brand); box-shadow: 0 0 12px rgba(34, 211, 238, 0.5); transition: width 0.25s var(--ease); }
.loader-pct { font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; background: var(--brand-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Advanced effects (elevation layer) ---------- */

/* Reusable rotating conic-gradient border */
.glow-border { position: relative; }
.glow-border::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(from var(--angle),
    transparent 0deg, var(--cyan) 40deg, var(--emerald) 95deg,
    transparent 155deg, transparent 215deg, var(--violet) 290deg, transparent 345deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask-composite: exclude;
  animation: borderRotate 6s linear infinite;
  pointer-events: none;
  z-index: 3;
}

/* Hero scan card: brighter scanline + glowing border */
.scan-card::before { height: 2.5px; box-shadow: 0 0 14px var(--cyan); }

/* Featured dashboard panel: persistent ambient glow */
.panel.featured { box-shadow: var(--shadow-sm), var(--glow-cyan); }

/* Radar polygon: pulsing glow; sweep elements injected by JS */
.radar-svg .poly { animation: radarGlow 4.5s ease-in-out infinite; }
.radar-svg .sweep { stroke: rgba(34, 211, 238, 0.5); stroke-width: 2; stroke-linecap: round; }
.radar-svg .sweep-wedge { fill: rgba(34, 211, 238, 0.06); }

/* Floating chips: soft glow */
.float-chip { box-shadow: var(--shadow-sm), 0 0 30px rgba(34, 211, 238, 0.12); }

/* Modules: sheen + glow to match cards */
.module { background: var(--sheen), var(--surface); }
.module:hover { background: var(--sheen), var(--surface-2); box-shadow: var(--shadow), var(--glow-cyan); }

/* Hero cursor-follow glow */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(320px circle at var(--gx, 50%) var(--gy, 28%), rgba(34, 211, 238, 0.1), transparent 65%);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.hero.glow-active::after { opacity: 1; }

/* Card / module 3D tilt smoothing (JS toggles .tilting during pointer move) */
.card.tilting,
.module.tilting { transition: transform 0.12s var(--ease-out), border-color 0.4s, background 0.4s, box-shadow 0.4s; }

/* Scroll progress bar (width driven by JS) */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  z-index: 1200;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: var(--aurora);
  background-size: 200% auto;
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.55);
  animation: textShimmer 6s ease-in-out infinite;
  pointer-events: none;
}

/* Hero content sits above drifting particles */
.hero-grid { position: relative; z-index: 1; }
/* Hero visual: smoothed mouse-parallax return */
.hero-media { transition: transform 0.3s var(--ease-out); transform-style: preserve-3d; will-change: transform; }

/* Drifting data particles (injected into the hero by JS) */
.particle {
  position: absolute;
  bottom: -12px;
  z-index: 0;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  animation: floatUp linear infinite;
}

/* ---------- Institution badge wall (trusted across football) ---------- */
.crest-label { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 24px; }
.crest-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 640px) { .crest-row { grid-template-columns: repeat(4, 1fr); } }
.crest {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 22px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  text-align: center;
  transition: transform 0.35s var(--ease), border-color 0.35s, background 0.35s, color 0.35s;
}
.crest svg { width: 36px; height: 36px; margin-bottom: 5px; opacity: 0.72; transition: opacity 0.3s, color 0.3s, transform 0.35s var(--ease); }
.crest .c-name { font-family: var(--font-mono); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.02em; color: var(--text-soft); }
.crest .c-desc { font-family: var(--font-body); font-size: 0.72rem; color: var(--muted); line-height: 1.3; }
.crest:hover { transform: translateY(-4px); border-color: var(--line-strong); background: var(--surface-2); }
.crest:hover .c-name { color: var(--text); }
.crest:hover svg { opacity: 1; color: var(--cyan); transform: scale(1.08); }

/* ---------- How-it-works flow ---------- */
.flow { display: grid; gap: 30px 16px; grid-template-columns: 1fr; position: relative; }
@media (min-width: 560px) { .flow { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 920px) { .flow { grid-template-columns: repeat(3, 1fr); } }
.flow-step { position: relative; text-align: center; padding: 0 8px; }
.flow-no { display: block; font-family: var(--font-mono); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.2em; color: var(--cyan); margin-bottom: 12px; }
.flow-ic {
  position: relative;
  width: 78px;
  height: 78px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 32%, rgba(34, 211, 238, 0.16), rgba(46, 160, 255, 0.05));
  border: 1px solid var(--line-strong);
  color: var(--cyan);
  transition: transform 0.45s var(--ease), box-shadow 0.45s, border-color 0.45s;
}
.flow-ic svg { width: 32px; height: 32px; }
.flow-step:hover .flow-ic { transform: translateY(-5px) scale(1.07); border-color: var(--cyan); box-shadow: var(--glow-cyan); }
.flow-step h4 { font-size: 1.18rem; margin-bottom: 7px; }
.flow-step p { font-size: 0.9rem; color: var(--muted); max-width: 22ch; margin: 0 auto; }
.flow-tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 13px; }
.flow-tags span {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.03em;
  padding: 4px 9px;
  border-radius: 99px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text-soft);
}
@media (min-width: 920px) {
  .flow-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 60px;
    left: calc(50% + 47px);
    width: calc(100% - 94px);
    height: 2px;
    background: linear-gradient(90deg, var(--line-strong) 0 42%, var(--cyan) 50%, var(--line-strong) 58% 100%);
    background-size: 240% 100%;
    animation: flowPulse 2.6s linear infinite;
  }
  /* No connector at the end of each row of 3 (the benefits run 2 rows of 3) */
  .flow-step:nth-child(3n)::after { display: none; }
}

/* ---------- 3D pose-tracking stage (hero centerpiece) ---------- */
.track-stage {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  aspect-ratio: 4 / 3.5;
  background:
    radial-gradient(120% 80% at 50% 4%, rgba(34, 211, 238, 0.09), transparent 60%),
    radial-gradient(90% 70% at 50% 105%, rgba(46, 160, 255, 0.08), transparent 60%),
    linear-gradient(180deg, #0b1622, #070d15);
}
.track-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(34, 211, 238, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.07) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(115% 80% at 50% 42%, #000 0%, transparent 78%);
          mask-image: radial-gradient(115% 80% at 50% 42%, #000 0%, transparent 78%);
}
.track-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.track-tag,
.track-fit {
  position: absolute;
  top: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-weight: 600;
  background: rgba(7, 13, 21, 0.5);
  border: 1px solid var(--line);
  border-radius: 9px;
  backdrop-filter: blur(6px);
}
.track-tag { left: 14px; padding: 5px 11px; font-size: 0.62rem; letter-spacing: 0.1em; color: var(--cyan); }
.track-tag .rec-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 8px var(--emerald); animation: pulse 1.6s infinite; }
.track-fit { right: 14px; padding: 6px 12px; align-items: baseline; font-size: 0.74rem; color: var(--text-soft); }
.track-fit b { font-size: 1.02rem; font-weight: 700; background: var(--brand-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.track-readout { position: absolute; bottom: 14px; left: 14px; z-index: 2; display: flex; gap: 20px; }
.track-readout > div { display: grid; gap: 1px; }
.track-readout b { font-family: var(--font-mono); font-weight: 700; font-size: 1.05rem; color: var(--text); line-height: 1; }
.track-readout span { font-family: var(--font-mono); font-size: 0.55rem; letter-spacing: 0.1em; color: var(--muted); text-transform: uppercase; }

/* ---------- Bento grid (capabilities showcase) ---------- */
.bento { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 680px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) {
  .bento { grid-template-columns: repeat(4, 1fr); }
  .bento .b-wide { grid-column: span 2; }
  .bento .b-wide .mini-list { display: flex; flex-wrap: wrap; gap: 9px 26px; }
  .bento .b-wide .mini-list li { flex: 1 1 230px; }
}
.bento .b-wide {
  background: linear-gradient(150deg, rgba(46, 160, 255, 0.07), rgba(34, 211, 238, 0.035) 55%, transparent), var(--surface-2);
}
.bento .b-wide .ic-box { width: 60px; height: 60px; }
.bento .b-wide .ic-box svg { width: 28px; height: 28px; }
.bento .b-wide h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); }

/* ---------- AI technical type layer (monospace data) ---------- */
.eyebrow,
.tag,
.chip,
.m-num,
.num-badge,
.live-pill,
.loader-status,
.loader-pct,
.hud-frames,
.hud-tag,
.bbox-tag,
.loader-readouts .dl,
.section-dots a::after {
  font-family: var(--font-mono);
}
.eyebrow { letter-spacing: 0.16em; }
/* Tabular monospace figures for every metric */
.hero-meta .stat .num,
.stat-big .num,
.scan-foot .pct,
.rec-row .pct,
.score-card .val,
.test-row .t-val,
.test-row .t-note,
.kv-row .v,
.loader-readouts b,
.scan-bar .row b,
.player-id .meta {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}
/* ---------- Hero entrance choreography (plays as the loader hands off) ---------- */
.hero-copy > .eyebrow,
.hero-copy > .lead,
.hero-copy > .hero-disclaimer,
.hero-copy > .hero-actions,
.hero-copy > .hero-standards { opacity: 0; transform: translateY(26px); filter: blur(6px); }
.hero-visual { opacity: 0; transform: translateY(30px) scale(0.97); filter: blur(8px); }
.display .line { display: block; overflow: hidden; padding-bottom: 0.24em; margin-bottom: -0.24em; }
.display .line > span { display: block; transform: translateY(118%); }

.is-loaded .hero-copy > .eyebrow { animation: heroIn 0.85s var(--ease) 0.08s forwards; }
.is-loaded .display .line:nth-child(1) > span { animation: lineRise 0.95s var(--ease) 0.22s forwards; }
.is-loaded .display .line:nth-child(2) > span { animation: lineRise 0.95s var(--ease) 0.34s forwards; }
.is-loaded .hero-copy > .lead { animation: heroIn 0.85s var(--ease) 0.5s forwards; }
.is-loaded .hero-copy > .hero-disclaimer { animation: heroIn 0.85s var(--ease) 0.58s forwards; }
.is-loaded .hero-copy > .hero-actions { animation: heroIn 0.85s var(--ease) 0.62s forwards; }
.is-loaded .hero-copy > .hero-standards { animation: heroIn 0.85s var(--ease) 0.74s forwards; }
.is-loaded .hero-visual { animation: heroIn 1s var(--ease) 0.3s forwards; }

/* Tactile click ripple on buttons */
.btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  transform: scale(0);
  pointer-events: none;
  animation: ripple 0.6s var(--ease) forwards;
}
.btn-ghost .ripple,
.btn-outline .ripple { background: rgba(34, 211, 238, 0.35); }

/* ---------- Section transitions ("moving between parts") ---------- */

/* Directional reveal variants — share the .reveal IO trigger + .is-visible reset */
.reveal-l { transform: translateX(-46px) scale(0.985); }
.reveal-r { transform: translateX(46px) scale(0.985); }
.reveal-scale { transform: scale(0.88); }

/* Section top divider + light sweep on entry */
.section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(92%, 1180px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong) 25%, var(--line-strong) 75%, transparent);
  opacity: 0.7;
}
/* Right-edge section navigator */
.section-dots {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 900;
  display: none;
  flex-direction: column;
  gap: 13px;
  align-items: flex-end;
}
@media (min-width: 1120px) { .section-dots { display: flex; } }
.section-dots a {
  position: relative;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  background: transparent;
  transition: transform 0.35s var(--ease), translate 0.25s var(--ease-out), border-color 0.35s, background 0.35s, box-shadow 0.35s;
}
.section-dots a::after {
  content: attr(data-label);
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-soft);
  background: var(--surface-solid);
  border: 1px solid var(--line);
  padding: 5px 11px;
  border-radius: 9px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.section-dots a:hover { border-color: var(--cyan); transform: scale(1.2); }
.section-dots a:hover::after { opacity: 1; transform: translateY(-50%) translateX(0); }
.section-dots a.active {
  background: var(--brand);
  border-color: transparent;
  transform: scale(1.25);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.14), 0 0 16px rgba(34, 211, 238, 0.55);
}

/* Hero scroll cue */
.scroll-cue { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 1; display: none; width: 24px; height: 26px; }
@media (min-width: 1000px) { .scroll-cue { display: block; } }
.scroll-cue::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 2px;
  width: 16px;
  height: 16px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  animation: bounceCue 1.8s var(--ease-in-out) infinite;
}
.scroll-cue:hover::after { border-color: var(--cyan); }

/* Scroll-linked parallax + divider sweep (progressive enhancement, motion-safe) */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .hero-media .photo-wrap img,
    .media-band > img,
    .cta.cta-photo > img {
      animation: parallaxRise linear both;
      animation-timeline: view();
      animation-range: cover 0% cover 100%;
      will-change: transform;
    }
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; filter: none; }
  .hero-copy > *, .hero-visual, .display .line > span { opacity: 1 !important; transform: none !important; filter: none !important; }
  body::before { animation: none !important; transform: none !important; }
  .neural-net { display: none; }
}

/* ---------- Photography ---------- */
img[data-photo] { opacity: 0; transition: opacity 0.8s var(--ease); background: linear-gradient(135deg, #0c1722, #0a1410); }
img[data-photo].loaded { opacity: 1; }
img[data-photo].failed { opacity: 1; }

/* Hero photo + floating data card */
.hero-media { position: relative; }
.hero-media .photo-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3.1;
  background: linear-gradient(135deg, #0c1722, #0a1410);
}
.hero-media .photo-wrap img { width: 100%; height: 100%; object-fit: cover; }
.hero-media .photo-wrap::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5, 8, 13, 0.08) 35%, rgba(5, 8, 13, 0.72));
}
.hero-media .scan-card { position: relative; z-index: 2; width: 92%; margin: -78px auto 0; }

/* Full-width image band with overlay */
.media-band {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  min-height: 340px;
  display: grid;
  align-items: center;
  background: linear-gradient(135deg, #0c1722, #0a1410);
}
.media-band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.media-band::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, rgba(5, 8, 13, 0.92) 0%, rgba(5, 8, 13, 0.72) 42%, rgba(5, 8, 13, 0.35) 100%);
}
.media-band .band-inner { position: relative; z-index: 2; padding: clamp(32px, 5vw, 60px); max-width: 640px; }
.media-band .band-inner h2 { margin-block: 14px 14px; }

/* Photo as section accent (rounded, framed) */
.photo-frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); aspect-ratio: 4 / 3; background: linear-gradient(135deg, #0c1722, #0a1410); }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.photo-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(5, 8, 13, 0.4)); }

/* CTA with photo background */
.cta.cta-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; opacity: 0.5; }
.cta.cta-photo::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(70% 110% at 50% 0%, rgba(5, 8, 13, 0.55), rgba(5, 8, 13, 0.9));
}
.cta.cta-photo > * { position: relative; z-index: 2; }

/* ---------- Login modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  display: grid; place-items: center; padding: 22px;
  background: rgba(3, 6, 11, 0.74);
  backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s var(--ease);
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  position: relative;
  width: 100%; max-width: 470px; max-height: 92vh; overflow-y: auto;
  background: var(--surface-solid);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: clamp(26px, 4vw, 38px);
  transform: translateY(18px) scale(0.985);
  transition: transform 0.4s var(--ease);
}
.modal-overlay.open .modal { transform: none; }

/* Report modal — full athlete details popup */
.report-modal { max-width: 1080px; width: 100%; padding: clamp(20px, 3vw, 34px); }
.report-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; padding-right: 42px; }
.report-head .pic { width: 54px; height: 54px; border-radius: 16px; background: var(--brand); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: #04130c; flex: none; }
.report-head h3 { font-size: 1.35rem; }
.report-head .meta { color: var(--muted); font-family: var(--font-mono); font-size: 0.78rem; display: flex; flex-wrap: wrap; gap: 4px 11px; margin-top: 5px; }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--text-soft);
  transition: all 0.25s;
}
.modal-close:hover { border-color: var(--cyan); color: #fff; transform: rotate(90deg); }
.modal h2 { font-size: 1.7rem; margin-bottom: 6px; }
.modal > p.sub { color: var(--muted); margin-bottom: 24px; }

/* ---------- Scrollspy active nav ---------- */
.nav-links a.active { color: #fff; }
.nav-links a::after {
  content: ""; position: absolute; left: 15px; right: 15px; bottom: 2px; height: 2px;
  border-radius: 2px; background: var(--brand);
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform 0.32s var(--ease);
}
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

/* ---------- Print (Download report → Save as PDF) ---------- */
@media print {
  body { background: #fff; color: #0b121c; font-size: 12px; }
  body::before, body::after { display: none !important; }
  .nav, .mobile-menu, .footer, .notice, [data-print], .dash-actions, .hero-orb { display: none !important; }
  .dash { padding-top: 0; }
  .reveal { opacity: 1 !important; transform: none !important; filter: none !important; }
  .glow-border::after, .pitch::before, .hero::after, .scroll-progress, .particle, .card::before, .loader,
  .section-dots, .scroll-cue, .section::before, .section::after, .neural-net, .track-canvas, .track-grid { display: none !important; }
  .card .ic-box, .cta::before { animation: none !important; }
  .panel, .card, .module, .rec-card { border-color: #d3dae2; background: #fff; box-shadow: none; break-inside: avoid; }
  .player-id h1, .panel h3, .score-card .val, .stat-big .num, .gradient-text { color: #0b121c !important; -webkit-text-fill-color: #0b121c; }
  .radar-svg .label { fill: #5c6b7e; }
  @page { margin: 14mm; }
}

/* ===================== Sub-pages (Certify · I-Sport Research) ===================== */
.subnav { position: sticky; top: 0; z-index: 100; background: rgba(5, 8, 13, 0.82); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.subnav-inner { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h, 68px); }
.subnav .brand { font-size: 1.16rem; }

.subhero { padding: clamp(46px, 8vw, 96px) 0 clamp(26px, 4vw, 46px); position: relative; }
.subhero-title { font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -0.03em; line-height: 1.06; margin: 16px 0; }
.subhero-lead { font-size: 1.08rem; line-height: 1.65; color: var(--text-soft); max-width: 62ch; }
.subhero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.subhero-pills { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.subhero-pill { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 0.86rem; color: var(--text-soft); }
.subhero-pill b { color: var(--cyan); font-family: var(--font-display); }

.cert-levels { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 880px) { .cert-levels { grid-template-columns: repeat(3, 1fr); align-items: start; } }
.level-card { position: relative; padding: 30px 26px; border-radius: var(--radius-lg, 22px); border: 1px solid var(--line); background: var(--surface); transition: border-color 0.3s, transform 0.3s; }
.level-card:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.level-card.featured { border-color: color-mix(in srgb, var(--cyan) 45%, var(--line)); background: var(--surface-2); box-shadow: var(--glow-cyan, 0 0 40px rgba(46, 160, 255, 0.12)); }
.level-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.level-no { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--cyan); }
.level-badge { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--text-soft); }
.level-badge.l2 { color: var(--cyan); border-color: color-mix(in srgb, var(--cyan) 50%, var(--line)); }
.level-card h3 { font-size: 1.32rem; margin-bottom: 6px; }
.level-for { font-size: 0.86rem; color: var(--muted); margin-bottom: 18px; }
.level-list { display: grid; gap: 10px; }
.level-list li { position: relative; padding-left: 26px; font-size: 0.92rem; color: var(--text-soft); line-height: 1.5; }
.level-list li::before { content: ""; position: absolute; left: 0; top: 4px; width: 17px; height: 17px; border-radius: 50%; background: radial-gradient(circle, rgba(46, 160, 255, 0.22), transparent 70%); }
.level-list li::after { content: ""; position: absolute; left: 5.5px; top: 7px; width: 5px; height: 9px; border-right: 2px solid var(--cyan); border-bottom: 2px solid var(--cyan); transform: rotate(40deg); }
.level-meta { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 0.78rem; color: var(--muted); font-family: var(--font-mono); }

.earn-section { background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.015), transparent); }
.earn-flow { display: grid; gap: 26px 16px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .earn-flow { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 920px) { .earn-flow { grid-template-columns: repeat(4, 1fr); } }
.earn-step { text-align: center; padding: 0 8px; }
.earn-ic { width: 60px; height: 60px; margin: 0 auto 16px; display: grid; place-items: center; border-radius: 16px; border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--cyan); }
.earn-ic svg { width: 28px; height: 28px; }
.earn-step h4 { font-size: 1.1rem; margin-bottom: 6px; }
.earn-step p { font-size: 0.88rem; color: var(--muted); max-width: 24ch; margin: 0 auto; }
.earn-note { margin-top: 34px; text-align: center; font-size: 0.8rem; color: var(--muted); max-width: 70ch; margin-inline: auto; }

.cert-form-wrap { display: grid; gap: 34px; grid-template-columns: 1fr; max-width: 1000px; margin-inline: auto; }
@media (min-width: 940px) { .cert-form-wrap { grid-template-columns: 0.82fr 1.18fr; align-items: start; gap: 50px; } }
.cert-assure { display: grid; gap: 12px; margin-top: 24px; }
.cert-assure li { display: flex; align-items: center; gap: 10px; font-size: 0.92rem; color: var(--text-soft); }
.cert-assure svg { width: 18px; height: 18px; color: var(--cyan); flex: none; }
.cert-form { padding: clamp(22px, 3vw, 32px); border-radius: var(--radius-lg, 22px); border: 1px solid var(--line); background: var(--surface); }
.cert-privacy { margin-top: 16px; font-size: 0.78rem; color: var(--muted); text-align: center; }
.cert-success-modal { text-align: center; max-width: 440px; }
.cert-success-icon { width: 70px; height: 70px; margin: 4px auto 18px; display: grid; place-items: center; border-radius: 50%; background: rgba(46,160,255,0.12); border: 1px solid color-mix(in srgb, var(--cyan) 40%, var(--line)); color: var(--cyan); animation: certPop 0.55s var(--ease) both; }
.cert-success-icon svg { width: 34px; height: 34px; }
.cert-success-modal h2 { font-size: 1.5rem; margin-bottom: 8px; }
.cert-success-modal .sub { color: var(--text-soft); margin-bottom: 22px; }
@keyframes certPop { 0% { transform: scale(0.6); opacity: 0; } 60% { transform: scale(1.1); } 100% { transform: scale(1); opacity: 1; } }

/* ===================== AI Assistant chatbot ===================== */
.cbot-launch { position: fixed; right: 22px; bottom: 22px; z-index: 2500; width: 62px; height: 62px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--cyan) 45%, var(--line)); background: radial-gradient(circle at 50% 32%, #102843, #0a1019); color: var(--cyan); display: grid; place-items: center; cursor: pointer; box-shadow: 0 12px 30px -8px rgba(0,0,0,0.7), 0 0 22px rgba(46,160,255,0.22); transition: transform 0.3s var(--ease), box-shadow 0.3s, opacity 0.3s; }
.cbot-launch:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 16px 38px -8px rgba(0,0,0,0.8), 0 0 34px rgba(46,160,255,0.42); }
.cbot-launch.hidden { transform: scale(0); opacity: 0; pointer-events: none; }
.cbot-skeleton { width: 30px; height: 40px; position: relative; z-index: 2; filter: drop-shadow(0 0 4px rgba(46,160,255,0.5)); }
.cbot-arm { transform-origin: 24px 24px; animation: cbotWave 1.9s ease-in-out infinite; }
@keyframes cbotWave { 0%, 100% { transform: rotate(0deg); } 25% { transform: rotate(-30deg); } 50% { transform: rotate(-8deg); } 75% { transform: rotate(-24deg); } }
.cbot-pulse { position: absolute; inset: -1px; border-radius: 50%; border: 1.5px solid var(--cyan); animation: cbotPulse 2.6s ease-out infinite; pointer-events: none; }
@keyframes cbotPulse { 0% { transform: scale(1); opacity: 0.55; } 100% { transform: scale(1.5); opacity: 0; } }
.cbot-badge { position: absolute; right: -1px; top: -1px; width: 23px; height: 23px; border-radius: 50%; background: var(--cyan); color: #05080d; display: grid; place-items: center; z-index: 3; box-shadow: 0 2px 8px rgba(0,0,0,0.5); }
.cbot-badge svg { width: 13px; height: 13px; }

.cbot-panel { position: fixed; right: 22px; bottom: 22px; z-index: 2600; width: min(384px, calc(100vw - 28px)); height: min(564px, calc(100vh - 96px)); background: var(--surface-solid); border: 1px solid var(--line-strong); border-radius: 18px; box-shadow: 0 28px 64px -16px rgba(0,0,0,0.82); display: flex; flex-direction: column; overflow: hidden; opacity: 0; visibility: hidden; transform: translateY(22px) scale(0.97); transform-origin: bottom right; transition: opacity 0.32s var(--ease), transform 0.32s var(--ease), visibility 0.32s; }
.cbot-panel.open { opacity: 1; visibility: visible; transform: none; }
.cbot-head { display: flex; align-items: center; justify-content: space-between; padding: 13px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); flex: none; }
.cbot-head-id { display: flex; align-items: center; gap: 10px; }
.cbot-avatar { width: 40px; height: 40px; border-radius: 50%; background: radial-gradient(circle at 50% 32%, #102843, #0a1019); border: 1px solid color-mix(in srgb, var(--cyan) 40%, var(--line)); display: grid; place-items: center; color: var(--cyan); flex: none; }
.cbot-avatar svg { width: 21px; height: 28px; }
.cbot-head-id b { display: block; font-size: 0.95rem; color: #fff; }
.cbot-status { font-size: 0.72rem; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.cbot-dot { width: 7px; height: 7px; border-radius: 50%; background: #3ddc84; display: inline-block; box-shadow: 0 0 6px #3ddc84; }
.cbot-x { color: var(--muted); width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; transition: all 0.2s; }
.cbot-x:hover { color: #fff; background: var(--surface); }
.cbot-gate { padding: 24px 22px; overflow-y: auto; text-align: center; }
.cbot-gate-hero { width: 56px; height: 70px; margin: 0 auto 6px; color: var(--cyan); filter: drop-shadow(0 0 8px rgba(46,160,255,0.4)); }
.cbot-gate h3 { font-size: 1.18rem; margin-bottom: 6px; }
.cbot-gate p { font-size: 0.86rem; color: var(--text-soft); line-height: 1.5; margin-bottom: 18px; }
.cbot-field { margin-bottom: 10px; }
.cbot-field input { width: 100%; padding: 12px 14px; border-radius: 11px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text); font-size: 0.92rem; transition: border-color 0.25s, box-shadow 0.25s; }
.cbot-field input::placeholder { color: var(--muted-2); }
.cbot-field input:focus { outline: none; border-color: var(--cyan); box-shadow: var(--ring); }
.cbot-gate .btn { margin-top: 6px; }
.cbot-gate-msg { font-size: 0.8rem; margin-top: 10px; min-height: 1em; }
.cbot-gate-msg.err { color: var(--red); }
.cbot-chat { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.cbot-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.cbot-msg { max-width: 84%; padding: 10px 13px; border-radius: 14px; font-size: 0.9rem; line-height: 1.5; overflow-wrap: anywhere; animation: cbotMsgIn 0.3s var(--ease); }
@keyframes cbotMsgIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.cbot-msg.bot { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--line); border-bottom-left-radius: 4px; color: var(--text); }
.cbot-msg.bot a { color: var(--cyan); font-weight: 600; }
.cbot-msg.user { align-self: flex-end; background: linear-gradient(120deg, #7fe6ff, #2e8dff); color: #05080d; font-weight: 500; border-bottom-right-radius: 4px; }
.cbot-typing { display: flex; gap: 4px; align-items: center; }
.cbot-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: cbotDot 1.2s infinite; }
.cbot-typing span:nth-child(2) { animation-delay: 0.2s; }
.cbot-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes cbotDot { 0%, 60%, 100% { opacity: 0.3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.cbot-quick { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 14px 8px; }
.cbot-quick button { font-size: 0.76rem; padding: 7px 12px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--cyan) 35%, var(--line)); background: var(--surface); color: var(--cyan); cursor: pointer; transition: background 0.2s, transform 0.2s; }
.cbot-quick button:hover { background: var(--surface-2); transform: translateY(-1px); }
.cbot-inputbar { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--line); flex: none; }
.cbot-inputbar input { flex: 1; padding: 11px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text); font-size: 0.9rem; }
.cbot-inputbar input:focus { outline: none; border-color: var(--cyan); }
.cbot-inputbar button { width: 44px; border-radius: 12px; background: var(--cyan); color: #05080d; display: grid; place-items: center; cursor: pointer; flex: none; transition: background 0.2s; }
.cbot-inputbar button:hover { background: #4fb3ff; }
@media (max-width: 480px) { .cbot-panel { right: 8px; bottom: 8px; width: calc(100vw - 16px); height: calc(100vh - 78px); } .cbot-launch { right: 16px; bottom: 16px; } }
@media (prefers-reduced-motion: reduce) { .cbot-arm, .cbot-pulse { animation: none; } }

.research-disclaimer { padding: 16px 20px; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--surface-2); font-size: 0.88rem; line-height: 1.6; color: var(--text-soft); max-width: 880px; margin: 0 auto 36px; }
.research-disclaimer strong { color: var(--text); }
.research-list { display: grid; gap: 22px; grid-template-columns: 1fr; max-width: 980px; margin-inline: auto; }
@media (min-width: 760px) { .research-list { grid-template-columns: repeat(2, 1fr); } }
.research-card { padding: 28px 26px; border-radius: var(--radius-lg, 22px); border: 1px solid var(--line); background: var(--surface); transition: border-color 0.3s, transform 0.3s; }
.research-card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.research-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.research-badge { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--cyan); flex: none; }
.research-badge svg { width: 26px; height: 26px; }
.research-tag { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--muted); white-space: nowrap; }
.research-tag.primary { color: var(--cyan); border-color: color-mix(in srgb, var(--cyan) 45%, var(--line)); }
.cite-name { font-size: 1.3rem; margin-bottom: 4px; }
.research-theme { font-size: 0.92rem; color: var(--cyan); font-weight: 600; margin-bottom: 14px; }
.research-desc { font-size: 0.92rem; color: var(--text-soft); line-height: 1.65; margin-bottom: 14px; }
.research-link { font-size: 0.9rem; color: var(--muted); line-height: 1.6; }
.research-link-label { color: var(--text-soft); font-weight: 600; }
.research-cta { text-align: center; margin-top: 48px; padding: 42px 24px; border-radius: var(--radius-lg, 22px); border: 1px solid var(--line); background: var(--surface); }
.research-cta h3 { font-size: 1.4rem; margin-bottom: 8px; }
.research-cta p { color: var(--text-soft); margin-bottom: 22px; }

.subfooter { border-top: 1px solid var(--line); padding: 30px 0; margin-top: 40px; }
.subfooter-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.subfooter-inner p { font-size: 0.84rem; color: var(--muted); }
.subfooter-inner a { color: var(--text-soft); }
.subfooter-inner a:hover { color: var(--cyan); }

/* Certification CTA band on the main page */
.nav-accent { color: var(--cyan) !important; font-weight: 600; }
.certify-band { position: relative; overflow: hidden; padding: clamp(32px, 5vw, 58px); border-radius: var(--radius-lg, 22px); border: 1px solid color-mix(in srgb, var(--cyan) 30%, var(--line)); background: radial-gradient(120% 150% at 0% 0%, rgba(46, 160, 255, 0.10), transparent 55%), var(--surface-2); text-align: center; }
.certify-band .section-title { margin: 16px auto; max-width: 20ch; }
.certify-band .lead { max-width: 62ch; margin-inline: auto; color: var(--text-soft); }
.certify-band-pills { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 24px; }
.certify-band .hero-actions { justify-content: center; }

/* ===================== The Playbook (floating book + immersive flip-book) ===================== */
.playbook-wrap { display: grid; gap: 40px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 940px) { .playbook-wrap { grid-template-columns: 1.02fr 0.98fr; gap: 24px; } }
.playbook-copy { min-width: 0; }
.playbook-hint { margin-top: 14px; font-size: 0.8rem; color: var(--muted); }
.playbook-stage { display: grid; place-items: center; perspective: 1500px; min-height: 360px; }

.float-book { position: relative; background: none; border: 0; padding: 0; cursor: pointer; }
.fb-3d { position: relative; display: block; width: 232px; height: 320px; transform: rotateY(-24deg) rotateX(4deg); animation: bookFloat 6.5s ease-in-out infinite; transition: transform 0.6s var(--ease); transform-style: preserve-3d; }
.float-book:hover .fb-3d { transform: rotateY(-12deg) rotateX(2deg) translateY(-8px); animation-play-state: paused; }
@keyframes bookFloat { 0%, 100% { transform: rotateY(-24deg) rotateX(4deg) translateY(0); } 50% { transform: rotateY(-28deg) rotateX(4deg) translateY(-14px); } }
.fb-cover-face { position: absolute; inset: 0; border-radius: 5px 13px 13px 5px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 28px 22px; overflow: hidden;
  background: linear-gradient(155deg, #0f1d31 0%, #0a1019 62%);
  border: 1px solid rgba(46, 160, 255, 0.30);
  box-shadow: 3px 0 0 #cfd8e2, 6px 0 0 #b7c2cd, 9px 0 0 #cfd8e2, 12px 0 0 #b7c2cd, 15px 0 0 #d4dce5, 36px 40px 72px -18px rgba(0,0,0,0.85), inset 0 0 46px rgba(46,160,255,0.07); }
.fb-side, .fb-pages { display: none; }
.fb-cover-glow { position: absolute; top: -45%; left: -30%; width: 165%; height: 85%; background: radial-gradient(circle, rgba(46,160,255,0.22), transparent 62%); pointer-events: none; }
.fb-cover-logo { position: relative; width: 60px; height: auto; margin-bottom: 14px; filter: drop-shadow(0 0 10px rgba(46,160,255,0.45)); }
.fb-cover-kicker { position: relative; font-family: var(--font-mono); font-size: 0.56rem; letter-spacing: 0.34em; color: var(--cyan); }
.fb-cover-title { position: relative; font-family: var(--font-display); font-weight: 700; font-size: 1.32rem; line-height: 1.06; letter-spacing: 0.02em; color: #fff; text-align: center; margin-top: 12px; }
.fb-cover-line { position: relative; width: 38px; height: 2px; background: var(--cyan); margin: 14px 0; }
.fb-cover-sub { position: relative; font-size: 0.64rem; color: var(--text-soft); text-align: center; line-height: 1.55; }
.float-book-cta { display: block; text-align: center; margin-top: 30px; font-size: 0.82rem; color: var(--cyan); font-weight: 600; }

/* Book modal */
.book-overlay { z-index: 3000; padding: 16px; }
.book-x { position: fixed; top: 16px; right: 18px; z-index: 3010; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(11,18,28,0.82); backdrop-filter: blur(8px); color: var(--text-soft); display: grid; place-items: center; transition: all 0.3s; }
.book-x:hover { border-color: var(--cyan); color: #fff; transform: rotate(90deg); }
.flipbook { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.fb-book { position: relative; width: min(92vw, 470px); height: min(74vh, 650px); perspective: 2200px; }
.fb-page { position: absolute; inset: 0; transform-origin: left center; transform: rotateY(0deg); transition: transform 0.9s cubic-bezier(0.42,0.04,0.22,1); backface-visibility: hidden; border-radius: 4px 12px 12px 4px; overflow: hidden;
  background: linear-gradient(160deg, #0d1825 0%, #0a1018 100%);
  border: 1px solid var(--line-strong);
  box-shadow: inset 16px 0 28px -18px rgba(0,0,0,0.75), 0 30px 64px -26px rgba(0,0,0,0.8); }
.fb-page.flipped { transform: rotateY(-179deg); }
.fb-pg-body { position: relative; height: 100%; overflow-y: auto; padding: clamp(24px, 4vw, 38px); display: flex; flex-direction: column; gap: 14px; }
.fb-pg-body.fb-center { justify-content: center; text-align: center; }
.fb-pg-no { position: absolute; top: 16px; right: 18px; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.18em; color: var(--muted-2); z-index: 2; }
.fb-h { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.3rem, 4vw, 1.7rem); line-height: 1.15; color: #fff; margin: 0; }
.fb-lead { font-size: 0.98rem; line-height: 1.62; color: var(--text-soft); margin: 0; }
.fb-lead strong { color: #fff; } .fb-lead em { color: var(--cyan); font-style: normal; }
.fb-cue { font-size: 0.92rem; color: var(--cyan); font-style: italic; margin: 6px 0 0; }
.fb-note { font-size: 0.82rem; color: var(--muted); line-height: 1.5; margin: 0; }

/* Cover page */
.fb-cover { background: radial-gradient(120% 90% at 50% 0%, #102843, #0a1019 60%) !important; }
.fb-cover-inner { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 30px; gap: 14px; }
.fb-pg-logo { width: min(74%, 230px); height: auto; filter: drop-shadow(0 0 24px rgba(46,160,255,0.25)); }
.fb-cover-inner h1, .fb-cover-inner .fb-cover-h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.4rem, 5vw, 2rem); letter-spacing: 0.04em; color: #fff; margin: 6px 0 0; }
.fb-cover-tag { font-size: 0.96rem; color: var(--text-soft); margin: 0; }
.fb-cover-foot { margin-top: 18px; font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--cyan); }

/* Radar */
.fb-radar-wrap { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.fb-radar { width: min(64%, 220px); height: auto; }
.fb-radar-data { fill: rgba(46,160,255,0.22); stroke: var(--cyan); stroke-width: 2; }
.fb-radar-legend { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px 10px; padding: 0; margin: 0; width: 100%; }
.fb-radar-legend li { font-size: 0.7rem; color: var(--text-soft); text-align: center; padding: 5px 4px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }

/* Benefits */
.fb-benefits { list-style: none; display: grid; gap: 14px; padding: 0; margin: 4px 0 0; }
.fb-benefits li { display: flex; gap: 13px; }
.fb-benefits svg { width: 26px; height: 26px; flex: none; color: var(--cyan); margin-top: 2px; }
.fb-benefits b { display: block; font-family: var(--font-display); font-size: 1.02rem; color: #fff; }
.fb-benefits span { font-size: 0.88rem; color: var(--muted); line-height: 1.5; }

/* Research quotes */
.fb-quote { position: relative; margin: 0; padding: 14px 16px 14px 20px; border-left: 2px solid var(--cyan); background: var(--surface); border-radius: 0 10px 10px 0; font-size: 1rem; color: #eaf1f8; font-style: italic; line-height: 1.45; }
.fb-quote cite { display: block; margin-top: 8px; font-style: normal; font-size: 0.74rem; color: var(--muted); }
.fb-fine { font-size: 0.72rem; color: var(--muted-2); line-height: 1.5; margin: 4px 0 0; }

/* Standards */
.fb-standards { list-style: none; display: grid; grid-template-columns: 1fr; gap: 8px; padding: 0; margin: 6px 0 0; }
.fb-standards li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: 0.9rem; color: var(--text); }
.fb-standards li span { font-family: var(--font-mono); font-size: 0.68rem; color: var(--cyan); }

/* Tests + skeletons */
.fb-test { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.fb-test:last-child { border-bottom: 0; }
.fb-sk { width: 84px; height: 112px; flex: none; color: var(--cyan); filter: drop-shadow(0 0 8px rgba(46,160,255,0.3)); }
.fb-test-txt b { display: block; font-family: var(--font-display); font-size: 1.05rem; color: #fff; margin-bottom: 4px; }
.fb-test-txt span { font-size: 0.88rem; color: var(--muted); line-height: 1.5; }

/* CTA / pricing page */
.fb-price-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 6px 0; }
.fb-price { padding: 14px 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.fb-price b { display: block; font-family: var(--font-display); font-size: 1.15rem; color: var(--cyan); }
.fb-price span { display: block; font-size: 0.64rem; color: var(--muted); margin: 2px 0 6px; }
.fb-price i { font-style: normal; font-size: 0.66rem; color: var(--text-soft); }
.fb-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 8px; }

/* Flip nav */
.fb-nav { display: flex; align-items: center; gap: 18px; }
.fb-nav button { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--text-soft); display: grid; place-items: center; transition: all 0.25s; }
.fb-nav button:hover:not(:disabled) { border-color: var(--cyan); color: #fff; transform: scale(1.08); }
.fb-nav button:disabled { opacity: 0.32; cursor: default; }
.fb-count { font-family: var(--font-mono); font-size: 0.84rem; color: var(--text-soft); min-width: 56px; text-align: center; }
.fb-count b { color: var(--cyan); } .fb-count i { color: var(--muted-2); font-style: normal; margin: 0 4px; }

@media (prefers-reduced-motion: reduce) {
  .fb-3d { animation: none; }
  .fb-page { transition: opacity 0.3s; }
}

/* Page-curl shadow that sweeps across the leaf as it turns */
.fb-page::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; z-index: 6;
  background: linear-gradient(to right, rgba(0,0,0,0.6), rgba(0,0,0,0.2) 16%, transparent 46%); }
.fb-page.turning-fwd::after { animation: fbCurlFwd 0.9s ease both; }
.fb-page.turning-back::after { animation: fbCurlBack 0.9s ease both; }
@keyframes fbCurlFwd { 0% { opacity: 0; } 30% { opacity: 0.92; } 52% { opacity: 0.4; } 100% { opacity: 0; } }
@keyframes fbCurlBack { 0% { opacity: 0; } 50% { opacity: 0.4; } 76% { opacity: 0.92; } 100% { opacity: 0; } }

/* Page-turn sound toggle */
.book-sound { position: fixed; top: 16px; right: 70px; z-index: 3010; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(11,18,28,0.82); backdrop-filter: blur(8px); color: var(--text-soft); display: grid; place-items: center; transition: border-color 0.3s, color 0.3s; }
.book-sound:hover { border-color: var(--cyan); color: #fff; }
.book-sound .snd-off { display: none; }
.book-sound.muted { color: var(--muted); }
.book-sound.muted .snd-on { display: none; }
.book-sound.muted .snd-off { display: block; }

/* ===================== Compact capability flip cards ===================== */
.cap-hint { text-align: center; font-size: 0.82rem; color: var(--muted); margin: -30px 0 28px; }
.cap-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .cap-grid { grid-template-columns: repeat(4, 1fr); } }
.flip-card { perspective: 1200px; height: 200px; cursor: pointer; }
.flip-card:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: var(--radius); }
.flip-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform 0.7s cubic-bezier(0.4,0.1,0.2,1); }
.flip-card:hover .flip-inner, .flip-card.flipped .flip-inner { transform: rotateY(180deg); }
.flip-front, .flip-back { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: var(--radius); border: 1px solid var(--line); padding: 18px; display: flex; flex-direction: column; overflow: hidden; }
.flip-front { background: var(--sheen), var(--surface); transition: border-color 0.4s; }
.flip-card:hover .flip-front, .flip-card.flipped .flip-front { border-color: rgba(34, 211, 238, 0.32); }
.flip-card:hover .flip-ic { transform: scale(1.08) rotate(-4deg); }
.flip-back { transform: rotateY(180deg); background: var(--sheen), var(--surface-2); border-color: rgba(46, 160, 255, 0.28); }
.flip-no { position: absolute; top: 13px; right: 15px; font-family: var(--font-display); font-weight: 700; font-size: 0.78rem; color: var(--muted-2); }
.flip-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); border: 1px solid var(--line); color: var(--cyan); transition: transform 0.4s var(--ease); }
.flip-ic svg { width: 22px; height: 22px; }
.flip-front h3 { font-size: 1rem; line-height: 1.22; margin: auto 0 4px; color: var(--text); }
.flip-hint { font-size: 0.7rem; color: var(--cyan); font-weight: 600; }
.flip-back h4 { font-size: 0.92rem; color: #fff; margin: 0 0 7px; line-height: 1.2; }
.flip-back p { font-size: 0.8rem; color: var(--text-soft); line-height: 1.45; margin: 0 0 9px; }
.flip-back ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 5px; }
.flip-back li { position: relative; padding-left: 15px; font-size: 0.76rem; color: var(--muted); line-height: 1.35; }
.flip-back li::before { content: ""; position: absolute; left: 0; top: 6px; width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); }
@media (prefers-reduced-motion: reduce) { .flip-inner { transition: none; } }

/* ===================== Open-book (2-page spread) ===================== */
.obook { perspective: 2600px; width: min(94vw, 820px, 120vh); margin: 0 auto; cursor: grab; touch-action: pan-y; }
.obook:active { cursor: grabbing; }
/* Mobile single-page mode */
.obook.is-single { width: min(92vw, 440px); }
.obook.is-single .obook-spread { aspect-ratio: 3 / 4; }
.obook.is-single .obook-left { display: none; }
.obook.is-single .obook-right { width: 100%; border-radius: 9px; border-left: 1px solid var(--line-strong); box-shadow: inset 14px 0 26px -20px rgba(0,0,0,0.55); }
.obook.is-single .obook-gutter { display: none; }
.obook-leaf.is-single { left: 0; width: 100%; transform-origin: left center; }
.obook-leaf.is-single.is-next.flipping { transform: rotateY(-180deg); }
.obook-leaf.is-single.is-prev.flipping { transform: rotateY(180deg); }
.obook-leaf.is-single .leaf-front, .obook-leaf.is-single .leaf-back { border-radius: 9px; }
.obook-spread { position: relative; display: flex; width: 100%; aspect-ratio: 2 / 1.32; transform-style: preserve-3d; }
@media (max-width: 620px) { .obook-spread { aspect-ratio: 2 / 1.5; } }
.bk-pg { position: relative; width: 50%; height: 100%; overflow: hidden; background: linear-gradient(160deg, #0d1825, #0a1018); border: 1px solid var(--line-strong); }
.obook-left { border-radius: 9px 0 0 9px; border-right: none; box-shadow: inset -24px 0 32px -24px rgba(0,0,0,0.8); }
.obook-right { border-radius: 0 9px 9px 0; border-left: none; box-shadow: inset 24px 0 32px -24px rgba(0,0,0,0.8); }
.bk-pg.is-blank { background: linear-gradient(160deg, #0a1018, #070c12); }
.obook-gutter { position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; transform: translateX(-1.5px); background: linear-gradient(180deg, transparent, rgba(0,0,0,0.55) 50%, transparent); z-index: 4; pointer-events: none; }
/* the turning leaf */
.obook-leaf { position: absolute; top: 0; height: 100%; width: 50%; transform-style: preserve-3d; transition: transform 0.85s cubic-bezier(0.42,0.04,0.22,1); opacity: 0; visibility: hidden; z-index: 6; }
.obook-leaf.is-next { left: 50%; transform-origin: left center; transform: rotateY(0deg); opacity: 1; visibility: visible; }
.obook-leaf.is-next.flipping { transform: rotateY(-180deg); }
.obook-leaf.is-prev { left: 0; transform-origin: right center; transform: rotateY(0deg); opacity: 1; visibility: visible; }
.obook-leaf.is-prev.flipping { transform: rotateY(180deg); }
.leaf-face { position: absolute; inset: 0; width: 100%; height: 100%; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.leaf-front { transform: rotateY(0deg); }
.leaf-back { transform: rotateY(180deg); }
.obook-leaf.is-next .leaf-front { border-radius: 0 9px 9px 0; box-shadow: inset 24px 0 32px -24px rgba(0,0,0,0.8); }
.obook-leaf.is-next .leaf-back { border-radius: 9px 0 0 9px; box-shadow: inset -24px 0 32px -24px rgba(0,0,0,0.8); }
.obook-leaf.is-prev .leaf-front { border-radius: 9px 0 0 9px; box-shadow: inset -24px 0 32px -24px rgba(0,0,0,0.8); }
.obook-leaf.is-prev .leaf-back { border-radius: 0 9px 9px 0; box-shadow: inset 24px 0 32px -24px rgba(0,0,0,0.8); }
/* sweeping page-curl shadow on the turning leaf */
.leaf-face::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.85s ease; }
.obook-leaf.is-next .leaf-front::after { background: linear-gradient(90deg, rgba(0,0,0,0.55), transparent 55%); }
.obook-leaf.is-prev .leaf-front::after { background: linear-gradient(270deg, rgba(0,0,0,0.55), transparent 55%); }
.obook-leaf.flipping .leaf-front::after { opacity: 0.75; }
/* cover full-bleed bg */
.fb-cover-bg { position: absolute; inset: 0; background: radial-gradient(120% 92% at 50% 0%, #102843, #0a1019 62%); }

/* New book content */
.fb-minitest { display: flex; align-items: center; gap: 13px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.fb-minitest:last-child { border-bottom: 0; }
.fb-minitest svg { width: 26px; height: 26px; flex: none; color: var(--cyan); }
.fb-minitest b { display: block; font-family: var(--font-display); font-size: 0.98rem; color: #fff; }
.fb-minitest span { font-size: 0.82rem; color: var(--muted); line-height: 1.4; }
.fb-battery { list-style: none; padding: 0; margin: 10px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; }
.fb-battery li { position: relative; padding-left: 19px; font-size: 0.82rem; color: var(--text-soft); line-height: 1.32; }
.fb-battery li::before { content: ""; position: absolute; left: 2px; top: 5px; width: 5px; height: 9px; border-right: 2px solid var(--cyan); border-bottom: 2px solid var(--cyan); transform: rotate(40deg); }
.fb-email { display: inline-flex; align-items: center; gap: 9px; margin-top: 18px; padding: 11px 20px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--text); font-weight: 600; font-size: 0.9rem; transition: border-color 0.3s, color 0.3s; }
.fb-email:hover { border-color: var(--cyan); color: #fff; }
.fb-email svg { width: 18px; height: 18px; color: var(--cyan); }
/* Teaser video page (canvas) */
.fb-video-wrap { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 13px; overflow: hidden; border: 1px solid var(--line-strong); background: #05080d; box-shadow: 0 14px 34px -14px rgba(0,0,0,0.75); }
.fb-video-src { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.fb-video-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 1; }
.fb-video-mute { position: absolute; bottom: 10px; right: 10px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.22); background: rgba(5,8,13,0.6); backdrop-filter: blur(5px); color: #fff; display: grid; place-items: center; transition: border-color 0.25s; }
.fb-video-mute:hover { border-color: var(--cyan); }
.fb-video-mute .vm-sound { display: none; }
.fb-video-mute:not(.muted) .vm-sound { display: block; }
.fb-video-mute:not(.muted) .vm-muted { display: none; }
@media (prefers-reduced-motion: reduce) { .obook-leaf { transition: none; } }

/* ===================== Thunder around the floating book ===================== */
.book-bolts { position: absolute; inset: -40px -30px; pointer-events: none; z-index: 0; }
.book-bolts .bolt { position: absolute; color: #bfe6ff; opacity: 0; filter: drop-shadow(0 0 6px rgba(46,160,255,0.9)) drop-shadow(0 0 14px rgba(120,210,255,0.6)); }
.book-bolts .b1 { top: 2%; left: -6%; width: 30px; animation: boltFlash 5.5s steps(1) infinite; }
.book-bolts .b2 { top: 36%; right: -10%; width: 38px; animation: boltFlash 5.5s steps(1) infinite 1.7s; }
.book-bolts .b3 { bottom: 6%; left: 4%; width: 26px; animation: boltFlash 5.5s steps(1) infinite 3.3s; }
.book-bolts .b4 { top: 60%; left: -9%; width: 22px; animation: boltFlash 5.5s steps(1) infinite 4.4s; }
@keyframes boltFlash { 0%, 100% { opacity: 0; } 1% { opacity: 1; } 3% { opacity: 0.25; } 5% { opacity: 0.95; } 8% { opacity: 0; } 9% { opacity: 0.7; } 11% { opacity: 0; } }
.float-book .fb-3d { position: relative; z-index: 1; }
.book-aura { position: absolute; inset: -14%; border-radius: 50%; z-index: 0; pointer-events: none; background: radial-gradient(closest-side, rgba(46,160,255,0.16), transparent 72%); animation: auraPulse 5.5s ease-in-out infinite; }
@keyframes auraPulse { 0%, 100% { opacity: 0.5; transform: scale(0.96); } 50% { opacity: 0.9; transform: scale(1.04); } }
@media (prefers-reduced-motion: reduce) { .book-bolts .bolt, .book-aura { animation: none; } .book-bolts .bolt { opacity: 0; } }
