/* ============================================================
   Kyntera landing — v2
   Concrete, sequential, with rich artifacts per section.
   ============================================================ */
:root {
  --bg:           #0a0a0c;
  --bg-elev:      #111114;
  --bg-elev-2:    #16161b;
  --bg-elev-3:    #1a1a1f;
  --line:         #1f1f25;
  --line-strong:  #2a2a33;
  --line-bright:  #393946;
  --text:         #F4F4F2;
  --text-dim:     #B8B8BE;
  --text-mute:    #8a8a92;
  --text-soft:    #6a6a74;
  --purple:       #7740FF;
  --purple-glow:  rgba(119, 64, 255, 0.45);
  --purple-soft:  rgba(119, 64, 255, 0.14);
  --purple-line:  rgba(119, 64, 255, 0.36);
  --cyan:         #22D3EE;
  --pink:         #EC4899;
  --orange:       #F97316;
  --green:        #4ADE80;
  --red:          #EF5829;

  --font-sans:    'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --font-display: 'Inter', system-ui, -apple-system, sans-serif;

  --maxw:         1200px;
  --pad-side:     24px;
  --section-pad:  120px;

  --h1:           60px;
  --h2:           48px;
  --h3:           24px;
  --sub:          18px;

  --radius-card:  16px;
  --radius-input: 10px;
}

@media (max-width: 760px) {
  :root {
    --section-pad: 72px;
    --h1: 42px;
    --h2: 30px;
    --h3: 20px;
    --sub: 16px;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
img, svg { display: block; max-width: 100%; }

/* ============================================================
   Background texture — fixed full-page SVG with curved gradient lines.
   Adds depth without dominating. Doubled with a subtle radial mesh.
   ============================================================ */
.bg-texture {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 700px at 75% -10%, rgba(119,64,255,0.10), transparent 65%),
    radial-gradient(600px 500px at -10% 30%, rgba(34,211,238,0.05), transparent 70%),
    radial-gradient(700px 500px at 105% 60%, rgba(236,72,153,0.04), transparent 70%);
}
body > * { position: relative; z-index: 1; }

/* ============================================================
   Logo
   ============================================================ */
.logo { display: inline-flex; align-items: center; gap: 6px; }
.logo-wm {
  font: 800 italic 24px/1 var(--font-display);
  letter-spacing: -0.035em;
  color: var(--text);
}
.logo-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--purple);
  margin-top: 2px;
  box-shadow: 0 0 14px var(--purple-glow);
}

/* ============================================================
   Container / layout
   ============================================================ */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--pad-side);
}
.container-narrow {
  max-width: 720px;
  margin: 0 auto;
  padding-inline: var(--pad-side);
}
section {
  padding-block: var(--section-pad);
  border-bottom: 1px solid var(--line);
  position: relative;
}
section:last-of-type { border-bottom: none; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 12, 0.78);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px var(--pad-side);
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.nav-links { display: flex; gap: 32px; }
.nav-links a {
  color: var(--text-mute);
  font: 500 14px/1 var(--font-sans);
  transition: color 160ms ease;
}
.nav-links a:hover { color: var(--text); }

@media (max-width: 760px) {
  .nav-links { display: none; }
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid transparent;
  font: 500 15px/1 var(--font-sans);
  padding: 12px 20px;
  border-radius: var(--radius-input);
  cursor: pointer;
  transition: filter 160ms ease, transform 160ms ease, background 160ms ease, border-color 160ms ease;
  white-space: nowrap;
  text-decoration: none;
}
.btn-sm { font-size: 14px; padding: 9px 14px; }
.btn-primary {
  background: var(--purple);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(119,64,255,0.32), 0 8px 28px -8px rgba(119,64,255,0.6);
}
.btn-primary:hover { filter: brightness(1.12); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-bright);
}
.btn-ghost:hover { border-color: var(--text-mute); background: var(--bg-elev); }

/* ============================================================
   Section headers
   ============================================================ */
.eyebrow {
  font: 500 12px/1 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 18px;
  display: inline-flex; align-items: center; gap: 8px;
}
section h2 {
  font: 700 var(--h2)/1.08 var(--font-display);
  letter-spacing: -0.025em;
  color: var(--text);
  margin: 0 0 24px;
  max-width: 22ch;
  text-wrap: balance;
}
.lede {
  font: 400 var(--sub)/1.6 var(--font-sans);
  color: var(--text-dim);
  max-width: 64ch;
  margin: 0 0 48px;
  text-wrap: pretty;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding-block: 64px 0;
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr);
  gap: 48px;
  align-items: center;
  padding-bottom: 80px;
}
.hero-text { min-width: 0; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 12px/1 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple);
  padding: 8px 14px;
  background: var(--purple-soft);
  border: 1px solid var(--purple-line);
  border-radius: 100px;
  margin-bottom: 28px;
}
.eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 8px var(--purple-glow);
  animation: pulse-soft 2s ease-in-out infinite;
}
@keyframes pulse-soft {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.hero h1 {
  font: 700 var(--h1)/1.06 var(--font-display);
  letter-spacing: -0.035em;
  margin: 0 0 24px;
  max-width: 20ch;
  text-wrap: balance;
}
.hero h1 em {
  font-style: italic;
  font-weight: 700;
  padding-inline-end: 0.08em;
  background: linear-gradient(120deg, #B69BFF 0%, #7740FF 50%, #5728d6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font: 400 var(--sub)/1.6 var(--font-sans);
  color: var(--text-dim);
  max-width: 56ch;
  margin: 0 0 32px;
  text-wrap: pretty;
}
.hero-ctas {
  display: flex; gap: 12px;
  margin-bottom: 32px;
}

/* Trust badges row */
.hero-badges {
  display: flex; flex-wrap: wrap;
  gap: 18px 24px;
}
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  font: 500 13px/1 var(--font-sans);
  color: var(--text-mute);
}
.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
}
.badge-dot-green { background: var(--green); box-shadow: 0 0 8px rgba(74,222,128,0.55); }
.badge-ico {
  font: 400 14px/1 var(--font-mono);
  color: var(--text-soft);
}

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
}

/* ============================================================
   HERO WORKSPACE — canvas pane + chat pane inside one frame
   Mirrors the real product layout: chat sits to the right of the
   canvas, both inside a single workspace shell with a chrome bar.
   ============================================================ */
.hero-canvas-wrap {
  min-width: 0;
  display: flex;
  justify-content: center;
}
.workspace-frame {
  width: 100%;
  max-width: 760px;
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 40px 80px -20px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(119, 64, 255, 0.1),
    0 0 120px -20px rgba(119, 64, 255, 0.25);
  position: relative;
}

/* chrome bar (window-style header) */
.canvas-chrome {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-elev-2);
}
.chrome-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--line-bright);
}
.dot-r { background: #ff5f56; opacity: 0.75; }
.dot-y { background: #ffbd2e; opacity: 0.75; }
.dot-g { background: #27c93f; opacity: 0.75; }
/* Chrome bar logo — same italic + purple-dot lockup as the top nav,
   just smaller, so the workspace mockup feels like an actual product
   window rather than a generic frame. */
.chrome-logo {
  margin-left: 12px;
  display: inline-flex; align-items: center; gap: 4px;
}
.chrome-logo-wm {
  font: 800 italic 14px/1 var(--font-display);
  letter-spacing: -0.03em;
  color: var(--text);
}
.chrome-logo-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--purple);
  margin-top: 1px;
  box-shadow: 0 0 8px var(--purple-glow);
}

/* workspace body: 2-column split (canvas | chat) */
.workspace-body {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  min-height: 420px;
}

/* ── CANVAS pane ─────────────────────────────────── */
.canvas-pane {
  position: relative;
  background:
    radial-gradient(circle at 50% 50%, rgba(119,64,255,0.03), transparent 70%),
    repeating-linear-gradient(0deg, transparent 0 23px, rgba(255,255,255,0.018) 23px 24px),
    repeating-linear-gradient(90deg, transparent 0 23px, rgba(255,255,255,0.018) 23px 24px);
  padding: 14px 14px 14px 52px;
  border-right: 1px solid var(--line);
}
.canvas-toolbar {
  position: absolute;
  left: 10px; top: 14px;
  display: flex; flex-direction: column; gap: 5px;
  background: var(--bg-elev-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 5px;
}
.cv-tool {
  width: 26px; height: 26px;
  background: transparent;
  border: none;
  color: var(--text-mute);
  border-radius: 6px;
  cursor: pointer;
  font: 500 12px/1 var(--font-sans);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 160ms ease, color 160ms ease;
}
.cv-tool:hover { background: var(--bg-elev-3); color: var(--text); }
.cv-tool-active { background: var(--purple-soft); color: var(--purple); }

.canvas-svg {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Real-product-style nodes ─────────────────────
   Two-row card layout:
     row 1: icon dot · entity name
     row 2: legal-form chip · country code
   Mirrors what users see in the actual app. */
.node rect {
  fill: var(--bg-elev-2);
  stroke: var(--line-bright);
  stroke-width: 1;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
}
.node-icon { fill: var(--purple); }
.node-icon-individual { fill: var(--red); }
.node-title {
  fill: var(--text);
  font: 600 10px/1 var(--font-sans);
  letter-spacing: -0.005em;
}
.node-chip {
  fill: var(--purple-soft);
  stroke: var(--purple-line);
  stroke-width: 0.5;
}
.node-chip-text {
  fill: var(--purple);
  font: 500 7px/1 var(--font-mono);
  text-anchor: middle;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.node-country {
  fill: var(--text-mute);
  font: 500 8px/1 var(--font-mono);
  text-anchor: end;
  letter-spacing: 0.08em;
}
.node-phantom rect {
  fill: rgba(119,64,255,0.04);
  stroke: var(--purple-line);
  stroke-dasharray: 3 2;
}

.phantom-label {
  fill: var(--purple);
  font: 600 7.5px/1 var(--font-mono);
  text-anchor: middle;
  letter-spacing: 0.14em;
}
.phantom-sub {
  fill: var(--text-soft);
  font: italic 400 8px/1 var(--font-sans);
  text-anchor: middle;
}

/* edges */
.edge {
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
}
.edge-eq { stroke: var(--purple);  filter: drop-shadow(0 0 4px rgba(119,64,255,0.4)); }
.edge-ry { stroke: var(--pink);    filter: drop-shadow(0 0 4px rgba(236,72,153,0.4)); }
.edge-ln { stroke: var(--orange);  filter: drop-shadow(0 0 4px rgba(249,115,22,0.4)); }
.edge-sv { stroke: var(--cyan);    filter: drop-shadow(0 0 4px rgba(34,211,238,0.4)); }

/* legend (compacted, fits within canvas-pane width) */
.canvas-legend {
  position: absolute;
  left: 52px; bottom: 10px;
  display: flex; gap: 12px;
  padding: 5px 10px;
  background: rgba(17,17,20,0.85);
  border: 1px solid var(--line);
  border-radius: 6px;
  backdrop-filter: blur(4px);
}
.legend-item {
  display: inline-flex; align-items: center; gap: 5px;
  font: 500 9px/1 var(--font-mono);
  color: var(--text-mute);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.legend-swatch {
  width: 10px; height: 2px; border-radius: 2px;
}
.sw-eq { background: var(--purple); }
.sw-ry { background: var(--pink); }
.sw-ln { background: var(--orange); }
.sw-sv { background: var(--cyan); }
.canvas-zoom {
  position: absolute;
  right: 12px; bottom: 10px;
  padding: 5px 9px;
  background: rgba(17,17,20,0.85);
  border: 1px solid var(--line);
  border-radius: 6px;
  font: 500 10px/1 var(--font-mono);
  color: var(--text-mute);
}

/* ── CHAT pane ─────────────────────────────────── */
.chat-pane {
  display: flex; flex-direction: column;
  background: var(--bg-elev);
  min-width: 0;
}
.chat-pane-head {
  display: flex; gap: 16px;
  padding: 14px 16px 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0;
}
.chat-tab {
  font: 500 12px/1 var(--font-sans);
  color: var(--text-mute);
  padding: 6px 0 12px;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  letter-spacing: -0.005em;
}
.chat-tab-active {
  color: var(--text);
  border-bottom-color: var(--purple);
}
.chat-msgs {
  flex: 1;
  display: flex; flex-direction: column;
  gap: 10px;
  padding: 14px 14px 0;
  overflow: hidden;
  min-height: 0;
}
.hero-chat-user {
  align-self: flex-end;
  max-width: 92%;
  background: var(--bg-elev-3);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 11px;
  font: 400 11.5px/1.5 var(--font-sans);
  color: var(--text);
  text-wrap: pretty;
}
.hero-chat-think {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: italic 400 11px/1 var(--font-sans);
  color: var(--text-mute);
}
.think-dots { display: inline-flex; gap: 3px; }
.think-dots span {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--purple);
  animation: think-pulse 1.2s ease-in-out infinite;
}
.think-dots span:nth-child(2) { animation-delay: 0.18s; }
.think-dots span:nth-child(3) { animation-delay: 0.36s; }
@keyframes think-pulse {
  0%, 60%, 100% { opacity: 0.3; transform: scale(0.85); }
  30% { opacity: 1; transform: scale(1.05); }
}
.hero-chat-ai {
  align-self: flex-start;
  max-width: 100%;
  display: flex; flex-direction: column; gap: 4px;
}
.hero-chat-thought {
  font: italic 400 10.5px/1 var(--font-sans);
  color: var(--text-soft);
}
.hero-chat-body {
  font: 400 11.5px/1.55 var(--font-sans);
  color: var(--text);
  text-wrap: pretty;
}
.chat-chip {
  display: inline-flex; align-items: center;
  gap: 4px;
  padding: 1px 6px 1px 5px;
  background: var(--purple-soft);
  border: 1px solid var(--purple-line);
  border-radius: 8px;
  color: var(--text);
  font: 500 10.5px/1.3 var(--font-sans);
  vertical-align: baseline;
  white-space: nowrap;
}
.chat-chip::before {
  content: '';
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--purple);
}
.chat-input {
  margin: 12px 14px 14px;
  padding: 8px 12px;
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg-elev-2);
  border: 1px solid var(--line);
  border-radius: 9px;
}
.chat-input-text {
  font: 400 11.5px/1 var(--font-sans);
  color: var(--text-soft);
}
.chat-input-send {
  width: 22px; height: 22px;
  border-radius: 6px;
  background: var(--purple);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font: 700 11px/1 var(--font-sans);
}

@media (max-width: 760px) {
  .workspace-body { grid-template-columns: 1fr; }
  .chat-pane { border-top: 1px solid var(--line); }
  .canvas-pane { border-right: none; }
}

/* ============================================================
   Hero workspace animation — 14s loop
   Choreography (chat narrates the canvas):
     0-4%   user message types in (chat)
     6-12%  thinking pulse (chat) + nothing on canvas yet
     14-22% Founder node appears
     24-30% HoldCo node + equity edge to it
     32-40% OpCo node + equity edge + loan dashed edge
     42-50% ALT B phantom group appears
     52-65% AI message fades in (thought-for + body)
     65-85% hold (whole composition visible)
     85-95% fade out
     95-100% rest
   ============================================================ */
.hero-canvas-wrap .node,
.hero-canvas-wrap .edge,
.hero-canvas-wrap .phantom-group,
.hero-canvas-wrap .hero-chat-user,
.hero-canvas-wrap .hero-chat-think,
.hero-canvas-wrap .hero-chat-ai {
  opacity: 0;
  animation-duration: 14000ms;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
  animation-fill-mode: both;
}
.hero-canvas-wrap .hero-chat-user { animation-name: hUser; }
.hero-canvas-wrap .hero-chat-think { animation-name: hThink; }
.hero-canvas-wrap .node-1 { animation-name: hNode1; }
.hero-canvas-wrap .node-2 { animation-name: hNode2; }
.hero-canvas-wrap .node-3 { animation-name: hNode3; }
.hero-canvas-wrap .edge-1 { animation-name: hEdge1; }
.hero-canvas-wrap .edge-2 { animation-name: hEdge2; }
.hero-canvas-wrap .edge-3 { animation-name: hEdge3; }
.hero-canvas-wrap .edge-4 { animation-name: hEdge4; }
.hero-canvas-wrap .phantom-group { animation-name: hPhantom; }
.hero-canvas-wrap .hero-chat-ai { animation-name: hAI; }

.hero-canvas-wrap .edge { stroke-dasharray: 220; stroke-dashoffset: 220; }

/* Phantom-group's inner node inherits visibility from its parent group's
   hPhantom animation. Without this override the universal .node rule's
   opacity:0 leaves the inner node stuck invisible (it never matches any
   per-node keyframe like hNode1/2/3). */
.hero-canvas-wrap .phantom-group .node {
  opacity: 1;
  animation: none;
}

/* Chat message bubbles slide-in slightly + fade. */
@keyframes hUser {
  0%, 2%    { opacity: 0; transform: translateY(4px); }
  6%        { opacity: 1; transform: translateY(0); }
  85%       { opacity: 1; }
  92%       { opacity: 0; }
  100%      { opacity: 0; }
}
@keyframes hThink {
  0%, 7%    { opacity: 0; }
  10%       { opacity: 1; }
  50%       { opacity: 1; }
  54%       { opacity: 0; }
  100%      { opacity: 0; }
}
@keyframes hAI {
  0%, 50%   { opacity: 0; transform: translateY(4px); }
  56%       { opacity: 1; transform: translateY(0); }
  85%       { opacity: 1; }
  92%       { opacity: 0; }
  100%      { opacity: 0; }
}

/* Canvas elements use opacity-only (transform on SVG <g> uses the
   HTML transform attribute already; CSS keyframe transforms can
   conflict). */
@keyframes hNode1 {
  0%, 13%   { opacity: 0; }
  18%       { opacity: 1; }
  85%       { opacity: 1; }
  92%       { opacity: 0; }
  100%      { opacity: 0; }
}
@keyframes hNode2 {
  0%, 23%   { opacity: 0; }
  29%       { opacity: 1; }
  85%       { opacity: 1; }
  92%       { opacity: 0; }
  100%      { opacity: 0; }
}
@keyframes hNode3 {
  0%, 32%   { opacity: 0; }
  38%       { opacity: 1; }
  85%       { opacity: 1; }
  92%       { opacity: 0; }
  100%      { opacity: 0; }
}
@keyframes hPhantom {
  0%, 30%   { opacity: 0; }
  38%       { opacity: 1; }
  88%       { opacity: 1; }
  94%       { opacity: 0; }
  100%      { opacity: 0; }
}
@keyframes hEdge1 {
  0%, 18%   { opacity: 0; stroke-dashoffset: 220; }
  24%       { opacity: 1; stroke-dashoffset: 0; }
  85%       { opacity: 1; stroke-dashoffset: 0; }
  92%       { opacity: 0; }
  100%      { opacity: 0; }
}
@keyframes hEdge2 {
  0%, 28%   { opacity: 0; stroke-dashoffset: 220; }
  34%       { opacity: 1; stroke-dashoffset: 0; }
  85%       { opacity: 1; stroke-dashoffset: 0; }
  92%       { opacity: 0; }
  100%      { opacity: 0; }
}
@keyframes hEdge3 {
  0%, 33%   { opacity: 0; stroke-dashoffset: 220; }
  39%       { opacity: 0.85; stroke-dashoffset: 0; }
  85%       { opacity: 0.85; stroke-dashoffset: 0; }
  92%       { opacity: 0; }
  100%      { opacity: 0; }
}
@keyframes hEdge4 {
  0%, 45%   { opacity: 0; stroke-dashoffset: 220; }
  52%       { opacity: 1; stroke-dashoffset: 0; }
  85%       { opacity: 1; stroke-dashoffset: 0; }
  92%       { opacity: 0; }
  100%      { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-canvas-wrap .node,
  .hero-canvas-wrap .edge,
  .hero-canvas-wrap .phantom-group,
  .hero-canvas-wrap .hero-chat-user,
  .hero-canvas-wrap .hero-chat-think,
  .hero-canvas-wrap .hero-chat-ai {
    opacity: 1 !important;
    transform: none !important;
    stroke-dashoffset: 0 !important;
    animation: none !important;
  }
}

/* ============================================================
   TRUSTED BY row
   ============================================================ */
.trusted-row {
  padding: 36px 0 56px;
  border-top: 1px solid var(--line);
}
.trusted-label {
  font: 500 11px/1 var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-soft);
  text-align: center;
  margin-bottom: 24px;
}
.trusted-logos {
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: center;
  gap: 56px;
}
.logo-pl {
  font: 600 18px/1 var(--font-display);
  letter-spacing: -0.01em;
  color: var(--text-mute);
  filter: saturate(0);
  opacity: 0.7;
  transition: opacity 200ms ease, color 200ms ease;
}
.logo-pl:hover { opacity: 1; color: var(--text-dim); }

@media (max-width: 760px) {
  .trusted-logos { gap: 24px 32px; }
  .logo-pl { font-size: 15px; }
}

/* ============================================================
   SHIFT — three cards
   ============================================================ */
.shift-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}
.shift-card {
  padding: 28px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  transition: border-color 200ms ease, background 200ms ease, transform 200ms ease;
}
.shift-card:hover {
  border-color: var(--line-bright);
  background: var(--bg-elev-2);
}
.shift-card-h {
  font: 600 14px/1 var(--font-sans);
  color: var(--text);
  margin-bottom: 14px;
  letter-spacing: -0.005em;
}
.shift-card p {
  font: 400 15px/1.6 var(--font-sans);
  color: var(--text-mute);
  margin: 0;
  text-wrap: pretty;
}
.shift-bottom {
  margin-top: 48px;
  font: 400 18px/1.6 var(--font-sans);
  color: var(--text);
  max-width: 62ch;
  text-wrap: pretty;
}

@media (max-width: 760px) {
  .shift-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   HOW IT WORKS — three stages
   ============================================================ */
.stages {
  display: flex; flex-direction: column;
  gap: 64px;
  margin-top: 56px;
}
.stage {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.stage-reverse .stage-head { order: 2; }
.stage-reverse .stage-art  { order: 1; }
.stage-num {
  font: 800 28px/1 var(--font-display);
  letter-spacing: -0.02em;
  color: var(--purple);
  margin-bottom: 16px;
}
.stage h3 {
  font: 700 32px/1.15 var(--font-display);
  letter-spacing: -0.025em;
  color: var(--text);
  margin: 0 0 14px;
}
.stage-head p {
  font: 400 17px/1.65 var(--font-sans);
  color: var(--text-mute);
  margin: 0;
  max-width: 48ch;
  text-wrap: pretty;
}

@media (max-width: 980px) {
  .stage, .stage-reverse { grid-template-columns: 1fr; gap: 28px; }
  .stage-reverse .stage-head { order: 1; }
  .stage-reverse .stage-art  { order: 2; }
}

/* Mini frame — shared for each stage's artifact */
.mini-frame {
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.04) inset,
    0 30px 60px -20px rgba(0,0,0,0.5),
    0 0 80px -20px rgba(119,64,255,0.15);
}
.mini-chrome {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 12px;
  background: var(--bg-elev-2);
  border-bottom: 1px solid var(--line);
}
.mini-chrome .chrome-dot { width: 8px; height: 8px; }
.mini-body { padding: 20px; min-height: 220px; }

/* Stage 1: chat input */
.mini-chat { display: flex; flex-direction: column; gap: 14px; }
.mini-msg-user {
  align-self: flex-end;
  max-width: 88%;
  padding: 12px 14px;
  background: var(--bg-elev-3);
  border: 1px solid var(--line);
  border-radius: 12px;
  font: 400 13.5px/1.55 var(--font-sans);
  color: var(--text);
  text-wrap: pretty;
}
.mini-typing {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 12px;
  font: italic 400 12px/1 var(--font-sans);
  color: var(--text-mute);
}
.mini-typing .dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--purple);
  animation: typing-blink 1.2s ease-in-out infinite;
}
.mini-typing .dot:nth-child(2) { animation-delay: 0.15s; }
.mini-typing .dot:nth-child(3) { animation-delay: 0.30s; }
@keyframes typing-blink {
  0%, 60%, 100% { opacity: 0.3; transform: scale(0.85); }
  30% { opacity: 1; transform: scale(1); }
}
.mini-typing-label { margin-left: 4px; }

/* Stage 2: canvas building */
.mini-canvas-2 {
  background:
    repeating-linear-gradient(0deg, transparent 0 19px, rgba(255,255,255,0.015) 19px 20px),
    repeating-linear-gradient(90deg, transparent 0 19px, rgba(255,255,255,0.015) 19px 20px);
}
.mini-canvas-2 svg { width: 100%; height: 220px; }

/* Animate stage 2 once visible — handled by .stage-art-visible class.
   We use opacity + dashoffset only (no transform) because the SVG <g>
   already has transform="translate(x y)" baked in via the HTML attribute,
   and overriding it with CSS keyframe transforms is unreliable across
   browsers when both apply. */
.mini-canvas-2 .m2-node,
.mini-canvas-2 .m2-edge {
  opacity: 0;
}
.mini-canvas-2 .m2-edge { stroke-dasharray: 200; stroke-dashoffset: 200; }

.stage-art-visible .mini-canvas-2 .m2-node-1 { animation: m2n1 3500ms 0ms forwards ease-out; }
.stage-art-visible .mini-canvas-2 .m2-node-2 { animation: m2n2 3500ms 0ms forwards ease-out; }
.stage-art-visible .mini-canvas-2 .m2-node-3 { animation: m2n3 3500ms 0ms forwards ease-out; }
.stage-art-visible .mini-canvas-2 .m2-node-4 { animation: m2n4 3500ms 0ms forwards ease-out; }
.stage-art-visible .mini-canvas-2 .m2-edge-1 { animation: m2e1 3500ms 0ms forwards ease-out; }
.stage-art-visible .mini-canvas-2 .m2-edge-2 { animation: m2e2 3500ms 0ms forwards ease-out; }
.stage-art-visible .mini-canvas-2 .m2-edge-3 { animation: m2e3 3500ms 0ms forwards ease-out; }

@keyframes m2n1 { 0% { opacity: 0; } 12% { opacity: 1; } 100% { opacity: 1; } }
@keyframes m2n2 { 0%, 24% { opacity: 0; } 36% { opacity: 1; } 100% { opacity: 1; } }
@keyframes m2n3 { 0%, 40% { opacity: 0; } 52% { opacity: 1; } 100% { opacity: 1; } }
@keyframes m2n4 { 0%, 56% { opacity: 0; } 68% { opacity: 1; } 100% { opacity: 1; } }
@keyframes m2e1 { 0%, 30% { opacity: 0; stroke-dashoffset: 200; } 42% { opacity: 1; stroke-dashoffset: 0; } 100% { opacity: 1; stroke-dashoffset: 0; } }
@keyframes m2e2 { 0%, 64% { opacity: 0; stroke-dashoffset: 200; } 78% { opacity: 1; stroke-dashoffset: 0; } 100% { opacity: 1; stroke-dashoffset: 0; } }
@keyframes m2e3 { 0%, 50% { opacity: 0; stroke-dashoffset: 200; } 62% { opacity: 1; stroke-dashoffset: 0; } 100% { opacity: 1; stroke-dashoffset: 0; } }

/* Stage 3: variant compare */
.mini-compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
}
.mini-compare-col {
  background: var(--bg-elev-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
}
.mini-compare-alt {
  border-color: var(--purple-line);
  background: var(--purple-soft);
}
.mini-tag {
  font: 600 9px/1 var(--font-mono);
  letter-spacing: 0.14em;
  color: var(--text-mute);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 4px 8px;
  display: inline-block;
  margin-bottom: 12px;
}
.mini-tag-alt { color: var(--purple); border-color: var(--purple-line); }
.mini-rows { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.mini-row {
  font: 500 12px/1 var(--font-sans);
  color: var(--text-dim);
  padding: 7px 9px;
  background: var(--bg-elev-3);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.mini-row-changed {
  color: var(--purple);
  border-color: var(--purple-line);
  background: rgba(119,64,255,0.07);
  position: relative;
}
.mini-row-changed::after {
  content: 'changed';
  position: absolute;
  right: 8px; top: 50%; transform: translateY(-50%);
  font: 500 8px/1 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purple);
  opacity: 0.7;
}
.mini-meta {
  font: 400 11px/1 var(--font-mono);
  color: var(--text-mute);
}
.mini-vs {
  font: 500 11px/1 var(--font-mono);
  color: var(--text-soft);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ============================================================
   WHY KYNTERA — 4 value props
   ============================================================ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.why-cell {
  display: flex; flex-direction: column;
  gap: 12px;
}
.why-ico {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px;
  background: var(--purple-soft);
  border: 1px solid var(--purple-line);
  color: var(--purple);
}
.why-ico svg { width: 18px; height: 18px; }
.why-h {
  font: 600 16px/1.3 var(--font-sans);
  color: var(--text);
}
.why-cell p {
  font: 400 14px/1.6 var(--font-sans);
  color: var(--text-mute);
  margin: 0;
  text-wrap: pretty;
}

@media (max-width: 980px) {
  .why-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  .why-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   AUDIENCE — 4 cells
   ============================================================ */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 32px;
}
.audience-cell {
  padding: 28px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  transition: border-color 200ms ease, transform 200ms ease;
}
.audience-cell:hover {
  border-color: var(--purple-line);
  transform: translateY(-2px);
}
.audience-h {
  font: 600 17px/1.3 var(--font-sans);
  color: var(--text);
  margin-bottom: 10px;
}
.audience-cell p {
  font: 400 14.5px/1.6 var(--font-sans);
  color: var(--text-mute);
  margin: 0;
  text-wrap: pretty;
}

@media (max-width: 760px) {
  .audience-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   VOICES
   ============================================================ */
.voices-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}
.voice {
  margin: 0;
  padding: 24px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  display: flex; flex-direction: column;
  gap: 22px;
}
.voice blockquote {
  margin: 0;
  font: 400 15px/1.6 var(--font-sans);
  color: var(--text);
  text-wrap: pretty;
}
.voice blockquote::before {
  content: '“';
  display: block;
  font: 700 32px/0.6 var(--font-display);
  color: var(--purple);
  margin-bottom: 12px;
}
.voice figcaption {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 2px;
}
.voice-name {
  font: 600 13px/1.3 var(--font-sans);
  color: var(--text);
}
.voice-role {
  font: 400 13px/1.3 var(--font-sans);
  color: var(--text-mute);
}

@media (max-width: 980px) {
  .voices-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   FINAL CTA
   ============================================================ */
.cta {
  text-align: center;
  padding-block: 128px;
  border-bottom: none;
  background:
    radial-gradient(720px 360px at 50% 30%, rgba(119,64,255,0.09), transparent 70%);
}
.cta h2 {
  font-size: calc(var(--h2) * 1.05);
  margin: 0 auto 22px;
  max-width: 18ch;
}
.cta p {
  font: 400 17px/1.6 var(--font-sans);
  color: var(--text-mute);
  margin: 0 auto 32px;
  max-width: 56ch;
  text-wrap: pretty;
}
.waitlist {
  display: flex; gap: 8px;
  max-width: 480px; margin: 0 auto;
}
.waitlist-lg input { padding: 14px 16px; font-size: 16px; }
.waitlist input {
  flex: 1; min-width: 0;
  padding: 12px 14px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-input);
  color: var(--text);
  font: 400 15px/1.4 var(--font-sans);
  outline: none;
}
.waitlist input::placeholder { color: var(--text-soft); }
.waitlist input:focus {
  border-color: var(--purple-line);
  background: var(--bg-elev-2);
}
.waitlist-sent {
  color: var(--purple);
  font: 500 15px/1.4 var(--font-sans);
  padding: 12px 0;
}
.cta-fine {
  font: 400 13px/1.55 var(--font-sans);
  color: var(--text-soft);
  margin-top: 18px;
  max-width: 54ch;
  margin-inline: auto;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--line); }
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 32px var(--pad-side);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-left {
  display: flex; align-items: center; gap: 18px;
  flex-wrap: wrap;
}
.footer-tag {
  color: var(--text-mute);
  font: 400 13px/1.5 var(--font-sans);
  max-width: 48ch;
}
.footer-right { display: flex; gap: 22px; }
.footer-right a {
  color: var(--text-mute);
  font: 400 13px/1 var(--font-sans);
  transition: color 160ms ease;
}
.footer-right a:hover { color: var(--text); }

/* ============================================================
   Reveal-on-scroll
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 600ms ease, transform 600ms ease;
}
.reveal.is-revealed { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.is-revealed {
    opacity: 1; transform: none; transition: none;
  }
}
