/* Editing Evolution — dark premium, blue + light-blue tints, subtle glows */

:root {
  --bg: #060a14;
  --bg-alt: #0a1122;
  --panel: #0d1528;
  --border: rgba(120, 170, 255, 0.14);
  --text: #e8eefc;
  --text-dim: #9aa8c7;
  --blue: #3b82f6;
  --blue-light: #7cc4ff;
  --glow: rgba(80, 150, 255, 0.45);
  --radius: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; background: var(--bg); }

body {
  /* transparent so the galaxy.js fixed starfield canvas shows through */
  background: transparent;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font: inherit;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  padding: 12px 24px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.25s ease, background 0.2s ease;
}
.btn-primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  color: #04101f;
  box-shadow: 0 0 24px rgba(80, 150, 255, 0.35);
}
/* Looping sheen that pans across the button — makes the CTA read as pressable
   even before hover. Skewed white strip, wide off-screen travel, long rest
   between passes so it winks rather than strobes. */
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 55%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.55) 50%, transparent);
  transform: translateX(-130%) skewX(-20deg);
  animation: btn-sheen 3.4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes btn-sheen {
  0% { transform: translateX(-130%) skewX(-20deg); }
  45%, 100% { transform: translateX(320%) skewX(-20deg); }
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(110, 180, 255, 0.55);
}
.btn-ghost {
  background: transparent;
  color: var(--blue-light);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--blue-light);
  box-shadow: 0 0 18px rgba(110, 180, 255, 0.25);
}
/* Only the "Unlock the offer" CTAs use btn-lg. Declared after .btn-primary
   so the white text wins over its dark default. */
.btn-lg { padding: 24px 54px; font-size: 1.65rem; font-weight: 700; color: #fff; }
/* btn-xl is the post-watch CTA above the VSL — deliberately the biggest
   button on the page. */
.btn-xl {
  padding: clamp(22px, 4vw, 34px) clamp(40px, 8vw, 84px);
  font-size: clamp(1.5rem, 4vw, 2.3rem);
  font-weight: 800;
  color: #fff;
  border-radius: 18px;
}

/* ---------- Hero ---------- */
.hero {
  padding: 120px 0 80px;
  text-align: center;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(59, 130, 246, 0.18), transparent 70%);
}
.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 1.05rem;
  color: var(--blue-light);
  margin-bottom: 20px;
}
/* No CTA in the hero any more — the first "Unlock the offer" sits under the
   VSL (.vsl-cta), so the headline is the hero's last element. */
.hero-headline {
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.15;
  max-width: 820px;
  margin: 0 auto;
}
.glow-text {
  color: var(--blue-light);
  text-shadow: 0 0 24px var(--glow);
}

/* ---------- VSL ---------- */
.vsl { padding: 48px 0 80px; }
.vsl-cta { text-align: center; margin-top: 32px; }
/* Post-watch CTA: hidden until app.js unhides it on `ended`, then pops in
   above the video. */
.vsl-cta-finished { text-align: center; margin-bottom: 36px; }
.vsl-cta-finished .btn { animation: vsl-cta-pop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes vsl-cta-pop {
  from { opacity: 0; transform: scale(0.65); }
}
.vsl-panel {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  cursor: pointer;
  background: linear-gradient(160deg, #0a1224, #060a14);
  border: 2px solid rgba(74, 148, 255, 0.78);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  box-shadow:
    0 0 24px rgba(59, 130, 246, 0.5),
    0 0 70px rgba(59, 130, 246, 0.32),
    0 0 130px rgba(86, 176, 255, 0.16),
    inset 0 0 80px rgba(59, 130, 246, 0.08);
}
.vsl-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Keep the moving video visible behind the unmute prompt. */
.vsl-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 18, 0.5);
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 1;
}
.vsl-panel.is-unmuted::before { opacity: 0; }
.vsl-panel.is-unmuted.is-paused::before { opacity: 0.62; }
.vsl-unmute {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(64%, 580px);
  padding: clamp(28px, 5vw, 54px) 28px;
  color: #fff;
  font: inherit;
  font-size: clamp(1.35rem, 3.2vw, 2.35rem);
  font-weight: 800;
  line-height: 1.25;
  border: 3px solid rgba(174, 210, 255, 0.72);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(38, 112, 235, 0.94), rgba(62, 139, 255, 0.88));
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.38),
    0 0 34px rgba(77, 163, 255, 0.56),
    inset 0 0 38px rgba(255, 255, 255, 0.08);
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.25s ease;
}
.vsl-unmute:hover {
  transform: scale(1.015);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.42),
    0 0 52px rgba(87, 174, 255, 0.75),
    inset 0 0 38px rgba(255, 255, 255, 0.1);
}
.vsl-unmute strong { margin-top: 10px; }
.vsl-unmute-icon {
  margin-bottom: 24px;
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.4));
}
.vsl-panel.is-unmuted .vsl-unmute {
  opacity: 0;
  transform: scale(0.96);
  pointer-events: none;
}
/* Paused state (after unmute): a plain centered play button. It is
   pointer-events: none on purpose — the click falls through to the panel,
   which already toggles play/pause. */
.vsl-panel::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: clamp(96px, 13vw, 148px);
  height: clamp(96px, 13vw, 148px);
  border: 2px solid rgba(174, 210, 255, 0.72);
  border-radius: 50%;
  /* Triangle nudged just past center (54%) so it reads optically centered. */
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z' fill='white'/%3E%3C/svg%3E") 54% center / 52% auto no-repeat,
    rgba(6, 12, 26, 0.72);
  box-shadow:
    0 0 30px rgba(77, 163, 255, 0.55),
    inset 0 0 24px rgba(120, 170, 255, 0.18);
  backdrop-filter: blur(8px);
  opacity: 0;
  transform: translate(-50%, -48%) scale(0.9);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.vsl-panel.is-unmuted.is-paused::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
/* Fullscreen button — bottom-left, mirroring the volume cluster (bottom-right)
   so the volume slider can unfold without overlapping it. Same glass pill,
   same hidden-until-playback rule. */
.vsl-fs-btn {
  position: absolute;
  left: 14px;
  bottom: 15px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(6, 10, 20, 0.6);
  color: var(--text);
  backdrop-filter: blur(8px);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, color 0.2s ease;
}
.vsl-panel.is-playing .vsl-fs-btn,
.vsl-panel.is-paused .vsl-fs-btn {
  opacity: 0.65;
  pointer-events: auto;
}
.vsl-panel.is-playing .vsl-fs-btn:hover,
.vsl-panel.is-paused .vsl-fs-btn:hover,
.vsl-panel .vsl-fs-btn:focus-visible {
  opacity: 1;
  color: var(--blue-light);
}
.vsl-fs-shrink { display: none; }
.vsl-panel.is-fullscreen .vsl-fs-expand { display: none; }
.vsl-panel.is-fullscreen .vsl-fs-shrink { display: block; }
/* In fullscreen the panel IS the screen: drop the card chrome and letterbox
   the video instead of cropping it. */
.vsl-panel.is-fullscreen {
  border-width: 0;
  border-radius: 0;
}
.vsl-panel.is-fullscreen .vsl-video { object-fit: contain; }

/* Volume cluster — bottom-right, above the progress bar. Hidden until the
   video has started (the idle overlay is play-only); slider unfolds on hover
   or keyboard focus. */
.vsl-vol {
  position: absolute;
  right: 14px;
  bottom: 15px;
  z-index: 3;
  display: flex;
  align-items: center;
  padding: 6px 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(6, 10, 20, 0.6);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.vsl-panel.is-playing .vsl-vol,
.vsl-panel.is-paused .vsl-vol {
  opacity: 0.65;
  pointer-events: auto;
}
.vsl-panel.is-playing .vsl-vol:hover,
.vsl-panel.is-paused .vsl-vol:hover,
.vsl-panel .vsl-vol:focus-within {
  opacity: 1;
  pointer-events: auto;
}
.vsl-vol-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: none;
  background: none;
  padding: 0;
  color: var(--text);
  cursor: pointer;
}
.vsl-vol-btn:hover { color: var(--blue-light); }
.vsl-vol-off { display: none; }
.vsl-vol.muted .vsl-vol-on { display: none; }
.vsl-vol.muted .vsl-vol-off { display: block; }
.vsl-vol-slider {
  width: 0;
  margin-left: 0;
  opacity: 0;
  accent-color: var(--blue-light);
  cursor: pointer;
  transition: width 0.25s ease, opacity 0.25s ease, margin-left 0.25s ease;
}
.vsl-vol:hover .vsl-vol-slider,
.vsl-vol:focus-within .vsl-vol-slider {
  width: 78px;
  margin-left: 8px;
  opacity: 1;
}

/* Display-only progress bar — pointer-events: none is what makes it unseekable. */
.vsl-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
  z-index: 3;
}
.vsl-bar-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
  box-shadow: 0 0 14px var(--glow);
}
@media (max-width: 620px) {
  .vsl-unmute {
    width: 78%;
    padding: 22px 16px;
    border-width: 2px;
    border-radius: 18px;
  }
  .vsl-unmute-icon { width: 40px; height: 40px; margin-bottom: 12px; }
  .vsl-unmute strong { margin-top: 5px; }
}

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.section-alt {
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(59, 130, 246, 0.06), transparent 75%);
}
.section-title {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 16px;
}
.section-sub {
  text-align: center;
  color: var(--text-dim);
  max-width: 640px;
  margin: 0 auto 48px;
}

/* ---------- Softwares intro ---------- */
.soft-intro { padding: 120px 0; text-align: center; }
.soft-intro-line {
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  font-weight: 700;
  max-width: 760px;
  margin: 0 auto;
  text-wrap: balance;
}

/* ---------- Showcase bullets ---------- */
.bullets { list-style: none; margin-top: 24px; }
.bullets-center { display: inline-block; text-align: left; }
.bullets li {
  position: relative;
  padding: 9px 0 9px 34px;
  font-size: 1.02rem;
  color: var(--text);
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.5s ease, transform 0.5s ease, color 0.2s ease;
}
.reveal.visible .bullets li { opacity: 1; transform: none; }
.reveal.visible .bullets li:nth-child(1) { transition-delay: 0.15s; }
.reveal.visible .bullets li:nth-child(2) { transition-delay: 0.3s; }
.reveal.visible .bullets li:nth-child(3) { transition-delay: 0.45s; }
.reveal.visible .bullets li:nth-child(4) { transition-delay: 0.6s; }
.bullets li::before {
  content: "✦";
  position: absolute;
  left: 4px;
  top: 9px;
  color: var(--blue-light);
  text-shadow: 0 0 10px var(--glow);
  transition: transform 0.25s ease, text-shadow 0.25s ease;
}
.bullets li:hover { color: var(--blue-light); }
.bullets li:hover::before {
  transform: scale(1.4) rotate(25deg);
  text-shadow: 0 0 18px rgba(110, 180, 255, 0.85);
}

/* ---------- Showcases (shared) ---------- */
.showcase { padding: 100px 0; }
.showcase-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
  align-items: center;
}
.showcase-flip .showcase-inner { grid-template-columns: 1.4fr 1fr; }
.showcase-flip .showcase-copy { order: 2; }
.showcase-flip .showcase-demo { order: 1; }
/* Evolute: give the demo more width so its single window reads as a
   landscape rectangle rather than a square. */
.showcase-wide .showcase-inner { grid-template-columns: 0.9fr 1.55fr; }

@media (max-width: 900px) {
  .showcase-inner,
  .showcase-flip .showcase-inner,
  .showcase-wide .showcase-inner { grid-template-columns: 1fr; }
  .showcase-flip .showcase-copy { order: 1; }
  .showcase-flip .showcase-demo { order: 2; }
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.75rem;
  color: var(--blue-light);
  margin-bottom: 14px;
}
.showcase-title { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; }
.showcase-copy-center { text-align: center; max-width: 640px; margin: 0 auto 56px; }

/* Fake app window chrome */
.app-window {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 50px rgba(59, 130, 246, 0.1);
}
.app-titlebar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(6, 10, 20, 0.6);
}
.tdot { width: 10px; height: 10px; border-radius: 50%; background: #223252; }
.tdot:first-child { background: rgba(124, 196, 255, 0.5); }
.app-title { margin-left: 8px; font-size: 0.8rem; color: var(--text-dim); letter-spacing: 0.04em; }

/* Blinking caret for typed text */
.caret {
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 2px;
  vertical-align: -0.15em;
  background: var(--blue-light);
  animation: caret-blink 1s steps(1) infinite;
}
@keyframes caret-blink { 50% { opacity: 0; } }

/* ---------- Showcase 1: AI Asset Generator ---------- */
.gen-promptbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 18px 12px;
  padding: 13px 16px;
  background: rgba(6, 10, 20, 0.7);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.92rem;
  min-height: 46px;
}
.gen-spark { filter: drop-shadow(0 0 6px var(--glow)); }
#gen-typed { color: var(--text); }
.gen-models { display: flex; gap: 8px; padding: 0 18px 14px; flex-wrap: wrap; }
.model-chip {
  font: inherit;
  font-size: 0.78rem;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  color: var(--text-dim);
  background: transparent;
  border: 1px solid var(--border);
  transition: color 0.2s ease, border-color 0.2s ease, box-shadow 0.25s ease, background 0.2s ease;
}
.model-chip[data-kind="image"] { --h: 205; }
.model-chip[data-kind="video"] { --h: 355; }
.model-chip:hover { color: var(--text); border-color: rgba(124, 196, 255, 0.4); }
.model-chip.active {
  color: hsl(var(--h) 100% 78%);
  border-color: hsl(var(--h) 100% 65% / 0.6);
  background: hsl(var(--h) 90% 60% / 0.12);
  box-shadow: 0 0 16px hsl(var(--h) 100% 65% / 0.35);
}

/* Canvas: draggable generation nodes wired by SVG connectors.
   --h is the node hue and the single source of its colour: image = blue,
   video = red. Everything (art, border, glow, connector) derives from it. */
.gen-canvas {
  --node: 118px;
  position: relative;
  height: 350px;
  margin: 0 18px 18px;
  border-radius: 12px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.09), transparent 70%),
    rgba(6, 10, 20, 0.72);
  border: 1px solid var(--border);
  touch-action: none;
}
.gen-canvas::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(124, 196, 255, 0.16) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
}
.gen-links { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.gen-link { fill: none; stroke-width: 1.8; stroke-linecap: round; }
.gen-link-ghost { stroke-dasharray: 5 6; opacity: 0.85; }

.gen-node {
  --h: 205;
  position: absolute;
  width: var(--node);
  height: var(--node);
  border-radius: 12px;
  border: 1px solid hsl(var(--h) 100% 65% / 0.42);
  background: rgba(6, 10, 20, 0.9);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45), 0 0 20px hsl(var(--h) 100% 60% / 0.16);
  cursor: grab;
  touch-action: none;
  animation: gen-node-in 0.28s ease-out both;
}
.gen-node.kind-video { --h: 355; }
.gen-node.dragging { cursor: grabbing; z-index: 4; box-shadow: 0 16px 34px rgba(0, 0, 0, 0.55), 0 0 30px hsl(var(--h) 100% 60% / 0.35); }
.gen-node:hover { border-color: hsl(var(--h) 100% 70% / 0.7); }
@keyframes gen-node-in { from { opacity: 0; transform: scale(0.86); } }

.gen-node-art {
  position: absolute;
  inset: 0;
  border-radius: 11px;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.gen-node.done .gen-node-art { opacity: 1; transform: scale(1); }
.gen-node[data-art="0"] .gen-node-art { background: radial-gradient(circle at 30% 28%, hsl(var(--h) 100% 66%), hsl(calc(var(--h) + 40) 90% 30%) 72%); }
.gen-node[data-art="1"] .gen-node-art { background: linear-gradient(135deg, hsl(calc(var(--h) + 28) 95% 62%), hsl(calc(var(--h) - 28) 90% 34%)); }
.gen-node[data-art="2"] .gen-node-art { background: conic-gradient(from 200deg at 50% 50%, hsl(var(--h) 100% 62%), hsl(calc(var(--h) + 55) 85% 40%), hsl(var(--h) 100% 62%)); }
.gen-node[data-art="3"] .gen-node-art { background: radial-gradient(circle at 72% 70%, hsl(calc(var(--h) - 35) 100% 68%), hsl(var(--h) 85% 26%) 76%); }
.gen-node[data-art="4"] .gen-node-art { background: linear-gradient(200deg, hsl(calc(var(--h) + 55) 90% 62%), hsl(var(--h) 95% 32%) 60%, #060a14); }
.gen-node[data-art="5"] .gen-node-art { background: repeating-linear-gradient(45deg, hsl(var(--h) 95% 56%) 0 12%, hsl(calc(var(--h) + 40) 85% 36%) 12% 24%); }

/* Shimmer while the fake generation runs. It lives in its own clipped layer
   because the node itself cannot clip — the + handle hangs outside it. */
.gen-node-shimmer {
  position: absolute;
  inset: 0;
  border-radius: 11px;
  overflow: hidden;
  pointer-events: none;
}
.gen-node-shimmer::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(100deg, transparent 20%, hsl(var(--h) 100% 75% / 0.28) 50%, transparent 80%);
}
.gen-node.loading .gen-node-shimmer::after { animation: gen-shimmer 1.05s ease-in-out infinite; }
@keyframes gen-shimmer { to { transform: translateX(100%); } }

/* Type badge — click to flip image <-> video (blue <-> red) */
.gen-node-kind {
  position: absolute;
  top: 7px;
  left: 7px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border-radius: 8px;
  cursor: pointer;
  color: hsl(var(--h) 100% 82%);
  background: rgba(6, 10, 20, 0.72);
  border: 1px solid hsl(var(--h) 100% 65% / 0.5);
  backdrop-filter: blur(6px);
  transition: transform 0.18s ease, box-shadow 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.gen-node-kind:hover { transform: scale(1.1); box-shadow: 0 0 14px hsl(var(--h) 100% 65% / 0.5); }
.gen-node-kind svg { display: block; }

.gen-node-label {
  position: absolute;
  left: 7px;
  bottom: 7px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  color: hsl(var(--h) 100% 85%);
  background: rgba(6, 10, 20, 0.72);
  border: 1px solid hsl(var(--h) 100% 65% / 0.35);
  pointer-events: none;
}

/* + handle: click, or drag out and release to drop a connected node */
.gen-node-plus {
  position: absolute;
  left: 50%;
  bottom: -13px;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 0;
  font: inherit;
  font-size: 1rem;
  line-height: 1;
  border-radius: 50%;
  cursor: crosshair;
  color: #04101f;
  background: hsl(var(--h) 100% 70%);
  border: 1px solid hsl(var(--h) 100% 80% / 0.8);
  box-shadow: 0 0 14px hsl(var(--h) 100% 65% / 0.55);
  transition: transform 0.18s ease, box-shadow 0.2s ease;
}
.gen-node-plus:hover { transform: translateX(-50%) scale(1.16); box-shadow: 0 0 22px hsl(var(--h) 100% 65% / 0.8); }
.gen-canvas.full .gen-node-plus { opacity: 0.3; cursor: default; box-shadow: none; }
.gen-canvas.full .gen-node-plus:hover { transform: translateX(-50%); box-shadow: none; }
.gen-node.hint .gen-node-plus { animation: gen-plus-pulse 2.2s ease-in-out infinite; }
@keyframes gen-plus-pulse {
  0%, 100% { box-shadow: 0 0 0 0 hsl(var(--h) 100% 65% / 0.5); }
  60% { box-shadow: 0 0 0 10px hsl(var(--h) 100% 65% / 0); }
}

.gen-reset {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 8px;
  cursor: pointer;
  color: var(--text-dim);
  background: rgba(6, 10, 20, 0.7);
  border: 1px solid var(--border);
  transition: color 0.2s ease, border-color 0.2s ease;
  z-index: 5;
}
.gen-reset:hover { color: var(--text); border-color: rgba(124, 196, 255, 0.45); }
.gen-reset[hidden] { display: none; }

@media (max-width: 620px) {
  .gen-canvas { --node: 98px; height: 300px; }
}
@media (prefers-reduced-motion: reduce) {
  .gen-node, .gen-node.loading .gen-node-shimmer::after, .gen-node.hint .gen-node-plus { animation: none; }
}

/* ---------- Showcase 2: Premiere Pro MCP ---------- */
.pp-cmdline {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 18px 18px 14px;
  padding: 12px 16px;
  background: rgba(6, 10, 20, 0.7);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.85rem;
  min-height: 44px;
}
.pp-prompt { color: var(--blue-light); text-shadow: 0 0 10px var(--glow); }
.pp-stage { padding: 0 18px; }
.pp-captions {
  display: flex;
  gap: 10px;
  justify-content: center;
  min-height: 34px;
  margin-bottom: 10px;
}
.pp-caption {
  align-self: flex-start;
  font-size: 0.75rem;
  padding: 5px 12px;
  border-radius: 8px;
  background: rgba(6, 10, 20, 0.85);
  border: 1px solid rgba(124, 196, 255, 0.35);
  color: var(--text);
  opacity: 0;
  transform: translateY(8px) scale(0.9);
}
.playing .pp-caption { animation: pp-caption-pop 0.45s ease forwards; animation-delay: var(--d); }
@keyframes pp-caption-pop {
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.pp-timeline {
  position: relative;
  padding: 14px 0 10px;
  border-top: 1px solid var(--border);
}
.pp-playhead {
  position: absolute;
  top: -2px;
  bottom: 0;
  left: 0;
  width: 2px;
  background: var(--blue-light);
  box-shadow: 0 0 12px var(--glow);
  z-index: 2;
  opacity: 0;
}
.playing .pp-playhead { animation: pp-sweep 6s linear forwards; }
@keyframes pp-sweep {
  0% { left: 0; opacity: 1; }
  96% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}
.pp-track {
  position: relative;
  height: 26px;
  margin-bottom: 6px;
  border-radius: 6px;
  background: rgba(6, 10, 20, 0.5);
}
.pp-track-audio { height: 18px; }
.pp-clip {
  position: absolute;
  top: 3px;
  bottom: 3px;
  border-radius: 5px;
  opacity: 0.85;
}
.pp-clip.c-blue { background: linear-gradient(180deg, #3b82f6, #1d4ed8); }
.pp-clip.c-cyan { background: linear-gradient(180deg, #67d7ff, #0e7490); }
.pp-clip.c-purple { background: linear-gradient(180deg, #a78bfa, #6d28d9); }
.pp-clip.c-audio {
  background: repeating-linear-gradient(90deg, rgba(124, 196, 255, 0.5) 0 2px, transparent 2px 5px);
}
.pp-marker {
  position: absolute;
  top: -6px;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  border-radius: 50%;
  background: var(--blue-light);
  box-shadow: 0 0 12px var(--glow), 0 0 24px var(--glow);
  opacity: 0;
  transform: scale(0.4);
  z-index: 3;
}
.playing .pp-marker { animation: pp-marker-pop 0.4s ease forwards; animation-delay: var(--d); }
@keyframes pp-marker-pop {
  to { opacity: 1; transform: scale(1); }
}
.pp-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px 18px;
}
.pp-replay {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  color: var(--blue-light);
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(124, 196, 255, 0.35);
  transition: box-shadow 0.25s ease, border-color 0.2s ease;
}
.pp-replay:hover {
  border-color: var(--blue-light);
  box-shadow: 0 0 18px rgba(110, 180, 255, 0.35);
}
.pp-status { font-size: 0.8rem; color: var(--text-dim); }

/* ---------- Showcase 3: Evolute ---------- */
.evolute {
  --ev-accent: hsl(var(--ev-hue) 100% 68%);
}

/* One window: controls on the left, live preview on the right */
.ev-body {
  display: grid;
  grid-template-columns: 210px 1fr;
  align-items: stretch;
}
.ev-controls {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border);
  background: rgba(6, 10, 20, 0.35);
}
.ev-preview {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

@media (max-width: 640px) {
  .ev-body { grid-template-columns: 1fr; }
  .ev-controls {
    order: 2;
    border-right: none;
    border-top: 1px solid var(--border);
  }
  .ev-preview { order: 1; }
}

/* Live composition */
.ev-stage {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 60% at 50% 50%, hsl(var(--ev-hue) 90% 55% / 0.1), transparent 70%),
    rgba(6, 10, 20, 0.5);
}
.ev-scaler {
  position: relative;
  transform: scale(var(--ev-scale));
  transition: transform 0.15s ease-out;
  text-align: center;
}
.ev-headline {
  font-size: clamp(1.4rem, 2.8vw, 2.1rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.15;
  color: var(--ev-accent);
  text-shadow:
    0 0 calc(var(--ev-glow) * 1px) hsl(var(--ev-hue) 100% 65% / 0.8),
    0 0 calc(var(--ev-glow) * 2.5px) hsl(var(--ev-hue) 100% 60% / 0.5);
  animation: ev-pulse 3.2s ease-in-out infinite;
}
@keyframes ev-pulse {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.ev-orbit {
  position: absolute;
  inset: -34px;
  animation: ev-orbit-spin 6s linear infinite;
  pointer-events: none;
}
@keyframes ev-orbit-spin { to { transform: rotate(360deg); } }
.ev-dot {
  position: absolute;
  top: 0;
  left: 50%;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  border-radius: 50%;
  background: var(--ev-accent);
  box-shadow:
    0 0 calc(var(--ev-glow) * 0.6px) var(--ev-accent),
    0 0 calc(var(--ev-glow) * 1.4px) hsl(var(--ev-hue) 100% 60% / 0.6);
}
.ev-rings { position: absolute; inset: 0; pointer-events: none; }
.ev-rings span {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid hsl(var(--ev-hue) 100% 65% / 0.18);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: ev-ring 5s ease-in-out infinite;
}
.ev-rings span:nth-child(1) { width: 165px; height: 165px; }
.ev-rings span:nth-child(2) { width: 240px; height: 240px; animation-delay: 0.8s; }
.ev-rings span:nth-child(3) { width: 315px; height: 315px; animation-delay: 1.6s; }
@keyframes ev-ring {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}
.ev-scrubber {
  position: relative;
  height: 6px;
  margin: 0 18px 18px;
  border-radius: 3px;
  background: rgba(6, 10, 20, 0.8);
  border: 1px solid var(--border);
}
.ev-scrub-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: 3px;
  background: linear-gradient(90deg, hsl(var(--ev-hue) 90% 55%), var(--ev-accent));
  animation: ev-scrub-fill 5s linear infinite;
}
.ev-scrub-head {
  position: absolute;
  top: 50%;
  left: 0;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: var(--ev-accent);
  box-shadow: 0 0 12px var(--ev-accent);
  animation: ev-scrub-head 5s linear infinite;
}
@keyframes ev-scrub-fill {
  from { width: 0; }
  to { width: 100%; }
}
@keyframes ev-scrub-head {
  from { left: 0; }
  to { left: 100%; }
}

/* Control surface */
.ev-sliders { padding: 18px 16px; }
.ev-slider {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 0.8rem;
  color: var(--text-dim);
}
.ev-slider:last-child { margin-bottom: 0; }
.ev-slider input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(6, 10, 20, 0.8);
  border: 1px solid var(--border);
  outline: none;
  cursor: pointer;
}
.ev-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  box-shadow: 0 0 14px var(--glow);
  transition: transform 0.15s ease;
}
.ev-slider input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.2); }
.ev-slider input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  box-shadow: 0 0 14px var(--glow);
}
/* ---------- Showcase 4: 3D Director ---------- */
.d3-viewport {
  position: relative;
  height: 340px;
  overflow: hidden;
  cursor: grab;
  user-select: none;
  touch-action: none;
  background:
    radial-gradient(ellipse 70% 55% at 50% 20%, rgba(59, 130, 246, 0.12), transparent 70%),
    rgba(6, 10, 20, 0.6);
  border-bottom: 1px solid var(--border);
}
/* scene is drawn by a 2D canvas projector in app.js (target browser flattens CSS preserve-3d) */
.d3-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.d3-statusbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px 14px;
}
.d3-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue-light);
  box-shadow: 0 0 10px var(--glow);
  animation: d3-status-pulse 2s ease-in-out infinite;
}
@keyframes d3-status-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
.d3-status {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-family: "SF Mono", Menlo, Consolas, monospace;
}

/* ---------- Checklist ---------- */
.checklist {
  list-style: none;
  max-width: 680px;
  margin: 0 auto;
}
.checklist li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  margin-bottom: 12px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.2s ease, box-shadow 0.25s ease;
}
.checklist li:hover {
  border-color: rgba(124, 196, 255, 0.4);
  box-shadow: 0 6px 24px rgba(59, 130, 246, 0.14);
}
.li-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--blue-light);
  filter: drop-shadow(0 0 6px rgba(110, 180, 255, 0.35));
  transition: transform 0.25s ease, filter 0.25s ease;
}
.li-icon * { stroke-dasharray: 100; stroke-dashoffset: 0; }
.checklist li:hover .li-icon {
  transform: scale(1.18) rotate(-6deg);
  filter: drop-shadow(0 0 14px rgba(110, 180, 255, 0.85));
}
.checklist li:hover .li-icon * { animation: icon-draw 0.7s ease forwards; }
@keyframes icon-draw {
  from { stroke-dashoffset: 100; }
  to { stroke-dashoffset: 0; }
}

/* ---------- Guarantee ---------- */
/* Sits under the CTA, so it only needs to clear the button — not a full section. */
.guarantee { padding: 8px 0 80px; }
.guarantee-inner { text-align: center; }
.guarantee-quote {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 700;
  color: var(--blue-light);
  /* The glow belongs to the text itself. Deliberately NOT a section-wide
     radial wash — an `ellipse N%` on a full-bleed section stretches into a
     horizontal band on wide viewports. */
  text-shadow: 0 0 24px var(--glow);
  margin: 24px 0 8px;
}
.guarantee-who { color: var(--text-dim); margin-bottom: 32px; }

/* ---------- Offer ---------- */
.offer {
  /* CTA first, guarantee quote under it: generous space above to separate from
     the bonuses list, tight below so the refund promise reads as attached. */
  padding: 40px 0 8px;
  /* No section-wide radial here. It used to be `ellipse 60% 60%`, which is 60%
     of the SECTION width — on a wide viewport that resolves to a ~1200px
     horizontal smear rather than a glow. The button's own box-shadow is the
     glow; keep it local to the element. */
}
.offer-inner { max-width: 640px; margin: 0 auto; text-align: center; }
.offer-locked { margin-top: 0; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .bullets li { opacity: 1; transform: none; transition: none; }
  .btn, .vsl-unmute { transition: none; }
  .btn-primary::after { animation: none; opacity: 0; }
  .vsl-cta-finished .btn { animation: none; }
  .d3-path, .d3-status-dot { animation: none; }
}

/* ==== W3 pp badges + canvas flip ==== */
/* Floating agent badges around the Premiere Pro MCP window */
.pp-agent-stage { position: relative; }
.pp-agent-badge {
  position: absolute;
  z-index: 3;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(16, 26, 48, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  pointer-events: none;
}
.pp-agent-badge {
  /* Brand marks live here, not in index.html: the official Claude coral and the
     official OpenAI path data both contain the digits '77', which would trip the
     price-leak check that scans index.html above #offer. */
  --pp-claude-coral: #D97757;
  --pp-openai-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M22.2819 9.8211a5.9847 5.9847 0 0 0-.5157-4.9108 6.0462 6.0462 0 0 0-6.5098-2.9A6.0651 6.0651 0 0 0 4.9807 4.1818a5.9847 5.9847 0 0 0-3.9977 2.9 6.0462 6.0462 0 0 0 .7427 7.0966 5.98 5.98 0 0 0 .511 4.9107 6.051 6.051 0 0 0 6.5146 2.9001A5.9847 5.9847 0 0 0 13.2599 24a6.0557 6.0557 0 0 0 5.7718-4.2058 5.9894 5.9894 0 0 0 3.9977-2.9001 6.0557 6.0557 0 0 0-.7475-7.0729zm-9.022 12.6081a4.4755 4.4755 0 0 1-2.8764-1.0408l.1419-.0804 4.7783-2.7582a.7948.7948 0 0 0 .3927-.6813v-6.7369l2.02 1.1686a.071.071 0 0 1 .038.052v5.5826a4.504 4.504 0 0 1-4.4945 4.4944zm-9.6607-4.1254a4.4708 4.4708 0 0 1-.5346-3.0137l.142.0852 4.783 2.7582a.7712.7712 0 0 0 .7806 0l5.8428-3.3685v2.3324a.0804.0804 0 0 1-.0332.0615L9.74 19.9502a4.4992 4.4992 0 0 1-6.1408-1.6464zM2.3408 7.8956a4.485 4.485 0 0 1 2.3655-1.9728V11.6a.7664.7664 0 0 0 .3879.6765l5.8144 3.3543-2.0201 1.1685a.0757.0757 0 0 1-.071 0l-4.8303-2.7865A4.504 4.504 0 0 1 2.3408 7.872zm16.5963 3.8558L13.1038 8.364 15.1192 7.2a.0757.0757 0 0 1 .071 0l4.8303 2.7913a4.4944 4.4944 0 0 1-.6765 8.1042v-5.6772a.79.79 0 0 0-.407-.667zm2.0107-3.0231l-.142-.0852-4.7735-2.7818a.7759.7759 0 0 0-.7854 0L9.409 9.2297V6.8974a.0662.0662 0 0 1 .0284-.0615l4.8303-2.7866a4.4992 4.4992 0 0 1 6.6802 4.66zM8.3065 12.863l-2.02-1.1638a.0804.0804 0 0 1-.038-.0567V6.0742a4.4992 4.4992 0 0 1 7.3757-3.4537l-.142.0805L8.704 5.459a.7948.7948 0 0 0-.3927.6813zm1.0976-2.3654l2.602-1.4998 2.6069 1.4998v2.9994l-2.5974 1.4997-2.6067-1.4997Z'/%3E%3C/svg%3E");
}
.pp-badge-claude {
  top: -18px;
  right: -16px;
  color: var(--pp-claude-coral);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45), 0 0 26px rgba(217, 119, 87, 0.35);
  animation: pp-float-a 6s ease-in-out infinite;
}
.pp-badge-openai {
  bottom: -18px;
  left: -16px;
  color: #fff;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45), 0 0 26px rgba(255, 255, 255, 0.22);
  animation: pp-float-b 7.5s ease-in-out infinite;
}
/* Official OpenAI mark, painted as a mask so its path data stays out of index.html. */
.pp-badge-openai .pp-badge-mark {
  display: block;
  width: 26px;
  height: 26px;
  background-color: currentColor;
  -webkit-mask: var(--pp-openai-mark) no-repeat center / contain;
  mask: var(--pp-openai-mark) no-repeat center / contain;
}
@keyframes pp-float-a {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-8px) rotate(3deg); }
}
@keyframes pp-float-b {
  0%, 100% { transform: translateY(-5px) rotate(2deg); }
  50% { transform: translateY(5px) rotate(-2deg); }
}

/* Dock gracefully on smaller screens */
@media (max-width: 900px) {
  .pp-agent-badge { width: 42px; height: 42px; }
  .pp-agent-badge svg,
  .pp-agent-badge .pp-badge-mark { width: 20px; height: 20px; }
  .pp-badge-claude { top: -12px; right: -8px; }
  .pp-badge-openai { bottom: -12px; left: -8px; }
}
@media (max-width: 520px) {
  .pp-agent-badge { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .pp-agent-badge { animation: none; }
}

/* ==== W2 evolute effects ==== */
/* Effect toggle pills (styled like .model-chip) */
.ev-effects {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 16px;
  border-top: 1px solid var(--border);
}
.ev-effect {
  font: inherit;
  font-size: 0.75rem;
  text-align: center;
  padding: 7px 12px;
  border-radius: 999px;
  cursor: pointer;
  color: var(--text-dim);
  background: transparent;
  border: 1px solid var(--border);
  transition: color 0.2s ease, border-color 0.2s ease, box-shadow 0.25s ease, background 0.2s ease;
}
.ev-effect:hover { color: var(--text); border-color: rgba(124, 196, 255, 0.4); }
.ev-effect.active {
  color: hsl(var(--ev-hue) 100% 78%);
  border-color: hsl(var(--ev-hue) 100% 65% / 0.6);
  background: hsl(var(--ev-hue) 90% 60% / 0.12);
  box-shadow: 0 0 16px hsl(var(--ev-hue) 100% 65% / 0.35);
}

/* CRT: scanlines + vignette + faint flicker on the stage */
.ev-fx-crt .ev-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.04) 0 1px,
    rgba(0, 0, 0, 0.16) 1px 3px
  );
}
.ev-fx-crt .ev-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background: radial-gradient(ellipse 75% 75% at 50% 50%, transparent 55%, rgba(0, 0, 0, 0.45) 100%);
}
.ev-fx-crt .ev-stage { animation: ev-crt-flicker 4s steps(1) infinite; }
@keyframes ev-crt-flicker {
  0%, 100% { opacity: 1; }
  7% { opacity: 0.92; }
  8% { opacity: 1; }
  43% { opacity: 0.95; }
  44% { opacity: 1; }
  81% { opacity: 0.9; }
  82% { opacity: 1; }
}

/* Glitch: RGB-split headline + occasional slice jumps */
.ev-fx-glitch .ev-headline {
  text-shadow:
    -2px 0 rgba(255, 45, 120, 0.75),
    2px 0 rgba(0, 220, 255, 0.75),
    0 0 calc(var(--ev-glow) * 1px) hsl(var(--ev-hue) 100% 65% / 0.8),
    0 0 calc(var(--ev-glow) * 2.5px) hsl(var(--ev-hue) 100% 60% / 0.5);
  animation: ev-glitch-jump 2.8s steps(1) infinite;
}
@keyframes ev-glitch-jump {
  0%, 100% { transform: translate(0, 0); clip-path: none; }
  10% { transform: translate(-4px, 1px); clip-path: inset(12% 0 62% 0); }
  11% { transform: translate(0, 0); clip-path: none; }
  34% { transform: translate(5px, -2px); clip-path: inset(58% 0 8% 0); }
  35% { transform: translate(0, 0); clip-path: none; }
  67% { transform: translate(-3px, 2px) skewX(6deg); clip-path: inset(30% 0 34% 0); }
  68% { transform: translate(0, 0); clip-path: none; }
}

/* Echo: ghosted trails behind headline and orbiting dot */
.ev-fx-echo .ev-headline {
  text-shadow:
    0 0 calc(var(--ev-glow) * 1px) hsl(var(--ev-hue) 100% 65% / 0.8),
    -6px 4px 0 hsl(var(--ev-hue) 100% 65% / 0.35),
    -12px 8px 0 hsl(var(--ev-hue) 100% 60% / 0.18),
    -18px 12px 0 hsl(var(--ev-hue) 100% 55% / 0.08);
}
.ev-fx-echo .ev-dot {
  box-shadow:
    0 0 calc(var(--ev-glow) * 0.6px) var(--ev-accent),
    -16px 10px 0 -3px hsl(var(--ev-hue) 100% 65% / 0.45),
    -32px 20px 0 -5px hsl(var(--ev-hue) 100% 60% / 0.22),
    -48px 30px 0 -6px hsl(var(--ev-hue) 100% 55% / 0.1);
}
.ev-fx-echo .ev-rings span { animation: ev-ring 5s ease-in-out infinite, ev-echo-breathe 2.6s ease-in-out infinite; }
@keyframes ev-echo-breathe {
  0%, 100% { filter: none; }
  50% { filter: drop-shadow(0 0 10px hsl(var(--ev-hue) 100% 65% / 0.5)); }
}

/* Glitch + Echo combined: keep the RGB split on top of the ghost trails */
.ev-fx-glitch.ev-fx-echo .ev-headline {
  text-shadow:
    -2px 0 rgba(255, 45, 120, 0.75),
    2px 0 rgba(0, 220, 255, 0.75),
    -6px 4px 0 hsl(var(--ev-hue) 100% 65% / 0.35),
    -12px 8px 0 hsl(var(--ev-hue) 100% 60% / 0.18),
    -18px 12px 0 hsl(var(--ev-hue) 100% 55% / 0.08);
}

@media (prefers-reduced-motion: reduce) {
  .ev-fx-crt .ev-stage { animation: none; }
  .ev-fx-glitch .ev-headline { animation: none; }
  .ev-fx-echo .ev-rings span { animation: ev-ring 5s ease-in-out infinite; }
}

/* ==== W5 lists ==== */
/* Bonuses: per-item gift accent via --bonus (icon color, glow, row accent) */
.checklist-gift li {
  box-shadow: inset 3px 0 0 color-mix(in srgb, var(--bonus) 60%, transparent);
}
.checklist-gift li:hover {
  border-color: color-mix(in srgb, var(--bonus) 45%, transparent);
  box-shadow:
    inset 3px 0 0 var(--bonus),
    0 6px 24px color-mix(in srgb, var(--bonus) 20%, transparent);
}
.checklist-gift li .li-icon {
  color: var(--bonus);
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--bonus) 45%, transparent));
}
.checklist-gift li:hover .li-icon {
  filter: drop-shadow(0 0 14px color-mix(in srgb, var(--bonus) 90%, transparent));
}

/* ==== W4 3d board ==== */
/* Grabbing cursor while orbiting */
.d3-viewport.d3-grabbing { cursor: grabbing; }

/* AI render button in the statusbar */
.d3-render-btn {
  margin-left: auto;
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.75rem;
  color: var(--blue-light);
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(124, 196, 255, 0.35);
  border-radius: 999px;
  padding: 5px 12px;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}
.d3-render-btn:hover {
  background: rgba(59, 130, 246, 0.22);
  box-shadow: 0 0 12px var(--glow);
}

/* AI render mode: warmer glow + chrome (cube/floor colors crossfade on the canvas) */
.d3-window.d3-ai .d3-status-dot {
  background: #ffb14d;
  box-shadow: 0 0 10px rgba(255, 177, 77, 0.6);
}
.d3-window.d3-ai .d3-render-btn {
  color: #fff;
  background: rgba(255, 107, 107, 0.18);
  border-color: rgba(255, 170, 120, 0.6);
  box-shadow: 0 0 12px rgba(255, 140, 100, 0.35);
}
/* warm overlay fading in over the viewport */
.d3-viewport::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 30%, rgba(255, 140, 90, 0.18), transparent 70%);
  transition: opacity 0.6s ease;
}
.d3-window.d3-ai .d3-viewport::before { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .d3-render-btn, .d3-viewport::before { transition: none; }
}

/* ==== W6-D brand mark ==== */
/* The logo asset is a neon play-mark baked onto a solid black square (no alpha).
   `mix-blend-mode: screen` removes the black exactly: screen(0, Cb) === Cb, so
   every black pixel resolves to whatever the page already painted there.
   This only holds while NO ancestor creates a stacking context — an isolated
   group would blend against a transparent backdrop and the black square would
   reappear. Hence .hero-mark is a sibling of .hero-inner (which is .reveal, and
   .reveal animates `transform`), .hero-mark itself is position:relative with no
   z-index, and the spin + float both live on the image element itself. */

/* the mark carries its own headroom, so the hero needs less */
.hero { padding-top: 48px; }

.hero-mark {
  position: relative; /* MUST stay z-index:auto — a z-index here kills the blend */
  display: flex;
  justify-content: center;
  margin-bottom: -12px; /* absorb the asset's transparent-reading bottom margin */
  pointer-events: none;
}

/* soft neon bed, painted under the blended mark */
.hero-mark::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 300px;
  height: 300px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(96, 132, 255, 0.20),
    rgba(64, 208, 214, 0.09) 45%,
    transparent 70%
  );
  filter: blur(8px);
}

.hero-mark-img {
  /* positioned so it paints above .hero-mark::before; z-index stays auto */
  position: relative;
  display: block;
  /* the asset frames the play mark at ~48% of its own width, so the element is
     deliberately larger than the mark reads on screen */
  width: clamp(210px, 26vw, 280px);
  height: auto;
  mix-blend-mode: screen;
  /* belt-and-braces: fade the outer square corners so no residual edge can
     ever read as a box. The play mark only reaches ~72% of the half-width. */
  -webkit-mask-image: radial-gradient(closest-side, #000 78%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 78%, transparent 100%);
  /* perspective is applied ON the element (the embedding browser flattens
     preserve-3d, so a 3D-transformed parent chain would not survive) */
  transform: perspective(800px) rotateX(6deg) rotateY(0deg);
  /* spin uses `transform`, float uses the independent `translate` property, so
     both run on ONE element — a floating wrapper would break the blend */
  animation:
    ee-mark-spin 10s ease-in-out infinite,
    ee-mark-float 6.5s ease-in-out infinite;
}

/* Sway, not a full revolution: the mark is a flat image, so a 360deg spin would
   mirror it for half of every cycle and collapse it to a sliver edge-on. A
   +/-30deg sway keeps it front-facing and legible while still reading as 3D. */
@keyframes ee-mark-spin {
  0%, 100% { transform: perspective(800px) rotateX(6deg) rotateY(-30deg); }
  50%      { transform: perspective(800px) rotateX(6deg) rotateY(30deg); }
}

@keyframes ee-mark-float {
  0%, 100% { translate: 0 -9px; }
  50%      { translate: 0 9px; }
}

@media (max-width: 900px) {
  .hero { padding-top: 40px; }
  .hero-mark-img { width: clamp(165px, 30vw, 215px); }
  .hero-mark::before { width: 235px; height: 235px; }
}

@media (max-width: 520px) {
  .hero { padding-top: 28px; }
  .hero-mark { margin-bottom: -10px; }
  .hero-mark-img { width: 150px; }
  .hero-mark::before { width: 170px; height: 170px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-mark-img {
    animation: none;
    translate: none;
    transform: perspective(800px) rotateX(6deg) rotateY(0deg);
  }
}
