/* ===== Cinematic Hero: 700vh scroll ===== */
.cx-hero-scroll {
  position: relative;
  height: 700vh;
}
.cx-hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 40%, #121216 0%, var(--bg-base) 60%);
}
#cxBgCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.cx-act {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 104px 20px 80px;
  will-change: opacity, transform;
}
.cx-act.cx-visible { pointer-events: auto; }

/* Scroll progress indicator (bottom bar inside hero) */
.cx-scroll-progress-indicator {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.05);
  z-index: 10;
}
.cx-scroll-progress-indicator .cx-fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--accent);
  width: 0%;
  box-shadow: 0 0 12px var(--accent-glow);
}
.cx-scroll-progress-indicator .cx-tick {
  position: absolute;
  top: -3px;
  width: 1px;
  height: 8px;
  background: rgba(255, 255, 255, 0.2);
}

.cx-hero-hint {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--text-faint);
  text-transform: uppercase;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 10;
}
.cx-hero-hint .cx-dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--accent);
  animation: cxHintPulse 2.2s ease-in-out infinite;
}
@keyframes cxHintPulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.4); }
}

/* ---------- ACT 1: Chat mock ---------- */
.cx-chat-wrap {
  width: min(560px, 92vw);
  position: relative;
}
.cx-chat-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--text-faint);
  text-transform: uppercase;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cx-chat-eyebrow .cx-pill {
  padding: 3px 8px;
  border: 1px solid var(--border-default);
  border-radius: 4px;
  color: var(--text-secondary);
}
.cx-chat-card {
  background: #0f0f12;
  border: 1px solid var(--border-default);
  border-radius: 16px;
  padding: 22px 24px 24px;
  box-shadow: 0 40px 120px -40px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255,255,255,0.02) inset;
  font-size: 15px;
}
.cx-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-default);
  margin-bottom: 16px;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.cx-chat-head .cx-dots { display: flex; gap: 6px; }
.cx-chat-head .cx-dots span {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(255,255,255,0.15);
}
.cx-chat-msg { margin-bottom: 18px; }
.cx-chat-msg:last-child { margin-bottom: 0; }
.cx-chat-msg .cx-who {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--text-faint);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.cx-chat-msg .cx-who.cx-you { color: #4ade80; }
.cx-chat-msg .cx-body {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.65;
  min-height: 22px;
}
.cx-chat-msg .cx-body.cx-prompt-text::after {
  content: '';
  display: inline-block;
  width: 8px;
  height: 16px;
  background: #4ade80;
  vertical-align: middle;
  margin-left: 2px;
  animation: cxBlinkCursor 1s steps(2) infinite;
}
.cx-chat-msg .cx-body.cx-prompt-text.cx-done::after { display: none; }
@keyframes cxBlinkCursor { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }
.cx-chat-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
  margin: 0;
}
.cx-chat-list li {
  font-family: var(--font-body, 'Plus Jakarta Sans'), system-ui, sans-serif;
  font-size: 14px;
  color: var(--text-primary);
  padding: 8px 12px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-default);
  border-radius: 8px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.5s cubic-bezier(0.25,1,0.5,1), transform 0.5s cubic-bezier(0.25,1,0.5,1), border-color 0.5s cubic-bezier(0.25,1,0.5,1), box-shadow 0.5s cubic-bezier(0.25,1,0.5,1);
  list-style: none;
}
.cx-chat-list li.cx-revealed {
  opacity: 1;
  transform: translateY(0);
}
.cx-chat-list li.cx-revealed.cx-glow {
  border-color: rgba(194,112,68,0.4);
  box-shadow: 0 0 0 1px rgba(194,112,68,0.15), 0 0 24px -6px rgba(194,112,68,0.3);
}
.cx-chat-list li .cx-rank {
  font-family: var(--font-mono);
  color: var(--accent);
  margin-right: 10px;
  font-size: 12px;
}
.cx-act-caption {
  margin-top: 22px;
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.6s cubic-bezier(0.25,1,0.5,1), transform 0.6s cubic-bezier(0.25,1,0.5,1);
}
.cx-act-caption.cx-revealed { opacity: 1; transform: translateY(0); }

.cx-chat-gutpunch {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed rgba(255,255,255,0.12);
  font-family: var(--font-mono);
  font-size: 14px;
  font-style: italic;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.6s cubic-bezier(0.25,1,0.5,1), transform 0.6s cubic-bezier(0.25,1,0.5,1);
}
.cx-chat-gutpunch.cx-revealed { opacity: 1; transform: translateY(0); }
.cx-chat-gutpunch .cx-gp-tag {
  color: #ef4444;
  font-style: normal;
  font-weight: 500;
}
.cx-chat-gutpunch.cx-pulse { animation: cxGutPulse 0.9s cubic-bezier(0.25,1,0.5,1) 2; }
@keyframes cxGutPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

/* ---------- ACT 2: X-ray split ---------- */
.cx-xray2-wrap {
  width: min(1100px, 94vw);
  display: grid;
  grid-template-columns: 1fr 24px 1fr;
  gap: 0;
  position: relative;
  align-items: stretch;
  min-height: 460px;
}
@media (max-width: 760px) {
  .cx-xray2-wrap { grid-template-columns: 1fr; gap: 16px; min-height: auto; }
  .cx-xray2-wrap .cx-xray2-divider { display: none; }
}
.cx-xray2-side {
  border: 1px solid var(--border-default);
  border-radius: 14px;
  background: rgba(255,255,255,0.012);
  padding: 22px 22px 28px;
  position: relative;
  overflow: hidden;
}
.cx-xray2-side .cx-xray2-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 18px;
}
.cx-xray2-divider {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cx-xray2-divider::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 1px;
  background: rgba(244,240,236,0.2);
}
.cx-xray2-divider .cx-vs {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--text-faint);
  text-transform: uppercase;
  background: var(--bg-base);
  padding: 6px 0;
  position: relative;
  z-index: 1;
}

/* Human view stylized site */
.cx-xray2-human .cx-site-mock {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cx-xray2-human .cx-site-mock .cx-top-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.cx-xray2-human .cx-site-mock .cx-logo-circle {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(244,240,236,0.4), rgba(244,240,236,0.15));
}
.cx-xray2-human .cx-site-mock .cx-nav-bar {
  display: flex;
  gap: 14px;
  flex: 1;
  justify-content: flex-end;
}
.cx-xray2-human .cx-site-mock .cx-nav-bar span {
  width: 38px;
  height: 6px;
  background: rgba(244,240,236,0.25);
  border-radius: 2px;
}
.cx-xray2-human .cx-site-mock .cx-hero-line {
  margin-top: 10px;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  color: rgba(244,240,236,0.85);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.cx-xray2-human .cx-site-mock .cx-hero-sub {
  height: 6px;
  width: 60%;
  background: rgba(244,240,236,0.15);
  border-radius: 2px;
  margin-bottom: 6px;
}
.cx-xray2-human .cx-site-mock .cx-blocks {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-top: 8px;
}
.cx-xray2-human .cx-site-mock .cx-blocks div {
  height: 60px;
  background: rgba(244,240,236,0.06);
  border: 1px solid rgba(244,240,236,0.08);
  border-radius: 6px;
}
.cx-xray2-human .cx-site-mock .cx-footer-bar {
  margin-top: 10px;
  height: 18px;
  background: rgba(244,240,236,0.05);
  border-radius: 4px;
}

/* AI view network graph */
.cx-xray2-ai { position: relative; }
.cx-xray2-ai .cx-graph {
  position: relative;
  width: 100%;
  height: 320px;
}
.cx-xray2-ai .cx-graph svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.cx-xray2-ai .cx-node-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 10px rgba(239,68,68,0.55);
  transform: translate(-50%, -50%);
  animation: cxRedDotPulse 1.5s ease-in-out infinite;
}
@keyframes cxRedDotPulse {
  0%, 100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.3; transform: translate(-50%, -50%) scale(0.85); }
}
.cx-xray2-ai .cx-warn-label {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid rgba(239,68,68,0.5);
  background: rgba(239,68,68,0.08);
  color: #ef4444;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.6s cubic-bezier(0.25,1,0.5,1), transform 0.6s cubic-bezier(0.25,1,0.5,1);
  backdrop-filter: blur(6px);
  z-index: 4;
}
.cx-xray2-ai .cx-warn-label.cx-show { opacity: 1; transform: translateY(0); }
.cx-xray2-ai .cx-warn-label .cx-pulse-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444;
  animation: cxRedDotPulse 1.5s ease-in-out infinite;
}
.cx-xray2-ai .cx-warn-label.cx-w1 { top: 4%; left: 6%; }
.cx-xray2-ai .cx-warn-label.cx-w2 { top: 28%; right: 6%; }
.cx-xray2-ai .cx-warn-label.cx-w3 { top: 56%; left: 6%; }
.cx-xray2-ai .cx-warn-label.cx-w4 { bottom: 6%; right: 6%; }

/* ---------- ACT 3: Code writing ---------- */
.cx-fix-wrap {
  width: min(920px, 94vw);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  align-items: stretch;
}
@media (max-width: 820px) {
  .cx-fix-wrap { grid-template-columns: 1fr; }
}
.cx-code-card {
  background: #0b0b0e;
  border: 1px solid var(--border-default);
  border-radius: 14px;
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  min-height: 340px;
}
.cx-code-card .cx-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border-default);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.cx-code-card .cx-title .cx-title-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}
.cx-code-line2 {
  display: block;
  line-height: 1.75;
  color: var(--accent);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.4s cubic-bezier(0.25,1,0.5,1), transform 0.4s cubic-bezier(0.25,1,0.5,1), color 0.4s cubic-bezier(0.25,1,0.5,1);
  white-space: pre;
  position: relative;
}
.cx-code-line2.cx-written { opacity: 1; transform: translateX(0); }
.cx-code-line2.cx-locked { color: var(--text-primary); }
.cx-code-card .cx-a3-comment {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-style: italic;
  color: rgba(244,240,236,0.35);
  margin-bottom: 8px;
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.25,1,0.5,1);
}
.cx-code-card .cx-a3-comment.cx-shown { opacity: 1; }
.cx-code-line2 .cx-a3-check {
  display: inline-block;
  color: var(--accent);
  margin-right: 6px;
  font-size: 11px;
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.25,1,0.5,1);
}
.cx-code-line2.cx-locked .cx-a3-check { opacity: 1; }

.cx-fix-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cx-fix-block {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-default);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 0.5s cubic-bezier(0.16,1,0.3,1), transform 0.5s cubic-bezier(0.16,1,0.3,1), border-color 0.5s cubic-bezier(0.25,1,0.5,1);
}
.cx-fix-block.cx-snap {
  opacity: 1;
  transform: scale(1);
  border-color: #4ade80;
}
.cx-fix-block .cx-icon {
  width: 22px; height: 22px;
  border-radius: 6px;
  background: rgba(74,222,128,0.12);
  color: #4ade80;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* ---------- ACT 4: Three AI windows ---------- */
.cx-plat-wrap {
  width: min(1180px, 96vw);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 860px) {
  .cx-plat-wrap { grid-template-columns: 1fr; gap: 14px; }
}
.cx-plat2 {
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 320px;
  opacity: 0;
  transform: translateY(20px) scale(0.98);
  transition: opacity 0.7s cubic-bezier(0.25,1,0.5,1), transform 0.7s cubic-bezier(0.25,1,0.5,1);
}
.cx-plat2.cx-up { opacity: 1; transform: translateY(0) scale(1); }
.cx-plat2.cx-chatgpt2 {
  background: #212121;
  border: 1px solid rgba(255,255,255,0.08);
}
.cx-plat2.cx-perplexity2 {
  background: #0f1117;
  border: 1px solid rgba(48, 136, 144, 0.32);
}
.cx-plat2.cx-google2 {
  background: #ffffff;
  border: 1px solid #e3e3e7;
  color: #1f1f23;
}
.cx-plat2 .cx-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-family: var(--font-body, 'Plus Jakarta Sans'), sans-serif;
  font-size: 12px;
}
.cx-plat2.cx-google2 .cx-topbar { border-bottom-color: #ececef; color: #5f6368; }
.cx-plat2 .cx-avatar {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--text-primary);
}
.cx-plat2.cx-google2 .cx-ai-mark {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: linear-gradient(135deg, #4285f4 0%, #ea4335 35%, #fbbc05 65%, #34a853 100%);
  display: inline-block;
}
.cx-plat2.cx-perplexity2 .cx-search-bar {
  width: 100%;
  padding: 8px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(48,136,144,0.4);
  border-radius: 10px;
  color: rgba(244,240,236,0.55);
  font-family: var(--font-body, 'Plus Jakarta Sans'), sans-serif;
  font-size: 12px;
}
.cx-plat2 .cx-body2 {
  padding: 14px 16px;
  font-family: var(--font-body, 'Plus Jakarta Sans'), sans-serif;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(244,240,236,0.78);
  flex: 1;
  min-height: 150px;
}
.cx-plat2.cx-google2 .cx-body2 { color: #3c4043; }
.cx-plat2 .cx-body2 .cx-a4-line {
  display: block;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.45s cubic-bezier(0.25,1,0.5,1), transform 0.45s cubic-bezier(0.25,1,0.5,1);
  margin-bottom: 4px;
}
.cx-plat2 .cx-body2 .cx-a4-line.cx-in { opacity: 1; transform: translateY(0); }
.cx-plat2 .cx-body2 .cx-a4-cite {
  color: var(--accent);
  font-weight: 700;
  background: rgba(194,112,68,0.14);
  padding: 1px 5px;
  border-radius: 3px;
  box-shadow: 0 0 16px var(--accent-glow);
}
.cx-plat2 .cx-body2 .cx-ai-overview-tag {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(66,133,244,0.1);
  color: #1a73e8;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.cx-plat2 .cx-user-bubble {
  align-self: flex-end;
  margin: 0 14px 8px auto;
  max-width: 80%;
  padding: 8px 14px;
  background: rgba(255,255,255,0.06);
  color: rgba(244,240,236,0.85);
  font-size: 12px;
  border-radius: 14px 14px 4px 14px;
  font-family: var(--font-body, 'Plus Jakarta Sans'), sans-serif;
}
.cx-plat2.cx-google2 .cx-user-bubble { display: none; }
.cx-plat2 .cx-input-pill {
  margin: 12px 14px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  color: rgba(244,240,236,0.4);
  font-family: var(--font-body, 'Plus Jakarta Sans'), sans-serif;
  font-size: 12px;
}
.cx-plat2 .cx-src-row {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.cx-plat2.cx-google2 .cx-src-row { border-top-color: #ececef; }
.cx-plat2 .cx-src-row .cx-src-card {
  flex: 1;
  height: 28px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
}
.cx-plat2.cx-google2 .cx-src-row .cx-src-card {
  background: #f5f6f8;
  border-color: #e3e3e7;
}
.cx-plat-cited-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 12px;
  padding: 5px 12px;
  background: rgba(74, 222, 128, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.4);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #4ade80;
}
.cx-plat-cited-wrap { text-align: center; }

.cx-plat-counter {
  margin-top: 22px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.25,1,0.5,1);
}
.cx-plat-counter.cx-show { opacity: 1; }
.cx-plat-counter .cx-num {
  color: var(--accent);
  font-weight: 700;
  font-size: 22px;
  margin-left: 6px;
}

/* ---------- ACT 5: Close ---------- */
.cx-close-wrap {
  width: min(1020px, 94vw);
  text-align: center;
  position: relative;
}
.cx-close-headline {
  display: inline-flex;
  gap: clamp(14px, 3vw, 36px);
  flex-wrap: wrap;
  justify-content: center;
  font-size: clamp(44px, 10vw, 128px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.95;
}
.cx-close-headline span {
  display: inline-block;
  opacity: 0;
  transform: translateY(30px) scale(0.9);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1);
  background: linear-gradient(180deg, var(--text-primary) 0%, rgba(244,240,236,0.55) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cx-close-headline span.cx-in { opacity: 1; transform: translateY(0) scale(1); }
.cx-close-headline span.cx-hot {
  color: var(--accent);
  -webkit-text-fill-color: var(--accent);
}
.cx-close-cta {
  margin-top: 44px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.cx-close-cta.cx-up { opacity: 1; transform: scale(1); }
.cx-close-cta .cx-close-btn {
  padding: 18px 30px;
  background: var(--accent);
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 20px 60px -20px rgba(194,112,68,0.6);
  transition: transform 0.3s cubic-bezier(0.25,1,0.5,1);
  text-decoration: none;
  font-family: var(--font-heading);
}
.cx-close-cta .cx-close-btn:hover { transform: translateY(-2px); }
.cx-close-cta .cx-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.cx-close-tagline {
  margin-top: 22px;
  font-family: var(--font-body, 'Plus Jakarta Sans'), sans-serif;
  font-weight: 400;
  font-size: clamp(15px, 1.6vw, 19px);
  color: rgba(244,240,236,0.7);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.7s cubic-bezier(0.25,1,0.5,1), transform 0.7s cubic-bezier(0.25,1,0.5,1);
}
.cx-close-tagline.cx-in { opacity: 1; transform: translateY(0); }
@keyframes cxShimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.cx-shimmer-btn {
  background: linear-gradient(120deg, var(--accent) 0%, #d4845a 50%, var(--accent) 100%) !important;
  background-size: 200% 100% !important;
  animation: cxShimmer 3s linear infinite;
}

/* Act step labels (top-left monospace) */
.cx-act-step-label {
  position: absolute;
  top: 82px;
  left: clamp(20px, 4vw, 48px);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.25,1,0.5,1);
  pointer-events: none;
  z-index: 12;
}
.cx-act-step-label.cx-show { opacity: 1; }

/* Vertical right-edge scroll progress */
.cx-v-scroll-progress {
  position: fixed;
  top: 50%;
  right: 24px;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.25,1,0.5,1);
  pointer-events: none;
}
.cx-v-scroll-progress.cx-show { opacity: 1; }
.cx-v-scroll-progress .cx-v-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--text-faint);
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.4s cubic-bezier(0.25,1,0.5,1);
}
.cx-v-scroll-progress.cx-lit .cx-v-label { color: var(--accent); }
.cx-v-scroll-progress .cx-v-track {
  position: relative;
  width: 2px;
  height: 50vh;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 1px;
  overflow: hidden;
}
.cx-v-scroll-progress .cx-v-fill {
  position: absolute;
  top: 0; left: 0; right: 0;
  background: var(--accent);
  height: 0%;
  box-shadow: 0 0 10px var(--accent-glow);
  transition: height 0.12s linear;
}
@media (max-width: 640px) {
  .cx-v-scroll-progress { display: none; }
}

/* ---------- Social Proof Ticker ---------- */
.cx-ticker-section {
  background: var(--bg-base);
  border-top: 1px solid var(--border-default);
  border-bottom: 1px solid var(--border-default);
  padding: 36px 0 20px;
  overflow: hidden;
}
.cx-ticker-track {
  display: flex;
  width: max-content;
  gap: 0;
  animation: cxTickerScroll 40s linear infinite;
}
@keyframes cxTickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.cx-ticker-item {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-primary);
  padding: 0 28px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.cx-ticker-item .cx-check {
  color: var(--accent);
  font-size: 14px;
}
.cx-ticker-divider {
  color: var(--accent);
  font-size: 18px;
  align-self: center;
}
.cx-ticker-disclaimer {
  font-family: var(--font-mono);
  font-size: 10px;
  text-align: center;
  color: var(--text-faint);
  margin-top: 16px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---------- Sourced Stats ---------- */
.cx-stats-section {
  background: linear-gradient(180deg, var(--bg-base), #18181a);
  border-top: 1px solid var(--border-default);
  border-bottom: 1px solid var(--border-default);
  padding: clamp(80px, 12vw, 160px) clamp(20px, 4vw, 48px);
}
.cx-stats-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 820px) {
  .cx-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 20px; }
}
.cx-stat {
  text-align: center;
  padding: 20px 12px;
  border-right: 1px solid var(--border-default);
}
.cx-stat:last-child { border-right: 0; }
@media (max-width: 820px) {
  .cx-stat { border-right: 0; border-bottom: 1px solid var(--border-default); padding-bottom: 32px; }
  .cx-stat:nth-child(3), .cx-stat:nth-child(4) { border-bottom: 0; padding-bottom: 0; }
}
.cx-stat .cx-stat-num {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(48px, 8vw, 96px);
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.04em;
}
.cx-stat .cx-stat-num .cx-suf {
  font-size: 0.55em;
  margin-left: 4px;
  color: var(--accent);
}
.cx-stat .cx-stat-label {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-primary);
  letter-spacing: 0.03em;
}
.cx-stat .cx-stat-source {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-faint);
  letter-spacing: 0.04em;
}
.cx-stat .cx-stat-source a {
  color: var(--text-faint);
  text-decoration: none;
}
.cx-stat .cx-stat-source a:hover { color: var(--accent); }

/* ---------- Animated Methodology Pipeline ---------- */
.cx-method-section {
  padding: clamp(80px, 12vw, 160px) clamp(20px, 4vw, 48px);
}
.cx-method-section .cx-method-inner {
  max-width: 1240px;
  margin: 0 auto;
}
.cx-method-section .cx-method-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.cx-method-section .cx-method-eyebrow::before {
  content: '';
  width: 22px; height: 1px;
  background: var(--accent);
}
.cx-method-section .cx-method-heading {
  font-family: var(--font-heading);
  font-size: clamp(36px, 5.6vw, 72px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--text-primary);
  margin-bottom: 16px;
  max-width: 920px;
}
.cx-method-section .cx-method-sub {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--text-secondary);
  max-width: 640px;
  margin-bottom: clamp(44px, 6vw, 72px);
}
.cx-pipeline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0;
  position: relative;
  margin-top: 36px;
}
@media (max-width: 760px) {
  .cx-pipeline { flex-direction: column; align-items: center; gap: 8px; }
}
.cx-pipe-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 220px;
  position: relative;
}
@media (max-width: 760px) {
  .cx-pipe-node { width: 100%; max-width: 320px; }
}
.cx-pipe-node .cx-pipe-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid rgba(244,240,236,0.2);
  background: rgba(255,255,255,0.02);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(244,240,236,0.5);
  transition: background 0.6s cubic-bezier(0.25,1,0.5,1), border-color 0.6s cubic-bezier(0.25,1,0.5,1), color 0.6s cubic-bezier(0.25,1,0.5,1), box-shadow 0.6s cubic-bezier(0.25,1,0.5,1);
}
.cx-pipe-node.cx-lit .cx-pipe-circle {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--text-primary);
  box-shadow: 0 0 0 6px rgba(194,112,68,0.18), 0 0 30px rgba(194,112,68,0.45);
}
.cx-pipe-node .cx-step-num {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--text-faint);
  text-transform: uppercase;
}
.cx-pipe-node .cx-pipe-name {
  margin-top: 4px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 22px;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.cx-pipe-node .cx-pipe-word {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 26px;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.cx-pipe-node .cx-pipe-desc {
  margin-top: 12px;
  text-align: center;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 240px;
}
.cx-pipe-conn {
  flex: 1;
  height: 80px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
}
@media (max-width: 760px) {
  .cx-pipe-conn { height: 40px; width: 100%; flex: none; }
}
.cx-pipe-conn svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.cx-pipe-conn .cx-conn-dash {
  stroke: rgba(244,240,236,0.18);
  stroke-width: 2;
  stroke-dasharray: 6 6;
  fill: none;
  transition: stroke 0.6s cubic-bezier(0.25,1,0.5,1);
}
.cx-pipe-conn.cx-lit .cx-conn-dash {
  stroke: var(--accent);
  animation: cxMarchingAnts 1.5s linear infinite;
}
@keyframes cxMarchingAnts {
  0% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -24; }
}

/* ---------- Cinematic hero mobile graceful degradation ---------- */
@media (max-width: 768px) {
  .cx-hero-scroll { height: 560vh; }
  .cx-chat-wrap { width: min(520px, 92vw); }
  .cx-code-card { font-size: 10px; padding: 16px; }
  .cx-close-headline { font-size: clamp(40px, 12vw, 80px); }
  .cx-act { padding: 84px 16px 60px; }
}
@media (max-width: 640px) {
  .cx-hero-scroll { height: 520vh; }
  .cx-act-step-label { font-size: 9px; top: 72px; }
  .cx-chat-card { padding: 16px 18px 18px; }
  .cx-xray2-ai .cx-graph { height: 240px; }
  .cx-plat2 { min-height: 260px; }
}

@media (prefers-reduced-motion: reduce) {
  .cx-hero-scroll { height: auto; }
  .cx-hero-sticky { position: relative; height: auto; min-height: 100vh; }
  .cx-ticker-track { animation: none; }
  .cx-shimmer-btn { animation: none; }
  .cx-pipe-conn.cx-lit .cx-conn-dash { animation: none; }
  .cx-xray2-ai .cx-node-dot, .cx-xray2-ai .cx-warn-label .cx-pulse-dot { animation: none; }
}
