/* ============================================================
   FlowDock WMS — design system
   Navy #0D1B2A · Blue #2563EB · White #F8FAFC
   ============================================================ */

:root {
  --navy: #0D1B2A;
  --navy-2: #122438;
  --navy-3: #1A3050;
  --blue: #2563EB;
  --blue-light: #60A5FA;
  --blue-soft: #DBEAFE;
  --white: #F8FAFC;
  --ink: #0D1B2A;
  --muted: #51617A;
  --muted-2: #8CA0B8;
  --line: rgba(13, 27, 42, .09);
  --line-dark: rgba(248, 250, 252, .1);
  --card: #FFFFFF;
  --shadow-sm: 0 1px 2px rgba(13,27,42,.05), 0 4px 12px rgba(13,27,42,.05);
  --shadow-md: 0 2px 4px rgba(13,27,42,.05), 0 12px 32px rgba(13,27,42,.09);
  --shadow-blue: 0 8px 24px rgba(37,99,235,.32);
  --radius: 18px;
  --nav-h: 72px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 0;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-x: clip;
}

::selection { background: rgba(37,99,235,.22); }

.container { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }

h1, h2, h3 { font-weight: 700; letter-spacing: -0.03em; line-height: 1.08; }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h3 { font-size: 1.12rem; letter-spacing: -0.015em; }

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
svg { display: block; }
use { pointer-events: none; }

/* Icon defaults — stroke style */
.ficon svg, .point > svg, .wf-node svg, .icard-art svg, .chip-ic, .t-ic, .mlogo svg {
  fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: .95rem; letter-spacing: -0.01em;
  padding: 12px 22px; border-radius: 12px; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
  position: relative; overflow: hidden;
}
.btn-ic { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.btn:hover .btn-ic { transform: translateX(3px); }
.btn-lg { padding: 15px 28px; font-size: 1rem; border-radius: 14px; }
.btn-sm { padding: 9px 16px; font-size: .88rem; border-radius: 10px; }
.btn-block { width: 100%; }

.btn-primary {
  background: linear-gradient(180deg, #3B76F0, var(--blue));
  color: #fff; box-shadow: var(--shadow-blue), inset 0 1px 0 rgba(255,255,255,.18);
}
.btn-primary::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.28) 50%, transparent 60%);
  transform: translateX(-110%); transition: transform .7s var(--ease);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(37,99,235,.42), inset 0 1px 0 rgba(255,255,255,.18); }
.btn-primary:hover::after { transform: translateX(110%); }
.btn-primary:active { transform: translateY(0); }

.btn-glass {
  background: rgba(248,250,252,.07); color: var(--white);
  border: 1px solid rgba(248,250,252,.16); backdrop-filter: blur(8px);
}
.btn-glass:hover { background: rgba(248,250,252,.13); border-color: rgba(248,250,252,.3); transform: translateY(-2px); }

.btn-ghost { color: var(--white); opacity: .85; }
.btn-ghost:hover { opacity: 1; }
.nav.is-light .btn-ghost { color: var(--ink); }

.btn-outline { border: 1px solid rgba(13,27,42,.16); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); box-shadow: var(--shadow-sm); }

/* ============ Navigation ============ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h);
  transition: background .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(13,27,42,.78);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  border-bottom-color: rgba(248,250,252,.08);
}
.nav.is-light.is-scrolled {
  background: rgba(248,250,252,.82);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 rgba(13,27,42,.03);
}
.nav-inner {
  width: min(1240px, calc(100% - 40px)); margin-inline: auto; height: 100%;
  display: flex; align-items: center; gap: 24px;
}
.nav-progress {
  position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%;
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
  transform-origin: 0 50%; transform: scaleX(0);
}

.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-mark { width: 34px; height: 34px; }
.mark-tiles rect { fill: var(--white); transition: fill .35s var(--ease); }
.nav.is-light .mark-tiles rect { fill: #2E3A4D; }
.brand-text {
  font-weight: 800; font-size: 1.22rem; letter-spacing: -0.03em; line-height: 1;
  display: flex; flex-direction: column; gap: 1px; color: var(--white);
  transition: color .35s var(--ease);
}
.nav.is-light .brand-text { color: #2E3A4D; }
.brand-text small { font-size: .58rem; font-weight: 800; letter-spacing: .22em; color: var(--blue-light); }
.nav.is-light .brand-text small { color: var(--blue); }
.brand-light .brand-text { color: var(--white); }
.brand-light .brand-text small { color: var(--blue-light); }

.nav-links { display: flex; gap: 2px; margin-inline: auto; }
.nav-link {
  position: relative; font-size: .92rem; font-weight: 500; padding: 8px 14px;
  border-radius: 99px; color: rgba(248,250,252,.72);
  transition: color .25s var(--ease), background .25s var(--ease);
}
.nav.is-light .nav-link { color: var(--muted); }
.nav-link:hover { color: var(--white); }
.nav.is-light .nav-link:hover { color: var(--ink); }
.nav-link.is-active { color: #fff; background: rgba(37,99,235,.32); }
.nav.is-light .nav-link.is-active { color: var(--blue); background: rgba(37,99,235,.1); }

.nav-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.nav-burger {
  display: none; flex-direction: column; gap: 6px; padding: 10px; margin-left: auto;
}
.nav-burger span {
  width: 22px; height: 2px; border-radius: 2px; background: var(--white);
  transition: transform .3s var(--ease), background .35s var(--ease);
}
.nav.is-light .nav-burger span { background: var(--ink); }
.nav-burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--nav-h) 0 auto 0; z-index: 99;
  display: none; flex-direction: column; gap: 4px; padding: 16px 24px 24px;
  background: rgba(13,27,42,.97); backdrop-filter: blur(16px);
  transform: translateY(-8px); opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
  border-bottom: 1px solid var(--line-dark);
}
.mobile-menu a { color: rgba(248,250,252,.85); font-weight: 600; padding: 11px 6px; font-size: 1.05rem; }
.mobile-menu a.is-active { color: var(--blue-light); }
.mobile-menu .btn { margin-top: 10px; }
.mobile-menu.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }

/* ============ Shared section bits ============ */
.section {
  min-height: 100svh;
  padding: calc(var(--nav-h) + clamp(40px, 6vh, 72px)) 0 clamp(56px, 8vh, 96px);
  position: relative;
  display: grid;
  align-items: center;
}
.section-head { max-width: 640px; margin-bottom: clamp(48px, 6vw, 72px); }
.section-head .lede { margin-top: 18px; font-size: 1.1rem; color: var(--muted); max-width: 540px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--blue); }
.eyebrow-dark { color: var(--blue-light); }
.eyebrow-dark::before { background: var(--blue-light); }
.section-head-dark h2 { color: var(--white); }
.lede-dark { color: var(--muted-2) !important; }

.grad-text {
  background: linear-gradient(92deg, var(--blue-light) 0%, var(--blue) 55%, #7DA9F7 110%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.grad-text-dark {
  background: linear-gradient(92deg, var(--blue) 0%, #4F86F2 60%, var(--blue-light) 110%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.pulse-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #4ADE80; position: relative; flex-shrink: 0;
}
.pulse-dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 1.5px solid #4ADE80; animation: ping 1.8s var(--ease) infinite;
}
@keyframes ping { 0% { transform: scale(.5); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }

/* ============ Reveal animations ============ */
.reveal, .reveal-load {
  opacity: 0; transform: translateY(26px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.reveal.is-in, .reveal-load.is-in { opacity: 1; transform: none; }
.reveal-load { transition-delay: calc(var(--d, 0) * 130ms + 100ms); }

/* ============ HERO ============ */
.hero {
  position: relative; background: var(--navy); color: var(--white);
  min-height: 100svh;
  padding: calc(var(--nav-h) + clamp(40px, 7vh, 84px)) 0 clamp(40px, 6vh, 72px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(248,250,252,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(248,250,252,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 65% at 50% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 65% at 50% 0%, #000 30%, transparent 75%);
}
.hero-beam {
  position: absolute; top: -30%; left: 50%; width: 130%; height: 90%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse 50% 60% at 50% 0%, rgba(37,99,235,.34), transparent 70%);
}
.orb { position: absolute; border-radius: 50%; filter: blur(70px); will-change: transform; }
.orb-a { width: 460px; height: 460px; top: -120px; right: -120px; background: rgba(37,99,235,.22); animation: drift 14s ease-in-out infinite alternate; }
.orb-b { width: 380px; height: 380px; bottom: -80px; left: -140px; background: rgba(96,165,250,.13); animation: drift 18s ease-in-out infinite alternate-reverse; }
@keyframes drift { from { transform: translate(0,0) scale(1); } to { transform: translate(36px, 28px) scale(1.07); } }

.hero-inner {
  position: relative; display: grid; grid-template-columns: 1.04fr .96fr;
  gap: clamp(40px, 5vw, 72px); align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .82rem; font-weight: 600; color: var(--muted-2);
  border: 1px solid rgba(248,250,252,.13); background: rgba(248,250,252,.05);
  padding: 7px 14px; border-radius: 99px; margin-bottom: 26px;
  backdrop-filter: blur(6px);
}
.hero-title { font-size: clamp(2.6rem, 5.4vw, 4.1rem); font-weight: 800; }
.hero-sub { margin-top: 22px; font-size: 1.13rem; color: var(--muted-2); max-width: 480px; line-height: 1.65; }
.hero-ctas { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 22px; margin-top: 34px; flex-wrap: wrap; }
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; font-size: .85rem; color: var(--muted-2); }
.t-ic { width: 15px; height: 15px; stroke-width: 2.4; color: #4ADE80; flex-shrink: 0; }

/* Operations panel */
.hero-visual { position: relative; perspective: 1200px; }
.ops-panel {
  background: linear-gradient(165deg, rgba(248,250,252,.085), rgba(248,250,252,.03));
  border: 1px solid rgba(248,250,252,.13); border-radius: 22px;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 30px 80px rgba(0,0,0,.45), inset 0 1px 0 rgba(248,250,252,.1);
  overflow: hidden; transform-style: preserve-3d;
  transition: transform .35s var(--ease);
  will-change: transform;
}
.ops-head {
  display: flex; align-items: center; gap: 7px; padding: 14px 18px;
  border-bottom: 1px solid rgba(248,250,252,.08); font-size: .8rem;
}
.ops-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(248,250,252,.14); }
.ops-title { margin-left: 10px; color: var(--muted-2); font-weight: 600; }
.ops-live {
  margin-left: auto; display: inline-flex; align-items: center; gap: 7px;
  color: #4ADE80; font-weight: 700; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase;
}
.ops-flow { width: 100%; height: auto; }
.flow-dash { animation: dashflow 4.5s linear infinite; }
@keyframes dashflow { to { stroke-dashoffset: -600; } }
.flow-glow-dot { filter: drop-shadow(0 0 6px rgba(96,165,250,.9)); }
.flow-node circle {
  fill: var(--navy-2); stroke: rgba(96,165,250,.4); stroke-width: 1.5;
  animation: nodepulse 4.8s var(--ease) infinite; animation-delay: var(--nd);
}
.flow-node use { stroke: var(--blue-light); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.flow-node text {
  fill: var(--muted-2); font-size: 12px; font-weight: 600; text-anchor: middle;
  font-family: var(--font); letter-spacing: .02em;
}
@keyframes nodepulse {
  0%, 100% { stroke: rgba(96,165,250,.35); }
  12% { stroke: rgba(96,165,250,1); filter: drop-shadow(0 0 8px rgba(37,99,235,.8)); }
  30% { stroke: rgba(96,165,250,.35); }
}
.ops-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: rgba(248,250,252,.07); border-top: 1px solid rgba(248,250,252,.08);
}
.ops-stat { background: var(--navy); padding: 14px 18px; display: flex; flex-direction: column; gap: 2px; }
.ops-stat small { font-size: .7rem; color: var(--muted-2); letter-spacing: .04em; }
.ops-stat strong { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.02em; }
.ops-stat em { font-style: normal; font-size: .72rem; font-weight: 600; }
.ops-stat .up { color: #4ADE80; }

.float-chip {
  position: absolute; display: flex; align-items: center; gap: 11px;
  background: rgba(18,36,56,.92); border: 1px solid rgba(248,250,252,.14);
  border-radius: 14px; padding: 11px 16px;
  box-shadow: 0 18px 40px rgba(0,0,0,.4);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  animation: hover-float 6s ease-in-out infinite;
}
.float-chip strong { display: block; font-size: .82rem; font-weight: 650; letter-spacing: -0.01em; }
.float-chip small { font-size: .72rem; color: var(--muted-2); }
.chip-ic { width: 28px; height: 28px; padding: 6px; border-radius: 9px; flex-shrink: 0; }
.chip-ic.ok { color: #4ADE80; background: rgba(74,222,128,.12); stroke-width: 2.4; }
.chip-ic.blue { color: var(--blue-light); background: rgba(37,99,235,.18); }
.chip-a { top: -22px; right: 8%; animation-delay: 0s; }
.chip-b { bottom: -34px; left: -5%; animation-delay: 3s; }
@keyframes hover-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* Trust marquee */
.trustbar { margin-top: clamp(56px, 7vw, 88px); padding-bottom: 28px; }
.trustbar-label {
  text-align: center; font-size: .74rem; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: rgba(140,160,184,.7); margin-bottom: 26px;
}
.marquee {
  overflow: hidden; position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex; gap: 56px; width: max-content;
  animation: marquee 36s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.mlogo {
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  font-weight: 700; font-size: .95rem; letter-spacing: .01em;
  color: rgba(140,160,184,.75); transition: color .3s var(--ease);
}
.mlogo:hover { color: rgba(248,250,252,.95); }
.mlogo svg { width: 20px; height: 20px; }

/* ============ Glow cards (mouse-follow) ============ */
.glow-card { position: relative; }
.glow-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(37,99,235,.09), transparent 65%);
  opacity: 0; transition: opacity .4s var(--ease); pointer-events: none;
}
.glow-card:hover::before { opacity: 1; }

/* ============ PLATFORM ============ */
.platform { background: var(--white); overflow: hidden; }
.platform .section-head { margin-inline: auto; text-align: center; }
.platform .section-head .lede { margin-inline: auto; }
.platform .eyebrow::before { display: none; }

.hub-wrap { position: relative; max-width: 900px; margin-inline: auto; }
.hub { width: 100%; height: auto; }
.hub-ring { stroke: rgba(37,99,235,.1); stroke-dasharray: 3 7; fill: none; }
.hub-ring.r1 { animation: spin 60s linear infinite; transform-origin: 450px 280px; }
.hub-ring.r2 { animation: spin 90s linear infinite reverse; transform-origin: 450px 280px; }
@keyframes spin { to { transform: rotate(360deg); } }
.hub-spokes path { stroke: rgba(37,99,235,.16); stroke-width: 1.5; stroke-dasharray: 4 6; }
.hub-pulses circle { fill: var(--blue); filter: drop-shadow(0 0 5px rgba(37,99,235,.7)); }
.hub-core > rect {
  fill: var(--navy);
  filter: drop-shadow(0 18px 40px rgba(13,27,42,.35));
}
.hub-module {
  position: absolute; left: var(--hx); top: var(--hy); transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 9px;
  background: #fff; border: 1px solid var(--line); border-radius: 13px;
  padding: 10px 18px; font-weight: 650; font-size: .92rem; letter-spacing: -0.01em;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  cursor: default;
}
.hub-module svg { width: 18px; height: 18px; color: var(--blue); fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.hub-module:hover {
  transform: translate(-50%, -50%) translateY(-4px) scale(1.04);
  border-color: rgba(37,99,235,.45); box-shadow: 0 12px 28px rgba(37,99,235,.18);
}

.platform-points {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
  margin-top: clamp(48px, 6vw, 72px);
}
.point { padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-sm); }
.point > svg { width: 24px; height: 24px; color: var(--blue); margin-bottom: 16px; }
.point h3 { margin-bottom: 8px; }
.point p { color: var(--muted); font-size: .95rem; }

/* ============ FEATURES ============ */
.features { background: linear-gradient(180deg, var(--white), #EEF3F9 140%); }
.feature-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.fcard {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.fcard:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: rgba(37,99,235,.32); }
.fcard h3 { margin-bottom: 9px; }
.fcard p { color: var(--muted); font-size: .94rem; line-height: 1.55; }
.fcard-wide { grid-column: span 2; display: flex; gap: 24px; align-items: stretch; }
.fcard-wide .fcard-body { flex: 1.1; }
.fcard-visual { flex: 1; display: flex; align-items: center; min-width: 0; }
.ficon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(160deg, rgba(37,99,235,.12), rgba(96,165,250,.07));
  border: 1px solid rgba(37,99,235,.18); color: var(--blue); margin-bottom: 18px;
  transition: transform .35s var(--ease), background .35s var(--ease);
}
.ficon svg { width: 21px; height: 21px; }
.fcard:hover .ficon { transform: scale(1.08) rotate(-4deg); background: linear-gradient(160deg, rgba(37,99,235,.2), rgba(96,165,250,.1)); }

.shelf-rows { width: 100%; display: flex; flex-direction: column; gap: 12px; }
.shelf-row { position: relative; }
.shelf-row span {
  display: block; height: 9px; border-radius: 99px; width: var(--w);
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
  transform-origin: 0 50%; transform: scaleX(0); transition: transform 1.1s var(--ease);
}
.is-in .shelf-row span { transform: scaleX(1); }
.is-in .shelf-row:nth-child(2) span { transition-delay: .12s; }
.is-in .shelf-row:nth-child(3) span { transition-delay: .24s; }
.is-in .shelf-row:nth-child(4) span { transition-delay: .36s; }
.shelf-row.low span { background: linear-gradient(90deg, #F59E0B, #FBBF24); }
.shelf-row em { font-style: normal; font-size: .7rem; color: var(--muted-2); font-weight: 600; letter-spacing: .02em; }

.spark { width: 100%; height: auto; }
.spark-line { stroke: var(--blue); stroke-width: 2.5; stroke-linecap: round; fill: none;
  stroke-dasharray: 320; stroke-dashoffset: 320; transition: stroke-dashoffset 1.6s var(--ease) .2s; }
.is-in .spark-line { stroke-dashoffset: 0; }
.spark-fill { fill: url(#sparkfill); fill: rgba(37,99,235,.08); opacity: 0; transition: opacity .9s var(--ease) 1s; }
.is-in .spark-fill { opacity: 1; }
.spark-dot { fill: var(--blue); opacity: 0; transition: opacity .4s var(--ease) 1.5s; }
.is-in .spark-dot { opacity: 1; }

/* ============ WORKFLOWS (scroll-driven) ============ */
/* overflow-x: clip (not hidden) — hidden would create a scroll container and break the sticky child */
.wf-section {
  height: 320vh; position: relative; background: var(--navy); overflow-x: clip;
}
.wf-sticky {
  position: sticky; top: 0; height: 100vh; min-height: 640px; overflow: hidden;
  display: flex; align-items: center;
}
.wf-sticky > .container { position: relative; width: min(1160px, calc(100% - 48px)); }
.wf-bg { position: absolute; inset: 0; }
.wf-glow {
  position: absolute; top: 50%; left: 50%; width: 900px; height: 600px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(37,99,235,.16), transparent 70%);
}
.wf-section .section-head { text-align: center; margin-inline: auto; margin-bottom: clamp(40px, 5vh, 64px); }
.wf-section .section-head .lede { margin-inline: auto; }
.wf-section .eyebrow::before { display: none; }

.wf-track {
  position: relative; display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 12px; align-items: start;
}
.wf-line {
  position: absolute; top: 31px; left: calc(8.33% ); right: calc(8.33%); height: 2px;
  background: rgba(248,250,252,.1); border-radius: 2px; overflow: hidden;
  z-index: 0;
}
.wf-line-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
  box-shadow: 0 0 14px rgba(37,99,235,.8);
  transition: width .2s linear;
}
.wf-step {
  position: relative; z-index: 1;
  text-align: center; padding: 0 6px; opacity: .32; transform: translateY(10px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.wf-step.is-active { opacity: 1; transform: none; }
.wf-node {
  width: 62px; height: 62px; margin: 0 auto 18px; border-radius: 18px;
  display: grid; place-items: center; position: relative; z-index: 2;
  background: var(--navy-2); border: 1px solid rgba(248,250,252,.13);
  color: var(--muted-2);
  transition: all .5s var(--ease);
}
.wf-node svg { width: 25px; height: 25px; }
.wf-step.is-active .wf-node {
  background: linear-gradient(160deg, #2E6BEE, var(--blue));
  border-color: rgba(96,165,250,.6); color: #fff;
  box-shadow: 0 0 0 5px rgba(37,99,235,.16), 0 14px 32px rgba(37,99,235,.45);
  transform: scale(1.08);
}
.wf-step.is-done .wf-node {
  background: var(--navy-3); color: var(--blue-light); border-color: rgba(96,165,250,.35);
  transform: scale(1);
}
.wf-step h3 { color: var(--white); font-size: 1rem; margin-bottom: 6px; }
.wf-step p { color: var(--muted-2); font-size: .82rem; line-height: 1.5; }
.wf-caption {
  text-align: center; margin-top: clamp(36px, 5vh, 56px);
  color: var(--muted-2); font-size: .95rem; font-weight: 600; letter-spacing: .02em;
}

/* ============ INDUSTRIES ============ */
.industries { background: var(--white); }
.industry-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; gap: 18px; }
.icard {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.icard:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: rgba(37,99,235,.32); }
.icard-tall { grid-row: span 2; }
.icard h3 { margin-bottom: 9px; }
.icard p { color: var(--muted); font-size: .94rem; flex: 1; }
.icard-tag {
  margin-top: 18px; font-size: .72rem; font-weight: 700; letter-spacing: .05em;
  color: var(--blue); text-transform: uppercase;
}
.icard-art {
  height: 92px; border-radius: 14px; margin-bottom: 22px;
  display: grid; place-items: center; position: relative; overflow: hidden;
  border: 1px solid rgba(37,99,235,.13);
}
.icard-tall .icard-art { height: 200px; }
.icard-art svg { width: 38px; height: 38px; color: var(--blue); stroke-width: 1.4; position: relative; z-index: 1; }
.icard-tall .icard-art svg { width: 56px; height: 56px; }
.icard-art::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 75% 20%, rgba(37,99,235,.16), transparent 55%),
    linear-gradient(160deg, rgba(37,99,235,.07), rgba(13,27,42,.04));
}
.icard-art::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(37,99,235,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,.07) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
}
.icard:hover .icard-art svg { animation: art-pop .5s var(--ease); }
@keyframes art-pop { 50% { transform: scale(1.12) rotate(-3deg); } }

/* ============ PROOF / RESULTS ============ */
.proof { background: linear-gradient(180deg, #EEF3F9 -40%, var(--white) 30%); }
.stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  margin-bottom: clamp(48px, 6vw, 72px);
}
.stat {
  text-align: center; padding: 34px 18px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.stat strong {
  display: block; font-size: clamp(2.1rem, 3.4vw, 2.9rem); font-weight: 800; letter-spacing: -0.04em;
  background: linear-gradient(92deg, var(--blue), var(--blue-light));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
}
.stat > span { font-size: .88rem; color: var(--muted); font-weight: 600; }

.quote-grid { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 18px; align-items: stretch; }
.quote {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 22px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.quote:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.quote blockquote { font-size: .98rem; line-height: 1.65; color: var(--ink); flex: 1; }
.quote-featured { background: var(--navy); border-color: rgba(248,250,252,.1); }
.quote-featured blockquote { color: rgba(248,250,252,.92); font-size: 1.05rem; }
.quote-featured figcaption strong { color: var(--white); }
.quote figcaption { display: flex; align-items: center; gap: 13px; }
.quote figcaption strong { display: block; font-size: .9rem; letter-spacing: -0.01em; }
.quote figcaption small { color: var(--muted-2); font-size: .78rem; }
.avatar {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; font-weight: 700; font-size: .82rem; color: #fff;
  background: linear-gradient(140deg, var(--blue), #1D4FBE);
}

/* ============ PRICING ============ */
.pricing { background: var(--white); }
.pricing .section-head { text-align: center; margin-inline: auto; }
.pricing .section-head .lede { margin-inline: auto; }
.pricing .eyebrow::before { display: none; }

.billing-toggle {
  display: flex; gap: 4px; width: max-content; margin: 0 auto clamp(36px, 4vw, 52px);
  background: #EBF0F7; border: 1px solid var(--line); border-radius: 99px; padding: 4px;
}
.bt-opt {
  padding: 9px 20px; border-radius: 99px; font-weight: 650; font-size: .9rem; color: var(--muted);
  transition: all .3s var(--ease); display: inline-flex; align-items: center; gap: 8px;
}
.bt-opt em { font-style: normal; font-size: .7rem; font-weight: 700; color: var(--blue); background: rgba(37,99,235,.1); padding: 2px 8px; border-radius: 99px; }
.bt-opt.is-on { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }

.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.pcard {
  background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 34px;
  display: flex; flex-direction: column; box-shadow: var(--shadow-sm); position: relative;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.pcard:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.pcard h3 { font-size: 1.2rem; margin-bottom: 7px; }
.pdesc { color: var(--muted); font-size: .9rem; min-height: 44px; }
.price { display: flex; align-items: baseline; gap: 3px; margin: 22px 0 24px; font-weight: 800; letter-spacing: -0.04em; }
.price sup { font-size: 1.3rem; font-weight: 700; color: var(--muted); }
.price-num { font-size: 3.1rem; line-height: 1; font-variant-numeric: tabular-nums; transition: opacity .25s var(--ease); }
.price-num.is-swap { opacity: 0; }
.price small { color: var(--muted); font-weight: 600; font-size: .9rem; }
.price-custom { font-size: 2.5rem; }
.plist { list-style: none; margin-top: 26px; display: flex; flex-direction: column; gap: 12px; }
.plist li {
  position: relative; padding-left: 28px; font-size: .92rem; color: var(--muted);
}
.plist li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 17px; height: 17px;
  border-radius: 50%; background: rgba(37,99,235,.1);
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%232563EB" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="m6 12.5 4 4 8-9"/></svg>');
  background-size: 11px; background-position: center; background-repeat: no-repeat;
}
.pcard-featured {
  border-color: rgba(37,99,235,.5);
  box-shadow: 0 0 0 1px rgba(37,99,235,.4), 0 24px 60px rgba(37,99,235,.16);
  transform: scale(1.03);
}
.pcard-featured:hover { transform: scale(1.03) translateY(-5px); }
.pbadge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(90deg, var(--blue), #3B76F0); color: #fff;
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 99px; box-shadow: var(--shadow-blue);
}
.price-note { text-align: center; margin-top: 36px; font-size: .86rem; color: var(--muted-2); }

/* ============ FINAL CTA ============ */
.cta {
  position: relative; background: var(--navy);
  min-height: 100svh;
  padding: clamp(80px, 10vh, 128px) 0;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.cta-bg { position: absolute; inset: 0; }
.cta-glow {
  position: absolute; bottom: -40%; left: 50%; transform: translateX(-50%);
  width: 1000px; height: 700px;
  background: radial-gradient(ellipse 50% 50% at 50% 100%, rgba(37,99,235,.35), transparent 70%);
}
.cta-inner { position: relative; text-align: center; max-width: 720px; }
.cta-mark { width: 58px; height: 58px; margin: 0 auto 30px; filter: drop-shadow(0 12px 30px rgba(37,99,235,.4)); }
.cta h2 { color: var(--white); font-size: clamp(2.2rem, 4.6vw, 3.4rem); }
.cta p { margin: 20px auto 0; color: var(--muted-2); font-size: 1.1rem; max-width: 520px; }
.cta-buttons { display: flex; gap: 14px; justify-content: center; margin-top: 38px; flex-wrap: wrap; }
.cta-trust { display: flex; gap: 26px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }
.cta-trust span { display: inline-flex; align-items: center; gap: 7px; font-size: .85rem; color: var(--muted-2); }

/* ============ FOOTER ============ */
.footer {
  background: #0A1622; color: var(--muted-2); border-top: 1px solid rgba(248,250,252,.06);
}
.footer-inner {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px;
  padding: clamp(48px, 6vw, 72px) 0 40px;
}
.footer-brand p { margin-top: 18px; font-size: .9rem; max-width: 280px; line-height: 1.6; }
.footer-col { display: flex; flex-direction: column; gap: 11px; }
.footer-col h4 {
  color: var(--white); font-size: .8rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; margin-bottom: 6px;
}
.footer-col a { font-size: .92rem; transition: color .25s var(--ease); width: max-content; }
.footer-col a:hover { color: var(--white); }
.footer-base {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 22px 0 28px; border-top: 1px solid rgba(248,250,252,.06); font-size: .82rem;
}

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-actions .btn-ghost { display: none; }
  .nav-burger { display: flex; }
  .mobile-menu { display: flex; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 620px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .fcard-wide { grid-column: span 2; }
  .industry-grid { grid-template-columns: repeat(2, 1fr); }
  .icard-tall { grid-row: span 1; }
  .icard-tall .icard-art { height: 92px; }
  .icard-tall .icard-art svg { width: 38px; height: 38px; }
  .quote-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .pcard-featured { transform: none; order: -1; }
  .pcard-featured:hover { transform: translateY(-5px); }
  .platform-points { grid-template-columns: 1fr; }
  .hub-module { padding: 7px 12px; font-size: .78rem; border-radius: 10px; gap: 6px; }
  .hub-module svg { width: 14px; height: 14px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .section, .hero, .cta { min-height: auto; display: block; }
  .wf-section { height: auto; background: var(--navy); padding: 88px 0; }
  .wf-sticky { position: static; height: auto; min-height: 0; display: block; }
  .wf-track { grid-template-columns: 1fr; gap: 0; max-width: 380px; margin-inline: auto; }
  .wf-line { top: 31px; bottom: 65px; left: 30px; right: auto; width: 2px; height: auto; }
  .wf-line-fill { width: 100% !important; height: var(--vfill, 0%); transition: height .2s linear; }
  .wf-step {
    display: grid; grid-template-columns: 62px 1fr; grid-template-rows: auto auto;
    column-gap: 18px; text-align: left; padding: 0 0 34px;
    opacity: .45;
  }
  /* The section scrolls normally on mobile (no sticky spotlight),
     so passed steps must stay lit instead of dimming back out */
  .wf-step.is-done { opacity: 1; transform: none; }
  .wf-node { grid-row: span 2; margin: 0; }
  .wf-step h3 { align-self: end; }
  .feature-grid { grid-template-columns: 1fr; }
  .fcard-wide { grid-column: span 1; flex-direction: column; }
  .industry-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .float-chip { display: none; }
  .hero-trust { gap: 14px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .ops-stats { grid-template-columns: repeat(3, 1fr); }
  .ops-stat { padding: 10px 12px; }
  .ops-stat strong { font-size: 1.05rem; }
}

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal, .reveal-load { opacity: 1; transform: none; }
  .wf-step { opacity: 1; transform: none; }
}
