/* World News — Apple-style, mixed theme: dark cinematic hero, light sections */

:root {
  --accent: #0071e3;          /* page accent on light backgrounds */
  --accent-hero: #2997ff;     /* brighter accent for the dark hero & globe */
  --accent-ink: #ffffff;
  --bg: #ffffff;
  --panel: #f5f5f7;
  --card: #ffffff;
  --card-sub: #f5f5f7;
  --hairline: #d2d2d7;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --dim: #86868b;
  --orange: #ff9f0a;
  --green: #248a3d;
  --green-hero: #30d158;
  --red: #ff453a;
  --purple: #bf5af2;
  --hero-bg: #000000;
  --hero-text: #f5f5f7;
  --hero-muted: #a1a1a6;
  --hero-dim: #6e6e73;
  --radius: 28px;
  --max: 1200px;
  --copy: 980px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
h1, h2, h3, h4, p { margin: 0; }
section { scroll-margin-top: 64px; }

.container { width: min(var(--max), calc(100% - 44px)); margin-inline: auto; }
.copy-width { width: min(var(--copy), calc(100% - 44px)); margin-inline: auto; }

/* ---------- Nav (light over hero, frosted-light when scrolled) ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: 48px;
  color: var(--hero-text);
  transition: background 0.4s ease, border-color 0.4s ease, color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(251, 251, 253, 0.78);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom-color: rgba(0, 0, 0, 0.08);
  color: var(--text);
}
.nav-inner {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-brand { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 12px;
  opacity: 0.85;
}
.nav-links a:hover { opacity: 1; }
.nav-cta {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 14px;
  border-radius: 980px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 500;
}
.nav-cta:hover { filter: brightness(1.1); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-auth {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 14px;
  border-radius: 980px;
  /* Inherit the nav's text colour so the pill is visible on BOTH the dark
     hero (light text) and the scrolled light bar (dark text). */
  color: inherit;
  border: 1px solid color-mix(in srgb, currentColor 35%, transparent);
  background: transparent;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}
.nav-auth:hover {
  border-color: color-mix(in srgb, currentColor 70%, transparent);
  background: color-mix(in srgb, currentColor 10%, transparent);
}

/* ---------- Type ---------- */
.eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
}
.display {
  font-size: clamp(48px, 7.2vw, 96px);
  line-height: 1.03;
  font-weight: 700;
  letter-spacing: -0.025em;
}
.headline {
  font-size: clamp(34px, 4.6vw, 64px);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -0.022em;
}
.subhead {
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.45;
  font-weight: 400;
  color: var(--muted);
  text-wrap: pretty;
}
.accent-text { color: var(--accent-hero); }
.live-news-dot {
  color: var(--red);
  display: inline-block;
  text-shadow: 0 0 16px rgba(255, 69, 58, 0.85);
  animation: live-news-blink 1.15s ease-in-out infinite;
}
@keyframes live-news-blink {
  0%, 100% {
    opacity: 1;
    text-shadow:
      0 0 10px rgba(255, 69, 58, 0.95),
      0 0 22px rgba(255, 69, 58, 0.72);
  }
  50% {
    opacity: 0.32;
    text-shadow: 0 0 4px rgba(255, 69, 58, 0.42);
  }
}
@media (prefers-reduced-motion: reduce) {
  .live-news-dot {
    animation: none;
  }
}

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border: 0;
  border-radius: 980px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
  transition: filter 0.2s ease;
}
.btn-primary:hover { filter: brightness(1.12); }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 980px;
  border: 1px solid rgba(0, 0, 0, 0.3);
  color: var(--text);
  font-size: 17px;
  font-weight: 500;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.btn-ghost:hover { border-color: rgba(0, 0, 0, 0.55); background: rgba(0, 0, 0, 0.04); }
.link-arrow { color: var(--accent); font-size: 17px; font-weight: 400; }
.link-arrow::after { content: " ›"; }
.link-arrow:hover { text-decoration: underline; }

/* ---------- Hero (dark stage) ---------- */
.hero {
  position: relative;
  padding-top: 124px;
  overflow: hidden;
  text-align: center;
  background: var(--hero-bg);
  color: var(--hero-text);
}
.hero .eyebrow { color: var(--hero-dim); }
.hero .subhead { color: var(--hero-muted); }
.hero .link-arrow { color: var(--accent-hero); }
.hero-copy { position: relative; z-index: 3; display: grid; justify-items: center; gap: 18px; }
.hero-copy .subhead { max-width: 720px; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 28px; margin-top: 8px; }

/* Layer pills (removed from hero) */

.globe-stage {
  position: relative;
  width: clamp(320px, 96vw, 1060px);
  height: clamp(280px, 52vw, 560px);
  margin: 22px auto 0;
  overflow: hidden;
}
.globe-stage canvas {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(320px, 96vw, 1060px);
  height: clamp(320px, 96vw, 1060px);
  cursor: grab;
  touch-action: none;
  contain: layout paint size;
}
.globe-stage canvas:active { cursor: grabbing; }
.globe-stage .globe-overlay {
  pointer-events: none;
  cursor: default;
  z-index: 2;
}
.globe-stage .globe-fade {
  pointer-events: none;
  position: absolute;
  inset: auto 0 0 0;
  height: 160px;
  background: linear-gradient(to bottom, transparent, var(--hero-bg) 88%);
}
.globe-fallback {
  display: none;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(320px, 96vw, 1060px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 32%, rgba(255, 255, 255, 0.1), transparent 42%),
    radial-gradient(circle at 50% 50%, #1c1c21 0 62%, #0a0a0c 70%, transparent 71%);
}
.globe-stage.no-webgl canvas { display: none; }
.globe-stage.no-webgl .globe-fallback { display: block; }

/* Shared chip atoms (dark glass) */
.chip-top {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hero-muted);
}
.chip-dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-hero);
  color: var(--accent-hero);
  box-shadow: 0 0 12px var(--accent-hero);
}
/* Shift the hero dot left and add space so its pulse ring never reaches the text. */
.event-chip .chip-dot { margin-left: -6px; margin-right: 7px; }
.chip-dot.orange { background: var(--orange); color: var(--orange); box-shadow: 0 0 12px var(--orange); }
.chip-dot.green { background: var(--green-hero); color: var(--green-hero); box-shadow: 0 0 12px var(--green-hero); }
.chip-dot.purple { background: var(--purple); color: var(--purple); box-shadow: 0 0 12px var(--purple); }
@media (prefers-reduced-motion: no-preference) {
  .chip-dot.pulse::after {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    border: 1.5px solid currentColor;
    animation: dot-ring 2s ease-out infinite;
  }
  @keyframes dot-ring {
    0% { transform: scale(0.6); opacity: 0.9; }
    70% { transform: scale(2.6); opacity: 0; }
    100% { transform: scale(2.6); opacity: 0; }
  }
}
.chip-city { color: var(--hero-text); }
.chip-headline { font-size: 15px; color: var(--hero-text); line-height: 1.35; text-wrap: balance; }
.event-chip .chip-headline { min-height: 20px; }

.event-chip {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 44px;
  transform: translateX(-50%);
  display: grid;
  gap: 5px;
  justify-items: center;
  min-width: 280px;
  max-width: min(86vw, 420px);
  padding: 13px 24px 17px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.03)),
    rgba(22, 24, 30, 0.10);
  box-shadow:
    0 22px 55px -26px rgba(0, 0, 0, 0.9),
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55);
  opacity: 1;
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.event-chip.swap { opacity: 0; transform: translateX(-50%) translateY(6px); }

/* Floating side chips removed — activity now lives on the globe itself. */
.sat-meta { display: grid; gap: 5px; }
.sparkline { display: flex; align-items: flex-end; gap: 3px; height: 24px; margin-top: 2px; }
.sparkline i { width: 5px; border-radius: 2px; background: rgba(255, 159, 10, 0.75); }

/* (chip-float removed with the side chips) */

.hero-hint { position: relative; z-index: 3; margin-top: -34px; padding-bottom: 26px; font-size: 12px; color: var(--hero-dim); }

/* ---------- Stats strip ---------- */
.stats {
  border-bottom: 1px solid var(--hairline);
  padding: 44px 0;
  background: var(--bg);
}
.stats-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px 72px; text-align: center; }
.stat { display: grid; gap: 2px; }
.stat b { font-size: 32px; font-weight: 700; letter-spacing: -0.02em; }
.stat span { font-size: 14px; color: var(--dim); }

/* ---------- Sections ---------- */
.section { padding: 130px 0; }
.section.tinted { background: var(--panel); }
.section-head { display: grid; gap: 18px; max-width: 820px; margin: 0 auto 64px; text-align: center; justify-items: center; }
.section-head .subhead { max-width: 640px; }

/* ---------- Forecast cards (on white) ---------- */
.forecast-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.fcard {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px;
  border-radius: 24px;
  background: var(--card);
  box-shadow: 0 4px 14px -10px rgba(0, 0, 0, 0.12);
}
.fcard-top { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.fcard-q { font-size: 19px; font-weight: 600; line-height: 1.35; letter-spacing: -0.01em; text-wrap: pretty; flex: 1; }
.spread { position: relative; height: 4px; border-radius: 999px; background: #e3e3e8; }
.spread i {
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  border: 2px solid var(--card);
}
.spread i.anna { background: var(--accent); }
.spread i.boris { background: var(--orange); }
.fcard-legend { display: flex; justify-content: space-between; font-size: 13px; margin-top: 9px; }
.fcard-legend .anna { color: var(--accent); font-weight: 600; }
.fcard-legend .boris { color: #c93400; font-weight: 600; }
.crowd-bar { height: 4px; border-radius: 999px; background: #e3e3e8; overflow: hidden; }
.crowd-bar span { display: block; height: 100%; background: var(--green); border-radius: inherit; }
.crowd-note { font-size: 13px; color: var(--dim); margin-top: 8px; }
.crowd-note b { color: var(--green); font-weight: 600; }
.odds { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.odd {
  border-radius: 14px;
  padding: 10px 12px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  background: var(--panel);
}
.odd b { display: block; font-size: 17px; color: var(--text); }
.forecast-cta { text-align: center; margin-top: 44px; }

/* ---------- Live prediction funnel (js/predictions.js) ---------- */
.pm-status { grid-column: 1 / -1; text-align: center; color: var(--dim); font-size: 15px; padding: 28px 0; }

/* EN/RU language toggle (centered under the section heading) */
.pm-lang { display: inline-flex; gap: 4px; padding: 3px; border-radius: 999px; background: var(--panel); }
.pm-lang-btn {
  border: 0; cursor: pointer; padding: 5px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
  background: transparent; color: var(--dim);
}
.pm-lang-btn.on { background: var(--card); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
.pm-card { transition: box-shadow 0.2s ease; }

.pm-vote { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pm-btn {
  border-radius: 14px;
  padding: 10px 12px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  background: var(--panel);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--text);
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.05s ease;
}
.pm-btn b { display: block; font-size: 16px; font-weight: 700; margin-top: 2px; }
.pm-btn:hover { border-color: rgba(0, 0, 0, 0.28); }
.pm-btn:active { transform: scale(0.98); }
.pm-yes.on { border-color: var(--green); background: rgba(36, 138, 61, 0.08); color: var(--green); }
.pm-no.on  { border-color: #c93400; background: rgba(201, 52, 0, 0.07); color: #c93400; }

.pm-closed {
  border-radius: 14px; padding: 11px 12px; text-align: center;
  font-size: 13px; font-weight: 600; color: var(--dim);
  background: var(--panel); border: 1px dashed rgba(0, 0, 0, 0.12);
}

/* auth bar */
.pm-authbar { margin-bottom: 26px; }
.pm-auth-cold, .pm-auth-signed {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 12px 16px; padding: 16px 20px; border-radius: 18px;
  background: var(--card); box-shadow: 0 4px 14px -10px rgba(0, 0, 0, 0.12);
  font-size: 15px; color: var(--text);
}
.pm-auth-who b { font-weight: 600; }
.pm-auth-cta { padding: 10px 18px; font-size: 14px; }
.pm-link {
  background: none; border: none; cursor: pointer; padding: 0;
  color: var(--accent); font-size: 14px; font-weight: 500;
}
.pm-link:hover { text-decoration: underline; }

/* Clean vertical login/register card — a normal stacked form, centered. */
.pm-auth-form {
  max-width: 380px; margin: 0 auto; padding: 24px; border-radius: 20px;
  background: var(--card); box-shadow: 0 8px 30px -18px rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(0, 0, 0, 0.06);
  display: grid; gap: 16px;
}
.pm-auth-head { display: flex; flex-direction: column; gap: 4px; }
.pm-auth-head strong { font-size: 18px; letter-spacing: -0.01em; }
.pm-auth-head .pm-link { align-self: flex-start; }
.pm-auth-fields { display: grid; gap: 10px; }
.pm-auth-fields input {
  width: 100%; padding: 12px 14px; border-radius: 12px; font-size: 14px;
  border: 1px solid rgba(0, 0, 0, 0.14); background: var(--bg); color: var(--text);
}
.pm-auth-fields input::placeholder { color: var(--dim); }
.pm-auth-fields input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.12); }
.pm-auth-fields .btn-primary {
  width: 100%; justify-content: center; padding: 12px 18px; font-size: 14px; margin-top: 4px;
}
.pm-auth-error { color: #c93400; font-size: 13px; margin: 0; }

.pm-toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 16px);
  background: #1d1d1f; color: #fff; padding: 11px 18px; border-radius: 12px;
  font-size: 14px; z-index: 200; opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.pm-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Bento features ---------- */
.bento { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.bento-card {
  padding: 44px 40px;
  border-radius: var(--radius);
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: var(--panel);
  display: grid;
  gap: 10px;
  align-content: start;
  overflow: hidden;
}
.bento-card:not(.wide) {
  grid-template-rows: auto auto auto minmax(180px, 1fr);
  padding-bottom: 0;
}
.bento-card.wide { grid-column: span 2; }
.bento-card.dark { border-color: transparent; background: #161617; color: #f5f5f7; }
.bento-card.dark p { color: #a1a1a6; }
.bento-card.dark h3 { color: #f5f5f7; }
.bento-card.wide { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: 40px; }
.bento-copy { display: grid; gap: 10px; }
.bento-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 36px; }
.bstat b { display: block; font-size: 38px; font-weight: 700; letter-spacing: -0.02em; background: linear-gradient(90deg, #2997ff, #5ac8fa); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bstat span { font-size: 13px; color: #86868b; }
.bento-art { position: relative; min-height: 180px; height: auto; margin: 16px -40px 0; border-top: 1px solid rgba(0, 0, 0, 0.05); background: transparent; align-self: stretch; }
.bento-card.wide .bento-art { margin: 0 -40px -44px 0; height: 190px; border-top: 0; border-left: 1px solid rgba(0, 0, 0, 0.05); border-radius: 18px 0 0 0; }
.bento-art.models {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px 30px;
  margin: 16px -40px 0;
  min-height: 180px;
  padding: 0 40px;
  border: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 0;
  background: #ffffff;
}
.bento-art.models img { height: 17px; width: auto; max-width: 110px; filter: brightness(0); opacity: 0.4; }
.vg-cursor { width: 0; height: 0; border: 5px solid transparent; border-bottom: 11px solid #0071e3; transform: rotate(-38deg); margin: -4px 2px 0 -2px; }
@media (prefers-reduced-motion: no-preference) {
  .cursor-chip { animation: cursor-wander 6.5s ease-in-out infinite alternate; }
  @keyframes cursor-wander { from { transform: translate(0, 0); } 50% { transform: translate(22px, -10px); } to { transform: translate(-12px, 8px); } }
}
.bento-card .kicker-sm { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.bento-card h3 { font-size: clamp(24px, 2.4vw, 32px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.bento-card p { color: var(--muted); font-size: 17px; max-width: 46ch; text-wrap: pretty; }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
.step { display: grid; gap: 12px; align-content: start; padding-top: 22px; border-top: 1px solid var(--hairline); }
.step .num { font-size: 14px; font-weight: 600; color: var(--accent); letter-spacing: 0.12em; }
.step h3 { font-size: 24px; font-weight: 700; letter-spacing: -0.015em; }
.step p { color: var(--muted); text-wrap: pretty; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.tag {
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--hairline);
  border-radius: 980px;
  padding: 4px 11px;
}

/* ---------- Demo frame (white on tinted) ---------- */
.demo-frame {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--hairline);
  box-shadow: 0 30px 60px -40px rgba(0, 0, 0, 0.25);
}
.demo-bar {
  height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  border-bottom: 1px solid var(--hairline);
  background: #fafafc;
}
.demo-bar i { width: 11px; height: 11px; border-radius: 50%; background: #d2d2d7; }
.demo-bar span { margin-inline: auto; font-size: 12px; color: var(--dim); }
.demo-body { padding: 0; }
.demo-body image-slot { display: block; width: 100%; aspect-ratio: 16 / 9; }
.demo-embed { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: #0b0b0d; }
.demo-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 28px; margin-top: 36px; }

/* ---------- Capabilities ---------- */
.rag-split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.rag-copy { display: grid; gap: 16px; justify-items: start; }
.rag-copy h3 { font-size: clamp(28px, 3vw, 40px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.rag-copy p { color: var(--muted); font-size: 18px; text-wrap: pretty; }
.chat-card { display: grid; gap: 12px; padding: 26px; border-radius: var(--radius); background: var(--card-sub); }
.chat-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--dim); padding-bottom: 10px; border-bottom: 1px solid var(--hairline); }
.chat-meta .chip-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: none; }
.bubble { max-width: 86%; padding: 11px 15px; border-radius: 18px; font-size: 15px; line-height: 1.45; }
.bubble.user { justify-self: end; background: var(--accent); color: #fff; border-bottom-right-radius: 5px; }
.bubble.ai { justify-self: start; background: #ffffff; color: var(--text); border-bottom-left-radius: 5px; border: 1px solid var(--hairline); }
.bubble.cite { justify-self: start; background: transparent; padding: 0 4px; font-size: 12px; color: var(--dim); border: 0; }
.cap-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 28px; }
.cap { padding-top: 18px; border-top: 1px solid var(--hairline); display: grid; gap: 5px; align-content: start; }
.cap h4 { font-size: 17px; font-weight: 600; }
.cap p { font-size: 14px; color: var(--dim); line-height: 1.45; }

/* ---------- Feature rail (Apple-style horizontal gallery) ---------- */
.rail-section { overflow: hidden; }
.rail-head { display: grid; gap: 16px; justify-items: start; text-align: left; margin-bottom: 48px; }
.rail-head .subhead { max-width: 620px; }
.rail {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 30px max(22px, calc((100vw - var(--max)) / 2)) 30px;
  scroll-padding-inline: max(22px, calc((100vw - var(--max)) / 2));
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  outline: 0;
}
.rail::-webkit-scrollbar { display: none; }
.rcard {
  flex: 0 0 min(86vw, 400px);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 30px 30px 0;
  border-radius: var(--radius);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.48));
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  overflow: hidden;
  box-shadow:
    0 10px 26px -18px rgba(20, 22, 40, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition: transform 0.5s cubic-bezier(0.2, 0.6, 0.2, 1), box-shadow 0.5s cubic-bezier(0.2, 0.6, 0.2, 1);
  will-change: transform;
}
.rcard:hover {
  transform: translateY(-8px) scale(1.012);
  box-shadow:
    0 22px 44px -26px rgba(20, 22, 40, 0.30),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.rcard-kicker { font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.rcard h3 { font-size: 23px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.2; }
.rcard > p:not(.rcard-kicker) { font-size: 15px; color: var(--muted); line-height: 1.5; text-wrap: pretty; }
.rcard-media { margin: 20px -30px 0; margin-top: auto; padding-top: 20px; height: 230px; }
.rcard-media image-slot { display: block; width: 100%; height: 100%; }

/* Card illustrations (CSS vignettes) + Apple-style hover zoom */
.vg { position: relative; width: 100%; height: 100%; background: radial-gradient(125% 100% at 28% 8%, #e7edfb 0%, #f6f7fb 60%); overflow: hidden; }
.vg-dots { position: absolute; inset: 0; background-image: radial-gradient(circle, #cdd3e0 1.5px, transparent 1.5px); background-size: 15px 15px; }
.vg-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 11px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.46), rgba(255, 255, 255, 0.20));
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow:
    0 8px 20px -12px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}
.vg-chip small { font-weight: 400; color: var(--dim); font-size: 11px; }
.vg-dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; }
.vg-halo { position: absolute; border-radius: 50%; }
.vg-bar { position: absolute; border-radius: 999px; }
.vg-card {
  position: absolute;
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.50), rgba(255, 255, 255, 0.24));
  -webkit-backdrop-filter: blur(18px) saturate(185%);
  backdrop-filter: blur(18px) saturate(185%);
  border: 1px solid rgba(255, 255, 255, 0.62);
  box-shadow:
    0 16px 32px -18px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.vg-line { height: 7px; border-radius: 4px; background: #e3e3e8; }
.vg-spark { display: flex; align-items: flex-end; gap: 4px; height: 34px; }
.vg-spark i { width: 7px; border-radius: 3px; }
.rail-nav { display: flex; justify-content: flex-end; gap: 12px; margin-top: 26px; }
.rail-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  background: rgba(0, 0, 0, 0.06);
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  display: grid;
  place-items: center;
  padding: 0 0 3px;
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease;
}
.rail-btn:hover:not(:disabled) { background: rgba(0, 0, 0, 0.13); }
.rail-btn:disabled { opacity: 0.35; cursor: default; }

/* ---------- Sources ---------- */
.logo-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 28px 48px; }
.logo-row img { height: 22px; width: auto; max-width: 130px; filter: brightness(0); opacity: 0.45; transition: opacity 0.25s ease; }
/* The FT mark is a filled square with dark lettering — brightness(0) turns it into a solid block. */
.logo-row img[alt="Financial Times"] { filter: grayscale(1) contrast(0.85); opacity: 0.6; }
.logo-row img:hover { opacity: 0.8; }
.sources-note { text-align: center; color: var(--dim); font-size: 15px; margin-top: 40px; }
/* LLM providers — monochrome wordmark row, mirrors the newsroom logo row */
.llm-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 26px 44px; margin-top: 28px; }
.llm { display: inline-flex; align-items: center; gap: 10px; opacity: 0.45; transition: opacity 0.25s ease; }
.llm:hover { opacity: 0.8; }
.llm img { height: 19px; width: auto; max-width: 120px; filter: brightness(0); }
.llm b { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; color: #000; white-space: nowrap; }

/* ---------- Pricing (on white) ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.pcard {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 36px 32px;
  border-radius: var(--radius);
  background: var(--card-sub);
  border: 1px solid transparent;
}
.pcard.featured { background: var(--card); border-color: var(--accent); box-shadow: 0 30px 60px -45px rgba(0, 113, 227, 0.45); }
.pcard .plan-flag { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); min-height: 18px; }
.pcard h3 { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }
.pcard .plan-desc { color: var(--muted); font-size: 15px; margin-top: 4px; min-height: 44px; text-wrap: pretty; }
.pcard .price { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; margin-top: 18px; }
.pcard .price small { display: block; font-size: 14px; font-weight: 400; color: var(--dim); margin-top: 3px; }
.pcard .btn-primary, .pcard .btn-ghost { margin-top: 22px; }
.pcard ul { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 11px; font-size: 14px; color: var(--muted); }
.pcard li { display: flex; gap: 10px; }
.pcard li::before { content: "✓"; color: var(--accent); font-weight: 600; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq details:first-of-type { border-top: 1px solid var(--hairline); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 24px 4px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 26px; font-weight: 300; color: var(--dim); transition: transform 0.25s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 4px 26px; color: var(--muted); max-width: 62ch; }

/* ---------- CTA / contact ---------- */
.contact-form { max-width: 560px; margin: 0 auto; display: grid; gap: 12px; }
.contact-form input, .contact-form textarea {
  width: 100%;
  border: 1px solid var(--hairline);
  border-radius: 16px;
  background: var(--card);
  color: var(--text);
  padding: 15px 18px;
  font-size: 16px;
  outline: 0;
  resize: vertical;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15); }
.contact-form ::placeholder { color: var(--dim); }
.form-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.form-note { font-size: 12px; color: var(--dim); }

/* ---------- Footer ---------- */
.footer { background: var(--panel); border-top: 1px solid var(--hairline); padding: 40px 0 48px; font-size: 12px; color: var(--dim); }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; padding-bottom: 36px; }
.footer-cols h4 { color: var(--muted); font-size: 12px; font-weight: 600; margin-bottom: 10px; }
.footer-cols a { display: block; padding: 3px 0; }
.footer-cols a:hover { color: var(--text); }
.footer-legal { border-top: 1px solid var(--hairline); padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1); }
  html.js .reveal.in { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .forecast-grid, .price-grid, .steps { grid-template-columns: 1fr; }
  .steps { gap: 30px; }
  .bento { grid-template-columns: 1fr; }
  .bento-card.wide { grid-column: span 1; grid-template-columns: 1fr; }
  .bento-card.wide .bento-art { margin: 16px -40px -44px; border-left: 0; border-top: 1px solid rgba(0, 0, 0, 0.05); border-radius: 0; }
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .rag-split { grid-template-columns: 1fr; gap: 36px; }
  .nav-links { display: none; }
  .section { padding: 96px 0; }
}
@media (max-width: 600px) {
  .hero { padding-top: 110px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn-primary, .hero-actions .btn-ghost { width: 100%; max-width: 320px; }
  .cap-grid { grid-template-columns: 1fr; }
  .stats-row { gap: 24px 40px; }
  .stat b { font-size: 26px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .event-chip { min-width: 0; width: max-content; max-width: 88vw; }
  /* Tidy the top bar on phones: keep brand + Sign in, drop the duplicate
     "Request access" (the hero already has it), and stop text from wrapping. */
  .nav-inner { gap: 12px; }
  .nav-brand { white-space: nowrap; }
  .nav-cta { display: none; }
  .nav-auth { white-space: nowrap; }
}

/* ---------- ASCII globe (experimental dark band) ---------- */
.ascii-section {
  background: #000;
  color: var(--hero-text);
  padding: 120px 0;
  overflow: hidden;
  scroll-margin-top: 64px;
}
.ascii-inner {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(420px, 1.15fr);
  gap: 56px;
  align-items: center;
}
.ascii-copy .eyebrow {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 18px;
}
.ascii-head {
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin-bottom: 22px;
}
.ascii-sub {
  color: var(--hero-muted);
  font-size: 18px;
  line-height: 1.55;
  max-width: 46ch;
}
.ascii-stage {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 520px;
  margin-inline: auto;
  background: transparent;
}
.ascii-canvas {
  display: block;
  width: 100%;
  height: 100%;
}
@media (max-width: 860px) {
  .ascii-inner { grid-template-columns: 1fr; gap: 36px; }
  .ascii-section { padding: 88px 0; }
  .ascii-sub { max-width: none; }
  .ascii-stage { max-width: 380px; }
}
