/* ═══════════════════════════════════════════════════
   VECTOR — 2026 MOTION LANGUAGE
   Loaded LAST. Kills amateur keyframes, installs
   spring-physics easings, mouse-aware atmospheric
   lighting, and polished micro-interactions.
═══════════════════════════════════════════════════ */

:root {
  --ease-spring:        cubic-bezier(.34, 1.4, .55, 1);
  --ease-out-expo:      cubic-bezier(.16, 1, .3, 1);
  --ease-in-out-quart:  cubic-bezier(.76, 0, .24, 1);
  --ease-snap:          cubic-bezier(.22, 1, .36, 1);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* ─────────────────────────────────────────────
   1. KILL THE AMATEUR LOOPS
   ───────────────────────────────────────────── */

/* Intelligence-section nodes were bobbing on a translateY loop —
   that reads as "screensaver" not "system". Remove. */
.ic-node,
.ic-n1, .ic-n2, .ic-n3, .ic-n4, .ic-n5, .ic-n6 {
  animation: none !important;
  margin-top: 0 !important;
}
.ic-n3 { top: 50%; left: 0; transform: translateY(-50%); }
.ic-n4 { top: 50%; right: 0; transform: translateY(-50%); }

/* Pip — softer cadence, not a blinking neon sign */
.pip {
  animation: vec-pip 3.2s var(--ease-in-out-quart) infinite !important;
}
@keyframes vec-pip {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .42; transform: scale(.78); }
}

/* Ring pulse — slower, breath-like */
.ic-ring {
  animation: vec-ring 5.4s var(--ease-in-out-quart) infinite !important;
}
.ic-ring:nth-child(1) { animation-delay: 0s !important; }
.ic-ring:nth-child(2) { animation-delay: 1.2s !important; }
.ic-ring:nth-child(3) { animation-delay: 2.4s !important; }
@keyframes vec-ring {
  0%, 100% { opacity: .2;  transform: scale(1); }
  50%      { opacity: .55; transform: scale(1.06); }
}

/* ─────────────────────────────────────────────
   2. REVEAL — confident, spring-eased
   ───────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(2px);
  transition:
    opacity   .9s  var(--ease-out-expo),
    transform .9s  var(--ease-out-expo),
    filter    .6s  var(--ease-out-expo);
}
.reveal.in {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

/* Stagger reveal children */
.pillars.reveal.in .pillar,
.tgrid.reveal.in   .tcard,
.faq-list.reveal.in .faq-item,
.diff-cols.reveal.in > div,
.or-pillars.reveal.in .or-pillar,
.ncnp-how-grid.reveal.in .ncnp-how-item {
  animation: vec-rise .85s var(--ease-out-expo) both;
}
.pillars.reveal.in .pillar:nth-child(1),
.tgrid.reveal.in   .tcard:nth-child(1),
.diff-cols.reveal.in > div:nth-child(1),
.or-pillars.reveal.in .or-pillar:nth-child(1),
.ncnp-how-grid.reveal.in .ncnp-how-item:nth-child(1) { animation-delay: .04s; }
.pillars.reveal.in .pillar:nth-child(2),
.tgrid.reveal.in   .tcard:nth-child(2),
.diff-cols.reveal.in > div:nth-child(2),
.or-pillars.reveal.in .or-pillar:nth-child(2),
.ncnp-how-grid.reveal.in .ncnp-how-item:nth-child(2) { animation-delay: .14s; }
.pillars.reveal.in .pillar:nth-child(3),
.tgrid.reveal.in   .tcard:nth-child(3),
.or-pillars.reveal.in .or-pillar:nth-child(3),
.ncnp-how-grid.reveal.in .ncnp-how-item:nth-child(3) { animation-delay: .24s; }
.ncnp-how-grid.reveal.in .ncnp-how-item:nth-child(4) { animation-delay: .34s; }
.faq-list.reveal.in .faq-item:nth-child(1) { animation-delay: .04s; }
.faq-list.reveal.in .faq-item:nth-child(2) { animation-delay: .12s; }
.faq-list.reveal.in .faq-item:nth-child(3) { animation-delay: .20s; }
.faq-list.reveal.in .faq-item:nth-child(4) { animation-delay: .28s; }
.faq-list.reveal.in .faq-item:nth-child(5) { animation-delay: .36s; }
@keyframes vec-rise {
  from { opacity: 0; transform: translateY(20px); filter: blur(2px); }
  to   { opacity: 1; transform: none;             filter: blur(0); }
}

/* ─────────────────────────────────────────────
   3. HERO — mouse-aware atmosphere + canvas
   ───────────────────────────────────────────── */
#hero {
  --mx: 50%;
  --my: 30%;
  --m-strength: 0;        /* 0..1, faded in on first move */
}

/* Replace the static dot-grid with a spotlight-responsive one */
#hero::before {
  content: '';
  position: absolute !important;
  inset: 0; z-index: 1 !important;
  pointer-events: none;
  background-image:
    radial-gradient(
      circle at var(--mx) var(--my),
      rgba(140, 144, 255, calc(.55 * var(--m-strength))) 0px,
      rgba(140, 144, 255, calc(.18 * var(--m-strength))) 120px,
      rgba(140, 144, 255, 0) 360px
    ),
    radial-gradient(circle, rgba(99,102,241,.32) 1px, transparent 1px) !important;
  background-size: auto, 28px 28px !important;
  mask-image: radial-gradient(ellipse 100% 100% at 50% 0%, black 0%, transparent 75%) !important;
  -webkit-mask-image: radial-gradient(ellipse 100% 100% at 50% 0%, black 0%, transparent 75%) !important;
  opacity: 1 !important;
  transition: opacity .8s ease;
}

/* The aurora behind the hero copy — keep, but breathe */
#hero::after {
  animation: vec-aurora 14s var(--ease-in-out-quart) infinite !important;
}
@keyframes vec-aurora {
  0%, 100% { transform: translate(0, 0)     scale(1); opacity: 1; }
  50%      { transform: translate(-30px, 24px) scale(1.08); opacity: .9; }
}

/* Hero viz — canvas sits behind the cards, above the dot grid */
.hero-viz { position: relative; }
.hero-viz .hv-lines { display: none !important; }   /* replaced by canvas */
.hero-viz .hv-card  { z-index: 3; will-change: transform; }
.hero-viz .hvc-core { z-index: 2; }
.hero-particles {
  position: absolute !important;
  inset: 0 !important;
  z-index: 1;
  pointer-events: none;
}
.hv-card {
  transition: transform .4s var(--ease-out-expo), box-shadow .35s ease !important;
}

/* Orchestration core — pulsing data heartbeat */
.hvc-core {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  padding: 18px 22px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 50%,
      rgba(99,102,241,.18) 0%,
      rgba(99,102,241,.06) 50%,
      transparent 90%);
  pointer-events: none;
}
.hvc-core-label {
  font-family: var(--sans);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(165,168,251,.85);
}
.hvc-core-val {
  font-family: var(--sans);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -.04em;
  color: #fff;
  margin: 4px 0 2px;
  font-variant-numeric: tabular-nums;
}
.hvc-core-sub {
  font-family: var(--sans);
  font-size: 10px;
  color: rgba(255,255,255,.45);
  letter-spacing: .04em;
}
.hvc-core-pip {
  display: inline-block;
  margin-top: 8px;
  width: 38px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(165,168,251,.7), transparent);
}

/* ─────────────────────────────────────────────
   4. CARDS — magnetic lift, not generic hover
   ───────────────────────────────────────────── */
.pillar, .tcard, .nf-item, .or-pillar {
  will-change: transform, box-shadow;
  transition:
    transform   .35s var(--ease-spring),
    box-shadow  .35s ease,
    border-color .25s ease !important;
}
.pillar:hover, .tcard:hover {
  transform: translateY(-4px) !important;
}

/* Pillar icon — scales on parent hover */
.pillar:hover .pillar-ico,
.or-pillar:hover .or-pillar-icon {
  transform: scale(1.08) rotate(-3deg);
  transition: transform .45s var(--ease-spring);
}
.pillar-ico, .or-pillar-icon {
  transition: transform .35s var(--ease-spring);
}

/* ─────────────────────────────────────────────
   5. BUTTONS — magnetic press
   ───────────────────────────────────────────── */
.btn, .nav-cta {
  position: relative;
  transition:
    transform   .25s var(--ease-spring),
    background  .25s ease,
    box-shadow  .25s ease,
    border-color .25s ease !important;
  will-change: transform;
}
.btn:active, .nav-cta:active {
  transform: translateY(0) scale(.96) !important;
  transition-duration: .08s !important;
}
.btn-ink svg, .nav-cta svg {
  transition: transform .25s var(--ease-spring);
}
.btn-ink:hover svg, .nav-cta:hover svg {
  transform: translateX(3px);
}

/* ─────────────────────────────────────────────
   6. FAQ — silkier accordion
   ───────────────────────────────────────────── */
.faq-a {
  transition:
    max-height .55s var(--ease-in-out-quart),
    opacity     .35s ease !important;
}
.faq-icon {
  transition: all .35s var(--ease-spring) !important;
}

/* ─────────────────────────────────────────────
   7. STATS — counter readability
   ───────────────────────────────────────────── */
.hs-val, .ps-val, .roi-out-val, .cg-val,
.hvc-core-val, [data-tick] {
  font-variant-numeric: tabular-nums;
}

/* ─────────────────────────────────────────────
   8. SIGNAL FLOW LINES (intelligence section)
   ───────────────────────────────────────────── */
#intelligence .ic-svg line {
  stroke-dasharray: 4 8;
  animation: vec-dash 24s linear infinite;
}
@keyframes vec-dash {
  to { stroke-dashoffset: -200; }
}

/* ─────────────────────────────────────────────
   9. NAV — entrance
   ───────────────────────────────────────────── */
nav {
  animation: vec-nav-in .9s var(--ease-out-expo) both;
}
@keyframes vec-nav-in {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: none; }
}

/* ─────────────────────────────────────────────
   10. HERO COPY — staggered cinematic entrance
   ───────────────────────────────────────────── */
#hero .hero-eyebrow,
#hero h1.hero-h1,
#hero .hero-sub,
#hero .hero-no-list,
#hero .hero-actions,
#hero .hero-stats {
  animation: vec-rise 1s var(--ease-out-expo) both;
}
#hero .hero-eyebrow { animation-delay: .1s;  }
#hero h1.hero-h1    { animation-delay: .22s; }
#hero .hero-sub     { animation-delay: .38s; }
#hero .hero-no-list { animation-delay: .50s; }
#hero .hero-actions { animation-delay: .62s; }
#hero .hero-stats   { animation-delay: .74s; }

#hero .hero-viz {
  animation: vec-rise-r 1.1s var(--ease-out-expo) both;
  animation-delay: .35s;
}
@keyframes vec-rise-r {
  from { opacity: 0; transform: translateY(28px) scale(.985); filter: blur(3px); }
  to   { opacity: 1; transform: none;                          filter: blur(0); }
}

/* ─────────────────────────────────────────────
   11. SECTION SCROLL — subtle parallax overlay (cheap & effective)
   ───────────────────────────────────────────── */
.section-pad, .section-pad-lg {
  scroll-margin-top: 80px;
}

/* ─────────────────────────────────────────────
   12. NAV HIDE ON SCROLL DOWN
   ───────────────────────────────────────────── */
nav {
  transition: transform .45s var(--ease-out-expo), background .3s ease, box-shadow .3s ease !important;
}
nav.hidden-down {
  transform: translateY(-100%);
}

/* ─────────────────────────────────────────────
   13. ROI sliders — better thumb
   ───────────────────────────────────────────── */
.roi-row input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
}
.roi-row input[type=range]::-webkit-slider-runnable-track {
  height: 3px;
  background: rgba(255,255,255,.12);
  border-radius: 2px;
}
.roi-row input[type=range]::-moz-range-track {
  height: 3px;
  background: rgba(255,255,255,.12);
  border-radius: 2px;
}
.roi-row input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px; height: 16px; margin-top: -7px;
  background: #fff;
  border-radius: 50%;
  border: 2px solid #6366f1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(79,70,229,.4);
  transition: transform .2s var(--ease-spring);
}
.roi-row input[type=range]::-moz-range-thumb {
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 50%;
  border: 2px solid #6366f1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(79,70,229,.4);
}
.roi-row input[type=range]:hover::-webkit-slider-thumb {
  transform: scale(1.15);
}

/* ─────────────────────────────────────────────
   14. NAV LOGO HOVER — subtle arrow glow
   ───────────────────────────────────────────── */
.nav-logo {
  transition: filter .3s ease;
}
.nav-logo:hover {
  filter: drop-shadow(0 0 8px rgba(99,102,241,.35));
}

/* ─────────────────────────────────────────────
   15. STATS — (gradient bg removed; was painting
   over the numbers as solid currentColor blocks)
   ───────────────────────────────────────────── */

/* ─────────────────────────────────────────────
   16. PILLAR — left rail accent on hover
   ───────────────────────────────────────────── */
.pillar {
  position: relative;
  overflow: hidden;
}
.pillar::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, #4F46E5, #818cf8);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .45s var(--ease-out-expo);
}
.pillar:hover::before {
  transform: scaleY(1);
}

/* ─────────────────────────────────────────────
   17. CLIENTS strip — marquee that doesn't restart
   ───────────────────────────────────────────── */
.clients-row {
  animation: vec-marquee 38s linear infinite;
}
@keyframes vec-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.clients:hover .clients-row { animation-play-state: paused; }

/* ─────────────────────────────────────────────
   18. CTA dark surface — meeting indicator pulse
   ───────────────────────────────────────────── */
.cp-item {
  transition: background .25s ease, transform .35s var(--ease-spring) !important;
}
.cp-item:hover {
  transform: translateX(3px);
}

/* ─────────────────────────────────────────────
   19. NAV — accent underline on hover
   ───────────────────────────────────────────── */
.nav-links a {
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -22px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #4F46E5, transparent);
  transform: scaleX(0);
  transition: transform .4s var(--ease-out-expo);
}
.nav-links a:hover::after {
  transform: scaleX(.7);
}


/* ═══════════════════════════════════════════════════
   HERO VIZ — clean vertical pipeline story (v2)
   3 staggered glass cards + flowing bezier connectors.
═══════════════════════════════════════════════════ */

/* Reset anything from the old viz that might still be matched */
.hero-viz .hv-card,
.hero-viz .hvc-core { display: none !important; }

.hero-viz {
  position: relative;
  height: 560px !important;
  pointer-events: none;
}
.hero-viz > * { pointer-events: auto; }

/* SVG flow layer */
.hv-flow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
  overflow: visible;
}

/* Glass card base */
.hv-stage {
  position: absolute;
  width: 240px;
  padding: 16px 18px 14px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.10) 0%, rgba(255,255,255,.04) 100%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.14),
    0 14px 36px -10px rgba(0,0,0,.45),
    0 2px 6px rgba(0,0,0,.18);
  color: rgba(255,255,255,.92);
  z-index: 2;
}
.hv-stage-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.hv-stage-tag {
  font-family: var(--sans);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .12em;
  color: rgba(255,255,255,.5);
  text-transform: uppercase;
}
.hv-tag-indigo { color: #a5a8fb; }
.hv-tag-green  { color: #34d399; }
.hv-stage-pip {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 3px rgba(52,211,153,.16);
  animation: hv-pip 1.6s ease-in-out infinite;
}
@keyframes hv-pip {
  0%, 100% { transform: scale(1);   box-shadow: 0 0 0 3px rgba(52,211,153,.16); }
  50%      { transform: scale(.78); box-shadow: 0 0 0 7px rgba(52,211,153,.02); }
}
.hv-stage-check {
  width: 22px; height: 22px;
  border-radius: 6px;
  background: rgba(52,211,153,.18);
  color: #34d399;
  display: flex; align-items: center; justify-content: center;
}
.hv-stage-check svg { width: 12px; height: 12px; }

.hv-stage-title {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.025em;
  color: #fff;
  line-height: 1.15;
}
.hv-stage-val {
  font-family: var(--sans);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -.045em;
  color: #fff;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  margin: 2px 0 4px;
}
.hv-stage-sub {
  font-size: 11.5px;
  color: rgba(255,255,255,.55);
  margin-top: 3px;
  line-height: 1.45;
}

/* Meta row in stage 1 */
.hv-stage-meta {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.hv-mini {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hv-mini-lbl {
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 600;
  color: rgba(255,255,255,.4);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.hv-mini-val {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -.01em;
}

/* Bars in stage 2 */
.hv-bars {
  display: flex; gap: 5px;
  margin: 12px 0 8px;
}
.hv-bar {
  flex: 1;
  height: 22px;
  background: rgba(255,255,255,.07);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}
.hv-bar i {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 0;
  background: linear-gradient(180deg, #a5a8fb, #6366f1);
  border-radius: 3px;
  animation: hv-bar-grow .8s cubic-bezier(.34,1.2,.55,1) both;
}
.hv-bar:nth-child(1) i { animation-delay: .9s; }
.hv-bar:nth-child(2) i { animation-delay: 1.0s; }
.hv-bar:nth-child(3) i { animation-delay: 1.1s; }
.hv-bar:nth-child(4) i { animation-delay: 1.2s; }
@keyframes hv-bar-grow {
  from { height: 0; }
  to   { height: var(--h, 100%); }
}
/* Re-route the inline width into a height for visual interest */
.hv-bar i[style*="78"] { --h: 78%; }
.hv-bar i[style*="54"] { --h: 54%; }
.hv-bar i[style*="91"] { --h: 91%; }
.hv-bar i[style*="68"] { --h: 68%; }
.hv-bar i { width: 100% !important; }

.hv-stage-foot {
  display: flex; align-items: center; gap: 6px;
  margin-top: 6px;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  color: rgba(255,255,255,.45);
  letter-spacing: .02em;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,.08);
}

/* Checks in stage 3 */
.hv-checks {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.hv-check {
  display: flex; align-items: center; gap: 8px;
  font-size: 11.5px;
  color: rgba(255,255,255,.78);
}
.hv-check i {
  width: 12px; height: 12px;
  border-radius: 3px;
  background: rgba(52,211,153,.18);
  position: relative;
  flex-shrink: 0;
}
.hv-check i::before {
  content: '';
  position: absolute;
  inset: 3px 3px 3px 3px;
  background:
    linear-gradient(45deg, transparent 45%, #34d399 50%, transparent 55%);
  /* Tiny check mark via two pseudo lines */
}
.hv-check i::after {
  content: '✓';
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: #34d399;
}
.hv-check i::before { display: none; }

/* ── Stage positions — staggered cascade ── */
.hv-stage-1 {
  top: 0;
  right: 4px;
  animation: hv-stage-in 1s cubic-bezier(.16,1,.3,1) .35s both;
}
.hv-stage-2 {
  top: 162px;
  left: 0;
  width: 230px;
  animation: hv-stage-in 1s cubic-bezier(.16,1,.3,1) .55s both;
}
.hv-stage-3 {
  top: 366px;
  right: 0;
  width: 252px;
  animation: hv-stage-in 1s cubic-bezier(.16,1,.3,1) .75s both;
}
@keyframes hv-stage-in {
  from { opacity: 0; transform: translateY(18px) scale(.96); }
  to   { opacity: 1; transform: none; }
}

/* Vector stage glows slightly more */
.hv-stage-2 {
  background:
    linear-gradient(180deg, rgba(165,168,251,.16) 0%, rgba(99,102,241,.06) 100%);
  border-color: rgba(165,168,251,.28);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.16),
    0 14px 36px -10px rgba(79,70,229,.35),
    0 2px 6px rgba(0,0,0,.18);
}
.hv-stage-3 {
  background:
    linear-gradient(180deg, rgba(52,211,153,.12) 0%, rgba(52,211,153,.03) 100%);
  border-color: rgba(52,211,153,.22);
}

/* ── Flow path animation ── */
@keyframes hv-flow-travel {
  from { stroke-dashoffset: 280; }
  to   { stroke-dashoffset: -40; }
}
#hvPathTopGlow {
  animation: hv-flow-travel 3.2s cubic-bezier(.4,0,.6,1) infinite;
  animation-delay: 1.6s;
}
#hvPathBotGlow {
  animation: hv-flow-travel 3.2s cubic-bezier(.4,0,.6,1) infinite;
  animation-delay: 2.4s;
}

@media (max-width: 860px) {
  .hero-viz { height: 480px !important; }
  .hv-stage    { width: 200px; }
  .hv-stage-1  { right: 0; top: 0; }
  .hv-stage-2  { left: 0; top: 148px; width: 200px; }
  .hv-stage-3  { right: 0; top: 308px; width: 220px; }
  .hv-stage-val { font-size: 26px; }
}
