/* ═══════════════════════════════════════════
   PuntrrAnalytics — landing page
   ═══════════════════════════════════════════ */

:root {
  --primary: #e63946;
  --primary-bright: #ff6b6b;
  --primary-glow: rgba(230, 57, 70, 0.2);
  --bg: #ffffff;
  --bg-2: #f8f9fa;
  --bg-3: #f0f2f5;
  --surface: rgba(0, 0, 0, 0.02);
  --border: rgba(0, 0, 0, 0.08);
  --text: #1a1a2e;
  --muted: #64748b;
  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: initial; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

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


::selection { background: var(--primary); color: #fff; }
::placeholder { color: var(--muted); }

a { color: inherit; text-decoration: none; }
em { font-style: normal; }
.accent { color: var(--primary-bright); }

/* ── Preloader ─────────────────────────── */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.preloader__inner { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.preloader__logo { width: 52px; height: auto; animation: loaderPulse 1.2s ease-in-out infinite; }
@keyframes loaderPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.94); }
}
.preloader__count {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.25em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* ── Buttons ───────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 0 rgba(230, 57, 70, 0);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--primary-glow);
}
.btn--ghost {
  border-color: var(--border);
  color: var(--text);
  background: transparent;
}
.btn--ghost:hover {
  border-color: rgba(255, 107, 107, 0.6);
  transform: translateY(-2px);
}
.btn--lg { padding: 16px 32px; font-size: 15px; }

/* ── Nav ───────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 4vw, 56px);
  transition: background 0.4s ease, border-color 0.4s ease, padding 0.4s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
  padding-top: 12px;
  padding-bottom: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.nav__brand { display: flex; align-items: center; gap: 10px; }
.nav__logo { height: 30px; width: auto; }
.nav__wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.nav__wordmark em { color: var(--primary-bright); }
.nav__links { display: flex; gap: 32px; }
.nav__links a {
  font-size: 14px;
  color: var(--muted);
  transition: color 0.25s ease;
  position: relative;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; height: 1px;
  background: var(--primary-bright);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ── Section shared ────────────────────── */
.section-tag {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--primary-bright);
  margin-bottom: 20px;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

/* line reveal helper */
.line { display: block; overflow: hidden; }
.line__inner { display: block; transform: translateY(115%); }

/* ── Hero ──────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 45%, transparent 30%, var(--bg) 100%),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.5), transparent 30%, transparent 70%, var(--bg) 100%);
  pointer-events: none;
}
.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 20px;
  max-width: 1100px;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 18px;
  margin-bottom: 36px;
  opacity: 0;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
}
.pulse-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--primary-bright);
  box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(255, 107, 107, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 107, 107, 0); }
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.2rem, 10vw, 8.5rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin-bottom: 32px;
  text-wrap: balance;
}
.hero__title .accent { text-shadow: 0 0 60px var(--primary-glow); }
.hero__sub {
  max-width: 620px;
  margin: 0 auto 40px;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  opacity: 0;
}
.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
}

/* ── Ticker ────────────────────────────── */
.ticker {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  padding: 18px 0;
  background: var(--bg-2);
}
.ticker__track { display: flex; width: max-content; }
.ticker__group {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.ticker__group i { color: var(--primary); font-style: normal; font-size: 10px; }

/* ── Statement ─────────────────────────── */
.statement {
  padding: clamp(120px, 18vh, 220px) clamp(20px, 8vw, 120px);
  display: flex;
  justify-content: center;
}
.statement__text {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.6rem, 3.4vw, 3rem);
  line-height: 1.35;
  letter-spacing: -0.01em;
  max-width: 1000px;
  text-align: center;
}
.statement__text .w {
  color: rgba(26, 26, 46, 0.12);
  transition: color 0.3s linear;
}
.statement__text .w.is-lit { color: var(--text); }

/* ── Signal (pinned) ───────────────────── */
.signal { position: relative; }
.signal__pin {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(0, 1.3fr);
  align-items: center;
  gap: clamp(24px, 5vw, 80px);
  padding: 0 clamp(20px, 5vw, 80px);
  max-width: 1500px;
  margin: 0 auto;
}
.signal__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}
.signal__word {
  color: var(--primary-bright);
  display: inline-block;
  min-width: 4.2ch;
}
.signal__captions { position: relative; min-height: 120px; }
.signal__caption {
  position: absolute;
  inset: 0 auto auto 0;
  max-width: 420px;
  color: var(--muted);
  font-size: 15.5px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.signal__caption.is-active { opacity: 1; transform: translateY(0); }
.signal__progress {
  margin-top: 28px;
  width: 180px;
  height: 2px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.signal__progress i {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--primary);
}
.signal__stage {
  position: relative;
  aspect-ratio: 3 / 2;
  border: 1px solid var(--border);
  border-radius: 20px;
  background:
    radial-gradient(ellipse at 70% 40%, rgba(230, 57, 70, 0.07), transparent 60%),
    var(--bg-2);
  overflow: hidden;
}
.signal__stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.signal__badge {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 107, 107, 0.35);
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.signal__badge.is-visible { opacity: 1; transform: translateY(0); }
.signal__badge-label {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.signal__badge-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--primary-bright);
}

/* Signal legend for shot map */
.signal__legend {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  font-size: 12px;
}
.signal__legend.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.signal__legend-team {
  display: flex;
  align-items: center;
  gap: 8px;
}
.signal__legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.signal__legend-dot--home {
  background: rgb(59, 130, 246);
}
.signal__legend-dot--away {
  background: rgb(249, 115, 22);
}
.signal__legend-name {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text);
}
.signal__legend-xg {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  margin-left: 4px;
}
.signal__badge-value-away {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: rgb(249, 115, 22);
}
.signal__legend-key {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 11px;
}
.signal__legend-key span {
  display: flex;
  align-items: center;
  gap: 4px;
}
.signal__key-goal {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgb(59, 130, 246);
  border: 2px solid rgb(34, 197, 94);
}
.signal__key-saved {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgb(59, 130, 246);
  border: 1.5px solid rgb(59, 130, 246);
}
.signal__key-other {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.4);
}
.signal__key-size {
  font-style: italic;
  opacity: 0.8;
}

/* ── Features ──────────────────────────── */
.features { padding: clamp(100px, 14vh, 180px) clamp(20px, 5vw, 80px); max-width: 1400px; margin: 0 auto; }
.features__head { margin-bottom: 64px; }
.features__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  padding: 32px 28px;
  overflow: hidden;
  transition: border-color 0.35s ease, background 0.35s ease;
  transform-style: preserve-3d;
  will-change: transform;
  opacity: 0;
  transform: translateY(40px);
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 50%), rgba(230, 57, 70, 0.12), transparent 45%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.card:hover::before { opacity: 1; }
.card:hover { border-color: rgba(255, 107, 107, 0.4); }
.card--wide { grid-column: span 2; }
.card--accent { background: linear-gradient(135deg, rgba(230, 57, 70, 0.14), rgba(230, 57, 70, 0.03)); border-color: rgba(255, 107, 107, 0.3); }
.card__icon {
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(230, 57, 70, 0.15);
  color: var(--primary-bright);
  font-size: 20px;
  margin-bottom: 20px;
}
.card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  margin-bottom: 10px;
}
.card p { color: var(--muted); font-size: 14.5px; }
.card__visual--story {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
}
.story-line {
  height: 8px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.04);
}
.story-line--accent { background: rgba(230, 57, 70, 0.45); }

/* ── Three Ways In ─────────────────────── */
.ways { padding: clamp(100px, 14vh, 180px) clamp(20px, 5vw, 80px); max-width: 1400px; margin: 0 auto; }
.ways__head { text-align: center; margin-bottom: 64px; }
.ways__intro {
  max-width: 600px;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: 16px;
}
.ways__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.way {
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  padding: 40px 32px;
  text-align: center;
  transition: border-color 0.35s ease, transform 0.35s ease, background 0.35s ease;
  opacity: 0;
  transform: translateY(30px);
}
.way:hover {
  border-color: rgba(255, 107, 107, 0.5);
  transform: translateY(-4px);
  background: rgba(230, 57, 70, 0.04);
}
.way__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: rgba(230, 57, 70, 0.12);
}
.way__icon svg {
  width: 32px;
  height: 32px;
  color: var(--primary-bright);
}
.way h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  margin-bottom: 12px;
}
.way p {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 20px;
  line-height: 1.5;
}
.way__link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--primary-bright);
  transition: color 0.25s ease;
}
.way__link:hover { color: var(--text); }

/* ── Explore ───────────────────────────── */
.explore {
  padding: clamp(100px, 14vh, 180px) clamp(20px, 5vw, 80px);
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.explore__content {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}
.explore__desc {
  color: var(--muted);
  font-size: 16px;
  margin: 24px 0 32px;
  line-height: 1.6;
}
.explore__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.explore__list li {
  font-size: 15px;
  color: var(--muted);
  padding-left: 20px;
  position: relative;
}
.explore__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}
.explore__list strong {
  color: var(--text);
  font-weight: 600;
}
.explore__demo {
  opacity: 0;
  transform: translateY(40px);
}

.explorer {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg);
  overflow: hidden;
  box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.12);
}
.explorer__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.02);
}
.explorer__tabs { display: flex; gap: 8px; }
.explorer__tab {
  padding: 8px 16px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  transition: all 0.25s ease;
  cursor: pointer;
}
.explorer__tab.is-active {
  background: var(--primary);
  color: #fff;
}
.explorer__search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid var(--border);
}
.explorer__search svg {
  width: 16px;
  height: 16px;
  color: var(--muted);
}
.explorer__search span {
  font-size: 13px;
  color: var(--muted);
}
.explorer__filters {
  display: flex;
  gap: 8px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.explorer__chip {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  background: rgba(230, 57, 70, 0.15);
  color: var(--primary-bright);
}
.explorer__chip--add {
  background: transparent;
  border: 1px dashed var(--border);
  color: var(--muted);
  cursor: pointer;
}
.explorer__table { padding: 0; }
.explorer__header,
.explorer__row {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 0.8fr 1fr;
  gap: 16px;
  padding: 14px 20px;
  font-size: 13px;
  align-items: center;
}
.explorer__header {
  background: rgba(0, 0, 0, 0.02);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.08em;
}
.explorer__row {
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  transition: background 0.2s ease;
}
.explorer__row:last-child { border-bottom: none; }
.explorer__row:hover { background: rgba(230, 57, 70, 0.05); }
.explorer__player {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 500;
}
.explorer__player i {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-bright));
}
.explorer__stat {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--primary-bright);
}
.explorer__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: rgba(0, 0, 0, 0.02);
  font-size: 12px;
  color: var(--muted);
}
.explorer__export {
  color: var(--primary-bright);
  font-weight: 500;
  cursor: pointer;
}

/* ── Visualize ─────────────────────────── */
.visualize {
  padding: clamp(100px, 14vh, 180px) clamp(20px, 5vw, 80px);
  max-width: 1400px;
  margin: 0 auto;
}
.visualize__head { text-align: center; margin-bottom: 64px; }
.visualize__intro {
  max-width: 550px;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: 16px;
}
.visualize__showcase {
  display: grid;
  /* minmax(0, 1fr) so the charts inside can't force the tracks wider than the page */
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}
.viz-card {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  padding: 24px;
  transition: border-color 0.35s ease, transform 0.35s ease;
  opacity: 0;
  transform: translateY(30px);
}
.viz-card:hover {
  border-color: rgba(255, 107, 107, 0.5);
  transform: translateY(-4px);
}
.viz-card__preview {
  aspect-ratio: 3 / 2;
  min-width: 0;
  min-height: 120px;
  border-radius: 10px;
  background: var(--bg-3);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
/* ApexCharts writes pixel widths onto its own wrapper — keep it inside the card. */
.viz-card__preview > * {
  min-width: 0;
  max-width: 100%;
}
.viz-card__preview--heatmap {
  display: block;
  width: 100%;
  background:
    linear-gradient(90deg, rgba(17, 17, 24, 0.04) 1px, transparent 1px) 0 0 / 16.66% 100%,
    linear-gradient(rgba(17, 17, 24, 0.04) 1px, transparent 1px) 0 0 / 100% 50%,
    linear-gradient(160deg, #e8ebf0 0%, #f3f5f8 55%, #eef1f5 100%);
}
.viz-card__preview--heatmap .heatmap-canvas {
  border-radius: 10px;
}
.pitch-heatmap {
  position: relative;
}
.pitch-heatmap__field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.pitch-heatmap__layer {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.viz-card__preview svg {
  width: 100%;
  height: 100%;
}
.viz-card h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 6px;
}
.viz-card p {
  font-size: 13px;
  color: var(--muted);
}
.visualize__cta {
  text-align: center;
  color: var(--muted);
  font-size: 15px;
}

/* ── Toolkit Demo ──────────────────────── */
.toolkit {
  padding: clamp(100px, 14vh, 180px) clamp(20px, 5vw, 80px);
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}
.toolkit__head {
  text-align: center;
  margin-bottom: 56px;
}
.toolkit__intro {
  max-width: 580px;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: 16px;
}
.toolkit__demo {
  max-width: 800px;
  margin: 0 auto;
}
.toolkit__demo .ask__window {
  opacity: 0;
  transform: translateY(50px);
}

/* ── Personas ──────────────────────────── */
.personas { position: relative; }
.personas__pin {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: 80px 0;
}
.personas__head { padding: 0 clamp(20px, 5vw, 80px); margin-bottom: 56px; }
.personas__track {
  display: flex;
  gap: 24px;
  padding: 0 clamp(20px, 5vw, 80px);
  width: max-content;
  will-change: transform;
}
.persona {
  width: clamp(300px, 34vw, 400px);
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--bg-2);
  padding: 28px 28px 32px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.35s ease, transform 0.35s ease;
}
.persona:hover { border-color: rgba(255, 107, 107, 0.45); transform: translateY(-6px); }
.persona h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.2vw, 1.7rem);
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.persona p { color: var(--muted); font-size: 14px; margin-bottom: 20px; line-height: 1.55; flex-grow: 1; }
.persona__quote {
  font-size: 13px;
  color: var(--muted);
  border-left: 2px solid var(--primary);
  padding-left: 12px;
  font-style: italic;
  margin-top: auto;
}

/* ── Ask demo ──────────────────────────── */
.ask { padding: clamp(100px, 14vh, 180px) clamp(20px, 5vw, 80px); max-width: 1100px; margin: 0 auto; }
.ask__head { text-align: center; margin-bottom: 56px; }
.ask__window {
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--bg-2);
  overflow: hidden;
  box-shadow: 0 40px 120px -40px rgba(230, 57, 70, 0.25);
  opacity: 0;
  transform: translateY(50px);
}
.ask__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.ask__bar i {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.1);
}
.ask__bar span {
  margin-left: 10px;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}
.ask__body { padding: clamp(24px, 4vw, 48px); display: flex; flex-direction: column; gap: 20px; }
.ask__bubble {
  border-radius: 16px;
  padding: 18px 22px;
  font-size: 15px;
  max-width: 85%;
}
.ask__bubble--user {
  align-self: flex-end;
  background: var(--primary);
  color: #fff;
  border-bottom-right-radius: 4px;
  font-family: var(--font-display);
  font-weight: 500;
  min-height: 56px;
}
.ask__caret {
  display: inline-block;
  width: 2px; height: 1em;
  background: #fff;
  vertical-align: text-bottom;
  margin-left: 2px;
  animation: caret 0.8s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }
.ask__bubble--ai {
  align-self: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
  width: 85%;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.ask__bubble--ai.is-visible { opacity: 1; transform: translateY(0); }
.ask__answer-text { margin-bottom: 18px; color: var(--text); }
.ask__chart { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.ask__row { display: grid; grid-template-columns: 110px 1fr 44px; align-items: center; gap: 12px; }
.ask__name { font-size: 13px; color: var(--muted); white-space: nowrap; }
.ask__bartrack {
  height: 10px;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.06);
  overflow: hidden;
}
.ask__bar-fill {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--primary), var(--primary-bright));
  transition: width 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}
.ask__val {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  color: var(--primary-bright);
  text-align: right;
}
.ask__footnote { font-size: 12px; color: var(--muted); }

/* ── Numbers ───────────────────────────── */
.numbers {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}
.numbers__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1400px;
  margin: 0 auto;
}
.number {
  padding: clamp(40px, 6vw, 72px) 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.number + .number { border-left: 1px solid var(--border); }
.number__value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 4rem);
  letter-spacing: -0.02em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.number__label {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── CTA ───────────────────────────────── */
.cta {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 120px 20px;
}
.cta__canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.7; }
.cta__content { position: relative; z-index: 2; text-align: center; max-width: 900px; }
.cta__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.8rem, 7vw, 6rem);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 48px;
}
.cta__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.cta__form {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.cta__form input {
  width: min(360px, 100%);
  padding: 15px 24px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.02);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.cta__form input::placeholder { color: var(--muted); }
.cta__form input:focus {
  border-color: var(--primary-bright);
  box-shadow: 0 0 0 4px rgba(230, 57, 70, 0.18);
}
.cta__note { font-size: 13px; color: var(--muted); }

/* ── Footer ────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px clamp(20px, 5vw, 80px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
}
.footer__brand em { color: var(--primary-bright); }
.footer__logo { height: 24px; width: auto; }
.footer__tag { font-size: 13px; color: var(--muted); letter-spacing: 0.08em; }
.footer__legal { font-size: 12px; color: rgba(138, 147, 173, 0.6); }

/* ── Responsive ────────────────────────── */
@media (max-width: 1024px) {
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .card--wide { grid-column: span 2; }
  .signal__pin { grid-template-columns: 1fr; align-content: center; gap: 40px; padding-top: 100px; padding-bottom: 60px; }
  .signal__captions { min-height: 96px; }
  .numbers__grid { grid-template-columns: repeat(2, 1fr); }
  .number:nth-child(3) { border-left: none; }
  .number:nth-child(n + 3) { border-top: 1px solid var(--border); }
  
  .explore__content { grid-template-columns: 1fr; gap: 48px; }
  .visualize__showcase { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  body { font-size: 15px; }
  
  .nav { padding: 14px 16px; }
  .nav.is-scrolled { padding: 10px 16px; }
  .nav__links { display: none; }
  .nav__logo { height: 26px; }
  .nav__wordmark { font-size: 15px; }
  .nav__cta { padding: 10px 18px; font-size: 13px; }
  
  .hero { min-height: 100svh; padding-top: 80px; }
  .hero__content { padding: 0 16px; }
  .hero__eyebrow { 
    font-size: 11px; 
    padding: 6px 14px; 
    margin-bottom: 24px;
    letter-spacing: 0.12em;
  }
  .hero__title { 
    font-size: clamp(2.6rem, 12vw, 4rem); 
    margin-bottom: 24px;
    letter-spacing: -0.02em;
  }
  .hero__sub { 
    font-size: 15px; 
    margin-bottom: 32px;
    line-height: 1.55;
  }
  .hero__actions { gap: 12px; }
  .hero__actions .btn { width: 100%; max-width: 280px; }
  
  .btn--lg { padding: 14px 28px; font-size: 14px; }
  
  .ticker { padding: 14px 0; }
  .ticker__group { font-size: 12px; gap: 20px; padding-right: 20px; }
  
  .statement { padding: clamp(80px, 14vh, 140px) 20px; }
  .statement__text { font-size: clamp(1.3rem, 5vw, 1.8rem); line-height: 1.45; }
  
  .signal__pin { 
    padding: 80px 20px 60px; 
    gap: 32px;
    min-height: auto;
  }
  .signal__title { font-size: clamp(2rem, 7vw, 2.8rem); margin-bottom: 24px; }
  .signal__captions { min-height: 110px; }
  .signal__caption { font-size: 14px; max-width: 100%; }
  .signal__stage { aspect-ratio: 4 / 3; border-radius: 16px; }
  .signal__badge { 
    top: 12px; 
    right: 12px; 
    padding: 10px 14px; 
    border-radius: 10px;
  }
  .signal__badge-label { font-size: 9px; }
  .signal__badge-value { font-size: 18px; }
  
  .signal__legend {
    bottom: 10px;
    left: 10px;
    right: 10px;
    padding: 10px 12px;
    gap: 8px;
    font-size: 10px;
    flex-direction: column;
    align-items: flex-start;
  }
  .signal__legend-team {
    gap: 6px;
  }
  .signal__legend-dot {
    width: 10px;
    height: 10px;
  }
  .signal__legend-xg {
    font-size: 12px;
  }
  .signal__badge-value-away {
    font-size: 12px;
  }
  .signal__legend-key {
    gap: 8px;
    font-size: 9px;
    flex-wrap: wrap;
  }
  .signal__key-goal,
  .signal__key-saved,
  .signal__key-other {
    width: 8px;
    height: 8px;
  }
  
  .section-tag { font-size: 11px; letter-spacing: 0.25em; margin-bottom: 16px; }
  .section-title { font-size: clamp(1.8rem, 7vw, 2.6rem); }
  
  .features { padding: clamp(70px, 12vh, 120px) 16px; }
  .features__head { margin-bottom: 40px; }
  .features__grid { grid-template-columns: 1fr; gap: 12px; }
  .card--wide { grid-column: span 1; }
  .card { padding: 24px 20px; border-radius: 16px; }
  .card__icon { width: 40px; height: 40px; font-size: 18px; margin-bottom: 16px; border-radius: 10px; }
  .card h3 { font-size: 17px; margin-bottom: 8px; }
  .card p { font-size: 14px; }
  .card__visual--story { margin-top: 20px; gap: 8px; }
  .story-line { height: 6px; }
  
  .personas__pin { padding: 60px 0; min-height: auto; }
  .personas__head { padding: 0 20px; margin-bottom: 32px; }
  .personas__track { 
    padding: 0 20px; 
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .persona { 
    width: 85vw;
    max-width: 300px;
    padding: 24px 22px 28px;
    border-radius: 18px;
    scroll-snap-align: start;
  }
  .persona h3 { font-size: 1.25rem; margin-bottom: 10px; }
  .persona p { font-size: 13px; margin-bottom: 16px; }
  .persona__quote { font-size: 12px; padding-left: 10px; }
  
  .ways { padding: clamp(70px, 12vh, 120px) 16px; }
  .ways__head { margin-bottom: 40px; }
  .ways__intro { font-size: 14px; margin-top: 16px; }
  .ways__grid { grid-template-columns: 1fr; gap: 16px; }
  .way { padding: 28px 24px; border-radius: 20px; }
  .way__icon { width: 52px; height: 52px; margin-bottom: 18px; border-radius: 14px; }
  .way__icon svg { width: 26px; height: 26px; }
  .way h3 { font-size: 20px; margin-bottom: 10px; }
  .way p { font-size: 14px; margin-bottom: 16px; }
  .way__link { font-size: 13px; }
  
  .explore { padding: clamp(70px, 12vh, 120px) 16px; }
  .explore__content { gap: 32px; }
  .explore__desc { font-size: 14px; margin: 18px 0 24px; }
  .explore__list { gap: 12px; }
  .explore__list li { font-size: 14px; }
  .explorer { border-radius: 14px; }
  .explorer__bar { padding: 12px 14px; flex-direction: column; gap: 12px; align-items: stretch; }
  .explorer__tabs { justify-content: center; }
  .explorer__tab { padding: 6px 12px; font-size: 12px; }
  .explorer__search { justify-content: center; }
  .explorer__filters { padding: 12px 14px; gap: 6px; }
  .explorer__chip { padding: 5px 10px; font-size: 11px; }
  .explorer__header { display: none; }
  .explorer__row { 
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 14px;
  }
  .explorer__row span:nth-child(2) { display: none; }
  .explorer__player { font-size: 13px; }
  .explorer__player i { width: 24px; height: 24px; }
  .explorer__stat { font-size: 13px; }
  .explorer__footer { padding: 12px 14px; font-size: 11px; }
  
  .visualize { padding: clamp(70px, 12vh, 120px) 16px; }
  .visualize__head { margin-bottom: 40px; }
  .visualize__intro { font-size: 14px; margin-top: 16px; }
  .visualize__showcase { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .viz-card { padding: 16px; border-radius: 14px; }
  /* A fixed height instead of aspect-ratio + min-height: the latter is transferred
     back into a 180px minimum width, which widened the whole page. */
  .viz-card__preview {
    aspect-ratio: auto;
    height: 120px;
    min-height: 0;
    margin-bottom: 14px;
    border-radius: 8px;
  }
  .viz-card h4 { font-size: 14px; margin-bottom: 4px; }
  .viz-card p { font-size: 11px; }
  .visualize__cta { font-size: 13px; }
  
  .toolkit { padding: clamp(70px, 12vh, 120px) 16px; }
  .toolkit__head { margin-bottom: 36px; }
  .toolkit__intro { font-size: 14px; margin-top: 16px; }
  
  .ask { padding: clamp(70px, 12vh, 120px) 16px; }
  .ask__head { margin-bottom: 36px; }
  .ask__window { border-radius: 16px; }
  .ask__bar { padding: 12px 14px; gap: 6px; }
  .ask__bar i { width: 8px; height: 8px; }
  .ask__bar span { font-size: 11px; margin-left: 8px; }
  .ask__body { padding: 20px 16px; gap: 16px; }
  .ask__bubble { padding: 14px 16px; font-size: 14px; border-radius: 14px; }
  .ask__bubble--user { min-height: 48px; }
  .ask__row { grid-template-columns: 80px 1fr 36px; gap: 8px; }
  .ask__name { font-size: 12px; }
  .ask__bartrack { height: 8px; }
  .ask__val { font-size: 12px; }
  .ask__answer-text { font-size: 14px; margin-bottom: 14px; }
  .ask__footnote { font-size: 11px; }
  .ask__bubble { max-width: 100%; width: 100%; }
  
  .numbers__grid { grid-template-columns: repeat(2, 1fr); }
  .number { padding: clamp(28px, 5vw, 48px) 16px; }
  .number + .number { border-left: 1px solid var(--border); }
  .number:nth-child(odd) { border-left: none; }
  .number:nth-child(n + 3) { border-top: 1px solid var(--border); }
  .number__value { font-size: clamp(1.8rem, 8vw, 2.6rem); }
  .number__label { font-size: 11px; letter-spacing: 0.08em; }
  
  .cta { min-height: 80vh; padding: 80px 20px; }
  .cta__title { font-size: clamp(2rem, 8vw, 3.2rem); margin-bottom: 36px; }
  .cta__actions { flex-direction: column; align-items: center; gap: 12px; }
  .cta__actions .btn { width: 100%; max-width: 300px; }
  .cta__form { flex-direction: column; align-items: center; gap: 12px; }
  .cta__form input { 
    width: 100%; 
    max-width: 340px; 
    padding: 14px 20px; 
    font-size: 15px; 
  }
  .cta__form .btn { width: 100%; max-width: 340px; }
  .cta__note { font-size: 12px; }
  
  .footer { 
    flex-direction: column; 
    text-align: center; 
    padding: 36px 20px; 
    gap: 16px; 
  }
  .footer__brand { font-size: 15px; }
  .footer__logo { height: 22px; }
  .footer__tag { font-size: 12px; }
  .footer__legal { font-size: 11px; }
}

@media (max-width: 400px) {
  .hero__title { font-size: 2.4rem; }
  .hero__eyebrow { font-size: 10px; padding: 5px 12px; }
  .persona { width: 90vw; }
  .numbers__grid { grid-template-columns: 1fr; }
  .number + .number { border-left: none; border-top: 1px solid var(--border); }
}

/* ── Reduced motion ────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  body::after { animation: none; }
}
