:root {
  --color-bg: #f8fafc;
  --bg-image: none;
  --color-ink: #0f172a;
  --color-slate: #334155;
  --color-primary: #3b82f6;
  --color-primary-dark: #1d4ed8;
  --color-secondary: #18b58d;
  --color-secondary-dark: #128a6b;
  --color-border: rgba(15, 23, 42, 0.1);
  --border-color: var(--color-border);
  --accent-dark: var(--color-secondary-dark);
  --panel: #f3fbf8;
  --mono-font: 'JetBrains Mono', monospace;
  --ease-snappy: cubic-bezier(0.2, 0.7, 0.2, 1);
  --glass-bg: rgba(248, 250, 252, 0.88);
  --card-bg: #ffffff;
  --nav-bg: rgba(248, 250, 252, 0.88);
  --footer-bg: #0c4a6e;
  --hero-secondary-color: #336688;
  --bg-mask-opacity: 0;
  --bg-parallax-y: 0px;
  --bg-parallax-x: 0px;
}

* {
  box-sizing: border-box;
}

body {
  background-color: var(--color-bg);
  background-image: var(--bg-image);
  color: var(--color-ink);
  margin: 0;
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-color: var(--color-bg);
  opacity: var(--bg-mask-opacity);
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.6s ease;
}

.site-main {
  position: relative;
  z-index: 10;
}

/* Lenis */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

/* Header */
.site-nav-shell {
  position: relative;
  z-index: 60;
}

.site-nav {
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  padding: 0;
  border-bottom: 0;
  background: transparent;
  backdrop-filter: none;
}

.site-nav-inner {
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0.625rem 1.125rem;
  border-radius: 9999px;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--color-border);
  justify-content: flex-start;
  gap: 1.5rem;
}

@media (max-width: 767px) {
  .site-nav {
    left: 1rem;
    right: 1rem;
    width: auto;
    transform: none;
  }

  .site-nav-inner {
    justify-content: space-between;
    width: 100%;
  }
}

.nav-logo {
  height: 26px;
  width: auto;
  display: block;
  transition: filter 0.3s ease;
}

.site-nav a.active {
  color: var(--color-primary);
}

/* Home canvas */
#webgl-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.5s ease;
}

/* Home reveal */
.reveal-mask {
  overflow: hidden;
  display: block;
}

.reveal-text {
  /* transform: translateY(40px); Changed from 110% */
  opacity: 0;
  will-change: transform;
}

.hero-secondary-line {
  color: var(--hero-secondary-color);
}

.home-hero-video {
  position: relative;
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.1);
  transform: translateY(40px);
  opacity: 0;
}

/* Process */
.process-step {
  opacity: 0.3;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  border-left: 2px solid transparent;
  padding-left: 2rem;
  transform: translateX(0);
  cursor: pointer;
}

.process-step.active {
  opacity: 1;
  border-left: 2px solid var(--color-primary);
  transform: translateX(10px);
}

.process-step:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 6px;
}

.process-text-glass {
  display: inline;
  padding: 0.06em 0.24em;
  border-radius: 0.28rem;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* Process visuals */
.process-visual-container {
  pointer-events: none;
}

.process-visual-wrapper {
  will-change: transform;
}

.process-visual {
  pointer-events: none;
  will-change: opacity;
}

.orchestrate-route-frame {
  width: 106%;
  height: 106%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#visual-step-2 .orchestrate-route-svg {
  display: block;
  width: auto;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
}

/* 1. Strictly define the base state with high specificity */
#visual-step-2 .route-draw-path {
  stroke-dasharray: 1 10;
  stroke-dashoffset: 12;
  transition: none !important; 
}

/* 2. The recalculated 7-second timing */
@keyframes route-draw-line {
  0% {
    stroke-dashoffset: 12; /* Start drawing immediately */
  }
  21.4% {
    stroke-dashoffset: 11; /* Path is fully drawn (took 1.5s) */
  }
  64.3% {
    stroke-dashoffset: 11; /* Path holds for 3s */
  }
  85.7% {
    stroke-dashoffset: 10; /* Path erases (took 1.5s) */
  }
  100% {
    stroke-dashoffset: 10; /* Path holds empty for 1s before the loop restarts */
  }
}

/* 3. The Active State Trigger */
#visual-step-2.is-active .route-draw-path {
  /* 7s duration
    ease-in-out pacing
    1s delay on the very first play
    infinite loop
    'both' forces it to apply the 0% keyframe during the 1s delay
  */
  animation: route-draw-line 7s ease-in-out 1s infinite both;
}

.manage-card {
  width: 8.5rem;
  will-change: transform;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  backface-visibility: hidden;
  transform-origin: center;
  box-shadow: 0 10px 18px -10px rgba(15, 23, 42, 0.45), 0 3px 8px -4px rgba(15, 23, 42, 0.32);
  image-rendering: auto;
  shape-rendering: geometricPrecision;
  text-rendering: geometricPrecision;
  -ms-interpolation-mode: bicubic;
}

.manage-card-primary {
  width: 10.75rem;
  z-index: 20;
}

.manage-card-secondary {
  width: 8.5rem;
  z-index: 10;
}

@media (min-width: 768px) {
  .manage-card {
    width: 9.5rem;
  }

  .manage-card-primary {
    width: 13.5rem;
  }

  .manage-card-secondary {
    width: 11rem;
  }
}

@media (max-width: 767px) {
  .process-step {
    display: none;
  }

  .process-step.active {
    display: block;
  }

  .process-visual-container {
    display: none;
  }
}

/* Feature cards */
.features-section {
  position: relative;
  overflow: visible;
  background-color: transparent !important;
}

.features-section::before,
.features-section::after {
  content: '';
  position: absolute;
  left: -20%;
  width: 140%;
  height: 120%;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  animation: fadeIn 1s ease forwards;
}

.features-section::before {
  top: -10%;
  background: linear-gradient(
    115deg,
    transparent 40%,
    rgba(24, 181, 141, 0.18) 40%,
    rgba(24, 181, 141, 0.08) 70%,
    transparent 70%
  );
  transform: skewY(-8deg);
  mix-blend-mode: multiply;
}

.features-section::after {
  top: 10%;
  background: linear-gradient(
    245deg,
    transparent 30%,
    rgba(59, 130, 246, 0.18) 30%,
    rgba(59, 130, 246, 0.08) 60%,
    transparent 60%
  );
  transform: skewY(6deg);
  mix-blend-mode: multiply;
}

@media (max-width: 768px) {
  .features-section {
    overflow: hidden;
  }
  
  .features-section::before,
  .features-section::after {
    width: 100%;
    left: 0;
    border-radius: 0;
  }
}

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

@keyframes aura-drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(3%, -4%, 0) scale(1.06);
  }
}

.feature-card {
  background: var(--card-bg);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
  z-index: 1;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
  opacity: 0.4;
  z-index: -1;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.08);
  border-color: var(--color-primary);
}

.card-blob {
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, var(--color-primary) 0%, rgba(255, 255, 255, 0) 70%);
  opacity: 0.15;
  border-radius: 50%;
  transition: transform 0.7s ease;
  z-index: -2;
}

.feature-card:hover .card-blob {
  transform: scale(2.5);
  opacity: 0.25;
}

.card-icon {
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  color: var(--color-slate);
}

.feature-card:hover .card-icon {
  transform: scale(1.1) rotate(5deg);
  color: var(--color-primary);
}

.card-icon svg {
  width: 2.5rem;
  height: 2.5rem;
  stroke: currentColor;
}

/* Use case list */
.use-case-item {
  border-top: 1px solid var(--color-border);
  transition: background-color 0.3s ease;
}

.use-case-item:last-child {
  border-bottom: 1px solid var(--color-border);
}

.use-case-item:hover {
  background-color: rgba(15, 23, 42, 0.04);
}

.use-case-icon {
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
}

.use-case-item:hover .use-case-icon {
  opacity: 1;
  transform: translateX(0);
}

/* Integration */
.integration-logos img {
  height: 58px;
  width: auto;
  max-width: 140px;
  opacity: 0.9;
  transition: opacity 0.3s ease, transform 0.3s ease, filter 0.3s ease;
}

.integration-logos img.kyriba {
  height: 38px;
}

.integration-logos img:hover {
  opacity: 1;
  transform: translateY(-1px);
}

/* Generic page sections */
.page-hero-shell {
  padding-top: 11rem;
  padding-bottom: 5rem;
}

.page-kicker {
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  color: var(--color-secondary-dark);
  margin-bottom: 1rem;
}

.page-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.4rem, 5.6vw, 5.2rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 0;
}

.page-description {
  max-width: 52rem;
  margin-top: 1.4rem;
  font-size: 1.125rem;
  color: var(--color-slate);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.process-card {
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.85);
  padding: 1.5rem;
}

.process-card .step-id {
  font-family: 'JetBrains Mono', monospace;
  color: var(--color-secondary-dark);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.process-card h3 {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  line-height: 1.1;
}

.process-card p {
  margin-top: 0.85rem;
  color: var(--color-slate);
}

.rich-block {
  max-width: 56rem;
  margin: 0 auto;
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  padding: 1.6rem;
  background: rgba(255, 255, 255, 0.9);
}

.rich-block h2 {
  margin: 0 0 1rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.75rem;
}

.rich-block p {
  margin: 0.75rem 0 0;
  color: var(--color-slate);
}

/* ==========================================
   GET-A-DEMO PAGE
   ========================================== */

/* Hero — split layout */
.demo-hero {
  position: relative;
  padding-top: 10rem;
  padding-bottom: 5rem;
  overflow: hidden;
}

/* Decorative diagonal gradient slashes */
.demo-hero::before,
.demo-hero::after {
  content: '';
  position: absolute;
  left: -15%;
  width: 130%;
  height: 130%;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  animation: fadeIn 1.2s ease 0.3s forwards;
}

.demo-hero::before {
  top: -20%;
  background: linear-gradient(
    154deg,
    transparent 53%,
    rgba(24, 181, 141, 0.14) 42%,
    rgba(24, 181, 141, 0.05) 62%,
    transparent 77%
  );
  transform: skewY(9deg);
}

.demo-hero::after {
  top: 10%;
  background: linear-gradient(
    240deg,
    transparent 35%,
    rgba(59, 130, 246, 0.12) 35%,
    rgba(59, 130, 246, 0.04) 55%,
    transparent 55%
  );
  transform: skewY(4deg);
}

.demo-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

/* Left column — copy */
.demo-copy {
  padding-top: 2rem;
}

.demo-copy .page-kicker {
  margin-bottom: 1.2rem;
}

.demo-copy .page-title {
  font-size: clamp(2.2rem, 4.8vw, 3.8rem);
  margin-bottom: 1.6rem;
}

.demo-copy .page-description {
  margin-top: 0;
  margin-bottom: 2.4rem;
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Right column — form card */
.demo-form-col {
  position: relative;
}

.demo-form-blob {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(24, 181, 141, 0.22) 0%, transparent 70%);
  top: -60px;
  right: -80px;
  z-index: 0;
  animation: aura-drift 14s ease-in-out infinite;
  pointer-events: none;
}

.demo-form-blob-blue {
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
  bottom: -40px;
  left: -60px;
  z-index: 0;
  animation: aura-drift 18s ease-in-out infinite reverse;
  pointer-events: none;
}

.demo-form-card {
  position: relative;
  z-index: 1;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  padding: 2.2rem 2rem;
  box-shadow:
    0 24px 60px -12px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.6) inset;
  overflow: hidden;
}

/* Noise overlay */
.demo-form-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
  opacity: 0.35;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
}

.demo-form-card-header {
  margin-bottom: 1.6rem;
}

.demo-form-card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  margin: 0 0 0.35rem;
}

.demo-form-card-sub {
  font-size: 0.82rem;
  color: var(--color-slate);
  margin: 0;
}

/* Form fields */
.demo-form .form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.demo-form .form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.6rem;
}

.demo-form .form-field label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-slate);
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.02em;
}

.demo-form .form-field input,
.demo-form .form-field textarea,
.demo-form .form-field select {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: 0.65rem;
  padding: 0.7rem 0.85rem;
  background: rgba(255, 255, 255, 0.7);
  color: var(--color-ink);
  font: inherit;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.demo-form .form-field input::placeholder,
.demo-form .form-field textarea::placeholder {
  color: rgba(51, 65, 85, 0.4);
}

.demo-form .form-field input:focus,
.demo-form .form-field textarea:focus,
.demo-form .form-field select:focus {
  outline: none;
  border-color: rgba(24, 181, 141, 0.55);
  box-shadow: 0 0 0 3px rgba(24, 181, 141, 0.12);
  background: #fff;
}

.demo-form .form-field textarea {
  resize: vertical;
  min-height: 80px;
}

/* Submit button */
.demo-submit-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.85rem 1.4rem;
  border: none;
  border-radius: 0.7rem;
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-dark) 100%);
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s ease;
  margin-top: 0.6rem;
}

.demo-submit-btn::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--color-secondary) 0%, rgba(59, 130, 246, 0.6) 50%, var(--color-secondary) 100%);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
  filter: blur(12px);
}

.demo-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -6px rgba(24, 181, 141, 0.4);
}

.demo-submit-btn:hover::before {
  opacity: 1;
}

.demo-submit-btn:active {
  transform: translateY(0);
}

.demo-submit-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
  transition: transform 0.3s ease;
}

.demo-submit-btn:hover svg {
  transform: translateX(3px);
}

/* Privacy note */
.demo-form-privacy {
  margin-top: 0.9rem;
  font-size: 0.72rem;
  color: rgba(51, 65, 85, 0.55);
  text-align: center;
  line-height: 1.5;
}

/* HubSpot form embed styling */
.demo-form.hs-embed-wrap .hs-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.demo-form.hs-embed-wrap .hs-form fieldset {
  max-width: none !important;
  width: 100%;
}

.demo-form.hs-embed-wrap .hs-form fieldset.form-columns-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.demo-form.hs-embed-wrap .hs-form .hs-form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.6rem;
}

.demo-form.hs-embed-wrap .hs-form .hs-form-field > label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-slate);
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.02em;
}

.demo-form.hs-embed-wrap .hs-form .hs-form-required {
  color: var(--color-secondary-dark);
}

.demo-form.hs-embed-wrap .hs-form .hs-input {
  width: 100% !important;
  border: 1px solid var(--color-border);
  border-radius: 0.375rem;
  padding: 0.7rem 0.85rem;
  background: rgba(255, 255, 255, 0.7);
  color: var(--color-ink);
  font: inherit;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.demo-form.hs-embed-wrap .hs-form textarea.hs-input {
  resize: vertical;
  min-height: 80px;
}

.demo-form.hs-embed-wrap .hs-form .hs-input::placeholder {
  color: rgba(51, 65, 85, 0.4);
}

.demo-form.hs-embed-wrap .hs-form .hs-input:focus {
  outline: none;
  border-color: rgba(24, 181, 141, 0.55);
  box-shadow: 0 0 0 3px rgba(24, 181, 141, 0.12);
  background: #fff;
}

.demo-form.hs-embed-wrap .hs-form .actions {
  margin-top: 0.7rem;
}

.demo-form.hs-embed-wrap .hs-form .hs-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.85rem 1.4rem;
  border: none;
  border-radius: 0.375rem;
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-dark) 100%);
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 0;
}

.demo-form.hs-embed-wrap .hs-form .hs-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -6px rgba(24, 181, 141, 0.4);
}

.demo-form.hs-embed-wrap .hs-form .hs-button:active {
  transform: translateY(0);
}

.demo-form.hs-embed-wrap .hs-form .hs-error-msgs {
  margin: 0.35rem 0 0;
  padding-left: 1rem;
  color: #b91c1c;
  font-size: 0.78rem;
}

.demo-form.hs-embed-wrap .hs-form .submitted-message {
  margin-top: 0.5rem;
  font-size: 0.92rem;
  color: #0f6f57;
  line-height: 1.55;
}

/* HubSpot forms v2 (hsfc renderer) */
.demo-form.hs-embed-wrap [data-hsfc-id='Renderer'] {
  --hsf-default-row__horizontal-spacing: 1rem !important;
  --hsf-default-row__vertical-spacing: 0.75rem !important;
  --hsf-default-background__padding: 0 !important;
  --hsf-default-background__background-color: transparent !important;
  --hsf-default-background__border-style: none !important;
  --hsf-default-background__border-width: 0 !important;
  --hsf-default-background__border-radius: 0 !important;
  --hsf-default-button__font-family: 'Inter', sans-serif !important;
  --hsf-default-field-label__font-family: 'Inter', sans-serif !important;
  --hsf-default-field-input__font-family: 'Inter', sans-serif !important;
  --hsf-default-field-textarea__font-family: 'Inter', sans-serif !important;
  --hsf-global__font-family: 'Inter', sans-serif !important;
}

.demo-form.hs-embed-wrap .hsfc-Renderer,
.demo-form.hs-embed-wrap .hsfc-FormWrapper,
.demo-form.hs-embed-wrap .hsfc-Form {
  width: 100%;
}

.demo-form.hs-embed-wrap .hsfc-Step__Banner,
.demo-form.hs-embed-wrap .hsfc-ProgressBar {
  display: none !important;
}

.demo-form.hs-embed-wrap .hsfc-Form > .hsfc-Step > .hsfc-Step__Content > .hsfc-Row > .hsfc-RichText {
  display: none !important;
}

.demo-form.hs-embed-wrap .hsfc-Step,
.demo-form.hs-embed-wrap .hsfc-Step--layoutTemplate-twoThirdRight,
.demo-form.hs-embed-wrap .hsfc-Step--layoutTemplate-twoThirdLeft,
.demo-form.hs-embed-wrap .hsfc-Step--layoutTemplate-right,
.demo-form.hs-embed-wrap .hsfc-Step--layoutTemplate-left {
  border: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
}

.demo-form.hs-embed-wrap .hsfc-Step__Content {
  width: 100% !important;
  max-width: none !important;
  padding: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
}

.demo-form.hs-embed-wrap .hsfc-Row {
  margin: 0 !important;
  width: 100% !important;
}

.demo-form.hs-embed-wrap .hsfc-Step__Content > .hsfc-Row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 0.6rem !important;
}

.demo-form.hs-embed-wrap .hsfc-Step__Content > .hsfc-Row > :only-child {
  grid-column: 1 / -1;
}

.demo-form.hs-embed-wrap .hsfc-Row > .hsfc-EmailField,
.demo-form.hs-embed-wrap .hsfc-Row > .hsfc-PhoneField,
.demo-form.hs-embed-wrap .hsfc-Row > .hsfc-TextareaField,
.demo-form.hs-embed-wrap .hsfc-Row > .hsfc-DataPrivacyField {
  grid-column: 1 / -1;
}

.demo-form.hs-embed-wrap .hsfc-FieldLabel {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  color: var(--color-slate) !important;
  font-family: 'Inter', sans-serif !important;
  letter-spacing: 0.02em;
}

.demo-form.hs-embed-wrap .hsfc-FieldLabel__RequiredIndicator {
  color: var(--color-secondary-dark) !important;
}

.demo-form.hs-embed-wrap .hsfc-TextInput,
.demo-form.hs-embed-wrap .hsfc-TextareaInput {
  width: 100% !important;
  min-height: 44px;
  border: 1px solid var(--color-border) !important;
  border-radius: 0.375rem !important;
  padding: 0.72rem 0.9rem !important;
  background: rgba(248, 250, 252, 0.92) !important;
  color: var(--color-ink) !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 0.9rem !important;
  box-shadow: none !important;
  transition: all 0.3s ease;
}

.demo-form.hs-embed-wrap .hsfc-TextareaInput {
  min-height: 96px !important;
  resize: vertical;
}

.demo-form.hs-embed-wrap .hsfc-TextInput::placeholder,
.demo-form.hs-embed-wrap .hsfc-TextareaInput::placeholder {
  color: rgba(51, 65, 85, 0.4);
}

.demo-form.hs-embed-wrap .hsfc-TextInput:focus,
.demo-form.hs-embed-wrap .hsfc-TextareaInput:focus {
  outline: none !important;
  border-color: rgba(24, 181, 141, 0.55) !important;
  box-shadow: 0 0 0 3px rgba(24, 181, 141, 0.12) !important;
  background: #fff !important;
}

.demo-form.hs-embed-wrap .hsfc-PhoneInput {
  display: flex;
  align-items: center;
  width: 100% !important;
  border: 1px solid var(--color-border) !important;
  border-radius: 0.375rem !important;
  background: rgba(248, 250, 252, 0.92) !important;
  overflow: hidden;
}

.demo-form.hs-embed-wrap .hsfc-PhoneInput .hsfc-PhoneInput__FlagAndCaret {
  border-right: 1px solid var(--color-border);
  padding: 0.65rem 0.6rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(248, 250, 252, 0.85);
}

.demo-form.hs-embed-wrap .hsfc-PhoneInput .hsfc-TextInput {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.demo-form.hs-embed-wrap .hsfc-PhoneInput:focus-within {
  border-color: rgba(24, 181, 141, 0.55);
  box-shadow: 0 0 0 3px rgba(24, 181, 141, 0.12);
  background: #fff;
}

.demo-form.hs-embed-wrap .hsfc-DropdownOptions {
  border: 1px solid var(--color-border) !important;
  border-radius: 0.375rem !important;
  box-shadow: 0 12px 30px -12px rgba(15, 23, 42, 0.25) !important;
}

.demo-form.hs-embed-wrap .hsfc-DataPrivacyField .hsfc-RichText {
  display: none !important;
}

.demo-form.hs-embed-wrap .hsfc-PostSubmit {
  width: 100%;
}

.demo-form.hs-embed-wrap .hsfc-PostSubmit .hsfc-Step {
  border: 0 !important;
  background: transparent !important;
}

.demo-form.hs-embed-wrap .hsfc-PostSubmit .hsfc-Step__Content {
  position: relative;
  width: 100% !important;
  max-width: none !important;
  /* padding: 1.35rem 1.4rem 1.2rem 4.1rem !important; */
  /* border: 1px solid rgba(24, 181, 141, 0.22); */
  border-radius: 1rem;
  /* background: */
    /* linear-gradient(140deg, rgba(24, 181, 141, 0.08) 0%, rgba(59, 130, 246, 0.06) 62%, rgba(248, 250, 252, 0.95) 100%) !important; */
}

/* .demo-form.hs-embed-wrap .hsfc-PostSubmit .hsfc-Step__Content::before {
  content: '';
  position: absolute;
  top: 1.42rem;
  left: 1.35rem;
  width: 1.65rem;
  height: 1.65rem;
  background-image: url("data:image/svg+xml,%3Csvg fill='none' stroke='%2318b58d' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
} */

.demo-form.hs-embed-wrap .hsfc-PostSubmit .hsfc-RichText {
  display: block !important;
  color: #f8fafc !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 1rem !important;
  line-height: 1.5;
}

.demo-form.hs-embed-wrap .hsfc-PostSubmit .hsfc-RichText p {
  margin: 0;
}

.demo-form.hs-embed-wrap .hsfc-PostSubmit .hsfc-RichText p:first-child {
  margin-bottom: 0.5rem !important;
  color: #f8fafc !important;
  font-family: 'Space Grotesk', sans-serif !important;
  font-size: clamp(1.6rem, 2.4vw, 2rem) !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.demo-form.hs-embed-wrap .hsfc-PostSubmit .hsfc-RichText p:first-child span,
.demo-form.hs-embed-wrap .hsfc-PostSubmit .hsfc-RichText p:first-child strong {
  font: inherit !important;
  color: inherit !important;
}

.demo-form.hs-embed-wrap .hsfc-PostSubmit .hsfc-RichText p:nth-child(2) {
  color: var(--color-slate) !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 1.02rem !important;
  font-weight: 500;
  line-height: 1.5;
}

.demo-form.hs-embed-wrap .hsfc-PostSubmit .hsfc-RichText p:last-child {
  margin: 0 !important;
  opacity: 0;
  font-size: 0;
  line-height: 0;
}

.demo-form.hs-embed-wrap .hsfc-DataPrivacyField .hsfc-CheckboxField {
  margin: 0.15rem 0 0.45rem;
}

.demo-form.hs-embed-wrap .hsfc-DataPrivacyField .hsfc-FieldLabel {
  display: flex !important;
  align-items: flex-start;
  gap: 0.55rem;
  margin-bottom: 0;
  font-size: 0.78rem !important;
  letter-spacing: 0.01em;
  color: var(--color-slate) !important;
  line-height: 1.45;
}

.demo-form.hs-embed-wrap .hsfc-CheckboxInput {
  margin-top: 0.08rem;
  width: 1rem;
  height: 1rem;
  accent-color: var(--color-secondary);
}

.demo-form.hs-embed-wrap .hsfc-NavigationRow {
  margin-top: 0.8rem;
}

.demo-form.hs-embed-wrap .hsfc-NavigationRow__Buttons {
  display: flex;
  width: 100%;
  justify-content: flex-end !important;
  gap: 0.7rem;
}

.demo-form.hs-embed-wrap .hsfc-Button {
  min-height: 44px;
  min-width: 140px;
  width: auto !important;
  border: none !important;
  border-radius: 0.375rem !important;
  padding: 0.8rem 1.1rem !important;
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-dark) 100%) !important;
  color: #fff !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 0.92rem !important;
  font-weight: 700 !important;
  cursor: pointer;
  box-shadow: none !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.demo-form.hs-embed-wrap .hsfc-Button:hover:not([disabled]) {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -10px rgba(24, 181, 141, 0.35) !important;
}

.demo-form.hs-embed-wrap .hsfc-Button:active:not([disabled]) {
  transform: translateY(0);
}

.demo-form.hs-embed-wrap .hsfc-Button[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.demo-form.hs-embed-wrap .hsfc-ErrorAlert,
.demo-form.hs-embed-wrap .hsfc-ErrorMessage {
  color: #b91c1c !important;
  font-size: 0.78rem !important;
}

/* Responsive */
@media (max-width: 1023px) {
  .demo-hero-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .demo-copy {
    padding-top: 0;
    text-align: center;
  }

  .demo-form-card {
    max-width: 540px;
    margin: 0 auto;
  }
}

@media (max-width: 767px) {
  .demo-hero {
    padding-top: 8rem;
    padding-bottom: 3rem;
  }

  .demo-form .form-grid {
    grid-template-columns: 1fr;
  }

  .demo-form.hs-embed-wrap .hs-form fieldset.form-columns-2 {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .demo-form.hs-embed-wrap .hsfc-Step__Content > .hsfc-Row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .demo-form.hs-embed-wrap .hsfc-NavigationRow__Buttons {
    flex-direction: column;
    justify-content: initial !important;
  }

  .demo-form.hs-embed-wrap .hsfc-PostSubmit .hsfc-Step__Content {
    padding: 1.15rem 1.05rem 1.05rem 3.4rem !important;
  }

  .demo-form.hs-embed-wrap .hsfc-PostSubmit .hsfc-Step__Content::before {
    left: 1rem;
    top: 1.16rem;
    width: 1.45rem;
    height: 1.45rem;
  }

  .demo-form.hs-embed-wrap .hsfc-Button {
    width: 100% !important;
  }

  .demo-form-card {
    padding: 1.6rem 1.3rem;
  }

}

.btn-primary,
.btn-outline,
.btn-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0.6rem;
  transition: all 0.25s ease;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  border: 1px solid transparent;
  padding: 0.75rem 1.1rem;
}

.btn-primary:hover {
  background: var(--color-primary-dark);
}

.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  padding: 0.75rem 1.1rem;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn-text {
  color: var(--color-primary);
  padding: 0;
}

.btn-text:hover {
  color: var(--color-primary-dark);
}

/* Final cta */
.final-cta-band {
  background-color: var(--footer-bg);
  color: #f8fafc;
  padding: 8rem 1.5rem 3.5rem;
  position: relative;
  z-index: 20;
  overflow: hidden;
}

.final-cta-band h2 {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(2.4rem, 8vw, 5.6rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.final-cta-band .cta-buttons {
  margin-top: 2.5rem;
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.final-cta-band .btn-primary {
  background: var(--color-primary);
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.4);
}

.final-cta-subtitle {
  margin: 1.1rem auto 0;
  max-width: 44rem;
  color: rgba(248, 250, 252, 0.88);
  font-size: 1.05rem;
  line-height: 1.6;
}

.final-cta-band .final-newsletter-form {
  max-width: 620px;
  margin: 2.1rem auto 0;
}

/* HubSpot HTML-mode cleanup in footer CTA */
.final-cta-band .final-newsletter-form .hsfc-Step,
.final-cta-band .final-newsletter-form .hsfc-Step--layoutTemplate-left,
.final-cta-band .final-newsletter-form .hsfc-Step--layoutTemplate-right,
.final-cta-band .final-newsletter-form .hsfc-Step--layoutTemplate-twoThirdLeft,
.final-cta-band .final-newsletter-form .hsfc-Step--layoutTemplate-twoThirdRight {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.final-cta-band .final-newsletter-form .hsfc-Step__Content {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  column-gap: 0.75rem;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
}

.final-cta-band .final-newsletter-form .hsfc-Step__Banner,
.final-cta-band .final-newsletter-form .hsfc-ProgressBar {
  display: none !important;
}

.final-cta-band .final-newsletter-form .hsfc-Step > :not(.hsfc-Step__Content) {
  display: none !important;
}

.final-cta-band .final-newsletter-form .hsfc-FieldLabel,
.final-cta-band .final-newsletter-form .hsfc-TextInput,
.final-cta-band .final-newsletter-form .hsfc-TextareaInput,
.final-cta-band .final-newsletter-form .hsfc-Button {
  font-family: 'Inter', sans-serif !important;
}

.final-cta-band .final-newsletter-form .hsfc-Step__Content > .hsfc-Row {
  grid-column: 1;
  margin: 0 !important;
}

.final-cta-band .final-newsletter-form .hsfc-NavigationRow {
  grid-column: 2;
  align-self: end;
  margin-top: 0 !important;
}

.final-cta-band .final-newsletter-form .hsfc-NavigationRow__Buttons {
  width: auto !important;
  flex-wrap: nowrap;
  justify-content: flex-start !important;
}

.final-cta-band .final-newsletter-form .hsfc-Button {
  min-width: 128px;
  background: var(--color-primary) !important;
  border-radius: 0.375rem !important;
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.4) !important;
}

.final-cta-band .final-newsletter-form .hsfc-Button:hover:not([disabled]) {
  background: var(--color-primary-dark) !important;
  box-shadow: 0 12px 28px -10px rgba(59, 130, 246, 0.45) !important;
}

/* Footer */
.site-footer {
  background-color: var(--footer-bg);
  color: rgba(248, 250, 252, 0.8);
  padding: 0 1.5rem 2.2rem;
  position: relative;
  z-index: 10;
}

.site-footer-row {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}

.site-footer-links a {
  color: inherit;
  text-decoration: none;
}

.site-footer-links a:hover {
  color: #fff;
}

/* Platform legacy content restoration */
.page-section {
  padding: 88px 40px;
}

.section-shell {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.section-shell-wide {
  max-width: 1360px;
}

.section-intro {
  max-width: 860px;
  margin-bottom: 30px;
}

.section-intro h2 {
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  margin-bottom: 12px;
}

.section-intro p {
  color: #4b5563;
}

.orchestration-story-wrap {
  position: relative;
  z-index: 18;
  background: var(--color-bg);
  isolation: isolate;
  margin-top: -1px;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.orchestration-story-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-bg);
  z-index: 0;
}

.orchestration-story-wrap > .section-shell {
  position: relative;
  z-index: 1;
}

.orchestration-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
}

.orchestration-title-primary {
  color: var(--color-ink);
}

.orchestration-title-secondary {
  color: var(--hero-secondary-color);
  font-weight: 700;
}

.orchestration-story-wrap .section-intro p {
  color: var(--color-slate);
}

.orchestration-story-wrap .flow-visual {
  background:
    radial-gradient(900px 360px at 92% 6%, rgba(24, 181, 141, 0.13), transparent 74%),
    linear-gradient(180deg, #f5fcf9 0%, #ffffff 72%);
}

.orchestration-intro {
  max-width: 1020px;
}

.transfer-experience {
  position: relative;
  padding: 8px 0 0;
  margin: 66px 0;
}

.transfer-preview-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 6vw, 4.5rem);
  padding: 6px 0;
}

.transfer-preview-endpoint {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono-font);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0f172a;
}

.transfer-preview-flag {
  width: 52px;
  height: 52px;
  padding: 4px;
  object-fit: cover;
  border-radius: 50%;
  background: #f8fafc;
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.2),
    0 10px 24px rgba(15, 23, 42, 0.12);
}

.transfer-preview-path {
  position: relative;
  width: clamp(88px, 25vw, 300px);
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(2, 132, 199, 0.25) 0%, rgba(2, 132, 199, 0.9) 50%, rgba(2, 132, 199, 0.25) 100%);
}

.transfer-preview-pulse {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: #0284c7;
  box-shadow: 0 0 0 6px rgba(2, 132, 199, 0.12);
}

.transfer-preview-trigger {
  margin: 20px auto 0;
  display: flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  animation: transfer-cta-pulse 1.6s ease-in-out infinite alternate;
}

.transfer-preview-trigger:hover {
  transform: translateY(-1px);
}

.transfer-preview-trigger-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

@keyframes transfer-cta-pulse {
  0% {
    box-shadow: 0 10px 18px rgba(59, 130, 246, 0.2);
    transform: translateY(0) scale(1);
  }
  100% {
    box-shadow: 0 14px 24px rgba(59, 130, 246, 0.34);
    transform: translateY(-1px) scale(1.025);
  }
}

.transfer-preview-trigger:focus-visible,
.transfer-sim-close:focus-visible,
.transfer-sim-nav-btn:focus-visible {
  outline: 2px solid #0284c7;
  outline-offset: 2px;
}

body.transfer-sim-open {
  overflow: hidden;
}

.transfer-sim-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  background: rgba(2, 12, 27, 0.22);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  z-index: 180;
  transition: opacity 0.28s ease;
}

.transfer-sim-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.transfer-sim-shell {
  position: relative;
  width: min(100%, 1680px);
  height: calc(100vh - 28px);
  max-height: calc(100vh - 28px);
  overflow: hidden;
  background-color: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 18px;
  box-shadow:
    0 24px 60px rgba(2, 12, 27, 0.32),
    0 8px 20px rgba(2, 12, 27, 0.2);
  color: #0f172a;
  font-family: 'Space Grotesk', sans-serif;
}

.transfer-sim-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.transfer-sim-ambient-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at center, rgba(2, 132, 199, 0.03) 0%, rgba(248, 250, 252, 0) 70%);
  z-index: 0;
  pointer-events: none;
}

.transfer-sim-bottom-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40vh;
  background: linear-gradient(to top, rgba(248, 250, 252, 1) 0%, rgba(248, 250, 252, 0.8) 40%, rgba(248, 250, 252, 0) 100%);
  z-index: 5;
  pointer-events: none;
}

.transfer-sim-labels {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.transfer-sim-node-label {
  position: absolute;
  transform: translate(-50%, calc(-100% - 12px));
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-align: center;
  will-change: transform, opacity, color;
}

.transfer-sim-node-label--with-icon {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.transfer-sim-node-label--endpoint {
  white-space: normal;
  min-width: 170px;
}

.transfer-sim-node-icon {
  width: 14px;
  height: 14px;
  object-fit: contain;
  display: block;
  flex: 0 0 14px;
}

.transfer-sim-node-label--gateway .transfer-sim-gateway-logo {
  height: 14px;
  width: auto;
  display: block;
}

.transfer-sim-endpoint-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  align-items: center;
  text-align: center;
}

.transfer-sim-endpoint-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #0f172a;
}

.transfer-sim-endpoint-subtitle {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #64748b;
}

.transfer-sim-endpoint-flag {
  position: absolute;
  width: 36px;
  height: 36px;
  padding: 3px;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
  background: #f8fafc;
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.2),
    0 8px 20px rgba(15, 23, 42, 0.12);
  will-change: transform, opacity;
  pointer-events: none;
}

.transfer-sim-telemetry {
  position: absolute;
  bottom: 40px;
  right: 5vw;
  display: flex;
  gap: 2rem;
  z-index: 20;
  opacity: 0;
  pointer-events: none;
}

.transfer-sim-hud-item {
  display: flex;
  flex-direction: column;
  border-left: 2px solid #0284c7;
  padding-left: 15px;
}

.transfer-sim-hud-val {
  font-size: 1.5rem;
  font-weight: 700;
}

.transfer-sim-hud-val-success {
  color: #0284c7;
}

.transfer-sim-hud-label {
  font-size: 0.7rem;
  color: #64748b;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.transfer-sim-ui {
  position: absolute;
  bottom: 40px;
  left: 0;
  width: 100%;
  padding: 0 5vw;
  min-height: 190px;
  z-index: 10;
}

.transfer-sim-text-anchor {
  max-width: 500px;
}

.transfer-sim-phase-label {
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  color: #0284c7;
  margin-bottom: 1rem;
  text-transform: uppercase;
  font-weight: 700;
}

.transfer-sim-text-content h2 {
  font-size: 3.5rem;
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.transfer-sim-text-content p {
  font-size: 1.1rem;
  color: #64748b;
  line-height: 1.5;
  font-weight: 300;
}

.transfer-sim-controls {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.transfer-sim-nav-btn {
  background: rgba(15, 23, 42, 0.05);
  border: 1px solid rgba(15, 23, 42, 0.1);
  color: #0f172a;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.transfer-sim-nav-btn:hover:not(:disabled) {
  background: rgba(15, 23, 42, 0.1);
  border-color: #0284c7;
  color: #0284c7;
  transform: scale(1.05);
}

.transfer-sim-nav-btn:active:not(:disabled) {
  background: #3b82f6;
  border-color: #3b82f6;
  color: #ffffff;
  transform: scale(0.98);
}

.transfer-sim-nav-btn.is-invite-pulse:not(:disabled) {
  border-color: rgba(59, 130, 246, 0.58);
  color: #2563eb;
  animation: transfer-next-invite-pulse 1.05s ease-in-out infinite alternate;
}

@keyframes transfer-next-invite-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    transform: scale(1);
  }
  100% {
    box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.18);
    transform: scale(1.06);
  }
}

.transfer-sim-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.transfer-sim-step-indicator {
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  color: #64748b;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.transfer-sim-close {
  position: absolute;
  top: 18px;
  right: 20px;
  z-index: 25;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 0;
  background: rgba(248, 250, 252, 0.82);
  border: 1px solid rgba(15, 23, 42, 0.18);
  border-radius: 10px;
  color: #0f172a;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}

.transfer-sim-close svg {
  width: 28px;
  height: 28px;
}

.transfer-sim-close:hover {
  color: #3b82f6;
  border-color: rgba(59, 130, 246, 0.5);
  background: rgba(248, 250, 252, 0.94);
  transform: scale(1.08);
}

@media (max-width: 1023px) {
  .transfer-preview-stage {
    padding-top: 2px;
  }

  .transfer-sim-text-content h2 {
    font-size: 2.7rem;
  }
}

@media (max-width: 767px) {
  .transfer-sim-overlay {
    padding: 2px;
  }

  .transfer-sim-shell {
    height: calc(100vh - 4px);
    max-height: calc(100vh - 4px);
    border-radius: 14px;
  }

  body.transfer-sim-open .site-nav-shell {
    display: none;
  }

  .transfer-experience.transfer-hide-endpoint-subtitle .transfer-sim-endpoint-subtitle {
    display: none;
  }

  .transfer-preview-stage {
    flex-direction: column;
    gap: 18px;
  }

  .transfer-preview-endpoint {
    position: relative;
    width: min(240px, 90vw);
    justify-content: center;
  }

  .transfer-preview-endpoint span {
    position: absolute;
    left: calc(50% + 40px);
    top: 50%;
    transform: translateY(-50%);
  }

  .transfer-preview-path {
    width: 2px;
    height: min(86px, 18vh);
    background: linear-gradient(180deg, rgba(2, 132, 199, 0.25) 0%, rgba(2, 132, 199, 0.9) 50%, rgba(2, 132, 199, 0.25) 100%);
  }

  .transfer-sim-telemetry {
    top: 72px;
    left: 20px;
    right: 20px;
    gap: 1rem;
  }

  .transfer-sim-hud-item {
    min-width: 0;
    padding-left: 10px;
  }

  .transfer-sim-hud-val {
    font-size: 1.05rem;
  }

  .transfer-sim-hud-label {
    font-size: 0.58rem;
  }

  .transfer-sim-ui {
    bottom: 20px;
    padding: 0 20px;
    min-height: 200px;
  }

  .transfer-sim-text-anchor {
    max-width: 100%;
  }

  .transfer-sim-phase-label,
  .transfer-sim-text-content h2,
  .transfer-sim-text-content p {
    /* display: inline; */
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    -webkit-backdrop-filter: blur(1px);
    backdrop-filter: blur(1px);
  }

  .transfer-sim-phase-label {
    font-size: 0.67rem;
    margin-bottom: 0.6rem;
  }

  .transfer-sim-text-content h2 {
    font-size: 2rem;
    margin-bottom: 0.6rem;
  }

  .transfer-sim-text-content p {
    font-size: 0.94rem;
  }

  .transfer-sim-close {
    top: 12px;
    right: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .transfer-preview-trigger,
  .transfer-sim-nav-btn,
  .transfer-sim-close {
    transition: none;
  }

  .transfer-sim-nav-btn.is-invite-pulse {
    animation: none;
  }

  .transfer-preview-trigger {
    animation: none;
  }
}

.flow-story {
  position: relative;
}

.flow-visual-shell {
  position: sticky;
  top: 110px;
  z-index: 2;
}

.flow-visual {
  border: 1px solid rgba(17, 24, 39, 0.16);
  border-radius: 18px;
  padding: 22px 24px 14px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.98) 0%, rgba(242, 252, 247, 0.88) 52%, rgba(255, 255, 255, 0.98) 100%);
  box-shadow: 0 26px 56px rgba(17, 24, 39, 0.13);
  overflow: hidden;
  position: relative;
}

.flow-visual::before {
  content: '';
  position: absolute;
  width: 460px;
  height: 460px;
  right: -180px;
  top: -220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(24, 181, 141, 0.22), rgba(24, 181, 141, 0));
  animation: aura-drift 16s ease-in-out infinite;
  pointer-events: none;
}

.flow-widget {
  min-height: 418px;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 14px;
  background: radial-gradient(circle at 50% 30%, #ffffff 0%, #f3f4f6 100%);
  position: relative;
  overflow: hidden;
}

.flow-grid-lines {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(#e5e7eb 1px, transparent 1px), linear-gradient(90deg, #e5e7eb 1px, transparent 1px);
  background-size: 58px 58px;
  opacity: 0.42;
}

.flow-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.22);
  background: rgba(255, 255, 255, 0.92);
  color: #0f6f57;
  font-size: 1.65rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 7;
  transition: opacity 0.2s ease, transform 0.2s ease, border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.flow-nav:hover {
  border-color: rgba(15, 111, 87, 0.55);
  background: #ffffff;
  color: #0b5d49;
}

.flow-nav:focus-visible {
  outline: 2px solid rgba(15, 111, 87, 0.45);
  outline-offset: 2px;
}

.flow-nav:disabled {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) scale(0.85);
}

.flow-nav-prev {
  left: 12px;
}

.flow-nav-next {
  right: 12px;
}

.flow-orchestrator-layer {
  position: absolute;
  top: 30px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  pointer-events: none;
  z-index: 5;
}

.flow-brain {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(17, 24, 39, 0.1);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.12);
  transform: translateY(-16px);
  opacity: 0;
  transition: opacity 0.36s var(--ease-snappy), transform 0.36s var(--ease-snappy);
}

.flow-brain-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(24, 181, 141, 0.13);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.flow-brain-icon svg {
  width: 14px;
  height: 14px;
  stroke: #136a53;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.flow-brain-label {
  font-family: var(--mono-font);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #136a53;
  font-weight: 600;
}

.flow-bank {
  position: absolute;
  top: 49%;
  transform: translateY(-50%);
  width: 162px;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.08);
  padding: 16px 14px;
  text-align: center;
  z-index: 4;
  transition: left 0.46s var(--ease-snappy), right 0.46s var(--ease-snappy);
}

.flow-bank-origin {
  left: calc(50% - 214px);
}

.flow-bank-destination {
  left: calc(50% + 52px);
}

.flow-bank-icon {
  width: 36px;
  height: 36px;
  margin: 0 auto 10px;
  border-radius: 50%;
  border: 1px solid rgba(17, 24, 39, 0.1);
  background: #f3f7f6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.flow-bank-icon svg {
  width: 18px;
  height: 18px;
  stroke: #136a53;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.flow-bank h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 0.95rem;
  line-height: 1.2;
  margin-bottom: 4px;
}

.flow-bank p {
  font-size: 0.72rem;
  color: #64748b;
}

.flow-simple-transfer {
  position: absolute;
  top: 49%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  text-align: center;
  transition: opacity 0.3s var(--ease-snappy), transform 0.3s var(--ease-snappy);
}

.flow-simple-amount {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.flow-simple-line {
  width: 114px;
  height: 2px;
  border-radius: 999px;
  background: #d1d5db;
  position: relative;
  display: block;
}

.flow-simple-dot {
  position: absolute;
  right: -6px;
  top: 50%;
  width: 12px;
  height: 12px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: #d1d5db;
}

.flow-matrix {
  position: absolute;
  top: 58%;
  left: 50%;
  transform: translate(-50%, -45%);
  width: 58%;
  height: 62%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  z-index: 3;
}

.flow-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.flow-col-label {
  margin-bottom: 8px;
  font-family: var(--mono-font);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64748b;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.34s var(--ease-snappy);
}

.flow-node-card {
  width: 132px;
  border: 1px solid rgba(17, 24, 39, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  padding: 7px 9px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #475569;
  box-shadow: 0 3px 8px rgba(17, 24, 39, 0.06);
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.34s var(--ease-snappy), transform 0.34s var(--ease-snappy), border-color 0.28s var(--ease-snappy), box-shadow 0.28s var(--ease-snappy), filter 0.28s var(--ease-snappy);
}

.flow-node-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(17, 24, 39, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono-font);
  font-size: 0.58rem;
  line-height: 1;
  color: #334155;
  flex-shrink: 0;
}

.flow-route-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.flow-scan-beam {
  position: absolute;
  width: 2px;
  background: linear-gradient(to bottom, rgba(24, 181, 141, 0.68), rgba(24, 181, 141, 0.04));
  transform-origin: top center;
  opacity: 0;
  animation: none;
  transition: opacity 0.25s var(--ease-snappy);
}

@keyframes flow-beam-scan {
  0% {
    opacity: 0.06;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 0.06;
  }
}

.flow-route-segment {
  position: absolute;
  height: 3px;
  border-radius: 999px;
  background: rgba(24, 181, 141, 0.9);
  box-shadow: 0 0 12px rgba(24, 181, 141, 0.4);
  transform-origin: left center;
  transform: rotate(var(--angle)) scaleX(0);
  opacity: 0;
  transition: transform 0.56s var(--ease-snappy), opacity 0.24s ease;
}

.flow-route-segment::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
  background: rgba(24, 181, 141, 0.95);
  box-shadow: 0 0 10px rgba(24, 181, 141, 0.42);
}

.flow-route-segment.route-1 {
  transition-delay: 0.24s;
}

.flow-route-segment.route-2 {
  transition-delay: 0.18s;
}

.flow-route-segment.route-3 {
  transition-delay: 0.12s;
}

.flow-route-segment.route-4 {
  transition-delay: 0.06s;
}

.flow-route-segment.route-5 {
  transition-delay: 0s;
}

.flow-scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0;
  pointer-events: none;
  z-index: 5;
  opacity: 1;
  transition: opacity 0.24s var(--ease-snappy), transform 0.24s var(--ease-snappy);
}

.flow-scroll-hint span:first-child {
  font-family: var(--mono-font);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0f6f57;
}

.flow-scroll-hint-arrow {
  width: 8px;
  height: 8px;
  border-right: 2px solid rgba(15, 111, 87, 0.78);
  border-bottom: 2px solid rgba(15, 111, 87, 0.78);
  transform: rotate(45deg);
  animation: flow-hint-bounce 1.25s ease-in-out infinite;
}

@keyframes flow-hint-bounce {
  0%,
  100% {
    transform: rotate(45deg) translate(0, 0);
  }
  50% {
    transform: rotate(45deg) translate(3px, 3px);
  }
}

.flow-complete-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-snappy);
  z-index: 6;
}

.flow-complete-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #18b58d;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.flow-complete-icon svg {
  width: 25px;
  height: 25px;
  stroke: #ffffff;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.flow-complete-overlay h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 1.45rem;
  margin-bottom: 8px;
}

.flow-complete-subtitle {
  margin: 0 0 14px;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0f6f57;
  font-family: var(--mono-font);
}

.flow-complete-metrics {
  display: flex;
  gap: 28px;
}

.flow-complete-metrics div {
  text-align: center;
}

.flow-complete-metrics strong {
  display: block;
  font-size: 1.08rem;
}

.flow-complete-metrics span {
  font-family: var(--mono-font);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.flow-status {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.flow-pill {
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.64rem;
  font-family: var(--mono-font);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.8);
  color: #334155;
  transition: all 0.24s var(--ease-snappy);
}

.flow-live-copy {
  margin-top: 10px;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.08);
  min-height: 174px;
  position: relative;
  overflow: hidden;
}

.flow-copy {
  position: absolute;
  inset: 0;
  padding: 16px 18px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.24s var(--ease-snappy), transform 0.24s var(--ease-snappy);
}

.flow-copy-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(17, 24, 39, 0.15);
  background: linear-gradient(140deg, #ffffff 0%, #eef8f4 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.flow-copy-icon svg {
  width: 21px;
  height: 21px;
  stroke: var(--accent-dark);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.flow-copy-phase {
  font-family: var(--mono-font);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #0f6f57;
  margin-bottom: 6px;
}

.flow-copy h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: clamp(1.08rem, 1.7vw, 1.32rem);
  line-height: 1.24;
  margin-bottom: 7px;
}

.flow-copy p {
  color: #334155;
  max-width: 90ch;
  font-size: 0.95rem;
}

.flow-copy:first-child {
  opacity: 1;
  transform: none;
}

.flow-markers {
  margin: 10px auto 0;
  max-width: 1240px;
  padding-bottom: min(32vh, 260px);
}

.flow-marker {
  min-height: min(34vh, 270px);
}

.flow-marker:first-child {
  min-height: min(22vh, 170px);
}

.flow-marker:nth-last-child(2) {
  min-height: min(24vh, 180px);
}

.flow-marker:last-child {
  min-height: min(40vh, 320px);
}

.flow-story[data-active-step] .flow-copy {
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
}

.flow-story[data-active-step='0'] .flow-copy:nth-child(1),
.flow-story[data-active-step='1'] .flow-copy:nth-child(2),
.flow-story[data-active-step='2'] .flow-copy:nth-child(3),
.flow-story[data-active-step='3'] .flow-copy:nth-child(4),
.flow-story[data-active-step='4'] .flow-copy:nth-child(5),
.flow-story[data-active-step='5'] .flow-copy:nth-child(6),
.flow-story[data-active-step='6'] .flow-copy:nth-child(7) {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.flow-story[data-active-step='0'] .flow-pill:nth-child(1),
.flow-story[data-active-step='1'] .flow-pill:nth-child(2),
.flow-story[data-active-step='2'] .flow-pill:nth-child(3),
.flow-story[data-active-step='3'] .flow-pill:nth-child(4),
.flow-story[data-active-step='4'] .flow-pill:nth-child(5),
.flow-story[data-active-step='5'] .flow-pill:nth-child(6),
.flow-story[data-active-step='6'] .flow-pill:nth-child(7) {
  background: linear-gradient(145deg, #f2fbf8 0%, #e8f7f1 100%);
  border-color: rgba(15, 111, 87, 0.42);
  color: #0f6f57;
  box-shadow: inset 0 0 0 1px rgba(15, 111, 87, 0.16);
  font-weight: 700;
}

.flow-story:is([data-active-step='1'], [data-active-step='2'], [data-active-step='3'], [data-active-step='4'], [data-active-step='5'], [data-active-step='6']) .flow-scroll-hint {
  opacity: 0;
  transform: translate(-50%, 8px);
}

.flow-story:is([data-active-step='1'], [data-active-step='2'], [data-active-step='3'], [data-active-step='4'], [data-active-step='5'], [data-active-step='6']) .flow-bank-origin {
  left: 20px;
}

.flow-story:is([data-active-step='1'], [data-active-step='2'], [data-active-step='3'], [data-active-step='4'], [data-active-step='5'], [data-active-step='6']) .flow-bank-destination {
  left: calc(100% - 182px);
}

.flow-story:is([data-active-step='1'], [data-active-step='2'], [data-active-step='3'], [data-active-step='4'], [data-active-step='5'], [data-active-step='6']) .flow-simple-transfer {
  opacity: 0;
  transform: translate(-50%, -44%);
}

.flow-story:is([data-active-step='1'], [data-active-step='2'], [data-active-step='3'], [data-active-step='4'], [data-active-step='5'], [data-active-step='6']) .flow-brain,
.flow-story:is([data-active-step='1'], [data-active-step='2'], [data-active-step='3'], [data-active-step='4'], [data-active-step='5'], [data-active-step='6']) .flow-col-label,
.flow-story:is([data-active-step='1'], [data-active-step='2'], [data-active-step='3'], [data-active-step='4'], [data-active-step='5'], [data-active-step='6']) .flow-node-card {
  opacity: 1;
  transform: none;
}

.flow-story[data-active-step='2'] .flow-scan-beam {
  opacity: 0.5;
  animation: flow-beam-scan 2.2s linear infinite;
}

.flow-story[data-active-step='2'] .flow-node-card.is-scan-target {
  border-color: rgba(24, 181, 141, 0.45);
  box-shadow: 0 0 0 2px rgba(24, 181, 141, 0.13);
}

.flow-story:is([data-active-step='4'], [data-active-step='5'], [data-active-step='6']) .flow-node-card.is-loser {
  opacity: 0.24;
  filter: grayscale(1);
}

.flow-story:is([data-active-step='4'], [data-active-step='5'], [data-active-step='6']) .flow-node-card.is-winner {
  border-color: rgba(24, 181, 141, 0.8);
  box-shadow: 0 0 0 2px rgba(24, 181, 141, 0.15), 0 6px 18px rgba(17, 24, 39, 0.08);
  color: #0f172a;
}

.flow-story[data-active-step='3'] .flow-route-segment.route-1,
.flow-story[data-active-step='4'] .flow-route-segment.route-1,
.flow-story[data-active-step='4'] .flow-route-segment.route-2,
.flow-story[data-active-step='4'] .flow-route-segment.route-3,
.flow-story[data-active-step='4'] .flow-route-segment.route-4,
.flow-story[data-active-step='5'] .flow-route-segment,
.flow-story[data-active-step='6'] .flow-route-segment {
  opacity: 1;
  transform: rotate(var(--angle)) scaleX(1);
}

.flow-story[data-active-step='3'] .flow-route-segment.route-1 {
  transition-delay: 0s;
}

.flow-story[data-active-step='4'] .flow-route-segment.route-1 {
  transition-delay: 0s;
}

.flow-story[data-active-step='4'] .flow-route-segment.route-2 {
  transition-delay: 0.22s;
}

.flow-story[data-active-step='4'] .flow-route-segment.route-3 {
  transition-delay: 0.46s;
}

.flow-story[data-active-step='4'] .flow-route-segment.route-4 {
  transition-delay: 0.72s;
}

.flow-story:is([data-active-step='5'], [data-active-step='6']) .flow-route-segment.route-5 {
  transition-delay: 0.24s;
}

.flow-story[data-active-step='6'] .flow-complete-overlay {
  opacity: 1;
}

#platform-differentiators {
  background:
    linear-gradient(115deg, transparent 75%, rgba(24, 181, 141, 0.16) 75%),
    linear-gradient(245deg, transparent 60%, rgba(59, 130, 246, 0.16) 60%),
    linear-gradient(325deg, transparent 70%, rgba(24, 181, 141, 0.1) 70%),
    linear-gradient(35deg, transparent 80%, rgba(59, 130, 246, 0.2) 80%),
    linear-gradient(to bottom, #f8fafc 0%, transparent 50%, #f8fafc 100%);
}

#platform-differentiators::before,
#platform-differentiators::after {
  display: none;
}

@media (max-width: 1023px) {
  .site-nav-inner {
    gap: 1rem;
    padding: 0.5rem 0.9rem;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }

  .flow-visual-shell {
    position: relative;
    top: auto;
  }

  .flow-bank-origin {
    left: 10px;
  }

  .flow-bank-destination {
    left: auto;
    right: 10px;
  }

  .flow-matrix {
    width: calc(100% - 24px);
    height: 58%;
    gap: 8px;
  }

  .flow-node-card {
    width: 100%;
  }

  .flow-nav {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 767px) {
  .site-nav {
    top: 0.8rem;
    width: calc(100% - 1rem);
    left: 0.5rem;
    transform: none;
  }

  .site-nav-inner {
    width: 100%;
    justify-content: space-between;
  }

  .page-hero-shell {
    padding-top: 8.8rem;
    padding-bottom: 3.6rem;
  }

  .page-section {
    padding: 60px 20px;
  }

  .flow-widget {
    min-height: 620px;
  }

  .flow-matrix {
    grid-template-columns: 1fr;
    top: 56%;
    height: auto;
  }

  .flow-live-copy {
    min-height: 210px;
  }

  .orchestration-story-wrap .flow-story {
    display: none;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .final-cta-band {
    padding-top: 5.5rem;
  }

  .final-cta-subtitle {
    font-size: 0.95rem;
  }

  .final-cta-band .final-newsletter-form {
    margin-top: 1.6rem;
    max-width: 100%;
  }

  .final-cta-band .final-newsletter-form .hsfc-Step__Content {
    grid-template-columns: 1fr;
    row-gap: 0.65rem;
  }

  .final-cta-band .final-newsletter-form .hsfc-Step__Content > .hsfc-Row,
  .final-cta-band .final-newsletter-form .hsfc-NavigationRow {
    grid-column: 1;
  }

  .site-footer-row {
    flex-direction: column;
  }
}
