/* Fusionspire landing — editorial sage/paper marketing system.
   Fraunces (display serif) + Public Sans (body). Light + dark via prefers-color-scheme.
   All motion is transform/opacity only; every animation has a reduced-motion fallback. */

:root {
  --paper: #faf8f3;
  --card: #ffffff;
  --ink: #26302b;
  --ink-soft: #5a675f;
  --line: #e3ded2;
  --sage: #6b7f6e;
  --sage-deep: #47584a;
  --sage-wash: #eef1ec;
  --accent: #8a6d3b;
  --good: #3e7a4e;
  --good-wash: #e8f2ea;
  --chat-bubble: #e6ede2;
  --chat-ink: #273428;
  --tick: #3e7a4e;
  --shadow: 0 1px 2px rgba(38, 48, 43, 0.05), 0 12px 32px -12px rgba(38, 48, 43, 0.18);
  --shadow-soft: 0 1px 2px rgba(38, 48, 43, 0.04), 0 6px 20px -8px rgba(38, 48, 43, 0.12);
  --serif: "Fraunces", ui-serif, Georgia, "Iowan Old Style", serif;
  --sans: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1c211e;
    --card: #232a26;
    --ink: #e8e6df;
    --ink-soft: #a8b0a9;
    --line: #37403a;
    --sage: #93a894;
    --sage-deep: #b8c9b9;
    --sage-wash: #2a332d;
    --accent: #c9a86a;
    --good: #7fbb8e;
    --good-wash: #26362b;
    --chat-bubble: #2c3a30;
    --chat-ink: #dbe7da;
    --tick: #7fbb8e;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px -12px rgba(0, 0, 0, 0.5);
    --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.25), 0 6px 20px -8px rgba(0, 0, 0, 0.4);
  }
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
html,
body {
  margin: 0;
  padding: 0;
}
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img,
svg {
  max-width: 100%;
}
h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.7rem, 6.4vw, 4.6rem);
  font-weight: 700;
}
h2 {
  font-size: clamp(2rem, 4.4vw, 3.1rem);
}
h3 {
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
}
h4 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.15rem;
  margin: 0 0 0.35em;
}
p {
  margin: 0 0 1em;
}
a {
  color: var(--sage-deep);
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1em;
}
.section-sub {
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  max-width: 34em;
}

/* ══════════ buttons ══════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--sans);
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  min-height: 48px;
  padding: 0.7em 1.6em;
  font-size: 1rem;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), background-color
    0.2s;
  will-change: transform;
}
.btn-primary {
  background: var(--sage-deep);
  color: var(--paper);
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover {
  box-shadow: var(--shadow);
}
@media (prefers-color-scheme: dark) {
  .btn-primary {
    background: var(--sage-deep);
    color: #1c211e;
  }
}
.btn-sm {
  min-height: 42px;
  padding: 0.45em 1.2em;
  font-size: 0.95rem;
}
.btn-lg {
  padding: 0.85em 2em;
  font-size: 1.06rem;
}
.btn-block {
  width: 100%;
}
.btn[disabled] {
  opacity: 0.55;
  cursor: default;
  pointer-events: none;
}

/* ══════════ nav ══════════ */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}
.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.wordmark {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.wordmark-dot {
  color: var(--accent);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav-login {
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 10px 2px;
  white-space: nowrap;
}
.nav-login:hover {
  color: var(--ink);
}

/* ══════════ hero ══════════ */
.hero {
  position: relative;
  overflow: clip;
  padding: clamp(64px, 9vw, 128px) 24px clamp(72px, 10vw, 140px);
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
  will-change: transform;
}
.blob-a {
  width: 460px;
  height: 460px;
  right: -140px;
  top: -120px;
  background: var(--sage-wash);
}
.blob-b {
  width: 380px;
  height: 380px;
  left: -160px;
  bottom: -180px;
  background: color-mix(in srgb, var(--accent) 14%, var(--paper));
}
.hero-inner {
  position: relative;
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero-sub {
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  color: var(--ink-soft);
  max-width: 30em;
  margin-bottom: 2em;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.hero-note {
  font-size: 0.88rem;
  color: var(--ink-soft);
  max-width: 18em;
}

/* hero visual */
.hero-visual {
  position: relative;
  min-height: 340px;
}
.hv-canvas {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hv-canvas-bar,
.page-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}
.hv-dot-ui {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line);
}
.hv-canvas-title {
  margin-left: 8px;
  font-size: 0.78rem;
  color: var(--ink-soft);
  font-weight: 500;
}
.hv-svg {
  display: block;
  width: 100%;
  height: auto;
}
.hv-node,
.fx-node,
.ax-node {
  fill: var(--sage-wash);
  stroke: var(--sage);
  stroke-width: 1.5;
}
.fx-node-soft {
  fill: var(--card);
  stroke: var(--line);
}
.hv-diamond,
.fx-diamond,
.ax-diamond {
  fill: var(--paper);
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-dasharray: 5 4;
}
.hv-edge,
.fx-edge,
.ax-edge {
  fill: none;
  stroke: var(--sage);
  stroke-width: 1.5;
  opacity: 0.75;
}
.hv-label,
.fx-label,
.ax-label {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  fill: var(--ink);
  text-anchor: middle;
}
.hv-label-sm,
.fx-label-sm,
.ax-label-sm {
  font-size: 11px;
  fill: var(--accent);
}
.hv-runner {
  fill: var(--accent);
  offset-path: path(
    "M83 62 H 246 C 258 62 258 84 258 100 V 158 C 258 170 300 170 330 158 L 378 120"
  );
  animation: runner 5s linear infinite;
}
@keyframes runner {
  0% {
    offset-distance: 0%;
    opacity: 0;
  }
  6% {
    opacity: 1;
  }
  86% {
    opacity: 1;
  }
  92%,
  100% {
    offset-distance: 100%;
    opacity: 0;
  }
}
.hv-float {
  position: absolute;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  animation: levitate 7s ease-in-out infinite;
}
.hv-bubble {
  left: -18px;
  bottom: -26px;
  max-width: 250px;
  padding: 12px 16px;
  background: var(--chat-bubble);
  border-color: transparent;
  color: var(--chat-ink);
  border-radius: 16px 16px 16px 4px;
}
.hv-bubble p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
}
.hv-ticks {
  display: block;
  text-align: right;
  font-size: 0.75rem;
  color: var(--tick);
  font-weight: 700;
}
.hv-chip {
  right: -10px;
  top: -22px;
  padding: 10px 16px;
  animation-delay: 1.6s;
}
.hv-chip-label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.hv-chip-value {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--good);
}
@keyframes levitate {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-9px);
  }
}

/* ══════════ reveal-on-scroll ══════════ */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
[data-reveal].in {
  opacity: 1;
  transform: none;
}
[data-reveal][data-reveal-delay="1"] {
  transition-delay: 0.12s;
}
[data-reveal][data-reveal-delay="2"] {
  transition-delay: 0.24s;
}

/* ══════════ showcase scenes ══════════ */
.showcase {
  max-width: 1160px;
  margin: 0 auto;
  padding: clamp(72px, 10vw, 150px) 24px 0;
}
.showcase-intro {
  max-width: 640px;
  margin-bottom: clamp(56px, 7vw, 100px);
}
.scene {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(40px, 6vw, 84px) 0;
}
.scene-flip .scene-copy {
  order: 2;
}
.scene-flip .scene-visual {
  order: 1;
}
.scene-copy p:last-child {
  color: var(--ink-soft);
  font-size: 1.06rem;
  max-width: 28em;
}
.scene-visual {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: clamp(16px, 2.5vw, 28px);
}
.scene-svg {
  display: block;
  width: 100%;
  height: auto;
}

/* — scene A: funnel builder — */
.fx-node,
.fx-diamond {
  opacity: 0;
  transform: scale(0.6);
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity 0.45s var(--ease-spring), transform 0.45s var(--ease-spring);
}
.fx-label {
  opacity: 0;
  transition: opacity 0.4s ease 0.15s;
}
.fx-edge {
  stroke-dasharray: 220;
  stroke-dashoffset: 220;
  transition: stroke-dashoffset 0.6s var(--ease-out);
}
.play .fx-n1 {
  opacity: 1;
  transform: none;
  transition-delay: 0.1s;
}
.play .fx-t1 {
  opacity: 1;
  transition-delay: 0.25s;
}
.play .fx-edge-1 {
  stroke-dashoffset: 0;
  transition-delay: 0.5s;
}
.play .fx-n2 {
  opacity: 1;
  transform: none;
  transition-delay: 0.8s;
}
.play .fx-t2 {
  opacity: 1;
  transition-delay: 0.95s;
}
.play .fx-edge-2 {
  stroke-dashoffset: 0;
  transition-delay: 1.2s;
}
.play .fx-n3 {
  opacity: 1;
  transform: none;
  transition-delay: 1.5s;
}
.play .fx-t3 {
  opacity: 1;
  transition-delay: 1.65s;
}
.play .fx-edge-3,
.play .fx-edge-4 {
  stroke-dashoffset: 0;
  transition-delay: 1.9s;
}
.play .fx-n4,
.play .fx-n5 {
  opacity: 1;
  transform: none;
  transition-delay: 2.2s;
}
.play .fx-t4,
.play .fx-t5 {
  opacity: 1;
  transition-delay: 2.35s;
}
.fx-publish rect {
  fill: var(--good);
}
.fx-publish text {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  fill: var(--paper);
  text-anchor: middle;
}
.fx-publish {
  opacity: 0;
  transform: translateY(-14px);
  transform-box: fill-box;
  transition: opacity 0.5s var(--ease-spring) 2.8s, transform 0.5s var(--ease-spring) 2.8s;
}
.play .fx-publish {
  opacity: 1;
  transform: none;
}
.fx-runner {
  fill: var(--accent);
  opacity: 0;
  offset-path: path("M87 76 H 258 V 142 L 304 176 C 344 176 344 176 399 152");
}
.play .fx-runner {
  animation: runner 4.5s linear 3.2s infinite;
}

/* — scene B: automation — */
.scene-visual-split {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 18px;
  align-items: center;
}
.ax-node,
.ax-diamond {
  opacity: 0;
  transform: translateY(12px);
  transform-box: fill-box;
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.ax-edge {
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  transition: stroke-dashoffset 0.5s var(--ease-out);
}
.play .ax-n1 {
  opacity: 1;
  transform: none;
  transition-delay: 0.1s;
}
.play .ax-e1 {
  stroke-dashoffset: 0;
  transition-delay: 0.5s;
}
.play .ax-n2 {
  opacity: 1;
  transform: none;
  transition-delay: 0.75s;
}
.play .ax-e2 {
  stroke-dashoffset: 0;
  transition-delay: 1.15s;
}
.play .ax-n3 {
  opacity: 1;
  transform: none;
  transition-delay: 1.4s;
}
.ax-token {
  fill: var(--accent);
  opacity: 0;
  offset-path: path("M110 44 V 122 V 210");
}
.play .ax-token {
  animation: runner 3.5s linear 2s infinite;
}
.chat-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.chat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--sage-wash);
  font-weight: 600;
  font-size: 0.9rem;
}
.chat-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--sage-deep);
  color: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}
.chat-status {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--good);
}
.chat-body {
  padding: 16px 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 172px;
}
.msg-bubble {
  max-width: 85%;
  border-radius: 14px 14px 14px 4px;
  background: var(--chat-bubble);
  color: var(--chat-ink);
  padding: 9px 12px;
  font-size: 0.88rem;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.msg-bubble p {
  margin: 0;
}
.msg-typing {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  padding: 12px 14px;
  width: max-content;
}
.msg-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--chat-ink);
  opacity: 0.4;
}
.play .msg-typing {
  opacity: 1;
  transform: none;
  transition-delay: 2.2s;
  animation: typing-hide 0.01s linear 3.4s forwards;
}
.play .msg-typing span {
  animation: typing-dot 0.9s ease-in-out 2.2s 2;
}
.play .msg-typing span:nth-child(2) {
  animation-delay: 2.35s;
}
.play .msg-typing span:nth-child(3) {
  animation-delay: 2.5s;
}
@keyframes typing-dot {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}
@keyframes typing-hide {
  to {
    opacity: 0;
    transform: scale(0.8);
    position: absolute;
    visibility: hidden;
  }
}
.play .msg-sent {
  opacity: 1;
  transform: none;
  transition-delay: 3.45s;
}
.msg-meta {
  display: block;
  text-align: right;
  font-size: 0.68rem;
  opacity: 0.75;
}
.msg-ticks {
  color: var(--chat-ink);
  font-weight: 700;
}
.play .msg-ticks {
  animation: ticks-delivered 0.01s linear 4.4s forwards;
}
@keyframes ticks-delivered {
  to {
    color: var(--tick);
  }
}
.msg-reply {
  align-self: flex-end;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 14px 14px 4px 14px;
}
.play .msg-reply {
  opacity: 1;
  transform: none;
  transition-delay: 5s;
}

/* — scene C: page builder — */
.page-frame {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.locale-chip {
  margin-left: auto;
  position: relative;
  display: inline-block;
  min-width: 52px;
  height: 24px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  overflow: hidden;
}
.locale {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0;
  transform: translateY(100%);
}
.play .locale {
  animation: locale-cycle 7.5s var(--ease-out) 1.2s infinite;
}
.play .locale-zh {
  animation-delay: 3.7s;
}
.play .locale-es {
  animation-delay: 6.2s;
}
@keyframes locale-cycle {
  0% {
    opacity: 0;
    transform: translateY(100%);
  }
  3%,
  30% {
    opacity: 1;
    transform: none;
  }
  33%,
  100% {
    opacity: 0;
    transform: translateY(-100%);
  }
}
.page-blocks {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pb {
  border-radius: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
}
.play .pb-nav {
  opacity: 1;
  transform: none;
  transition-delay: 0.15s;
}
.play .pb-hero {
  opacity: 1;
  transform: none;
  transition-delay: 0.45s;
}
.play .pb-video {
  opacity: 1;
  transform: none;
  transition-delay: 0.75s;
}
.play .pb-form {
  opacity: 1;
  transform: none;
  transition-delay: 1.05s;
}
.pb-nav {
  height: 22px;
  background: var(--sage-wash);
  border-color: transparent;
}
.pb-hero {
  padding: 20px 18px;
}
.pb-headline {
  position: relative;
  display: block;
  height: 1.5em;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--ink);
  margin-bottom: 10px;
}
.ph {
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(60%);
}
.play .ph {
  animation: locale-cycle 7.5s var(--ease-out) 1.2s infinite;
}
.play .ph-zh {
  animation-delay: 3.7s;
}
.play .ph-es {
  animation-delay: 6.2s;
}
.pb-line {
  display: block;
  height: 8px;
  border-radius: 4px;
  background: var(--line);
  margin-top: 8px;
  width: 82%;
}
.pb-line-short {
  width: 55%;
}
.pb-video {
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sage-wash);
  border-color: transparent;
}
.pb-play {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--sage-deep);
  color: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  padding-left: 3px;
}
.pb-form {
  display: flex;
  gap: 10px;
  padding: 14px;
  align-items: center;
}
.pb-field {
  flex: 1;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--paper);
}
.pb-btn {
  width: 96px;
  height: 30px;
  border-radius: 999px;
  background: var(--accent);
}

/* — scene D: CRM + analytics — */
.crm-mock {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.kanban {
  display: grid;
  /* minmax(0, …): a nowrap card must never widen its column */
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.kcol {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 128px;
}
.kcol-won {
  border-color: var(--good);
  background: var(--good-wash);
}
.kcol-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.kcol-won .kcol-title {
  color: var(--good);
}
.kcard {
  display: block;
  height: 34px;
  border-radius: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.kcard-short {
  height: 24px;
  opacity: 0.7;
}
.kcard-mover {
  display: block;
  line-height: 34px;
  min-width: 0;
  max-width: 100%;
  padding: 0 10px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-color: var(--sage);
  will-change: transform;
  position: relative;
  z-index: 2;
}
.play .kcard-mover {
  animation: card-win 1.1s var(--ease-spring) 0.9s forwards;
}
@keyframes card-win {
  0% {
    transform: translateX(0) rotate(0deg);
  }
  45% {
    transform: translateX(55%) rotate(2.5deg) scale(1.04);
  }
  100% {
    /* one column to the right: own width (column − 2×10px padding) + padding + 12px gap + padding */
    transform: translateX(calc(100% + 32px)) rotate(0deg);
  }
}
.crm-stats {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 18px;
  align-items: stretch;
}
.stat {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.stat-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.stat-value {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--good);
}
.stat-value b {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.funnel-chart {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  justify-content: center;
}
.fbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  position: relative;
  height: 16px;
}
.fbar i {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: var(--sage);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.9s var(--ease-out);
}
.fbar-1 i {
  width: 100%;
}
.fbar-2 i {
  width: 70%;
}
.fbar-3 i {
  width: 34%;
  background: var(--accent);
}
.fbar-4 i {
  width: 15%;
  background: var(--good);
}
.play .fbar i {
  transform: scaleX(1);
}
.play .fbar-2 i {
  transition-delay: 0.2s;
}
.play .fbar-3 i {
  transition-delay: 0.4s;
}
.play .fbar-4 i {
  transition-delay: 0.6s;
}
.fbar em {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--ink-soft);
}
/* the first bar spans the full row, so its label sits ON the bar — invert it */
.fbar-1 em {
  color: var(--paper);
  right: 8px;
}

/* ══════════ feature grid ══════════ */
.features {
  max-width: 1160px;
  margin: 0 auto;
  padding: clamp(88px, 11vw, 170px) 24px 0;
}
.features-head {
  max-width: 640px;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.feature-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
}
.feature-grid li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 20px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
@media (hover: hover) {
  .feature-grid li:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
  }
}
.feature-grid p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.5;
}

/* ══════════ trust strip ══════════ */
.trust {
  margin-top: clamp(88px, 11vw, 170px);
  background: var(--sage-wash);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.trust-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: clamp(48px, 6vw, 80px) 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
}
.trust-icon {
  font-size: 1.6rem;
  display: block;
  margin-bottom: 12px;
}
.trust-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* ══════════ waitlist ══════════ */
.waitlist {
  padding: clamp(88px, 11vw, 170px) 24px;
}
.waitlist-inner {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}
.waitlist .section-sub {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2.4em;
}
#waitlist-form {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.field input {
  width: 100%;
  min-height: 50px;
  padding: 10px 16px;
  font: inherit;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--sage) 22%, transparent);
}
.field.invalid input {
  border-color: #a03b2e;
}
.field-error,
.form-error {
  margin: 6px 2px 0;
  font-size: 0.84rem;
  color: #a03b2e;
}
@media (prefers-color-scheme: dark) {
  .field.invalid input {
    border-color: #e0836f;
  }
  .field-error,
  .form-error {
    color: #e0836f;
  }
}
.form-note {
  margin: 4px 0 0;
  font-size: 0.82rem;
  color: var(--ink-soft);
  text-align: center;
}
/* honeypot: visually removed, still form-submittable by naive bots */
.hp-wrap {
  position: absolute;
  left: -9999px;
  top: -9999px;
  height: 1px;
  width: 1px;
  overflow: hidden;
}
.wl-success {
  background: var(--good-wash);
  border: 1px solid var(--good);
  border-radius: 16px;
  padding: 32px 28px;
  text-align: center;
}
.wl-success h3 {
  color: var(--good);
  margin-bottom: 0.3em;
}
.wl-success p {
  margin: 0;
  color: var(--ink);
}
.wl-position {
  font-family: var(--serif);
  font-weight: 700;
}

/* ══════════ footer ══════════ */
.footer {
  border-top: 1px solid var(--line);
  padding: 40px 24px 56px;
}
.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}
.footer-inner p {
  margin: 0;
}
.wordmark-sm {
  font-size: 1.1rem;
  margin-bottom: 6px;
}
.footer-privacy {
  font-size: 0.8rem;
}

/* ══════════ sticky mini-CTA (mobile) ══════════ */
.mini-cta {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 10px 10px 18px;
  background: color-mix(in srgb, var(--card) 92%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow);
  font-size: 0.88rem;
  font-weight: 600;
  transform: translateY(120%);
  transition: transform 0.4s var(--ease-out);
}
.mini-cta.show {
  transform: none;
}

/* ══════════ responsive ══════════ */
@media (max-width: 860px) {
  .hero-inner,
  .scene {
    grid-template-columns: 1fr;
  }
  .scene-flip .scene-copy {
    order: 0;
  }
  .scene-flip .scene-visual {
    order: 1;
  }
  .hero-visual {
    min-height: 0;
    margin: 8px 6px 30px;
  }
  .hv-bubble {
    left: -6px;
    bottom: -22px;
  }
  .hv-chip {
    right: -6px;
  }
  .scene-visual-split {
    grid-template-columns: 1fr;
  }
  .scene-visual-split .scene-svg {
    max-width: 260px;
    margin: 0 auto;
  }
  .trust-inner {
    grid-template-columns: 1fr;
  }
  .crm-stats {
    grid-template-columns: 1fr;
  }
  .mini-cta[hidden] {
    display: none;
  }
  .mini-cta:not([hidden]) {
    display: flex;
  }
}

/* ══════════ reduced motion ══════════ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
  .hv-runner,
  .fx-runner,
  .ax-token {
    display: none;
  }
  .fx-node,
  .fx-diamond,
  .fx-label,
  .fx-publish,
  .ax-node,
  .ax-diamond,
  .msg-bubble,
  .pb,
  .kcard-mover {
    opacity: 1;
    transform: none;
  }
  .msg-typing {
    display: none;
  }
  .fx-edge,
  .ax-edge {
    stroke-dashoffset: 0;
  }
  .fbar i {
    transform: scaleX(1);
  }
  .locale-zh,
  .locale-es,
  .ph-zh,
  .ph-es {
    display: none;
  }
  .locale-en,
  .ph-en {
    opacity: 1;
    transform: none;
  }
}
