:root {
  --bg: #ffffff;
  --bg-alt: #f5f4fb;
  --ink: #0d0a3a;
  --muted: #5b5a80;
  --line: #e4e2f0;
  --brand: #3b2fd6;
  --brand-2: #00a9e3;
  --dark: #050036;
  --dark-2: #231f64;
  --dot-yellow: #fcb30d;
  --dot-orange: #f2691c;
  --dot-pink: #ee0e91;
  --stripe: linear-gradient(90deg, var(--brand-2), var(--brand), var(--dot-pink), var(--dot-orange), var(--dot-yellow));
  --radius: 16px;
  --shadow: 0 10px 30px rgba(5, 0, 54, 0.08);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --display: "Space Grotesk", var(--font);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0 0 0.5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.8rem, 6.4vw, 4.8rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
::selection { background: var(--brand); color: #fff; }

.container { width: min(1160px, 100% - 32px); margin-inline: auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--brand); margin-bottom: 0.8rem;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--stripe); }
.muted { color: var(--muted); }
.grad {
  background: linear-gradient(90deg, var(--brand), var(--brand-2), var(--dot-pink), var(--brand));
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: grad-shift 8s linear infinite;
}
@keyframes grad-shift { to { background-position: 300% 0; } }

/* Scroll progress */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 100;
  background: var(--stripe); transform-origin: left; transform: scaleX(var(--p, 0));
}

/* Buttons */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0.9rem 1.5rem; border-radius: 999px; border: 0;
  background: var(--brand); color: #fff; font: 600 0.95rem var(--font);
  text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s, background .2s;
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--ease);
}
.btn:hover { box-shadow: 0 10px 28px rgba(59, 47, 214, 0.35); }
.btn:hover::after { transform: translateX(120%); }
.btn__arrow { display: inline-block; transition: transform .25s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn--ghost { background: rgba(255, 255, 255, 0.6); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); backdrop-filter: blur(6px); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--small { padding: 0.55rem 1.1rem; font-size: 0.875rem; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.75); backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px rgba(5, 0, 54, 0.05); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo__img { height: 40px; width: auto; }
.logo__text { font: 500 0.7rem var(--font); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 28px; white-space: nowrap; }
.nav a:not(.btn) { position: relative; text-decoration: none; font-weight: 500; font-size: 0.95rem; color: var(--muted); transition: color .2s; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px;
  background: var(--stripe); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav a:not(.btn):hover, .nav a.is-active { color: var(--ink); }
.nav a:not(.btn):hover::after, .nav a.is-active::after { transform: scaleX(1); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .2s, opacity .2s; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 96px 0 80px; isolation: isolate; }
.hero__canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1;
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.25), #000 55%);
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.25), #000 55%);
}
.hero__blob { position: absolute; z-index: -2; border-radius: 50%; filter: blur(70px); opacity: 0.5; animation: drift 18s ease-in-out infinite alternate; }
.hero__blob--1 { width: 520px; height: 520px; right: -120px; top: -160px; background: rgba(59, 47, 214, 0.45); }
.hero__blob--2 { width: 380px; height: 380px; right: 22%; bottom: -160px; background: rgba(0, 169, 227, 0.4); animation-duration: 22s; animation-delay: -6s; }
.hero__blob--3 { width: 260px; height: 260px; right: 4%; top: 45%; background: rgba(238, 14, 145, 0.25); animation-duration: 16s; animation-delay: -3s; }
@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-60px, 40px) scale(1.12); }
  100% { transform: translate(30px, -30px) scale(0.95); }
}
.hero__inner { position: relative; display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 48px; align-items: center; }
.hero__lead { font-size: 1.15rem; color: var(--muted); max-width: 560px; margin: 1.2rem 0 2rem; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__stats {
  grid-column: 1 / -1; display: flex; gap: 56px; flex-wrap: wrap; margin: 40px 0 0; padding-top: 32px;
  border-top: 1px solid var(--line);
}
.hero__stats dt { font: 700 2.4rem var(--display); font-variant-numeric: tabular-nums; }
.hero__stats dd { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* Staggered hero entrance */
.hero__in { opacity: 0; animation: rise .9s var(--ease) forwards; animation-delay: calc(var(--d) * 120ms + 150ms); }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* Typing rotator */
.rotator { white-space: nowrap; }
.rotator::after {
  content: ""; display: inline-block; width: 4px; height: 0.85em; margin-left: 6px; vertical-align: -0.06em;
  border-radius: 2px; background: var(--brand-2); animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
#rotator { transition: opacity .25s; }
#rotator.is-swapping { opacity: 0; }

/* Hero visual: the looping story lives in story.css */
.hero__visual { position: relative; width: 100%; }

/* Marquee */
.marquee { border-block: 1px solid var(--line); padding: 22px 0; overflow: hidden; display: grid; gap: 10px; background: #fff; }
.marquee__row { display: flex; width: max-content; animation: marquee 45s linear infinite; }
.marquee__row--reverse { animation-direction: reverse; animation-duration: 55s; }
.marquee:hover .marquee__row { animation-play-state: paused; }
.marquee__track { display: flex; list-style: none; margin: 0; padding: 0; }
.marquee__track li { display: flex; align-items: center; font: 600 clamp(1.2rem, 2.4vw, 1.7rem) var(--display); white-space: nowrap; padding-right: 36px; }
.marquee__track li::after { content: ""; width: 10px; height: 10px; border-radius: 50%; margin-left: 36px; background: var(--brand-2); }
.marquee__track li:nth-child(4n + 2)::after { background: var(--dot-yellow); }
.marquee__track li:nth-child(4n + 3)::after { background: var(--dot-orange); }
.marquee__track li:nth-child(4n + 4)::after { background: var(--dot-pink); }
.marquee__row--reverse li { color: transparent; -webkit-text-stroke: 1px rgba(13, 10, 58, 0.35); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Sections */
.section { padding: 110px 0; position: relative; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--dark); color: #ecebf8; overflow: hidden; }
.section--dark::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 0%, #000, transparent 70%);
  mask-image: radial-gradient(ellipse at 70% 0%, #000, transparent 70%);
}
.section--dark .section__head p:not(.eyebrow), .section--dark p { color: #a9a6d1; }
.section--dark .eyebrow { color: var(--brand-2); }
.section__head { max-width: 640px; margin-bottom: 56px; }
.section__head p:not(.eyebrow) { color: var(--muted); font-size: 1.1rem; }
.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: start; }
.prose p { color: var(--muted); font-size: 1.08rem; }
.ticks { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 14px; }
.ticks li { padding-left: 32px; position: relative; color: var(--muted); }
.ticks li strong { color: var(--ink); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* Word-by-word heading reveal */
[data-split] .w { display: inline-block; opacity: 0; transform: translateY(0.5em) rotate(2deg); transition: opacity .6s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i) * 70ms); }
[data-split].is-visible .w { opacity: 1; transform: none; }

/* Cards with cursor spotlight */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  position: relative; border-radius: var(--radius); padding: 28px;
  border: 1px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), var(--brand-2), var(--brand) 40%, var(--line) 70%) border-box;
  transition: transform .2s var(--ease), box-shadow .3s, opacity .6s var(--ease);
  transform-style: preserve-3d; will-change: transform;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(59, 47, 214, 0.09), transparent 60%);
}
.card:hover { box-shadow: 0 24px 50px rgba(5, 0, 54, 0.12); }
.card:hover::before { opacity: 1; }
.card p { color: var(--muted); margin: 0; }
.card__icon {
  width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(59, 47, 214, 0.12), rgba(0, 169, 227, 0.12));
  transition: transform .4s var(--ease), background .3s;
}
.card:hover .card__icon { transform: translateZ(30px) rotate(-6deg) scale(1.08); background: linear-gradient(135deg, var(--brand), var(--dark-2)); }
.card:hover .card__icon .ico { stroke: #fff; }
a.card { display: flex; flex-direction: column; color: inherit; text-decoration: none; }
a.card--cta {
  justify-content: center; color: #fff;
  background:
    radial-gradient(260px circle at var(--mx, 80%) var(--my, 0%), rgba(0, 169, 227, 0.45), transparent 70%) padding-box,
    radial-gradient(120% 140% at 0% 0%, var(--dark-2), var(--dark) 65%) padding-box,
    var(--stripe) border-box;
}
a.card--cta p { flex: 0; color: #a9a6d1; }
.card--cta .card__more { color: #fff; }
a.card p { flex: 1; }
.card__more { margin-top: 18px; font-weight: 600; font-size: 0.9rem; color: var(--brand); display: inline-flex; gap: 6px; }
.card__more span { transition: transform .25s var(--ease); }
.card:hover .card__more span { transform: translateX(5px); }

/* Custom service icons: draw on, then the accent dot pops in */
.ico { width: 34px; height: 34px; fill: none; stroke: var(--brand); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; overflow: visible; transition: stroke .3s; }
.ico [pathLength] { stroke-dasharray: 1; stroke-dashoffset: 0; }
.ico .a { fill: var(--accent, var(--brand-2)); stroke: none; transform-box: fill-box; transform-origin: center; }
.card:hover .ico [pathLength] { animation: ico-draw 1s var(--ease); }
.card:hover .ico .a { animation: ico-pop .6s var(--ease) .35s both; }
@keyframes ico-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes ico-pop { 0% { transform: scale(0); } 60% { transform: scale(1.5); } 100% { transform: scale(1); } }
.ico--sm { width: 20px; height: 20px; stroke-width: 2.6; }

.chips { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: 0.92rem; transition: border-color .2s, color .2s, transform .2s; }
.chips li:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }
.chips li:has(a) { padding: 0; }
.chips a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px 8px 12px; color: inherit; text-decoration: none; }
.chips a:hover .ico [pathLength] { animation: ico-draw .8s var(--ease); }
.services-more { margin-top: 40px; }
.services-more > p { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin: 0; }
.link-arrow { display: inline-flex; gap: 8px; margin-top: 24px; font-weight: 600; color: var(--brand); text-decoration: none; }
.link-arrow span { transition: transform .25s var(--ease); }
.link-arrow:hover span { transform: translateX(5px); }

/* Industries with sweep fill */
.industries { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.industries li {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 28px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font: 600 1.05rem var(--display); cursor: default; transition: color .35s var(--ease), opacity .6s var(--ease), transform .6s var(--ease);
}
.industries li::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, var(--brand), var(--dark-2));
  transform: scaleY(0); transform-origin: bottom; transition: transform .45s var(--ease);
}
.industries li::after { content: "→"; opacity: 0; transform: translateX(-10px); transition: opacity .3s, transform .35s var(--ease); }
.industries li:hover { color: #fff; }
.industries li:hover::before { transform: scaleY(1); }
.industries li:hover::after { opacity: 1; transform: none; }

/* Process timeline */
.steps { position: relative; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.steps::before, .steps::after { content: ""; position: absolute; top: 23px; left: 23px; right: 23px; height: 2px; border-radius: 2px; }
.steps::before { background: rgba(255, 255, 255, 0.12); }
.steps::after { background: linear-gradient(90deg, var(--brand-2), var(--brand), var(--dot-pink)); transform-origin: left; transform: scaleX(var(--progress, 0)); transition: transform .15s linear; }
.steps li { position: relative; }
.steps__num {
  position: relative; z-index: 1; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 22px;
  font: 700 0.9rem var(--display); color: #a9a6d1; background: var(--dark); border: 2px solid rgba(255, 255, 255, 0.18);
  transition: background .4s, border-color .4s, color .4s, box-shadow .4s, transform .4s var(--ease);
}
.steps li.is-active .steps__num {
  color: #fff; background: var(--brand); border-color: var(--brand-2); transform: scale(1.08);
  box-shadow: 0 0 0 6px rgba(0, 169, 227, 0.15), 0 0 28px rgba(0, 169, 227, 0.55);
}
.steps h3 { color: #fff; }
.platforms { margin-top: 64px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; color: #a9a6d1; position: relative; }
.platforms ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.platforms li { border: 1px solid rgba(255, 255, 255, 0.18); color: #fff; border-radius: 999px; padding: 6px 16px; font-weight: 500; transition: background .25s, border-color .25s, transform .25s var(--ease); }
.platforms li:hover { background: rgba(0, 169, 227, 0.15); border-color: var(--brand-2); transform: translateY(-3px); }

/* CTA */
.cta {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  background: radial-gradient(120% 140% at 0% 0%, var(--dark-2), var(--dark) 60%);
  color: #fff; border-radius: 24px; padding: 56px;
}
.cta::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--stripe); background-size: 200% 100%; animation: stripe-slide 6s linear infinite; }
@keyframes stripe-slide { to { background-position: 200% 0; } }
.cta__blob { position: absolute; z-index: -1; border-radius: 50%; filter: blur(60px); animation: drift 14s ease-in-out infinite alternate; }
.cta__blob--1 { width: 320px; height: 320px; right: 8%; top: -140px; background: rgba(0, 169, 227, 0.45); }
.cta__blob--2 { width: 260px; height: 260px; right: 30%; bottom: -150px; background: rgba(238, 14, 145, 0.35); animation-delay: -5s; }
.cta .eyebrow { color: rgba(255, 255, 255, 0.75); }
.cta p { color: rgba(255, 255, 255, 0.85); max-width: 560px; margin: 0; }
.cta .btn { background: #fff; color: var(--dark); flex-shrink: 0; }
.cta .btn::after { background: linear-gradient(110deg, transparent 30%, rgba(59, 47, 214, 0.18) 50%, transparent 70%); }

/* Contact */
.contact-list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 20px; }
.contact-list span { display: block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 4px; }
.contact-list a { font-weight: 600; font-size: 1.1rem; color: var(--brand); text-decoration: none; background: linear-gradient(var(--brand), var(--brand)) left bottom / 0 2px no-repeat; transition: background-size .3s var(--ease); }
.contact-list a:hover { background-size: 100% 2px; }
.contact-list address { font-style: normal; }
.form { background: #fff; border-radius: 20px; padding: 32px; box-shadow: var(--shadow); display: grid; gap: 16px; position: relative; }
.form::before { content: ""; position: absolute; inset: 0 24px auto; height: 3px; border-radius: 0 0 3px 3px; background: var(--stripe); }
.form label { display: grid; gap: 6px; font-weight: 500; font-size: 0.92rem; }
.form input, .form textarea {
  font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-alt);
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(59, 47, 214, 0.12); }
.form textarea { resize: vertical; }
.form__note { font-size: 0.82rem; color: var(--muted); margin: 0; }

/* Footer */
.footer { position: relative; overflow: hidden; background: #010028; color: #a9a6d1; padding: 48px 0; }
.footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--stripe); }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer .logo__text { color: #a9a6d1; }
.footer nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer nav a { text-decoration: none; transition: color .2s; }
.footer nav a:hover { color: #fff; }
.footer p { margin: 0; font-size: 0.88rem; width: 100%; }
.footer__services {
  width: 100%; list-style: none; margin: 8px 0 0; padding: 24px 0 0; border-top: 1px solid rgba(255, 255, 255, 0.1);
  columns: 4 180px; column-gap: 24px; font-size: 0.88rem;
}
.footer__services li { margin-bottom: 8px; break-inside: avoid; }
.footer__services a { text-decoration: none; transition: color .2s; }
.footer__services a:hover { color: #fff; }

/* Service pages */
.nav a.is-current { color: var(--ink); }
.nav a.is-current::after { transform: scaleX(1); }
.svc-hero { position: relative; overflow: hidden; isolation: isolate; padding: 48px 0 96px; }
.svc-hero--hub { padding-bottom: 80px; }
.svc-hero h1 { max-width: 14ch; }
.svc-hero--hub h1 { max-width: none; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.88rem; color: var(--muted); margin-bottom: 48px; }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: var(--brand); }
.crumbs [aria-current] { color: var(--ink); font-weight: 500; }
.svc-hero__inner { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.svc-hero__inner > * { min-width: 0; }
.svc-hero__tagline { font: 600 clamp(1.3rem, 2.4vw, 1.7rem) var(--display); margin: 0.2rem 0 0; letter-spacing: -0.01em; }

.caps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: cap; }
.cap {
  position: relative; padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s, opacity .7s var(--ease);
}
.cap::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--stripe); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.cap:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(5, 0, 54, 0.1); border-color: transparent; }
.cap:hover::after { transform: scaleX(1); }
.cap__num { display: inline-flex; align-items: center; gap: 8px; font: 700 0.85rem var(--display); color: var(--brand); margin-bottom: 16px; }
.cap__num::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.cap p { color: var(--muted); margin: 0; }

.outcomes { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.outcome {
  display: flex; align-items: center; gap: 16px; padding: 20px 22px; border-radius: var(--radius);
  background: #fff; box-shadow: var(--shadow); font: 600 1.08rem var(--display); line-height: 1.35;
  transition: transform .3s var(--ease), opacity .7s var(--ease);
}
.outcome:hover { transform: translateX(6px); }
.outcome__tick { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); }
.outcome:nth-child(4n + 2) .outcome__tick { background: var(--brand-2); }
.outcome:nth-child(4n + 3) .outcome__tick { background: var(--dot-pink); }
.outcome:nth-child(4n + 4) .outcome__tick { background: var(--dot-orange); }
.outcome__tick svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

.ind-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.ind-card {
  position: relative; overflow: hidden; padding: 26px 24px 28px; border-radius: var(--radius);
  background: var(--bg-alt); border: 1px solid var(--line); transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.ind-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--stripe); }
.ind-card__name { display: block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand); margin-bottom: 10px; }
.ind-card p { margin: 0; font: 600 1.12rem var(--display); line-height: 1.35; }

.pager { margin-top: 48px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; }
.pager__link { display: grid; gap: 4px; padding: 20px 24px; border-radius: var(--radius); border: 1px solid var(--line); text-decoration: none; color: inherit; transition: border-color .25s, transform .25s var(--ease), box-shadow .25s; }
.pager__link:hover { border-color: var(--brand); transform: translateY(-3px); box-shadow: var(--shadow); }
.pager__link small { color: var(--muted); }
.pager__link strong { font: 600 1.05rem var(--display); }
.pager__link--next { text-align: right; }
.pager__all { font-weight: 600; color: var(--brand); text-decoration: none; padding: 0 12px; }

@media (max-width: 960px) {
  .svc-hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .caps { grid-template-columns: repeat(2, 1fr); }
  .ind-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .crumbs { margin-bottom: 24px; }
  .caps, .ind-cards { grid-template-columns: 1fr; }
  .pager { grid-template-columns: 1fr; }
  .pager__link--next { text-align: left; }
  .pager__all { order: 3; padding: 0; }
}

/* Back to top */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 52px; height: 52px; border-radius: 50%;
  background: #fff; box-shadow: 0 10px 30px rgba(5, 0, 54, 0.18); display: grid; place-items: center;
  opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none; transition: opacity .3s, transform .3s var(--ease);
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { transform: translateY(-3px); }
.to-top svg { width: 48px; height: 48px; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.to-top__track { stroke: var(--line); stroke-width: 3; }
.to-top__ring { stroke: var(--brand); stroke-width: 3; stroke-dasharray: 100; stroke-dashoffset: var(--off, 100); transform: rotate(-90deg); transform-origin: center; }
.to-top path { stroke: var(--ink); stroke-width: 2.4; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 70; padding: 12px 20px; border-radius: 999px;
  background: var(--dark); color: #fff; font-weight: 500; box-shadow: 0 16px 40px rgba(5, 0, 54, 0.3);
  transform: translate(-50%, calc(100% + 40px)); visibility: hidden;
  transition: transform .45s var(--ease), visibility 0s .45s;
}
.toast.is-visible { transform: translate(-50%, 0); visibility: visible; transition: transform .45s var(--ease); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.card.reveal { transition: opacity .7s var(--ease), transform .7s var(--ease), box-shadow .3s; }
.card.reveal.is-visible { transition: opacity .7s var(--ease), transform .2s var(--ease), box-shadow .3s; }

/* Logo animation: entrance, periodic glint, hover glow */
.logo__badge {
  position: relative; display: block; border-radius: 999px;
  -webkit-mask: url("assets/datso-logo.png") center / contain no-repeat;
  mask: url("assets/datso-logo.png") center / contain no-repeat;
  transition: transform .3s ease;
}
.header .logo__badge { animation: logo-in .8s var(--ease) both; }
.logo__badge::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.75) 50%, transparent 65%);
  transform: translateX(-120%);
  animation: logo-glint 4.5s ease-in-out 1s infinite;
}
.logo:hover .logo__badge { transform: scale(1.04); }
.logo:hover .logo__badge::after { animation-duration: 1.2s; animation-delay: 0s; }
@keyframes logo-in { from { opacity: 0; transform: translateY(-6px) scale(.92); } to { opacity: 1; transform: none; } }
@keyframes logo-glint { 0%, 60% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }

/* Responsive */
@media (max-width: 1060px) {
  .header .logo__text { display: none; }
}
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { max-width: 600px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .industries { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .steps::before, .steps::after { display: none; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .cta { flex-direction: column; align-items: flex-start; padding: 40px; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 16px 20px;
    display: none;
  }
  .nav.is-open { display: flex; animation: fade .25s ease; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 16px; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 760px) {
  .hero { padding: 64px 0 56px; }
  .hero__stats { gap: 32px; }
  .section { padding: 80px 0; }
  .cards, .steps { grid-template-columns: 1fr; }
  .industries { grid-template-columns: repeat(2, 1fr); }
  .industries li { padding: 20px 16px; font-size: 0.95rem; }
  .cta { padding: 32px 24px; }
  .form { padding: 24px; }
}

/* Reduced motion: keep fades and hover colour, drop movement */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__in { animation-name: fade; }
  .reveal { transform: none; }
  [data-split] .w { transform: none; }
  .hero__blob, .cta__blob,
  .marquee__row, .grad, .cta::after, .rotator::after,
  .header .logo__badge, .logo__badge::after,
  .card:hover .ico [pathLength], .card:hover .ico .a, .chips a:hover .ico [pathLength] { animation: none; }
  .marquee { overflow-x: auto; }
}

/* Platform spotlight (one Datso product) */
.platform::after {
  content: ""; position: absolute; right: -10%; top: -20%; width: 60%; height: 120%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(59, 47, 214, 0.35), transparent);
}
.platform__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.platform__inner > *, .hero__inner > * { min-width: 0; }
.platform h2 { color: #fff; }
.platform__lead { font-size: 1.1rem; max-width: 520px; }
.platform__features { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }
.platform__features li { display: flex; gap: 14px; align-items: flex-start; color: #a9a6d1; font-size: 0.95rem; line-height: 1.5; }
.platform__features b { display: block; color: #fff; font: 600 1rem var(--display); }
.pf-ic {
  flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1);
}
.pf-ic svg { width: 20px; height: 20px; fill: none; stroke: var(--c); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.platform__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.platform .btn--ghost { color: #fff; background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.25); }
.platform .btn--ghost:hover { box-shadow: inset 0 0 0 1.5px #fff; }

.pf-visual { position: relative; padding: 48px 24px; }
.pf-window {
  background: #fff; border-radius: 16px; overflow: hidden; color: var(--ink);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.45); transform: perspective(1400px) rotateY(-7deg) rotateX(3deg);
  transition: transform .6s var(--ease);
}
.pf-visual:hover .pf-window { transform: perspective(1400px) rotateY(-2deg) rotateX(1deg); }
.pf-window__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--bg-alt); border-bottom: 1px solid var(--line); font-size: .75rem; color: var(--muted); font-weight: 600; }
.pf-window__bar i { width: 9px; height: 9px; border-radius: 50%; background: #ff6159; }
.pf-window__bar i:nth-child(2) { background: #ffbd2e; }
.pf-window__bar i:nth-child(3) { background: #28c941; margin-right: 8px; }
.pf-auto {
  display: flex; align-items: center; gap: 8px; margin: 12px 14px 0; padding: 8px 10px; border-radius: 10px;
  background: linear-gradient(90deg, rgba(59, 47, 214, 0.08), rgba(0, 169, 227, 0.08)); border: 1px solid rgba(59, 47, 214, 0.15);
  font-size: .7rem; color: var(--ink);
}
.pf-auto__ic { flex: none; width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; background: var(--brand); animation: pf-pulse 2.4s ease-in-out infinite; }
.pf-auto__ic svg { width: 13px; height: 13px; fill: #fff; }
.pf-auto__rule { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted); }
.pf-auto__rule b { color: var(--ink); margin-right: 4px; }
.pf-auto__rule i { font-style: normal; color: var(--brand); margin: 0 3px; }
.pf-auto__on { flex: none; padding: 2px 8px; border-radius: 20px; background: #e3f7ee; color: #138a5c; font-weight: 700; font-size: .62rem; }
@keyframes pf-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(59, 47, 214, 0.45); } 50% { box-shadow: 0 0 0 6px rgba(59, 47, 214, 0); } }
.pf-board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 14px; background: #fafaff; }
.pf-col h4 { display: flex; justify-content: space-between; align-items: center; margin: 0 0 8px; font: 600 .66rem var(--font); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pf-col h4 em { font-style: normal; background: var(--line); border-radius: 10px; padding: 1px 7px; color: var(--ink); }
.pf-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; margin-bottom: 8px; }
.pf-card b { display: block; font-size: .74rem; padding-right: 26px; }
.pf-card small { display: block; font-size: .66rem; color: var(--muted); margin-top: 2px; }
.pf-av { position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: #fff; font-size: .55rem; font-weight: 700; }
.pf-progress { display: block; height: 4px; margin-top: 7px; border-radius: 4px; background: var(--line); overflow: hidden; }
.pf-progress i { display: block; width: var(--p); height: 100%; background: var(--stripe); }
.pf-card--done { border-left: 3px solid #1fb57a; }
.pf-card--done small { color: #138a5c; font-weight: 600; }
.pf-card--move { animation: pf-highlight 4s ease-in-out infinite; }
@keyframes pf-highlight { 0%, 100% { box-shadow: 0 0 0 0 rgba(59, 47, 214, 0); } 50% { box-shadow: 0 0 0 3px rgba(59, 47, 214, 0.25); } }

.pf-float { position: absolute; background: #fff; color: var(--ink); border-radius: 14px; padding: 12px 14px; box-shadow: 0 20px 44px rgba(0, 0, 0, 0.35); animation: float 6s ease-in-out infinite; }
.platform .pf-float p { color: var(--ink); }
.pf-wa { left: -2%; bottom: 0; width: 240px; background: #e9f9ef; }
.pf-wa__head { display: flex; align-items: center; gap: 6px; font-size: .68rem; font-weight: 600; color: #138a5c; }
.pf-wa__head svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.pf-wa p { margin: 6px 0 2px; font-size: .8rem; line-height: 1.4; }
.pf-wa__time { display: block; text-align: right; font-size: .62rem; color: var(--muted); }
.pf-inv { right: -2%; top: -18px; width: 160px; animation-delay: -2s; }
.pf-inv__label { display: block; font-size: .66rem; color: var(--muted); font-weight: 600; }
.pf-inv b { display: block; font: 700 1.35rem var(--display); margin: 2px 0 6px; }
.pf-inv__status { display: inline-block; padding: 2px 10px; border-radius: 20px; background: #e3f7ee; color: #138a5c; font-size: .66rem; font-weight: 700; }
.pf-tasks { right: 2%; bottom: -26px; width: 180px; display: grid; gap: 6px; animation-delay: -4s; }
.pf-tasks b { font: 600 .78rem var(--display); }
.pf-task { position: relative; padding-left: 22px; font-size: .74rem; }
.pf-task::before { content: ""; position: absolute; left: 0; top: 2px; width: 13px; height: 13px; border-radius: 50%; border: 1.5px solid var(--metal, #c9c7e0); }
.pf-task--done { color: var(--muted); text-decoration: line-through; }
.pf-task--done::before { border-color: #1fb57a; background: #1fb57a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/9px no-repeat; }

@media (max-width: 960px) {
  .platform__inner { grid-template-columns: 1fr; gap: 24px; }
  .pf-window, .pf-visual:hover .pf-window { transform: none; }
}
@media (max-width: 760px) {
  .pf-visual { padding: 70px 0 90px; }
  .pf-board { grid-template-columns: repeat(2, 1fr); }
  .platform__features { grid-template-columns: 1fr; }
  .pf-col:nth-child(n + 3) { display: none; }
  .pf-wa { left: 0; bottom: 0; width: 72%; }
  .pf-inv { right: 0; top: 0; width: 46%; }
  .pf-tasks { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .pf-float, .pf-card--move, .pf-auto__ic { animation: none; }
}

/* Service screens: one illustrative visual per service (tools/build_services.py) */
.sv {
  container-type: inline-size; position: relative; border-radius: 18px; overflow: hidden; background: #fff;
  border: 1px solid var(--line); box-shadow: 0 30px 70px rgba(5, 0, 54, 0.14); font-size: clamp(10px, 2.3cqw, 13px);
}
.sv__bar { display: flex; align-items: center; gap: .6em; padding: .8em 1.1em; background: var(--bg-alt); border-bottom: 1px solid var(--line); font-size: 1.05em; }
.sv__icon { width: 2em; height: 2em; border-radius: .55em; display: grid; place-items: center; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.sv__icon .ico { width: 1.2em; height: 1.2em; }
.sv__bar b { font: 600 1em var(--display); color: var(--ink); }
.sv__bar em { margin-left: auto; font-style: normal; font-size: .72em; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: #fff; padding: .25em .7em; border-radius: 2em; box-shadow: inset 0 0 0 1px var(--line); }
.sv__body { padding: 1.4em 1.2em 1.5em; background: linear-gradient(180deg, #fff, #fafaff); }
.sv h5 { margin: 0; font: 600 .95em var(--display); color: var(--ink); }
.sv-chips { display: flex; flex-wrap: wrap; gap: .35em; }
.sv-chips span { font-size: .78em; font-weight: 600; padding: .3em .6em; border-radius: .5em; background: var(--bg-alt); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap; }
.sv-note { margin: .9em 0 0; display: flex; align-items: center; gap: .4em; font-size: .78em; color: var(--muted); }
.sv-note svg { width: 1.1em; height: 1.1em; fill: var(--dot-yellow); }

/* Pipeline: stages joined by flowing connectors */
.sv-pipeline { display: flex; align-items: stretch; }
.sv-stage { flex: 1; min-width: 0; display: grid; align-content: start; gap: .55em; padding: .8em .6em; border-radius: .8em; background: #fff; box-shadow: inset 0 0 0 1px var(--line), 0 .4em 1em rgba(5, 0, 54, 0.05); }
.sv-stage .sv-chips { flex-direction: column; }
.sv-stage .sv-chips span { white-space: normal; text-align: center; }
.sv-stage h5 { text-align: center; font-size: .85em; color: var(--brand); }
.sv-flow { flex: 0 0 1.2em; position: relative; align-self: center; height: 2px; background: var(--line); }
.sv-flow::after { content: ""; position: absolute; top: -2px; left: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: sv-flow 1.8s linear infinite; }
@keyframes sv-flow { from { left: 0; opacity: 0; } 20% { opacity: 1; } to { left: calc(100% - 6px); opacity: 0; } }

/* Layers: stacked architecture bands */
.sv-layers { display: grid; gap: .55em; }
.sv-layer { position: relative; display: grid; grid-template-columns: 7.5em 1fr; align-items: center; gap: .8em; padding: .75em .9em; border-radius: .8em; background: #fff; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.sv-layer::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--accent); }
.sv-layer::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(59, 47, 214, 0.07), transparent); transform: translateX(-100%); animation: sv-scan 6s ease-in-out infinite; animation-delay: calc(var(--i) * 1.5s); }
@keyframes sv-scan { 0%, 30% { transform: translateX(-100%); } 55%, 100% { transform: translateX(100%); } }
.sv-layers--secure .sv-layer { grid-template-columns: 2em 6.5em 1fr; }
.sv-lock { width: 2em; height: 2em; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 16%, #fff); }
.sv-lock svg { width: 1.1em; height: 1.1em; fill: none; stroke: var(--brand); stroke-width: 2; }

/* Steps: numbered journey with a progress track */
.sv-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: .5em; }
.sv-steps li { display: grid; gap: .3em; align-content: start; padding: .8em .6em; border-radius: .8em; background: #fff; box-shadow: inset 0 0 0 1px var(--line); text-align: center; }
.sv-steps li > b { justify-self: center; width: 2.2em; height: 2.2em; border-radius: 50%; display: grid; place-items: center; font: 700 .85em var(--display); color: #fff; background: var(--brand); }
.sv-steps li:nth-child(even) > b { background: var(--brand-2); }
.sv-steps h5 { font-size: .85em; }
.sv-steps small { font-size: .74em; color: var(--muted); line-height: 1.3; }
.sv-steps--gates li { position: relative; }
.sv-steps--gates li:not(:last-child)::after { content: "Gate"; position: absolute; right: -.95em; top: 1.1em; z-index: 1; font-size: .62em; font-weight: 700; padding: .15em .45em; border-radius: 1em; background: var(--dot-yellow); color: #4a3200; }
.sv-track { margin-top: 1em; height: .4em; border-radius: 1em; background: var(--line); overflow: hidden; }
.sv-track i { display: block; height: 100%; background: var(--stripe); transform-origin: left; animation: sv-progress 6s ease-in-out infinite; }
@keyframes sv-progress { 0% { transform: scaleX(0); } 70%, 100% { transform: scaleX(1); } }
.sv-meter { display: flex; align-items: center; gap: .7em; margin-top: 1em; font-size: .8em; font-weight: 600; color: var(--ink); }
.sv-meter i { flex: 1; height: .55em; border-radius: 1em; background: var(--line); overflow: hidden; }
.sv-meter i b { display: block; width: 78%; height: 100%; background: linear-gradient(90deg, var(--brand-2), #1fb57a); border-radius: inherit; }
.sv-meter em { font-style: normal; color: #138a5c; }

/* Before / after */
.sv-ba { display: grid; grid-template-columns: 1fr 1fr; gap: .8em; }
.sv-ba > div { padding: .9em; border-radius: .9em; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.sv-ba__after { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--brand) 40%, transparent) !important; }
.sv-ba ul { list-style: none; margin: .7em 0 0; padding: 0; display: grid; gap: .45em; }
.sv-ba li { display: flex; align-items: center; gap: .5em; font-size: .8em; color: var(--ink); }
.sv-dot { flex: none; width: 1.5em; height: 1.5em; border-radius: 50%; display: grid; place-items: center; background: #fde7f3; }
.sv-dot--manual::before { content: ""; width: .5em; height: .5em; border-radius: 50%; background: var(--dot-pink); }
.sv-dot svg { width: .9em; height: .9em; fill: #fff; }
.sv-ba .is-auto .sv-dot { background: var(--brand); }
.sv-ba .is-human .sv-dot { background: #fff3cf; box-shadow: inset 0 0 0 1.5px var(--dot-yellow); }
.sv-ba .is-human { font-weight: 600; }

/* Hub: integration layer with connected systems */
.sv-hub { position: relative; height: 16em; }
.sv-hub__core { position: absolute; left: 50%; top: 50%; translate: -50% -50%; z-index: 1; padding: .9em 1.1em; border-radius: 1em; background: var(--dark); color: #fff; font: 600 .9em var(--display); text-align: center; box-shadow: 0 0 0 .5em rgba(59, 47, 214, 0.12), 0 0 0 1em rgba(59, 47, 214, 0.06); }
.sv-hub svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.sv-hub line { stroke: color-mix(in srgb, var(--accent) 55%, var(--line)); stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-dasharray: 4 4; animation: sv-dash 1.2s linear infinite; }
@keyframes sv-dash { to { stroke-dashoffset: -8; } }
.sv-node { position: absolute; translate: -50% -50%; padding: .45em .8em; border-radius: .6em; background: #fff; box-shadow: inset 0 0 0 1px var(--line), 0 .3em .8em rgba(5, 0, 54, 0.08); font: 600 .82em var(--display); color: var(--ink); white-space: nowrap; }

/* Dashboard: KPIs and actual vs forecast */
.sv-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5em; }
.sv-kpis div { padding: .7em; border-radius: .7em; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.sv-kpis small { display: block; font-size: .72em; color: var(--muted); }
.sv-kpis b { font: 600 .95em var(--display); color: var(--ink); }
.sv-chart { position: relative; height: 9em; margin-top: .8em; padding: .6em; border-radius: .8em; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.sv-bars { position: absolute; inset: .6em; display: flex; align-items: flex-end; gap: .5em; }
.sv-bars span { flex: 1; height: var(--h); border-radius: .3em .3em 0 0; background: linear-gradient(to top, var(--brand), var(--brand-2)); opacity: .85; transform-origin: bottom; }
.sv-chart svg { position: absolute; inset: .6em; width: calc(100% - 1.2em); height: calc(100% - 1.2em); overflow: visible; }
.sv-chart path { fill: none; stroke: var(--dot-pink); stroke-width: 2; stroke-dasharray: 4 3; vector-effect: non-scaling-stroke; }
.sv-legend { display: flex; gap: 1.2em; margin-top: .6em; font-size: .74em; color: var(--muted); }
.sv-legend i { display: inline-block; width: .9em; height: .5em; margin-right: .4em; border-radius: .2em; background: var(--brand); }
.sv-legend i.is-line { height: 0; border-top: 2px dashed var(--dot-pink); background: none; vertical-align: middle; }

/* Responsibility matrix */
.sv-matrix { width: 100%; border-collapse: separate; border-spacing: 0 .35em; font-size: .82em; }
.sv-matrix th { text-align: left; font-size: .82em; font-weight: 600; color: var(--muted); padding: 0 .7em; }
.sv-matrix th:not(:first-child), .sv-matrix td:not(:first-child) { text-align: center; width: 22%; }
.sv-matrix td { padding: .6em .7em; background: #fff; border-block: 1px solid var(--line); color: var(--ink); }
.sv-matrix td:first-child { border-left: 1px solid var(--line); border-radius: .6em 0 0 .6em; font-weight: 600; }
.sv-matrix td:last-child { border-right: 1px solid var(--line); border-radius: 0 .6em .6em 0; }
.sv-matrix td svg { width: 1.6em; height: 1.6em; padding: .3em; border-radius: 50%; background: var(--brand); fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.sv-matrix td:nth-child(2) svg { background: var(--brand-2); }

/* Funnel */
.sv-funnel { display: grid; justify-items: center; gap: .4em; }
.sv-funnel__row { width: var(--w); padding: .7em; border-radius: .6em; text-align: center; color: #fff; font: 600 .85em var(--display);
  background: color-mix(in srgb, var(--brand) calc(100% - var(--i) * 14%), var(--brand-2)); box-shadow: 0 .3em .8em rgba(59, 47, 214, 0.18); }
.sv-funnel__row:last-child { background: var(--dark); }

/* Devices: web and mobile product preview */
.sv-devices { position: relative; padding-right: 4.5em; }
.sv-browser { border-radius: .8em; overflow: hidden; background: #fff; box-shadow: inset 0 0 0 1px var(--line), 0 .6em 1.4em rgba(5, 0, 54, 0.08); }
.sv-browser__bar { display: flex; align-items: center; gap: .3em; padding: .5em .7em; background: var(--bg-alt); font-size: .72em; color: var(--muted); }
.sv-browser__bar i { width: .55em; height: .55em; border-radius: 50%; background: var(--line); }
.sv-browser__bar span { margin-left: .5em; padding: .15em .8em; border-radius: 1em; background: #fff; }
.sv-browser__body { display: grid; grid-template-columns: 4.5em 1fr; gap: .8em; padding: .8em; }
.sv-browser__body aside { display: grid; gap: .45em; align-content: start; padding: .5em; border-radius: .6em; background: var(--dark); }
.sv-browser__body aside b { height: .45em; border-radius: 1em; background: rgba(255, 255, 255, 0.35); }
.sv-browser__body aside b:first-child { background: var(--brand-2); }
.sv-hero-block { height: 3.6em; border-radius: .6em; background: linear-gradient(120deg, var(--brand), var(--brand-2)); }
.sv-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: .45em; margin-top: .55em; }
.sv-tiles span { height: 2.4em; border-radius: .5em; background: var(--bg-alt); box-shadow: inset 0 0 0 1px var(--line); }
.sv-rows { display: grid; gap: .4em; margin-top: .55em; }
.sv-rows p { margin: 0; height: .5em; border-radius: 1em; background: var(--line); }
.sv-rows p:nth-child(2) { width: 80%; }
.sv-rows p:nth-child(3) { width: 60%; }
.sv-phone { position: absolute; right: 0; bottom: -1em; width: 7.5em; padding: .35em; border-radius: 1.2em; background: var(--dark); box-shadow: 0 1em 2em rgba(5, 0, 54, 0.3); animation: float 6s ease-in-out infinite; }
.sv-phone__screen { padding: .5em; border-radius: .9em; background: #fff; }
.sv-phone__screen .sv-hero-block { height: 4em; }
.sv-phone__btn { display: block; height: 1.2em; margin-top: .6em; border-radius: .6em; background: var(--brand); }

@media (max-width: 760px) {
  .sv-pipeline { flex-direction: column; }
  .sv-flow { flex-basis: 1em; width: 2px; height: 1em; align-self: center; }
  .sv-flow::after { display: none; }
  .sv-stage .sv-chips { flex-direction: row; justify-content: center; }
  .sv-steps { grid-template-columns: 1fr 1fr; }
  .sv-steps--gates li::after { display: none; }
  .sv-layer, .sv-layers--secure .sv-layer { grid-template-columns: 1fr; gap: .5em; }
  .sv-lock { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .sv-flow::after, .sv-layer::after, .sv-track i, .sv-hub line, .sv-phone { animation: none; }
}

/* Services dropdown (mega menu), generated by tools/build_services.py */
.nav__item { position: static; display: flex; }
.nav__trigger {
  position: relative; display: inline-flex; align-items: center; gap: 4px; padding: 24px 0; margin: -24px 0;
  border: 0; background: none; cursor: pointer; font: 500 0.95rem var(--font); color: var(--muted); transition: color .2s;
}
.nav__trigger::after {
  content: ""; position: absolute; left: 0; right: 16px; bottom: 18px; height: 2px; border-radius: 2px;
  background: var(--stripe); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav__trigger:hover, .nav__trigger.is-current, .nav__trigger[aria-expanded="true"] { color: var(--ink); }
.nav__trigger.is-current::after, .nav__trigger[aria-expanded="true"]::after { transform: scaleX(1); }
.nav__trigger:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; border-radius: 4px; }
.nav__chev { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: rotate .25s var(--ease); }
.nav__trigger[aria-expanded="true"] .nav__chev { rotate: 180deg; }

.mega {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 60;
  visibility: hidden; opacity: 0; translate: 0 -8px; pointer-events: none;
  transition: opacity .2s ease, translate .25s var(--ease), visibility 0s linear .2s;
}
.has-menu.is-open .mega { visibility: visible; opacity: 1; translate: 0 0; pointer-events: auto; transition-delay: 0s; }
.mega__panel {
  width: min(1160px, 100% - 32px); margin: 8px auto 0; padding: 24px 22px 18px; border-radius: 20px;
  background: #fff; border: 1px solid var(--line); box-shadow: 0 30px 70px rgba(5, 0, 54, 0.16); white-space: normal;
}
.mega__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px 24px; }
.mega__title { margin: 0 0 8px; padding: 0 10px; font: 600 0.72rem var(--font); letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand); }
.nav a.mega__link {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px;
  color: var(--ink); font-size: 0.9rem; line-height: 1.3; text-decoration: none; transition: background .2s;
}
.nav a.mega__link::after, .nav a.mega__all::after { display: none; }
.mega__foot .btn { margin-top: 0; }
.nav a.mega__link:hover, .nav a.mega__link:focus-visible { background: var(--bg-alt); color: var(--ink); }
.nav a.mega__link.is-current { background: var(--bg-alt); font-weight: 600; box-shadow: inset 3px 0 0 var(--brand); }
.mega__ic { flex: none; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--bg-alt); transition: background .2s; }
.mega__ic .ico { width: 18px; height: 18px; }
.mega__link:hover .mega__ic { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.mega__link:hover .ico [pathLength] { animation: ico-draw .8s var(--ease); }
.mega__foot { display: flex; align-items: center; gap: 18px; margin-top: 16px; padding: 14px 10px 0; border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--muted); }
.mega__foot > span { flex: 1; }
.nav a.mega__all { color: var(--brand); font-weight: 600; font-size: 0.9rem; text-decoration: none; }
.nav a.mega__all span { display: inline-block; transition: transform .25s var(--ease); }
.nav a.mega__all:hover span { transform: translateX(4px); }

@media (max-width: 1060px) {
  .mega__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav.is-open { max-height: calc(100vh - 72px); overflow-y: auto; }
  .nav__item { display: block; }
  .nav__trigger { width: 100%; justify-content: space-between; margin: 0; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1rem; color: var(--ink); }
  .nav__trigger::after { display: none; }
  .mega { position: static; display: none; visibility: visible; opacity: 1; translate: none; pointer-events: auto; transition: none; }
  .has-menu.is-open .mega { display: block; }
  .mega__panel { width: auto; margin: 0; padding: 10px 0 12px; border: 0; border-radius: 0; box-shadow: none; }
  .mega__grid { grid-template-columns: 1fr; gap: 10px; }
  .nav a.mega__link { padding: 8px 6px; border-bottom: 0; }
  .mega__foot { flex-wrap: wrap; gap: 12px; padding: 12px 6px 0; }
  .mega__foot > span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .mega, .nav__chev { transition: none; }
}

/* Service pages: sticky section menu */
html:has(.sec-nav) { scroll-padding-top: 136px; }
.sec-nav {
  position: sticky; top: 72px; z-index: 40;
  background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(14px) saturate(1.4);
  border-block: 1px solid var(--line);
}
.sec-nav__inner { display: flex; align-items: center; gap: 4px; height: 56px; overflow-x: auto; scrollbar-width: none; }
.sec-nav__inner::-webkit-scrollbar { display: none; }
.sec-nav__title { margin-right: auto; padding-right: 16px; font: 600 0.95rem var(--display); color: var(--ink); white-space: nowrap; }
.sec-nav a {
  position: relative; flex: none; padding: 8px 14px; border-radius: 999px; font-size: 0.9rem; font-weight: 500;
  color: var(--muted); text-decoration: none; white-space: nowrap; transition: color .2s, background .2s;
}
.sec-nav a:hover { color: var(--ink); background: var(--bg-alt); }
.sec-nav a.is-active { color: var(--brand); background: rgba(59, 47, 214, 0.08); }
.sec-nav a.sec-nav__cta { margin-left: 8px; color: #fff; background: var(--brand); }
.sec-nav a.sec-nav__cta:hover, .sec-nav a.sec-nav__cta.is-active { color: #fff; background: var(--dark-2); }
.sec-nav a:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* Service pages: enquiry form */
.enquiry { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
.enquiry > * { min-width: 0; }
.enquiry__steps { list-style: none; counter-reset: step; margin: 28px 0 0; padding: 0; display: grid; gap: 16px; }
.enquiry__steps li { counter-increment: step; position: relative; padding-left: 52px; color: var(--muted); font-size: 0.95rem; }
.enquiry__steps li::before {
  content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; font: 700 0.8rem var(--display); color: #fff; background: var(--brand);
}
.enquiry__steps li:nth-child(2)::before { background: var(--brand-2); }
.enquiry__steps li:nth-child(3)::before { background: var(--dot-pink); }
.enquiry__steps b { display: block; color: var(--ink); font: 600 1rem var(--display); }
.enquiry__alt { margin-top: 24px; color: var(--muted); font-size: 0.92rem; }
.enquiry__alt a { color: var(--brand); font-weight: 600; text-decoration: none; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form select {
  font: inherit; padding: 12px 40px 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-alt);
  appearance: none; cursor: pointer; transition: border-color .2s, background .2s, box-shadow .2s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%235b5a80' stroke-width='1.6'%3E%3Cpath d='M3 4.5l3 3 3-3'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 12px;
}
.form select:focus { outline: none; border-color: var(--brand); background-color: #fff; box-shadow: 0 0 0 4px rgba(59, 47, 214, 0.12); }
.form [aria-invalid="true"] { border-color: #d6336c; background-color: #fff5f8; }
.form [aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(214, 51, 108, 0.14); }
.form__error { font-size: 0.8rem; font-weight: 500; color: #c2255c; }

@media (max-width: 960px) {
  .enquiry { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 760px) {
  .sec-nav { top: 72px; }
  .sec-nav__inner { width: 100%; padding: 0 16px; height: 52px; }
  .sec-nav__title { display: none; }
  .form__row { grid-template-columns: 1fr; }
}

/* Isometric flow on service pages: sits beside the section heading */
.caps-top { display: grid; grid-template-columns: 1fr 1.3fr; gap: 32px; align-items: center; margin-bottom: 32px; }
.caps-top .section__head { margin: 0; }
.iso { position: relative; margin: 0; border-radius: 24px; background: linear-gradient(180deg, #fff, var(--bg-alt)); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.iso svg { display: block; width: 100%; height: auto; max-height: 420px; margin: 0 auto; }
.iso .df--tall { display: none; }
.iso figcaption { position: absolute; top: 12px; right: 16px; font-size: .75rem; color: var(--muted); }
@media (max-width: 960px) { .caps-top { grid-template-columns: 1fr; gap: 20px; } }
@media (max-width: 600px) { .iso .df--wide { display: none; } .iso .df--tall { display: block; max-height: none; } }

/* Zeno+ product section */
.zeno { padding-top: 72px; }
.zeno__top { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; margin-bottom: 48px; }
.zeno__copy > p:not(.eyebrow):not(.zeno__cta) { color: var(--muted); font-size: 1.1rem; max-width: 30em; }
.zeno__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }
.zeno__visual { position: relative; margin: 0; padding: 22px 14px 34px 14px; }
.zeno__visual figcaption { position: absolute; top: 0; left: 14px; font-size: .75rem; color: var(--muted); }
.zdash { border-radius: 20px; background: #fff; box-shadow: 0 30px 60px rgba(5,0,54,.14), inset 0 0 0 1px var(--line); overflow: hidden; }
.zdash__bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.zdash__bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--dot-pink); }
.zdash__bar i:nth-child(2) { background: var(--dot-yellow); } .zdash__bar i:nth-child(3) { background: var(--dot-orange); }
.zdash__bar span { margin-left: 8px; font-size: .8rem; color: var(--muted); }
.zdash__body { padding: 28px 22px 44px; display: grid; gap: 14px; }
.zdash__h { margin: 0; font: 700 .95rem var(--display); }
.zrow { display: grid; grid-template-columns: 110px 1fr; gap: 12px; align-items: center; font-size: .85rem; color: var(--muted); }
.zbar { height: 8px; border-radius: 99px; background: var(--bg-alt); overflow: hidden; }
.zbar i { display: block; height: 100%; width: var(--p); border-radius: inherit; background: linear-gradient(90deg, var(--brand), var(--brand-2)); transform-origin: left; }
.zfloat { position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 14px; background: #fff; box-shadow: 0 16px 36px rgba(5,0,54,.16), inset 0 0 0 1px var(--line); font-size: .82rem; }
.zfloat b { display: block; font: 700 .85rem var(--display); } .zfloat small { color: var(--muted); font-size: .75rem; }
.zfloat__ic, .zmod__ic { display: grid; place-items: center; flex: none; color: var(--c); background: color-mix(in srgb, var(--c) 13%, #fff); }
.zfloat__ic { width: 34px; height: 34px; border-radius: 10px; } .zfloat__ic svg { width: 19px; height: 19px; }
.zfloat--a { left: -6px; bottom: 0; } .zfloat--b { right: -6px; top: 2px; } .zfloat--c { right: 10px; bottom: 6px; }
.zeno__big, .zeno__grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.zeno__big { grid-template-columns: repeat(3, 1fr); margin-bottom: 16px; }
.zeno__grid { grid-template-columns: repeat(5, 1fr); }
.zmod a { position: relative; display: grid; gap: 8px; align-content: start; height: 100%; padding: 22px; border-radius: var(--radius); background: #fff; color: inherit; text-decoration: none; box-shadow: inset 0 0 0 1px var(--line); transition: transform .25s var(--ease), box-shadow .25s; }
.zmod a:hover, .zmod a:focus-visible { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(5,0,54,.12), inset 0 0 0 1px var(--c); }
.zmod__ic { width: 42px; height: 42px; border-radius: 12px; margin-bottom: 6px; } .zmod__ic svg { width: 22px; height: 22px; }
.zmod b { font: 700 1.05rem var(--display); color: var(--ink); }
.zmod__d { color: var(--muted); font-size: .92rem; }
.zmod__go { position: absolute; top: 22px; right: 22px; color: var(--c); opacity: .45; transition: transform .25s var(--ease), opacity .25s; }
.zmod a:hover .zmod__go { opacity: 1; transform: translateX(4px); }
.zmod--big a { padding: 28px; gap: 10px; } .zmod--big .zmod__ic { width: 52px; height: 52px; } .zmod--big .zmod__ic svg { width: 26px; height: 26px; }
.zmod--big b { font-size: 1.25rem; } .zmod--big .zmod__d { font-size: 1rem; }
.zmod .zmod__go { font-size: 1.1rem; }
.zeno__visual.reveal.is-visible .zbar i { animation: zgrow 1.2s var(--ease) both; }
@keyframes zgrow { from { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) { .zeno__visual .zbar i { animation: none !important; } }
@media (max-width: 1100px) { .zeno__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 960px) { .zeno__top { grid-template-columns: 1fr; gap: 36px; } .zeno__big { grid-template-columns: 1fr; } .zeno__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .zeno__grid { grid-template-columns: 1fr; } .zeno__visual { padding: 22px 0 0; } .zdash__body { padding-bottom: 26px; } .zfloat { position: static; margin-top: 10px; } .zfloat--c { display: none; } .zrow { grid-template-columns: 90px 1fr; } }

/* Legal pages */
.legal { max-width: 720px; }
.legal h2 { font-size: 1.35rem; margin: 40px 0 10px; }
.legal p, .legal li { color: var(--muted); font-size: 1.05rem; }
.legal ul { padding-left: 1.2em; margin: 0 0 1em; } .legal li { margin-bottom: .5em; }
.legal a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }

/* Zeno+ icon animation: icons draw in as the card appears, tilt on hover, sparkle idles */
@media (prefers-reduced-motion: no-preference) {
  .zmod.is-visible .zmod__ic svg :is(path, circle, rect),
  .zeno__visual.is-visible .zfloat__ic svg :is(path, circle, rect) { stroke-dasharray: 1; stroke-dashoffset: 1; animation: zdraw .9s var(--ease) .25s forwards; }
  .zmod:nth-child(2).is-visible .zmod__ic svg *, .zmod:nth-child(5).is-visible .zmod__ic svg * { animation-delay: .35s; }
  .zmod:nth-child(3).is-visible .zmod__ic svg *, .zmod:nth-child(4).is-visible .zmod__ic svg * { animation-delay: .45s; }
  .zmod__ic { transition: transform .35s var(--ease); }
  .zmod a:hover .zmod__ic { transform: rotate(-8deg) scale(1.1); }
  .zmod a:hover .zmod__ic svg { animation: zpop .5s var(--ease); }
  .zeno__grid .zmod:last-child .zmod__ic svg path:last-child { animation: ztwinkle 2.4s ease-in-out 1.4s infinite; transform-origin: 19px 19px; transform-box: view-box; }
  .zfloat { animation: zbob 5s ease-in-out infinite; }
  .zfloat--b { animation-delay: -1.7s; } .zfloat--c { animation-delay: -3.2s; }
}
@keyframes zdraw { to { stroke-dashoffset: 0; } }
@keyframes zpop { 40% { transform: scale(1.18); } }
@keyframes ztwinkle { 0%, 70%, 100% { transform: scale(1); opacity: 1; } 85% { transform: scale(1.5); opacity: .6; } }
@keyframes zbob { 50% { transform: translateY(-6px); } }

/* Platform feature icons: draw in as each row appears, pop on hover, workflow bolt pulses */
@media (prefers-reduced-motion: no-preference) {
  .platform__features li.is-visible .pf-ic svg :is(path, circle, rect, line, polyline) { stroke-dasharray: 1; stroke-dashoffset: 1; animation: zdraw .9s var(--ease) .2s forwards; }
  .pf-ic { transition: transform .35s var(--ease), box-shadow .35s; }
  .platform__features li:hover .pf-ic { transform: rotate(-8deg) scale(1.12); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 18%, transparent); }
  .platform__features li:hover .pf-ic svg { animation: zpop .5s var(--ease); }
  .platform__features li:nth-child(3).is-visible .pf-ic svg path { animation: zdraw .9s var(--ease) .2s forwards, zbolt 2.8s ease-in-out 1.4s infinite; }
  .platform__features li:nth-child(4).is-visible .pf-ic { animation: zring 3s ease-out 1.6s infinite; }
}
@keyframes zbolt { 0%, 78%, 100% { opacity: 1; } 84% { opacity: .35; } 90% { opacity: 1; } 94% { opacity: .5; } }
@keyframes zring { 0% { box-shadow: 0 0 0 0 rgba(31,181,122,.45); } 60%, 100% { box-shadow: 0 0 0 10px rgba(31,181,122,0); } }

/* Platform workflow visual: cards rise in, bars fill, then a 9s loop plays the story
   (automation fires, WhatsApp message arrives, invoice marked paid, a task completes). */
@media (prefers-reduced-motion: no-preference) {
  .pf-visual.is-visible .pf-card { animation: pf-in .6s var(--ease) both; }
  .pf-visual.is-visible .pf-col:nth-child(1) .pf-card { animation-delay: .15s; }
  .pf-visual.is-visible .pf-col:nth-child(2) .pf-card { animation-delay: .3s; }
  .pf-visual.is-visible .pf-col:nth-child(3) .pf-card { animation-delay: .45s; }
  .pf-visual.is-visible .pf-col:nth-child(4) .pf-card { animation-delay: .6s; }
  .pf-visual.is-visible .pf-card--move { animation: pf-in .6s var(--ease) .3s both, pf-highlight 4s ease-in-out 1s infinite; }
  .pf-visual.is-visible .pf-av { animation: pf-avpop .5s var(--ease) .9s both; }
  .pf-visual.is-visible .pf-progress i { transform-origin: left; animation: zgrow 1.2s var(--ease) .8s both; }
  .pf-visual.is-visible .pf-auto__rule i { display: inline-block; animation: pf-arrow 9s ease-in-out 1s infinite; }
  .pf-visual.is-visible .pf-auto__rule i + i, .pf-visual.is-visible .pf-auto__rule i:nth-of-type(2) { animation-delay: 1.7s; }
  .pf-visual.is-visible .pf-auto__ic { animation: pf-pulse 3s ease-in-out infinite; }
  .pf-visual.is-visible .pf-wa p, .pf-visual.is-visible .pf-wa__time { animation: pf-msg 9s ease-in-out 1s infinite; }
  .pf-visual.is-visible .pf-wa__time { animation-delay: 1.4s; }
  .pf-visual.is-visible .pf-inv__status { animation: pf-paid 9s ease-in-out 1s infinite; }
  .pf-visual.is-visible .pf-task:not(.pf-task--done)::before { animation: pf-tick 9s ease-in-out 1s infinite; }
  .pf-visual.is-visible .pf-col:nth-child(3) h4 em { animation: pf-bump 9s ease-in-out 1s infinite; }
}
@keyframes pf-in { from { opacity: 0; transform: translateY(12px); } }
@keyframes pf-avpop { from { transform: scale(0); } 70% { transform: scale(1.2); } }
@keyframes pf-arrow { 0%, 14%, 100% { opacity: .35; transform: none; } 5% { opacity: 1; transform: translateX(4px); } }
@keyframes pf-msg { 0%, 24% { opacity: 0; transform: translateY(8px); } 30%, 90% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; transform: translateY(-4px); } }
@keyframes pf-paid { 0%, 36% { transform: scale(.85); opacity: .45; } 42% { transform: scale(1.15); opacity: 1; } 48%, 100% { transform: scale(1); opacity: 1; } }
@keyframes pf-tick { 0%, 55%, 100% { box-shadow: 0 0 0 0 rgba(59, 47, 214, 0); } 62% { box-shadow: 0 0 0 6px rgba(59, 47, 214, .25); } 72% { box-shadow: 0 0 0 0 rgba(59, 47, 214, 0); } }
@keyframes pf-bump { 0%, 46%, 60%, 100% { transform: none; } 52% { transform: scale(1.35); background: var(--brand); color: #fff; } }
