/* ───────────────────────────────────────────────
   AI Operator — Hero styles (webmoz.ai design system)
   ─────────────────────────────────────────────── */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-ui);
  background: var(--wm-color-page);
  color: var(--wm-color-text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection {
  background: rgba(19, 109, 244, 0.32);
  color: #fff;
}

/* ── Page shell / scaling root ── */
#root {
  position: relative;
  z-index: 2;
}

/* ─────────── LiquidEther background (React island) ─────────── */
.morri-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: var(--wm-color-page);
}
.morri-background .liquid-ether-container {
  position: absolute;
  inset: 0;
}

/* fine grain overlay */
.grain {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* vignette */
.vign {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  box-shadow: inset 0 0 360px 80px rgba(0, 0, 0, 0.55);
}

/* ─────────── Nav ─────────── */
.nav {
  position: relative;
  z-index: 6;
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 40px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}
.brand img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(123, 173, 241, 0.45));
}
.brand .wordmark {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 21px;
  letter-spacing: -0.01em;
  color: var(--wm-color-text);
}
.brand .wordmark .dotai {
  color: var(--wm-color-accent-soft);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-links a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--wm-color-text-muted);
  text-decoration: none;
  transition: color var(--wm-duration-fast) var(--wm-ease-out);
}
.nav-links a:hover {
  color: var(--wm-color-text);
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 17px;
  border-radius: var(--wm-radius-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--wm-color-border);
  font-size: 13px;
  font-weight: 600;
  color: var(--wm-color-text);
  cursor: pointer;
  transition: all var(--wm-duration-fast) var(--wm-ease-out);
  text-decoration: none;
}
.nav-cta:hover {
  background: rgba(19, 109, 244, 0.16);
  border-color: rgba(19, 109, 244, 0.5);
  box-shadow: var(--wm-shadow-glow-accent);
}

/* ─────────── Hero layout ─────────── */
.hero {
  position: relative;
  z-index: 5;
  max-width: 1360px;
  margin: 0 auto;
  padding: 20px 40px 24px;
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 24px;
  align-items: start;
  box-sizing: border-box;
  height: calc(100vh - 86px);
  height: calc(100dvh - 86px);
  max-height: calc(100vh - 86px);
  max-height: calc(100dvh - 86px);
  overflow-x: hidden;
  overflow-y: clip;
}

.hero-copy {
  max-width: 620px;
  padding-top: 4px;
  overflow: visible;
}

/* status pill */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px 7px 13px;
  border-radius: var(--wm-radius-pill);
  background: rgba(20, 28, 52, 0.5);
  border: 1px solid var(--wm-color-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--wm-color-text);
  margin-bottom: 18px;
}
.pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--wm-color-success);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
  animation: ping 2.6s ease-out infinite;
}
@keyframes ping {
  0% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55);
  }
  70%,
  100% {
    box-shadow: 0 0 0 7px rgba(52, 211, 153, 0);
  }
}
.pill .sep {
  width: 1px;
  height: 12px;
  background: var(--wm-color-border);
}
.pill .muted {
  color: var(--wm-color-text-muted);
  font-weight: 500;
}

/* headline */
.headline {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.35rem, 4.2vw, 3.85rem);
  line-height: 1.04;
  letter-spacing: -0.022em;
  color: var(--wm-color-text);
  text-wrap: balance;
}
.headline .accent {
  font-style: italic;
  font-weight: 500;
  background: linear-gradient(96deg, #6fb0ff 0%, #136df4 52%, #9fc6ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.headline .em {
  color: var(--wm-color-text);
}

.subhead {
  margin-top: 16px;
  font-size: clamp(0.94rem, 1.1vw, 1.08rem);
  line-height: 1.55;
  color: var(--wm-color-text-muted);
  max-width: 540px;
  font-weight: 400;
}
.subhead strong {
  color: var(--wm-color-text);
  font-weight: 600;
}

/* CTA row */
.cta-row {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  border: none;
  font-family: var(--font-ui);
  font-weight: 600;
  text-decoration: none;
  transition: all var(--wm-duration-fast) var(--wm-ease-out);
}

/* ── Shiny primary CTA (lab-button) ── */
@property --gradient-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
@property --gradient-angle-offset {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
@property --gradient-percent {
  syntax: "<percentage>";
  initial-value: 8%;
  inherits: false;
}
@property --gradient-shine {
  syntax: "<color>";
  initial-value: #ffffff;
  inherits: false;
}
@property --fill-angle {
  syntax: "<angle>";
  initial-value: 168deg;
  inherits: false;
}

.lab-button.primary {
  --transition: 800ms cubic-bezier(0.25, 1, 0.5, 1);
  --animation: gradient-angle linear infinite;
  --duration: 3s;
  --shadow-size: 2px;
  isolation: isolate;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  outline-offset: 4px;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  line-height: 1.2;
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: 360px;
  color: var(--shiny-cta-fg);
  --fill-angle: 168deg;
  background-image:
    linear-gradient(
      var(--fill-angle),
      var(--shiny-cta-bg-from) 0%,
      var(--shiny-cta-bg-to) 100%
    ),
    conic-gradient(
      from calc(var(--gradient-angle) - var(--gradient-angle-offset)),
      transparent,
      var(--shiny-cta-highlight) var(--gradient-percent),
      var(--gradient-shine) calc(var(--gradient-percent) * 2),
      var(--shiny-cta-highlight) calc(var(--gradient-percent) * 3),
      transparent calc(var(--gradient-percent) * 4)
    );
  background-size:
    200% 200%,
    auto;
  background-position:
    50% 50%,
    center;
  background-repeat: no-repeat;
  background-origin: padding-box, border-box;
  background-clip: padding-box, border-box;
  box-shadow:
    inset 0 0 0 1px var(--shiny-cta-bg-subtle),
    0 12px 36px rgba(19, 109, 244, 0.42);
  transition: var(--transition);
  transition-property:
    --gradient-angle-offset, --gradient-percent, --gradient-shine, transform,
    box-shadow;
  animation: gradient-angle var(--duration) linear infinite;
}
.lab-button.primary::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    105deg,
    transparent 38%,
    rgba(255, 255, 255, 0.22) 50%,
    transparent 62%
  );
  opacity: 0.45;
  pointer-events: none;
}
.lab-button.primary:hover,
.lab-button.primary:focus-visible {
  --gradient-percent: 20%;
  --gradient-angle-offset: 95deg;
  --gradient-shine: var(--shiny-cta-highlight-subtle);
  transform: translateY(-2px);
  box-shadow:
    inset 0 0 0 1px var(--shiny-cta-bg-subtle),
    0 18px 48px rgba(19, 109, 244, 0.55);
  animation:
    gradient-angle var(--duration) linear infinite,
    fill-twist 2.8s ease-in-out infinite;
}
.lab-button.primary .lab-button-inner {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.lab-button.primary .arrow {
  transition: transform var(--wm-duration-med) var(--wm-ease-out);
}
.lab-button.primary:hover .arrow {
  transform: translateX(4px);
}
@keyframes gradient-angle {
  to {
    --gradient-angle: 360deg;
  }
}
@keyframes fill-twist {
  0%,
  100% {
    --fill-angle: 156deg;
    background-position:
      38% 42%,
      center;
  }
  50% {
    --fill-angle: 204deg;
    background-position:
      62% 58%,
      center;
  }
}
@media (prefers-reduced-motion: reduce) {
  .lab-button.primary:hover,
  .lab-button.primary:focus-visible {
    animation: gradient-angle var(--duration) linear infinite;
  }
}

/* Hero-sized primary */
.lab-button.primary.btn-hero {
  padding: 1.05rem 2.1rem;
  font-size: 1.05rem;
  letter-spacing: -0.005em;
}

/* Secondary CTA — glass outline */
.cta-row .btn.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 24px;
  border-radius: 360px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--wm-color-text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(123, 173, 241, 0.38);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 4px 22px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition:
    transform var(--wm-duration-fast) var(--wm-ease-out),
    background var(--wm-duration-fast) var(--wm-ease-out),
    border-color var(--wm-duration-fast) var(--wm-ease-out),
    box-shadow var(--wm-duration-fast) var(--wm-ease-out),
    color var(--wm-duration-fast) var(--wm-ease-out);
}
.cta-row .btn.btn-ghost:hover,
.cta-row .btn.btn-ghost:focus-visible {
  transform: translateY(-2px);
  background: rgba(19, 109, 244, 0.14);
  border-color: rgba(147, 197, 253, 0.65);
  color: #fff;
  box-shadow:
    0 10px 34px rgba(19, 109, 244, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 24px rgba(19, 109, 244, 0.18);
}
.cta-row .btn.btn-ghost .btn-ghost-inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}
.cta-row .btn.btn-ghost svg {
  flex-shrink: 0;
  display: block;
  width: 1.05em;
  height: 1.05em;
  opacity: 0.85;
  transition: opacity var(--wm-duration-fast) var(--wm-ease-out);
}
.cta-row .btn.btn-ghost:hover svg {
  opacity: 1;
}
.cta-row .btn.btn-hero-secondary {
  padding: 17px 26px;
  font-size: 15.5px;
}

/* integration strip */
.integrations {
  margin-top: 34px;
}
.integrations .lbl {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
  margin-bottom: 10px;
}
.int-row {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.int-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: var(--wm-radius-pill);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(99, 102, 241, 0.18);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--wm-color-text-muted);
  transition: all var(--wm-duration-fast) var(--wm-ease-out);
}
.int-chip:hover {
  color: var(--wm-color-text);
  border-color: rgba(123, 173, 241, 0.4);
  background: rgba(19, 109, 244, 0.08);
}
.int-chip .gd {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

/* ─────────── Hero visual (right) ─────────── */
.visual {
  position: relative;
  height: calc(100dvh - 86px - 44px);
  min-height: 0;
  max-height: calc(100dvh - 86px - 44px);
  overflow: visible;
}
.visual-stage {
  position: absolute;
  inset: 0 8px 0 0;
  container-type: size;
  container-name: visual;
  overflow: visible;
  /* Workflow card stack */
  --hero-card-base-w: 340;
  --hero-card-base-h: 268;
  --hero-stack-scale: clamp(0.68, calc(100cqw / 340px), 1);
  --hero-card-anchor-left: clamp(12px, 5.5cqw, 72px);
  --hero-card-anchor-bottom: clamp(12px, 6cqh, 72px);
  /* Portrait — top-right; overlaps cards in z-space, not full-width reservation */
  --portrait-min-w: 200px;
  --portrait-w: clamp(var(--portrait-min-w), 58cqw, 460px);
  --portrait-inset-top: clamp(8px, 3cqh, 28px);
  --portrait-inset-right: clamp(0px, 1.5cqw, 12px);
  --portrait-reserve-bottom: calc(
    var(--hero-card-anchor-bottom) +
      (var(--hero-card-base-h) * 1px * var(--hero-stack-scale) * 0.52) + 20px
  );
  --portrait-max-w: max(
    var(--portrait-min-w),
    calc(100cqw - var(--hero-card-anchor-left) - 20px)
  );
  --portrait-max-h: max(
    160px,
    calc(100cqh - var(--portrait-inset-top) - var(--portrait-reserve-bottom))
  );
}

/* portrait — top-right (cards stay bottom-left) */
.portrait {
  position: absolute;
  top: var(--portrait-inset-top);
  right: var(--portrait-inset-right);
  bottom: auto;
  left: auto;
  width: min(var(--portrait-w), var(--portrait-max-w));
  max-height: var(--portrait-max-h);
  z-index: 2;
  pointer-events: none;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  -webkit-mask-image:
    linear-gradient(
      to right,
      transparent 0%,
      #000 10%,
      #000 90%,
      transparent 100%
    ),
    linear-gradient(
      to bottom,
      transparent 0%,
      #000 6%,
      #000 82%,
      transparent 100%
    );
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(
      to right,
      transparent 0%,
      #000 10%,
      #000 90%,
      transparent 100%
    ),
    linear-gradient(
      to bottom,
      transparent 0%,
      #000 6%,
      #000 82%,
      transparent 100%
    );
  mask-composite: intersect;
}
.portrait img {
  width: 100%;
  height: auto;
  max-height: var(--portrait-max-h);
  display: block;
  object-fit: contain;
  object-position: right top;
  filter: drop-shadow(0 30px 80px rgba(0, 0, 0, 0.6))
    drop-shadow(0 0 50px rgba(19, 109, 244, 0.18));
}

/* halo behind portrait */
.halo {
  position: absolute;
  right: 4%;
  top: 12%;
  width: 70%;
  height: 70%;
  z-index: 1;
  background: radial-gradient(
    closest-side,
    rgba(19, 109, 244, 0.3),
    transparent 72%
  );
  filter: blur(20px);
  pointer-events: none;
}

#morri-workflow-cards-root {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  overflow: visible;
}

.hero-workflow-scale {
  position: absolute;
  left: var(--hero-card-anchor-left);
  bottom: var(--hero-card-anchor-bottom);
  width: calc(var(--hero-card-base-w) * 1px);
  height: calc(var(--hero-card-base-h) * 1px);
  transform: scale(var(--hero-stack-scale));
  transform-origin: bottom left;
  pointer-events: none;
  overflow: visible;
  z-index: 4;
}

.hero-workflow-scale .card-swap-container.hero-workflow-swap {
  width: 100% !important;
  height: 100% !important;
}

.hero-workflow-scale .card-swap-card.flowcard.border-glow-card {
  width: 100% !important;
  height: 100% !important;
}

/* floating glass workflow card */
.flowcard {
  position: absolute;
  z-index: 4;
  left: 72px;
  bottom: 72px;
  width: 340px;
  background: linear-gradient(
    180deg,
    rgba(24, 32, 58, 0.86),
    rgba(12, 17, 34, 0.9)
  );
  border: 1px solid rgba(123, 173, 241, 0.42);
  border-radius: var(--wm-radius-lg);
  backdrop-filter: blur(26px);
  -webkit-backdrop-filter: blur(26px);
  box-shadow:
    0 28px 64px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(19, 109, 244, 0.12),
    0 0 36px rgba(19, 109, 244, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  padding: 14px 16px;
  animation: cardGlow 4.5s ease-in-out infinite;
}
.flowcard.border-glow-card {
  --border-radius: var(--wm-radius-lg);
  --card-bg: rgb(12, 17, 34);
  --glow-padding: 14px;
  position: absolute;
  z-index: 4;
  left: 72px;
  bottom: 72px;
  width: 340px;
  max-width: calc(100% - 24px);
  display: block;
  box-sizing: border-box;
  overflow: hidden;
  padding: 0;
  border: none;
  background: var(--card-bg);
  animation: cardGlow 4.5s ease-in-out infinite;
}
.flowcard.border-glow-card .border-glow-inner {
  display: block;
  overflow: visible;
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
}
@keyframes cardGlow {
  0%,
  100% {
    box-shadow:
      0 28px 64px rgba(0, 0, 0, 0.55),
      0 0 0 1px rgba(19, 109, 244, 0.12),
      0 0 32px rgba(19, 109, 244, 0.18),
      inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }
  50% {
    box-shadow:
      0 28px 64px rgba(0, 0, 0, 0.55),
      0 0 0 1px rgba(19, 109, 244, 0.22),
      0 0 52px rgba(19, 109, 244, 0.32),
      inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }
}
.flowcard .fc-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.flowcard .fc-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--wm-color-accent);
  box-shadow: 0 0 10px var(--wm-color-accent);
}
.flowcard .fc-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--wm-color-text);
}
.flowcard .fc-tag {
  margin-left: auto;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--wm-color-accent-soft);
  padding: 3px 8px;
  border-radius: var(--wm-radius-pill);
  background: rgba(19, 109, 244, 0.14);
  border: 1px solid rgba(19, 109, 244, 0.34);
}
.flowcard .fc-pipeline {
  font-size: 10px;
  line-height: 1.35;
  color: var(--wm-color-text-muted);
  margin: -2px 0 8px;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-swap-container .card-swap-card.flowcard.border-glow-card {
  left: 50%;
  top: 50%;
  bottom: auto;
  right: auto;
  margin: 0;
  max-width: none;
}

@container visual (max-width: 400px) {
  .flowcard .fc-pipeline {
    font-size: 9px;
    margin-bottom: 6px;
  }
  .flowcard .fc-head {
    margin-bottom: 6px;
  }
  .flowcard .fc-title {
    font-size: 12px;
  }
  .fc-step {
    padding: 6px 0;
    gap: 8px;
  }
  .fc-ic {
    width: 24px;
    height: 24px;
  }
  .fc-name {
    font-size: 11.5px;
  }
  .fc-sub {
    font-size: 10px;
  }
}

@container visual (max-height: 280px) {
  .hero-workflow-scale .flowcard .border-glow-inner {
    padding: 11px 12px;
  }
  .flowcard .fc-step {
    padding: 5px 0;
  }
}

/* looping progress line */
.fc-prog {
  height: 2px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
  margin-bottom: 2px;
}
.fc-prog span {
  display: block;
  height: 100%;
  width: 38%;
  border-radius: 99px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--wm-color-accent-soft),
    var(--wm-color-accent),
    transparent
  );
  animation: fcScan 2.6s linear infinite;
}
@keyframes fcScan {
  0% {
    transform: translateX(-110%);
  }
  100% {
    transform: translateX(380%);
  }
}
.fc-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.fc-step:first-of-type {
  border-top: none;
}
.fc-ic {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(99, 102, 241, 0.22);
  color: var(--wm-color-accent-soft);
}
.fc-ic svg {
  width: 14px;
  height: 14px;
}
.fc-body {
  flex: 1;
  min-width: 0;
}
.fc-name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--wm-color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fc-sub {
  font-size: 10.5px;
  color: var(--wm-color-text-muted);
  margin-top: 1px;
}
.fc-state {
  font-size: 10px;
  font-weight: 600;
  flex-shrink: 0;
}
.fc-state.done {
  color: var(--wm-color-success);
}
.fc-state.run {
  color: var(--wm-color-accent-soft);
}
.fc-state.wait {
  color: rgba(255, 255, 255, 0.3);
}
.fc-status {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
}
.spin {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 2px solid rgba(123, 173, 241, 0.25);
  border-top-color: var(--wm-color-accent-soft);
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* small stat chip floating top-right of visual */
.statchip {
  position: absolute;
  z-index: 4;
  right: 8px;
  top: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 15px;
  border-radius: var(--wm-radius-md);
  background: rgba(16, 22, 42, 0.72);
  border: 1px solid var(--wm-color-border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}
.statchip.border-glow-card {
  --border-radius: var(--wm-radius-md);
  --card-bg: rgb(16, 22, 42);
  --glow-padding: 12px;
  position: absolute;
  z-index: 4;
  right: 8px;
  top: 14px;
  width: auto;
  max-width: min(240px, calc(100% - 16px));
  display: block;
  box-sizing: border-box;
  overflow: hidden;
  padding: 0;
  border: none;
  background: var(--card-bg);
}
.statchip.border-glow-card .border-glow-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  width: auto;
  overflow: visible;
  padding: 11px 15px;
}
.statchip .sc-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  line-height: 1;
  color: var(--wm-color-text);
}
.statchip .sc-lbl {
  font-size: 10px;
  color: var(--wm-color-text-muted);
  line-height: 1.3;
  max-width: 96px;
}

/* scroll cue */
.scrollcue {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: color var(--wm-duration-fast);
}
.scrollcue:hover {
  color: var(--wm-color-text);
}
.scrollcue .mouse {
  width: 22px;
  height: 34px;
  border-radius: 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  position: relative;
}
.scrollcue .mouse::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 7px;
  width: 3px;
  height: 6px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.6);
  transform: translateX(-50%);
  animation: wheel 1.8s ease-in-out infinite;
}
@keyframes wheel {
  0% {
    opacity: 0;
    transform: translate(-50%, 0);
  }
  40% {
    opacity: 1;
  }
  80%,
  100% {
    opacity: 0;
    transform: translate(-50%, 10px);
  }
}

/* ─────────── Logo carousel ─────────── */
.logo-carousel-mask {
  overflow-x: hidden;
  overflow-y: visible;
  margin-top: 8px;
  padding: 8px 0 4px;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
}

.logo-carousel-row {
  display: flex;
  overflow-x: hidden;
  overflow-y: visible;
  margin-bottom: 6px;
  padding: 4px 0;
}

.logo-carousel-inner {
  display: flex;
  width: max-content;
  animation: logo-scroll-fwd var(--carousel-duration, 45s) linear infinite;
}

.logo-carousel-row--rev .logo-carousel-inner {
  animation-name: logo-scroll-rev;
}

@keyframes logo-scroll-fwd {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
@keyframes logo-scroll-rev {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0);
  }
}

.logo-carousel-mask:hover .logo-carousel-inner {
  animation-play-state: paused;
}

.logo-carousel-set {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-right: 10px;
}

.logo-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: var(--wm-radius-pill);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  white-space: nowrap;
  font-size: 11px;
  font-weight: 500;
  color: var(--wm-color-text-muted);
  cursor: default;
  transition:
    background var(--wm-duration-fast),
    border-color var(--wm-duration-fast),
    color var(--wm-duration-fast),
    transform var(--wm-duration-fast);
}

.logo-chip:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(123, 173, 241, 0.45);
  color: var(--wm-color-text);
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(123, 173, 241, 0.2);
  position: relative;
  z-index: 1;
}

.logo-chip img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 0 3px transparent);
  transition: filter var(--wm-duration-fast);
}

.logo-chip:hover img {
  filter: drop-shadow(0 0 6px var(--logo-color, rgba(255, 255, 255, 0.3)));
}

[data-wm-theme="light"] .logo-chip {
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(37, 99, 235, 0.14);
}
[data-wm-theme="light"] .logo-chip:hover {
  background: rgba(15, 23, 42, 0.08);
  border-color: rgba(37, 99, 235, 0.3);
}

/* ─────────── How it works (lighter band) ─────────── */
.how {
  position: relative;
  z-index: 5;
  background:
    radial-gradient(
      900px 380px at 50% 0%,
      rgba(19, 109, 244, 0.1),
      transparent 70%
    ),
    linear-gradient(
      180deg,
      rgba(123, 173, 241, 0.05),
      rgba(123, 173, 241, 0.085) 50%,
      rgba(123, 173, 241, 0.04)
    );
  border-top: 1px solid rgba(123, 173, 241, 0.16);
  border-bottom: 1px solid rgba(123, 173, 241, 0.16);
  padding: 92px 40px;
  margin-top: 10px;
  backdrop-filter: blur(2px);
}
.how-inner {
  max-width: 1180px;
  margin: 0 auto;
}
.how-head {
  text-align: center;
  margin-bottom: 58px;
}
.how-head .lbl {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--wm-color-accent-soft);
  margin-bottom: 16px;
}
.how-head h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--wm-color-text);
  text-wrap: balance;
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  position: relative;
  align-items: start;
}
.how-line {
  position: absolute;
  top: 38px;
  left: 18%;
  right: 18%;
  height: 2px;
  z-index: 0;
  background: repeating-linear-gradient(
    90deg,
    rgba(123, 173, 241, 0.5) 0 7px,
    transparent 7px 15px
  );
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 12%,
    #000 88%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 12%,
    #000 88%,
    transparent
  );
}
.how-step {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 26px;
}
.how-node {
  width: 78px;
  height: 78px;
  margin: 0 auto 22px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: var(--wm-color-accent-soft);
  background: linear-gradient(
    180deg,
    rgba(24, 32, 58, 0.95),
    rgba(12, 17, 34, 0.95)
  );
  border: 1px solid rgba(123, 173, 241, 0.4);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.5),
    0 0 32px rgba(19, 109, 244, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.how-num {
  position: absolute;
  top: -10px;
  right: -10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--wm-color-accent);
  box-shadow: 0 0 14px rgba(19, 109, 244, 0.7);
  border: 2px solid var(--wm-color-page);
}
.how-step h3 {
  font-family: var(--font-ui);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--wm-color-text);
  margin-bottom: 10px;
  text-wrap: balance;
}
.how-step p {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--wm-color-text-muted);
  max-width: 270px;
  margin: 0 auto;
}

@media (max-width: 820px) {
  .how-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    max-width: 380px;
    margin: 0 auto;
  }
  .how-line {
    display: none;
  }
}

/* ─────────── Task section (lead-in) ─────────── */
.task-sec {
  position: relative;
  z-index: 5;
  max-width: 1080px;
  margin: 0 auto;
  padding: 30px 40px 120px;
}
.task-divider {
  position: relative;
  height: 1px;
  margin: 0 auto 70px;
  max-width: 1280px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(123, 173, 241, 0.4),
    transparent
  );
}
.task-divider::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  transform: translateX(-50%);
  background: var(--wm-color-accent);
  box-shadow: 0 0 16px var(--wm-color-accent);
}

.task-head {
  text-align: center;
  margin-bottom: 34px;
}
.task-head .lbl {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wm-color-accent-soft);
  margin-bottom: 16px;
}
.task-head h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.8rem, 3.2vw, 2.7rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--wm-color-text);
  text-wrap: balance;
}
.task-head p {
  margin-top: 14px;
  font-size: 1.02rem;
  color: var(--wm-color-text-muted);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* composer */
.composer-wrap {
  position: relative;
  max-width: 740px;
  margin: 0 auto;
}
.composer-wrap::before {
  content: "";
  position: absolute;
  inset: -60px -40px -20px;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(
    60% 55% at 50% 42%,
    rgba(19, 109, 244, 0.3),
    rgba(19, 109, 244, 0.08) 55%,
    transparent 75%
  );
  filter: blur(34px);
  animation: breathe 7s ease-in-out infinite alternate;
}
.composer-xl {
  width: 100%;
  background: linear-gradient(
    180deg,
    rgba(22, 30, 54, 0.82),
    rgba(12, 16, 32, 0.86)
  );
  border: 1px solid var(--wm-color-border);
  border-radius: var(--wm-radius-xl);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  padding: 8px;
  transition:
    border-color var(--wm-duration-med),
    box-shadow var(--wm-duration-med);
}
.composer-xl.focus {
  border-color: rgba(19, 109, 244, 0.6);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.5),
    0 0 0 4px rgba(19, 109, 244, 0.16);
}
.composer-inner {
  padding: 18px 20px 6px;
}
.composer-xl textarea {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  resize: none;
  font-family: var(--font-ui);
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--wm-color-text);
  min-height: 60px;
}
.composer-xl textarea::placeholder {
  color: rgba(255, 255, 255, 0.34);
}
.composer-hints {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  padding: 4px 12px 12px;
}
.hint {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--wm-color-text-muted);
  padding: 7px 13px;
  border-radius: var(--wm-radius-pill);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(99, 102, 241, 0.16);
  transition: all var(--wm-duration-fast) var(--wm-ease-out);
}
.hint:hover {
  color: var(--wm-color-text);
  border-color: rgba(123, 173, 241, 0.4);
  background: rgba(19, 109, 244, 0.08);
}

/* dominant generate button — below the input */
.gen-btn-xl {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 740px;
  margin: 18px auto 0;
  cursor: pointer;
  border: none;
  padding: 18px 28px;
  border-radius: var(--wm-radius-lg);
  font-family: var(--font-ui);
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(180deg, #3b8bff, var(--wm-color-accent));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 16px 44px rgba(19, 109, 244, 0.5),
    0 0 0 1px rgba(123, 173, 241, 0.4);
  transition: all var(--wm-duration-fast) var(--wm-ease-out);
}
.gen-btn-xl:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    0 22px 56px rgba(19, 109, 244, 0.62),
    0 0 0 1px rgba(123, 173, 241, 0.55);
}
.gen-btn-xl:disabled {
  opacity: 0.7;
  cursor: default;
  transform: none;
}

/* generated output */
.gen-out {
  max-width: 740px;
  margin: 22px auto 0;
  overflow: hidden;
}
.gen-grid {
  display: grid;
  gap: 12px;
}
.gen-step {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--wm-radius-md);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(99, 102, 241, 0.18);
  opacity: 0;
  transform: translateY(10px);
  animation: stepIn 0.5s var(--wm-ease-out) forwards;
}
@keyframes stepIn {
  to {
    opacity: 1;
    transform: none;
  }
}
.gen-step .gs-ic {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(19, 109, 244, 0.12);
  border: 1px solid rgba(19, 109, 244, 0.3);
  color: var(--wm-color-accent-soft);
}
.gen-step .gs-ic svg {
  width: 17px;
  height: 17px;
}
.gs-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
  width: 20px;
  flex-shrink: 0;
}
.gs-body {
  flex: 1;
  min-width: 0;
}
.gs-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--wm-color-text);
}
.gs-desc {
  font-size: 12.5px;
  color: var(--wm-color-text-muted);
  margin-top: 2px;
}
.gs-tool {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--wm-color-accent-soft);
  flex-shrink: 0;
  padding: 4px 9px;
  border-radius: var(--wm-radius-pill);
  background: rgba(19, 109, 244, 0.1);
  border: 1px solid rgba(19, 109, 244, 0.25);
}

/* two-path callout (persistent) */
.twopath {
  max-width: 740px;
  margin: 26px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.tp {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  cursor: pointer;
  padding: 22px;
  border-radius: var(--wm-radius-lg);
  border: 1px solid var(--wm-color-border);
  background: rgba(255, 255, 255, 0.03);
  transition: all var(--wm-duration-med) var(--wm-ease-out);
}
.tp:hover {
  transform: translateY(-3px);
  border-color: rgba(123, 173, 241, 0.5);
  background: rgba(19, 109, 244, 0.07);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.42);
}
.tp.primary {
  background: linear-gradient(
    165deg,
    rgba(19, 109, 244, 0.2),
    rgba(19, 109, 244, 0.05)
  );
  border-color: rgba(19, 109, 244, 0.45);
  box-shadow: 0 0 40px rgba(19, 109, 244, 0.18);
}
.tp.primary:hover {
  box-shadow: 0 24px 56px rgba(19, 109, 244, 0.32);
}
.tp-ic {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(19, 109, 244, 0.16);
  border: 1px solid rgba(19, 109, 244, 0.34);
  color: var(--wm-color-accent-soft);
}
.tp-ic svg {
  width: 20px;
  height: 20px;
}
.tp h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--wm-color-text);
  margin-bottom: 7px;
}
.tp p {
  font-size: 13px;
  line-height: 1.55;
  color: var(--wm-color-text-muted);
  flex: 1;
}
.tp-go {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  padding: 11px 18px;
  border-radius: var(--wm-radius-pill);
  align-self: flex-start;
  background: linear-gradient(180deg, #3b8bff, var(--wm-color-accent));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 8px 22px rgba(19, 109, 244, 0.4);
}
.tp-go.ghost {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--wm-color-border);
  color: var(--wm-color-text);
  box-shadow: none;
}
.tp .tp-go svg {
  transition: transform var(--wm-duration-med) var(--wm-ease-out);
}
.tp:hover .tp-go svg {
  transform: translateX(4px);
}
@media (max-width: 640px) {
  .twopath {
    grid-template-columns: 1fr;
  }
}

/* responsive — tight laptop / narrowing two-column */
@media (max-width: 1200px) and (min-width: 981px) {
  .hero {
    grid-template-columns: 1.12fr 0.88fr;
    gap: 18px;
    padding: 16px 32px 20px;
  }
  .subhead {
    display: none;
  }
  .headline {
    font-size: clamp(2rem, 3.6vw, 3.1rem);
  }
  .pill {
    margin-bottom: 14px;
  }
  .cta-row {
    margin-top: 18px;
  }
  .integrations {
    margin-top: 18px;
  }
  .visual {
    height: min(calc(100dvh - 86px - 44px), 560px);
    max-height: 560px;
  }
  .visual-stage {
    --hero-stack-scale: clamp(0.72, calc(100cqw / 340px), 0.9);
    --hero-card-anchor-left: clamp(10px, 4.5cqw, 48px);
    --hero-card-anchor-bottom: clamp(10px, 5cqh, 56px);
    --portrait-min-w: 190px;
    --portrait-w: clamp(var(--portrait-min-w), 56cqw, 400px);
    --portrait-inset-top: clamp(6px, 2.5cqh, 20px);
  }
}

@media (max-width: 1100px) and (min-width: 981px) {
  .hero {
    grid-template-columns: 1.18fr 0.82fr;
    gap: 14px;
  }
  .visual {
    height: min(calc(100dvh - 86px - 44px), 500px);
    max-height: 500px;
  }
  .visual-stage {
    --hero-stack-scale: clamp(0.62, calc(100cqw / 340px), 0.78);
    --hero-card-anchor-left: clamp(8px, 3.5cqw, 28px);
    --hero-card-anchor-bottom: clamp(8px, 4cqh, 40px);
    --portrait-min-w: 200px;
    --portrait-w: clamp(var(--portrait-min-w), 56cqw, 360px);
    --portrait-inset-top: clamp(4px, 2cqh, 14px);
    --portrait-reserve-bottom: calc(
      var(--hero-card-anchor-bottom) +
        (var(--hero-card-base-h) * 1px * var(--hero-stack-scale) * 0.48) + 16px
    );
  }
  .card-swap-container .flowcard .border-glow-inner {
    padding: 12px 14px;
  }
  .flowcard .fc-step {
    padding: 6px 0;
  }
  .statchip {
    padding: 9px 12px;
  }
  .statchip .sc-num {
    font-size: 20px;
  }
}

@media (max-height: 820px) and (min-width: 981px) {
  .hero {
    padding: 14px 40px 18px;
    gap: 18px;
  }
  .pill {
    margin-bottom: 12px;
  }
  .headline {
    font-size: clamp(2rem, 3.6vw, 3.2rem);
  }
  .subhead {
    margin-top: 12px;
    font-size: 0.92rem;
    line-height: 1.5;
  }
  .cta-row {
    margin-top: 16px;
  }
  .integrations {
    margin-top: 20px;
  }
  .hero-social {
    margin-top: 10px;
  }
  .visual-stage {
    --hero-card-anchor-bottom: clamp(10px, 5cqh, 48px);
  }
}

@media (max-width: 980px) {
  .hero {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: auto;
    max-height: none;
    overflow: visible;
    min-height: auto;
    padding: 16px 40px 40px;
    align-items: stretch;
  }
  .hero-copy {
    display: contents;
    max-width: none;
  }
  .pill {
    order: 1;
    margin-bottom: 14px;
  }
  .headline {
    order: 2;
    font-size: clamp(2rem, 6.5vw, 2.75rem);
  }
  .subhead {
    order: 3;
    display: none;
  }
  .cta-row {
    order: 4;
    margin-top: 18px;
  }
  .integrations {
    order: 6;
    margin-top: 16px;
  }
  .hero-social {
    order: 7;
    margin-top: 12px;
  }
  .visual {
    order: 5;
    width: 100%;
    max-width: 100%;
    overflow: visible;
    height: clamp(260px, 52vw, 320px);
    max-height: none;
    min-height: 260px;
    opacity: 1;
    margin-top: 8px;
  }
  .visual-stage {
    position: absolute;
    inset: 0;
    height: 100%;
    --hero-stack-scale: clamp(0.5, calc(54cqw / 340px), 0.82);
    --hero-card-anchor-left: clamp(8px, 2.5cqw, 16px);
    --hero-card-anchor-bottom: clamp(8px, 3cqh, 16px);
    --portrait-min-w: 140px;
    --portrait-w: clamp(var(--portrait-min-w), 50cqw, 220px);
    --portrait-inset-top: clamp(4px, 2cqh, 10px);
    --portrait-reserve-bottom: calc(
      var(--hero-card-anchor-bottom) +
        (var(--hero-card-base-h) * 1px * var(--hero-stack-scale) * 0.5) + 12px
    );
  }
  .portrait {
    right: clamp(4px, 2cqw, 12px);
    left: auto;
    top: var(--portrait-inset-top);
    bottom: auto;
    transform: none;
  }
  .portrait img {
    object-position: right top;
  }
  .halo {
    right: 18%;
    top: 8%;
    width: 55%;
    height: 80%;
  }
  .nav-links {
    display: none;
  }
  .card-swap-container .flowcard .border-glow-inner {
    padding: 12px 14px;
  }
  .flowcard .fc-step {
    padding: 6px 0;
  }
  .statchip {
    right: 12px;
    top: 28px;
    padding: 9px 12px;
  }
  .statchip .sc-num {
    font-size: 20px;
  }
  .scrollcue {
    display: none;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 14px 28px 36px;
    gap: 16px;
  }
  .visual {
    height: clamp(240px, 58vw, 280px);
    min-height: 240px;
  }
  .visual-stage {
    --hero-stack-scale: clamp(0.48, calc(52cqw / 340px), 0.76);
    --hero-card-anchor-left: clamp(6px, 2cqw, 12px);
    --hero-card-anchor-bottom: clamp(6px, 2.5cqh, 12px);
    --portrait-w: clamp(110px, 42cqw, 190px);
  }
}

@media (max-width: 560px) {
  .nav,
  .hero {
    padding-left: 20px;
    padding-right: 20px;
  }
  .hero {
    gap: 14px;
    padding-bottom: 32px;
  }
  .headline {
    font-size: clamp(1.85rem, 8vw, 2.35rem);
  }
  .cta-row {
    flex-direction: column;
    align-items: center;
  }
  .cta-row .btn {
    justify-content: center;
    width: fit-content;
  }
  .visual {
    height: clamp(220px, 62vw, 260px);
    min-height: 220px;
  }
  .visual-stage {
    --portrait-w: clamp(100px, 40cqw, 170px);
    --hero-stack-scale: clamp(0.45, calc(50cqw / 340px), 0.7);
    --hero-card-anchor-left: 8px;
    --hero-card-anchor-bottom: 8px;
  }
  .flowcard .fc-name {
    font-size: 11.5px;
  }
  .flowcard .fc-sub {
    font-size: 10px;
  }
  .statchip {
    right: 4px;
    top: 24px;
    padding: 8px 10px;
  }
  .statchip .sc-lbl {
    max-width: 72px;
    font-size: 9px;
  }
  .task-sec {
    padding-left: 20px;
    padding-right: 20px;
  }
  .statchip.border-glow-card {
    right: 4px;
  }
}

/* ─────────── Theme toggle ─────────── */
.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.theme-toggle {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--wm-radius-pill);
  color: var(--wm-color-text);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--wm-color-border);
  transition: all var(--wm-duration-fast) var(--wm-ease-out);
}
.theme-toggle:hover {
  background: rgba(19, 109, 244, 0.14);
  border-color: rgba(19, 109, 244, 0.5);
  box-shadow: var(--wm-shadow-glow-accent);
}
.theme-toggle svg {
  transition: transform var(--wm-duration-med) var(--wm-ease-out);
}
.theme-toggle:hover svg {
  transform: rotate(18deg);
}

/* ═══════════════════════════════════════════════
   LIGHT THEME OVERRIDES
   ═══════════════════════════════════════════════ */
[data-wm-theme="light"] .morri-background {
  background: var(--wm-color-page);
}
[data-wm-theme="light"] .vign {
  box-shadow: inset 0 0 320px 60px rgba(120, 140, 180, 0.18);
}
[data-wm-theme="light"] .grain {
  mix-blend-mode: multiply;
  opacity: 0.035;
}

[data-wm-theme="light"] .brand img {
  filter: invert(1) brightness(0.35)
    drop-shadow(0 0 8px rgba(19, 109, 244, 0.25));
}
[data-wm-theme="light"] .nav-cta,
[data-wm-theme="light"] .theme-toggle,
[data-wm-theme="light"] .lab-button.primary {
  box-shadow:
    inset 0 0 0 1px var(--shiny-cta-bg-subtle),
    0 12px 32px rgba(37, 99, 235, 0.28);
}
[data-wm-theme="light"] .cta-row .btn.btn-ghost {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(37, 99, 235, 0.28);
  box-shadow:
    0 4px 18px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
[data-wm-theme="light"] .cta-row .btn.btn-ghost:hover,
[data-wm-theme="light"] .tp-go.ghost {
  background: rgba(37, 99, 235, 0.1);
  border-color: rgba(37, 99, 235, 0.45);
  color: var(--wm-color-text);
}
[data-wm-theme="light"] .nav-cta:hover,
[data-wm-theme="light"] .theme-toggle:hover {
  background: rgba(19, 109, 244, 0.1);
}

[data-wm-theme="light"] .pill {
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
}
[data-wm-theme="light"] .headline .accent {
  background: linear-gradient(96deg, #2b82ff 0%, #1d4ed8 55%, #2563eb 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
[data-wm-theme="light"] .integrations .lbl {
  color: rgba(15, 23, 42, 0.5);
}
[data-wm-theme="light"] .int-chip {
  background: rgba(15, 23, 42, 0.03);
  border-color: rgba(37, 99, 235, 0.18);
}

/* portrait — give the figure a soft stage so light areas don't vanish on white */
[data-wm-theme="light"] .portrait img {
  filter: drop-shadow(0 26px 60px rgba(15, 23, 42, 0.28))
    drop-shadow(0 0 40px rgba(19, 109, 244, 0.16));
}
[data-wm-theme="light"] .halo {
  width: 84%;
  height: 80%;
  right: 0;
  top: 8%;
  background: radial-gradient(
    closest-side,
    rgba(37, 99, 235, 0.26),
    rgba(37, 99, 235, 0.06) 60%,
    transparent 75%
  );
  filter: blur(26px);
}

/* glass cards → light glass */
[data-wm-theme="light"] .flowcard {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.94),
    rgba(244, 248, 253, 0.9)
  );
  border-color: rgba(37, 99, 235, 0.3);
  animation-name: cardGlowLight;
}
[data-wm-theme="light"] .flowcard.border-glow-card {
  --card-bg: rgb(248, 250, 253);
  background: var(--card-bg);
  border: none;
}
@keyframes cardGlowLight {
  0%,
  100% {
    box-shadow:
      0 30px 70px rgba(15, 23, 42, 0.16),
      0 0 0 1px rgba(37, 99, 235, 0.1),
      0 0 40px rgba(37, 99, 235, 0.14),
      inset 0 1px 0 rgba(255, 255, 255, 0.7);
  }
  50% {
    box-shadow:
      0 30px 70px rgba(15, 23, 42, 0.18),
      0 0 0 1px rgba(37, 99, 235, 0.2),
      0 0 64px rgba(37, 99, 235, 0.26),
      inset 0 1px 0 rgba(255, 255, 255, 0.7);
  }
}
[data-wm-theme="light"] .fc-prog {
  background: rgba(15, 23, 42, 0.08);
}
[data-wm-theme="light"] .fc-step {
  border-top-color: rgba(15, 23, 42, 0.08);
}
[data-wm-theme="light"] .fc-ic {
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.22);
}
[data-wm-theme="light"] .fc-state.wait {
  color: rgba(15, 23, 42, 0.4);
}

[data-wm-theme="light"] .statchip {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.12);
}
[data-wm-theme="light"] .statchip.border-glow-card {
  --card-bg: rgb(255, 255, 255);
  background: var(--card-bg);
  border: none;
}

/* how-it-works band — lighter elevated white band */
[data-wm-theme="light"] .how {
  background:
    radial-gradient(
      900px 380px at 50% 0%,
      rgba(37, 99, 235, 0.08),
      transparent 70%
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.55));
  border-top-color: rgba(37, 99, 235, 0.14);
  border-bottom-color: rgba(37, 99, 235, 0.14);
}
[data-wm-theme="light"] .how-line {
  background: repeating-linear-gradient(
    90deg,
    rgba(37, 99, 235, 0.45) 0 7px,
    transparent 7px 15px
  );
}
[data-wm-theme="light"] .how-node {
  background: linear-gradient(180deg, #ffffff, #f4f8fd);
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow:
    0 14px 34px rgba(15, 23, 42, 0.1),
    0 0 26px rgba(37, 99, 235, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* composer + builder */
[data-wm-theme="light"] .composer-xl {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.95),
    rgba(246, 250, 254, 0.92)
  );
  box-shadow:
    0 26px 64px rgba(15, 23, 42, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
[data-wm-theme="light"] .composer-xl textarea::placeholder {
  color: rgba(15, 23, 42, 0.4);
}
[data-wm-theme="light"] .composer-wrap::before {
  background: radial-gradient(
    60% 55% at 50% 42%,
    rgba(37, 99, 235, 0.22),
    rgba(37, 99, 235, 0.06) 55%,
    transparent 75%
  );
}
[data-wm-theme="light"] .hint {
  background: rgba(15, 23, 42, 0.035);
  border-color: rgba(37, 99, 235, 0.16);
}
[data-wm-theme="light"] .gen-step {
  background: rgba(15, 23, 42, 0.025);
  border-color: rgba(37, 99, 235, 0.16);
}
[data-wm-theme="light"] .gs-num {
  color: rgba(15, 23, 42, 0.4);
}
[data-wm-theme="light"] .tp {
  background: rgba(15, 23, 42, 0.022);
}
[data-wm-theme="light"] .tp:hover {
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.12);
}
[data-wm-theme="light"] .tp.primary {
  background: linear-gradient(
    165deg,
    rgba(37, 99, 235, 0.12),
    rgba(37, 99, 235, 0.03)
  );
  border-color: rgba(37, 99, 235, 0.32);
  box-shadow: 0 0 34px rgba(37, 99, 235, 0.12);
}
[data-wm-theme="light"] .scrollcue {
  color: rgba(15, 23, 42, 0.45);
}
[data-wm-theme="light"] .scrollcue .mouse {
  border-color: rgba(15, 23, 42, 0.3);
}
[data-wm-theme="light"] .scrollcue .mouse::after {
  background: rgba(15, 23, 42, 0.55);
}
[data-wm-theme="light"] ::selection {
  background: rgba(37, 99, 235, 0.2);
  color: #0f172a;
}
