/* The front door, `GET /` (app/home.py, templates/home.html).
 *
 * Floodlit at full volume — the palette, the type, the buttons and the pitch of
 * fanmoot.com's own landing page (`_landing.css` in the fanmoot repo), so this
 * reads as the same product rather than a developer page bolted onto it.
 * Always dark, like that page and for the same reason: a matchday under the
 * lights is the brand, and this is a marketing moment rather than a reading one.
 *
 * Self-contained: it does not load oauth.css. Lato is self-hosted from
 * /static/fonts (the CSP allows `font-src 'self'` and nothing else), as
 * fanmoot.com does, so no visitor's address reaches a font CDN.
 *
 * No inline styles anywhere — the CSP forbids them — so per-item animation
 * delays are classes (`.r1`…, `.s1`…) rather than `style="--i:3"`.
 *
 * Motion is decorative, every piece of it, and all of it stops under
 * `prefers-reduced-motion`, where the page renders in its final state.
 */

@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/static/fonts/lato-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/static/fonts/lato-700.woff2') format('woff2');
}

@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('/static/fonts/lato-900.woff2') format('woff2');
}

:root {
  --bg: #070a0f;
  --bg-2: #0a0e14;
  --surface: #121821;
  --surface-2: #151b23;
  --ink: #f7f9fc;
  --soft: #b7c3d1;
  --muted: #9aa6b4;
  --faint: #6c7888;
  --line: rgb(255 255 255 / 0.09);
  --line-2: rgb(255 255 255 / 0.16);
  --blue: #0444c8;
  --blue-deep: #032f8c;
  --accent: #4d80ff;
  --accent-2: #6f9bff;
  --lime: #4fbf57;
  --green: #409e46;
  --amber: #f2a73b;
  --red: #d93a3a;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body.home {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.home a {
  color: inherit;
}

.home code,
.home pre {
  font-family: var(--mono);
}

.home :focus-visible {
  outline: 3px solid #9cc0ff;
  outline-offset: 3px;
  border-radius: 6px;
}

/* ── Top bar, over the hero ──────────────────────────────────────────────── */
.top {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 18px clamp(16px, 4vw, 48px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff !important;
}

.brand img {
  display: block;
}

.brand__word {
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}

.brand__word span {
  color: var(--accent-2);
}

.brand__tag {
  padding: 3px 9px;
  border-radius: 999px;
  background: rgb(79 191 87 / 0.14);
  box-shadow: inset 0 0 0 1px rgb(79 191 87 / 0.45);
  color: #8ff09a;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.top__nav {
  display: flex;
  gap: 20px;
  font-weight: 700;
  font-size: 0.92rem;
}

.top__nav a {
  color: rgb(255 255 255 / 0.72) !important;
  text-decoration: none;
  transition: color 0.15s;
}

.top__nav a:hover {
  color: #fff !important;
}

.top__end {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

.top__link {
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
}

/* ── Buttons, as fanmoot.com draws them ──────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 1.02rem;
  text-decoration: none;
  color: #fff !important;
  background: linear-gradient(135deg, #2b6bff 0%, #0444c8 55%, #032f8c 100%);
  box-shadow: 0 12px 32px -10px rgb(43 107 255 / 0.75), inset 0 1px 0 rgb(255 255 255 / 0.25);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -10px rgb(43 107 255 / 0.9), inset 0 1px 0 rgb(255 255 255 / 0.3);
}

.btn span {
  transition: transform 0.18s ease;
}

.btn:hover span {
  transform: translateX(3px);
}

.btn--sm {
  padding: 9px 18px;
  font-size: 0.9rem;
}

.btn--ghost {
  background: rgb(255 255 255 / 0.06);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.2);
}

.btn--ghost:hover {
  background: rgb(255 255 255 / 0.11);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.35);
}

.btn--green {
  background: linear-gradient(135deg, #6ade73, #409e46 60%, #2d7a33);
  box-shadow: 0 12px 32px -10px rgb(79 191 87 / 0.7), inset 0 1px 0 rgb(255 255 255 / 0.3);
}

.btn--green:hover {
  box-shadow: 0 18px 40px -10px rgb(79 191 87 / 0.85), inset 0 1px 0 rgb(255 255 255 / 0.35);
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 132px clamp(16px, 4vw, 48px) 88px;
  background:
    radial-gradient(110% 80% at 85% 0%, #0f2560 0%, rgb(7 10 15 / 0) 58%),
    radial-gradient(90% 70% at 0% 100%, #0d2c16 0%, rgb(7 10 15 / 0) 60%),
    var(--bg);
}

.glow {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}

.glow--a {
  width: 560px;
  height: 560px;
  right: -140px;
  top: -180px;
  background: #1f5cff;
  opacity: 0.5;
  animation: breathe 9s ease-in-out infinite;
}

.glow--b {
  width: 440px;
  height: 440px;
  left: -180px;
  bottom: -220px;
  background: #2f9e3a;
  opacity: 0.32;
  animation: breathe 11s ease-in-out -4s infinite;
}

/* Floodlight beams: two soft cones from the top corners, swaying a degree or
 * two, the way light moves through rain over a ground at night. */
.beam {
  position: absolute;
  z-index: -1;
  top: -120px;
  width: 340px;
  height: 130%;
  pointer-events: none;
  background: linear-gradient(180deg, rgb(200 220 255 / 0.13), rgb(200 220 255 / 0) 70%);
  clip-path: polygon(44% 0, 56% 0, 100% 100%, 0 100%);
  filter: blur(6px);
  transform-origin: 50% 0;
  opacity: 0;
  animation: beam-on 1.6s ease-out 0.2s forwards, sway 14s ease-in-out 1.8s infinite;
}

.beam--l {
  left: 4%;
  --tilt: -24deg;
  transform: rotate(var(--tilt));
}

.beam--r {
  right: 4%;
  --tilt: 24deg;
  transform: rotate(var(--tilt));
  animation-delay: 0.45s, 2s;
}

.pitch {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  opacity: 0.07;
  pointer-events: none;
}

/* The markings are drawn on, once: every shape has pathLength="1", so one
 * dash the length of the whole line, offset by that length, is "not drawn". */
.pitch * {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 2.6s var(--ease) 0.3s forwards;
}

.pitch circle {
  animation-delay: 0.9s;
}

.hero__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(24px, 5vw, 80px);
  align-items: center;
}

.hero__copy {
  min-width: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 24px;
  padding: 7px 15px 7px 12px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.06);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.13);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #d6e4ff;
}

.dot {
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  animation: pulse 1.8s infinite;
}

.title {
  margin: 0;
  font-weight: 900;
  font-size: clamp(2.7rem, 6.4vw, 5.2rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.title span {
  display: block;
  margin-top: 0.06em;
  padding-bottom: 0.08em;
  background: linear-gradient(95deg, #fff 0%, #a8c6ff 30%, #62d56c 60%, #a8c6ff 80%, #fff 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sheen 8s ease-in-out 1.5s infinite;
}

.sub {
  margin: 24px 0 30px;
  max-width: 34rem;
  font-size: clamp(1.05rem, 1.5vw, 1.18rem);
  line-height: 1.6;
  color: var(--soft);
}

.endpoint {
  position: relative;
  display: flex;
  align-items: stretch;
  max-width: 34rem;
  border-radius: 16px;
  background: rgb(18 24 33 / 0.8);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.14), 0 24px 50px -24px rgb(0 0 0 / 0.8);
  overflow: hidden;
}

/* A slow glint across the URL box: the one thing on the page to copy. */
.endpoint::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgb(255 255 255 / 0.08) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: glint 6s ease-in-out 2.5s infinite;
  pointer-events: none;
}

.endpoint__label {
  display: flex;
  align-items: center;
  padding: 0 16px;
  background: rgb(43 107 255 / 0.16);
  box-shadow: inset -1px 0 0 rgb(255 255 255 / 0.1);
  color: #a8c6ff;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.endpoint__url {
  flex: 1 1 auto;
  min-width: 0;
  padding: 16px;
  overflow-x: auto;
  white-space: nowrap;
  font-size: 0.98rem;
  font-weight: 700;
  color: #fff;
  /* One tap selects the lot: no script, so no copy button. */
  user-select: all;
  -webkit-user-select: all;
}

.endpoint__hint {
  margin: 12px 4px 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.ctas--center {
  justify-content: center;
}

.stats {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  margin: 42px 0 0;
  padding: 0;
}

.stats strong {
  display: block;
  font-weight: 900;
  font-size: 2.1rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}

.stats span {
  display: block;
  margin-top: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Hero copy arrives in order. */
.rise {
  animation: rise 0.9s var(--ease) both;
}

.r1 { animation-delay: 0.1s; }
.r2 { animation-delay: 0.22s; }
.r3 { animation-delay: 0.36s; }
.r4 { animation-delay: 0.5s; }
.r5 { animation-delay: 0.64s; }
.r6 { animation-delay: 0.78s; }

/* ── The assistant ───────────────────────────────────────────────────────── */
.stage {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 28px 0 34px;
  min-width: 0;
  animation: rise 1s var(--ease) 0.4s both;
}

.device {
  position: relative;
  width: min(420px, 100%);
  border-radius: 28px;
  padding: 10px;
  background: linear-gradient(150deg, #39414f 0%, #151a22 38%, #0a0d13 100%);
  box-shadow:
    0 0 0 1.5px rgb(255 255 255 / 0.16),
    0 50px 90px -24px rgb(0 0 0 / 0.85),
    0 0 140px -30px rgb(43 107 255 / 0.6);
  animation: bob 7s ease-in-out 1.4s infinite;
}

.device__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 12px;
}

.device__lights {
  display: flex;
  gap: 5px;
}

.device__lights i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.18);
}

.device__title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
}

.device__conn {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgb(79 191 87 / 0.14);
  box-shadow: inset 0 0 0 1px rgb(79 191 87 / 0.4);
  color: #8ff09a;
  font-size: 0.7rem;
  font-weight: 900;
}

.device__conn i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  animation: pulse 1.6s infinite;
}

/* Pinned to the bottom: a step growing in pushes the rest up and out. */
.chat {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 430px;
  padding: 4px 12px 12px;
  border-radius: 20px 20px 8px 8px;
  background: #0b0f14;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.05);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 44px);
  mask-image: linear-gradient(180deg, transparent, #000 44px);
}

.step {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  padding-top: 8px;
  overflow: hidden;
  animation: step-in 0.6s var(--ease) both;
}

.s1 { animation-delay: 1.1s; }
.s2 { animation-delay: 1.8s; }
.s3 { animation-delay: 2.3s; }
.s4 { animation-delay: 3.7s; }
.s5 { animation-delay: 4.8s; }
.s6 { animation-delay: 5.5s; }
.s7 { animation-delay: 6s; }
.s8 { animation-delay: 7.1s; }
.s9 { animation-delay: 8.3s; }
.s10 { animation-delay: 9s; }
.s11 { animation-delay: 9.7s; }

.msg {
  max-width: 86%;
  margin: 0;
  padding: 9px 13px;
  border-radius: 16px;
  font-size: 0.86rem;
  line-height: 1.42;
}

.msg--fan {
  align-self: flex-end;
  background: #f7f9fc;
  color: #0b0f14;
  border-bottom-right-radius: 4px;
}

.msg--ai {
  align-self: flex-start;
  background: linear-gradient(135deg, #2b6bff, #0444c8);
  color: #fff;
  border-bottom-left-radius: 4px;
}

.msg--typing {
  display: inline-flex;
  gap: 4px;
  padding: 12px 14px;
}

.msg--typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  opacity: 0.4;
  animation: typing 1.2s ease-in-out infinite;
}

.msg--typing i:nth-child(2) { animation-delay: 0.15s; }
.msg--typing i:nth-child(3) { animation-delay: 0.3s; }

.tcall {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 0 2px;
  font-size: 0.74rem;
  color: var(--muted);
}

.tcall code {
  padding: 3px 8px;
  border-radius: 6px;
  background: rgb(43 107 255 / 0.14);
  box-shadow: inset 0 0 0 1px rgb(77 128 255 / 0.3);
  color: #cfe0ff;
}

.tcall__bolt {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: conic-gradient(var(--accent) 0 70%, rgb(77 128 255 / 0.15) 0);
  animation: spin 0.9s linear 3;
}

.tcall__lock {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--amber);
  color: #1c1204;
  font-size: 0.66rem;
  font-weight: 900;
}

/* The scoreboard card, as `ui://fanmoot/scoreboard` draws it. */
.mini-score {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 11px 12px;
  border-radius: 16px;
  background: linear-gradient(120deg, rgb(79 191 87 / 0.2), rgb(43 107 255 / 0.16));
  box-shadow: inset 0 0 0 1px rgb(79 191 87 / 0.38);
}

.mini-score__min {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.68rem;
  font-weight: 900;
  color: var(--lime);
  font-variant-numeric: tabular-nums;
}

.mini-score__min i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  animation: pulse 1.6s infinite;
}

.mini-score__team {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 900;
}

.mini-score__away {
  justify-content: flex-end;
}

.mini-score__score {
  display: inline-flex;
  align-items: center;
  font-weight: 900;
  font-size: 1.4rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.mini-score__score i {
  font-style: normal;
  opacity: 0.45;
  margin: 0 0.12em;
}

/* One-all, then the goal goes in: the home digit rolls from 1 to 2. */
.roll {
  display: inline-flex;
  flex-direction: column;
  height: 1em;
  overflow: hidden;
}

.roll span {
  display: block;
  height: 1em;
  animation: roll 0.5s var(--ease) 3.1s both;
}

.goal {
  position: absolute;
  left: 50%;
  top: -9px;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--lime);
  color: #06210a;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transform: translateX(-50%);
  opacity: 0;
  animation: goal 1.8s var(--ease) 3.1s both;
}

.crest {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex: none;
  border-radius: 50%;
  color: #fff;
  font-size: 0.56rem;
  font-weight: 900;
}

.crest--ars {
  background: #ef0107;
}

.crest--tot {
  background: #132257;
  box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / 0.5);
}

/* The mood card, as `ui://fanmoot/mood` draws it. */
.mini-mood {
  padding: 11px 12px;
  border-radius: 16px;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.07);
}

.mini-mood__bar {
  display: flex;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgb(255 255 255 / 0.06);
}

.mini-mood__bar i {
  transform-origin: 0 50%;
}

.mini-mood__bar .pos { width: 62%; background: var(--lime); }
.mini-mood__bar .neg { width: 23%; background: var(--red); }
.mini-mood__bar .neu { width: 15%; background: #6b7684; }

.step .mini-mood__bar i {
  animation: grow 0.9s var(--ease) 6.3s both;
}

.step .mini-mood__bar .neg { animation-delay: 6.55s; }
.step .mini-mood__bar .neu { animation-delay: 6.75s; }

.mini-mood__key {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: 8px;
  font-size: 0.7rem;
}

.mini-mood__key .pos { color: #8ff09a; }
.mini-mood__key .neg { color: #ff9a9a; }
.mini-mood__key .neu { color: var(--muted); }

.device__input {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 8px 8px 8px 16px;
  border-radius: 999px;
  background: #0b0f14;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.09);
  font-size: 0.8rem;
  color: #7d8a9b;
}

.mic {
  position: relative;
  margin-left: auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2b6bff, #0444c8);
}

.mic::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgb(77 128 255 / 0.6);
  animation: ring 2.4s ease-out infinite;
}

.mic::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 13px;
  margin: -8px 0 0 -4px;
  border-radius: 4px;
  background: #fff;
}

/* Chips around the device. */
.float {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  border-radius: 14px;
  background: rgb(18 24 33 / 0.84);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.13), 0 20px 44px -14px rgb(0 0 0 / 0.75);
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
  animation: pop 0.7s var(--ease) both, bob 6s ease-in-out infinite;
}

.float__icon {
  font-size: 1rem;
}

.float--a {
  left: calc(50% - 250px);
  top: -6px;
  animation-delay: 1.6s, -1s;
}

.float--b {
  right: calc(50% - 250px);
  top: -6px;
  animation-delay: 2s, -3s;
}

.float--c {
  left: 50%;
  bottom: -14px;
  margin-left: -86px;
  animation-delay: 2.4s, -4.5s;
}

/* ── Ticker: what fans say, and the tool that answers ────────────────────── */
.ticker {
  position: relative;
  overflow: hidden;
  padding: 16px 0;
  background: var(--bg-2);
  border-block: 1px solid rgb(255 255 255 / 0.07);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.ticker__track {
  display: flex;
  width: max-content;
  animation: marquee 60s linear infinite;
}

.ticker:hover .ticker__track {
  animation-play-state: paused;
}

.tick {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-right: 48px;
  white-space: nowrap;
}

.tick__ask {
  font-weight: 900;
  font-size: 0.98rem;
  color: #dbe4ef;
}

.tick__arrow {
  color: var(--faint);
}

.tick code {
  padding: 2px 9px;
  border-radius: 6px;
  background: rgb(79 191 87 / 0.14);
  color: #8ff09a;
  font-size: 0.8rem;
}

/* ── Sections ────────────────────────────────────────────────────────────── */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(64px, 8vw, 110px) clamp(16px, 4vw, 48px) 0;
  scroll-margin-top: 8px;
}

.kicker {
  margin: 0 0 12px;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lime);
}

.h2 {
  margin: 0;
  font-weight: 900;
  font-size: clamp(2rem, 4.4vw, 3.3rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.h2__muted {
  color: var(--faint);
}

.lede {
  max-width: 44rem;
  margin: 18px 0 8px;
  color: #a9b5c4;
  font-size: 1.05rem;
  line-height: 1.6;
}

.group {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 44px 0 16px;
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.group--first {
  margin-top: 0;
}

.chip {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.chip--lime {
  background: rgb(79 191 87 / 0.14);
  color: #8ff09a;
}

.chip--amber {
  background: rgb(242 167 59 / 0.14);
  color: #ffc774;
}

.chip--blue {
  background: rgb(43 107 255 / 0.16);
  color: #a8c6ff;
}

/* ── Cards ───────────────────────────────────────────────────────────────── */
.cards {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cards--tools {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cards--views {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  padding: 18px;
  background: linear-gradient(180deg, #121821, #0c1118);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* A spot of floodlight that fades in from the card's top edge on hover. */
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 60% at 50% 0%, rgb(43 107 255 / 0.18), transparent 70%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.14), 0 30px 60px -30px rgb(43 107 255 / 0.45);
}

.card:hover::before {
  opacity: 1;
}

.tool {
  display: flex;
  gap: 14px;
}

.tool__icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: linear-gradient(135deg, rgb(43 107 255 / 0.28), rgb(4 68 200 / 0.12));
  box-shadow: inset 0 0 0 1px rgb(77 128 255 / 0.35);
  color: #a8c6ff;
  transition: transform 0.3s var(--ease);
}

.tool--fan .tool__icon {
  background: linear-gradient(135deg, rgb(242 167 59 / 0.26), rgb(242 167 59 / 0.08));
  box-shadow: inset 0 0 0 1px rgb(242 167 59 / 0.35);
  color: #ffc774;
}

.card:hover .tool__icon {
  transform: rotate(-8deg) scale(1.08);
}

.tool__icon svg {
  width: 22px;
  height: 22px;
}

.tool__text {
  position: relative;
  min-width: 0;
}

.tool__title {
  position: relative;
  margin: 0;
  font-weight: 900;
  font-size: 1.02rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.tool__summary {
  position: relative;
  margin: 5px 0 10px;
  color: #a9b5c4;
  font-size: 0.9rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tool__name,
.tool__scope {
  position: relative;
  color: #7d8a9b;
  font-size: 0.76rem;
  overflow-wrap: anywhere;
}

.tool__scope {
  padding: 1px 7px;
  border-radius: 6px;
  background: rgb(242 167 59 / 0.14);
  color: #ffc774;
}

/* View cards, each with a small drawing of what it renders. */
.view {
  display: flex;
  flex-direction: column;
}

.view .tool__name {
  margin-top: auto;
}

.view__demo {
  position: relative;
  display: grid;
  place-items: center;
  height: 118px;
  margin-bottom: 16px;
  border-radius: 16px;
  background: radial-gradient(90% 90% at 50% 0%, #14203a, #0b0f14 70%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.06);
}

.vd-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.vd-score strong {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
}

.vd-score strong i {
  font-style: normal;
  opacity: 0.4;
  margin: 0 0.08em;
}

.vd-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--lime);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.vd-live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  animation: pulse 1.6s infinite;
}

.vd-teams {
  display: flex;
  gap: 38px;
}

.vd-thread {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 80%;
}

.vd-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.vd-line--reply {
  margin-left: 16px;
}

.vd-line b {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.12);
}

.av {
  width: 18px;
  height: 18px;
  border-radius: 50%;
}

.av--a { background: #ef0107; }
.av--b { background: #034694; }

.vd-compose {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 4px 4px 10px;
  border-radius: 999px;
  background: #151b23;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.09);
  color: #7d8a9b;
  font-size: 0.64rem;
}

.vd-compose em {
  padding: 3px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2b6bff, #0444c8);
  color: #fff;
  font-style: normal;
  font-weight: 900;
}

.vd-fix {
  display: flex;
  flex-direction: column;
  gap: 7px;
  width: 78%;
}

.vd-fix span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--muted);
}

.vd-fix b {
  width: 28px;
  color: var(--lime);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.vd-fix i {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.12);
}

.vd-mood {
  width: 78%;
}

.vd-mood__n {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}

.vd-mood__n b {
  font-size: 1.2rem;
  font-weight: 900;
}

.vd-mood__n b:nth-child(1) { color: var(--lime); }
.vd-mood__n b:nth-child(2) { color: #ff8a8a; }
.vd-mood__n b:nth-child(3) { color: var(--muted); }

/* ── Connect ─────────────────────────────────────────────────────────────── */
.clients {
  display: grid;
  gap: 12px;
  max-width: 56rem;
  margin-top: 34px;
}

.client {
  border-radius: 18px;
  background: linear-gradient(180deg, #121821, #0c1118);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.07);
  transition: box-shadow 0.2s ease;
}

.client[open] {
  box-shadow: inset 0 0 0 1px rgb(77 128 255 / 0.4), 0 24px 50px -30px rgb(43 107 255 / 0.5);
}

.client summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 18px;
  font-weight: 900;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
}

.client summary::-webkit-details-marker {
  display: none;
}

.client summary::after {
  content: '';
  margin-left: auto;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.25s var(--ease);
}

.client[open] summary::after {
  transform: rotate(225deg) translate(-2px, -2px);
}

.client__n {
  color: var(--accent-2);
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 700;
}

.client > p,
.client > pre {
  margin: 0 20px 18px;
  animation: rise 0.4s var(--ease) both;
}

.client > p {
  color: #a9b5c4;
  font-size: 0.95rem;
}

.client p code {
  color: #cfe0ff;
  font-size: 0.88em;
}

.client pre {
  padding: 16px 18px;
  border-radius: 12px;
  background: #05080c;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.06);
  color: #d6e4ff;
  overflow-x: auto;
  line-height: 1.55;
  font-size: 0.86rem;
}

/* ── Developers ──────────────────────────────────────────────────────────── */
.dev {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
  margin-top: 40px;
}

.panel {
  margin: 0;
  padding: 0;
  list-style: none;
  border-radius: 18px;
  background: linear-gradient(180deg, #121821, #0c1118);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.07);
}

.panel li {
  padding: 14px 18px;
}

.panel li + li {
  border-top: 1px solid var(--line);
}

.links li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.links a {
  min-width: 0;
  overflow-wrap: anywhere;
  text-decoration: none;
  color: #a8c6ff !important;
  font-size: 0.86rem;
}

.links a:hover {
  text-decoration: underline;
}

.links span {
  flex: 0 0 auto;
  color: var(--faint);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.scopes-list code {
  color: #ffc774;
  font-size: 0.78rem;
}

.scopes-list .tool__title {
  margin-top: 4px;
  font-size: 0.98rem;
}

.scopes-list .tool__summary {
  margin-bottom: 0;
}

.facts {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.facts li {
  position: relative;
  padding-left: 26px;
  color: #cbd5e1;
  font-size: 0.94rem;
}

.facts li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 5px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgb(79 191 87 / 0.18);
  box-shadow: inset 0 0 0 1.5px var(--lime);
}

.facts code {
  color: #cfe0ff;
}

.fine {
  margin: 14px 4px 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.fine a {
  color: #a8c6ff !important;
}

/* ── The close ───────────────────────────────────────────────────────────── */
.final {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  max-width: 1200px;
  margin: clamp(72px, 9vw, 120px) auto 64px;
  border-radius: 34px;
  padding: clamp(48px, 7vw, 88px) clamp(24px, 5vw, 64px);
  text-align: center;
  background: radial-gradient(90% 130% at 50% 0%, #2b6bff 0%, #0444c8 36%, #061a4a 78%);
  box-shadow: 0 50px 100px -50px rgb(43 107 255 / 0.9);
}

.glow--c {
  width: 420px;
  height: 420px;
  left: 50%;
  bottom: -260px;
  margin-left: -210px;
  background: #4fbf57;
  opacity: 0.35;
  animation: breathe 9s ease-in-out infinite;
}

.final h2 {
  margin: 0;
  font-weight: 900;
  font-size: clamp(2.2rem, 5.4vw, 4rem);
  letter-spacing: -0.04em;
  line-height: 1;
}

.final > p {
  margin: 18px auto 28px;
  max-width: 34rem;
  color: #dbe6ff;
  font-size: 1.08rem;
  line-height: 1.55;
}

.endpoint--final {
  margin: 0 auto;
  text-align: left;
  background: rgb(5 19 46 / 0.55);
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px clamp(16px, 4vw, 48px) 44px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.brand--foot .brand__word {
  font-size: 1.1rem;
}

.foot__links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin: 0;
}

.foot__links a,
.linkish {
  color: #cbd5e1 !important;
  text-decoration: none;
  font-weight: 700;
}

.foot__links a:hover,
.linkish:hover {
  color: #fff !important;
  text-decoration: underline;
}

.linkish {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.foot__small {
  flex-basis: 100%;
  margin: 0;
  color: var(--faint);
  font-size: 0.8rem;
}

/* ── Legal modals (popover) ──────────────────────────────────────────────── */
.modal {
  width: min(680px, calc(100vw - 32px));
  max-height: min(82vh, 820px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: linear-gradient(180deg, #151b23, #0e131a);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.1), 0 50px 120px -20px rgb(0 0 0 / 0.9);
  overflow: hidden;
  flex-direction: column;
}

.modal:popover-open {
  display: flex;
  animation: modal-in 0.35s var(--ease);
}

.modal::backdrop {
  background: rgb(3 6 10 / 0.7);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--line);
}

.modal__title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.modal__close {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.07);
  color: #fff;
  font: inherit;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s, transform 0.2s var(--ease);
}

.modal__close:hover {
  background: rgb(255 255 255 / 0.14);
  transform: rotate(90deg);
}

.modal__body {
  padding: 4px 22px 26px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.legal .lede {
  margin: 16px 0 8px;
  font-size: 0.98rem;
}

.legal h2 {
  margin: 26px 0 8px;
  font-size: 1.08rem;
  font-weight: 900;
}

.legal p,
.legal li {
  color: #a9b5c4;
  font-size: 0.95rem;
  line-height: 1.6;
}

.legal strong {
  color: var(--ink);
}

.legal ul {
  margin: 0;
  padding-left: 1.2em;
}

.legal li + li {
  margin-top: 6px;
}

.legal a {
  color: #a8c6ff !important;
}

/* ── Scroll reveals, where the browser can tie an animation to scrolling ─── */
@supports (animation-timeline: view()) {
  .reveal {
    animation: reveal linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 60%;
  }
}

/* ── Phones and tablets ──────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .cards--tools {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cards--views {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .hero {
    padding-top: 108px;
  }

  .hero__inner,
  .dev {
    grid-template-columns: minmax(0, 1fr);
  }

  .top__nav {
    display: none;
  }

  .beam {
    width: 220px;
  }
}

@media (max-width: 640px) {
  .cards--tools,
  .cards--views {
    grid-template-columns: minmax(0, 1fr);
  }

  .top {
    gap: 12px;
  }

  .top__link {
    display: none;
  }

  .stats {
    gap: 22px;
  }

  .stats strong {
    font-size: 1.7rem;
  }

  .btn {
    padding: 14px 22px;
  }

  .endpoint__label {
    padding: 0 10px;
    font-size: 0.62rem;
  }

  .endpoint__url {
    padding: 14px 10px;
    font-size: 0.84rem;
  }

  .chat {
    height: 400px;
  }

  .float {
    font-size: 0.74rem;
    padding: 8px 11px;
  }

  .float--a {
    left: 0;
  }

  .float--b {
    right: 0;
  }

  .float--c {
    margin-left: -72px;
  }

  .final {
    margin-inline: 16px;
    border-radius: 26px;
  }
}

/* ── Keyframes ───────────────────────────────────────────────────────────── */
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

/* `translate` and `scale`, not `transform`: a filled animation on transform
 * would override the hover lift on every card it revealed. */
@keyframes reveal {
  from { opacity: 0; translate: 0 28px; scale: 0.98; }
  to { opacity: 1; translate: 0 0; scale: 1; }
}

@keyframes step-in {
  from { max-height: 0; padding-top: 0; opacity: 0; transform: translateY(10px) scale(0.96); }
  to { max-height: 180px; opacity: 1; transform: none; }
}

@keyframes pop {
  from { opacity: 0; scale: 0.7; }
  to { opacity: 1; scale: 1; }
}

@keyframes bob {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -12px; }
}

@keyframes breathe {
  0%, 100% { opacity: 0.32; }
  50% { opacity: 0.58; }
}

@keyframes beam-on {
  to { opacity: 1; }
}

@keyframes sway {
  0%, 100% { transform: rotate(var(--tilt)); }
  50% { transform: rotate(calc(var(--tilt) * 0.86)); }
}

@keyframes draw {
  to { stroke-dashoffset: 0; }
}

@keyframes sheen {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes glint {
  0%, 60% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgb(79 191 87 / 0.65); }
  70% { box-shadow: 0 0 0 9px rgb(79 191 87 / 0); }
  100% { box-shadow: 0 0 0 0 rgb(79 191 87 / 0); }
}

@keyframes ring {
  0% { box-shadow: 0 0 0 0 rgb(77 128 255 / 0.55); }
  80%, 100% { box-shadow: 0 0 0 12px rgb(77 128 255 / 0); }
}

@keyframes typing {
  0%, 60%, 100% { opacity: 0.35; transform: none; }
  30% { opacity: 1; transform: translateY(-3px); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes roll {
  from { transform: translateY(0); }
  to { transform: translateY(-100%); }
}

@keyframes goal {
  0% { opacity: 0; transform: translate(-50%, 6px) scale(0.6); }
  20% { opacity: 1; transform: translate(-50%, 0) scale(1.1); }
  35%, 75% { opacity: 1; transform: translate(-50%, 0) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -6px) scale(1); }
}

@keyframes grow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

/* Everything above is decoration. Without it the page is in its final state:
 * the pitch drawn, the whole conversation shown, the score two-one. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .pitch * {
    stroke-dashoffset: 0;
  }

  .beam {
    opacity: 1;
  }

  .roll span {
    transform: translateY(-100%);
  }

  .chat {
    height: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .ticker__track {
    flex-wrap: wrap;
    width: auto;
    justify-content: center;
    gap: 12px 0;
  }

  .tick:nth-child(n + 11) {
    display: none;
  }
}
