/* Omega landing page — light SaaS design system, violet-blue accent.
   Soft lavender surfaces, hairline borders, rounded cards, gradient accents
   (violet → blue). Inter everywhere; same tokens serve EN and VI. */


/* Inter is self-hosted rather than pulled from Google Fonts: it removes a
   render-blocking third-party stylesheet plus two extra connections from the
   critical path, and keeps visitor IPs off Google's servers.

   Only the subsets the pages actually use are shipped. latin-ext is
   deliberately absent — no character on any page falls in it that the other
   three don't already cover. If content later adds one (a stray Ł, Ō, ₱), the
   glyph silently falls back to the system font; re-add the subset then.
   greek exists solely for the Ω in the wordmark. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/inter-greek.woff2) format("woff2");
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/inter-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Violet-blue palette. Text pairs clear WCAG AA 4.5:1 on --bg and
     --bg-soft: ink 15.5:1, secondary 7.4:1, tertiary 5.3:1, accent 4.7:1
     (worst case, on the light-blue --bg-soft).
     Do not lighten --fg-tertiary or --accent without re-checking. */
  --bg: #eef4ff;
  --bg-soft: #e2ebff;
  --bg-elevated: #ffffff;
  --ink: #120f2e;
  --fg: #120f2e;
  --fg-secondary: #4a4766;
  --fg-tertiary: #5f5c7a;
  --line: #e4e1f5;
  --line-strong: #cfcaee;
  --accent: #5a4cf0;
  --accent-hover: #4a3be0;
  --accent-2: #3b7cf6;
  --accent-soft: #ece9ff;
  --success: #16865a;
  --grad: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  --shadow-sm: 0 1px 2px rgba(18, 15, 46, .06);
  --shadow: 0 1px 2px rgba(18, 15, 46, .05), 0 12px 32px -12px rgba(54, 40, 170, .18);
  --shadow-lg: 0 2px 4px rgba(18, 15, 46, .04), 0 40px 80px -24px rgba(54, 40, 170, .35);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.15; font-weight: 700; }
a { color: var(--accent); }
img, svg { display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 400;
  padding: 10px 16px; border-radius: var(--radius-sm);
  background: var(--ink); color: #fff; text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Reveal: hidden only behind the .js gate so a failed app.js still shows
   everything. Delays: only 75/150/225/300/375 exist. */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1);
  }
  .js [data-reveal].is-revealed { opacity: 1; transform: none; }
  .js [data-reveal-delay="75"] { transition-delay: 75ms; }
  .js [data-reveal-delay="150"] { transition-delay: 150ms; }
  .js [data-reveal-delay="225"] { transition-delay: 225ms; }
  .js [data-reveal-delay="300"] { transition-delay: 300ms; }
  .js [data-reveal-delay="375"] { transition-delay: 375ms; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px;
  border: 1px solid transparent; border-radius: 999px;
  font: 600 15px/1 var(--font); text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, box-shadow .2s, transform .2s;
}
.btn--accent {
  background: var(--grad); color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 8px 20px -8px rgba(90, 76, 240, .6);
}
.btn--accent:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 12px 28px -8px rgba(90, 76, 240, .7); }
.btn--ghost { background: var(--bg-elevated); color: var(--fg); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--small { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn--large { min-height: 54px; padding: 0 30px; font-size: 16px; }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }

/* ---------- Nav ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(226, 235, 255, .88);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  height: var(--nav-h); display: flex; align-items: center; gap: 32px;
}
.wordmark {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--fg); text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: -0.02em;
}
/* The Ω logo stands in for the O of "Omega". */
.wordmark { gap: 0; }
.wordmark img { width: 22px; height: 22px; border-radius: 6px; }
.wordmark-glyph {
  display: inline-grid; place-items: center; width: 26px; height: 26px;
  border-radius: 8px; background: var(--grad); color: #fff; font-size: 15px;
}
.nav-links { display: flex; gap: 4px; margin-right: auto; }
.nav-item { position: relative; }
.nav-trigger, .nav-plain {
  display: inline-flex; align-items: center; gap: 4px; white-space: nowrap;
  padding: 8px 12px; border: 0; border-radius: 999px; background: none; cursor: pointer;
  color: var(--fg-secondary); text-decoration: none; font: inherit; font-size: 14px; font-weight: 500;
}
.nav-trigger svg { width: 12px; height: 12px; transition: transform .2s; }
.nav-trigger:hover, .nav-plain:hover, .nav-item.is-open .nav-trigger { color: var(--fg); background: var(--accent-soft); }
.nav-item.is-current .nav-trigger { color: var(--accent); }
.nav-item.is-open .nav-trigger svg { transform: rotate(180deg); }
/* Tabs open a menu instead of navigating, so the visitor sees where each
   item goes before the page changes. Opens on click (app.js) and on hover
   for mice; the padding-top bridge keeps hover alive across the gap. */
.nav-menu {
  position: absolute; top: 100%; left: -8px; padding-top: 10px; width: 340px;
  visibility: hidden; opacity: 0; transform: translateY(-4px);
  transition: opacity .15s, transform .15s, visibility .15s;
}
.nav-menu::before {
  content: ""; position: absolute; inset: 10px 0 0; z-index: -1;
  background: var(--bg-elevated); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
}
.nav-item.is-open .nav-menu { visibility: visible; opacity: 1; transform: none; }
@media (hover: hover) and (min-width: 1081px) {
  .nav-item:hover .nav-menu { visibility: visible; opacity: 1; transform: none; }
  .nav-item:hover .nav-trigger svg { transform: rotate(180deg); }
}
.nav-menu a {
  display: flex; align-items: center; gap: 0; margin: 8px; padding: 12px;
  border: 1px solid var(--line); border-radius: 12px; text-decoration: none;
  transition: gap .2s, border-color .2s, background .2s;
}
.nav-menu a + a { margin-top: 0; }
/* Icon is tucked away until the box is hovered/focused, then slides in. */
.nav-menu-icon {
  flex: none; display: grid; place-items: center; width: 0; height: 36px; overflow: hidden;
  border-radius: 10px; background: var(--grad); color: #fff; opacity: 0;
  transition: width .2s, opacity .2s;
}
.nav-menu-icon svg { width: 18px; height: 18px; flex: none; }
.nav-menu a:hover, .nav-menu a:focus-visible { gap: 12px; border-color: var(--accent); background: var(--accent-soft); }
.nav-menu a:hover .nav-menu-icon, .nav-menu a:focus-visible .nav-menu-icon { width: 36px; opacity: 1; }
.nav-menu strong { display: block; color: var(--fg); font-size: 14px; font-weight: 600; }
.nav-menu-text > span { display: block; margin-top: 2px; color: var(--fg-tertiary); font-size: 13px; line-height: 1.4; }
.nav-right { display: flex; align-items: center; gap: 12px; }
.lang-toggle {
  display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-elevated);
}
.lang-toggle a {
  padding: 4px 10px; border-radius: 999px;
  color: var(--fg-tertiary); text-decoration: none; font-size: 12px; font-weight: 600;
}
.lang-toggle a.is-current { background: var(--accent-soft); color: var(--accent); }
.nav-toggle {
  display: none; width: 40px; height: 40px; padding: 8px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--bg-elevated); color: var(--fg); cursor: pointer;
}
.nav-toggle-icon { width: 100%; height: 100%; }
.nav-toggle-icon-close, .is-nav-open .nav-toggle-icon-open { display: none; }
.is-nav-open .nav-toggle-icon-close { display: block; }

/* ---------- Section shell ---------- */
main > section { padding: 112px 0; }
.eyebrow {
  display: block; width: fit-content; margin: 0 auto 16px;
  color: var(--accent); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}
main > section h2 {
  max-width: 820px; margin: 0 auto 56px; text-align: center;
  font-size: clamp(30px, 4.2vw, 50px);
}
main > section h3 { font-size: 19px; margin-bottom: 8px; }
main > section p { color: var(--fg-secondary); }

/* Shared card look: white, hairline border, soft lift on hover. */
.capability-card, .trust-card, .metric-tile, .persona, .tool-chip {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.capability-card:hover, .trust-card:hover, .metric-tile:hover, .persona:hover, .tool-chip:hover {
  transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong);
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 96px 0 120px !important;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(90, 76, 240, .18), transparent 70%),
    radial-gradient(40% 40% at 85% 30%, rgba(59, 124, 246, .14), transparent 70%),
    radial-gradient(40% 40% at 10% 40%, rgba(150, 110, 255, .12), transparent 70%);
}
.hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-copy { max-width: 900px; display: flex; flex-direction: column; align-items: center; }
.hero h1 { font-size: clamp(42px, 7vw, 84px); letter-spacing: -0.04em; line-height: 1.02; }
.hero-title-accent {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { max-width: 640px; margin-top: 24px !important; font-size: clamp(16px, 1.6vw, 19px); }
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
/* Split hero from 1000px: copy left, agent replay right. Below that it
   stacks centered, which reads better than a squeezed two-column. */
@media (min-width: 1000px) {
  .hero-inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: center; text-align: left; }
  .hero-copy { align-items: flex-start; }
  .hero h1 { font-size: clamp(44px, 5vw, 68px); }
  .hero .hero-ctas { justify-content: flex-start; }
  .hero .hero-shot { margin-top: 0; }
}

/* Sub-pages (product/, solution/ …): centered hero, no replay window. */
.page-hero { padding: 96px 0 40px !important; }
.page-hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.page-hero h1 { max-width: 900px; }
.page-hero + .capabilities { padding-top: 40px; }
.page-card-link { margin-top: 16px; font-weight: 600; }
.page-card-link a { color: var(--accent); text-decoration: none; }

/* Product shot: a light "app window" floating on a violet glow. */
.hero-shot {
  position: relative; width: 100%; max-width: 920px; margin-top: 72px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  background: var(--bg-elevated); box-shadow: var(--shadow-lg); overflow: hidden; text-align: left;
}
.hero-shot::before {
  content: ""; position: absolute; inset: -40% -10% auto; height: 80%; z-index: -1;
  background: radial-gradient(closest-side, rgba(90, 76, 240, .35), transparent); pointer-events: none;
}
.hero-shot-label { font-size: 12px; font-weight: 600; color: var(--fg-tertiary) !important; text-transform: uppercase; letter-spacing: .06em; }
.hero-shot-bars { display: flex; align-items: flex-end; gap: 10px; height: 110px; margin-top: 16px; border-bottom: 1px solid var(--line); }
.hero-shot-bars span { flex: 1; height: var(--h); border-radius: 6px 6px 2px 2px; background: var(--accent-soft); transform-origin: bottom; }
.hero-shot-bars span:last-child { background: var(--grad); }

/* ---------- Agent chat replay ----------
   Default (no JS / reduced motion) is the whole conversation, static.
   .is-playing (set by initChatDemo) fixes the height and bottom-aligns the
   column so each new step pushes older ones up and out, like a real chat. */
.chat-badge {
  margin-left: auto; padding: 3px 10px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); font-size: 11px; letter-spacing: 0; text-transform: none;
}
.chat { display: flex; flex-direction: column; gap: 14px; padding: 28px; background: var(--bg-soft); transition: opacity .4s ease; }
.chat.is-playing [data-chat-step]:not(.is-shown) { display: none; }
.chat.is-playing .is-shown { animation: chat-in .45s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes chat-in { from { opacity: 0; transform: translateY(12px); } }
.chat-msg {
  align-self: flex-end; max-width: 80%; min-height: 1.6em;
  padding: 12px 18px; border-radius: 18px 18px 4px 18px;
  background: var(--grad); color: #fff !important; font-weight: 500;
}
.chat-msg.is-typing::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -2px; background: #fff; }
/* Thinking indicator: Omega mark pulsing + animated dots. It is a
   transient state, so it never shows in the static (no-JS) conversation
   and disappears once its answer lands. */
.chat-thinking {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 8px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--bg-elevated); color: var(--fg-secondary); font-size: 14px; font-weight: 500;
}
.chat-thinking img { width: 22px; height: 22px; border-radius: 6px; animation: think-pulse 1.2s ease-in-out infinite; }
.chat-thinking span::after { content: ""; display: inline-block; width: 1.2em; text-align: left; animation: think-dots 1.2s steps(4, end) infinite; }
.chat:not(.is-playing) .chat-thinking, .chat-thinking.is-done { display: none !important; }
@keyframes think-pulse { 50% { transform: scale(.82) rotate(-12deg); opacity: .6; } }
@keyframes think-dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75%, 100% { content: "..."; } }
.chat-answer {
  align-self: flex-start; width: min(100%, 640px); padding: 20px 22px;
  border: 1px solid var(--line); border-radius: 4px 18px 18px 18px;
  background: var(--bg-elevated); box-shadow: var(--shadow-sm);
}
.chat-big { margin-top: 4px !important; font-size: 36px; font-weight: 700; letter-spacing: -0.03em; color: var(--fg) !important; line-height: 1.1; }
.chat-delta { margin-left: 8px; padding: 3px 10px; border-radius: 999px; background: #e3f6ec; color: var(--success); font-size: 13px; font-weight: 600; letter-spacing: 0; vertical-align: middle; }
.chat-axis { display: flex; gap: 10px; margin-top: 6px; }
.chat-axis span { flex: 1; text-align: center; font-size: 11px; color: var(--fg-tertiary); }
.chat-meta { margin-top: 12px !important; font-size: 12px; color: var(--fg-tertiary) !important; }
.chat-next {
  display: flex; gap: 8px; margin-top: 14px !important; padding-top: 12px; border-top: 1px dashed var(--line-strong);
  font-size: 14px; color: var(--fg) !important;
}
.chat-next::before { content: "\2192"; flex: none; color: var(--accent); font-weight: 700; }
.chat-stats { display: flex; flex-wrap: wrap; gap: 10px; }
.chat-stat { flex: 1 1 120px; padding: 14px; border-radius: 12px; background: var(--bg-soft); }
.chat-stat-value { margin: 2px 0 6px !important; font-size: 26px; font-weight: 700; letter-spacing: -0.02em; color: var(--fg) !important; }
.chat-stat .chat-delta { margin-left: 0; }
.chat-delta--flat { background: var(--bg-elevated); color: var(--fg-tertiary); }
.chat-delta--down { background: #fdecec; color: #a3242a; }
.chat-drivers--wide .chat-driver { grid-template-columns: 150px 1fr 72px; }
.chat-text { color: var(--fg) !important; }
.chat-drivers { display: grid; gap: 10px; }
.chat-text + .chat-drivers { margin-top: 14px; }
.chat-driver { display: grid; grid-template-columns: 32px 1fr 76px; align-items: center; gap: 12px; font-size: 13px; }
.chat-driver span { font-weight: 600; color: var(--fg); }
.chat-driver i { height: 10px; width: var(--w); border-radius: 999px; background: var(--grad); transform-origin: left; }
.chat-driver b { text-align: right; font-weight: 600; color: var(--success); }
.chat-action { display: flex; gap: 12px; align-items: flex-start; }
.chat-action + .chat-action { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.chat-action p { font-size: 14px; color: var(--fg-secondary) !important; }
.chat-action strong { color: var(--fg); }
.chat-pill { flex: none; padding: 2px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 600; }
.chat-action--high .chat-pill { background: #fdecec; color: #a3242a; }
/* Bars and driver lines grow in once their answer appears. */
.chat.is-playing .is-shown .hero-shot-bars span { animation: grow-y .7s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i) * 60ms + 200ms); }
.chat.is-playing .is-shown .chat-driver i { animation: grow-x .8s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i) * 120ms + 250ms); }
/* One turn fills the window: while playing, only the current .chat-turn is
   displayed, at full height. The answer card takes the leftover space and
   its visual (bars, tiles, drivers) stretches into it, so every turn looks
   equally full whether it holds a chart or three numbers. */
.chat-turn { display: flex; flex-direction: column; gap: 14px; }
.chat.is-playing { height: 560px; padding: 0; overflow: hidden; }
.chat.is-playing .chat-turn { display: none; }
.chat.is-playing .chat-turn.is-current { display: flex; height: 100%; padding: 28px; animation: chat-in .5s cubic-bezier(.2, .7, .2, 1) both; }
.chat.is-playing .chat-turn.is-leaving { animation: turn-out .4s ease both; }
@keyframes turn-out { to { opacity: 0; transform: translateY(-24px); } }
.chat.is-playing .chat-answer { flex: 1; display: flex; flex-direction: column; width: 100%; min-height: 0; padding: 24px 26px; }
.chat.is-playing .hero-shot-bars { flex: 1; height: auto; min-height: 120px; }
.chat.is-playing .chat-stats { flex: 1; }
.chat.is-playing .chat-stat { display: flex; flex-direction: column; justify-content: center; }
.chat.is-playing .chat-stat-value { font-size: 40px; }
.chat.is-playing .chat-drivers { flex: 1; align-content: space-evenly; }
.chat.is-playing .chat-driver i { height: 14px; }
.chat.is-playing .chat-action { flex: 1; align-items: center; }
.chat.is-playing .chat-action p { font-size: 15px; }
.chat.is-playing .chat-next { margin-top: auto !important; }
.chat.is-playing .chat-answer > :not(.chat-next):last-of-type { margin-bottom: 16px; }

/* Dark window: the hero replay sits on deep navy so the violet-blue data
   pops against the light page. Scoped to .hero-shot so the light "Ask"
   panel further down keeps the default chat styles. */
.hero .hero-shot { background: #0b0930; border-color: rgba(255, 255, 255, .1); box-shadow: 0 2px 4px rgba(18, 15, 46, .1), 0 50px 100px -30px rgba(30, 20, 120, .65); }
.hero-shot .window-bar { background: #100d3a; border-color: rgba(255, 255, 255, .08); color: #a19dc4; }
.hero-shot .window-dot { background: rgba(255, 255, 255, .2); }
.hero-shot .chat-badge { background: rgba(143, 134, 255, .18); color: #cdc7ff; }
.hero-shot .chat { background: radial-gradient(70% 50% at 100% 0%, rgba(90, 76, 240, .30), transparent 70%), radial-gradient(60% 50% at 0% 100%, rgba(59, 124, 246, .22), transparent 70%), #0b0930; }
.hero-shot .chat-thinking { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); color: #c9c6e3; }
.hero-shot .chat-answer { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .1); box-shadow: none; }
.hero-shot .hero-shot-label { color: #a19dc4 !important; }
.hero-shot .chat-big, .hero-shot .chat-stat-value, .hero-shot .chat-text, .hero-shot .chat-next,
.hero-shot .chat-driver span, .hero-shot .chat-action strong { color: #fff !important; }
.hero-shot .chat-action p { color: #c9c6e3 !important; }
.hero-shot .chat-axis span, .hero-shot .chat-meta { color: #8f8bb3 !important; }
.hero-shot .chat-delta { background: rgba(52, 211, 153, .16); color: #6ee7b7; }
.hero-shot .chat-delta--flat { background: rgba(255, 255, 255, .08); color: #c9c6e3; }
.hero-shot .chat-delta--down { background: rgba(248, 113, 113, .16); color: #fca5a5; }
.hero-shot .chat-stat { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); }
.hero-shot .hero-shot-bars { border-color: rgba(255, 255, 255, .12); }
.hero-shot .hero-shot-bars span { background: rgba(143, 134, 255, .3); }
.hero-shot .hero-shot-bars span:last-child { background: linear-gradient(180deg, #9d8cff, #4f8bff); }
.hero-shot .chat-driver i { background: linear-gradient(90deg, #8f7dff, #4f8bff); }
.hero-shot .chat-driver b { color: #6ee7b7; }
.hero-shot .chat-pill { background: rgba(143, 134, 255, .2); color: #cdc7ff; }
.hero-shot .chat-action--high .chat-pill { background: rgba(248, 113, 113, .16); color: #fca5a5; }
.hero-shot .chat-action + .chat-action { border-color: rgba(255, 255, 255, .1); }
.hero-shot .chat-next { border-color: rgba(255, 255, 255, .16); }
.hero-shot .chat-next::before { color: #a99cff; }

/* Hover a bar to read its value. The replay pauses while the pointer is
   over the window (initChatDemo), so the tooltip never vanishes mid-read. */
.hero-shot [data-tip] { position: relative; cursor: default; transition: filter .15s; }
.hero-shot [data-tip]:hover { filter: brightness(1.35); }
.hero-shot [data-tip]::after {
  content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 8px); z-index: 2;
  padding: 6px 10px; border-radius: 8px; background: #fff; color: var(--ink);
  font: 600 12px/1.2 var(--font); white-space: nowrap; pointer-events: none;
  box-shadow: 0 8px 20px -6px rgba(0, 0, 0, .5);
  opacity: 0; transform: translate(-50%, 4px); transition: opacity .15s, transform .15s;
}
.hero-shot [data-tip]:hover::after { opacity: 1; transform: translate(-50%, 0); }

@keyframes grow-y { from { transform: scaleY(0); } }
@keyframes grow-x { from { transform: scaleX(0); } }

/* ---------- Window chrome (hero shot, how screens, modal) ---------- */
.window-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--bg-elevated);
  color: var(--fg-tertiary); font-size: 11px; font-weight: 600; letter-spacing: .12em;
}
.window-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.window-dot:last-of-type { margin-right: 8px; }
.chip {
  display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 600;
}
.how-suggestions { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- How it works: dark band, sticky steps ----------
   Plain document scroll throughout (no hijacking): the left column is
   position: sticky, the right panels scroll normally, and initFlow() only
   moves the highlight. Below 900px it collapses to stacked panels. */
.how {
  background:
    radial-gradient(50% 40% at 15% 0%, rgba(90, 76, 240, .40), transparent 70%),
    radial-gradient(45% 45% at 100% 70%, rgba(59, 124, 246, .30), transparent 70%),
    #0b0930;
  color: #fff;
}
.flow { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: start; }
.flow-intro { position: sticky; top: calc(var(--nav-h) + 48px); }
.how .eyebrow { margin-left: 0; color: #b9b1ff; }
.how .flow-intro h2 {
  margin: 0 0 20px; text-align: left; font-size: clamp(32px, 4vw, 52px);
  background: linear-gradient(120deg, #b3a8ff 0%, #8f86ff 45%, #6fa6ff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.how .flow-sub { color: #c9c6e3; font-size: 17px; max-width: 460px; }
.flow-tabs { display: grid; gap: 4px; margin-top: 40px; border-left: 1px solid rgba(255, 255, 255, .14); }
.flow-tab {
  position: relative; display: flex; align-items: center; gap: 14px;
  margin-left: -1px; padding: 14px 18px; border-left: 2px solid transparent;
  color: #a19dc4; text-decoration: none; font-size: 18px; font-weight: 600;
  transition: color .25s, border-color .25s, background-color .25s;
}
.flow-tab:hover { color: #fff; }
.flow-tab.is-active { color: #fff; border-left-color: #8f86ff; background: linear-gradient(90deg, rgba(143, 134, 255, .16), transparent); }
.flow-tab-num { font-size: 12px; font-weight: 700; color: #8f86ff; letter-spacing: .06em; }
.flow-panels { display: grid; gap: 96px; padding: 24px 0; }
.flow-panel { scroll-margin-top: calc(var(--nav-h) + 48px); }
.flow-step { color: #b9b1ff !important; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.how .flow-panel h3 { margin: 10px 0 8px; font-size: 26px; color: #fff; }
.how .flow-panel > p:not(.flow-step) { color: #c9c6e3; max-width: 560px; }
.flow-visual {
  margin-top: 28px; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--bg-elevated); color: var(--fg);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 40px 80px -30px rgba(0, 0, 0, .7), 0 0 80px -20px rgba(110, 96, 255, .45);
}
.flow-visual-body { padding: 24px; min-height: 300px; background: var(--bg-soft); display: grid; gap: 14px; align-content: start; }
.flow-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.flow-list li {
  display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 16px;
  padding: 12px 14px; border-radius: 12px; background: var(--bg-elevated); border: 1px solid var(--line); font-size: 14px;
}
.flow-list span { color: var(--fg-tertiary); font-size: 13px; }
.flow-list em { display: inline-flex; align-items: center; gap: 6px; font-style: normal; font-size: 12px; font-weight: 600; color: var(--success); }
.flow-list em i { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px #e3f6ec; }
.flow-list--checks li { grid-template-columns: auto 1fr; font-weight: 500; }
.flow-list--checks svg { width: 18px; height: 18px; padding: 3px; border-radius: 50%; color: #fff; background: var(--success); }
.flow-list--checks .is-flag { background: #fff7e8; border-color: #f4dfb5; color: #7a4b00; }
.flow-list--checks .is-flag svg { background: #c77700; }
.flow-visual-body--ask .chat-msg { justify-self: end; }
.flow-answer { padding: 18px 20px; border: 1px solid var(--line); border-radius: 4px 18px 18px 18px; background: var(--bg-elevated); }
.flow-report { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-elevated); display: grid; gap: 4px; }
.flow-report-title { font-weight: 700; font-size: 17px; color: var(--fg) !important; }
.flow-report dl { margin: 12px 0 14px; display: grid; gap: 0; }
.flow-report dl div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.flow-report dt { color: var(--fg-secondary); }
.flow-report dd { margin: 0; font-weight: 600; }
.flow-report dd span { margin-left: 6px; font-size: 12px; font-weight: 600; color: var(--accent); }
@media (max-width: 900px) {
  .flow { grid-template-columns: 1fr; gap: 40px; }
  .flow-intro { position: static; }
  .flow-tabs { display: none; }
  .flow-panels { gap: 64px; padding: 0; }
}
@media (max-width: 560px) {
  .flow-visual-body { padding: 14px; min-height: 0; }
  .flow-list li { grid-template-columns: 1fr auto; }
  .flow-list li span { display: none; }
}

/* ---------- Capabilities ---------- */
.capability-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.capability-card {
  position: relative; overflow: hidden; padding: 36px;
  background: linear-gradient(160deg, var(--bg-soft), var(--bg-elevated) 60%);
}
.capability-card h3 { font-size: 22px; }
.capability-icon {
  display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 40px;
  border-radius: 14px; background: var(--grad); color: #fff;
  box-shadow: 0 10px 24px -10px rgba(90, 76, 240, .7);
}
.capability-icon svg { width: 24px; height: 24px; }

/* ---------- Connector ---------- */
.connector { background: var(--bg-soft); }
.connector-inner { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: center; }
.connector-copy .eyebrow { margin-left: 0; }
.connector .connector-copy h2 { text-align: left; margin: 0 0 20px; }
.connector-copy p:not(.eyebrow) { font-size: 17px; }
.connector-note { margin-top: 16px !important; font-weight: 600; color: var(--accent) !important; }
.tool-chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tool-chip { padding: 16px 18px; border-radius: 14px; }
.tool-chip-name { display: block; font-weight: 600; font-size: 15px; color: var(--fg); }
.tool-chip p { font-size: 13px; color: var(--fg-tertiary) !important; }
.tool-chip--accent { background: var(--grad); border-color: transparent; }
.tool-chip--accent .tool-chip-name, .tool-chip--accent p { color: #fff !important; }

/* ---------- Trust (dark band, like the reference's contrast section) ---------- */
.trust {
  background:
    radial-gradient(50% 60% at 20% 0%, rgba(90, 76, 240, .45), transparent 70%),
    radial-gradient(50% 60% at 90% 100%, rgba(59, 124, 246, .35), transparent 70%),
    #0e0b26;
  color: #fff;
}
.trust .eyebrow { color: #b9b1ff; }
.trust h2 { color: #fff; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.trust-card { padding: 28px; background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .12); box-shadow: none; }
.trust-card:hover { border-color: rgba(185, 177, 255, .5); box-shadow: none; }
.trust-card h3 { color: #fff; }
.trust .trust-card p { color: #c9c6e3; }
.trust-icon { width: 28px; height: 28px; margin-bottom: 24px; color: #b9b1ff; }

/* ---------- What you can ask ---------- */
.metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.metric-tile { position: relative; padding: 28px; display: grid; gap: 14px; align-content: start; }
.metric-question { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; color: var(--fg) !important; }
.sparkline { width: 100%; height: 36px; color: var(--accent); }
.metric-tile--accent { background: var(--grad); border-color: transparent; }
.metric-tile--accent .metric-question, .metric-tile--accent p, .metric-tile--accent .sparkline { color: #fff !important; }
.metric-tag {
  position: absolute; top: 20px; right: 20px; padding: 3px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .2); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .08em;
}

/* ---------- Who ---------- */
.who { background: var(--bg-soft); border-top: 1px solid var(--line); }
.persona-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.persona { padding: 32px; border-top: 3px solid var(--accent); }
.persona:nth-child(2) { border-top-color: #7b6cf6; }
.persona:nth-child(3) { border-top-color: var(--accent-2); }
.who-note { margin-top: 40px !important; text-align: center; }

/* ---------- FAQ (native <details> accordion) ---------- */
.faq-list { max-width: 820px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 24px 4px; cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { margin: 0; font-size: 18px; font-weight: 600; }
.faq-item summary::after {
  content: "+"; flex: none; display: grid; place-items: center; width: 30px; height: 30px;
  border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 20px; line-height: 1;
  transition: transform .2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover h3 { color: var(--accent); }
.faq-item p { padding: 0 52px 24px 4px; }

/* ---------- Closing CTA ---------- */
.cta-footer { padding: 0 0 112px !important; }
.cta-inner {
  max-width: 1152px; padding: 88px 32px; border-radius: var(--radius-lg); text-align: center;
  background:
    radial-gradient(60% 80% at 0% 0%, rgba(255, 255, 255, .22), transparent 60%),
    var(--grad);
  box-shadow: var(--shadow-lg);
}
.cta-footer h2 { color: #fff; margin-bottom: 16px; }
.cta-footer .cta-sub { color: rgba(255, 255, 255, .88); font-size: 18px; }
.cta-footer .btn--accent { background: #fff; color: var(--accent); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .35); }
.cta-footer .btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.cta-footer .btn--ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; border-color: #fff; }

/* ---------- Footer ---------- */
.site-footer { padding: 40px 0 48px; border-top: 1px solid var(--line); background: var(--bg-soft); }
.site-footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.site-footer p { font-size: 14px; color: var(--fg-tertiary); }
.site-footer a { color: var(--fg-secondary); }
.site-footer a:hover { color: var(--accent); }
.site-footer-inner p:nth-child(2) { order: 3; flex-basis: 100%; font-size: 12px; }
.analytics-choice { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 13px; color: var(--fg-tertiary); cursor: pointer; }
.analytics-choice input { width: 16px; height: 16px; accent-color: var(--accent); }

/* ---------- Lead modal ---------- */
.lead-modal[hidden], .lead-form[hidden], .lead-success[hidden], .lead-error[hidden] { display: none !important; }
body.is-lead-open { overflow: hidden; }
.lead-modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 20px; }
.lead-backdrop {
  position: absolute; inset: 0; background: rgba(14, 11, 38, .55);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.lead-card {
  position: relative; width: 100%; max-width: 460px;
  max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px);
  overflow-y: auto; overscroll-behavior: contain;
  background: var(--bg-elevated); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.lead-card:focus { outline: none; }
.lead-card .window-bar { min-height: 48px; padding-top: 0; padding-bottom: 0; }
.lead-close {
  margin-left: auto; width: 32px; height: 32px; border: 0; border-radius: 8px;
  background: transparent; color: var(--fg-tertiary); font-size: 14px; cursor: pointer;
}
.lead-close:hover { background: var(--bg-soft); color: var(--fg); }
.lead-form, .lead-success { padding: 28px; display: grid; gap: 16px; }
.lead-form h2, .lead-success h2 { font-size: 24px; }
.lead-field { display: grid; gap: 6px; }
.lead-field label { font-size: 14px; font-weight: 600; }
.lead-field input {
  min-height: 46px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 12px;
  font: 400 16px var(--font); color: var(--fg); background: var(--bg-elevated);
}
.lead-field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.lead-notice, .lead-consent, .lead-footnote { font-size: 13px; color: var(--fg-secondary); }
.lead-consent { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.lead-consent input { width: 18px; height: 18px; margin: 1px 0 0; flex: none; accent-color: var(--accent); }
.lead-error { padding: 10px 12px; border-radius: 10px; background: #fdecec; color: #a3242a; font-size: 14px; }
.lead-actions { display: flex; justify-content: flex-end; gap: 10px; }
.lead-success { text-align: center; justify-items: center; }
.lead-success-value {
  display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  background: var(--grad); color: #fff; font-size: 22px; font-weight: 700;
}
.lead-success-text { color: var(--fg-secondary); }
.lead-footnote { padding: 0 28px 24px; }

/* ---------- 404 + privacy ---------- */
.notfound {
  min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 16px;
  padding: 40px 24px; text-align: center;
  background: radial-gradient(50% 40% at 50% 20%, rgba(90, 76, 240, .16), transparent 70%);
}
.notfound h1 { font-size: clamp(32px, 5vw, 52px); }
.notfound p { max-width: 520px; color: var(--fg-secondary); }
.notfound-code { color: var(--accent) !important; font-weight: 600; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
.notfound-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.privacy-page { max-width: 760px; margin: 0 auto; padding: 56px 24px 96px; }
.privacy-page h1 { font-size: clamp(32px, 5vw, 44px); margin-bottom: 12px; }
.privacy-page section { margin-top: 40px; }
.privacy-page h2 { font-size: 22px; margin-bottom: 12px; }
.privacy-page p { margin-bottom: 12px; color: var(--fg-secondary); }
.privacy-nav { display: flex; justify-content: space-between; margin-bottom: 40px; font-size: 14px; font-weight: 600; }
.privacy-nav a { text-decoration: none; }

/* ---------- Visualizations ----------
   Shared animated charts and diagrams (home tiles, flow panels, sub-pages).
   Markup comes from one generator so EN/VI stay twins. Each visual's static
   state is its final state; motion only runs under .js + no-preference and
   starts when the nearest [data-reveal] becomes .is-revealed. --i staggers. */
.viz-window {
  margin: 0; border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  background: var(--bg-elevated); box-shadow: var(--shadow-lg); overflow: hidden;
}
.viz-badge { margin-left: auto; padding: 2px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 11px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.viz-body { padding: 22px; background: linear-gradient(180deg, var(--bg-elevated), var(--bg-soft)); }
.viz-caption { margin: 0; padding: 12px 22px 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--fg-tertiary) !important; background: var(--bg-elevated); }
.vi { width: 16px; height: 16px; flex: none; }

/* Brand marks: simple-icons paths tinted with the brand colour, or monograms. */
.logo { display: inline-grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.logo svg { width: 18px; height: 18px; fill: var(--c); }
.logo--mono { background: var(--c); border-color: transparent; color: #fff; font-size: 12px; font-weight: 800; letter-spacing: -.02em; }
.logo--sm { width: 22px; height: 22px; border-radius: 6px; }
.logo--sm svg { width: 13px; height: 13px; }
.logo--sm.logo--mono { font-size: 9px; }
.logo--lg { width: 44px; height: 44px; border-radius: 12px; }
.logo--lg svg { width: 24px; height: 24px; }
.logo--lg.logo--mono { font-size: 15px; }

/* Area chart */
.viz-area { position: relative; }
.viz-area svg { display: block; width: 100%; height: auto; overflow: visible; }
.viz-grid line { stroke: var(--line); stroke-dasharray: 3 4; }
.viz-line { fill: none; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.viz-dot { fill: #fff; stroke: var(--accent); stroke-width: 2; }
.viz-dot.is-last { fill: var(--accent-2); stroke: #fff; stroke-width: 2.5; }
.viz-tag {
  position: absolute; transform: translate(-100%, -150%); padding: 4px 10px; border-radius: 999px; white-space: nowrap;
  background: var(--ink); color: #fff; font-size: 12px; font-weight: 600; box-shadow: var(--shadow);
}
.viz-axis { display: flex; justify-content: space-between; margin-top: 6px; font-size: 11px; color: var(--fg-tertiary); }

/* Horizontal bars */
.viz-hbars { display: grid; gap: 12px; }
.viz-hbar { display: grid; grid-template-columns: minmax(96px, 34%) 1fr auto; align-items: center; gap: 12px; font-size: 13px; }
.viz-hbar-label { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--fg); }
.viz-track { height: 12px; border-radius: 999px; background: var(--accent-soft); overflow: hidden; }
.viz-track i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: var(--grad); transform-origin: left; box-shadow: 0 4px 10px -4px rgba(90, 76, 240, .6); }
.viz-hbar b { font-weight: 700; color: var(--fg); font-variant-numeric: tabular-nums; }

/* Donut + rings (circumference 100, so dash = percent) */
.viz-donut { display: flex; align-items: center; gap: 22px; }
.viz-donut-ring { position: relative; width: 150px; flex: none; }
.viz-donut-ring svg, .viz-ring svg { display: block; width: 100%; transform: rotate(0deg); }
.viz-arc-bg { fill: none; stroke: var(--accent-soft); stroke-width: 6; }
.viz-arc { fill: none; stroke: var(--accent); stroke-width: 6; stroke-linecap: butt; }
.viz-donut-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.viz-donut-center strong { font-size: 26px; letter-spacing: -.03em; color: var(--fg); }
.viz-donut-center span { font-size: 11px; color: var(--fg-tertiary); }
.viz-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 13px; color: var(--fg-secondary); }
.viz-legend li { display: flex; align-items: center; gap: 8px; }
.viz-legend li > i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.viz-legend b { margin-left: auto; padding-left: 12px; color: var(--fg); font-variant-numeric: tabular-nums; }
.viz-legend--grid { grid-template-columns: 1fr 1fr; column-gap: 20px; }
.viz-rings { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.viz-ring { position: relative; display: grid; justify-items: center; text-align: center; gap: 2px; }
.viz-ring svg { width: 86px; }
.viz-ring .viz-arc { stroke: var(--accent); stroke-linecap: round; }
.viz-ring:nth-child(2) .viz-arc { stroke: var(--accent-2); }
.viz-ring:nth-child(3) .viz-arc { stroke: #8b7cf8; }
.viz-ring strong { position: absolute; top: 30px; font-size: 18px; color: var(--fg); }
.viz-ring span { font-size: 13px; font-weight: 600; color: var(--fg); }
.viz-ring em { font-style: normal; font-size: 11px; color: var(--fg-tertiary); }

/* Funnel */
.viz-funnel { display: grid; gap: 6px; }
.viz-fstep { display: grid; grid-template-columns: 112px 1fr 56px; align-items: center; gap: 12px; height: 36px; font-size: 13px; }
.viz-fstep i {
  grid-column: 2; grid-row: 1; justify-self: center; width: var(--w); height: 100%; border-radius: 10px;
  background: linear-gradient(90deg, #6f62f5, #4f8bff); opacity: calc(1 - var(--i) * .13); transform-origin: center;
  box-shadow: 0 6px 14px -8px rgba(90, 76, 240, .7);
}
.viz-fstep span { grid-column: 1; grid-row: 1; font-weight: 600; color: var(--fg); }
.viz-fstep b { grid-column: 3; grid-row: 1; text-align: right; font-weight: 700; color: var(--fg); font-variant-numeric: tabular-nums; }
.viz-fstep em { display: none; }
.viz-fstep:last-child em { display: block; grid-column: 2; grid-row: 1; justify-self: center; position: relative; color: #fff; font-style: normal; font-size: 12px; font-weight: 700; }

/* KPI tiles */
.viz-kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.viz-kpi { padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-elevated); display: grid; gap: 2px; }
.viz-kpi span { font-size: 12px; color: var(--fg-tertiary); }
.viz-kpi strong { font-size: 22px; letter-spacing: -.02em; color: var(--fg); }
.viz-kpi em, .viz-report em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--fg-tertiary); }
.is-up { color: var(--success) !important; }
.is-down { color: #c2410c !important; }

/* Columns with baseline */
.viz-cols-plot { position: relative; height: 150px; display: flex; align-items: flex-end; gap: 4px; }
.viz-cols-plot i { flex: 1; height: var(--h); border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, #8f7dff, #4f8bff); transform-origin: bottom; }
.viz-cols-plot i.is-flag { background: linear-gradient(180deg, #fb923c, #f43f5e); }
.viz-cols-plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.viz-cols-plot polyline { fill: none; stroke: var(--ink); stroke-width: 2; stroke-dasharray: .015 .012; opacity: .55; }

/* Treemap */
.viz-tm { display: flex; gap: 6px; height: 210px; }
.viz-tm-col { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.viz-tm-cell { display: flex; flex-direction: column; justify-content: flex-end; min-height: 0; padding: 10px 12px; border-radius: 12px; background: linear-gradient(140deg, #8b7cf8, #5a8dfb); color: #fff; overflow: hidden; }
.viz-tm-big { flex-shrink: 0; background: var(--grad); }
.viz-tm-cell:nth-child(2n) { background: linear-gradient(140deg, #6aa5ff, #3b7cf6); }
.viz-tm-cell:nth-child(3n) { background: linear-gradient(140deg, #a5b4fc, #7c8cf8); }
.viz-tm-cell strong { font-size: 15px; line-height: 1.1; }
.viz-tm-big strong { font-size: 30px; }
.viz-tm-cell span { font-size: 12px; opacity: .9; }

/* Stacked bar */
.viz-stacked-bar { display: flex; gap: 3px; height: 26px; margin-bottom: 16px; border-radius: 999px; overflow: hidden; }
.viz-stacked-bar i { transform-origin: left; }

/* Chat */
.viz-chat { display: grid; gap: 12px; }
.viz-q { justify-self: end; max-width: 85%; margin: 0; padding: 10px 14px; border-radius: 16px 16px 4px 16px; background: var(--grad); color: #fff !important; font-size: 14px; font-weight: 500; }
.viz-a { display: flex; gap: 10px; align-items: flex-start; }
.viz-a > div { flex: 1; padding: 14px; border: 1px solid var(--line); border-radius: 4px 16px 16px 16px; background: var(--bg-elevated); }
.viz-a-mark, .viz-hub-mark { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 10px; background: var(--ink); color: #f5c542; font-weight: 800; }

/* Code */
.viz-code pre { margin: 0; padding: 16px 18px; border-radius: 14px; background: #120f2e; color: #d6d3ff; font: 12.5px/1.65 ui-monospace, SFMono-Regular, Menlo, monospace; overflow-x: auto; }
.viz-ln { display: block; white-space: pre; }
.viz-code .k { color: #9fb6ff; } .viz-code .s { color: #8ee6b8; } .viz-code .c { color: #8b87b5; } .viz-code .n { color: #ffc98a; }
.viz-pop { display: inline-flex; align-items: center; gap: 6px; margin: 12px 0 0; padding: 6px 12px; border-radius: 999px; background: #e7f7ef; color: var(--success) !important; font-size: 13px; font-weight: 600; }

/* Flow map: sources -> hub -> outputs */
.viz-flow { position: relative; display: grid; grid-template-columns: 12% 1fr 18%; align-items: stretch; min-height: 280px; }
.viz-flow > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.viz-flow > svg path { fill: none; stroke: #a99ff8; stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-dasharray: 4 6; }
.viz-flow > svg path.is-out { stroke: #7fa8f9; }
.viz-flow ul { position: relative; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; justify-content: space-around; }
.viz-flow-src { align-items: flex-start; }
.viz-flow-out { align-items: flex-end; }
.viz-flow-out li { display: grid; justify-items: center; gap: 4px; font-size: 11px; font-weight: 600; color: var(--fg-secondary); }
.viz-flow-out li svg { width: 34px; height: 34px; padding: 8px; border-radius: 10px; background: var(--grad); color: #fff; }
.viz-hub { position: relative; align-self: center; justify-self: center; display: grid; justify-items: center; gap: 6px; padding: 16px 18px; border-radius: 20px; background: var(--bg-elevated); border: 1px solid var(--line-strong); box-shadow: 0 0 0 8px rgba(90, 76, 240, .08), var(--shadow); font-size: 12px; font-weight: 700; color: var(--fg); }
.viz-hub .viz-hub-mark { width: 44px; height: 44px; font-size: 22px; border-radius: 14px; }

/* Pipeline */
.viz-pipe { display: flex; align-items: center; gap: 0; }
.viz-pipe-node { flex: 1 1 0; min-width: 0; display: grid; justify-items: center; gap: 4px; padding: 12px 4px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-elevated); text-align: center; overflow-wrap: anywhere; }
.viz-pipe-node svg { width: 30px; height: 30px; padding: 7px; border-radius: 9px; background: var(--grad); color: #fff; }
.viz-pipe-node strong { font-size: 12px; color: var(--fg); }
.viz-pipe-node span { font-size: 11px; color: var(--fg-tertiary); }
.viz-pipe-link { flex: 0 0 12px; height: 2px; background: repeating-linear-gradient(90deg, var(--accent) 0 5px, transparent 5px 9px); background-size: 9px 2px; }

/* Before/after cleaning */
.viz-clean { display: grid; gap: 8px; }
.viz-clean-row { display: grid; grid-template-columns: 1fr 20px 1fr; align-items: center; gap: 8px; font-size: 13px; }
.viz-before { padding: 9px 12px; border-radius: 10px; background: #fff4ec; color: #9a3412; text-decoration: line-through; text-decoration-color: rgba(154, 52, 18, .5); }
.viz-arrow { color: var(--fg-tertiary); text-align: center; }
.viz-after { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-radius: 10px; background: var(--bg-elevated); border: 1px solid var(--line); color: var(--fg); font-weight: 600; }
.viz-after svg { color: var(--success); }

/* Report email */
.viz-report { padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg-elevated); box-shadow: var(--shadow-sm); }
.viz-report-head { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.viz-report-head > svg { width: 36px; height: 36px; padding: 9px; border-radius: 10px; background: var(--grad); color: #fff; }
.viz-report-head strong { display: block; font-size: 14px; color: var(--fg); }
.viz-report-head span { font-size: 12px; color: var(--fg-tertiary); }
.viz-sent { margin-left: auto; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #e7f7ef; color: var(--success); }
.viz-report dl { margin: 6px 0 0; }
.viz-report dl div { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.viz-report dt { color: var(--fg-secondary); }
.viz-report dd { margin: 0; font-weight: 700; color: var(--fg); }
.viz-report dd em { margin-left: 8px; }
.viz-alert { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; padding: 9px 12px; border-radius: 10px; background: #fff4ec; color: #9a3412 !important; font-size: 12.5px; font-weight: 600; }
.viz-chips { display: flex; gap: 6px; margin-top: 12px; }

/* Steps timeline */
.viz-steps { position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.viz-steps::before { content: ""; position: absolute; left: 15px; top: 16px; bottom: 16px; width: 2px; background: var(--grad); transform-origin: top; }
.viz-steps li { position: relative; display: flex; gap: 14px; align-items: flex-start; }
.viz-step-dot { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--grad); color: #fff; font-size: 13px; font-weight: 700; box-shadow: 0 0 0 4px var(--bg-elevated); }
.viz-steps strong { display: block; font-size: 14px; color: var(--fg); }
.viz-steps li > div > span { font-size: 13px; color: var(--fg-tertiary); }

/* Question chips, compare, consent, logos, faq */
.viz-qchips { display: flex; flex-wrap: wrap; gap: 8px; }
.viz-qchips span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--bg-elevated); font-size: 13px; font-weight: 500; color: var(--fg); }
.viz-qchips svg { color: var(--accent); }
.viz-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.viz-compare > div { padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-elevated); }
.viz-compare > div:last-child { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.viz-compare p { margin: 0 0 8px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--fg-tertiary) !important; }
.viz-compare ul, .viz-consent ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 13px; color: var(--fg); }
.viz-compare li, .viz-consent li { display: flex; gap: 8px; align-items: flex-start; }
.viz-compare .is-bad svg { color: #c2410c; } .viz-compare .is-good svg, .viz-consent li svg { color: var(--success); }
.viz-consent-box { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-elevated); font-size: 13px; color: var(--fg) !important; }
.viz-consent-box i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--grad); color: #fff; }
.viz-logos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.viz-logo-tile { display: grid; justify-items: start; gap: 6px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-elevated); }
.viz-logo-tile strong { font-size: 14px; color: var(--fg); }
.viz-logo-tile span { font-size: 12px; color: var(--fg-tertiary); }
.viz-faq { display: grid; gap: 8px; }
.viz-faq-item { padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-elevated); }
.viz-faq-item strong { font-size: 14px; color: var(--fg); }
.viz-faq-item p { display: none; margin: 6px 0 0; font-size: 13px; }
.viz-faq-item.is-open { border-color: var(--accent); }
.viz-faq-item.is-open p { display: block; }

/* Motion. Each rule replays the build-up once the visual is revealed. */
@keyframes viz-draw { from { stroke-dashoffset: 1; } }
@keyframes viz-in { from { opacity: 0; transform: translateY(10px); } }
@keyframes viz-pop { from { opacity: 0; transform: scale(.4); } }
@keyframes viz-grow-x { from { transform: scaleX(0); } }
@keyframes viz-grow-y { from { transform: scaleY(0); } }
@keyframes viz-arc { from { stroke-dasharray: 0 100; } }
@keyframes viz-dash { to { stroke-dashoffset: -20; } }
@keyframes viz-belt { to { background-position: 18px 0; } }
@keyframes viz-glow { 50% { box-shadow: 0 0 0 16px rgba(90, 76, 240, 0), var(--shadow); } }
@keyframes viz-type { from { clip-path: inset(0 100% 0 0); } }
@media (prefers-reduced-motion: no-preference) {
  .js .is-revealed .viz-line { animation: viz-draw 1.6s cubic-bezier(.3, .6, .2, 1) .2s both; }
  .js .is-revealed .viz-fill { animation: viz-in 1s ease .6s both; }
  .js .is-revealed .viz-dot { animation: viz-pop .4s ease both; animation-delay: calc(var(--i) * 140ms + 300ms); transform-box: fill-box; transform-origin: center; }
  .js .is-revealed .viz-tag { animation: viz-in .5s ease 1.6s both; }
  .js .is-revealed .viz-track i, .js .is-revealed .viz-stacked-bar i { animation: viz-grow-x .9s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i) * 120ms + 200ms); }
  .js .is-revealed .viz-arc { animation: viz-arc 1.2s cubic-bezier(.3, .6, .2, 1) both; animation-delay: calc(var(--i) * 200ms + 200ms); }
  .js .is-revealed .viz-fstep i { animation: viz-grow-x .8s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i) * 140ms + 150ms); }
  .js .is-revealed :is(.viz-kpi, .viz-legend li, .viz-ring, .viz-fstep span, .viz-clean-row, .viz-report dl div, .viz-steps li, .viz-qchips span, .viz-compare li, .viz-consent li, .viz-logo-tile, .viz-faq-item, .viz-flow li, .viz-pipe-node, .viz-tm-cell, .viz-term) {
    animation: viz-in .5s ease both; animation-delay: calc(var(--i, 0) * 110ms + 200ms);
  }
  .js .is-revealed .viz-cols-plot i { animation: viz-grow-y .7s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i) * 50ms + 150ms); }
  .js .is-revealed .viz-cols-plot polyline { animation: viz-in .6s ease 1.2s both; }
  .js .is-revealed .viz-ln { animation: viz-type .5s steps(24) both; animation-delay: calc(var(--i) * 260ms + 200ms); }
  .js .is-revealed .viz-pop, .js .is-revealed .viz-sent, .js .is-revealed .viz-alert { animation: viz-pop .45s cubic-bezier(.3, 1.5, .5, 1) both; animation-delay: calc(var(--i, 6) * 260ms + 300ms); }
  .js .is-revealed .viz-q { animation: viz-in .5s ease .2s both; }
  .js .is-revealed .viz-a { animation: viz-in .5s ease .8s both; }
  .js .is-revealed .viz-steps::before { animation: viz-grow-y 1.4s ease .2s both; }
  .js .is-revealed .viz-faq-item.is-open p { animation: viz-in .5s ease .8s both; }
  .js .is-revealed .viz-consent-box i { animation: viz-pop .45s cubic-bezier(.3, 1.5, .5, 1) .5s both; }
  /* Continuous: data keeps moving through the flow map and pipeline. */
  .js .viz-flow > svg path { animation: viz-dash 1.2s linear infinite; }
  .js .viz-hub { animation: viz-glow 2.4s ease-in-out infinite; }
  .js .viz-pipe-link { animation: viz-belt .8s linear infinite; }
}
@media (max-width: 560px) {
  .viz-donut { flex-direction: column; align-items: stretch; }
  .viz-donut-ring { margin: 0 auto; }
  .viz-logos { grid-template-columns: 1fr 1fr; }
  .viz-compare, .viz-legend--grid { grid-template-columns: 1fr; }
  .viz-body { padding: 16px; }
  .viz-pipe { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .viz-pipe-link { display: none; }
}

.viz-glossary { display: grid; gap: 8px; }
.viz-search { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--bg-elevated); font-size: 13px; color: var(--fg-tertiary) !important; }
.viz-search svg { color: var(--accent); }
.viz-term { padding: 12px 14px; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 12px; background: var(--bg-elevated); }
.viz-term strong { font-size: 14px; color: var(--fg); }
.viz-term p { margin: 2px 0 4px; font-size: 13px; }
.viz-term span { font-size: 11px; font-weight: 600; color: var(--accent); }
.viz-term--inline { margin-top: 12px; background: var(--bg-soft); }
.viz-sub { margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-tertiary) !important; }
.viz-lead { margin: 0 0 14px; font-size: 14px; color: var(--fg) !important; }
.viz-stack { display: grid; gap: 18px; }
.viz-mail > p { display: flex; gap: 10px; margin: 0; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--fg) !important; }
.viz-mail > p span { width: 64px; color: var(--fg-tertiary); }
.viz-mail .viz-code { margin-top: 12px; }
.viz-mail code { font-family: inherit; }
.viz-mail .viz-code pre { background: var(--bg-elevated); color: var(--fg); border: 1px solid var(--line); font-family: inherit; font-size: 14px; }

/* ---------- Sub-page feature rows: copy beside an animated example ---------- */
.features { padding-top: 24px !important; }
.feature-list { display: grid; gap: 112px; }
.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; scroll-margin-top: calc(var(--nav-h) + 24px); }
.feature:nth-child(even) .feature-copy { order: 2; }
.feature-copy .capability-icon { margin-bottom: 20px; }
.feature-num { margin: 0 0 6px; font-size: 13px; font-weight: 700; letter-spacing: .08em; color: var(--accent) !important; }
main > section .feature-copy h2 { margin: 0 0 14px; max-width: none; text-align: left; font-size: clamp(28px, 3vw, 40px); }
.feature-copy > p:not(.feature-num) { font-size: 17px; }

/* Home: richer flow panels, capability visuals, logo chips, chart tiles */
.flow-points { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.flow-points li { display: flex; gap: 10px; align-items: flex-start; color: #c9c6ee; font-size: 15px; }
.flow-points svg { margin-top: 3px; color: #8ee6b8; }
.flow-panel .viz-window { margin-top: 28px; }
.cap-viz { margin-top: 28px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-soft); }
.cap-viz .viz-flow { min-height: 200px; }
.connector-points { list-style: none; margin: 20px 0; padding: 0; display: grid; gap: 10px; }
.connector-points li { display: flex; gap: 10px; align-items: center; font-weight: 500; color: var(--fg); }
.connector-points svg { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); }
.tool-chip { display: flex; align-items: center; gap: 12px; }
.tool-chip--accent .logo { background: rgba(255, 255, 255, .2); color: #fff; }
.metric-viz { padding: 16px; border-radius: 14px; background: linear-gradient(180deg, var(--bg-soft), var(--bg-elevated)); border: 1px solid var(--line); min-height: 200px; display: grid; align-content: center; }
.metric-viz .viz-report { box-shadow: none; }
.metric-tile--auto .metric-tag { background: var(--grad); }
.metric-viz .viz-fstep { grid-template-columns: 92px 1fr 40px; gap: 8px; font-size: 12px; height: 30px; }
.metric-viz .viz-donut { gap: 16px; }
.metric-viz .viz-donut-ring { width: 118px; }
.metric-viz .viz-donut-center strong { font-size: 20px; }
.metric-viz .viz-donut-center span { font-size: 9px; }
.metric-viz .viz-legend li { flex-wrap: wrap; }
.metric-viz .viz-hbar { grid-template-columns: 118px 1fr auto; }
.metric-note { margin-top: 28px; text-align: center; font-size: 13px; color: var(--fg-tertiary) !important; }
@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; gap: 32px; }
  .feature:nth-child(even) .feature-copy { order: 0; }
  .feature-list { gap: 80px; }
}

/* Item pages: one example, full width, then links to the other items. */
main > section .feature-copy h2 a { color: inherit; text-decoration: none; }
main > section .feature-copy h2 a:hover { color: var(--accent); }
.page-hero .eyebrow a { color: inherit; text-decoration: none; }
.page-hero .eyebrow a::before { content: "← "; }
.item-detail { padding-top: 16px !important; }
.item-visual { max-width: 880px; }
.item-action { margin-top: 28px; text-align: center; }
.related h2 { margin-bottom: 32px !important; font-size: clamp(24px, 3vw, 34px) !important; }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.related-card { display: grid; gap: 8px; align-content: start; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-elevated); text-decoration: none; transition: transform .2s, box-shadow .2s, border-color .2s; }
.related-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--accent); }
.related-card .capability-icon { margin-bottom: 8px; }
.related-card strong { font-size: 17px; color: var(--fg); }
.related-card > span:last-child { font-size: 14px; color: var(--fg-secondary); }
@media (max-width: 900px) { .related-grid { grid-template-columns: 1fr; } }

/* ---------- Responsive ---------- */
@media (pointer: coarse) {
  .nav-trigger, .nav-plain, .nav-menu a, .lang-toggle a, .btn, .nav-toggle, .lead-close { min-height: 44px; min-width: 44px; }
  .lang-toggle a { display: inline-grid; place-items: center; }
}
@media (max-width: 1100px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .metric-grid, .persona-grid { grid-template-columns: 1fr 1fr; }
  .connector-inner { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: var(--nav-h); left: 0; right: 0; margin: 0;
    flex-direction: column; gap: 0; padding: 8px 16px 16px;
    background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    display: none;
  }
  .is-nav-open .nav-links { display: flex; max-height: calc(100vh - var(--nav-h)); overflow-y: auto; }
  /* Mobile: tab label is a tap target that expands its boxes inline. */
  .nav-trigger, .nav-plain { width: 100%; justify-content: space-between; padding: 12px; border-radius: 10px; font-size: 16px; }
  .nav-menu { position: static; display: none; width: auto; padding: 0; visibility: visible; opacity: 1; transform: none; }
  .nav-item.is-open .nav-menu { display: block; }
  .nav-menu::before { display: none; }
  .nav-menu a { margin: 4px 0 8px; }
  .site-nav-inner { justify-content: space-between; }
  .nav-right { margin-left: auto; }
}
@media (max-width: 860px) {
  main > section { padding: 80px 0; }
}
@media (max-width: 560px) {
  .container, .site-nav-inner { padding: 0 16px; }
  .site-nav-inner { gap: 12px; }
  /* Long VI label would push the menu toggle off-screen; Book a call stays in the hero. */
  .nav-right .btn--small { display: none; }
  .metric-grid, .persona-grid, .capability-grid, .trust-grid { grid-template-columns: 1fr; }
  .tool-chips { grid-template-columns: 1fr 1fr; }
  .hero { padding: 64px 0 80px !important; }
  .hero-shot { margin-top: 48px; border-radius: var(--radius); }
  .chat { padding: 16px; }
  .chat.is-playing { height: 540px; padding: 0; }
  .chat.is-playing .chat-turn.is-current { padding: 16px; }
  .chat.is-playing .chat-stat-value { font-size: 28px; }
  .chat-msg { max-width: 90%; }
  .chat-big { font-size: 28px; }
  .chat-badge { display: none; }
  .hero-shot-bars, .chat-axis { gap: 5px; }
  .hero-shot-bars { height: 80px; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .capability-card { padding: 28px; }
  .capability-icon { margin-bottom: 24px; }
  .cta-footer { padding-bottom: 72px !important; }
  .cta-inner { padding: 56px 20px; border-radius: var(--radius); margin: 0 16px; width: auto; }
  .faq-item p { padding-right: 4px; }
  .lead-actions { flex-direction: column-reverse; }
  .lead-actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .capability-card, .trust-card, .metric-tile, .persona, .tool-chip { transition: none; transform: none !important; }
}

/* Current shared background themes; product diagrams retain their colors. */
:root {
  color-scheme: dark;
  --bg: #0a0a0a; --bg-soft: #101010; --bg-elevated: #161616;
  --fg: #f2f2f2; --ink: #f2f2f2; --fg-secondary: #a5a5a5; --fg-tertiary: #8d8d8d;
  --line: #272727; --line-strong: #414141;
  --accent: #f2f2f2; --accent-hover: #d5d5d5; --accent-2: #bcbcbc; --accent-soft: #242424;
  --success: #6ed1a7; --on-accent: #101010; --nav-bg: rgba(10,10,10,.9);
  --grad: linear-gradient(135deg, #9a87ff, #558df5);
  --wood: #c1936d; --wood-light: #e8c8a4; --wood-rgb: 193,147,109; --wood-soft: #c1936d14;
  --data-blue: #73a1ff; --data-violet: #ad96ff; --data-teal: #6ed1a7; --particle-color: #c9d6db;
  --glass-shadow: #0009; --glass-light: #e9f2ed0e;
  --shadow-sm: 0 1px 2px #00000015; --shadow: 0 16px 40px #00000020; --shadow-lg: 0 30px 80px #00000035;
  --radius-sm: 6px; --radius: 12px; --radius-lg: 18px;
  --font: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; --nav-h: 76px;
}
:root[data-theme='light'] {
  color-scheme: light;
  --bg: #fafafa; --bg-soft: #f1f1f1; --bg-elevated: #fff;
  --fg: #151515; --ink: #151515; --fg-secondary: #5f5f5f; --fg-tertiary: #737373;
  --line: #e0e0e0; --line-strong: #c2c2c2;
  --accent: #151515; --accent-hover: #353535; --accent-2: #565656; --accent-soft: #e9e9e9;
  --success: #126d49; --on-accent: #fff; --nav-bg: rgba(250,250,250,.9);
  --grad: linear-gradient(135deg,#8772e7,#447ee8);
  --wood: #92613d; --wood-light: #b78053; --wood-rgb: 146,97,61; --wood-soft: #92613d12;
  --data-blue: #4679da; --data-violet: #8060d7; --data-teal: #16865a; --particle-color: #6a787d;
  --glass-shadow: #46302028; --glass-light: #fff8;
  --shadow: 0 16px 40px #00000008; --shadow-lg: 0 30px 80px #00000010;
}

.site-nav {background:var(--nav-bg);}
.page-hero {background:var(--bg);}
.cta-inner {background:linear-gradient(135deg,#92613d,#b88760);}
.theme-toggle{display:grid;place-items:center;width:38px;height:38px;border:1px solid var(--line);border-radius:6px;background:none;color:var(--fg);}.theme-toggle svg{width:18px;height:18px}.moon-icon,[data-theme="light"] .sun-icon{display:none}[data-theme="light"] .moon-icon{display:block}

.btn--accent {background:var(--wood);color:#17110c;box-shadow:none;} .btn--accent:hover {background:var(--wood-light);box-shadow:none;} [data-theme="light"] .btn--accent {color:white;} [data-theme="light"] .btn--accent:hover {background:#7c5031;} .hero-title-accent {background:none;color:var(--wood);}
