/* Motion & transform visual — scoped to marketing */

@media (prefers-reduced-motion: reduce) {
  #landing *,
  .marketing-site * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .marquee-track {
    animation: none !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

/* Eyebrow pulse */
#landing .eyebrow .dot,
.marketing-site .eyebrow .dot {
  animation: ph-pulse 2.4s ease-in-out infinite;
}
@keyframes ph-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.85); }
}

#landing .trust-band-inner,
.marketing-site .trust-band-inner {
  flex-wrap: nowrap;
}
#landing .trust-band .marquee-wrap,
.marketing-site .trust-band .marquee-wrap {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: 32px;
  width: max-content;
  animation: ph-marquee 28s linear infinite;
}
.marquee-track span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-mid);
  white-space: nowrap;
  padding: 6px 0;
}
@keyframes ph-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== Transform visual (ops forge — animation-heavy) ===== */
.transform-visual {
  position: relative;
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  perspective: 900px;
}
.transform-stage {
  position: relative;
  background: linear-gradient(155deg, #1c1c26 0%, #12121a 55%, #16161f 100%);
  border: 1px solid rgba(107, 122, 232, 0.24);
  border-radius: 22px;
  padding: 22px 18px 18px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
  transform-style: preserve-3d;
}
.transform-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 16% 18%, rgba(248, 113, 113, 0.14), transparent 55%),
    radial-gradient(ellipse 70% 55% at 84% 28%, rgba(66, 79, 209, 0.2), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* Moving blueprint grid */
.ops-grid {
  position: absolute;
  inset: -20%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 70% 65% at 50% 45%, #000 30%, transparent 75%);
  animation: ops-grid-drift 18s linear infinite;
  pointer-events: none;
  z-index: 0;
}
@keyframes ops-grid-drift {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-28px, -28px, 0); }
}

/* Vertical scan sweep */
.ops-scan {
  position: absolute;
  left: -10%;
  top: 0;
  width: 28%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(107, 122, 232, 0.12), transparent);
  animation: ops-scan 4.8s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}
@keyframes ops-scan {
  0% { transform: translateX(0); opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { transform: translateX(420%); opacity: 0; }
}

/* Flowing data particles — keep to the center gutter only */
.ops-particles {
  position: absolute;
  left: 42%;
  right: 42%;
  top: 56px;
  bottom: 72px;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}
.ops-particles i {
  position: absolute;
  top: calc(18% + (var(--p) * 10%));
  left: 10%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #6b7ae8;
  box-shadow: 0 0 8px rgba(107, 122, 232, 0.55);
  opacity: 0;
  animation: ops-particle 2.8s cubic-bezier(0.22, 1, 0.36, 1) infinite;
  animation-delay: calc(var(--p) * 0.4s);
}
.ops-particles i:nth-child(odd) { background: #f87171; box-shadow: 0 0 8px rgba(248, 113, 113, 0.45); }
.ops-particles i:nth-child(3n) { background: #6ee7b7; box-shadow: 0 0 8px rgba(110, 231, 183, 0.45); }
@keyframes ops-particle {
  0% { opacity: 0; transform: translate3d(0, 0, 0) scale(0.4); }
  15% { opacity: 0.9; }
  50% { opacity: 0.9; transform: translate3d(0, calc((var(--p) - 2.5) * 10px), 0) scale(1); }
  100% { opacity: 0; transform: translate3d(0, calc((var(--p) - 2.5) * 22px), 0) scale(0.35); }
}

.transform-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  position: relative;
  z-index: 5;
}
.transform-labels .lbl-before {
  color: #fda4a4;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
  animation: ops-lbl-before 15s ease-in-out infinite;
}
.transform-labels .lbl-after {
  color: #86efd0;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
  animation: ops-lbl-after 15s ease-in-out infinite;
}
@keyframes ops-lbl-before {
  0%, 18%, 33%, 51%, 66%, 84%, 100% { opacity: 1; transform: translateY(0); }
  22%, 30%, 55%, 63%, 88%, 96% { opacity: 0.55; transform: translateY(1px); }
}
@keyframes ops-lbl-after {
  0%, 18%, 33%, 51%, 66%, 84%, 100% { opacity: 0.55; transform: translateY(1px); }
  22%, 30%, 55%, 63%, 88%, 96% { opacity: 1; transform: translateY(0); }
}

/* System strip — above the cards, never over engine/copy */
.ops-systems {
  position: relative;
  z-index: 3;
  display: flex;
  gap: 8px;
  width: max-content;
  margin: 0 0 12px;
  padding: 2px 0;
  animation: ops-systems-marquee 18s linear infinite;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ops-systems span {
  flex: 0 0 auto;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(18, 18, 26, 0.92);
}
@keyframes ops-systems-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Animated SVG conduits — behind cards, softer */
.ops-conduits {
  position: absolute;
  inset: 48px 0 56px;
  width: 100%;
  height: auto;
  z-index: 1;
  pointer-events: none;
  opacity: 0.35;
}
.ops-path {
  fill: none;
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-dasharray: 6 12;
}
.ops-path--in {
  stroke: rgba(248, 113, 113, 0.7);
  animation: ops-path-flow 1.4s linear infinite;
}
.ops-path--out {
  stroke: rgba(110, 231, 183, 0.7);
  animation: ops-path-flow 1.4s linear infinite reverse;
  animation-delay: 0.2s;
}
@keyframes ops-path-flow {
  to { stroke-dashoffset: -36; }
}

.ops-flow {
  display: grid;
  grid-template-columns: 1fr 84px 1fr;
  gap: 10px;
  align-items: stretch;
  min-height: 220px;
  position: relative;
  z-index: 4;
}
.ops-lane {
  position: relative;
  min-height: 220px;
  z-index: 4;
}
.ops-scene {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 15px 15px 13px;
  border-radius: 14px;
  background: #1a1520;
  background-image: linear-gradient(165deg, rgba(248, 113, 113, 0.16), rgba(22, 22, 30, 0.98) 42%, #16161f);
  border: 1px solid rgba(252, 165, 165, 0.42);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translate3d(-14px, 6px, 0) scale(0.97);
  transform-origin: left center;
  pointer-events: none;
  animation: ops-scene-in 15s cubic-bezier(0.22, 1, 0.36, 1) infinite;
  animation-delay: calc(var(--s, 0) * 5s);
  overflow: hidden;
  isolation: isolate;
}
.ops-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, 0.05) 50%, transparent 58%);
  transform: translateX(-120%);
  animation: ops-sheen 15s ease-in-out infinite;
  animation-delay: calc(var(--s, 0) * 5s);
  pointer-events: none;
  z-index: 0;
}
.ops-scene > * { position: relative; z-index: 1; }
@keyframes ops-sheen {
  0%, 8% { transform: translateX(-120%); }
  14% { transform: translateX(120%); }
  100% { transform: translateX(120%); }
}
.ops-scene--out {
  background: #121a18;
  background-image: linear-gradient(165deg, rgba(110, 231, 183, 0.16), rgba(18, 24, 22, 0.98) 42%, #141a18);
  border-color: rgba(110, 231, 183, 0.42);
  transform: translate3d(14px, 6px, 0) scale(0.97);
  transform-origin: right center;
  animation-name: ops-scene-out;
}
.ops-domain {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fecaca;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(248, 113, 113, 0.18);
  border: 1px solid rgba(252, 165, 165, 0.35);
}
.ops-domain--ok {
  color: #bbf7d0;
  background: rgba(110, 231, 183, 0.16);
  border-color: rgba(110, 231, 183, 0.38);
}
.ops-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6ee7b7;
  display: inline-block;
  animation: ops-live-pulse 1.2s ease-in-out infinite;
}
@keyframes ops-live-pulse {
  0%, 100% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 0 rgba(110, 231, 183, 0.5); }
  50% { transform: scale(1.15); opacity: 0.85; box-shadow: 0 0 0 5px rgba(110, 231, 183, 0); }
}
.ops-scene h3 {
  margin: 0;
  font-family: var(--font-display, "DM Serif Display", Georgia, serif);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.28;
  color: #ffffff;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.35);
}
.ops-scene p {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.86);
}
.ops-meter {
  height: 3px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-top: 2px;
}
.ops-meter span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #f87171, #fb923c);
  animation: ops-meter-fill 15s ease-in-out infinite;
  animation-delay: calc(var(--s, 0) * 5s);
}
.ops-scene--out .ops-meter span {
  background: linear-gradient(90deg, #34d399, #6ee7b7);
}
@keyframes ops-meter-fill {
  0%, 4% { width: 0; }
  10%, 20% { width: var(--fill, 80%); }
  26%, 100% { width: 0; }
}
.ops-load {
  margin-top: auto;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fda4a4;
  letter-spacing: 0.02em;
}
.ops-ticks {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.ops-ticks li {
  position: relative;
  padding-left: 18px;
  font-size: 0.76rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.92);
  opacity: 0;
  transform: translateX(8px);
  animation: ops-tick-in 15s ease-in-out infinite;
  animation-delay: calc(var(--s, 0) * 5s + 0.18s + var(--t, 0) * 0.14s);
}
.ops-ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6ee7b7;
  box-shadow: 0 0 0 0 rgba(110, 231, 183, 0.4);
  animation: ops-tick-pop 15s ease-in-out infinite;
  animation-delay: calc(var(--s, 0) * 5s + 0.18s + var(--t, 0) * 0.14s);
}
@keyframes ops-tick-in {
  0%, 18% { opacity: 0; transform: translateX(10px); }
  23%, 32% { opacity: 1; transform: translateX(0); }
  36%, 100% { opacity: 0; transform: translateX(0); }
}
@keyframes ops-tick-pop {
  0%, 18% { transform: scale(0.4); box-shadow: 0 0 0 0 rgba(110, 231, 183, 0.4); }
  23% { transform: scale(1.25); box-shadow: 0 0 0 6px rgba(110, 231, 183, 0); }
  26%, 32% { transform: scale(1); }
  36%, 100% { transform: scale(0.4); }
}

/* Scene timing: 3 scenes × 5s = 15s loop — no blur while readable */
@keyframes ops-scene-in {
  0%, 2% { opacity: 0; transform: translate3d(-14px, 8px, 0) scale(0.96); }
  7%, 18% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
  21% { opacity: 1; transform: translate3d(6px, -1px, 0) scale(0.99); }
  26%, 100% { opacity: 0; transform: translate3d(18px, -2px, 0) scale(0.96); }
}
@keyframes ops-scene-out {
  0%, 16% { opacity: 0; transform: translate3d(14px, 8px, 0) scale(0.96); }
  21%, 32% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
  36%, 100% { opacity: 0; transform: translate3d(0, -4px, 0) scale(0.98); }
}

/* Engine core — single cohesive mark */
.transform-engine,
.ops-engine {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  z-index: 4;
}
.ops-engine-label {
  position: relative;
  z-index: 5;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(199, 210, 254, 0.95);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.65);
  animation: ops-engine-label 15s ease-in-out infinite;
}
@keyframes ops-engine-label {
  0%, 16%, 33%, 49%, 66%, 82%, 100% { opacity: 0.85; letter-spacing: 0.14em; }
  19%, 52%, 85% { opacity: 1; letter-spacing: 0.16em; color: #e0e7ff; }
}
.engine-ring {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #5b67e0, #424fd1 55%, #313a9e);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  box-shadow: 0 8px 24px rgba(66, 79, 209, 0.35);
  animation: ops-engine-pulse 15s ease-in-out infinite;
}
.engine-ring svg {
  width: 24px;
  height: 24px;
  color: #fff;
}
@keyframes ops-engine-pulse {
  0%, 16%, 33%, 49%, 66%, 82%, 100% { transform: scale(1); box-shadow: 0 8px 24px rgba(66, 79, 209, 0.35); }
  19%, 52%, 85% { transform: scale(1.06); box-shadow: 0 10px 28px rgba(66, 79, 209, 0.5); }
}

.ops-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 14px;
  position: relative;
  z-index: 3;
}
.ops-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  animation: ops-dot 15s ease-in-out infinite;
  animation-delay: calc(var(--s, 0) * 5s);
}
@keyframes ops-dot {
  0%, 2%, 30%, 100% { background: rgba(255, 255, 255, 0.18); transform: scale(1); width: 6px; }
  8%, 24% { background: #6b7ae8; transform: scale(1.15); width: 16px; border-radius: 99px; }
}

.transform-caption {
  margin-top: 12px;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
  position: relative;
  z-index: 5;
  min-height: 1.2em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
}
.transform-caption .cap-before,
.transform-caption .cap-after {
  position: absolute;
  left: 0;
  right: 0;
}
.transform-caption .cap-before {
  animation: ops-cap-before 15s ease-in-out infinite;
}
.transform-caption .cap-after {
  opacity: 0;
  animation: ops-cap-after 15s ease-in-out infinite;
}
@keyframes ops-cap-before {
  0%, 16%, 33%, 49%, 66%, 82%, 100% { opacity: 1; transform: translateY(0); }
  20%, 30%, 53%, 63%, 86%, 96% { opacity: 0; transform: translateY(-4px); }
}
@keyframes ops-cap-after {
  0%, 18%, 34%, 51%, 67%, 84%, 100% { opacity: 0; transform: translateY(4px); }
  22%, 30%, 55%, 63%, 88%, 96% { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .ops-scene,
  .ops-scene--out,
  .ops-scene::after,
  .ops-meter span,
  .ops-ticks li,
  .ops-ticks li::before,
  .ops-systems,
  .ops-particles i,
  .ops-grid,
  .ops-scan,
  .ops-path,
  .ops-path--in,
  .ops-path--out {
    animation: none !important;
  }
  .ops-scene,
  .ops-scene--out {
    opacity: 0 !important;
    transform: none !important;
    filter: none !important;
  }
  .ops-lane--before .ops-scene:first-child,
  .ops-lane--after .ops-scene--out:first-child {
    opacity: 1 !important;
  }
  .ops-lane--before .ops-scene:first-child .ops-meter span {
    width: var(--fill, 80%) !important;
  }
  .ops-lane--after .ops-scene--out:first-child .ops-ticks li {
    opacity: 1 !important;
    transform: none !important;
  }
  .ops-systems,
  .ops-particles,
  .ops-scan,
  .ops-conduits { display: none !important; }
  .transform-labels .lbl-before,
  .transform-labels .lbl-after,
  .ops-dots span,
  .engine-ring,
  .ops-engine-label,
  .transform-caption .cap-before,
  .transform-caption .cap-after {
    animation: none !important;
  }
  .transform-labels .lbl-before,
  .transform-labels .lbl-after,
  .transform-caption .cap-before {
    opacity: 1 !important;
  }
  .transform-caption .cap-after { opacity: 0 !important; }
  .ops-dots span:first-child { background: #6b7ae8; width: 16px; border-radius: 99px; }
}

/* Floating orbs behind hero */
#landing .hero--brand,
.marketing-site .hero--brand {
  position: relative;
}
.hero-orbs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
  animation: orb-drift 18s ease-in-out infinite;
}
.hero-orb--1 {
  width: 280px;
  height: 280px;
  background: #424fd1;
  top: -80px;
  right: -60px;
  animation-delay: 0s;
}
.hero-orb--2 {
  width: 200px;
  height: 200px;
  background: #6b7ae8;
  bottom: 10%;
  left: -40px;
  animation-delay: -6s;
}
@keyframes orb-drift {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(20px, -15px); }
  66% { transform: translate(-15px, 10px); }
}

#landing .transform-story,
.marketing-site .transform-story {
  background: var(--white);
  padding: 88px 0;
  overflow: hidden;
}
.transform-story-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.transform-story h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.transform-story p {
  font-size: 1rem;
  color: var(--ink-mid);
  line-height: 1.7;
  max-width: 440px;
}
.transform-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 28px;
}
.transform-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.transform-step .num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.transform-step h3 {
  font-size: 0.95rem;
  margin-bottom: 4px;
}
.transform-step p {
  font-size: 0.88rem;
  max-width: none;
}

/* Diagnose visual — scan → identify → multitask solve */
.diagnose-visual {
  position: relative;
  background: linear-gradient(160deg, #14141c 0%, #1a1a24 55%, #12121a 100%);
  border-radius: 20px;
  padding: 22px 20px 18px;
  border: 1px solid rgba(66, 79, 209, 0.22);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.diagnose-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  position: relative;
  z-index: 3;
}
.diagnose-kicker {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.diagnose-phase {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.diagnose-phase em {
  font-style: normal;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.03);
  animation: diag-phase 12s ease-in-out infinite;
}
.ph--scan { animation-name: diag-phase-scan; }
.ph--id { animation-name: diag-phase-id; }
.ph--solve { animation-name: diag-phase-solve; }
@keyframes diag-phase-scan {
  0%, 28% { color: #fda4a4; border-color: rgba(248, 113, 113, 0.45); background: rgba(248, 113, 113, 0.12); }
  34%, 100% { color: rgba(255, 255, 255, 0.4); border-color: rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.03); }
}
@keyframes diag-phase-id {
  0%, 28%, 68%, 100% { color: rgba(255, 255, 255, 0.4); border-color: rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.03); }
  34%, 58% { color: #c7d2fe; border-color: rgba(107, 122, 232, 0.5); background: rgba(66, 79, 209, 0.18); }
}
@keyframes diag-phase-solve {
  0%, 58%, 100% { color: rgba(255, 255, 255, 0.4); border-color: rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.03); }
  64%, 96% { color: #bbf7d0; border-color: rgba(110, 231, 183, 0.45); background: rgba(110, 231, 183, 0.12); }
}

.diagnose-stage {
  position: relative;
  min-height: 340px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.diagnose-grid {
  position: absolute;
  inset: -10%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse 65% 60% at 50% 40%, #000 20%, transparent 75%);
  animation: diag-grid 20s linear infinite;
  pointer-events: none;
}
@keyframes diag-grid {
  to { transform: translate3d(-24px, -24px, 0); }
}

/* Floating problem signals */
.diag-signals {
  position: absolute;
  inset: 12px;
  z-index: 2;
  pointer-events: none;
}
.diag-signals span {
  position: absolute;
  font-size: 0.68rem;
  font-weight: 600;
  color: #fecaca;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(248, 113, 113, 0.4);
  background: rgba(40, 18, 22, 0.92);
  white-space: nowrap;
  opacity: 0;
  animation: diag-signal 12s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.18s);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}
.diag-signals span:nth-child(1) { left: 6%; top: 10%; }
.diag-signals span:nth-child(2) { right: 8%; top: 14%; }
.diag-signals span:nth-child(3) { left: 10%; top: 34%; }
.diag-signals span:nth-child(4) { right: 6%; top: 38%; }
.diag-signals span:nth-child(5) { left: 18%; top: 56%; }
.diag-signals span:nth-child(6) { right: 14%; top: 58%; }
@keyframes diag-signal {
  0%, 4% { opacity: 0; transform: translate3d(0, 10px, 0) scale(0.92); }
  10%, 26% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
  32% { opacity: 0.85; transform: translate3d(0, -4px, 0) scale(0.96); }
  40%, 100% { opacity: 0; transform: translate3d(0, -18px, 0) scale(0.7); }
}

/* Radar / understand core */
.diag-radar {
  position: absolute;
  left: 50%;
  top: 42%;
  width: 140px;
  height: 140px;
  margin: -70px 0 0 -70px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: diag-radar-shift 12s ease-in-out infinite;
}
@keyframes diag-radar-shift {
  0%, 34% { top: 42%; transform: scale(1); }
  42%, 96% { top: 28%; transform: scale(0.86); }
  100% { top: 42%; transform: scale(1); }
}
.diag-radar-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(107, 122, 232, 0.35);
  animation: diag-ring 3.2s ease-out infinite;
}
.diag-radar-ring--2 {
  inset: 16px;
  animation-delay: 1.1s;
  border-color: rgba(248, 113, 113, 0.28);
}
@keyframes diag-ring {
  0% { transform: scale(0.55); opacity: 0.8; }
  100% { transform: scale(1.25); opacity: 0; }
}
.diag-radar-sweep {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(66, 79, 209, 0.35) 50deg, transparent 70deg);
  animation: diag-sweep 2.4s linear infinite;
  mask-image: radial-gradient(circle, transparent 42%, #000 43%);
}
@keyframes diag-sweep {
  to { transform: rotate(360deg); }
}
.diag-core {
  position: relative;
  z-index: 2;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #5b67e0, #424fd1 60%, #313a9e);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 0 rgba(66, 79, 209, 0.4);
  animation: diag-core-pulse 12s ease-in-out infinite;
}
@keyframes diag-core-pulse {
  0%, 30% { box-shadow: 0 0 0 0 rgba(66, 79, 209, 0.45); transform: scale(1); }
  36% { box-shadow: 0 0 0 14px rgba(66, 79, 209, 0); transform: scale(1.08); }
  64%, 90% { box-shadow: 0 0 0 8px rgba(110, 231, 183, 0.08); transform: scale(1); }
  100% { box-shadow: 0 0 0 0 rgba(66, 79, 209, 0.3); transform: scale(1); }
}
.diag-core-label {
  position: absolute;
  top: calc(100% + 8px);
  margin: 0;
  width: 110px;
  height: 1em;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  text-align: center;
}
.diag-core-label .cl {
  position: absolute;
  left: 0;
  right: 0;
  opacity: 0;
}
.cl--a { color: #fecaca; animation: diag-cl-a 12s ease-in-out infinite; }
.cl--b { color: #c7d2fe; animation: diag-cl-b 12s ease-in-out infinite; }
.cl--c { color: #bbf7d0; animation: diag-cl-c 12s ease-in-out infinite; }
@keyframes diag-cl-a {
  0%, 28% { opacity: 1; }
  34%, 100% { opacity: 0; }
}
@keyframes diag-cl-b {
  0%, 30%, 62%, 100% { opacity: 0; }
  36%, 56% { opacity: 1; }
}
@keyframes diag-cl-c {
  0%, 60%, 100% { opacity: 0; }
  66%, 94% { opacity: 1; }
}

/* Identified problem lanes — multitask */
.diag-lanes {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  z-index: 4;
}
.diag-lane {
  background: #16161f;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px 11px 11px;
  opacity: 0;
  transform: translateY(18px) scale(0.96);
  animation: diag-lane-in 12s cubic-bezier(0.22, 1, 0.36, 1) infinite;
  animation-delay: calc(0.08s + var(--i) * 0.14s);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}
@keyframes diag-lane-in {
  0%, 30% { opacity: 0; transform: translateY(18px) scale(0.96); }
  38%, 96% { opacity: 1; transform: translateY(0) scale(1); border-color: rgba(107, 122, 232, 0.35); }
  100% { opacity: 0; transform: translateY(-6px) scale(0.98); }
}
.diag-tag {
  display: inline-block;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #c7d2fe;
  background: rgba(66, 79, 209, 0.18);
  border: 1px solid rgba(107, 122, 232, 0.35);
  border-radius: 999px;
  padding: 2px 7px;
  margin-bottom: 7px;
}
.diag-lane h4 {
  margin: 0 0 4px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
}
.diag-lane p {
  margin: 0 0 10px;
  font-size: 0.68rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.78);
  max-width: none;
}
.diag-pipeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 4px;
}
.diag-pipeline li {
  flex: 1;
  text-align: center;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  padding: 5px 2px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  animation: diag-step 12s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.12s + var(--s) * 0.35s);
}
@keyframes diag-step {
  0%, 42% { color: rgba(255, 255, 255, 0.45); background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.06); }
  50%, 58% { color: #c7d2fe; background: rgba(66, 79, 209, 0.22); border-color: rgba(107, 122, 232, 0.4); }
  66%, 92% { color: #bbf7d0; background: rgba(110, 231, 183, 0.14); border-color: rgba(110, 231, 183, 0.35); }
  100% { color: rgba(255, 255, 255, 0.45); background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.06); }
}
.diag-pipeline li:nth-child(1) {
  animation-name: diag-step-map;
}
.diag-pipeline li:nth-child(2) {
  animation-name: diag-step-design;
}
.diag-pipeline li:nth-child(3) {
  animation-name: diag-step-live;
}
@keyframes diag-step-map {
  0%, 48% { color: rgba(255, 255, 255, 0.45); background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.06); }
  54%, 62% { color: #c7d2fe; background: rgba(66, 79, 209, 0.25); border-color: rgba(107, 122, 232, 0.45); }
  70%, 94% { color: #bbf7d0; background: rgba(110, 231, 183, 0.12); border-color: rgba(110, 231, 183, 0.3); }
  100% { color: rgba(255, 255, 255, 0.45); background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.06); }
}
@keyframes diag-step-design {
  0%, 56% { color: rgba(255, 255, 255, 0.45); background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.06); }
  62%, 72% { color: #c7d2fe; background: rgba(66, 79, 209, 0.25); border-color: rgba(107, 122, 232, 0.45); }
  78%, 94% { color: #bbf7d0; background: rgba(110, 231, 183, 0.12); border-color: rgba(110, 231, 183, 0.3); }
  100% { color: rgba(255, 255, 255, 0.45); background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.06); }
}
@keyframes diag-step-live {
  0%, 68% { color: rgba(255, 255, 255, 0.45); background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.06); }
  74%, 94% { color: #052e1c; background: #6ee7b7; border-color: #6ee7b7; }
  100% { color: rgba(255, 255, 255, 0.45); background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.06); }
}

.diagnose-caption {
  position: relative;
  z-index: 3;
  margin: 12px 0 0;
  min-height: 1.2em;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
}
.diagnose-caption span {
  position: absolute;
  left: 0;
  right: 0;
}
.diagnose-caption .cap-a {
  animation: diag-cap-a 12s ease-in-out infinite;
}
.diagnose-caption .cap-b {
  opacity: 0;
  animation: diag-cap-b 12s ease-in-out infinite;
}
@keyframes diag-cap-a {
  0%, 40% { opacity: 1; }
  48%, 100% { opacity: 0; }
}
@keyframes diag-cap-b {
  0%, 48% { opacity: 0; }
  56%, 94% { opacity: 1; }
  100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .diag-signals span,
  .diag-radar,
  .diag-radar-ring,
  .diag-radar-sweep,
  .diag-core,
  .diag-core-label .cl,
  .diag-lane,
  .diag-pipeline li,
  .diagnose-phase em,
  .diagnose-grid,
  .diagnose-caption .cap-a,
  .diagnose-caption .cap-b {
    animation: none !important;
  }
  .diag-signals { display: none; }
  .diag-radar { top: 28% !important; transform: scale(0.86) !important; }
  .diag-lane {
    opacity: 1 !important;
    transform: none !important;
  }
  .diag-pipeline li:last-child {
    color: #052e1c !important;
    background: #6ee7b7 !important;
    border-color: #6ee7b7 !important;
  }
  .cl--a, .cl--b { opacity: 0 !important; }
  .cl--c { opacity: 1 !important; }
  .diagnose-caption .cap-a { opacity: 0 !important; }
  .diagnose-caption .cap-b { opacity: 1 !important; position: relative; }
  .ph--solve {
    color: #bbf7d0 !important;
    border-color: rgba(110, 231, 183, 0.45) !important;
    background: rgba(110, 231, 183, 0.12) !important;
  }
}

/* Service card hover lift */
#landing .service-card,
#landing .step-card,
.marketing-site .service-card,
.marketing-site .step-card {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease, border-color 0.35s ease;
}

@media (max-width: 767px) {
  .transform-story-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .transform-visual { max-width: none; }
  .transform-stage { padding: 18px 14px 14px; }
  .ops-flow {
    grid-template-columns: 1fr;
    gap: 10px;
    min-height: auto;
  }
  .ops-lane {
    min-height: 148px;
  }
  .ops-engine {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 12px;
    min-height: auto;
    padding: 2px 0 6px;
  }
  .engine-ring {
    width: 44px;
    height: 44px;
    box-shadow: 0 6px 16px rgba(66, 79, 209, 0.35);
  }
  .engine-ring svg { width: 20px; height: 20px; }
  .ops-engine-label {
    margin: 0;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
  }
  .ops-conduits,
  .ops-systems,
  .ops-particles,
  .ops-scan { display: none; }
  .ops-scene,
  .ops-scene--out {
    transform: none;
    animation-duration: 12s;
  }
  .ops-scene h3 { font-size: 0.95rem; }
  .ops-scene p,
  .ops-ticks li { font-size: 0.72rem; }
  .ops-dots { margin-top: 10px; }
  .diagnose-stage { min-height: 420px; }
  .diag-lanes {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .diag-signals span:nth-child(n+4) { display: none; }
  .diag-radar {
    width: 120px;
    height: 120px;
    margin: -60px 0 0 -60px;
  }
  .diagnose-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .diagnose-phase { justify-content: flex-start; }
}
