/* ==========================================================================
   NexovaVoice — Design System & Styles
   Monochrome-first typography (black / white / gray)
   Brand accents (teal + mint) reserved for non-text elements only.
   ========================================================================== */

:root {
  /* Neutrals — the backbone of the design */
  --ink: #0c0f12;
  --ink-2: #2b3036;
  --muted: #646a70;
  --muted-2: #8b9198;
  --soft: #f6f7f8;
  --soft-2: #eef0f2;
  --line: rgba(12, 15, 18, 0.10);
  --line-strong: rgba(12, 15, 18, 0.16);
  --white: #ffffff;

  /* Brand accents — used on icons, waveforms, gradients. Never on body text. */
  --brand: #0e8a8f;
  --brand-deep: #0a6b70;
  --brand-glow: #2fd4c6;

  --shadow-sm: 0 6px 20px rgba(12, 15, 18, 0.06);
  --shadow: 0 22px 58px rgba(12, 15, 18, 0.10);
  --shadow-lg: 0 30px 80px rgba(12, 15, 18, 0.14);
  --radius: 16px;
  --radius-lg: 24px;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --display: "Space Grotesk", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", "Cascadia Mono", "Liberation Mono", Menlo, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: #ffffff;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.12; letter-spacing: -0.025em; margin: 0; color: var(--ink); }
p { margin: 0; }

.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 2000;
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 8px;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 16px; }

.container { width: min(1200px, calc(100% - 48px)); margin-inline: auto; }
.section { padding: 92px 0; position: relative; }
[id] { scroll-margin-top: 88px; }

/* ==========================================================================
   Buttons — monochrome
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: 999px; font-weight: 600; font-size: 14px;
  border: 1.5px solid transparent; transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
  white-space: nowrap; position: relative; overflow: hidden;
}
.btn-lg { padding: 15px 28px; font-size: 15px; }
.btn-block { width: 100%; }

.btn-primary { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: 0 8px 22px rgba(12, 15, 18, 0.20); }
.btn-primary:hover { background: #232a30; border-color: #232a30; box-shadow: 0 16px 34px rgba(12, 15, 18, 0.28); }
.btn-primary:active { box-shadow: 0 6px 16px rgba(12, 15, 18, 0.22); }

.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); background: var(--soft); }

.btn-primary::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.28), transparent 60%);
  opacity: 0; transition: opacity 0.25s ease;
}
.btn-primary:hover::after { opacity: 1; }

/* ==========================================================================
   Reveal-on-scroll
   ========================================================================== */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: calc(var(--delay, 0) * 1ms); will-change: opacity, transform; }
[data-reveal="left"] { transform: translateX(-36px); }
[data-reveal="right"] { transform: translateX(36px); }
[data-reveal="scale"] { transform: scale(0.92); }
[data-reveal="fade"] { transform: none; }
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.001s !important; }
}

/* ==========================================================================
   Scroll progress
   ========================================================================== */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 2001; background: transparent; }
#scrollProgressBar {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--ink), var(--brand));
  transition: width 0.1s linear;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: 76px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px;
  padding: 0 max(24px, calc((100% - 1200px) / 2));
  background: rgba(255, 255, 255, 0); border-bottom: 1px solid transparent;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-color: var(--line);
  box-shadow: 0 1px 12px rgba(12, 15, 18, 0.06);
}

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0; }
.brand-word { font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -0.03em; color: var(--ink); }
.brand-accent { color: var(--brand); }

.site-nav { display: flex; align-items: center; justify-content: center; gap: 6px; }
.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-parent { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--ink-2);
  background: transparent; border: none;
  transition: color 0.16s ease, background 0.16s ease;
}
.nav-link:hover { color: var(--ink); background: rgba(12, 15, 18, 0.055); }
.nav-link .chev { transition: transform 0.2s var(--ease); }
.nav-parent:hover .chev { transform: rotate(180deg); }

.nav-panel {
  position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%) translateY(10px);
  min-width: 300px; padding: 8px; background: #fff; border: 1px solid var(--line);
  border-radius: 16px; box-shadow: var(--shadow);
  display: grid; gap: 2px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
}
.nav-parent:hover .nav-panel,
.nav-parent:focus-within .nav-panel { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.nav-panel a { display: grid; gap: 1px; padding: 10px 12px; border-radius: 10px; }
.nav-panel a:hover { background: var(--soft-2); }
.nav-panel strong { font-size: 14px; color: var(--ink); }
.nav-panel span { font-size: 12.5px; color: var(--muted); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.25s var(--ease), opacity 0.2s; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 76px 0 0 0; z-index: 999; background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  padding: 20px 24px 40px; display: flex; flex-direction: column;
  overflow-y: auto; overscroll-behavior: contain;
  transform: translateY(-12px); opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
.mobile-menu nav { display: grid; gap: 0; }
.mobile-menu a { padding: 15px 8px; font-size: 17px; font-weight: 500; border-bottom: 1px solid var(--line); color: var(--ink); }
.mobile-menu a.btn { margin-top: 22px; border: none; color: #fff; }

/* --- collapsible groups: mirror the desktop dropdowns on small screens --- */
.mm-group { border-bottom: 1px solid var(--line); }
.mm-toggle {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; padding: 15px 8px;
  font-family: inherit; font-size: 17px; font-weight: 500; color: var(--ink);
  background: none; border: 0; text-align: left; cursor: pointer;
}
.mm-toggle .chev { color: var(--muted); transition: transform 0.25s var(--ease); }
.mm-group.is-open .mm-toggle .chev { transform: rotate(180deg); }
.mm-panel {
  display: grid; max-height: 0; overflow: hidden;
  transition: max-height 0.32s var(--ease);
}
.mm-group.is-open .mm-panel { max-height: 360px; }
.mm-panel a {
  padding: 11px 8px 11px 24px; font-size: 15.5px; font-weight: 400;
  color: var(--muted); border-bottom: 0;
}
.mm-panel a:last-child { padding-bottom: 16px; }
.mm-panel a:hover { color: var(--ink); }

/* ==========================================================================
   Hero — centered, stacked, animated gradient backdrop
   ========================================================================== */
.hero { padding: 158px 0 80px; overflow: clip; }

.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }

.hero-mesh {
  position: absolute; inset: -20%;
  background:
    radial-gradient(40% 48% at 18% 22%, rgba(47, 212, 198, 0.20), transparent 66%),
    radial-gradient(44% 52% at 84% 16%, rgba(14, 138, 143, 0.14), transparent 66%),
    radial-gradient(52% 58% at 50% 100%, rgba(12, 15, 18, 0.06), transparent 72%);
  animation: meshShift 22s ease-in-out infinite;
}
@keyframes meshShift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-2%, 2.5%, 0) scale(1.10); }
}

.orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.45; animation: orbFloat 16s ease-in-out infinite; }
.orb-1 { width: 460px; height: 460px; top: -170px; right: -70px; background: radial-gradient(circle, rgba(47, 212, 198, 0.30), transparent 65%); }
.orb-2 { width: 380px; height: 380px; bottom: -130px; left: -90px; background: radial-gradient(circle, rgba(14, 138, 143, 0.20), transparent 65%); animation-delay: -6s; }
.orb-3 { width: 300px; height: 300px; top: 26%; left: 58%; background: radial-gradient(circle, rgba(12, 15, 18, 0.10), transparent 65%); animation-delay: -11s; }
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(26px, -26px) scale(1.08); }
  66% { transform: translate(-20px, 18px) scale(0.94); }
}

.grid-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 26%, #000 0%, transparent 78%);
  mask-image: radial-gradient(ellipse 60% 55% at 50% 26%, #000 0%, transparent 78%);
  opacity: 0.45;
}

.hero-inner { position: relative; z-index: 1; }

.hero-copy { display: grid; justify-items: center; text-align: center; max-width: 920px; margin: 0 auto; min-width: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-2);
  background: rgba(12, 15, 18, 0.045); border: 1px solid var(--line);
  padding: 7px 14px; border-radius: 999px; margin-bottom: 24px;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand-glow); box-shadow: 0 0 0 4px rgba(47, 212, 198, 0.16); animation: pulse 2.2s ease infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 4px rgba(47, 212, 198, 0.16); } 50% { box-shadow: 0 0 0 8px rgba(47, 212, 198, 0.04); } }

.hero h1 { font-size: clamp(38px, 5.6vw, 68px); font-weight: 700; margin-bottom: 24px; max-width: 900px; color: var(--ink); }

.lede { font-size: 18px; color: var(--muted); max-width: 660px; margin: 0 auto 34px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-bottom: 54px; }

/* Centered stat row with dividers */
.hero-stats {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: stretch;
  list-style: none; padding: 0; margin: 0 auto; max-width: 860px;
}
.hero-stats li { display: grid; gap: 4px; justify-items: center; text-align: center; padding: 0 34px; border-right: 1px solid var(--line); }
.hero-stats li:last-child { border-right: 0; }
.stat-num { font-family: var(--display); font-size: 34px; font-weight: 700; color: var(--ink); line-height: 1.1; }
.stat-label { font-size: 13px; color: var(--muted); }

/* Showcase console below the centered copy */
.hero-showcase { position: relative; z-index: 1; margin-top: 88px; max-width: 900px; }

.console {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.console-top { display: flex; align-items: center; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot-r { background: #d4d8dc; } .dot-y { background: #c3c9ce; } .dot-g { background: #b0b7bd; }
.console-title { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-left: 6px; }
.live-badge { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11px; font-weight: 600; color: var(--ink-2); background: var(--soft-2); padding: 4px 10px; border-radius: 999px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-glow); animation: pulse 1.4s ease infinite; }

.console-call { display: flex; align-items: center; gap: 14px; padding: 16px; }
.caller { display: flex; align-items: center; gap: 10px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, #1b2026, #3b4249); color: #fff; display: grid; place-items: center; font-weight: 700; font-family: var(--display); }
.caller strong { font-size: 14px; display: block; color: var(--ink); }
.caller small { font-size: 11.5px; color: var(--muted); }
.call-timer { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--muted); }

.waveform { display: flex; align-items: center; gap: 3px; height: 34px; margin-left: auto; }
.waveform span { width: 3px; border-radius: 2px; background: var(--brand-glow); height: var(--h); animation: eq 1s ease-in-out infinite; }
.waveform span:nth-child(2n) { animation-delay: -0.3s; animation-duration: 1.2s; }
.waveform span:nth-child(3n) { animation-delay: -0.6s; animation-duration: 0.9s; }
@keyframes eq { 0%, 100% { transform: scaleY(0.4); } 50% { transform: scaleY(1); } }

.console-chat { display: grid; gap: 10px; padding: 4px 16px 16px; }
.msg { display: flex; }
.msg-agent { justify-content: flex-start; }
.msg-user { justify-content: flex-end; }
.bubble { max-width: 80%; padding: 10px 14px; font-size: 13px; border-radius: 16px; line-height: 1.45; }
.msg-agent .bubble { background: var(--soft-2); color: var(--ink-2); border-bottom-left-radius: 4px; }
.msg-user .bubble { background: var(--ink); color: #fff; border-bottom-right-radius: 4px; }
.msg { opacity: 0; transform: translateY(8px); animation: msgIn 0.45s var(--ease) forwards; }
.msg:nth-child(1) { animation-delay: 0.4s; }
.msg:nth-child(2) { animation-delay: 1.3s; }
.msg:nth-child(3) { animation-delay: 2.2s; }
.msg:nth-child(4) { animation-delay: 3.1s; }
.msg.typing { animation-delay: 4s; }
@keyframes msgIn { to { opacity: 1; transform: none; } }
.typing .bubble { display: inline-flex; gap: 4px; align-items: center; padding: 12px 16px; }
.type-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--muted-2); animation: typeBounce 1.2s ease infinite; }
.type-dot:nth-child(2) { animation-delay: 0.15s; }
.type-dot:nth-child(3) { animation-delay: 0.3s; }
@keyframes typeBounce { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-5px); opacity: 1; } }

.console-foot { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.intent-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-2); background: var(--soft); padding: 6px 12px; border-radius: 999px; }
.intent-pill .spark { color: var(--brand); }
.intent-pill b { font-family: var(--mono); color: var(--ink); }

.float-chip {
  position: absolute; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  border-radius: 999px; padding: 10px 16px; font-size: 13px; font-weight: 600; color: var(--ink);
  animation: chipFloat 5s ease-in-out infinite;
}
.chip-1 { top: -32px; left: 5%; }
.chip-2 { bottom: -32px; right: 5%; animation-delay: -1.6s; }
.chip-3 { top: -32px; right: 5%; animation-delay: -3.2s; }
@keyframes chipFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.hero-scroll { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 1; }
.hero-scroll span { display: block; width: 22px; height: 34px; border: 2px solid var(--muted-2); border-radius: 12px; position: relative; opacity: 0.55; }
.hero-scroll span::after { content: ""; position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 4px; height: 8px; border-radius: 2px; background: var(--muted-2); animation: scrollDot 1.6s ease infinite; }
@keyframes scrollDot { 0% { transform: translate(-50%, 0); opacity: 1; } 100% { transform: translate(-50%, 14px); opacity: 0; } }

/* ==========================================================================
   Client wall — real logos, scrolling marquee
   ========================================================================== */
.client-wall { padding: 46px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.client-heading { text-align: center; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted); margin-bottom: 26px; font-weight: 500; }

.marquee { overflow: hidden; position: relative; }
.marquee::before, .marquee::after { content: ""; position: absolute; top: 0; bottom: 0; width: 140px; z-index: 1; pointer-events: none; }
.marquee::before { left: 0; background: linear-gradient(90deg, #fff 10%, rgba(255, 255, 255, 0)); }
.marquee::after { right: 0; background: linear-gradient(270deg, #fff 10%, rgba(255, 255, 255, 0)); }
.marquee-track { display: flex; align-items: center; gap: 68px; width: max-content; animation: marquee 36s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.client-logo {
  height: 42px; width: auto; max-width: 180px; object-fit: contain;
  opacity: 0.9; transition: opacity 0.3s ease, transform 0.3s var(--ease);
}
.client-logo:hover { opacity: 1; transform: scale(1.05); }

/* ==========================================================================
   Section headings
   ========================================================================== */
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 44px); font-weight: 700; margin-bottom: 16px; color: var(--ink); }
.section-head p { color: var(--muted); font-size: 17px; }
.section-head.split { display: flex; align-items: flex-end; justify-content: space-between; text-align: left; max-width: none; gap: 24px; }
.section-head.split h2 { margin-bottom: 0; }
.section-head .eyebrow { margin-bottom: 16px; }
.split-copy p { color: var(--muted); font-size: 16px; margin-top: 14px; max-width: 620px; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  font-weight: 600; font-size: 14.5px; color: var(--ink);
  padding-bottom: 2px; border-bottom: 1.5px solid transparent;
  transition: border-color 0.25s ease, gap 0.25s var(--ease);
}
.link-arrow:hover { border-color: var(--ink); gap: 10px; }

/* ==========================================================================
   Capabilities — three alternating rows (graphic ↔ copy)
   ========================================================================== */
.cap-list { display: grid; gap: 76px; }
.cap-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }

/* --- Overflow safety ----------------------------------------------------
   A single-column `auto` grid track sizes to its content's max-content, so
   wide inner content (marquee tracks, long rows) can push the whole page
   wider than the viewport. Pin every vertical stack to minmax(0, 1fr). */
.cap-list, .viz-languages, .lang-rows, .tl-track, .console-chat,
.mock, .chat-card, .qa-card, .qa-stats, .qa-rows, .route-list, .chart-tip,
.demo-form, .field, .footer-col, .mobile-menu nav {
  grid-template-columns: minmax(0, 1fr);
}
.cap-list, .viz-languages, .lang-rows, .tl-track, .console-chat,
.mock, .chat-card, .qa-card, .qa-head, .qa-stats, .qa-rows, .route-list,
.chart-tip, .chart-wrap, .product-media, .kpi, .chat-line, .qa-row, .route-row,
.story-card, .story-media, .story-body, .story-head, .story-metric,
.demo-form, .field, .field-row, .footer-col, .footer-grid, .mobile-menu nav,
.hero-stats, .hero-copy, .lang-row, .tl-step, .marquee,
.product-card, .sample-card {
  min-width: 0;
}

.cap-index { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.14em; color: var(--muted-2); }
.cap-copy h3 { font-size: clamp(24px, 2.6vw, 33px); margin: 10px 0 14px; }
.cap-copy p { color: var(--muted); font-size: 16px; margin-bottom: 20px; max-width: 460px; }

.cap-visual {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(150deg, #fbfcfc 0%, #edf0f2 100%);
  min-height: 420px; padding: 36px;
  display: grid; grid-template-columns: minmax(0, 1fr); place-items: center;
}
.viz { position: relative; width: 100%; min-width: 0; }
.viz > * { min-width: 0; }

/* --- 01 · Reliability shield + orbiting metrics --- */
.viz-reliability { max-width: 430px; height: 350px; }
.shield-wrap { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 150px; }
.shield-glow {
  position: absolute; left: 50%; top: 50%; width: 300px; height: 300px;
  transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 212, 198, 0.34), rgba(47, 212, 198, 0.10) 42%, transparent 66%);
  animation: glowPulse 4.8s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(0.90); opacity: 0.65; }
  50% { transform: translate(-50%, -50%) scale(1.12); opacity: 1; }
}
.shield { position: relative; width: 150px; height: 175px; filter: drop-shadow(0 20px 34px rgba(12, 15, 18, 0.14)); animation: shieldFloat 6s ease-in-out infinite; }
@keyframes shieldFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.shield-label { position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; gap: 1px; pointer-events: none; }
.shield-label b { font-family: var(--display); font-size: 31px; line-height: 1; color: var(--ink); }
.shield-label small { font-size: 12px; color: var(--muted); }

.metric-pill {
  position: absolute; display: grid; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: 9px 14px; box-shadow: var(--shadow-sm);
  animation: chipFloat 6.5s ease-in-out infinite;
}
.metric-pill b { font-family: var(--display); font-size: 15px; line-height: 1.25; color: var(--ink); }
.metric-pill small { font-size: 11.5px; color: var(--muted); }
.mp-1 { top: 8px; left: 0; animation-delay: -0.5s; }
.mp-2 { top: 46px; right: 0; animation-delay: -1.9s; }
.mp-3 { bottom: 46px; left: 0; animation-delay: -3.2s; }
.mp-4 { bottom: 6px; right: 0; animation-delay: -4.6s; }

/* --- 02 · Language marquee + centre badge --- */
.viz-languages { max-width: 540px; height: 380px; display: grid; align-content: center; }
.lang-rows { display: grid; gap: 14px; min-width: 0; }
.lang-row {
  overflow: hidden; min-width: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}
.lang-track { display: flex; align-items: center; gap: 12px; width: max-content; animation: marquee 32s linear infinite; }
.lang-row:nth-child(1) .lang-track { animation-duration: 34s; }
.lang-row:nth-child(2) .lang-track { animation-duration: 27s; }
.lang-row:nth-child(3) .lang-track { animation-duration: 40s; }
.lang-row-rev .lang-track { animation-direction: reverse; }

.lang-chip {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 15px 8px 10px; font-size: 13px; font-weight: 500; color: var(--ink-2);
  box-shadow: var(--shadow-sm);
}
.lang-chip img { width: 24px; height: 17px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(12, 15, 18, 0.08); }

.lang-badge {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2;
  width: 132px; height: 132px; border-radius: 50%; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 18px 44px rgba(12, 15, 18, 0.14), 0 0 0 12px rgba(255, 255, 255, 0.72);
  display: grid; align-content: center; justify-items: center; gap: 1px;
  animation: badgeBreathe 5s ease-in-out infinite;
}
@keyframes badgeBreathe {
  0%, 100% { box-shadow: 0 18px 44px rgba(12, 15, 18, 0.14), 0 0 0 12px rgba(255, 255, 255, 0.72); }
  50% { box-shadow: 0 22px 54px rgba(12, 15, 18, 0.18), 0 0 0 20px rgba(255, 255, 255, 0.42); }
}
.lang-badge b { font-family: var(--display); font-size: 33px; line-height: 1; color: var(--ink); }
.lang-badge small { font-size: 12px; color: var(--muted); }

/* --- 03 · Deployment timeline with travelling cursor --- */
.viz-timeline { max-width: 410px; }
.tl-track { position: relative; display: grid; gap: 20px; padding-left: 48px; }
.tl-rail { position: absolute; left: 15px; top: 16px; bottom: 16px; width: 2px; background: rgba(12, 15, 18, 0.10); border-radius: 2px; }
.tl-progress {
  position: absolute; left: 0; top: 0; width: 100%; height: 0; background: var(--ink); border-radius: 2px;
  animation: tlFill 4.6s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
.tl-cursor {
  position: absolute; left: 50%; margin-left: -7px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--ink); box-shadow: 0 0 0 5px rgba(12, 15, 18, 0.12);
  animation: tlMove 4.6s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
@keyframes tlFill {
  0%, 5% { height: 0; opacity: 1; }
  76% { height: 100%; opacity: 1; }
  90%, 100% { height: 100%; opacity: 0; }
}
@keyframes tlMove {
  0%, 5% { top: -7px; opacity: 0; }
  12% { opacity: 1; }
  76% { top: calc(100% - 7px); opacity: 1; }
  88%, 100% { top: calc(100% - 7px); opacity: 0; }
}

.tl-step { position: relative; }
.tl-node {
  position: absolute; left: -39px; top: calc(50% - 7px); width: 14px; height: 14px; border-radius: 50%;
  background: #fff; border: 2px solid rgba(12, 15, 18, 0.18);
  animation: nodePop 4.6s ease-in-out infinite;
}
.tl-step-1 .tl-node { animation-delay: 0.35s; }
.tl-step-2 .tl-node { animation-delay: 1.75s; }
.tl-step-3 .tl-node { animation-delay: 3.10s; }
@keyframes nodePop {
  0%, 100% { background: #fff; border-color: rgba(12, 15, 18, 0.18); transform: scale(1); }
  7% { background: var(--ink); border-color: var(--ink); transform: scale(1.45); }
  20% { background: var(--ink); border-color: var(--ink); transform: scale(1); }
  38% { background: #fff; border-color: rgba(12, 15, 18, 0.18); transform: scale(1); }
}

.tl-card {
  display: flex; align-items: center; gap: 13px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 15px 17px; box-shadow: var(--shadow-sm);
}
.tl-ico { width: 38px; height: 38px; border-radius: 11px; background: var(--soft-2); color: var(--ink); display: grid; place-items: center; flex-shrink: 0; }
.tl-ico svg { width: 20px; height: 20px; }
.tl-card strong { display: block; font-family: var(--display); font-size: 16px; color: var(--ink); }
.tl-card small { font-size: 12.5px; color: var(--muted); }
.tl-live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11px; font-weight: 600; color: var(--ink-2); background: var(--soft-2); padding: 4px 10px; border-radius: 999px; }

.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.check-list li { font-size: 14px; color: var(--ink-2); padding-left: 26px; position: relative; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 1px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--soft-2); color: var(--ink); font-size: 11px; font-weight: 700;
  display: grid; place-items: center;
}

/* ==========================================================================
   Products
   ========================================================================== */
.products { background: var(--soft); }
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.product-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  will-change: transform;
}
.product-card:hover { box-shadow: var(--shadow-lg); }
.product-media { height: 330px; padding: 0; overflow: hidden; position: relative; }
.product-body { padding: 26px; }
.product-body h3 { font-size: 22px; margin-bottom: 8px; }
.product-body p { color: var(--muted); font-size: 15px; margin-bottom: 16px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tags span { font-size: 12px; font-weight: 500; color: var(--ink-2); background: var(--soft-2); padding: 5px 11px; border-radius: 999px; }
.text-link { font-weight: 600; font-size: 14px; color: var(--ink); display: inline-flex; align-items: center; gap: 6px; border-bottom: 1px solid transparent; transition: border-color 0.25s; }
.text-link span { transition: transform 0.25s var(--ease); }
.text-link:hover { border-color: var(--ink); }
.text-link:hover span { transform: translateX(4px); }

/* --- Animated product demos (light mock palette; colour allowed in-panel) --- */
.product-media {
  --mock-blue: #2563eb;
  --mock-blue-2: #8fb8ee;
  --mock-blue-soft: #dbe8fb;
  --mock-ink: #16233a;
  --mock-text: #46536a;
  --mock-muted: #6b7c93;
  --mock-track: #e3ecf9;
  background: linear-gradient(160deg, #eef4fd 0%, #e1ebfa 100%);
}

/* Sequence driver: children are hidden until the panel gets .play */
.mock {
  position: absolute; inset: 0; padding: 22px;
  display: grid; align-content: center; gap: 14px;
  transition: opacity 0.34s ease;
}
[data-loop].resetting { opacity: 0.12; }
.seq { opacity: 0; }
[data-loop].play .seq { animation: seqIn 0.5s var(--ease) both; animation-delay: calc(var(--d, 0) * 1ms); }
[data-loop].play svg .seq { animation-name: seqFade; }
@keyframes seqIn { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: none; } }
@keyframes seqFade { from { opacity: 0; } to { opacity: 1; } }
.seq-draw { stroke-dasharray: 100; stroke-dashoffset: 100; }
[data-loop].play .seq-draw { animation: drawIn 1.7s var(--ease) both; animation-delay: calc(var(--d, 0) * 1ms); }
@keyframes drawIn { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }

/* --- 01 · Inbound conversation --- */
.mock-inbound { padding: 18px; }
.chat-card {
  background: rgba(255, 255, 255, 0.72); border-radius: 18px; padding: 18px;
  display: grid; gap: 11px; align-content: center; justify-items: start;
  height: 100%; box-shadow: 0 14px 34px rgba(37, 99, 235, 0.10);
}
.chat-line { max-width: 84%; padding: 9px 14px; font-size: 12.5px; line-height: 1.45; border-radius: 14px; }
.chat-in { background: #eef2f7; color: var(--mock-text); border-top-left-radius: 5px; }
.chat-out { background: var(--mock-blue-soft); color: #1d4ed8; justify-self: end; border-top-right-radius: 5px; }
.chat-voice {
  justify-self: stretch; width: 100%; max-width: none;
  background: var(--mock-blue-soft); display: flex; align-items: center; gap: 9px; padding: 11px 14px;
}
.voice-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--mock-blue); flex-shrink: 0; animation: pulse 1.8s ease infinite; }
.voice-bars { display: flex; align-items: center; gap: 3px; height: 16px; }
.voice-bars i { width: 2px; border-radius: 2px; background: var(--mock-blue); animation: eq 1s ease-in-out infinite; }
.voice-bars i:nth-child(1)  { height: 30%; animation-delay: -0.05s; }
.voice-bars i:nth-child(2)  { height: 72%; animation-delay: -0.15s; }
.voice-bars i:nth-child(3)  { height: 45%; animation-delay: -0.25s; }
.voice-bars i:nth-child(4)  { height: 95%; animation-delay: -0.35s; }
.voice-bars i:nth-child(5)  { height: 55%; animation-delay: -0.45s; }
.voice-bars i:nth-child(6)  { height: 82%; animation-delay: -0.55s; }
.voice-bars i:nth-child(7)  { height: 35%; animation-delay: -0.65s; }
.voice-bars i:nth-child(8)  { height: 66%; animation-delay: -0.75s; }
.voice-bars i:nth-child(9)  { height: 90%; animation-delay: -0.85s; }
.voice-bars i:nth-child(10) { height: 50%; animation-delay: -0.95s; }
.voice-bars i:nth-child(11) { height: 76%; animation-delay: -0.20s; }
.voice-bars i:nth-child(12) { height: 40%; animation-delay: -0.40s; }
.chat-typing { display: flex; gap: 5px; justify-self: center; padding: 6px 0 0; }
.chat-typing i { width: 6px; height: 6px; border-radius: 50%; background: #a9bcd6; animation: typeBounce 1.2s ease infinite; }
.chat-typing i:nth-child(2) { animation-delay: 0.15s; }
.chat-typing i:nth-child(3) { animation-delay: 0.30s; }

/* --- 02 · Outbound analytics --- */
.mock-outbound { padding: 22px 24px; gap: 12px; align-content: center; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.kpi { display: grid; gap: 0; }
.kpi span { font-size: 10.5px; color: var(--mock-muted); }
.kpi b { font-family: var(--display); font-size: 22px; line-height: 1.15; color: var(--mock-ink); }
.chart-wrap { position: relative; margin-top: 4px; }
.chart { display: block; width: 100%; height: auto; }
.chart-axis { display: flex; justify-content: space-between; padding: 0 4px; font-size: 10.5px; color: #8b9cb3; }
.chart-tip {
  position: absolute; top: -8px; right: 1%;
  background: #fff; border-radius: 12px; padding: 10px 13px;
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.18);
  display: grid; gap: 4px; font-size: 11px; color: var(--mock-text);
}
.chart-tip strong { font-size: 12px; color: var(--mock-ink); }
.chart-tip div { display: flex; align-items: center; gap: 6px; }
.chart-tip div b { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--mock-ink); }
.tdot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.tdot.soft { background: var(--mock-blue-2); }
.tdot.main { background: var(--mock-blue); }

/* --- 03 · Quality management dashboard --- */
.mock-qm { padding: 20px; }
.qa-card { background: #fff; border-radius: 18px; padding: 20px; display: grid; gap: 16px; box-shadow: 0 16px 40px rgba(37, 99, 235, 0.12); }
.qa-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: center; }
.qa-ring-wrap { position: relative; width: 106px; height: 106px; }
.qa-ring { width: 106px; height: 106px; display: block; }
.qa-ring-fill { stroke-dasharray: 0 100; }
[data-loop].play .qa-ring-fill { animation: ringDraw 1.3s var(--ease) both; animation-delay: 0.2s; }
@keyframes ringDraw { from { stroke-dasharray: 0 100; } to { stroke-dasharray: 92 100; } }
.qa-score { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 1px; }
.qa-score b { font-family: var(--display); font-size: 30px; line-height: 1; color: var(--mock-ink); }
.qa-score small { font-size: 11px; color: #8b9cb3; }
.qa-stats { display: grid; gap: 13px; }
.qa-stat { display: grid; gap: 2px; }
.qa-stat b { font-family: var(--display); font-size: 19px; line-height: 1.15; color: var(--mock-ink); }
.qa-stat > span { font-size: 11.5px; color: var(--mock-muted); }
.qa-bar { display: block; height: 6px; margin-top: 4px; border-radius: 999px; background: var(--mock-track); overflow: hidden; }
.qa-bar em { display: block; height: 100%; border-radius: 999px; background: var(--mock-blue); transform: scaleX(0); transform-origin: left; }
[data-loop].play .qa-bar em { animation: barFill 1.1s var(--ease) both; animation-delay: 0.55s; }
@keyframes barFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.qa-rows { display: grid; gap: 8px; }
.qa-row { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; background: #f5f8fd; font-size: 12px; color: #35435c; }
.qa-row.is-flag { background: #fdf4ea; }
.qa-row > span { flex: 1; min-width: 0; }
.qa-ico { width: 17px; height: 17px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; font-style: normal; flex-shrink: 0; }
.qa-ico.ok { background: #e4f5ea; color: #16803c; }
.qa-ico.warn { background: #fdeee0; color: #c2700c; }
.qa-badge { font-family: var(--mono); font-size: 9.5px; font-weight: 700; letter-spacing: 0.04em; padding: 3px 8px; border-radius: 5px; flex-shrink: 0; }
.qa-badge.comp, .qa-badge.tag { background: #e4f5ea; color: #16803c; }
.qa-badge.flag { background: #fdeee0; color: #c2700c; }

/* --- 04 · Language engine --- */
.mock-language { padding: 24px; gap: 20px; }
.lang-tags { display: flex; gap: 8px; justify-content: center; }
.lang-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255, 255, 255, 0.62); border: 1px solid rgba(37, 99, 235, 0.10);
  border-radius: 999px; padding: 5px 11px 5px 7px; font-size: 11px; color: #5b6d87;
}
.lang-tag img { width: 17px; height: 12px; border-radius: 2px; object-fit: cover; }
.audio-wave { display: flex; align-items: center; justify-content: center; gap: 2.5px; height: 78px; }
.audio-wave i { width: 3px; border-radius: 2px; background: var(--mock-blue-2); height: var(--h, 20%); animation: eq 1s ease-in-out infinite; animation-delay: var(--ad, 0s); }
.audio-wave i:nth-child(3n) { background: var(--mock-blue); }
.route-list { display: grid; gap: 8px; }
.route-row {
  display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 11px;
  background: rgba(255, 255, 255, 0.62); border: 1px solid rgba(37, 99, 235, 0.08);
  font-size: 12.5px; color: #4a5a76;
}
.route-row > span { flex: 1; min-width: 0; }
.route-tag { font-size: 11px; font-weight: 500; color: var(--mock-blue); }
.route-row.is-active {
  background: #fff; border-color: transparent; padding: 14px 16px;
  font-size: 14.5px; font-weight: 600; color: var(--mock-ink);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.16);
}
.route-action { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; color: #e07a1f; }
.route-action svg { width: 14px; height: 14px; }
.route-ok { font-style: normal; font-weight: 700; color: #16803c; }

/* ==========================================================================
   Samples
   ========================================================================== */
.sample-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.sample-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px;
  box-shadow: var(--shadow-sm); transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.sample-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.sample-play { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.play-btn { width: 54px; height: 54px; border-radius: 50%; border: none; background: var(--ink); color: #fff; display: grid; place-items: center; position: relative; transition: transform 0.3s var(--ease), background 0.3s; }
.play-btn:hover { transform: scale(1.08); background: #232a30; }
.play-tri { width: 0; height: 0; border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent #fff; margin-left: 3px; }
.ring { position: absolute; inset: -4px; border-radius: 50%; border: 2px solid rgba(12, 15, 18, 0.22); opacity: 0.7; animation: ringPulse 2.2s ease infinite; }
@keyframes ringPulse { 0% { transform: scale(1); opacity: 0.55; } 100% { transform: scale(1.6); opacity: 0; } }
.sample-wave { display: flex; align-items: center; gap: 3px; height: 30px; }
.sample-wave i { width: 3px; border-radius: 2px; background: #3d454d; height: 30%; animation: eq 1.1s ease-in-out infinite; }
.sample-wave i:nth-child(1) { height: 40%; animation-delay: -0.1s; }
.sample-wave i:nth-child(2) { height: 80%; animation-delay: -0.3s; }
.sample-wave i:nth-child(3) { height: 55%; animation-delay: -0.5s; }
.sample-wave i:nth-child(4) { height: 95%; animation-delay: -0.2s; }
.sample-wave i:nth-child(5) { height: 65%; animation-delay: -0.6s; }
.sample-wave i:nth-child(6) { height: 85%; animation-delay: -0.4s; }
.sample-wave i:nth-child(7) { height: 45%; animation-delay: -0.7s; }
.sample-tag { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-2); background: var(--soft-2); padding: 4px 10px; border-radius: 999px; }
.sample-card h3 { font-size: 19px; margin: 12px 0 8px; }
.sample-card p { color: var(--muted); font-size: 14.5px; }

/* ==========================================================================
   Security strip — near black
   ========================================================================== */
.security-strip {
  padding: 68px 0; position: relative; overflow: hidden;
  background: linear-gradient(150deg, #f8fbfb 0%, #eef7f8 52%, #e4f1f2 100%);
  color: var(--ink);
}
.security-strip::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 100% at 50% 0%, rgba(47, 212, 198, 0.16), transparent 62%);
}
.security-head {
  position: relative; text-align: center; font-family: var(--display);
  font-size: 20px; font-weight: 600; margin-bottom: 38px; color: var(--ink);
}
.badges { position: relative; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 26px 44px; }
.badge { display: grid; place-items: center; transition: transform 0.35s var(--ease); }
.badge img {
  height: 86px; width: auto; max-width: 120px; object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(12, 15, 18, 0.10));
  transition: filter 0.3s ease;
}
.badge:hover { transform: translateY(-6px); }
.badge:hover img { filter: drop-shadow(0 14px 26px rgba(12, 15, 18, 0.18)); }

/* ==========================================================================
   Resources
   ========================================================================== */
.story-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.story-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.story-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
/* 16:9 matches the source charts exactly, so every cover is the same height with no cropping */
.story-media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--soft); }
.story-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s var(--ease); }
.story-card:hover .story-media img { transform: scale(1.04); }
.story-body { flex: 1; display: flex; flex-direction: column; gap: 16px; padding: 24px; }
.story-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px 14px; }
.story-head h3 { flex: 1 1 180px; min-width: 0; }
.story-head h3 { font-size: 17px; line-height: 1.4; }
.story-tag {
  flex: 0 0 auto; max-width: 100%; text-align: center; line-height: 1.35;
  font-size: 11.5px; font-weight: 500; color: var(--ink-2);
  background: var(--soft-2); padding: 5px 11px; border-radius: 999px;
}
.story-metric { font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.story-metric b {
  font-family: var(--display); font-size: 34px; font-weight: 700;
  color: var(--ink); letter-spacing: -0.03em; margin-right: 6px; vertical-align: -4px;
}
.story-body .text-link { margin-top: auto; }

/* ==========================================================================
   Demo / form — near black
   ========================================================================== */
.demo { background: linear-gradient(140deg, #0f2f38 0%, #17454f 52%, #10333b 100%); color: #fff; overflow: clip; position: relative; }
.demo::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 84% 8%, rgba(47, 212, 198, 0.18), transparent 48%); pointer-events: none; }
.demo-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 60px; align-items: center; }
.demo-copy .eyebrow { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.16); color: #fff; }
.demo-copy h2 { font-size: clamp(28px, 3.4vw, 42px); margin-bottom: 16px; color: #fff; }
.demo-copy p { color: rgba(255, 255, 255, 0.68); font-size: 17px; margin-bottom: 28px; }
.demo-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.demo-points li { display: flex; align-items: center; gap: 14px; font-size: 15px; color: rgba(255, 255, 255, 0.85); }
.demo-points span { font-family: var(--mono); font-size: 12px; color: #fff; border: 1px solid rgba(255, 255, 255, 0.24); border-radius: 8px; padding: 4px 8px; }

.demo-form {
  background: #fff; color: var(--ink); border-radius: var(--radius-lg); padding: 34px;
  box-shadow: var(--shadow-lg); display: grid; gap: 18px;
}
.field { display: grid; gap: 7px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 15px; padding: 12px 14px; border: 1.5px solid var(--line-strong);
  border-radius: 12px; background: #fff; color: var(--ink); transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(12, 15, 18, 0.08); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); cursor: pointer; }
.checkbox input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--ink); }
.form-note { font-size: 12px; color: var(--muted); text-align: center; margin: 0; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: #0a2229; color: rgba(255, 255, 255, 0.7); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr)); gap: 28px; padding-bottom: 44px; }
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand .brand-word { color: #fff; }
.footer-brand .brand-accent { color: var(--brand-glow); }
.footer-brand p { font-size: 14px; max-width: 260px; }
.footer-col { display: grid; gap: 12px; align-content: start; }
.footer-col h4 { font-size: 14px; color: #fff; margin-bottom: 4px; letter-spacing: 0.02em; }
.footer-col a { font-size: 14px; color: rgba(255, 255, 255, 0.6); transition: color 0.2s; width: fit-content; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 13px; color: rgba(255, 255, 255, 0.42); flex-wrap: wrap; }

/* ==========================================================================
   Back to top
   ========================================================================== */
.back-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 900; width: 48px; height: 48px; border-radius: 50%;
  border: none; background: var(--ink); color: #fff; font-size: 18px;
  box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s var(--ease), background 0.3s;
}
.back-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-top:hover { background: #232a30; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-stats li { padding: 0 24px; }
  .story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story-grid .story-card:last-child { grid-column: 1 / -1; }
  .demo-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}

@media (max-width: 860px) {
  .site-nav { display: none; }
  .hide-sm { display: none; }
  .nav-toggle { display: flex; }
  .cap-list { gap: 56px; }
  .cap-row { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .cap-row .cap-copy { order: 1; }
  .cap-row .cap-visual { order: 2; min-height: 0; padding: 26px 20px; }
  .cap-copy p { max-width: none; }
  .viz-reliability { height: 320px; max-width: 100%; }
  .viz-languages { height: 330px; max-width: 100%; }
  .product-grid { grid-template-columns: minmax(0, 1fr); }
  .sample-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .section { padding: 64px 0; }
  .hero { padding-top: 132px; }
  .hero-showcase { margin-top: 64px; }
  .section-head.split { flex-direction: column; align-items: flex-start; }
  .float-chip { display: none; }
  .marquee::before, .marquee::after { width: 80px; }
}

@media (max-width: 680px) {
  .hero-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px 0; max-width: 420px; }
  .hero-stats li { padding: 0 12px; }
  .hero-stats li:nth-child(odd) { border-right: 1px solid var(--line); }
  .hero-stats li:nth-child(even) { border-right: 0; }
}

@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
  .story-grid { grid-template-columns: minmax(0, 1fr); }
  .story-grid .story-card:last-child { grid-column: auto; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .container { width: calc(100% - 32px); }
  .client-logo { height: 34px; }
  .marquee-track { gap: 44px; }

  /* compact capability visuals */
  .viz-reliability { height: 320px; }
  .shield-wrap { width: 120px; }
  .shield { width: 120px; height: 140px; }
  .shield-glow { width: 220px; height: 220px; }
  .shield-label b { font-size: 25px; }
  .metric-pill { padding: 7px 11px; border-radius: 10px; }
  .metric-pill b { font-size: 13px; }
  .metric-pill small { font-size: 10.5px; }
  .mp-1, .mp-3 { left: -4px; }
  .mp-2, .mp-4 { right: -4px; }
  .lang-chip { font-size: 12px; padding: 6px 12px 6px 8px; }
  .lang-chip img { width: 21px; height: 15px; }
  .lang-badge { width: 106px; height: 106px; }
  .lang-badge b { font-size: 26px; }
  .viz-timeline { max-width: 100%; }
  .tl-track { padding-left: 40px; }
  .tl-rail { left: 11px; }
  .tl-node { left: -35px; }
  .tl-card { padding: 13px 14px; }
  .tl-card strong { font-size: 15px; }
  .tl-live { display: none; }
}


/* ==========================================================================
   Contact page + form validation states + toast
   ========================================================================== */
.contact-grid {
  display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 56px; align-items: start;
}
.contact-info { display: grid; gap: 26px; }
.contact-info .ci-block { display: grid; gap: 8px; }
.contact-info .ci-label {
  font-family: var(--mono); font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2);
}
.contact-info .ci-value { font-size: 17px; font-weight: 600; color: var(--ink); }
.contact-info a.ci-value:hover { text-decoration: underline; text-underline-offset: 3px; }
.contact-info .ci-note { font-size: 15px; line-height: 1.7; color: var(--muted); }

.contact-form {
  display: grid; gap: 18px;
  padding: 34px; border-radius: var(--radius-lg);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.contact-form .cf-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

/* inline validation */
.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea { border-color: #d1493f; box-shadow: 0 0 0 4px rgba(209, 73, 63, 0.10); }
.field-error {
  display: none;
  font-size: 12.5px; font-weight: 500; color: #c0392b;
}
.field.is-invalid .field-error { display: block; }

/* success toast */
.toast-stack {
  position: fixed; right: 24px; bottom: 88px; z-index: 2000;
  display: grid; gap: 12px; pointer-events: none;
}
.toast {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start;
  min-width: 280px; max-width: 380px; padding: 16px 18px;
  background: #0c0f12; color: #fff; border-radius: 14px;
  box-shadow: 0 22px 48px rgba(12, 15, 18, 0.28);
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  pointer-events: auto;
}
.toast.is-visible { opacity: 1; transform: none; }
.toast.is-leaving { opacity: 0; transform: translateY(10px); }
.toast-icon {
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; background: #2fd4c6; color: #08262a;
  font-size: 13px; font-weight: 700;
}
.toast.is-error .toast-icon { background: #e8735f; color: #2a0d08; }
.toast-title { font-size: 14.5px; font-weight: 600; }
.toast-text { margin-top: 3px; font-size: 13px; line-height: 1.5; color: rgba(255, 255, 255, 0.72); }

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
}
@media (max-width: 560px) {
  .contact-form { padding: 24px; }
  .contact-form .cf-row { grid-template-columns: minmax(0, 1fr); }
  .toast-stack { right: 12px; left: 12px; bottom: 76px; }
  .toast { min-width: 0; max-width: none; }
}
