:root {
  color-scheme: light;
}

html {
  scroll-behavior: smooth;
  background: #fff;
}

body {
  margin: 0;
  background: #fff;
}

.drflow-ui.marketing-site {
  --marketing-max: 1480px;
  --marketing-copy: 760px;
  --marketing-section-pad: clamp(84px, 10vw, 156px);
  min-height: 100vh;
  overflow: clip;
  background: #fff;
  color: var(--dr-text);
  font-size: 16px;
}

.marketing-site main {
  display: block;
}

.marketing-container {
  width: min(var(--marketing-max), calc(100% - 64px));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.marketing-eyebrow {
  margin: 0 0 18px;
  color: var(--dr-pink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.marketing-eyebrow--light {
  color: #ff83b8;
}

.marketing-site h1,
.marketing-site h2,
.marketing-site h3,
.marketing-site p {
  text-wrap: pretty;
}

.marketing-site h1,
.marketing-site h2,
.marketing-site h3 {
  color: inherit;
}

.marketing-site h1 {
  margin: 0;
  font-size: clamp(48px, 6vw, 86px);
  line-height: .98;
  letter-spacing: -.055em;
  font-weight: 700;
}

.marketing-site h2 {
  margin: 0;
  font-size: clamp(42px, 5vw, 70px);
  line-height: 1.02;
  letter-spacing: -.05em;
  font-weight: 700;
}

.marketing-site h3 {
  margin: 0;
  font-size: clamp(26px, 2.5vw, 36px);
  line-height: 1.1;
  letter-spacing: -.035em;
}

.marketing-site p {
  line-height: 1.65;
}

.marketing-button.dr-button {
  min-height: 50px;
  padding-inline: 22px;
  border-radius: 12px;
  font-size: 14px;
}

.marketing-button--large.dr-button {
  min-height: 54px;
  padding-inline: 26px;
}

.text-link {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  color: var(--dr-text) !important;
  font-weight: 700;
  text-decoration: none;
}

.text-link:hover {
  color: var(--dr-pink) !important;
}

/* Header */
.marketing-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: 100%;
  padding: 16px 0;
  transition: padding 220ms ease, background 220ms ease, border-color 220ms ease, backdrop-filter 220ms ease;
}

.marketing-header.is-scrolled {
  padding: 9px 0;
  border-bottom: 1px solid var(--dr-border);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(18px) saturate(130%);
}

.marketing-header__inner {
  display: flex;
  align-items: center;
  width: min(var(--marketing-max), calc(100% - 48px));
  min-height: 58px;
  margin-inline: auto;
}

.brand-lockup {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 16px;
  align-items: center;
  color: var(--dr-text) !important;
  text-decoration: none;
}

.brand-lockup img {
  width: 132px;
  height: auto;
}

.brand-lockup__divider {
  width: 1px;
  height: 30px;
  background: var(--dr-border-strong);
}

.brand-lockup__product {
  display: grid;
  gap: 1px;
}

.brand-lockup__product strong {
  font-size: 14px;
  line-height: 1.25;
}

.brand-lockup__product small {
  color: var(--dr-muted);
  font-size: 10px;
}

.marketing-nav {
  display: flex;
  gap: 23px;
  align-items: center;
  margin-left: auto;
}

.marketing-nav > a:not(.dr-button) {
  color: #374151;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: color 150ms ease;
}

.marketing-nav > a:not(.dr-button):hover {
  color: var(--dr-pink);
}

.marketing-nav__cta.dr-button {
  margin-left: 4px;
}

.menu-toggle {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--dr-border);
  border-radius: 12px;
  background: #fff;
}

.menu-toggle > span:not(.sr-only) {
  grid-area: 1 / 1;
  width: 18px;
  height: 1.5px;
  background: var(--dr-text);
  transition: transform 180ms ease;
}

.menu-toggle > span:nth-child(2) { transform: translateY(-4px); }
.menu-toggle > span:nth-child(3) { transform: translateY(4px); }
.menu-toggle[aria-expanded="true"] > span:nth-child(2) { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] > span:nth-child(3) { transform: rotate(-45deg); }

/* Hero */
.hero-section {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 100svh;
  padding: 136px 0 80px;
  overflow: hidden;
  background:
    radial-gradient(circle at 79% 46%, rgba(229, 0, 99, .055), transparent 24%),
    linear-gradient(180deg, #fff 0%, #fff 68%, #fbfcfd 100%);
}

.hero-section__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(480px, .97fr);
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 850px;
}

.hero-copy__summary {
  max-width: 680px;
  margin: 30px 0 0;
  color: #4b5563;
  font-size: clamp(19px, 1.7vw, 25px);
  line-height: 1.55 !important;
}

.hero-actions {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-top: 36px;
}

.hero-visual {
  position: relative;
  width: 100%;
  min-height: 560px;
}

.hero-visual__lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.network-line {
  fill: none;
  stroke: rgba(17, 24, 39, .16);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 8 9;
  animation: networkDrift 16s linear infinite;
}

.network-line--one,
.network-line--four { stroke: rgba(229, 0, 99, .38); }

@keyframes networkDrift {
  to { stroke-dashoffset: -180; }
}

.mini-node,
.hero-engine-node {
  position: absolute;
  display: grid;
  place-items: center;
  border: 1px solid var(--dr-border);
  background: rgba(255,255,255,.96);
  box-shadow: 0 10px 34px rgba(15, 23, 42, .07);
}

.mini-node {
  width: 120px;
  min-height: 58px;
  padding: 9px 12px;
  border-radius: 14px;
  color: #4b5563;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.hero-engine-node {
  top: 31%;
  left: 51%;
  width: 190px;
  min-height: 118px;
  transform: translate(-50%, -50%);
  border-color: var(--dr-pink-border);
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(229, 0, 99, .12), var(--dr-shadow-card);
  text-align: center;
}

.hero-engine-node small {
  color: var(--dr-pink);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
}

.hero-engine-node strong {
  margin-top: -12px;
  font-size: 18px;
}

.engine-pulse {
  position: absolute;
  top: -7px;
  left: 50%;
  width: 14px;
  height: 14px;
  transform: translateX(-50%);
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--dr-pink);
  box-shadow: 0 0 0 0 rgba(229,0,99,.35);
  animation: pulse 2.8s ease-out infinite;
}

@keyframes pulse {
  0%, 55% { box-shadow: 0 0 0 0 rgba(229,0,99,.32); }
  100% { box-shadow: 0 0 0 18px rgba(229,0,99,0); }
}

.hero-network-label {
  position: absolute;
  top: 43%;
  left: 50%;
  display: grid;
  gap: 3px;
  transform: translate(-50%, -50%);
  padding: 12px 16px;
  border: 1px solid var(--dr-pink-border);
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  box-shadow: var(--dr-shadow-card);
  text-align: center;
}

.hero-network-label strong {
  color: var(--dr-pink);
  font-size: 11px;
}

.hero-network-label span {
  color: var(--dr-muted);
  font-size: 9px;
}

.mini-node--a { top: 11%; left: 1%; }
.mini-node--b { top: 39%; left: 1%; }
.mini-node--c { top: 67%; left: 1%; }
.mini-node--s1 { top: 10%; right: 0; }
.mini-node--s2 { top: 39%; right: 0; }
.mini-node--s3 { top: 68%; right: 0; }

/* Long scroll stories */
.story-section {
  position: relative;
  height: 310vh;
  background: #fbfcfd;
}

.story-section--simplify {
  background: #fff;
}

.story-sticky {
  position: sticky;
  top: 0;
  display: grid;
  grid-template-columns: minmax(320px, .72fr) minmax(600px, 1.28fr);
  gap: clamp(46px, 6vw, 96px);
  align-items: center;
  min-height: 100svh;
  padding-block: 118px 70px;
}

.story-sticky--reverse {
  grid-template-columns: minmax(600px, 1.25fr) minmax(320px, .75fr);
}

.story-copy {
  position: relative;
  z-index: 2;
  max-width: 610px;
}

.story-copy > p:not(.marketing-eyebrow) {
  margin: 30px 0 0;
  color: #4b5563;
  font-size: clamp(18px, 1.5vw, 22px);
}

.story-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
}

.story-keywords span {
  padding: 8px 12px;
  border: 1px solid var(--dr-border);
  border-radius: var(--dr-radius-pill);
  background: #fff;
  color: var(--dr-muted);
  font-size: 11px;
  font-weight: 700;
  transition: border-color 220ms ease, background 220ms ease, color 220ms ease;
}

.story-callout {
  padding-left: 18px;
  border-left: 3px solid var(--dr-pink);
  color: var(--dr-text) !important;
  font-weight: 700;
}

/* Complexity map */
.complexity-map,
.simplify-map {
  position: relative;
  min-height: 640px;
}

.complexity-map svg,
.simplify-map svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.stage-line,
.simplify-lines path {
  fill: none;
  stroke: rgba(17, 24, 39, .16);
  stroke-width: 1.7;
  stroke-linecap: round;
  opacity: 0;
  transition: opacity 1050ms ease, stroke 850ms ease;
}

[data-stage="0"] .stage-line--1,
[data-stage="1"] .stage-line--1,
[data-stage="2"] .stage-line--1,
[data-stage="3"] .stage-line--1,
[data-stage="1"] .stage-line--2,
[data-stage="2"] .stage-line--2,
[data-stage="3"] .stage-line--2,
[data-stage="2"] .stage-line--3,
[data-stage="3"] .stage-line--3,
[data-stage="3"] .stage-line--4 {
  opacity: 1;
}

[data-stage="3"] .stage-line {
  stroke: rgba(229, 0, 99, .23);
}

.complexity-node,
.simplify-node {
  position: absolute;
  display: grid;
  place-items: center;
  min-width: 145px;
  min-height: 64px;
  padding: 12px 15px;
  border: 1px solid var(--dr-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--dr-shadow-card);
  color: #374151;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  transition: opacity 420ms ease, transform 550ms cubic-bezier(.22,1,.36,1), border-color 300ms ease;
}

.simplify-node {
  transition: opacity 900ms ease, transform 1100ms cubic-bezier(.22,1,.36,1), border-color 500ms ease;
}

.c-app-1 { top: 11%; left: 1%; }
.c-app-2 { top: 33.5%; left: 1%; opacity: 0; transform: translateY(18px); }
.c-app-3 { top: 56%; left: 1%; opacity: 0; transform: translateY(18px); }
.c-app-4 { top: 77%; left: 1%; opacity: 0; transform: translateY(18px); }
.c-sys-1 { top: 12%; right: 0; }
.c-sys-2 { top: 41%; right: 0; opacity: 0; transform: translateY(18px); }
.c-sys-3 { top: 70%; right: 0; opacity: 0; transform: translateY(18px); }

[data-stage="1"] .c-app-2,
[data-stage="2"] .c-app-2,
[data-stage="3"] .c-app-2,
[data-stage="1"] .c-sys-2,
[data-stage="2"] .c-sys-2,
[data-stage="3"] .c-sys-2,
[data-stage="2"] .c-app-3,
[data-stage="3"] .c-app-3,
[data-stage="2"] .c-sys-3,
[data-stage="3"] .c-sys-3,
[data-stage="3"] .c-app-4 {
  opacity: 1;
  transform: translateY(0);
}

[data-stage="3"] .complexity-node {
  border-color: rgba(229,0,99,.15);
}

/* Simplification map */
.simplify-lines--messy path {
  opacity: 1;
}

.simplify-lines--clean path {
  stroke: rgba(229,0,99,.36);
}

[data-stage="0"] .simplify-lines--messy path {
  opacity: 1;
}

[data-stage="1"] .simplify-lines--messy path,
[data-stage="2"] .simplify-lines--messy path {
  opacity: 0;
}

[data-stage="1"] .simplify-lines--clean path,
[data-stage="2"] .simplify-lines--clean path {
  opacity: 1;
}

.s-app-1 { top: 14%; left: 0; }
.s-app-2 { top: 39%; left: 0; }
.s-app-3 { top: 64%; left: 0; }
.s-sys-1 { top: 13%; right: 0; }
.s-sys-2 { top: 40%; right: 0; }
.s-sys-3 { top: 67%; right: 0; }

.simplify-node--engine {
  top: 40%;
  left: 28%;
  min-width: 184px;
  min-height: 116px;
  transform: translate(-50%, 0);
  opacity: 0;
  border-color: var(--dr-pink-border);
  border-radius: 24px;
  box-shadow: 0 22px 64px rgba(229, 0, 99, .12), var(--dr-shadow-card);
}

.simplify-node--engine small {
  color: var(--dr-pink);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
}

.simplify-node--engine strong { font-size: 17px; }

.simplify-node--integration {
  top: 41%;
  left: 72%;
  min-width: 150px;
  min-height: 96px;
  transform: translate(-50%, 0);
  opacity: 0;
  border-color: rgba(56,89,165,.24);
}

.simplify-node--integration small { color: var(--dr-info); font-size: 9px; font-weight: 800; letter-spacing: .1em; }
.simplify-node--integration strong { font-size: 13px; }
.simplify-node--integration span { max-width: 120px; color: var(--dr-muted); font-size: 8px; font-weight: 600; }

[data-stage="1"] .simplify-node--engine,
[data-stage="2"] .simplify-node--engine,
[data-stage="1"] .simplify-node--integration,
[data-stage="2"] .simplify-node--integration {
  transform: translate(-50%, 0);
  opacity: 1;
}

[data-stage="2"] .simplify-node--app,
[data-stage="2"] .simplify-node--system {
  opacity: .63;
}

/* Focused section */
.focused-section {
  padding: var(--marketing-section-pad) 0;
  background: #fbfcfd;
}

.focused-grid {
  display: grid;
  grid-template-columns: minmax(360px, .82fr) minmax(520px, 1.18fr);
  gap: clamp(64px, 8vw, 140px);
  align-items: center;
}

.focused-copy {
  max-width: 660px;
}

.focused-copy > p:not(.marketing-eyebrow) {
  margin: 30px 0 0;
  color: #4b5563;
  font-size: 19px;
}

.platform-visual {
  position: relative;
  min-height: 520px;
  padding: 32px;
  border: 1px solid var(--dr-border);
  border-radius: 30px;
  background: #fff;
  box-shadow: var(--dr-shadow-card);
}

.platform-visual__title {
  color: var(--dr-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.platform-grid span {
  display: grid;
  place-items: center;
  min-height: 74px;
  padding: 10px;
  border: 1px solid var(--dr-border);
  border-radius: 14px;
  background: #fbfcfd;
  color: #6b7280;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  transition: opacity 700ms ease, filter 700ms ease, transform 700ms ease, border-color 400ms ease, background 400ms ease;
}

.platform-grid .is-needed {
  border-color: var(--dr-pink-border);
  background: var(--dr-pink-soft);
  color: var(--dr-pink);
}

.focused-result {
  position: absolute;
  right: 32px;
  bottom: 30px;
  left: 32px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 14px;
  align-items: center;
  padding: 19px 22px;
  border: 1px solid var(--dr-pink-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(229,0,99,.1);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms 180ms ease, transform 700ms 180ms cubic-bezier(.22,1,.36,1);
}

.focused-result small {
  grid-row: 1 / 3;
  color: var(--dr-pink);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
}

.focused-result strong { font-size: 17px; }
.focused-result span { color: var(--dr-muted); font-size: 11px; }

.platform-visual__phase {
  position: absolute;
  top: 27px;
  right: 30px;
  padding: 5px 9px;
  border: 1px solid var(--dr-pink-border);
  border-radius: var(--dr-radius-pill);
  background: var(--dr-pink-soft);
  color: var(--dr-pink);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(7px);
}

.platform-extract {
  position: absolute;
  right: 50px;
  bottom: 122px;
  width: min(190px, 34%);
  height: 2px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(229,0,99,.12);
  opacity: 0;
}

.platform-extract span {
  display: block;
  width: 54%;
  height: 100%;
  border-radius: inherit;
  background: var(--dr-pink);
  transform: translateX(-110%);
}

[data-reveal-section].is-visible .platform-visual__phase {
  animation: platformPhaseIn 650ms 1250ms cubic-bezier(.22,1,.36,1) both;
}

[data-reveal-section].is-visible .platform-grid span:not(.is-needed) {
  animation: platformDiscard 900ms cubic-bezier(.22,1,.36,1) both;
}

[data-reveal-section].is-visible .platform-grid span:nth-child(1) { animation-delay: 180ms; }
[data-reveal-section].is-visible .platform-grid span:nth-child(2) { animation-delay: 260ms; }
[data-reveal-section].is-visible .platform-grid span:nth-child(3) { animation-delay: 340ms; }
[data-reveal-section].is-visible .platform-grid span:nth-child(4) { animation-delay: 420ms; }
[data-reveal-section].is-visible .platform-grid span:nth-child(5) { animation-delay: 500ms; }
[data-reveal-section].is-visible .platform-grid span:nth-child(7) { animation-delay: 660ms; }
[data-reveal-section].is-visible .platform-grid span:nth-child(8) { animation-delay: 740ms; }
[data-reveal-section].is-visible .platform-grid span:nth-child(9) { animation-delay: 820ms; }
[data-reveal-section].is-visible .platform-grid span:nth-child(10) { animation-delay: 900ms; }
[data-reveal-section].is-visible .platform-grid span:nth-child(11) { animation-delay: 980ms; }
[data-reveal-section].is-visible .platform-grid span:nth-child(12) { animation-delay: 1060ms; }

[data-reveal-section].is-visible .platform-grid .is-needed {
  animation: platformNeeded 1100ms 1050ms cubic-bezier(.22,1,.36,1) both;
}

[data-reveal-section].is-visible .platform-extract {
  animation: platformTraceReveal 350ms 1900ms ease both;
}

[data-reveal-section].is-visible .platform-extract span {
  animation: platformTrace 1050ms 1950ms cubic-bezier(.22,1,.36,1) both;
}

[data-reveal-section].is-visible .focused-result {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 2550ms;
}

@keyframes platformDiscard {
  0% { opacity: 1; filter: grayscale(0); transform: translateY(0) scale(1); }
  100% { opacity: .14; filter: grayscale(1); transform: translateY(5px) scale(.955); }
}

@keyframes platformNeeded {
  0% { transform: translateY(0) scale(1); box-shadow: 0 0 0 rgba(229,0,99,0); }
  45% { transform: translateY(-8px) scale(1.045); box-shadow: 0 15px 34px rgba(229,0,99,.12); }
  100% { transform: translateY(-5px) scale(1.025); box-shadow: 0 11px 28px rgba(229,0,99,.08); }
}

@keyframes platformPhaseIn {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes platformTraceReveal {
  to { opacity: 1; }
}

@keyframes platformTrace {
  0% { transform: translateX(-110%); }
  70%, 100% { transform: translateX(190%); }
}

/* Ecosystem */
.ecosystem-section {
  position: relative;
  padding: var(--marketing-section-pad) 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 35% 45%, rgba(229,0,99,.13), transparent 28%),
    linear-gradient(145deg, #111827, #0b1020 68%, #14131a);
  color: #fff;
}

.ecosystem-heading {
  max-width: 920px;
}

.ecosystem-heading > p:not(.marketing-eyebrow) {
  max-width: 720px;
  margin: 28px 0 0;
  color: rgba(255,255,255,.68);
  font-size: 20px;
}

.ecosystem-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
  gap: clamp(40px, 5vw, 84px);
  align-items: start;
  margin-top: 72px;
}

.ecosystem-map {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.ecosystem-node {
  position: relative;
  display: grid;
  gap: 8px;
  min-height: 150px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 20px;
  background: rgba(255,255,255,.055);
  color: #fff;
  cursor: pointer;
  text-align: left;
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.ecosystem-node::after {
  content: '';
  position: absolute;
  inset: auto -20% -55% 30%;
  height: 120px;
  border-radius: 50%;
  background: rgba(255,255,255,.035);
  filter: blur(8px);
}

.ecosystem-node:hover,
.ecosystem-node:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,.24);
  background: rgba(255,255,255,.085);
}

.ecosystem-node.is-active {
  border-color: rgba(255, 91, 162, .8);
  background: rgba(229,0,99,.16);
  box-shadow: 0 18px 48px rgba(229,0,99,.14);
}

.ecosystem-node__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.52);
  box-shadow: 0 0 0 5px rgba(255,255,255,.045);
}

.ecosystem-node.is-active .ecosystem-node__dot {
  background: #ff6fac;
  box-shadow: 0 0 0 7px rgba(229,0,99,.14);
}

.ecosystem-node--orchestration .ecosystem-node__dot {
  border-radius: 3px;
}

.ecosystem-node--visibility .ecosystem-node__dot {
  width: 14px;
  height: 5px;
  border-radius: 999px;
}

.ecosystem-node strong {
  align-self: end;
  font-size: 15px;
}

.ecosystem-node small {
  color: rgba(255,255,255,.58);
  font-size: 11px;
  line-height: 1.5;
}

.ecosystem-detail {
  position: sticky;
  top: 120px;
  min-height: 330px;
  padding: 34px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 26px;
  background: rgba(255,255,255,.065);
  box-shadow: 0 30px 80px rgba(0,0,0,.18);
  backdrop-filter: blur(16px);
}

.ecosystem-detail__label,
.ecosystem-detail__hint {
  display: block;
  color: rgba(255,255,255,.46);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.ecosystem-detail h3 {
  margin-top: 24px;
}

.ecosystem-detail p {
  margin: 18px 0 32px;
  color: rgba(255,255,255,.68);
  font-size: 16px;
}

/* Process */
.process-section {
  padding: var(--marketing-section-pad) 0;
  background: #fff;
}

.process-heading {
  max-width: 970px;
}

.process-heading > p:not(.marketing-eyebrow) {
  max-width: 760px;
  margin: 28px 0 0;
  color: #4b5563;
  font-size: 20px;
}

.process-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  margin-top: 64px;
}

.process-canvas {
  position: relative;position: relative;
  min-height: 650px;
  overflow: hidden;
  border: 1px solid var(--dr-border);
  border-radius: 30px;
  background:
    linear-gradient(rgba(17,24,39,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17,24,39,.028) 1px, transparent 1px),
    #fbfcfd;
  background-size: 32px 32px;
  box-shadow: var(--dr-shadow-card);
}

.process-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.process-lines marker path {
  fill: rgba(17,24,39,.32);
}

.process-lines marker {
  overflow: visible;
}

.process-path {
  fill: none;
  stroke: rgba(17,24,39,.22);
  stroke-width: 2;
  stroke-linecap: round;
  transition: opacity 220ms ease, stroke 220ms ease, stroke-width 220ms ease;
}

.process-path--main,
.process-path--branch {
  stroke-dasharray: 9 10;
  animation: processDrift 18s linear infinite;
}

.process-path--routing {
  stroke: rgba(229,0,99,.45);
  stroke-width: 3;
}

.process-path--routing-link {
  stroke: rgba(229,0,99,.25);
  stroke-width: 1.5;
}

.process-path--telemetry {
  stroke: rgba(56,89,165,.42);
  stroke-dasharray: 3 8;
}

.process-path--cardio {
  stroke: rgba(24,121,80,.36);
  stroke-dasharray: 4 9;
}

@keyframes processDrift {
  to { stroke-dashoffset: -190; }
}

.process-node,
.process-band {
  position: absolute;
  z-index: 2;
  border: 1px solid var(--dr-border);
  background: rgba(255,255,255,.96);
  color: var(--dr-text);
  cursor: pointer;
  box-shadow: 0 14px 36px rgba(15,23,42,.07);
  text-align: left;
  transition: transform 200ms ease, border-color 200ms ease, background 200ms ease, box-shadow 200ms ease, opacity 200ms ease;
}

.process-node {
  display: grid;
  gap: 5px;
  width: 150px;
  min-height: 98px;
  padding: 16px;
  border-radius: 18px;
}

.process-node small {
  color: var(--dr-pink);
  font-size: 10px;
  font-weight: 800;
}

.process-node strong { font-size: 13px; }
.process-node span { color: var(--dr-muted); font-size: 10px; }

.process-node:hover,
.process-node:focus-visible,
.process-node.is-active {
  transform: translateY(-3px);
  border-color: var(--dr-pink-border);
  box-shadow: 0 18px 48px rgba(229,0,99,.09), var(--dr-shadow-card);
}

.process-node.is-active {
  background: var(--dr-pink-soft);
}

.process-node--email { top: 30%; left: 4%; }
.process-node--capture { top: 30%; left: 23%; }
.process-node--match { top: 30%; left: 42%; }
.process-node--accounts { top: 30%; left: 61%; }
.process-node--integration { top: 14%; right: 3.2%; }
.process-node--content { top: 48%; right: 3.2%; }

.process-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 46px;
  padding: 11px 16px;
  border-radius: 14px;
}

.process-band span { font-size: 11px; font-weight: 800; }
.process-band small { color: var(--dr-muted); font-size: 10px; }
.process-band--routing { right: 30%; bottom: 19%; left: 5%; border-color: var(--dr-pink-border); }
.process-band--telemetry { right: 7%; bottom: 3.5%; left: 5%; border-color: rgba(56,89,165,.22); }
.process-band--cardio { top: 3%; right: 5%; left: 54%; border-color: rgba(24,121,80,.22); }

.process-layout[data-active="routing"] .process-path:not(.process-path--routing):not(.process-path--routing-link),
.process-layout[data-active="telemetry"] .process-path:not(.process-path--telemetry),
.process-layout[data-active="cardiograph"] .process-path:not(.process-path--cardio) {
  opacity: .15;
}

.process-layout[data-active="routing"] .process-path--routing,
.process-layout[data-active="routing"] .process-path--routing-link {
  stroke: var(--dr-pink);
  stroke-width: 4;
}

.process-layout[data-active="telemetry"] .process-path--telemetry {
  stroke: #3859a5;
  stroke-width: 4;
}

.process-layout[data-active="cardiograph"] .process-path--cardio {
  stroke: #187950;
  stroke-width: 4;
}

.process-detail {
  align-self: stretch;
  padding: 30px;
  border: 1px solid var(--dr-border);
  border-radius: 26px;
  background: #fff;
  box-shadow: var(--dr-shadow-card);
}

.process-detail__label {
  color: var(--dr-pink);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.process-detail h3 {
  margin-top: 25px;
}

.process-detail > p:not(.process-detail__note) {
  margin-top: 18px;
  color: #4b5563;
}

.process-detail__note {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--dr-border);
  color: var(--dr-muted);
  font-size: 11px;
}

/* CTA/footer */
.contact-section {
  display: grid;
  place-items: center;
  min-height: 76svh;
  padding: 120px 0;
  background: #fbfcfd;
  text-align: center;
}

.contact-section__inner {
  max-width: 980px;
}

.contact-section h2 {
  font-size: clamp(52px, 6.8vw, 92px);
}

.contact-section__inner > p:not(.marketing-eyebrow) {
  max-width: 720px;
  margin: 30px auto 0;
  color: #4b5563;
  font-size: 20px;
}

.contact-actions {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: center;
  margin-top: 34px;
}

.contact-actions > span {
  color: var(--dr-muted);
  font-size: 12px;
  font-weight: 700;
}

.marketing-footer {
  padding: 52px 0;
  border-top: 1px solid var(--dr-border);
  background: #fff;
}

.marketing-footer__grid {
  display: flex;
  gap: 40px;
  align-items: flex-end;
  justify-content: space-between;
}

.marketing-footer img {
  width: 146px;
  height: auto;
}

.marketing-footer p {
  margin: 12px 0 0;
  color: var(--dr-muted);
  font-size: 12px;
}

.marketing-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.marketing-footer__links a {
  color: #4b5563;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

.marketing-footer__links a:hover { color: var(--dr-pink); }


/* Timed narrative motion ---------------------------------------------------
   Scrolling brings a story into view; the story then plays on its own timing. */
.story-section {
  height: auto;
  min-height: 92svh;
  padding: clamp(104px, 11vw, 156px) 0;
}

.story-sticky,
.story-sticky--reverse {
  position: relative;
  top: auto;
  min-height: 690px;
  padding-block: 0;
}

[data-timed-story] .story-copy,
[data-timed-story] .complexity-map,
[data-timed-story] .simplify-map {
  transition: opacity 520ms ease, transform 700ms cubic-bezier(.22,1,.36,1);
}

[data-timed-story]:not(.is-playing):not(.is-played) .story-copy {
  opacity: .82;
}

[data-timed-story].is-playing .story-copy,
[data-timed-story].is-played .story-copy {
  opacity: 1;
}

/* Process demonstration */
.process-detail__topline {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.process-status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 9px;
  border: 1px solid var(--dr-border);
  border-radius: var(--dr-radius-pill);
  background: #fbfcfd;
  color: var(--dr-muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.process-replay {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  margin-top: 22px;
  padding: 8px 13px;
  border: 1px solid var(--dr-border-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--dr-text);
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.process-replay:hover:not(:disabled),
.process-replay:focus-visible:not(:disabled) {
  border-color: var(--dr-pink-border);
  background: var(--dr-pink-soft);
  color: var(--dr-pink);
}

.process-replay:disabled {
  cursor: default;
  opacity: .42;
}

.process-layout.is-demo-running .process-node,
.process-layout.is-demo-running .process-band {
  opacity: .42;
}

.process-layout.is-demo-running .process-node.is-demo-current,
.process-layout.is-demo-running .process-band.is-demo-current,
.process-layout.is-demo-running .process-band.is-demo-signal {
  opacity: 1;
}

.process-layout .process-node.is-demo-current,
.process-layout .process-band.is-demo-current {
  transform: translateY(-4px) scale(1.015);
  border-color: var(--dr-pink);
  background: var(--dr-pink-soft);
  box-shadow: 0 20px 52px rgba(229,0,99,.14), var(--dr-shadow-card);
}

.process-layout .process-node.is-demo-complete {
  opacity: .78;
  border-color: rgba(24,121,80,.28);
}

.process-layout .process-band--telemetry.is-demo-signal {
  border-color: rgba(56,89,165,.72);
  background: rgba(243,247,255,.98);
  box-shadow: 0 12px 38px rgba(56,89,165,.11);
}

.process-layout .process-band--cardio.is-demo-signal {
  border-color: rgba(24,121,80,.62);
  background: rgba(236,249,243,.98);
  box-shadow: 0 12px 38px rgba(24,121,80,.10);
}

.process-path[data-flow] {
  opacity: .24;
  stroke: rgba(17,24,39,.24);
  stroke-width: 2;
  transition: opacity 260ms ease, stroke 260ms ease, stroke-width 260ms ease, filter 260ms ease;
}

.process-path[data-flow].is-flow-complete {
  opacity: .78;
  stroke: rgba(229,0,99,.40);
}

.process-path[data-flow].is-flow-active {
  opacity: 1;
  stroke: var(--dr-pink);
  stroke-width: 4;
  stroke-dasharray: 8 10;
  filter: drop-shadow(0 0 5px rgba(229,0,99,.22));
  animation: processFlowActive 1100ms linear infinite;
}

@keyframes processFlowActive {
  to { stroke-dashoffset: -36; }
}

.process-layout.is-demo-running .process-path--routing,
.process-layout.is-demo-running .process-path--routing-link {
  animation: routingBreath 1750ms ease-in-out infinite alternate;
}

.process-layout.is-demo-running .process-path--telemetry {
  animation: telemetryDrift 1350ms linear infinite;
}

.process-layout.is-demo-running .process-path--cardio {
  animation: cardiographDrift 1900ms linear infinite;
}

@keyframes routingBreath {
  from { stroke: rgba(229,0,99,.26); }
  to { stroke: rgba(229,0,99,.66); }
}

@keyframes telemetryDrift {
  to { stroke-dashoffset: -44; }
}

@keyframes cardiographDrift {
  to { stroke-dashoffset: -52; }
}

.process-layout.is-demo-complete .process-path[data-flow] {
  opacity: .72;
  stroke: rgba(229,0,99,.35);
}

@media (max-width: 1180px) {
  .marketing-nav { gap: 15px; }
  .marketing-nav > a:not(.dr-button) { font-size: 11px; }
  .hero-section__grid { grid-template-columns: minmax(0, 1fr) minmax(420px, .86fr); }
  .story-sticky { grid-template-columns: minmax(300px, .75fr) minmax(500px, 1.25fr); }
  .story-sticky--reverse { grid-template-columns: minmax(500px, 1.25fr) minmax(300px, .75fr); }
  .focused-grid { grid-template-columns: minmax(320px, .78fr) minmax(460px, 1.22fr); }
  .ecosystem-map { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-layout { grid-template-columns: 1fr; }
  .process-detail { min-height: auto; }
}

@media (max-width: 980px) {
  .marketing-header__inner { width: min(var(--marketing-max), calc(100% - 28px)); }
  .brand-lockup img { width: 112px; }
  .brand-lockup__product small { display: none; }
  .menu-toggle { display: grid; }
  .marketing-nav {
    position: absolute;
    top: calc(100% + 4px);
    right: 14px;
    left: 14px;
    display: none;
    flex-direction: column;
    gap: 0;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--dr-border);
    border-radius: 20px;
    background: rgba(255,255,255,.98);
    box-shadow: var(--dr-shadow-float);
  }
  .marketing-nav.is-open { display: flex; }
  .marketing-nav > a:not(.dr-button) { padding: 13px 12px; font-size: 13px; }
  .marketing-nav__cta.dr-button { margin: 8px 0 0; }

  .hero-section { min-height: auto; padding-top: 148px; }
  .hero-section__grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 840px; }
  .hero-visual { min-height: 500px; }

  .story-section { height: auto; padding: 100px 0; }
  .story-sticky,
  .story-sticky--reverse {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 0;
  }
  .story-sticky--reverse .story-copy { order: -1; }
  .story-copy { max-width: 760px; }
  .complexity-map,
  .simplify-map { min-height: 620px; }

  .focused-grid,
  .ecosystem-layout { grid-template-columns: 1fr; }
  .focused-copy { max-width: 760px; }
  .ecosystem-detail { position: relative; top: auto; min-height: auto; }
}

@media (max-width: 700px) {
  .marketing-container { width: min(var(--marketing-max), calc(100% - 32px)); }
  .marketing-header__inner { min-height: 52px; }
  .brand-lockup { gap: 10px; }
  .brand-lockup img { width: 92px; }
  .brand-lockup__divider { height: 24px; }
  .brand-lockup__product strong { font-size: 11px; }

  .marketing-site h1 { font-size: clamp(42px, 12vw, 58px); }
  .marketing-site h2 { font-size: clamp(38px, 10.5vw, 52px); }
  .hero-section { padding: 130px 0 56px; }
  .hero-copy__summary { font-size: 18px; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .hero-visual { min-height: 430px; margin-top: 10px; }
  .hero-engine-node { width: 150px; min-height: 96px; }
  .mini-node { width: 92px; min-height: 48px; font-size: 9px; }

  .story-section { padding: 86px 0; }
  .story-copy > p:not(.marketing-eyebrow),
  .focused-copy > p:not(.marketing-eyebrow),
  .ecosystem-heading > p:not(.marketing-eyebrow),
  .process-heading > p:not(.marketing-eyebrow) { font-size: 17px; }
  .complexity-map,
  .simplify-map { min-height: 500px; margin-inline: -10px; }
  .complexity-node,
  .simplify-node { min-width: 108px; min-height: 54px; padding: 8px 10px; font-size: 9px; border-radius: 12px; }
  .simplify-node--engine { min-width: 126px; min-height: 84px; }
  .simplify-node--integration { min-width: 112px; min-height: 80px; }
  .simplify-node--engine strong { font-size: 11px; }
  .simplify-node--integration strong { font-size: 10px; }
  .simplify-node--integration span { display: none; }

  .focused-section,
  .ecosystem-section,
  .process-section { padding: 90px 0; }
  .focused-grid { gap: 46px; }
  .platform-visual { min-height: 480px; padding: 22px; border-radius: 22px; }
  .platform-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .focused-result { right: 20px; bottom: 20px; left: 20px; }
  .platform-visual__phase { top: 20px; right: 20px; }
  .platform-extract { right: 34px; bottom: 116px; width: 42%; }

  .ecosystem-layout { margin-top: 44px; }
  .ecosystem-map { grid-template-columns: 1fr 1fr; gap: 9px; }
  .ecosystem-node { min-height: 132px; padding: 15px; border-radius: 16px; }
  .ecosystem-node strong { font-size: 12px; }
  .ecosystem-node small { font-size: 9px; }
  .ecosystem-detail { padding: 24px; }

  .process-layout { margin-top: 42px; }
  .process-canvas {
    display: grid;
    gap: 10px;
    min-height: auto;
    padding: 18px;
    background: #fbfcfd;
  }
  .process-lines { display: none; }
  .process-node,
  .process-band {
    position: relative;
    inset: auto !important;
    width: 100%;
    transform: none !important;
  }
  .process-node {
    display: grid;
    grid-template-columns: 24px 1fr auto;
    gap: 10px;
    align-items: center;
    min-height: 58px;
    padding: 12px 14px;
  }
  .process-node strong { font-size: 12px; }
  .process-node span { text-align: right; }
  .process-node--integration,
  .process-node--content {
    margin-left: 28px;
    width: calc(100% - 28px);
    border-color: var(--dr-pink-border);
  }
  .process-node--integration::before,
  .process-node--content::before {
    content: 'Parallel';
    position: absolute;
    left: -29px;
    color: var(--dr-muted);
    font-size: 8px;
    font-weight: 800;
    writing-mode: vertical-rl;
    text-transform: uppercase;
    letter-spacing: .08em;
  }
  .process-band { min-height: 48px; }
  .process-band--routing { order: -1; border-color: var(--dr-pink-border); }.process-band--cardio { order: -2; }
  .process-band--telemetry { order: 20; }
  .process-detail { padding: 24px; }

  .contact-section { min-height: 70svh; padding: 90px 0; }
  .contact-section__inner > p:not(.marketing-eyebrow) { font-size: 17px; }
  .contact-actions { flex-direction: column; }
  .marketing-footer__grid { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal-section].is-visible .platform-grid span:not(.is-needed),
  [data-reveal-section].is-visible .platform-grid .is-needed,
  [data-reveal-section].is-visible .platform-visual__phase,
  [data-reveal-section].is-visible .platform-extract,
  [data-reveal-section].is-visible .platform-extract span {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
  }
  [data-reveal-section].is-visible .focused-result { transition-delay: 0ms !important; }

  html { scroll-behavior: auto; }
  .network-line,
  .process-path--main,
  .process-path--branch,
  .engine-pulse { animation: none !important; }
  .stage-line,
  .simplify-lines path,
  .complexity-node,
  .simplify-node,
  .platform-grid span,
  .focused-result { transition: none !important; }
}

/* Revision 3: stronger Engine branding and refined animation language -------- */
.brand-lockup { gap: 12px; }
.brand-lockup__corporate { width: 124px !important; height: auto; }
.brand-lockup__engine-icon {
  width: 38px !important;
  height: 38px !important;
  object-fit: contain;
  flex: 0 0 38px;
}
.brand-lockup__product { gap: 2px; }
.brand-lockup__product strong {
  font-size: 18px;
  line-height: 1.1;
  letter-spacing: -.025em;
}
.brand-lockup__product small {
  color: var(--dr-muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .12em;
}

.marketing-button--secondary {
  border-color: var(--dr-border-strong) !important;
  background: #fff !important;
  color: var(--dr-text) !important;
  box-shadow: 0 8px 22px rgba(15,23,42,.055);
}
.marketing-button--secondary:hover,
.marketing-button--secondary:focus-visible {
  border-color: var(--dr-pink-border) !important;
  background: var(--dr-pink-soft) !important;
  color: var(--dr-pink) !important;
}
.secondary-cta-arrow {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-left: 4px;
  border-radius: 50%;
  background: var(--dr-pink-soft);
  color: var(--dr-pink);
  font-size: 13px;
  transition: transform 180ms ease;
}
.marketing-button--secondary:hover .secondary-cta-arrow { transform: translateY(2px); }

.hero-network-label { display: none; }
.bespoke-pill {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 27px;
  padding: 5px 10px;
  border: 1px solid var(--dr-pink-border);
  border-radius: 999px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 8px 22px rgba(15,23,42,.08);
  color: var(--dr-pink);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .035em;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, -50%) scale(.62);
  animation: bespokePop 520ms cubic-bezier(.16,1.35,.3,1) both;
}
.bespoke-pill--1 { top: 17%; left: 47%; animation-delay: 700ms; }
.bespoke-pill--2 { top: 31%; left: 38%; animation-delay: 1000ms; }
.bespoke-pill--3 { top: 31%; left: 63%; animation-delay: 1300ms; }
.bespoke-pill--4 { top: 51%; left: 40%; animation-delay: 1600ms; }
.bespoke-pill--5 { top: 62%; left: 59%; animation-delay: 1900ms; }
.bespoke-pill--6 { top: 76%; left: 46%; animation-delay: 2200ms; }
@keyframes bespokePop {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.58); }
  72% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.engine-card-icon {
  width: 54px;
  height: 54px;
  object-fit: contain;
}
.engine-card-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
  text-align: left;
}
.simplify-node--engine,
.simplify-node--integration {
  grid-template-columns: auto 1fr;
  place-items: center stretch;
  gap: 10px;
  padding: 14px;
}
.simplify-node--engine .engine-card-copy small,
.simplify-node--integration .engine-card-copy small { margin: 0; }
.simplify-node--engine .engine-card-copy strong,
.simplify-node--integration .engine-card-copy strong { margin: 0; }
.simplify-node--integration .engine-card-icon { width: 46px; height: 46px; }

/* Cross out unwanted platform capability before it recedes. */
.platform-grid span { position: relative; overflow: hidden; }
.platform-grid span:not(.is-needed)::after {
  content: '';
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: 0;
  height: 3px;
  border-radius: 999px;
  background: var(--dr-pink);
  transform: translate(-50%, -50%) rotate(-13deg);
  transform-origin: center;
  opacity: 0;
}
[data-reveal-section].is-visible .platform-grid span:not(.is-needed) {
  animation: platformDiscard 620ms calc(var(--discard-delay, 180ms) + 430ms) cubic-bezier(.22,1,.36,1) both;
}
[data-reveal-section].is-visible .platform-grid span:not(.is-needed)::after {
  animation: platformCrossOut 360ms var(--discard-delay, 180ms) cubic-bezier(.22,1,.36,1) both;
}
.platform-grid span:nth-child(1) { --discard-delay: 180ms; }
.platform-grid span:nth-child(2) { --discard-delay: 300ms; }
.platform-grid span:nth-child(3) { --discard-delay: 420ms; }
.platform-grid span:nth-child(4) { --discard-delay: 540ms; }
.platform-grid span:nth-child(5) { --discard-delay: 660ms; }
.platform-grid span:nth-child(7) { --discard-delay: 780ms; }
.platform-grid span:nth-child(8) { --discard-delay: 900ms; }
.platform-grid span:nth-child(9) { --discard-delay: 1020ms; }
.platform-grid span:nth-child(10) { --discard-delay: 1140ms; }
.platform-grid span:nth-child(11) { --discard-delay: 1260ms; }
.platform-grid span:nth-child(12) { --discard-delay: 1380ms; }
[data-reveal-section].is-visible .platform-grid .is-needed {
  animation: platformNeeded 1150ms 1680ms cubic-bezier(.22,1,.36,1) both;
}
[data-reveal-section].is-visible .platform-visual__phase {
  animation: platformPhaseIn 650ms 1900ms cubic-bezier(.22,1,.36,1) both;
}
[data-reveal-section].is-visible .platform-extract { animation: platformTraceReveal 350ms 2450ms ease both; }
[data-reveal-section].is-visible .platform-extract span { animation: platformTrace 1050ms 2500ms cubic-bezier(.22,1,.36,1) both; }
[data-reveal-section].is-visible .focused-result { transition-delay: 3100ms; }
@keyframes platformCrossOut {
  0% { width: 0; opacity: 0; }
  20% { opacity: 1; }
  100% { width: 88%; opacity: 1; }
}
@keyframes platformDiscard {
  0% { opacity: 1; filter: grayscale(0); transform: translateY(0) scale(1); }
  100% { opacity: .10; filter: grayscale(1); transform: translateY(7px) scale(.94); }
}
.focused-result {
  grid-template-columns: auto 1fr;
  gap: 14px;
}
.focused-result__icon {
  width: 62px;
  height: 62px;
  object-fit: contain;
}
.focused-result__copy { display: grid; gap: 2px; }
.focused-result__copy small { grid-row: auto; }
.focused-result__copy strong { font-size: 18px; }
.focused-result__copy span { color: var(--dr-muted); font-size: 11px; }

.engine-icon-placeholder {
  display: inline-grid;
  place-items: center;
  border: 1px dashed rgba(229,0,99,.42);
  border-radius: 14px;
  background: rgba(255,240,246,.9);
  color: var(--dr-pink);
  font-weight: 800;
  letter-spacing: -.04em;
}

.ecosystem-node {
  grid-template-columns: 50px minmax(0,1fr);
  gap: 14px;
  align-items: center;
}
.ecosystem-node__icon,
.ecosystem-node__icon-placeholder {
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.ecosystem-node__copy { display: grid; gap: 6px; min-width: 0; }
.ecosystem-node__dot { display: none; }

/* Process is now full-width with the stage description beneath the diagram. */
.process-layout {
  grid-template-columns: 1fr;
  gap: 20px;
}
.process-canvas { min-height: 690px; }
.process-lines { z-index: 1; }
.process-node,
.process-band { z-index: 3; }
.process-lines marker { display: none; }
.process-path--main,
.process-path--branch {
  stroke: rgba(17,24,39,.30);
  stroke-width: 3;
  stroke-dasharray: 2 11;
  stroke-linecap: round;
  animation: processDotsDrift 2200ms linear infinite;
}
@keyframes processDotsDrift { to { stroke-dashoffset: -52; } }
.process-path[data-flow] {
  opacity: .38;
  stroke: rgba(17,24,39,.28);
  stroke-width: 3;
  stroke-dasharray: 2 11;
}
.process-path[data-flow].is-flow-complete {
  opacity: .65;
  stroke: rgba(229,0,99,.35);
}
.process-path[data-flow].is-flow-active {
  opacity: 1;
  stroke: var(--dr-pink);
  stroke-width: 4;
  stroke-dasharray: 2 12;
  filter: drop-shadow(0 0 4px rgba(229,0,99,.22));
  animation: processFlowActive 1600ms linear infinite;
}
@keyframes processFlowActive { to { stroke-dashoffset: -56; } }
.process-path--cardio {
  stroke-width: 3;
  stroke-dasharray: 2 11;
}
.process-layout.is-demo-running .process-path--cardio { animation-duration: 2400ms; }

.process-node {
  grid-template-columns: 50px minmax(0,1fr);
  gap: 10px 12px;
  align-items: center;
  width: 174px;
  min-height: 112px;
}
.process-node__icon,
.process-node__placeholder {
  grid-row: 1 / 2;
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.process-node__copy { display: grid; gap: 4px; min-width: 0; }
.process-node__copy small { color: var(--dr-pink); font-size: 9px; font-weight: 800; }
.process-node__copy strong { font-size: 12px; }
.process-node__copy > span { color: var(--dr-muted); font-size: 9px; }
.process-node--email { top: 31%; left: 3%; }
.process-node--capture { top: 31%; left: 22%; }
.process-node--match { top: 31%; left: 41%; }
.process-node--accounts { top: 31%; left: 60%; }
.process-node--integration { top: 24%; right: 2.5%; }
.process-node--content { top: 49%; right: 2.5%; }

.process-band { min-height: 54px; }
.process-band__identity { display: inline-flex; gap: 10px; align-items: center; min-width: 0; }
.process-band__icon,
.process-band__placeholder { width: 34px; height: 34px; object-fit: contain; flex: 0 0 34px; }
.process-band__identity > span:last-child { font-size: 11px; font-weight: 800; }
.process-band--routing { right: 28%; bottom: 18%; left: 3%; }
.process-band--telemetry { right: 5%; bottom: 3%; left: 3%; }
.process-band--cardio { top: 2.5%; right: 4%; left: 55%; }

.process-detail {
  min-height: auto;
  padding: 26px 30px;
}
.process-detail__content {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
  margin-top: 18px;
}
.process-detail__stage {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 88px;
  padding: 16px 18px;
  border: 1px solid var(--dr-pink-border);
  border-radius: 18px;
  background: var(--dr-pink-soft);
}
.process-detail__icon,
.process-detail__placeholder {
  width: 54px;
  height: 54px;
  object-fit: contain;
  flex: 0 0 54px;
}
.process-detail__icon[hidden],
.process-detail__placeholder[hidden] { display: none !important; }
.process-detail__stage h3 {
  margin: 0;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.08;
}
.process-detail__body {
  display: grid;
  align-content: center;
  min-width: 0;
}
.process-detail__body > p:first-child {
  margin: 0;
  color: #4b5563;
  font-size: 17px;
  line-height: 1.65;
}
.process-detail__note { margin-top: 14px; padding-top: 14px; }

@media (max-width: 980px) {
  .brand-lockup__corporate { width: 106px !important; }
  .brand-lockup__engine-icon { width: 34px !important; height: 34px !important; flex-basis: 34px; }
  .brand-lockup__product strong { font-size: 15px; }
  .brand-lockup__product small { display: block; font-size: 7px; }
  .bespoke-pill { font-size: 7px; padding: 4px 8px; }
}

@media (max-width: 700px) {
  .brand-lockup__corporate { width: 80px !important; }
  .brand-lockup__engine-icon { width: 30px !important; height: 30px !important; flex-basis: 30px; }
  .brand-lockup__divider { height: 30px; }
  .brand-lockup__product strong { font-size: 12px; }
  .brand-lockup__product small { font-size: 6px; }
  .hero-actions { width: 100%; }
  .hero-actions .marketing-button { width: min(100%, 280px); }
  .bespoke-pill { transform: translate(-50%, -50%) scale(.9); font-size: 6px; min-height: 22px; }
  .bespoke-pill--2, .bespoke-pill--5 { display: none; }
  .engine-card-icon { width: 38px; height: 38px; }
  .simplify-node--engine,
  .simplify-node--integration { gap: 6px; padding: 8px; }
  .ecosystem-node { grid-template-columns: 38px minmax(0,1fr); gap: 9px; }
  .ecosystem-node__icon,
  .ecosystem-node__icon-placeholder { width: 36px; height: 36px; border-radius: 10px; }
  .process-node {
    grid-template-columns: 38px minmax(0,1fr) auto;
    width: 100%;
  }
  .process-node__icon,
  .process-node__placeholder { width: 36px; height: 36px; }
  .process-band__icon,
  .process-band__placeholder { width: 30px; height: 30px; flex-basis: 30px; }
  .process-detail { padding: 22px; }
  .process-detail__content { grid-template-columns: 1fr; gap: 16px; }
  .process-detail__stage { grid-template-columns: 44px minmax(0, 1fr); min-height: 72px; }
  .process-detail__icon,
  .process-detail__placeholder { width: 42px; height: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  .bespoke-pill { opacity: 1 !important; animation: none !important; transform: translate(-50%, -50%) scale(1) !important; }
  [data-reveal-section].is-visible .platform-grid span:not(.is-needed)::after { width: 88%; opacity: 1; animation: none !important; }
}

/* Revision 5 layout refinements */
.simplify-node--engine {
  left: 35%;
}

.simplify-node--integration {
  left: 65%;
}

.process-detail {
  width: min(76%, 1080px);
  margin-left: auto;
}

@media (max-width: 1100px) {
  .simplify-node--app,
  .simplify-node--system {
    min-width: 128px;
  }
  .simplify-node--engine {
    min-width: 172px;
  }
  .simplify-node--integration {
    min-width: 142px;
  }
}

@media (max-width: 820px) {
  .process-detail {
    width: 100%;
    margin-left: 0;
  }
}

/* Revision 6: process explainer beside the interactive diagram on desktop. */
@media (min-width: 1181px) {
  .process-layout {
    grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
    gap: 24px;
    align-items: stretch;
  }

  .process-detail {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 26px;
  }

  .process-canvas {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
  }

  .process-detail__content {
    grid-template-columns: 1fr;
    gap: 18px;
    align-content: start;
  }

  .process-detail__stage {
    grid-template-columns: 52px minmax(0, 1fr);
    min-height: 84px;
    padding: 15px 16px;
  }

  .process-detail__icon,
  .process-detail__placeholder {
    width: 50px;
    height: 50px;
  }

  .process-detail__stage h3 {
    font-size: clamp(21px, 1.7vw, 27px);
  }

  .process-detail__body > p:first-child {
    font-size: 15px;
    line-height: 1.6;
  }

  .process-detail__note {
    margin-top: 18px;
    padding-top: 16px;
  }

  .process-replay {
    margin-top: auto;
    align-self: flex-start;
  }
}

@media (max-width: 1180px) {
  .process-layout {
    grid-template-columns: 1fr;
  }

  .process-canvas {
    grid-column: 1;
    grid-row: 1;
  }

  .process-detail {
    grid-column: 1;
    grid-row: 2;
    width: 100%;
    margin-left: 0;
  }
}