/* SaaS pass: neutral near-black, dashed grid, centred hero, node flow animation. */
html, body { overflow-x: clip; }
body { background: #09090b; }
body::before {
  background:
    radial-gradient(60% 45% at 50% -10%, rgba(47,123,255,.22), transparent 70%),
    radial-gradient(40% 35% at 100% 40%, rgba(91,63,224,.1), transparent 70%),
    radial-gradient(45% 40% at 0% 75%, rgba(47,123,255,.08), transparent 70%),
    #09090b;
}
body::after { background: none; }

/* ---- hero ---- */
.sx-hero { position: relative; isolation: isolate; text-align: center; padding: 120px 0 var(--s6); }
.sx-grid { position: absolute; z-index: -1; top: -96px; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%); pointer-events: none; }
/* vertical dashed lines every 96px, horizontal every 32px, both fading out radially */
.sx-grid::before, .sx-grid::after { content: ""; position: absolute; inset: 0; }
.sx-grid::before {
  background: linear-gradient(to right, rgba(255,255,255,.07) 1px, transparent 1px) center top / 96px 100%;
  -webkit-mask: repeating-linear-gradient(to bottom, #000 0 4px, transparent 4px 8px), radial-gradient(60% 70% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
.sx-grid::after {
  background: linear-gradient(to bottom, rgba(255,255,255,.055) 1px, transparent 1px) center top / 100% 32px;
  -webkit-mask: repeating-linear-gradient(to right, #000 0 4px, transparent 4px 8px), radial-gradient(60% 70% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}

.sx-badge { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px 0 10px; border-radius: var(--r-full);
  font-size: 13px; font-weight: 500; color: var(--text-2); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06); transition: color .2s, border-color .2s; }
.sx-badge:hover { color: var(--text); border-color: rgba(255,255,255,.2); }
.sx-badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue-lit); box-shadow: 0 0 0 3px rgba(116,183,255,.15); }
.sx-title { margin-top: var(--s3); font-size: clamp(40px, 6.2vw, 76px); line-height: 1.02; font-weight: 700; letter-spacing: -.045em; }
.sx-sub { margin: var(--s3) auto 0; max-width: 540px; font-size: 18px; line-height: 1.5; color: var(--text-2); letter-spacing: -.012em; }
.sx-cta { display: flex; gap: var(--s1); justify-content: center; margin-top: var(--s4); flex-wrap: wrap; }

/* ---- flow ---- */
.flow { position: relative; max-width: 800px; height: 168px; margin: var(--s8) auto 0; }
.flow-lines { position: absolute; left: 0; top: 0; width: 100%; height: 140px; overflow: visible; }
.flow-lines path { fill: none; vector-effect: non-scaling-stroke; }
.fl-rail path { stroke: rgba(255,255,255,.1); stroke-width: 1.5; }
.fl-streak path { stroke: url(#fl-g); stroke-width: 2; stroke-linecap: round; stroke-dasharray: .28 1.5; stroke-dashoffset: .28;
  animation: fl-run 4.8s cubic-bezier(.45,.05,.35,1) infinite; }
.fl-streak.glow path { stroke-width: 6; opacity: .7; }
.fl-streak .s2 { animation-delay: 1.2s; }
.fl-streak .s3 { animation-delay: 2.4s; }
.fl-streak .s4 { animation-delay: 3.6s; }
@keyframes fl-run { 0% { stroke-dashoffset: .28; } 28%, 100% { stroke-dashoffset: -1.02; } }

.node { position: absolute; top: 30px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.node-tile { width: 80px; height: 80px; border-radius: 22px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(180deg, #1c1c20, #131316); border: 1px solid rgba(255,255,255,.1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 10px 30px rgba(0,0,0,.5); }
.node-tile svg { width: 30px; height: 30px; }
.node-tile.on { border-color: rgba(116,183,255,.35);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 0 0 4px rgba(47,123,255,.08), 0 10px 40px rgba(47,123,255,.25); }
.node-label { font-size: 15px; color: var(--text-2); white-space: nowrap; letter-spacing: -.01em; }

/* cards: neutral surfaces to match */
.svc, .vp { background: #0d0d10; }

@media (prefers-reduced-motion: reduce) { .fl-streak { display: none; } }
@media (max-width: 640px) {
  .sx-hero { padding-top: 96px; }
  .flow { height: 150px; }
  .node-tile { width: 60px; height: 60px; border-radius: 16px; }
  .node-tile svg { width: 24px; height: 24px; }
  .node { top: 40px; }
  .node-label { font-size: 12px; white-space: normal; max-width: 90px; text-align: center; line-height: 1.25; }
}

/* nav on small screens: keep it one line */
.nav .btn { white-space: nowrap; }
@media (max-width: 640px) {
  .nav { gap: var(--s1); padding-left: var(--s2); }
  .nav .btn.ghost { display: none; }
  .nav .btn.blue { margin-left: auto; }
}
.sx-title { margin-top: 0; }
