/* Paramatrix marketing site */
@import url('./colors_and_type.css');

[hidden] { display: none !important; }

html, body { background: #000; color: #fff; }
body {
  font-family: var(--font-mono);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Root amber edge glow — fixed overlay, breathing */
.px-edge-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  box-shadow:
    inset 0 0 10px rgba(217, 119, 87, 0.5),
    inset 0 0 20px rgba(217, 119, 87, 0.3),
    inset 0 0 30px rgba(217, 119, 87, 0.1);
  animation: amber-breath 6s ease-in-out infinite;
}

/* Cursor spotlight — soft amber halo follows pointer */
.cursor-spot {
  position: fixed;
  top: 0; left: 0;
  width: 480px; height: 480px;
  margin: -240px 0 0 -240px;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle, rgba(217,119,87,0.18) 0%, rgba(217,119,87,0.08) 30%, transparent 65%);
  mix-blend-mode: screen;
  will-change: transform;
}

/* Hero counter flash on tick */
.hero-eyebrow-value.flash {
  animation: flash-pulse 600ms ease-out;
}
@keyframes flash-pulse {
  0% { color: #fff; text-shadow: 0 0 12px rgba(55, 211, 71, 0.9); }
  100% { color: var(--claim-500); text-shadow: 0 0 0 transparent; }
}

/* Live ticker (removed — kept for legacy DOM nodes only) */
.nav-live { display: none !important; }

/* Pipeline pulse-active — chasing highlight */
.pipeline-step.pulse-active .pipe-num {
  color: var(--claim-500);
  text-shadow: 0 0 12px rgba(55, 211, 71, 0.7);
}
.pipeline-step.pulse-active.pay .pipe-num {
  color: var(--pay-500);
  text-shadow: 0 0 12px rgba(211, 55, 121, 0.7);
}
.pipeline-step.pulse-active::before {
  content: '';
  position: absolute;
  inset: -4px -8px;
  border-radius: 8px;
  background: radial-gradient(ellipse at center, rgba(55,211,71,0.18), transparent 70%);
  animation: pulse-ring 600ms ease-out;
  pointer-events: none;
}
.pipeline-step.pay.pulse-active::before {
  background: radial-gradient(ellipse at center, rgba(211,55,121,0.18), transparent 70%);
}
@keyframes pulse-ring {
  0% { opacity: 0; transform: scale(0.85); }
  50% { opacity: 1; }
  100% { opacity: 0; transform: scale(1.05); }
}

@keyframes amber-breath {
  0%, 100% {
    box-shadow:
      inset 0 0 10px rgba(217, 119, 87, 0.5),
      inset 0 0 20px rgba(217, 119, 87, 0.3),
      inset 0 0 30px rgba(217, 119, 87, 0.1);
  }
  50% {
    box-shadow:
      inset 0 0 14px rgba(217, 119, 87, 0.7),
      inset 0 0 28px rgba(217, 119, 87, 0.4),
      inset 0 0 42px rgba(217, 119, 87, 0.15);
  }
}

/* ============= NAV ============= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  background: rgba(0,0,0,0);
  backdrop-filter: blur(0);
  border-bottom: 1px solid transparent;
  transition: background 300ms ease, backdrop-filter 300ms ease, border-bottom-color 300ms ease;
}
.nav.scrolled {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: rgba(255, 255, 255, 0.05);
}
.nav-wordmark {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.nav-wordmark img {
  height: 26px;
  width: auto;
  display: block;
}

/* Hero stat chips — three pill-cards under H1 */
.hero-stat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 32px;
}
.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font: 400 14px/1 var(--font-mono);
  font-style: normal;
  color: rgba(255,255,255,0.78);
  transition: border-color 220ms ease, background 220ms ease;
}
.hero-chip b, .hero-chip i {
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0;
}
.hero-chip b { color: var(--claim-500); }
.hero-chip i { color: rgba(255,255,255,0.78); }
.hero-chip:hover {
  border-color: rgba(55,211,71,0.45);
  background: rgba(55,211,71,0.08);
}
.hero-chip:nth-child(1) b { color: var(--claim-500); }
.hero-chip:nth-child(2) b { color: var(--claim-500); }
.hero-chip:nth-child(3) b { color: var(--claim-500); }
.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav-link {
  font: 400 14px/1 var(--font-mono);
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 180ms ease;
}
.nav-link:hover { color: var(--claim-500); }
.nav-cta {
  font: 400 14px/1 var(--font-mono);
  color: #000;
  background: var(--claim-600);
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  transition: background 180ms ease;
}
.nav-cta:hover { background: #7DD835; }

/* ============= LAYOUT ============= */
.page {
  position: relative;
  max-width: 100%;
  padding-top: 80px;
}
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 96px 32px;
  position: relative;
}
.section.compact { padding: 80px 32px; }

/* Eyebrow chip patterns */
.eyebrow {
  display: inline-flex;
  align-items: center;
  font: 400 14px/1 var(--font-mono);
  color: var(--claim-500);
  margin: 0 0 24px;
  letter-spacing: 0;
}
.eyebrow.muted { color: rgba(255,255,255,0.4); }

.amber-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(217, 119, 87, 0.55);
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #FFD9C2;
  font: 400 14px/1 var(--font-mono);
  margin-bottom: 32px;
}
.amber-chip::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 999px;
  background: rgba(217, 119, 87, 0.9);
  box-shadow: 0 0 8px rgba(217, 119, 87, 0.7);
}

/* ============= HERO — Stripe-style full-bleed wave ============= */
.hero-fullbleed {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0;
}
.hero-wave-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-wave-canvas canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}
.hero-wave-mask {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  /* Almost transparent — just a tiny bottom fade for next-section transition. */
  background: linear-gradient(180deg,
    rgba(0,0,0,0.0)  0%,
    rgba(0,0,0,0.0)  92%,
    rgba(0,0,0,0.25) 100%);
}
.hero-eyebrow-rail {
  position: absolute;
  top: 96px;
  left: 0; right: 0;
  text-align: center;
  z-index: 3;
  font: 400 12px/1 var(--font-mono);
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.5px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.hero-eyebrow-value {
  color: rgba(217, 119, 87, 0.9);
  font-variant-numeric: tabular-nums;
}
.hero-content {
  position: relative;
  z-index: 4;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 32px 96px;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.hero-content .hero-h1 { max-width: 880px; }
.hero-content .hero-sub,
.hero-content .hero-trust { max-width: 720px; }
/* legacy classes kept for fallback */
.hero { display: none; }
.hero-text { display: flex; flex-direction: column; }
.hero-h1 {
  font: 400 clamp(40px, 5.5vw, 64px)/1.10 var(--font-mono);
  margin: 0 0 24px;
  letter-spacing: -0.5px;
}
.hero-h1 .l1 { color: #fff; display: block; }
.hero-h1 .l2 { color: var(--claim-500); display: block; }
.hero-sub {
  font: 400 16px/1.5 var(--font-mono);
  color: rgba(255,255,255,0.6);
  margin: 0 0 16px;
}
.hero-trust {
  font: 400 14px/1.5 var(--font-mono);
  color: rgba(255,255,255,0.4);
  margin: 0 0 40px;
}
.cta-row {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}
.cta-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 8px;
  background: var(--claim-600);
  color: #000;
  font: 400 16px/1 var(--font-mono);
  text-decoration: none;
  border: none;
  cursor: pointer;
  overflow: hidden;
  transition: background 160ms ease, box-shadow 160ms ease;
}
.cta-primary:hover {
  background: #7DD835;
  box-shadow: 0 0 0 4px rgba(125, 216, 53, 0.2);
}
.cta-primary:active {
  background: var(--claim-700, #2BA838);
  box-shadow: 0 0 0 4px rgba(125, 216, 53, 0.3);
}
.cta-primary::after { display: none; }
.cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 4px;
  color: #fff;
  font: 400 16px/1 var(--font-mono);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  transition: color 180ms ease, border-color 180ms ease;
}
.cta-secondary:hover { color: var(--claim-500); border-bottom-color: var(--claim-500); }

/* Hero haze */
.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 560px;
  justify-self: end;
}
.hero-haze {
  width: 100%;
  height: 100%;
  display: block;
  will-change: transform, filter;
}
.haze-top {
  animation: haze-drift-top 9s ease-in-out infinite;
  transform-origin: 50% 50%;
}
.haze-bottom {
  animation: haze-drift-bottom 11s ease-in-out infinite;
  transform-origin: 50% 50%;
}
.haze-mid {
  animation: haze-drift-mid 13s ease-in-out infinite;
  transform-origin: 50% 50%;
}
@keyframes haze-drift-top {
  0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
  33% { transform: translate(-18px, 12px) rotate(-3deg) scale(1.06); }
  66% { transform: translate(12px, -8px) rotate(2deg) scale(0.96); }
}
@keyframes haze-drift-bottom {
  0%, 100% { transform: translate(0, 0) scale(1); }
  40% { transform: translate(20px, -14px) scale(1.10); }
  80% { transform: translate(-14px, 8px) scale(0.93); }
}
@keyframes haze-drift-mid {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-8px, -6px) rotate(4deg); }
}

/* Hero floating mini-tags around haze */
.hero-tags {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-tag {
  position: absolute;
  font: 400 12px/1 var(--font-mono);
  color: rgba(255,255,255,0.55);
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  white-space: nowrap;
  animation: tag-float 6s ease-in-out infinite;
}
.hero-tag:nth-child(1) { top: 12%; left: 8%; animation-delay: 0s; }
.hero-tag:nth-child(2) { top: 22%; right: 6%; animation-delay: 1.5s; }
.hero-tag:nth-child(3) { bottom: 28%; left: 4%; animation-delay: 3s; }
.hero-tag:nth-child(4) { bottom: 12%; right: 10%; animation-delay: 4.5s; }
@keyframes tag-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ============= SECTION HEADERS ============= */
.h2-section {
  font: 400 clamp(28px, 3.6vw, 40px)/1.2 var(--font-mono);
  color: #fff;
  margin: 0 0 16px;
  letter-spacing: -0.4px;
}
.section-sub {
  font: 400 16px/1.5 var(--font-mono);
  color: rgba(255,255,255,0.6);
  margin: 0;
  max-width: 720px;
}

/* ============= PROBLEM CARDS ============= */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.card {
  position: relative;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
  border: 1px solid rgba(255,255,255,0.08);
  padding: 24px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: transform 240ms ease, border-color 240ms ease, background 240ms ease;
  will-change: transform;
  overflow: hidden;
}
.card:hover {
  border-color: rgba(55,211,71,0.25);
  background: linear-gradient(180deg, rgba(55,211,71,0.05), rgba(255,255,255,0.02));
}
.card { padding: 24px 24px 0; }
.card-head { display: flex; flex-direction: column; gap: 14px; padding-bottom: 8px; }
.card-vis {
  height: 92px;
  margin: 18px -8px 0;
  display: block;
  opacity: 0.85;
}
.card-vis svg { width: 100%; height: 100%; display: block; }
.card .tag-chip {
  align-self: flex-start;
  display: inline-flex;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(55, 211, 71, 0.14);
  border: 1px solid rgba(55, 211, 71, 0.35);
  font: 400 14px/1.2 var(--font-mono);
  color: var(--claim-500);
  text-transform: lowercase;
  margin: 0;
}
.card-head .card-caption {
  font: 400 13px/1.45 var(--font-mono);
  color: rgba(255,255,255,0.55);
  margin: 0;
}
.card-head .big-number {
  font: 400 clamp(34px, 3.6vw, 44px)/1 var(--font-mono) !important;
  color: rgba(255,255,255,0.85) !important;
  letter-spacing: -0.5px !important;
  margin: 0 !important;
}
/* Vis animations on hover */
.vis-bar-fill { transform-origin: left center; animation: vis-bar-1 4s ease-in-out infinite; }
@keyframes vis-bar-1 {
  0%, 100% { transform: scaleX(0.3); opacity: 0.5; }
  50%      { transform: scaleX(1);   opacity: 1; }
}
.vis-bar-grow { transform-origin: left center; animation: vis-bar-2 5s ease-in-out infinite; }
@keyframes vis-bar-2 {
  0%, 100% { transform: scaleX(0.7); }
  50%      { transform: scaleX(1); }
}
.vis-insurer-bar { transform-box: fill-box; transform-origin: left center; animation: vis-bar-grow-safe 4s ease-in-out infinite; }
@keyframes vis-bar-grow-safe {
  0%, 100% { transform: scaleX(0.92); filter: drop-shadow(0 0 0 rgba(217,119,87,0)); }
  50%      { transform: scaleX(1.03); filter: drop-shadow(0 0 6px rgba(217,119,87,0.6)); }
}
.vis-fraud-doc { animation: vis-fraud-breathe 5s ease-in-out infinite; transform-origin: 114px 60px; }
@keyframes vis-fraud-breathe {
  0%, 100% { transform: translate(86px,28px); filter: drop-shadow(0 0 0 rgba(211,55,121,0)); }
  50%      { transform: translate(86px,28px); filter: drop-shadow(0 0 6px rgba(211,55,121,0.55)); }
}
.vis-fraud-lens { animation: vis-fraud-lens 4s ease-in-out infinite; transform-origin: center; }
@keyframes vis-fraud-lens {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 1; }
}
.big-number {
  font: 400 clamp(48px, 6vw, 72px)/1 var(--font-mono);
  color: #fff;
  font-variant-numeric: tabular-nums;
  margin: 0;
  letter-spacing: -1.5px;
  display: block;
}
.big-number.entered { animation: number-glow-flash 1200ms ease-out; }
@keyframes number-glow-flash {
  0% { text-shadow: 0 0 0 transparent; }
  30% { text-shadow: 0 0 24px rgba(55, 211, 71, 0.7); }
  100% { text-shadow: 0 0 0 transparent; }
}
.card-caption {
  font: 400 14px/1.5 var(--font-mono);
  color: rgba(255,255,255,0.6);
  margin: 0 0 12px;
}
.card-body {
  font: 400 14px/1.55 var(--font-mono);
  color: rgba(255,255,255,0.5);
  margin: 0;
}
.problem-foot {
  font: 400 14px/1.5 var(--font-mono);
  color: rgba(255,255,255,0.4);
  margin: 32px 0 0;
  text-align: right;
}

/* ============= FLOW — pure horizontal timeline ============= */
.flow-section { padding-top: 120px; padding-bottom: 140px; position: relative; }
.flow-stage {
  position: relative;
  max-width: 1180px;
  margin: 64px auto 0;
  padding: 80px 32px 40px;
  isolation: isolate;
}
.flow-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(55,211,71,0.06), transparent 70%);
  z-index: -1;
}

/* Timeline rail container */
.flow-timeline {
  position: relative;
  height: 180px;
  width: 100%;
}
.flow-timeline-line,
.flow-timeline-fill {
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  height: 1px;
}
.flow-timeline-line {
  background: repeating-linear-gradient(to right,
    rgba(255,255,255,0.18) 0, rgba(255,255,255,0.18) 4px,
    transparent 4px, transparent 9px);
}
.flow-timeline-fill {
  width: 0;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--claim-500) 35%, var(--claim-500));
  box-shadow: 0 0 12px rgba(55,211,71,0.5);
  transition: none;
}

/* Traveling drop */
.flow-drop {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translate(-50%, -50%);
  width: 18px; height: 18px;
  pointer-events: none;
  opacity: 0;
}
.flow-stage.flow-active .flow-drop { opacity: 1; }
.flow-drop-core {
  position: absolute; inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #BFFFC8 0%, var(--claim-500) 45%, #1B7A2E 100%);
  box-shadow:
    0 0 6px rgba(55,211,71,0.9),
    0 0 18px rgba(55,211,71,0.55),
    0 0 36px rgba(55,211,71,0.25);
}
.flow-drop-trail {
  position: absolute;
  right: 50%;
  top: 50%;
  transform: translateY(-50%);
  width: 90px;
  height: 6px;
  border-radius: 6px;
  background: linear-gradient(to left, rgba(55,211,71,0.85), transparent);
  filter: blur(3px);
  transform-origin: right center;
}
.flow-stage.flow-magenta .flow-drop-core {
  background: radial-gradient(circle at 35% 30%, #FFC2DB 0%, var(--pay-500) 45%, #6A1A3D 100%);
  box-shadow:
    0 0 6px rgba(211,55,121,0.9),
    0 0 18px rgba(211,55,121,0.55),
    0 0 36px rgba(211,55,121,0.25);
}
.flow-stage.flow-magenta .flow-drop-trail {
  background: linear-gradient(to left, rgba(211,55,121,0.85), transparent);
}
.flow-stage.flow-magenta .flow-timeline-fill {
  background: linear-gradient(90deg, transparent, var(--claim-500) 35%, var(--claim-500) 70%, var(--pay-500));
  box-shadow: 0 0 12px rgba(211,55,121,0.45);
}

/* Nodes — icon above the line, title below */
.flow-tl-nodes {
  position: absolute;
  inset: 0;
  list-style: none;
  margin: 0; padding: 0;
}
.flow-tl-node {
  position: absolute;
  left: var(--x, 0%);
  top: 0;
  height: 100%;
  width: 0;
  --suite: var(--claim-500);
}
.flow-tl-node[data-module="payout"] { --suite: var(--pay-500); }
.flow-tl-node[data-module="antifraud"] { --suite: #D97757; }

.flow-tl-icon {
  position: absolute;
  left: 50%;
  top: calc(50% - 56px);
  transform: translate(-50%, 0);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(10,10,10,0.85);
  border: 1px solid rgba(255,255,255,0.16);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.45);
  transition: color 240ms ease, border-color 240ms ease, transform 320ms cubic-bezier(0.34,1.56,0.64,1), background 240ms ease;
  z-index: 2;
}
.flow-tl-tick {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 1px; height: 14px;
  background: rgba(255,255,255,0.22);
  transition: background 240ms ease, height 240ms ease;
  z-index: 1;
}
.flow-tl-title {
  position: absolute;
  left: 50%;
  top: calc(50% + 22px);
  transform: translateX(-50%);
  font: 400 12px/1.3 var(--font-mono);
  color: rgba(255,255,255,0.55);
  white-space: nowrap;
  text-align: center;
  transition: color 240ms ease;
  letter-spacing: 0.2px;
}
.flow-tl-num {
  position: absolute;
  left: 50%;
  top: calc(50% + 42px);
  transform: translateX(-50%);
  font: 400 10px/1 var(--font-mono);
  color: rgba(255,255,255,0.3);
  letter-spacing: 1px;
}

.flow-tl-node.is-lit .flow-tl-icon {
  color: var(--suite);
  border-color: var(--suite);
  background: rgba(10,10,10,0.95);
  animation: flow-tl-pop 540ms cubic-bezier(0.34,1.56,0.64,1) 1;
}
.flow-tl-node.is-lit .flow-tl-tick { background: var(--suite); height: 18px; }
.flow-tl-node.is-lit .flow-tl-title { color: rgba(255,255,255,0.95); }
.flow-tl-node.is-lit .flow-tl-num { color: var(--suite); }
@keyframes flow-tl-pop {
  0%   { transform: translate(-50%,0) scale(1); }
  35%  { transform: translate(-50%,0) scale(1.18); }
  100% { transform: translate(-50%,0) scale(1); }
}
.flow-tl-node.is-lit::after {
  content: "";
  position: absolute;
  left: 50%; top: calc(50% - 56px);
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--suite);
  transform: translate(-50%, 0);
  animation: flow-tl-sonar 720ms ease-out 1;
  pointer-events: none;
}
@keyframes flow-tl-sonar {
  0%   { opacity: 0.85; transform: translate(-50%,0) scale(1); }
  100% { opacity: 0; transform: translate(-50%,0) scale(2.4); }
}

.flow-replay {
  display: block;
  margin: 36px auto 0;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 50%;
  width: 36px; height: 36px;
  cursor: pointer;
  font: 400 16px/1 var(--font-mono);
  color: rgba(255,255,255,0.45);
  transition: color 200ms ease, border-color 200ms ease, transform 200ms ease;
}
.flow-replay:hover { color: rgba(255,255,255,0.95); border-color: rgba(255,255,255,0.4); transform: rotate(-90deg); }

@media (max-width: 980px) {
  .flow-stage { padding: 64px 16px 32px; }
  .flow-timeline { height: 220px; }
  .flow-tl-icon { width: 36px; height: 36px; top: calc(50% - 50px); }
  .flow-tl-icon svg { width: 20px; height: 20px; }
  .flow-tl-node.is-lit::after { width: 36px; height: 36px; top: calc(50% - 50px); }
  .flow-tl-title { font-size: 10px; }
}
@media (max-width: 720px) {
  /* Vertical timeline on small screens */
  .flow-timeline { height: auto; min-height: 580px; padding: 16px 0; }
  .flow-timeline-line {
    left: 32px; right: auto; top: 0; bottom: 0;
    width: 1px; height: auto;
    background: repeating-linear-gradient(to bottom,
      rgba(255,255,255,0.18) 0, rgba(255,255,255,0.18) 4px,
      transparent 4px, transparent 9px);
  }
  .flow-timeline-fill {
    left: 32px; right: auto; top: 0;
    width: 1.5px; height: 0;
    background: linear-gradient(180deg, transparent, var(--claim-500) 35%, var(--claim-500));
  }
  .flow-drop { top: 0; left: 32px; }
  .flow-drop-trail { right: 50%; top: 50%; width: 6px; height: 60px; transform: translateX(50%); transform-origin: center bottom;
    background: linear-gradient(to top, rgba(55,211,71,0.85), transparent);
  }
  .flow-tl-nodes { position: relative; }
  .flow-tl-node { position: absolute; left: 0; top: var(--y, 0%); width: 100%; height: 0; }
  .flow-tl-icon { left: 32px; top: -22px; }
  .flow-tl-tick { left: 32px; top: 0; height: 1px; width: 14px; transform: translate(0, -50%); }
  .flow-tl-node.is-lit .flow-tl-tick { width: 18px; height: 1px; }
  .flow-tl-title { left: 64px; top: -20px; transform: none; text-align: left; }
  .flow-tl-num { left: 64px; top: 0; transform: none; }
  .flow-tl-node.is-lit::after { left: 32px; top: -22px; }
}

@media (prefers-reduced-motion: reduce) {
  .flow-timeline-fill { width: 100% !important; }
  .flow-drop { display: none; }
  .flow-tl-node .flow-tl-icon { color: var(--suite); border-color: var(--suite); }
  .flow-tl-node .flow-tl-title { color: rgba(255,255,255,0.95); }
}

/* ============= SYSTEM — modules + per-module mini-cards ============= */
.system-section { padding-top: 120px; padding-bottom: 140px; }
.system-stage {
  position: relative;
  max-width: 1380px;
  margin: 56px auto 0;
}

/* 3 module cards row */
.modules-row {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.module-card {
  position: relative;
  border-radius: 20px;
  border: 1.5px solid rgba(255,255,255,0.10);
  padding: 28px 28px 24px;
  display: flex; flex-direction: column; gap: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.005));
  transition: border-color 280ms ease, background 280ms ease, transform 280ms cubic-bezier(0.2,0,0,1);
  cursor: default;
  --suite: var(--claim-500);
  --suite-rgb: 55,211,71;
  --suite-soft: rgba(55,211,71,0.10);
  --suite-mid: rgba(55,211,71,0.22);
}
.module-card--antifraud { --suite: #D97757; --suite-rgb: 217,119,87; --suite-soft: rgba(217,119,87,0.10); --suite-mid: rgba(217,119,87,0.22); }
.module-card--payout    { --suite: var(--pay-500); --suite-rgb: 211,55,121; --suite-soft: rgba(211,55,121,0.10); --suite-mid: rgba(211,55,121,0.22); }
.module-card .module-eyebrow {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  font: 400 11px/1 var(--font-mono);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--suite);
  border: 1px solid var(--suite-mid);
  background: var(--suite-soft);
}
.module-card .module-title {
  font: 400 22px/1.2 var(--font-mono);
  color: #fff;
  margin: 0;
  letter-spacing: -0.3px;
}
.module-card .module-sub {
  font: 400 13px/1.45 var(--font-mono);
  color: rgba(255,255,255,0.55);
  margin: 0;
}
.module-card .module-pill {
  align-self: flex-start;
  margin-top: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  font: 400 11px/1 var(--font-mono);
  color: var(--suite);
  border: 1px solid var(--suite-mid);
  background: var(--suite-soft);
}
.module-card.is-active,
.module-card:hover {
  border-color: var(--suite-mid);
  background: linear-gradient(180deg, var(--suite-soft), rgba(255,255,255,0.005));
  transform: translateY(-2px);
}

/* ============= PIPE WAVE — staggered flow below module cards ============= */
.pipe-wave {
  position: relative;
  width: 100%;
  height: 250px;
  margin: 56px 0 0;
}
.pipe-svg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  overflow: visible;
  transition: opacity 220ms ease;
}
.pipe-nodes {
  list-style: none;
  margin: 0; padding: 0;
  position: absolute;
  inset: 0;
}

/* Each node: absolute, centred on X by transform */
.pipe-node {
  position: absolute;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  width: 104px;
  --node-c: var(--claim-500);
  --node-rgb: 55,211,71;
}
/* Card backdrop — stays within node bounds, no bleed into neighbours */
.pipe-node::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.015);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  z-index: -1;
  transition: border-color 280ms ease, background 280ms ease;
}
.pipe-node.is-active::before {
  background: rgba(var(--node-rgb), 0.07);
  border-color: rgba(var(--node-rgb), 0.40);
}
.pipe-node.is-done::before {
  border-color: rgba(var(--node-rgb), 0.20);
}
.pipe-node:hover::before { border-color: rgba(var(--node-rgb), 0.50); }
.pipe-node[data-module="antifraud"] { --node-c: #F5A623; --node-rgb: 245,166,35; }
.pipe-node[data-module="payout"]    { --node-c: var(--pay-500); --node-rgb: 211,55,121; }

/* Input port ring — sits at the left border of the card, marks entry point */
.pn-ring {
  position: absolute;
  left: -7px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.22);
  background: #000;
  z-index: 1;
  transition: border-color 280ms ease, box-shadow 280ms ease, background 280ms ease;
}
.pipe-node.is-active .pn-ring {
  border-color: var(--node-c);
  background: rgba(var(--node-rgb), 0.15);
  box-shadow: 0 0 10px rgba(var(--node-rgb), 0.8),
              0 0 24px rgba(var(--node-rgb), 0.30);
}
.pipe-node.is-done .pn-ring {
  border-color: rgba(var(--node-rgb), 0.50);
  background: rgba(var(--node-rgb), 0.06);
}

/* Card content — ring is now absolute so card is the sole flex child */
.pn-card {
  margin-top: 0;
  padding: 11px 7px 11px 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: 100%;
  box-sizing: border-box;
}
.pn-num {
  font: 400 13px/1 var(--font-mono);
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.3);
  transition: color 260ms ease;
}
.pn-icon {
  color: rgba(255,255,255,0.22);
  transition: color 260ms ease;
  line-height: 0;
}
.pn-icon svg { width: 26px; height: 26px; }
.pn-title {
  font: 400 12px/1.3 var(--font-mono);
  color: rgba(255,255,255,0.32);
  letter-spacing: 0.2px;
  transition: color 260ms ease;
  word-break: normal;
  overflow-wrap: break-word;
  text-align: center;
}

/* Active node */
.pipe-node.is-active .pn-num  { color: var(--node-c); }
.pipe-node.is-active .pn-icon { color: var(--node-c); }
.pipe-node.is-active .pn-title { color: rgba(255,255,255,0.92); }

/* Done nodes — subtly lit */
.pipe-node.is-done .pn-num  { color: rgba(var(--node-rgb), 0.55); }
.pipe-node.is-done .pn-icon { color: rgba(var(--node-rgb), 0.45); }
.pipe-node.is-done .pn-title { color: rgba(255,255,255,0.45); }

/* Hover */
.pipe-node:hover .pn-ring { border-color: rgba(var(--node-rgb), 0.75); }
.pipe-node:hover .pn-title { color: rgba(255,255,255,0.72); }

/* Traveling dot (SVG circle) */
.pipe-traveling-dot {
  filter: drop-shadow(0 0 6px currentColor);
  transition: none;
}

/* Info panel below the wave */
.pipe-info {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 0 20px;
  align-items: center;
  min-height: 72px;
  padding: 20px 24px;
  border-radius: 14px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.07);
  transition: opacity 180ms ease;
}
.pipe-info.swapping { opacity: 0; }

.pi-num {
  font: 400 32px/1 var(--font-mono);
  color: rgba(255,255,255,0.1);
  letter-spacing: -1px;
  transition: color 260ms ease;
}
.pi-text { min-width: 0; }
.pi-title {
  font: 400 17px/1.2 var(--font-mono);
  color: rgba(255,255,255,0.92);
  margin: 0 0 4px;
  letter-spacing: -0.2px;
}
.pi-body {
  font: 400 13px/1.55 var(--font-base);
  color: rgba(255,255,255,0.48);
  margin: 0;
}
.pi-badge {
  font: 400 10px/1 var(--font-mono);
  letter-spacing: 1.4px;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid currentColor;
  opacity: 0.55;
  white-space: nowrap;
  align-self: flex-start;
}

/* Hover sync — module card hover dims non-matching nodes; lines fade out so
   only the matching step blocks visually pop, lines never look "highlighted" */
.system-stage.hover-core .pipe-node:not([data-module="core"]),
.system-stage.hover-antifraud .pipe-node:not([data-module="antifraud"]),
.system-stage.hover-payout .pipe-node:not([data-module="payout"]) { opacity: 0.55; }
.system-stage.hover-core .pipe-svg,
.system-stage.hover-antifraud .pipe-svg,
.system-stage.hover-payout .pipe-svg { opacity: 0.45; }
.system-stage.hover-core .module-card:not([data-module="core"]),
.system-stage.hover-antifraud .module-card:not([data-module="antifraud"]),
.system-stage.hover-payout .module-card:not([data-module="payout"]) { opacity: 0.55; }
.system-stage.hover-core .pipe-info,
.system-stage.hover-antifraud .pipe-info,
.system-stage.hover-payout .pipe-info { opacity: 0; pointer-events: none; }
.minis-row .mini-card.in { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
  .minis-row { grid-template-columns: repeat(3, 1fr); gap: 10px; }
}
@media (max-width: 640px) {
  .modules-row { grid-template-columns: 1fr; gap: 12px; }
  .minis-row { grid-template-columns: repeat(2, 1fr); }
  .pipe-wave { display: none; } /* 1-col layout can't support 3-zone pipe wave */
}

/* ============= TWO PATHS — IMMERSIVE PANEL ============= */

/* ============= TWO CLAIM TYPES (cases grid) ============= */
.cases-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  margin-top: 56px;
  position: relative;
}
.cases-grid::before {
  /* subtle vertical hairline divider between two columns */
  content: '';
  position: absolute;
  top: 64px; bottom: 0; left: 50%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.06) 20%, rgba(255,255,255,0.06) 80%, transparent);
}

.case-card {
  --suite: var(--claim-500);
  --suite-rgb: 55,211,71;
  position: relative;
  padding: 0;
  overflow: hidden;
}
.case-card--db {
  --suite: var(--pay-500);
  --suite-rgb: 211,55,121;
}

/* Sweep light — sweeps across the card on first reveal */
.case-card::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg,
    transparent 25%,
    rgba(var(--suite-rgb), 0.18) 45%,
    rgba(var(--suite-rgb), 0.32) 50%,
    rgba(var(--suite-rgb), 0.18) 55%,
    transparent 75%);
  transform: translateX(-110%);
  opacity: 0;
}
.case-card.in-view::after {
  animation: case-sweep 1400ms cubic-bezier(0.22, 1, 0.36, 1) 200ms both;
}
@keyframes case-sweep {
  0%   { opacity: 0; transform: translateX(-110%); }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { opacity: 0; transform: translateX(110%); }
}

/* Card header: title + before/after toggle */
.case-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 36px;
}
.case-title {
  font: 400 22px/1.25 var(--font-mono);
  color: var(--suite);
  margin: 0;
  letter-spacing: -0.3px;
  text-shadow: 0 0 24px rgba(var(--suite-rgb), 0.25);
}

/* Before/after segmented toggle — left-aligned above grid */
.state-toggle {
  display: flex;
  width: fit-content;
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
  margin: 32px 0 0;
}
.stgl-btn {
  padding: 5px 13px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(255,255,255,0.35);
  font: 400 11px/1 var(--font-mono);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
}
.stgl-btn.active {
  background: rgba(var(--suite-rgb), 0.14);
  color: var(--suite);
  border-color: rgba(var(--suite-rgb), 0.35);
}

.case-metrics {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.metric-row {
  display: grid;
  grid-template-columns: 130px 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 26px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 520ms ease, transform 520ms ease;
}
.metric-row:first-child { border-top: none; padding-top: 12px; }
.case-card.in-view .metric-row { opacity: 1; transform: translateY(0); }
.case-card.in-view .metric-row:nth-child(1) { transition-delay: 100ms; }
.case-card.in-view .metric-row:nth-child(2) { transition-delay: 240ms; }
.case-card.in-view .metric-row:nth-child(3) { transition-delay: 380ms; }

.metric-label {
  font: 400 11px/1.3 var(--font-mono);
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}

/* §04 metric values — BEFORE / AFTER states */
.metric-value {
  position: relative;
  display: block;
  min-height: 1em; /* prevent collapse during cross-fade */
}

.mv-before,
.mv-after {
  font: 400 38px/1 var(--font-mono);
  letter-spacing: -0.7px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* .mv-after is the source of truth for target value, .mv-before is the live ticker */
.mv-after { display: none; }
.mv-before {
  display: block;
  color: rgba(255,255,255,0.75);
  transition: color 340ms ease, text-shadow 340ms ease;
}
.case-card.state-after .mv-before {
  color: var(--suite);
  text-shadow: 0 0 22px rgba(var(--suite-rgb), 0.35);
}
/* Stagger color swap to match JS counter delay */
.case-card.state-after .metric-row:nth-child(1) .mv-before { transition-delay: 0ms; }
.case-card.state-after .metric-row:nth-child(2) .mv-before { transition-delay: 90ms; }
.case-card.state-after .metric-row:nth-child(3) .mv-before { transition-delay: 180ms; }

/* Delta chips */
.metric-row .delta-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font: 400 13px/1 var(--font-mono);
  letter-spacing: 0.3px;
  font-variant-numeric: tabular-nums;
  background: rgba(var(--suite-rgb), 0.12);
  color: var(--suite);
  border: 1px solid rgba(var(--suite-rgb), 0.45);
  opacity: 0;
  transform: scale(0.8) translateX(-4px);
  transition: opacity 300ms ease, transform 300ms cubic-bezier(0.34, 1.6, 0.6, 1);
}
.case-card.state-after .delta-chip {
  opacity: 1;
  transform: scale(1) translateX(0);
}
.case-card.state-after .metric-row:nth-child(1) .delta-chip { transition-delay: 80ms; }
.case-card.state-after .metric-row:nth-child(2) .delta-chip { transition-delay: 150ms; }
.case-card.state-after .metric-row:nth-child(3) .delta-chip { transition-delay: 220ms; }

.cases-source {
  text-align: center;
  font: 400 12px/1.5 var(--font-mono);
  color: rgba(255,255,255,0.32);
  letter-spacing: 0.3px;
  margin: 56px 0 0;
}

/* ============= WHY (PRINCIPLES) ============= */
.why-rows {
  margin-top: 48px;
  border-top: 1px solid #353535;
}
.why-row {
  display: grid;
  grid-template-columns: 30% 70%;
  gap: 32px;
  align-items: baseline;
  padding: 28px 4px;
  border-bottom: 1px solid #353535;
  transition: background 200ms ease, border-color 200ms ease;
}
.why-row:hover {
  border-bottom-color: rgba(255,255,255,0.3);
}
.why-row .why-eb {
  font: 400 16px/1.35 var(--font-mono);
  color: var(--claim-500);
}
.why-row .why-desc {
  font: 400 18px/1.5 var(--font-mono);
  color: rgba(255,255,255,0.85);
  margin: 0;
}

/* ============= TRACTION ============= */
.traction {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  padding: 96px 32px;
}
.traction-block {
  position: relative;
  padding: 48px 0;
}
.traction-line {
  font: 400 19px/1.7 var(--font-mono);
  color: rgba(255,255,255,0.85);
  margin: 0;
}
.traction-line + .traction-line { margin-top: 14px; }
.tr-num { color: var(--claim-500); font-variant-numeric: tabular-nums; }
.tr-amber { color: rgba(217, 119, 87, 0.95); }
.tr-link { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.25); transition: border-color 180ms ease; }
.tr-link:hover { border-bottom-color: rgba(255,255,255,0.7); }
.traction-rule {
  position: relative;
  height: 1px;
  background: transparent;
}
.traction-rule::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  width: 0; height: 1px;
  background: #353535;
  transform: translateX(-50%);
  transition: width 700ms cubic-bezier(0.2,0,0,1);
}
.traction-rule.shown::before { width: 100%; }

/* X-diagram standalone for traction anchor */
.traction-anchor {
  margin-top: 48px;
  display: flex;
  justify-content: center;
}

/* ============= CTA + FOOTER ============= */
.cta-section {
  text-align: center;
  padding: 96px 32px 32px;
}
.cta-section .h2-section { margin-bottom: 14px; }
.cta-section .section-sub { margin: 0 auto 56px; }

.cta-cards {
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: left;
}
.form-card, .footer-card {
  border-radius: 20px;
  border: 2px solid rgba(255,255,255,0.10);
  padding: 44px 40px;
}
.form-fields { display: flex; flex-direction: column; gap: 14px; }
.form-input {
  width: 100%;
  background: transparent;
  border: 1px solid #333;
  border-radius: 6px;
  padding: 14px 16px;
  font: 400 15px/1.4 var(--font-mono);
  color: #fff;
  caret-color: var(--claim-500);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}
.form-input::placeholder { color: rgba(255,255,255,0.35); }
.form-input:focus {
  outline: none;
  border-color: var(--claim-500);
  box-shadow: 0 0 0 3px rgba(55, 211, 71, 0.15);
}
textarea.form-input { min-height: 96px; resize: vertical; }
.form-submit {
  margin-top: 8px;
  width: 100%;
  padding: 16px;
  border-radius: 8px;
  background: var(--claim-600);
  color: #000;
  font: 400 16px/1 var(--font-mono);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: background 180ms ease, transform 200ms cubic-bezier(0.2,0,0,1);
  will-change: transform;
}
.form-submit:hover { background: #7DD835; }
.form-submit::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255,255,255,0.4) 0%, transparent 70%);
  opacity: 0;
  transform: scale(0.5);
  pointer-events: none;
}
.form-submit:active::after { animation: ripple 600ms ease-out; }
.form-submit:disabled { opacity: 0.55; cursor: not-allowed; }

.form-select-wrap { position: relative; }
.form-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='none' stroke='rgba(255,255,255,0.55)' stroke-width='1.5' d='M1 1.5l5 5 5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
.form-select option { background: #0a0a0a; color: #fff; }
.form-select:invalid { color: rgba(255,255,255,0.35); }

.form-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.form-consent { display: flex; align-items: flex-start; gap: 10px; font: 400 12px/1.5 var(--font-mono); color: rgba(255,255,255,0.55); cursor: pointer; }
.form-consent input[type="checkbox"] {
  appearance: none; -webkit-appearance: none;
  flex: 0 0 16px; width: 16px; height: 16px;
  border: 1px solid #333; border-radius: 3px; background: transparent;
  cursor: pointer; margin-top: 2px;
  transition: border-color 180ms ease, background 180ms ease;
}
.form-consent input[type="checkbox"]:checked {
  border-color: var(--claim-500); background: var(--claim-500);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path fill='none' stroke='%23000' stroke-width='2' d='M2 6l3 3 5-6'/></svg>");
  background-repeat: no-repeat; background-position: center;
}
.form-consent a { color: rgba(255,255,255,0.85); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.2); }
.form-consent a:hover { border-bottom-color: rgba(255,255,255,0.6); }

.form-error { font: 400 12px/1.4 var(--font-mono); color: #ff6b6b; margin: 0; }
.form-input.is-invalid { border-color: rgba(255,107,107,0.55); }

.form-success { padding: 32px 0 16px; text-align: center; animation: form-success-in 480ms cubic-bezier(0.2,0,0,1); }
.form-success-mark { color: var(--claim-500); display: flex; justify-content: center; margin-bottom: 20px; }
.form-success-mark svg circle { stroke-dasharray: 189; stroke-dashoffset: 189; animation: form-success-circle 600ms ease-out forwards; }
.form-success-mark svg path { stroke-dasharray: 50; stroke-dashoffset: 50; animation: form-success-tick 360ms 480ms ease-out forwards; }
.form-success-title { font: 400 22px/1.3 var(--font-mono); color: var(--claim-500); margin: 0 0 12px; }
.form-success-sub { font: 400 14px/1.6 var(--font-mono); color: rgba(255,255,255,0.65); margin: 0; }
.form-success-sub a { color: rgba(255,255,255,0.95); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.25); transition: border-color 180ms ease; }
.form-success-sub a:hover { border-bottom-color: rgba(255,255,255,0.7); }
@keyframes form-success-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes form-success-circle { to { stroke-dashoffset: 0; } }
@keyframes form-success-tick { to { stroke-dashoffset: 0; } }

.footer-card { display: flex; flex-direction: column; gap: 14px; }
.footer-wm {
  font: 400 22px/1 var(--font-mono);
  color: #fff;
}
.footer-rule { height: 1px; background: #353535; margin: 6px 0; }
.foot-line { font: 400 14px/1.5 var(--font-mono); color: rgba(255,255,255,0.6); margin: 0; }
.foot-line.muted { color: rgba(255,255,255,0.4); }
.foot-line a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.15); transition: border-color 180ms ease; }
.foot-line a:hover { border-bottom-color: var(--claim-500); }

.utility-row {
  max-width: 1200px;
  margin: 32px auto 48px;
  padding: 0 32px;
  text-align: right;
  font: 400 13px/1 var(--font-mono);
  color: rgba(255,255,255,0.4);
}
.utility-row a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.15); transition: border-color 180ms ease; }
.utility-row a:hover { border-bottom-color: rgba(255,255,255,0.5); }

/* ============= UNIVERSAL SCENE REVEAL ============= */
.scene > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms cubic-bezier(0.2,0,0,1), transform 600ms cubic-bezier(0.2,0,0,1);
}
.scene.in-view > *:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0ms; }
.scene.in-view > *:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 80ms; }
.scene.in-view > *:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 160ms; }
.scene.in-view > *:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 240ms; }
.scene.in-view > *:nth-child(5) { opacity: 1; transform: translateY(0); transition-delay: 320ms; }
.scene.in-view > *:nth-child(6) { opacity: 1; transform: translateY(0); transition-delay: 400ms; }
.scene.in-view > *:nth-child(7) { opacity: 1; transform: translateY(0); transition-delay: 480ms; }
.scene.in-view > *:nth-child(8) { opacity: 1; transform: translateY(0); transition-delay: 560ms; }

/* Hero: skip the universal reveal, animate inline */
.hero-fullbleed.in-view .hero-content > * { animation: hero-rise 700ms cubic-bezier(0.2,0,0,1) both; }
.hero-fullbleed.in-view .hero-content > *:nth-child(1) { animation-delay: 0ms; }
.hero-fullbleed.in-view .hero-content > *:nth-child(2) { animation-delay: 80ms; }
.hero-fullbleed.in-view .hero-content > *:nth-child(3) { animation-delay: 200ms; }
.hero-fullbleed.in-view .hero-content > *:nth-child(4) { animation-delay: 280ms; }
.hero-fullbleed.in-view .hero-content > *:nth-child(5) { animation-delay: 360ms; }
.hero-fullbleed.in-view .hero-eyebrow-rail { animation: hero-rise 700ms cubic-bezier(0.2,0,0,1) both; }
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 200ms !important;
  }
}

/* ============= RESPONSIVE ============= */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 360px; justify-self: center; }
  .problem-grid { grid-template-columns: 1fr; }
  .module-grid { grid-template-columns: 1fr; }
  .cases-grid { grid-template-columns: 1fr; gap: 32px; margin-top: 40px; }
  .cases-grid::before { display: none; }
  .case-title { font-size: 20px; margin-bottom: 24px; }
  .metric-row { grid-template-columns: 100px 1fr auto; gap: 18px; padding: 20px 0; }
  .mv-before, .mv-after { font-size: 28px; }
  .metric-row .delta-chip { font-size: 12px; padding: 5px 10px; }
  .cta-cards { grid-template-columns: 1fr; }
  .nav-links { gap: 18px; }
  .nav-links .nav-link { display: none; }
  .nav-links .nav-cta { display: inline-flex; }
  .why-row { grid-template-columns: 1fr; gap: 8px; }
  .pipeline { gap: 4px; }
  .pipeline-step { min-width: 110px; }
  .section { padding: 72px 24px; }
}

/* ============= v40 ZENDESK FRAME + PAYOUT HOOK CARD ============= */

.console-stage {
  position: relative;
  padding: 56px 20px 80px;
  display: flex;
  justify-content: center;
  min-height: 600px;
}

/* ── Background frame ─────────────────────────────────────────── */
.stage-frame {
  position: relative;
  width: 100%;
  max-width: 1080px;
  height: 480px;
  background: rgba(8, 8, 11, 0.96);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  overflow: hidden;
  filter: blur(0.9px) brightness(0.87);
  opacity: 0.96;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 24px 60px rgba(0,0,0,0.5);
}

/* Top tab bar */
.sf-topbar {
  display: flex;
  align-items: stretch;
  height: 38px;
  padding: 0 14px 0 14px;
  background: rgba(255,255,255,0.025);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.sf-tab {
  display: flex;
  align-items: center;
  font: 400 11px/1 var(--font-mono);
  color: rgba(255,255,255,0.42);
  padding: 0 14px;
  letter-spacing: 0.02em;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.sf-tab--current {
  color: rgba(255,255,255,0.82);
  background: rgba(255,255,255,0.025);
  border-bottom-color: #37D347;
}
.sf-tab-pill {
  font: 600 8.5px/1 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 6px;
  border-radius: 3px;
  background: rgba(245,166,35,0.16);
  color: #F5A623;
  border: 1px solid rgba(245,166,35,0.28);
  margin-right: 7px;
}
.sf-topbar-spacer { flex: 1; }
.sf-clock {
  align-self: center;
  font: 400 10px/1 var(--font-mono);
  color: rgba(55,211,71,0.70);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  margin-right: 12px;
}
.sf-next {
  align-self: center;
  font: 400 11px/1 var(--font-mono);
  color: rgba(55,211,71,0.78);
  padding: 5px 10px;
  border: 1px solid rgba(55,211,71,0.22);
  border-radius: 4px;
  letter-spacing: 0.03em;
}

/* Body grid: rail · case · journal · app */
.sf-body {
  display: grid;
  grid-template-columns: 52px 250px 1fr 270px;
  height: 442px;
}

/* Rail */
.sf-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  background: rgba(255,255,255,0.02);
  border-right: 1px solid rgba(255,255,255,0.05);
}
.sf-rail-logo {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  background: #17494D;
  color: #87E8E0;
  font: 700 16px/1 var(--font-sans, system-ui);
  letter-spacing: -0.02em;
}
.sf-rail-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.32);
  border-radius: 5px;
}
.sf-rail-icon--active {
  color: rgba(255,255,255,0.92);
  background: rgba(255,255,255,0.07);
}
.sf-rail-divider {
  width: 22px;
  height: 1px;
  background: rgba(255,255,255,0.10);
  margin: 4px 0;
}

/* Column shared */
.sf-col {
  overflow: hidden;
}
.sf-col--case {
  padding: 14px 14px;
  border-right: 1px solid rgba(255,255,255,0.05);
  background: rgba(255,255,255,0.012);
}
.sf-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 12px;
}
.sf-flabel {
  font: 400 8.5px/1 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: rgba(255,255,255,0.32);
}
.sf-fval {
  font: 400 11.5px/1.3 var(--font-mono);
  color: rgba(255,255,255,0.80);
  padding: 6px 9px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
}
.sf-fval--dropdown::after {
  content: "▾";
  position: absolute;
  right: 9px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.30);
  font-size: 10px;
}
.sf-fval--mono { letter-spacing: 0.04em; }
.sf-avatar {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5A6B7A, #2F3A45);
  display: inline-block;
  flex-shrink: 0;
}
.sf-avatar--alt {
  background: linear-gradient(135deg, #D88FA8, #8B4A6B);
}
.sf-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.sf-chip {
  font: 400 9.5px/1 var(--font-mono);
  padding: 4px 7px;
  border-radius: 3px;
  background: rgba(39,194,255,0.07);
  color: rgba(39,194,255,0.78);
  border: 1px solid rgba(39,194,255,0.17);
  font-style: normal;
  letter-spacing: 0.02em;
}

/* Journal */
.sf-col--journal {
  border-right: 1px solid rgba(255,255,255,0.05);
}
.sf-journal-head {
  display: flex;
  justify-content: space-between;
  padding: 11px 14px;
  font: 400 9px/1 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: rgba(255,255,255,0.36);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.sf-journal-row {
  display: grid;
  grid-template-columns: 14px 1.2fr 1fr 1.2fr 60px;
  gap: 12px;
  padding: 9px 14px;
  align-items: center;
  font: 400 10.5px/1.3 var(--font-mono);
  color: rgba(255,255,255,0.65);
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.sf-journal-row--head {
  font-size: 8.5px;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: rgba(255,255,255,0.30);
  padding: 7px 14px;
  background: rgba(255,255,255,0.015);
}
.sf-journal-row--active {
  background: rgba(55,211,71,0.045);
  border-left: 2px solid #37D347;
  padding-left: 12px;
}
.sf-journal-row--active span:nth-child(3) { color: rgba(255,255,255,0.92); font-weight: 500; }
.sf-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.sf-dot--open    { background: #E5443D; }
.sf-dot--pending { background: #F5A623; }
.sf-dot--solved  { background: transparent; border: 1px solid rgba(255,255,255,0.32); }
.sf-jcell-mono {
  letter-spacing: 0.03em;
  color: rgba(255,255,255,0.50);
  font-size: 10px;
}
.sf-jcell-muted {
  color: rgba(255,255,255,0.32);
  font-size: 9.5px;
  text-align: right;
}

/* Right app pipeline */
.sf-col--app {
  padding: 14px 16px;
  background: rgba(255,255,255,0.012);
}
.sf-app-head {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 10px;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.sf-app-logo {
  color: #37D347;
  font-size: 11px;
}
.sf-app-name {
  font: 600 12px/1 var(--font-mono);
  color: rgba(255,255,255,0.88);
  letter-spacing: 0.01em;
}
.sf-app-sub {
  font: 400 8.5px/1 var(--font-mono);
  color: rgba(255,255,255,0.36);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-left: auto;
}
.sf-steps {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sf-step {
  display: grid;
  grid-template-columns: 18px 1fr auto 14px;
  gap: 6px;
  align-items: center;
  padding: 6px 0;
  position: relative;
}
.sf-step::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 26px;
  bottom: -6px;
  width: 1px;
  background: rgba(55,211,71,0.20);
}
.sf-step:last-child::before { display: none; }
.sf-step-i {
  font: 500 8.5px/1 var(--font-mono);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid;
  background: #08090C;
  position: relative;
  z-index: 1;
}
.sf-step-name {
  font: 400 10.5px/1.3 var(--font-mono);
  color: rgba(255,255,255,0.66);
}
.sf-step-mark {
  font-size: 11px;
  text-align: center;
}
.sf-step--done .sf-step-i {
  background: rgba(55,211,71,0.10);
  border-color: rgba(55,211,71,0.36);
  color: #37D347;
}
.sf-step--done .sf-step-mark {
  color: #37D347;
}
.sf-step--active .sf-step-i {
  background: rgba(55,211,71,0.22);
  border-color: #37D347;
  color: #37D347;
  box-shadow: 0 0 0 3px rgba(55,211,71,0.10);
}
.sf-step--active .sf-step-name {
  color: rgba(255,255,255,0.95);
}
.sf-step-mark--pulse {
  color: #37D347;
  animation: hookPulse 1.6s ease-in-out infinite;
}
@keyframes hookPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(1.25); }
}
/* Step status pills */
.sf-step-status {
  font: 600 7.5px/1 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 5px;
  border-radius: 3px;
  white-space: nowrap;
}
.sf-step-status--empty {
  display: none;
}
.sf-step-status--approved {
  color: #37D347;
  background: rgba(55,211,71,0.12);
  border: 1px solid rgba(55,211,71,0.28);
}
.sf-step-status--manual {
  color: #F5A623;
  background: rgba(245,166,35,0.12);
  border: 1px solid rgba(245,166,35,0.28);
}
.sf-step-status--antifraud {
  color: #F87171;
  background: rgba(248,113,113,0.12);
  border: 1px solid rgba(248,113,113,0.28);
}
.sf-step-status--request {
  color: #60A5FA;
  background: rgba(96,165,250,0.12);
  border: 1px solid rgba(96,165,250,0.28);
}

.sf-app-foot {
  display: flex;
  justify-content: space-between;
  padding-top: 10px;
  margin-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font: 400 9.5px/1 var(--font-mono);
  color: rgba(255,255,255,0.42);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.sf-app-foot b {
  color: rgba(255,255,255,0.82);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  margin-right: 4px;
}

/* Bottom gradient fade — applied INSIDE frame so it blurs with frame */
.sf-fade {
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  height: 140px;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(8,8,11,0) 0%, rgba(8,8,11,0.90) 75%, #050507 100%);
}

/* ── Foreground hook card ─────────────────────────────────────── */
.hook-card {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) rotate(0.5deg);
  width: 460px;
  max-width: calc(100% - 40px);
  z-index: 10;
  background: linear-gradient(180deg, #0F1015 0%, #08090C 100%);
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.6),
    0 24px 60px rgba(0,0,0,0.55),
    0 60px 120px rgba(0,0,0,0.65);
}
.hc-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
}
.hc-step {
  font: 500 11px/1 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: rgba(255,255,255,0.62);
}
.hc-status {
  font: 600 11px/1 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 10px;
  border-radius: 4px;
}
.hc-status--approved {
  background: rgba(55,211,71,0.14);
  color: #37D347;
  border: 1px solid rgba(55,211,71,0.36);
}
.hc-meta {
  padding: 12px 18px 11px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.hc-meta-id {
  font: 500 13px/1.4 var(--font-mono);
  color: rgba(255,255,255,0.92);
  letter-spacing: 0.02em;
}
.hc-meta-sub {
  font: 400 11px/1.5 var(--font-mono);
  color: rgba(255,255,255,0.42);
  margin-top: 3px;
}
.hc-rows {
  padding: 12px 18px 6px;
}
.hc-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 6px 0;
}
.hc-k {
  font: 400 11px/1 var(--font-mono);
  color: rgba(255,255,255,0.55);
}
.hc-k i {
  color: rgba(255,255,255,0.32);
  font-style: normal;
}
.hc-v {
  font: 400 12px/1 var(--font-mono);
  color: rgba(255,255,255,0.85);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.hc-row--deduct .hc-v { color: #E5443D; }
.hc-row--sub .hc-k { color: rgba(255,255,255,0.40); }
.hc-row--sub .hc-v { color: rgba(255,255,255,0.62); }
.hc-divider {
  height: 1px;
  background: rgba(255,255,255,0.10);
  margin: 8px 0 4px;
}
.hc-row--total {
  padding: 10px 0 4px;
  align-items: center;
}
.hc-row--total .hc-k {
  font-size: 11px;
  color: rgba(255,255,255,0.78);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.hc-v--big {
  font-size: 22px;
  color: #37D347;
  letter-spacing: -0.01em;
  font-weight: 500;
}
.hc-actions {
  display: flex;
  gap: 8px;
  padding: 10px 14px 14px;
}
.hc-btn {
  padding: 10px 14px;
  border-radius: 7px;
  font: 500 11px/1 var(--font-mono);
  letter-spacing: 0.03em;
  border: 1px solid;
  cursor: default;
  text-align: center;
}
.hc-btn--approve {
  flex: 1;
  background: rgba(55,211,71,0.12);
  border-color: rgba(55,211,71,0.42);
  color: #37D347;
}
.hc-btn--secondary {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.13);
  color: rgba(255,255,255,0.55);
}

/* Mobile — hide flow timeline, only show console hook-card */
@media (max-width: 900px) {
  .px-edge-glow { display: none !important; }
  .flow-stage { display: none; }
  .pipe-info { display: none !important; }
  .console-stage {
    padding: 32px 16px 48px;
    min-height: auto;
  }
  .stage-frame { display: none; }
  .hook-card {
    position: static;
    transform: none;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    box-shadow:
      0 0 0 1px rgba(0,0,0,0.6),
      0 16px 40px rgba(0,0,0,0.55);
  }
}

