/* ==========================================================================
   Zigtal — design system (v2)
   Shared tokens, layout, components and product-mock primitives.
   Page-specific styles live in css/<page>.css; behaviour lives in site.js.
   ========================================================================== */

@view-transition {
  navigation: auto;
}

@property --pv {
  syntax: "<number>";
  inherits: false;
  initial-value: 0;
}

@property --spin {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

/* --------------------------------------------------------------------------
   Tokens
   -------------------------------------------------------------------------- */
:root {
  color-scheme: dark;

  --bg: #05060b;
  --panel: #0c0f1d;
  --panel-2: #111529;
  --line: rgba(255, 255, 255, 0.075);
  --line-2: rgba(255, 255, 255, 0.13);
  --line-3: rgba(255, 255, 255, 0.22);

  --text: #f1f3fb;
  --text-2: #c3c8dc;
  --text-3: #8e95b1;
  --text-4: #5f6684;

  --blue: #5b8cff;
  --violet: #8b5cf6;
  --mint: #3ee6b0;
  --amber: #ffb547;

  --good: #3ee6b0;
  --warn: #ffb547;
  --bad: #ff6b81;

  --grad: linear-gradient(100deg, #5b8cff 0%, #8b5cf6 50%, #e879f9 100%);
  --grad-btn: linear-gradient(120deg, #4f7cff 0%, #7c5cff 55%, #a855f7 100%);
  --grad-signal: linear-gradient(90deg, #5b8cff, #3ee6b0);

  /* Per-page accent (overridden by body.accent-*) */
  --accent: var(--blue);
  --accent-2: var(--violet);
  --accent-text: #9db8ff;
  --hl-grad: var(--grad);

  --font-display: "Space Grotesk", "Geist", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --radius: 16px;
  --radius-lg: 22px;
  --radius-xl: 30px;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 68px;

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.8);
  --shadow-lg: 0 40px 100px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.accent-blue { --accent: #5b8cff; --accent-2: #22d3ee; --accent-text: #9db8ff; --hl-grad: linear-gradient(100deg, #5b8cff, #8b5cf6 55%, #22d3ee); }
.accent-orange { --accent: #ff8a4c; --accent-2: #ffb547; --accent-text: #ffb98f; --hl-grad: linear-gradient(100deg, #ff7a45, #ffb547 55%, #ff6b9a); }
.accent-green { --accent: #3ee6b0; --accent-2: #5b8cff; --accent-text: #86f2cf; --hl-grad: linear-gradient(100deg, #3ee6b0, #22d3ee 50%, #5b8cff); }
.accent-pink { --accent: #f472b6; --accent-2: #a78bfa; --accent-text: #f9a8d4; --hl-grad: linear-gradient(100deg, #f472b6, #e879f9 50%, #a78bfa); }
.accent-violet { --accent: #8b5cf6; --accent-2: #e879f9; --accent-text: #c4b5fd; --hl-grad: linear-gradient(100deg, #8b5cf6, #c084fc 50%, #e879f9); }
.accent-indigo { --accent: #7c83ff; --accent-2: #22d3ee; --accent-text: #b4b8ff; --hl-grad: linear-gradient(100deg, #7c83ff, #5b8cff 50%, #22d3ee); }

/* Inline accent switches for components */
.c-blue { --accent: #5b8cff; --accent-2: #22d3ee; --accent-text: #9db8ff; }
.c-orange { --accent: #ff8a4c; --accent-2: #ffb547; --accent-text: #ffb98f; }
.c-green { --accent: #3ee6b0; --accent-2: #5b8cff; --accent-text: #86f2cf; }
.c-pink { --accent: #f472b6; --accent-2: #a78bfa; --accent-text: #f9a8d4; }
.c-violet { --accent: #8b5cf6; --accent-2: #e879f9; --accent-text: #c4b5fd; }
.c-indigo { --accent: #7c83ff; --accent-2: #22d3ee; --accent-text: #b4b8ff; }
.c-cyan { --accent: #22d3ee; --accent-2: #5b8cff; --accent-text: #8be9f7; }
.c-amber { --accent: #ffb547; --accent-2: #ff8a4c; --accent-text: #ffd08a; }
.c-mint { --accent: #3ee6b0; --accent-2: #22d3ee; --accent-text: #86f2cf; }

/* --------------------------------------------------------------------------
   Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

/* Film grain over everything — subtle depth on flat dark surfaces */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

ul,
ol {
  padding: 0;
}

:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: rgba(139, 92, 246, 0.45);
  color: #fff;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 300;
  padding: 10px 16px;
  border-radius: 10px;
  background: #fff;
  color: #05060b;
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus {
  transform: none;
}

/* Ambient page backdrop (injected by site.js) — dot grid + pointer glow */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.075) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 20%, transparent 75%);
}

.backdrop::after {
  content: "";
  position: absolute;
  width: 760px;
  height: 760px;
  left: calc(var(--mx, 70vw) - 380px);
  top: calc(var(--my, 10vh) - 380px);
  background: radial-gradient(circle, rgba(124, 92, 255, 0.13), transparent 62%);
  transition: opacity 0.4s;
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.container {
  width: min(var(--container), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.container--wide {
  width: min(1320px, 100% - 2 * var(--gutter));
  margin-inline: auto;
}

main {
  display: block;
  position: relative;
}

.section {
  position: relative;
  padding-block: clamp(5rem, 9vw, 8rem);
}

.section--tight {
  padding-block: clamp(3.5rem, 6vw, 5rem);
}

.section--line::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(var(--container), 100% - 2 * var(--gutter));
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--line-2) 20%, var(--line-2) 80%, transparent);
}

.section-head {
  display: grid;
  gap: 1.1rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  max-width: 820px;
}

.section-head--split {
  max-width: none;
  align-items: end;
  gap: 1.2rem 4rem;
}

@media (min-width: 900px) {
  .section-head--split {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  }

  .section-head--split .lead {
    justify-self: end;
    max-width: 44ch;
  }
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
  justify-items: center;
}

.grid {
  display: grid;
  gap: clamp(14px, 1.6vw, 20px);
}

.split-layout {
  display: grid;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}

@media (min-width: 980px) {
  .split-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  }
}

/* Grid children may shrink below their content's min-content width
   (mock UI uses nowrap rows; without this they push columns wider than the screen). */
.split-layout > *,
.page-hero-grid > *,
.grid > *,
.bento > *,
.band > *,
.faq-layout > *,
.st-grid > *,
.st-panels > *,
.stack > *,
.stack-cards > *,
.ladder > *,
.form-grid > * {
  min-width: 0;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
.display,
.page-title,
.h2,
.h3,
.h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text);
  text-wrap: balance;
}

.display {
  font-size: clamp(2.65rem, 1.2rem + 5.4vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.048em;
}

.page-title {
  font-size: clamp(2.45rem, 1.3rem + 4.2vw, 4.5rem);
  line-height: 1.01;
  letter-spacing: -0.045em;
}

.h2 {
  font-size: clamp(2.05rem, 1.15rem + 3.2vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.h2--sm {
  font-size: clamp(1.7rem, 1.1rem + 2vw, 2.5rem);
}

.h3 {
  font-size: clamp(1.35rem, 1.05rem + 1vw, 1.85rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.h4 {
  font-size: 1.2rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.lead {
  max-width: 58ch;
  color: var(--text-2);
  font-size: clamp(1.075rem, 1rem + 0.3vw, 1.25rem);
  line-height: 1.6;
}
.mono { font-family: var(--font-mono); }

.hl,
.grad {
  background: var(--hl-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Split-word headline animation (site.js wraps words when [data-split]) */
/* Right padding (cancelled by the negative margin) leaves room for glyphs that
   overhang their box, like a trailing "?", so overflow and background-clip don't cut them. */
.w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
  padding-right: 0.12em;
  margin-right: -0.12em;
}

.w > span {
  display: inline-block;
  transform: translateY(108%);
  transition: transform 0.95s var(--ease-out);
  transition-delay: var(--wd, 0s);
}

.w > .hl-w {
  padding-right: 0.12em;
  margin-right: -0.12em;
  background: var(--hl-grad);
  background-size: calc(var(--bw, 100%) + 0.24em) 100%;
  background-position: var(--bx, 0) 0;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

[data-split].is-in .w > span {
  transform: none;
}

.js [data-split]:not(.is-split) {
  opacity: 0;
  animation: failsafe-show 0s linear 2.5s forwards;
}

/* Eyebrow / kicker labels */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--mint);
}

.kicker::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.kicker--accent {
  color: var(--accent-text);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  width: fit-content;
  padding: 0.42rem 0.95rem 0.42rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: border-color 0.3s, background 0.3s;
}

a.pill:hover {
  border-color: color-mix(in srgb, var(--accent) 60%, transparent);
}

.pill > svg:last-child {
  width: 14px;
  height: 14px;
  color: var(--text-3);
  transition: transform 0.3s var(--ease);
}

a.pill:hover > svg:last-child {
  transform: translateX(3px);
}

.pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--grad-btn);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
}

.pill-tag svg {
  width: 11px;
  height: 11px;
}

.dot {
  position: relative;
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 10px var(--mint);
}

.dot--live {
  animation: live-pulse 2s infinite;
}

@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(62, 230, 176, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(62, 230, 176, 0); }
  100% { box-shadow: 0 0 0 0 rgba(62, 230, 176, 0); }
}

.ai-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--accent-text);
}

.ai-tag svg {
  flex: none;
  width: 14px;
  height: 14px;
  color: var(--accent);
}

/* Typewriter caret (site.js [data-type]) */
[data-type].is-typing::after {
  content: "";
  display: inline-block;
  width: 0.5em;
  height: 1.05em;
  margin-left: 2px;
  vertical-align: -0.15em;
  background: currentColor;
  animation: caret 0.9s steps(2) infinite;
}

@keyframes caret {
  50% { opacity: 0; }
}

/* --------------------------------------------------------------------------
   Buttons & links
   -------------------------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 46px;
  padding: 0.7rem 1.35rem;
  border-radius: 12px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  white-space: nowrap;
  isolation: isolate;
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.3s var(--ease), background 0.3s, border-color 0.3s, color 0.3s;
}

@media (max-width: 620px) {
  .btn {
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }
}

.btn svg {
  flex: none;
  width: 17px;
  height: 17px;
  transition: transform 0.3s var(--ease);
}

.btn:hover svg:last-child:not(:first-child) {
  transform: translateX(3px);
}

.btn:active {
  transform: translateY(1px) scale(0.99);
}

.btn-primary {
  background: var(--grad-btn);
  color: #fff;
  box-shadow: 0 10px 30px -8px rgba(99, 102, 241, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* light sweep on hover */
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease);
}

.btn-primary:hover {
  box-shadow: 0 16px 44px -10px rgba(139, 92, 246, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-primary:hover::after {
  transform: translateX(120%);
}

.btn-ghost {
  border-color: var(--line-2);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  border-color: color-mix(in srgb, var(--accent) 65%, transparent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}

.btn-lg {
  min-height: 54px;
  padding: 0.85rem 1.6rem;
  border-radius: 14px;
  font-size: 1rem;
}

.btn-sm {
  min-height: 38px;
  padding: 0.45rem 1rem;
  border-radius: 10px;
  font-size: 0.86rem;
}

/* A wrapping label splits evenly instead of leaving one word ("action") alone */
.btn {
  text-wrap: balance;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent-text);
  font-weight: 600;
  font-size: 0.93rem;
  transition: gap 0.3s var(--ease), color 0.3s;
}

.link-arrow svg {
  width: 16px;
  height: 16px;
}

.link-arrow:hover {
  gap: 0.65rem;
  color: #fff;
}

/* Bigger touch target without changing layout */
@media (pointer: coarse) {
  .link-arrow {
    position: relative;
  }

  .link-arrow::after {
    content: "";
    position: absolute;
    inset: -10px -6px;
  }
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* --------------------------------------------------------------------------
   Chips, tags, icons
   -------------------------------------------------------------------------- */
.icon-box {
  --size: 44px;
  position: relative;
  display: grid;
  flex: none;
  place-items: center;
  width: var(--size);
  height: var(--size);
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  background:
    radial-gradient(120% 120% at 30% 0%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 70%),
    rgba(255, 255, 255, 0.03);
  color: var(--accent-text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 8px 24px -12px color-mix(in srgb, var(--accent) 70%, transparent);
}

.icon-box svg {
  width: 21px;
  height: 21px;
}

.icon-box--sm {
  --size: 32px;
  border-radius: 9px;
}

.icon-box--sm svg {
  width: 16px;
  height: 16px;
}

.icon-box--lg {
  --size: 56px;
  border-radius: 16px;
}

.icon-box--lg svg {
  width: 26px;
  height: 26px;
}

/* Draw-in stroke icons once revealed */
.draw path,
.draw circle,
.draw rect,
.draw ellipse,
.draw line,
.draw polyline {
  stroke-dasharray: 80;
  stroke-dashoffset: 80;
  transition: stroke-dashoffset 1.4s var(--ease-out) var(--d, 0s);
}

.is-in .draw path,
.is-in .draw circle,
.is-in .draw rect,
.is-in .draw ellipse,
.is-in .draw line,
.is-in .draw polyline,
.is-in.draw path,
.is-in.draw circle,
.is-in.draw rect,
.is-in.draw ellipse,
.is-in.draw line,
.is-in.draw polyline {
  stroke-dashoffset: 0;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-2);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.chip svg {
  width: 12px;
  height: 12px;
}

.chip--accent {
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent-text);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chips--mono .chip {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  padding: 6px 12px;
}

.chips--mono .chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--text-3);
  background: rgba(255, 255, 255, 0.06);
}

.tag::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.tag--good { color: var(--good); background: rgba(62, 230, 176, 0.11); }
.tag--warn { color: var(--warn); background: rgba(255, 181, 71, 0.12); }
.tag--bad { color: var(--bad); background: rgba(255, 107, 129, 0.12); }
.tag--accent { color: var(--accent-text); background: color-mix(in srgb, var(--accent) 16%, transparent); }

/* "Sample data" marker for illustrative mock UI */
.sample {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px dashed var(--line-3);
  color: var(--text-4);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--mint);
}

.live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  animation: live-pulse 2s infinite;
}

.avatar {
  display: grid;
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.avatar--sm {
  width: 30px;
  height: 30px;
  font-size: 11px;
}

/* --------------------------------------------------------------------------
   Header & navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background 0.35s, border-color 0.35s, backdrop-filter 0.35s;
}

.site-header.is-scrolled,
.is-nav-open .site-header {
  background: rgba(5, 6, 11, 0.72);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 10px;
}

.brand img {
  width: auto;
  height: 34px;
  filter: brightness(0) invert(1);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-inline: auto;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.85rem;
  border-radius: 10px;
  color: var(--text-2);
  font-size: 0.92rem;
  font-weight: 500;
  list-style: none;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.nav-link::-webkit-details-marker {
  display: none;
}

.nav-link svg {
  width: 15px;
  height: 15px;
  transition: transform 0.3s var(--ease);
}

.nav-link:hover,
.nav-menu[open] > .nav-link {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.nav-link[aria-current="page"] {
  color: #fff;
}

.nav-menu {
  position: relative;
}

.nav-menu[open] > .nav-link svg {
  transform: rotate(180deg);
}

.mega {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  width: min(640px, 92vw);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 10px;
  border-radius: 20px;
  border: 1px solid var(--line-2);
  background: rgba(10, 12, 22, 0.97);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: 0 40px 90px -20px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.03);
  transform: translateX(-50%);
  animation: mega-in 0.28s var(--ease-out);
}

.mega::before {
  content: "";
  position: absolute;
  inset: -16px 0 auto;
  height: 16px;
}

@keyframes mega-in {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-8px) scale(0.98);
  }
}

.mega-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 14px;
  transition: background 0.2s;
}

.mega-item:hover {
  background: color-mix(in srgb, var(--accent) 12%, rgba(255, 255, 255, 0.02));
}

.mega-name {
  display: block;
  color: var(--text);
  font-size: 0.93rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.mega-hint {
  display: block;
  color: var(--text-3);
  font-size: 0.8rem;
}

.mega-foot {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 6px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-3);
  font-size: 0.82rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-left: auto;
}

.nav + .header-actions {
  margin-left: 0;
}

.search-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 38px;
  padding: 0 0.6rem 0 0.8rem;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-3);
  font-size: 0.84rem;
  transition: border-color 0.2s, color 0.2s;
}

.search-btn:hover {
  border-color: var(--line-3);
  color: var(--text);
}

.search-btn svg {
  width: 15px;
  height: 15px;
}

/* Value Navigator: always in the header, on phones too. An outlined pill with a
   slowly turning gradient ring, so it never reads as a second "Request a demo". */
.navigator-cta {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 0.45rem;
  height: 38px;
  padding: 0 0.95rem 0 0.75rem;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.1);
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: background 0.3s, box-shadow 0.3s;
}

.navigator-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  padding: 1.5px;
  border-radius: inherit;
  background: conic-gradient(from var(--spin), #8b5cf6, #e879f9, #3ee6b0, #8b5cf6);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: spin 6s linear infinite;
}

.navigator-cta svg {
  flex: none;
  width: 16px;
  height: 16px;
  color: var(--mint);
  transition: transform 0.6s var(--ease);
}

.navigator-cta:hover,
.navigator-cta[aria-current="page"] {
  background: rgba(139, 92, 246, 0.22);
  box-shadow: 0 0 26px -6px rgba(232, 121, 249, 0.6);
}

.navigator-cta:hover svg {
  transform: rotate(180deg);
}

kbd {
  padding: 1px 6px;
  border-radius: 5px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 0.7rem;
}

.nav-toggle {
  display: none;
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.04);
}

.nav-toggle span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 1.6px;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}

.nav-toggle span:first-child { top: 16px; }
.nav-toggle span:last-child { top: 24px; }

.is-nav-open .nav-toggle span:first-child {
  top: 20px;
  transform: rotate(45deg);
}

.is-nav-open .nav-toggle span:last-child {
  top: 20px;
  transform: rotate(-45deg);
}

.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  pointer-events: none;
}

.scroll-progress i {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--grad);
  transform-origin: 0 50%;
  transform: scaleX(var(--progress, 0));
}

@media (max-width: 1080px) {
  .search-btn span,
  .search-btn kbd {
    display: none;
  }

  .search-btn {
    width: 38px;
    justify-content: center;
    padding: 0;
  }
}

@media (max-width: 959px) {
  .nav-toggle {
    display: block;
  }

  /* The nav leaves the row on phones, so the actions take the free space */
  .nav + .header-actions {
    margin-left: auto;
  }

  /* An explicit height, not bottom: 0. The header's backdrop-filter makes it the
     containing block for this fixed sheet, which would otherwise collapse to 0px. */
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    z-index: 99;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    padding: 16px var(--gutter) 40px;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: rgb(5, 6, 11);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s 0.3s;
  }

  .is-nav-open .nav {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 0s;
  }

  .is-nav-open body {
    overflow: hidden;
  }

  .nav > .nav-link,
  .nav-menu > .nav-link {
    display: flex;
    width: 100%;
    padding: 14px 6px;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text);
  }

  .nav-menu > .nav-link svg {
    margin-left: auto;
  }

  .mega {
    position: static;
    width: auto;
    grid-template-columns: minmax(0, 1fr);
    margin: 8px 0 12px;
    padding: 4px;
    border: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
    animation: none;
  }

  .mega-foot {
    display: none;
  }

  .header-cta {
    display: none;
  }
}

/* "Navigator" alone where the row is tight: beside the full desktop nav, and on small phones */
@media (min-width: 960px) and (max-width: 1180px) {
  .header-inner {
    gap: 1rem;
  }

  .nav-link {
    padding-inline: 0.6rem;
    white-space: nowrap;
  }

  .navigator-cta-pre {
    display: none;
  }
}

@media (max-width: 440px) {
  .header-inner {
    gap: 0.75rem;
  }

  .header-actions {
    gap: 0.45rem;
  }

  .navigator-cta {
    padding: 0 0.8rem 0 0.65rem;
  }

  .navigator-cta-pre {
    display: none;
  }
}

/* 320px phones: a slightly smaller logo keeps the menu button on screen */
@media (max-width: 359px) {
  .brand img {
    height: 26px;
  }

  .navigator-cta {
    gap: 0.35rem;
    padding: 0 0.65rem 0 0.55rem;
    font-size: 0.8rem;
  }
}

/* --------------------------------------------------------------------------
   Reveal on scroll
   -------------------------------------------------------------------------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out), filter 0.9s var(--ease-out);
  transition-delay: var(--d, 0s);
}

.js [data-reveal="fade"] {
  transform: none;
}

.js [data-reveal="scale"] {
  transform: scale(0.94);
}

.js [data-reveal="blur"] {
  transform: translateY(16px);
  filter: blur(10px);
}

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
  filter: none;
}

/* If site.js never runs, show everything after a beat */
.js:not(.reveal-ready) [data-reveal] {
  animation: failsafe-show 0s linear 2.5s forwards;
}

@keyframes failsafe-show {
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

/* --------------------------------------------------------------------------
   Cards & surfaces
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(22px, 2.4vw, 30px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)), var(--panel);
  overflow: hidden;
  isolation: isolate;
  transition: border-color 0.35s, transform 0.45s var(--ease), background 0.35s;
}

/* pointer spotlight */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, -30%), color-mix(in srgb, var(--accent) 22%, transparent), transparent 62%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

/* gradient hairline on hover */
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, -30%), color-mix(in srgb, var(--accent) 85%, white 10%), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

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

.card:hover {
  border-color: var(--line-2);
}

.card h3 {
  font-family: var(--font-display);
  font-size: clamp(1.18rem, 1.05rem + 0.4vw, 1.4rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.card p {
  color: var(--text-3);
  font-size: 0.98rem;
  line-height: 1.6;
}

.card .link-arrow {
  margin-top: auto;
  padding-top: 6px;
}

.surface {
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008)), var(--panel);
  box-shadow: var(--shadow-lg);
}

/* Hairline cell grid */
.cells {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--line);
  overflow: hidden;
}

.cells > * {
  position: relative;
  background: var(--panel);
}

@media (max-width: 960px) {
  .cells {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .cells {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Gradient-border utility */
.gborder {
  position: relative;
}

.gborder::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(140deg, color-mix(in srgb, var(--accent) 80%, transparent), transparent 40%, transparent 60%, color-mix(in srgb, var(--accent-2) 70%, transparent));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}

/* Spinning conic border (for highlighted elements) */
.spin-border {
  position: relative;
  isolation: isolate;
}

.spin-border::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  padding: 1px;
  border-radius: inherit;
  background: conic-gradient(from var(--spin), transparent 0 60%, var(--accent) 75%, var(--accent-2) 85%, transparent 95%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: spin 5s linear infinite;
}

@keyframes spin {
  to { --spin: 360deg; }
}

/* --------------------------------------------------------------------------
   Ambient effects: aurora + perspective grid floor
   -------------------------------------------------------------------------- */
.aurora {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.aurora i {
  position: absolute;
  width: var(--s, 44vw);
  height: var(--s, 44vw);
  max-width: 760px;
  max-height: 760px;
  border-radius: 50%;
  background: var(--c, var(--accent));
  filter: blur(90px);
  opacity: var(--o, 0.28);
  animation: drift var(--t, 18s) ease-in-out infinite alternate;
}

.aurora i:nth-child(1) { --c: var(--accent); left: 52%; top: -18%; }
.aurora i:nth-child(2) { --c: var(--accent-2); --s: 34vw; --o: 0.2; --t: 22s; left: 72%; top: 18%; animation-delay: -6s; }
.aurora i:nth-child(3) { --c: #8b5cf6; --s: 30vw; --o: 0.16; --t: 26s; left: -8%; top: 46%; animation-delay: -12s; }

@keyframes drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-6%, 8%, 0) scale(1.12); }
  100% { transform: translate3d(5%, -4%, 0) scale(0.95); }
}

.grid-floor {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: -1;
  width: 220%;
  height: 46%;
  transform: translateX(-50%) perspective(600px) rotateX(62deg);
  transform-origin: 50% 100%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 85%);
  mask-image: linear-gradient(to top, #000 0%, transparent 85%);
  pointer-events: none;
  animation: floor 18s linear infinite;
}

@keyframes floor {
  to { background-position: 0 64px, 0 0; }
}

/* --------------------------------------------------------------------------
   Product mock UI — windows and data primitives
   (illustrative; always mark with .sample in the window bar)
   -------------------------------------------------------------------------- */
.visual {
  position: relative;
  isolation: isolate;
}

.visual::before {
  content: "";
  position: absolute;
  inset: 6% 4%;
  z-index: -1;
  border-radius: 40px;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 45%, transparent), transparent);
  filter: blur(60px);
  opacity: 0.55;
  pointer-events: none;
}

.window {
  position: relative;
  border-radius: 18px;
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(22, 26, 48, 0.94), rgba(10, 12, 24, 0.96));
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  overflow: hidden;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-3);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
  font-size: 12.5px;
}

.window-dots {
  display: flex;
  flex: none;
  gap: 6px;
}

.window-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.window-title {
  min-width: 0;
  overflow: hidden;
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 12px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.window-meta {
  display: flex;
  flex: none;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

/* Phones: drop the decorative dots and "Live" pulse so window titles stay readable */
@media (max-width: 480px) {
  .window-dots,
  .window-meta .live {
    display: none;
  }
}

.window-body {
  display: grid;
  gap: 16px;
  padding: clamp(16px, 2vw, 22px);
}

.viz-title {
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.viz-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.viz-foot {
  color: var(--text-3);
  font-size: 12.5px;
}

.float {
  position: relative;
  z-index: 2;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line-2);
  background: rgba(14, 17, 34, 0.92);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 30px 70px -18px rgba(0, 0, 0, 0.9);
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.5;
}

.float > * + * {
  margin-top: 10px;
}

.float strong {
  color: var(--text);
}

.float--below {
  width: min(340px, 88%);
  margin: -44px -18px 0 auto;
}

.float--below-left {
  width: min(340px, 88%);
  margin: -44px auto 0 -18px;
}

.window--lift .window-body {
  padding-bottom: 56px;
}

@media (max-width: 640px) {
  .float--below,
  .float--below-left {
    margin-inline: auto;
  }
}

.ai-note {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  background: color-mix(in srgb, var(--accent) 9%, transparent);
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.5;
}

.ai-note svg {
  flex: none;
  width: 15px;
  height: 15px;
  margin-top: 2px;
  color: var(--accent-text);
}

/* Meters (animate from 0 once an ancestor is .is-in) */
.meter {
  position: relative;
  height: 7px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.meter i {
  display: block;
  height: 100%;
  width: var(--w, 50%);
  border-radius: inherit;
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 55%, transparent), var(--accent));
  box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 60%, transparent);
  transform-origin: 0 50%;
  transition: transform 1.4s var(--ease-out) var(--md, 0.2s);
}

.meter--warn i { background: linear-gradient(90deg, rgba(255, 181, 71, 0.35), var(--warn)); box-shadow: 0 0 12px rgba(255, 181, 71, 0.45); }
.meter--good i { background: linear-gradient(90deg, rgba(62, 230, 176, 0.35), var(--good)); box-shadow: 0 0 12px rgba(62, 230, 176, 0.45); }
.meter--bad i { background: linear-gradient(90deg, rgba(255, 107, 129, 0.35), var(--bad)); box-shadow: 0 0 12px rgba(255, 107, 129, 0.45); }
.meter--signal i { background: var(--grad-signal); }

.js .animate .meter i,
.js .animate .th-track i {
  transform: scaleX(0);
}

.js .animate.is-in .meter i,
.js .animate.is-in .th-track i,
.js .is-in .animate .meter i,
.js .is-in .animate .th-track i {
  transform: none;
}

/* KPI tiles */
.kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.kpi {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.kpi-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11.5px;
}

.kpi strong {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.kpi-delta {
  color: var(--good);
  font-family: var(--font-mono);
  font-size: 11px;
}

.kpi-delta--warn {
  color: var(--warn);
}

/* Bars */
.bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 120px;
}

.bars i {
  flex: 1;
  height: var(--h, 50%);
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 30%, transparent));
  opacity: var(--o, 1);
  transform-origin: 50% 100%;
  transition: transform 1.1s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 50ms + 0.15s);
}

.bars--sm {
  height: 72px;
}

.js .animate .bars i {
  transform: scaleY(0.04);
}

.js .animate.is-in .bars i,
.js .is-in .animate .bars i {
  transform: none;
}

.bars-axis {
  display: flex;
  justify-content: space-between;
  color: var(--text-4);
  font-family: var(--font-mono);
  font-size: 10.5px;
}

.chart-line {
  width: 100%;
  height: 128px;
  color: var(--accent);
}

.chart-line .draw-line {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  transition: stroke-dashoffset 2s var(--ease-out) 0.3s;
}

.is-in .chart-line .draw-line,
.chart-line.is-in .draw-line {
  stroke-dashoffset: 0;
}

/* Rows (name · meter · value · tag) */
.rows {
  display: grid;
}

.row {
  display: grid;
  grid-template-columns: minmax(0, 130px) minmax(0, 1fr) 38px auto;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}

.row:first-child {
  border-top: 0;
}

.row-name {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
  color: var(--text-2);
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* Flex boxes can't ellipsis, so on phones the label wraps instead of being clipped */
@media (max-width: 480px) {
  .row-name {
    white-space: normal;
    line-height: 1.25;
  }
}

.row-name i {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 3px;
  background: var(--c, var(--accent));
}

.row-val {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12px;
  text-align: right;
}

/* Heatmap */
.heatmap {
  display: grid;
  grid-template-columns: minmax(96px, auto) repeat(var(--cols, 6), minmax(0, 1fr));
  gap: 5px;
  align-items: center;
  font-size: 11.5px;
}

.heatmap .hm-col {
  color: var(--text-4);
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-align: center;
}

/* Phones: keep column headers like SALES / OPS from running into each other */
@media (max-width: 480px) {
  .heatmap {
    grid-template-columns: minmax(80px, auto) repeat(var(--cols, 6), minmax(0, 1fr));
    gap: 4px;
  }

  .heatmap .hm-col {
    font-size: 9px;
    letter-spacing: -0.03em;
  }
}

.heatmap .hm-row {
  overflow: hidden;
  padding-right: 6px;
  color: var(--text-2);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.heatmap i {
  display: block;
  height: 26px;
  border-radius: 6px;
  background: var(--accent);
  opacity: var(--v, 0.2);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease-spring);
  transition-delay: calc(var(--i, 0) * 28ms + 0.1s);
}

.heatmap i.is-gap {
  background: var(--warn);
  box-shadow: 0 0 14px rgba(255, 181, 71, 0.6);
}

.js .animate .heatmap i {
  opacity: 0.04;
  transform: scale(0.6);
}

.js .animate.is-in .heatmap i,
.js .is-in .animate .heatmap i {
  opacity: var(--v, 0.2);
  transform: none;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--text-3);
  font-size: 11.5px;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--c, var(--accent));
  opacity: var(--v, 1);
}

/* Thresholds */
.thresholds {
  display: grid;
  gap: 16px;
}

.th-row {
  display: grid;
  grid-template-columns: minmax(0, 132px) minmax(0, 1fr) 32px;
  align-items: center;
  gap: 14px;
}

.th-name {
  overflow: hidden;
  color: var(--text-2);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.th-track {
  position: relative;
  height: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.07);
}

.th-track i {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w, 50%);
  border-radius: inherit;
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 45%, transparent), var(--accent));
  transform-origin: 0 50%;
  transition: transform 1.3s var(--ease-out) var(--md, 0.2s);
}

.th-row.is-below .th-track i {
  background: linear-gradient(90deg, rgba(255, 181, 71, 0.35), var(--warn));
}

.th-track b {
  position: absolute;
  top: -6px;
  bottom: -6px;
  left: var(--at, 70%);
  width: 2px;
  border-radius: 2px;
  background: var(--text);
  box-shadow: 0 0 0 3px rgba(12, 15, 29, 0.9);
}

.th-val {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12px;
  text-align: right;
}

.th-row.is-below .th-val {
  color: var(--warn);
}

/* Score ring (fills from 0 → --p once revealed) */
.ring {
  --size: 64px;
  --stroke: 6px;
  --pv: var(--p, 72);
  position: relative;
  display: grid;
  flex: none;
  place-items: center;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: conic-gradient(var(--accent) calc(var(--pv) * 1%), rgba(255, 255, 255, 0.08) 0);
  transition: --pv 1.6s var(--ease-out) 0.2s;
}

.js .animate .ring {
  --pv: 0;
}

.js .animate.is-in .ring,
.js .is-in .animate .ring {
  --pv: var(--p, 72);
}

.ring::before {
  content: "";
  position: absolute;
  inset: var(--stroke);
  border-radius: 50%;
  background: #0f1226;
}

.ring span {
  position: relative;
  color: var(--text);
  font-family: var(--font-display);
  font-size: calc(var(--size) * 0.28);
  font-weight: 600;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.ring--sm { --size: 40px; --stroke: 4px; }
.ring--lg { --size: 104px; --stroke: 8px; }

/* Journey / timeline */
.journey {
  list-style: none;
  display: grid;
}

.journey li {
  position: relative;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: start;
  gap: 14px;
  padding: 0 0 18px;
}

.journey li:last-child {
  padding-bottom: 0;
}

.journey li::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 24px;
  bottom: 0;
  width: 2px;
  background: var(--line-2);
}

.journey li.is-done::before {
  background: linear-gradient(var(--accent), color-mix(in srgb, var(--accent) 50%, transparent));
}

.journey li:last-child::before {
  display: none;
}

.node {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--line-3);
  background: #0f1226;
  color: #fff;
}

.node svg {
  width: 12px;
  height: 12px;
}

.is-done .node {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 14px color-mix(in srgb, var(--accent) 60%, transparent);
}

.is-active .node {
  border-color: var(--accent);
  animation: node-pulse 1.8s infinite;
}

@keyframes node-pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); }
  70%, 100% { box-shadow: 0 0 0 9px transparent; }
}

.journey strong {
  display: block;
  color: var(--text);
  font-size: 13.5px;
  font-weight: 500;
}

.journey .sub {
  display: block;
  color: var(--text-3);
  font-size: 12.5px;
}

/* Plan / action list */
.plan {
  list-style: none;
  display: grid;
  gap: 8px;
}

.plan li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.plan-text {
  overflow: hidden;
  color: var(--text-2);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.plan em {
  color: var(--text-4);
  font-family: var(--font-mono);
  font-size: 11px;
  font-style: normal;
  white-space: nowrap;
}

/* Phones: the due date drops under the action so the text gets the full width */
@media (max-width: 480px) {
  .plan li {
    grid-template-columns: auto minmax(0, 1fr);
    row-gap: 2px;
  }

  .plan-text {
    white-space: normal;
    line-height: 1.35;
  }

  .plan li > em {
    grid-column: 2;
  }
}

.kind {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 6px;
  color: var(--kc);
  background: color-mix(in srgb, var(--kc) 15%, transparent);
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}

.kind--learn { --kc: #7ea6ff; }
.kind--exp { --kc: #3ee6b0; }
.kind--mentor { --kc: #f0a6ff; }

/* Driver bars */
.drivers {
  display: grid;
  gap: 12px;
}

.drv {
  display: grid;
  grid-template-columns: minmax(0, 150px) minmax(0, 1fr) 44px;
  align-items: center;
  gap: 14px;
}

.drv span {
  overflow: hidden;
  color: var(--text-2);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.drv em {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12px;
  font-style: normal;
  text-align: right;
}

.flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--text-2);
  font-size: 12.5px;
}

.flow svg {
  width: 14px;
  height: 14px;
  color: var(--text-4);
}

/* Talent pool */
.pool {
  display: grid;
  gap: 8px;
}

.cand {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.cand strong {
  display: block;
  overflow: hidden;
  color: var(--text);
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.cand .sub {
  display: block;
  overflow: hidden;
  color: var(--text-3);
  font-size: 12px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* Mini stat tiles */
.tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.tile {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.tile strong {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.tile span {
  color: var(--text-3);
  font-size: 12px;
}

.tile em {
  color: var(--good);
  font-family: var(--font-mono);
  font-size: 11px;
  font-style: normal;
}

/* Person header (development plans, profiles) */
.idp-person {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.idp-person-id {
  display: flex;
  align-items: center;
  gap: 12px;
}

.idp-person-id strong {
  display: block;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

.idp-person-id div span {
  display: block;
  color: var(--text-3);
  font-size: 12px;
}

.idp-ready {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-3);
  font-size: 12px;
}

/* Staggered entrance for list-like mock items */
.js .animate .seq > * {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 110ms + 0.2s);
}

.js .animate.is-in .seq > *,
.js .is-in .animate .seq > * {
  opacity: 1;
  transform: none;
}

@media (max-width: 520px) {
  .window {
    font-size: 12px;
  }

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

  .row {
    grid-template-columns: minmax(0, 96px) minmax(0, 1fr) 34px;
  }

  .row .tag {
    display: none;
  }

  .th-row {
    grid-template-columns: minmax(0, 96px) minmax(0, 1fr) 28px;
    gap: 10px;
  }

  .drv {
    grid-template-columns: minmax(0, 104px) minmax(0, 1fr) 36px;
    gap: 10px;
  }

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

  .cand .tag {
    display: none;
  }

  .heatmap {
    grid-template-columns: minmax(78px, auto) repeat(var(--cols, 6), minmax(0, 1fr));
    gap: 4px;
  }

  .heatmap i {
    height: 20px;
  }
}

/* --------------------------------------------------------------------------
   Checklist
   -------------------------------------------------------------------------- */
.checklist {
  list-style: none;
  display: grid;
  gap: 0.7rem;
}

.checklist li {
  position: relative;
  padding-left: 2rem;
  color: var(--text-2);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent);
}

.checklist li::after {
  content: "";
  position: absolute;
  left: 0.36rem;
  top: calc(0.18em + 0.36rem);
  width: 0.58rem;
  height: 0.58rem;
  background: var(--accent-text);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.checklist strong {
  color: var(--text);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Product page hero
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(4rem, 8vw, 7rem);
  overflow: hidden;
  isolation: isolate;
}

.page-hero-grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}

@media (min-width: 1000px) {
  .page-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr);
  }
}

.page-hero-copy {
  display: grid;
  gap: 1.5rem;
  justify-items: start;
}

.page-hero-copy .lead {
  max-width: 52ch;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-4);
  font-family: var(--font-mono);
  font-size: 0.76rem;
}

.breadcrumbs a:hover {
  color: var(--text);
}

/* --------------------------------------------------------------------------
   Bento / capability cards
   -------------------------------------------------------------------------- */
.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 18px);
}

.bento > * {
  grid-column: span 2;
}

.bento--5 > :nth-child(-n + 2) {
  grid-column: span 3;
}

.bento .span-2 { grid-column: span 2; }
.bento .span-4 { grid-column: span 4; }

@media (max-width: 960px) {
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bento > *,
  .bento--5 > :nth-child(-n + 2),
  .bento .span-2,
  .bento .span-4 {
    grid-column: span 1;
  }

  .bento--5 > :last-child:nth-child(odd) {
    grid-column: span 2;
  }
}

@media (max-width: 620px) {
  .bento {
    grid-template-columns: minmax(0, 1fr);
  }

  .bento > *,
  .bento--5 > :last-child:nth-child(odd) {
    grid-column: auto;
  }
}

.cap-card {
  min-height: 250px;
}

.cap-card .icon-box {
  margin-bottom: 0.5rem;
}

/* --------------------------------------------------------------------------
   Stats / proof points (counters via [data-count])
   -------------------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: var(--line);
  overflow: hidden;
}

.stat {
  position: relative;
  display: grid;
  align-content: start;
  gap: 0.6rem;
  padding: clamp(24px, 3vw, 36px);
  background: var(--panel);
}

.stat::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 1.2s var(--ease-out) calc(var(--d, 0s) + 0.3s);
}

.is-in .stat::after,
.stat.is-in::after {
  transform: none;
}

.stat strong {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 1.6rem + 3vw, 4rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(120deg, #fff 20%, var(--accent-text));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat p {
  color: var(--text-3);
  font-size: 0.96rem;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Maturity ladder
   -------------------------------------------------------------------------- */
.ladder {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(var(--steps, 4), minmax(0, 1fr));
  align-items: end;
  gap: clamp(10px, 1.4vw, 16px);
}

.step {
  --i: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  min-height: calc(260px + var(--i) * 56px);
  padding: 24px 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.005)), var(--panel);
  overflow: hidden;
}

.step-level {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  color: var(--text-4);
  font-family: var(--font-mono);
  font-size: 0.76rem;
}

.step h3 {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.step p {
  color: var(--text-3);
  font-size: 0.93rem;
  line-height: 1.55;
}

.step-bar {
  margin-top: auto;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.step-bar i {
  display: block;
  height: 100%;
  width: calc((var(--i) + 1) * 25%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform-origin: 0 50%;
  transform: scaleX(0);
  transition: transform 1.3s var(--ease-out) calc(var(--d, 0s) + 0.3s);
}

.step.is-in .step-bar i,
.is-in .step-bar i {
  transform: none;
}

.step.is-zigtal {
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  background:
    radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01)),
    var(--panel-2);
  box-shadow: 0 30px 80px -30px color-mix(in srgb, var(--accent) 70%, transparent);
}

.step-flag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--grad-btn);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.7rem;
}

@media (max-width: 960px) {
  .ladder {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .step {
    min-height: 0;
  }
}

@media (max-width: 560px) {
  .ladder {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* --------------------------------------------------------------------------
   Use-case cards
   -------------------------------------------------------------------------- */
.uc-num {
  color: transparent;
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.05em;
  -webkit-text-stroke: 1px color-mix(in srgb, var(--accent) 60%, transparent);
}

/* --------------------------------------------------------------------------
   Integration hub band
   -------------------------------------------------------------------------- */
.band {
  position: relative;
  display: grid;
  gap: 2.5rem;
  align-items: center;
  padding: clamp(28px, 5vw, 56px);
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background:
    radial-gradient(70% 120% at 100% 50%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.005)),
    var(--panel);
  overflow: hidden;
  isolation: isolate;
}

@media (min-width: 900px) {
  .band {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  }
}

.band-copy {
  display: grid;
  gap: 1.1rem;
  justify-items: start;
}

.hub {
  position: relative;
  width: min(100%, 380px);
  aspect-ratio: 1;
  margin-inline: auto;
}

.hub::before,
.hub::after {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  border: 1px dashed var(--line-2);
}

.hub::after {
  inset: 30%;
  border-style: solid;
  border-color: var(--line);
}

.hub-core {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border-radius: 28px;
  border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent);
  background: radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--accent) 45%, transparent), transparent 70%), var(--panel-2);
  box-shadow: 0 0 60px -6px color-mix(in srgb, var(--accent) 70%, transparent);
  transform: translate(-50%, -50%);
}

.hub-core img {
  width: 54px;
  height: 54px;
}

.hub-orbit {
  position: absolute;
  inset: 12%;
  animation: orbit 40s linear infinite;
}

.hub-orbit > span {
  position: absolute;
  left: calc(50% + 50% * var(--x));
  top: calc(50% + 50% * var(--y));
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(12, 15, 29, 0.95);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  white-space: nowrap;
  transform: translate(-50%, -50%);
  animation: orbit 40s linear infinite reverse;
}

@keyframes orbit {
  to { rotate: 360deg; }
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.faq-layout {
  display: grid;
  gap: clamp(2rem, 5vw, 5rem);
}

@media (min-width: 960px) {
  .faq-layout {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
    align-items: start;
  }

  .faq-layout > :first-child {
    position: sticky;
    top: calc(var(--header-h) + 40px);
  }
}

.faq {
  display: grid;
  gap: 10px;
}

.faq-item {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  transition: border-color 0.3s, background 0.3s;
}

.faq-item[open] {
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 7%, transparent), transparent), var(--panel);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 20px 22px;
  color: var(--text);
  font-size: 1.04rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  list-style: none;
  cursor: pointer;
}

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

.faq-item summary::after {
  content: "";
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background:
    linear-gradient(var(--text-2), var(--text-2)) center / 11px 1.6px no-repeat,
    linear-gradient(var(--text-2), var(--text-2)) center / 1.6px 11px no-repeat;
  transition: transform 0.35s var(--ease), background-color 0.3s;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
  background-color: color-mix(in srgb, var(--accent) 25%, transparent);
}

.faq-answer {
  padding: 0 22px 22px;
  color: var(--text-3);
  line-height: 1.7;
  animation: faq-in 0.45s var(--ease-out);
}

.faq-answer > * + * {
  margin-top: 0.8rem;
}

@keyframes faq-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */
.cta {
  position: relative;
  padding-block: clamp(4rem, 8vw, 7rem);
}

.cta-panel {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 1.6rem;
  padding: clamp(48px, 8vw, 104px) clamp(22px, 5vw, 64px);
  border-radius: 36px;
  border: 1px solid var(--line-2);
  background:
    radial-gradient(60% 90% at 50% 0%, color-mix(in srgb, var(--accent) 32%, transparent), transparent 70%),
    radial-gradient(40% 60% at 85% 100%, color-mix(in srgb, var(--accent-2) 20%, transparent), transparent 70%),
    linear-gradient(180deg, #0f1328, #080a15);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

.cta-panel .h2 {
  max-width: 22ch;
}

.cta-panel .lead {
  max-width: 56ch;
}

.cta-panel .actions {
  justify-content: center;
}

.cta-panel .grid-floor {
  height: 55%;
  opacity: 0.8;
}

.cta-panel::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 60%;
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 90%, white), transparent);
}

/* --------------------------------------------------------------------------
   Marquee (site.js clones the track for a seamless loop)
   -------------------------------------------------------------------------- */
.marquee {
  --gap: clamp(2.5rem, 5vw, 4.5rem);
  position: relative;
  display: flex;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  flex: none;
  align-items: center;
  gap: var(--gap);
  padding-right: var(--gap);
  list-style: none;
  animation: marquee var(--dur, 40s) linear infinite;
  animation-direction: var(--dir, normal);
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

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

/* --------------------------------------------------------------------------
   Quote
   -------------------------------------------------------------------------- */
.quote-mark {
  width: 36px;
  height: 36px;
  color: var(--accent);
}

.cite {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-3);
  font-size: 0.92rem;
}

.cite strong {
  display: block;
  color: var(--text);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Tabs (shared)
   -------------------------------------------------------------------------- */
.tab-list {
  display: flex;
  gap: 6px;
  padding: 6px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  overflow-x: auto;
  scrollbar-width: none;
}

.tab-list::-webkit-scrollbar {
  display: none;
}

.tab {
  position: relative;
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--text-3);
  font-size: 0.92rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  transition: background 0.3s, color 0.3s;
}

.tab:hover {
  color: var(--text);
}

.tab[aria-selected="true"] {
  background: color-mix(in srgb, var(--accent) 16%, rgba(255, 255, 255, 0.04));
  color: #fff;
}

.tab-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: 0 50%;
}

.tab[aria-selected="true"] .tab-progress {
  animation: tab-progress var(--autoplay, 7s) linear forwards;
}

[data-tabs].is-paused .tab-progress,
[data-tabs].is-static .tab-progress {
  animation-play-state: paused;
}

[data-tabs].is-static .tab-progress {
  display: none;
}

@keyframes tab-progress {
  to { transform: scaleX(1); }
}

/* --------------------------------------------------------------------------
   Carousel (shared)
   -------------------------------------------------------------------------- */
.carousel {
  position: relative;
}

.carousel-viewport {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(300px, calc((100% - 2 * 18px) / 3));
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.carousel-viewport::-webkit-scrollbar {
  display: none;
}

.carousel-viewport > * {
  scroll-snap-align: start;
}

@media (max-width: 960px) {
  .carousel-viewport {
    grid-auto-columns: minmax(280px, calc((100% - 18px) / 2));
  }
}

@media (max-width: 620px) {
  .carousel-viewport {
    grid-auto-columns: 86%;
  }
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.6rem;
}

.carousel-btns {
  display: flex;
  gap: 8px;
}

.carousel-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  transition: border-color 0.2s, background 0.2s, opacity 0.2s;
}

.carousel-btn:hover:not(:disabled) {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}

.carousel-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.carousel-btn svg {
  width: 18px;
  height: 18px;
}

.carousel-dots {
  display: flex;
  gap: 6px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: var(--line-3);
  transition: width 0.35s var(--ease), background 0.3s;
}

.carousel-dot.is-active {
  width: 26px;
  background: var(--accent);
}

/* --------------------------------------------------------------------------
   Forms & contact
   -------------------------------------------------------------------------- */
.form-card {
  position: relative;
  padding: clamp(22px, 3vw, 34px);
  border-radius: var(--radius-xl);
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(22, 26, 48, 0.9), rgba(10, 12, 24, 0.94));
  box-shadow: var(--shadow-lg);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
}

.field--full {
  grid-column: 1 / -1;
}

.field-label {
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 50px;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: rgba(5, 6, 11, 0.6);
  color: var(--text);
  font-size: 1rem;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-4);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: 0;
  border-color: var(--violet);
  background: rgba(5, 6, 11, 0.85);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.22);
}

.form-submit {
  width: 100%;
  margin-top: 18px;
}

.form-error {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 107, 129, 0.4);
  background: rgba(255, 107, 129, 0.1);
  color: #ffc4cd;
  font-size: 0.92rem;
}

.hp {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

@media (max-width: 560px) {
  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Dialog */
.dialog {
  width: min(92vw, 420px);
  padding: 0;
  border-radius: 24px;
  border: 1px solid var(--line-2);
  background: var(--panel-2);
  color: var(--text);
  box-shadow: 0 50px 120px -20px rgba(0, 0, 0, 0.9);
}

.dialog::backdrop {
  background: rgba(5, 6, 11, 0.7);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.dialog[open] {
  animation: dialog-in 0.4s var(--ease-out);
}

@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.97);
  }
}

.dialog-inner {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 34px 28px 28px;
  text-align: center;
}

.dialog-inner h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: -0.03em;
}

.dialog-inner p {
  color: var(--text-3);
}

.dialog-inner .btn {
  width: 100%;
  margin-top: 8px;
}

.dialog-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(62, 230, 176, 0.14);
  color: var(--mint);
  box-shadow: 0 0 0 8px rgba(62, 230, 176, 0.06);
}

.dialog-icon svg {
  width: 26px;
  height: 26px;
}

/* --------------------------------------------------------------------------
   Command palette (⌘K)
   -------------------------------------------------------------------------- */
.palette {
  width: min(620px, 92vw);
  margin-top: 12vh;
  padding: 0;
  border-radius: 20px;
  border: 1px solid var(--line-2);
  background: rgba(12, 14, 26, 0.97);
  color: var(--text);
  box-shadow: 0 50px 140px -20px rgba(0, 0, 0, 0.95);
}

.palette::backdrop {
  background: rgba(5, 6, 11, 0.65);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.palette[open] {
  animation: dialog-in 0.3s var(--ease-out);
}

.palette-search {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
}

.palette-search svg {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--text-3);
}

.palette-search input {
  flex: 1;
  min-width: 0;
  height: 60px;
  border: 0;
  background: transparent;
  font-size: 1.05rem;
}

.palette-search input:focus {
  outline: 0;
}

.palette-list {
  max-height: min(420px, 55vh);
  margin: 0;
  padding: 8px;
  overflow-y: auto;
  list-style: none;
}

.palette-group {
  padding: 10px 12px 6px;
  color: var(--text-4);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.palette-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 11px;
  color: var(--text-2);
  font-size: 0.95rem;
}

.palette-list a span {
  color: var(--text-4);
  font-family: var(--font-mono);
  font-size: 0.74rem;
}

.palette-list a.is-active {
  background: rgba(139, 92, 246, 0.2);
  color: #fff;
}

.palette-empty {
  padding: 24px 12px;
  color: var(--text-3);
  text-align: center;
}

.palette-foot {
  display: flex;
  gap: 16px;
  padding: 10px 16px;
  border-top: 1px solid var(--line);
  color: var(--text-4);
  font-size: 0.76rem;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  position: relative;
  padding-top: clamp(4rem, 8vw, 6rem);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(91, 140, 255, 0.05));
  color: var(--text-3);
  font-size: 0.93rem;
  overflow: hidden;
}

.footer-top {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 900px) {
  .footer-top {
    grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
    gap: 3rem;
  }
}

.footer-brand {
  display: grid;
  gap: 1.2rem;
  justify-items: start;
  max-width: 400px;
}

.footer-brand .brand img {
  height: 40px;
}

.footer-brand p {
  color: var(--text-2);
  line-height: 1.65;
}

.footer-rating {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.footer-rating .stars {
  color: #ffa53b;
  letter-spacing: 0.08em;
}

/* Security and compliance badges */
.footer-certs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.footer-certs li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 12px 7px 9px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
}

.footer-certs svg {
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--mint);
}

.footer-certs span {
  display: grid;
  color: var(--text-4);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.footer-certs b {
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: none;
}

.footer-col h2 {
  margin-bottom: 1rem;
  color: var(--mint);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
}

.footer-col ul {
  display: grid;
  gap: 0.7rem;
  list-style: none;
}

.footer-col a {
  color: var(--text-3);
  transition: color 0.2s;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem 2rem;
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding: 1.3rem 0;
  border-top: 1px solid var(--line);
  color: var(--text-4);
  font-family: var(--font-mono);
  font-size: 0.76rem;
}

.footer-motto {
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-bottom a:hover {
  color: #fff;
}

.footer-bottom .to-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-bottom .to-top svg {
  width: 14px;
  height: 14px;
}

/* Giant wordmark with a gradient that follows the pointer */
.wordmark {
  position: relative;
  margin-top: 0.5rem;
  color: transparent;
  font-family: var(--font-display);
  font-size: clamp(5.5rem, 24vw, 21rem);
  font-weight: 600;
  line-height: 0.76;
  letter-spacing: -0.075em;
  text-align: center;
  white-space: nowrap;
  -webkit-text-stroke: 1.5px rgba(124, 131, 255, 0.28);
  user-select: none;
  pointer-events: auto;
}

.wordmark::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), #8b5cf6, #5b8cff 40%, transparent 70%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-stroke: 0;
  opacity: 0;
  transition: opacity 0.5s;
}

.wordmark:hover::after {
  opacity: 0.9;
}

/* --------------------------------------------------------------------------
   Cookie notice
   -------------------------------------------------------------------------- */
.cookie {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 150;
  width: min(380px, calc(100vw - 32px));
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--line-2);
  background: rgba(12, 14, 26, 0.96);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.9);
  font-size: 0.84rem;
  line-height: 1.5;
  animation: cookie-in 0.6s var(--ease-out) 0.8s both;
  transition: opacity 0.3s, transform 0.3s var(--ease);
}

.cookie.is-hidden {
  opacity: 0;
  transform: translateY(16px);
}

@keyframes cookie-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
}

.cookie-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cookie-row > svg {
  flex: none;
  width: 22px;
  height: 22px;
  color: var(--amber);
}

.cookie h2 {
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
}

.cookie details {
  margin-top: 8px;
  color: var(--text-3);
}

.cookie summary {
  width: fit-content;
  color: var(--text-3);
  font-size: 0.8rem;
  cursor: pointer;
}

.cookie details p {
  margin-top: 8px;
}

.cookie a {
  color: var(--accent-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.cookie-actions .btn {
  flex: 1;
}

/* --------------------------------------------------------------------------
   Prose (legal & long-form)
   -------------------------------------------------------------------------- */
.prose {
  color: var(--text-2);
  font-size: 1.02rem;
  line-height: 1.75;
}

.prose > * + * {
  margin-top: 1.1em;
}

.prose h2 {
  margin-top: 2.4em;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 1.2rem + 0.8vw, 1.9rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.03em;
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.prose h3 {
  margin-top: 1.8em;
  color: var(--text);
  font-size: 1.12rem;
  font-weight: 600;
}

.prose ul,
.prose ol {
  padding-left: 1.3em;
}

.prose li + li {
  margin-top: 0.4em;
}

.prose a {
  color: var(--accent-text);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 50%, transparent);
  text-underline-offset: 3px;
}

.prose strong {
  color: var(--text);
}

/* --------------------------------------------------------------------------
   Behaviour hooks (see site.js)
   -------------------------------------------------------------------------- */
.hl--split,
.is-split.hl,
.is-split.grad {
  background: none;
}

[data-tilt] {
  transform: perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.6s var(--ease-out);
}

[data-unfold] {
  transform: perspective(1800px) rotateX(calc((1 - var(--unfold, 1)) * 22deg)) scale(calc(0.88 + var(--unfold, 1) * 0.12));
  transform-origin: 50% 0%;
  will-change: transform;
}

.stack-anchor {
  display: block;
  height: 0;
}

/* Assemble: scattered → snapped into a grid */
.js [data-assemble] > * {
  opacity: 0.2;
  transform: translate(var(--ax, 0), var(--ay, 0)) rotate(var(--ar, 0deg)) scale(0.92);
  transition: transform 1.1s var(--ease-spring), opacity 0.8s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 70ms + 0.1s);
}

.js [data-assemble].is-in > * {
  opacity: 1;
  transform: none;
}

/* Scroll-scrubbed reading text */
[data-scrub] .sw {
  opacity: 0.18;
  transition: opacity 0.35s var(--ease);
}

[data-scrub] .sw.is-lit {
  opacity: 1;
}

/* Table of contents */
.toc {
  position: sticky;
  top: calc(var(--header-h) + 32px);
  display: grid;
  gap: 0.9rem;
  align-self: start;
}

.toc-title {
  color: var(--text-4);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.toc ol {
  list-style: none;
  border-left: 1px solid var(--line);
}

.toc a {
  display: block;
  margin-left: -1px;
  padding: 0.42rem 0 0.42rem 1rem;
  border-left: 2px solid transparent;
  color: var(--text-3);
  font-size: 0.88rem;
  line-height: 1.4;
  transition: color 0.2s, border-color 0.2s;
}

.toc a:hover {
  color: var(--text);
}

.toc a.is-active {
  border-left-color: var(--accent);
  color: #fff;
}

/* --------------------------------------------------------------------------
   Video frame with custom play button
   -------------------------------------------------------------------------- */
.video-frame {
  position: relative;
  padding: 1px;
  border-radius: 28px;
  background: linear-gradient(140deg, rgba(91, 140, 255, 0.7), rgba(255, 255, 255, 0.08) 32%, rgba(255, 255, 255, 0.06) 68%, rgba(232, 121, 249, 0.55));
  box-shadow: 0 60px 140px -40px rgba(91, 92, 255, 0.55), 0 30px 80px -30px rgba(0, 0, 0, 0.9);
}

.video-frame video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 27px;
  background: #000;
}

.video-play {
  position: absolute;
  inset: 1px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  border: 0;
  border-radius: 27px;
  background: radial-gradient(circle at 50% 50%, rgba(5, 6, 11, 0.15), rgba(5, 6, 11, 0.45));
  color: #fff;
  transition: opacity 0.4s, background 0.4s;
}

.video-play-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(68px, 9vw, 96px);
  height: clamp(68px, 9vw, 96px);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: var(--grad-btn);
  box-shadow: 0 20px 60px -10px rgba(124, 92, 255, 0.9);
  transition: transform 0.4s var(--ease-spring);
}

.video-play-btn::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.6);
  animation: ripple 2.4s var(--ease-out) infinite;
}

@keyframes ripple {
  to {
    transform: scale(1.7);
    opacity: 0;
  }
}

.video-play-btn svg {
  width: 32%;
  height: 32%;
  margin-left: 6%;
}

.video-play-label {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(5, 6, 11, 0.6);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.video-play:hover .video-play-btn {
  transform: scale(1.08);
}

.is-playing .video-play {
  opacity: 0;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Scroll-pinned tabs ([data-scrolltabs])
   -------------------------------------------------------------------------- */
.st-grid {
  position: relative;
  display: grid;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line-2);
  background:
    radial-gradient(70% 90% at 100% 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008)),
    var(--panel);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

@media (min-width: 960px) {
  .st-grid {
    grid-template-columns: 330px minmax(0, 1fr);
  }
}

.st-tabs {
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 10px;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 960px) {
  .st-tabs {
    padding: 14px;
    border-bottom: 0;
    border-right: 1px solid var(--line);
  }
}

.st-tab {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 16px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--text-3);
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
  text-align: left;
  transition: background 0.3s, color 0.3s;
}

.st-tab em {
  flex: none;
  color: var(--text-4);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 500;
}

.st-tab:hover {
  color: var(--text);
}

.st-tab[aria-selected="true"] {
  background: color-mix(in srgb, var(--accent) 14%, rgba(255, 255, 255, 0.03));
  color: #fff;
}

.st-tab[aria-selected="true"]::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22%;
  bottom: 22%;
  width: 3px;
  border-radius: 3px;
  background: var(--mint);
  box-shadow: 0 0 12px var(--mint);
}

.st-tab[aria-selected="true"] em {
  color: var(--mint);
}

.st-panels {
  position: relative;
  display: grid;
}

.st-panels > [role="tabpanel"] {
  grid-area: 1 / 1;
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out), visibility 0s;
}

.st-panels > [role="tabpanel"][hidden] {
  display: grid !important;
  visibility: hidden;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.3s, transform 0.3s, visibility 0s 0.3s;
}

.st-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  height: 3px;
  background: var(--line);
}

.st-progress i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--violet), var(--mint));
  transform-origin: 0 50%;
  transform: scaleX(var(--tp, 0));
}

/* site.js adds .is-unpinned when the block is taller than the viewport,
   so nothing ends up under the header or below the fold while pinned. */
@media (min-width: 960px) and (min-height: 620px) {
  [data-scrolltabs]:not(.is-unpinned) {
    height: calc(var(--steps, 4) * 70vh + 100vh);
    padding-block: 0;
  }

  [data-scrolltabs]:not(.is-unpinned) > .st-sticky {
    position: sticky;
    top: var(--header-h);
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: calc(100vh - var(--header-h));
  }

  [data-scrolltabs]:not(.is-unpinned) .section-head {
    margin-bottom: clamp(1.5rem, 3vh, 2.5rem);
  }
}

.is-unpinned .st-progress {
  display: none;
}

@media (max-width: 959px), (max-height: 619px) {
  .st-progress {
    display: none;
  }

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

  .st-tab {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px;
    font-size: 0.92rem;
  }
}

/* --------------------------------------------------------------------------
   Sticky stacking cards ([data-stack])
   -------------------------------------------------------------------------- */
.stack {
  display: grid;
  gap: 1.5rem 3rem;
}

@media (min-width: 1180px) {
  .stack {
    grid-template-columns: 240px minmax(0, 1fr);
  }
}

@media (max-width: 1179px) {
  .stack-rail {
    display: none;
  }
}

.stack-rail {
  position: sticky;
  top: calc(var(--header-h) + 40px);
  align-self: start;
}

.stack-count {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 4vw, 3.8rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.05em;
}

.stack-count span {
  color: var(--text-4);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0;
}

.stack-nav {
  list-style: none;
  margin-top: 1.4rem;
  border-left: 1px solid var(--line);
}

.stack-nav a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-left: -1px;
  padding: 0.6rem 0 0.6rem 1rem;
  border-left: 2px solid transparent;
  color: var(--text-3);
  font-size: 0.9rem;
  line-height: 1.35;
  transition: color 0.3s, border-color 0.3s;
}

.stack-nav a em {
  color: var(--text-4);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-style: normal;
  transition: color 0.3s;
}

.stack-nav a:hover {
  color: var(--text);
}

.stack-nav a.is-active {
  border-left-color: var(--accent);
  color: #fff;
}

.stack-nav a.is-active em {
  color: var(--accent-text);
}

.stack-bar {
  height: 3px;
  margin-top: 1.2rem;
  border-radius: 3px;
  background: var(--line);
  overflow: hidden;
}

.stack-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--violet), var(--mint));
  transform-origin: 0 50%;
  transform: scaleX(var(--p, 0));
}

.stack-card {
  position: sticky;
  top: calc(var(--header-h) + 32px + var(--i, 0) * 14px);
  margin-bottom: 18vh;
  transform-origin: 50% 0;
  transform: scale(calc(1 - var(--depth, 0) * 0.05));
  filter: brightness(calc(1 - var(--depth, 0) * 0.45));
}

.stack-card:last-child {
  margin-bottom: 0;
}

/* site.js adds .is-flat when a card is too tall to be read before the next one covers it */
.stack.is-flat .stack-card {
  position: relative;
  top: 0;
  margin-bottom: 1.5rem;
  transform: none;
  filter: none;
}

.stack.is-flat .stack-card:last-child {
  margin-bottom: 0;
}

@media (max-width: 959px) {
  .stack-rail {
    display: none;
  }

  .stack-card {
    position: relative;
    top: 0;
    margin-bottom: 16px;
    transform: none;
    filter: none;
  }
}

/* --------------------------------------------------------------------------
   Ask-Zigtal chat demo ([data-chat])
   -------------------------------------------------------------------------- */
.chat {
  position: relative;
  padding-top: 2.8rem;
}

.chat-window {
  border-radius: 26px;
}

.chat-body {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  min-height: 480px;
  padding: 1.6rem 1.4rem 1.2rem;
}

.msg {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  animation: msg-in 0.5s var(--ease-out) both;
}

@keyframes msg-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

.msg-av {
  display: grid;
  flex: none;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #e0627a);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 600;
}

.msg--zig .msg-av {
  background: var(--grad-btn);
  font-family: var(--font-display);
  font-size: 0.95rem;
  box-shadow: 0 0 22px -4px rgba(124, 92, 255, 0.9);
}

.msg-body {
  display: grid;
  flex: 1;
  justify-items: start;
  gap: 0.55rem;
  min-width: 0;
}

.msg-name {
  color: var(--text-3);
  font-size: 0.76rem;
}

.bubble {
  max-width: 100%;
  padding: 0.8rem 1.05rem;
  border-radius: 4px 16px 16px 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  font-size: 1rem;
  line-height: 1.5;
}

.bubble--zig {
  border-color: rgba(124, 131, 255, 0.3);
  background: linear-gradient(180deg, rgba(91, 140, 255, 0.17), rgba(139, 92, 246, 0.1));
}

.typing {
  display: inline-flex;
  gap: 5px;
  padding: 1rem 1.1rem;
  border-radius: 4px 16px 16px 16px;
  background: rgba(124, 131, 255, 0.16);
}

.typing i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #a5b4fc;
  animation: typing 1s infinite;
}

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

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

.evidence {
  display: grid;
  gap: 8px;
  width: 100%;
}

.evi {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 70px auto;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 0.9rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  animation: msg-in 0.5s var(--ease-out) both;
}

.evi-av {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
}

.evi-text strong {
  display: block;
  overflow: hidden;
  color: var(--text);
  font-size: 0.93rem;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.evi-text span {
  display: block;
  color: var(--text-3);
  font-size: 0.8rem;
  line-height: 1.4;
}

.evi-meter {
  height: 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.evi-meter i {
  display: block;
  height: 100%;
  width: var(--w, 50%);
  border-radius: inherit;
  transform-origin: 0 50%;
  animation: grow-x 1.1s var(--ease-out) both 0.15s;
}

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

.next-step {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.3rem 0.6rem;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  border: 1px dashed rgba(62, 230, 176, 0.4);
  background: rgba(62, 230, 176, 0.06);
  color: var(--text-2);
  font-size: 0.9rem;
  animation: msg-in 0.5s var(--ease-out) both;
}

.next-step span {
  color: var(--mint);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.chat-try {
  display: grid;
  gap: 0.7rem;
  padding: 1rem 1.4rem 1.4rem;
  border-top: 1px solid var(--line);
}

.chat-try > span {
  color: var(--text-3);
  font-size: 0.8rem;
}

.chat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chat-chip {
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(5, 6, 11, 0.6);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s var(--ease);
}

.chat-chip:hover {
  border-color: var(--violet);
  transform: translateY(-2px);
}

.chat-chip[aria-pressed="true"] {
  border-color: #eef1ff;
  background: #eef1ff;
  color: #0b1020;
}

.chat-toast {
  position: absolute;
  top: 0;
  left: -1.4rem;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: min(23rem, 92%);
  padding: 0.7rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--line-2);
  background: rgba(12, 14, 26, 0.96);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 24px 60px -16px rgba(0, 0, 0, 0.9);
  color: var(--text-2);
  font-size: 0.86rem;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s, transform 0.5s var(--ease-out);
  pointer-events: none;
}

.chat-toast.is-on {
  opacity: 1;
  transform: none;
}

.chat-toast b {
  color: #fff;
  font-weight: 600;
}

.chat-toast .msg-av {
  width: 2.1rem;
  height: 2.1rem;
  font-size: 0.7rem;
  background: linear-gradient(135deg, #14b8a6, #5b8cff);
}

@media (max-width: 980px) {
  .chat-toast {
    left: 0.5rem;
  }
}

@media (max-width: 560px) {
  .chat-body {
    min-height: 560px;
    padding: 1.1rem 0.9rem 0.8rem;
  }

  .evi {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.6rem;
    padding: 0.65rem;
  }

  .evi-meter {
    display: none;
  }

  .bubble {
    font-size: 0.95rem;
  }

  .chat-try {
    padding: 0.9rem;
  }
}

/* --------------------------------------------------------------------------
   Responsive type tweaks
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
  body {
    font-size: 1rem;
  }

  .btn-lg {
    min-height: 50px;
    padding: 0.8rem 1.3rem;
  }

  .actions .btn {
    flex: 1 1 auto;
  }

  .section-head {
    margin-bottom: 2.2rem;
  }
}

/* --------------------------------------------------------------------------
   Reduced motion: no movement, everything visible
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .js [data-reveal],
  .js [data-split]:not(.is-split) {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  .w > span {
    transform: none !important;
  }

  .js .animate .meter i,
  .js .animate .th-track i,
  .js .animate .bars i,
  .js .animate .heatmap i,
  .js .animate .seq > *,
  .js [data-assemble] > * {
    transform: none !important;
  }

  .js .animate .heatmap i {
    opacity: var(--v, 0.2);
  }

  .js .animate .seq > *,
  .js [data-assemble] > * {
    opacity: 1;
  }

  .js .animate .ring {
    --pv: var(--p, 72);
  }

  .step-bar i,
  .stat::after {
    transform: none !important;
  }

  [data-scrolltabs] {
    height: auto !important;
  }

  [data-scrolltabs] > .st-sticky {
    position: static !important;
    height: auto !important;
  }

  [data-unfold],
  [data-tilt],
  .stack-card {
    transform: none !important;
    filter: none !important;
  }
}
