/* =========================================================
   INSAPI MARKETING — style.css
   Colour system derived from the Insapi logo:
   deep blue → teal → lime, on navy / cool-white.
   ========================================================= */

:root {
  /* Brand */
  --navy-950: #050b16;
  --navy-900: #07111f;
  --navy-800: #0c1a2e;
  --navy-700: #132842;
  --blue: #1f7fc2;
  --blue-deep: #1b5f93;
  --cyan: #17a8a8;
  --teal: #12908e;
  --lime: #97c93d;
  --green: #2e8b5a;

  --grad: linear-gradient(100deg, #1f7fc2 0%, #17a8a8 52%, #97c93d 100%);
  --grad-soft: linear-gradient(120deg, rgba(31,127,194,.12), rgba(23,168,168,.10) 50%, rgba(151,201,61,.12));

  /* Neutrals */
  --bg: #ffffff;
  --bg-tint: #f4f7fa;
  --ink: #0a1628;
  --ink-2: #3c4a5c;
  --ink-3: #6b7889;
  --line: #e3e9ef;
  --line-2: #d4dde6;

  /* Type */
  --f-display: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Layout */
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 22px;
  --section: clamp(84px, 11vw, 144px);

  --shadow-sm: 0 1px 2px rgba(10,22,40,.05), 0 2px 8px rgba(10,22,40,.04);
  --shadow: 0 2px 4px rgba(10,22,40,.04), 0 12px 32px -8px rgba(10,22,40,.10);
  --shadow-lg: 0 4px 8px rgba(10,22,40,.04), 0 30px 70px -20px rgba(10,22,40,.22);

  --ease: cubic-bezier(.22,.8,.24,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-display); margin: 0; line-height: 1.1; letter-spacing: -0.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: rgba(23,168,168,.22); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--navy-900); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 16px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.ico { width: 1.15em; height: 1.15em; flex-shrink: 0; }
.muted { color: var(--ink-3); }

/* ---------- Typography helpers ---------- */
.grad-text {
  background: var(--grad);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: gradShift 8s ease-in-out infinite alternate;
}
@keyframes gradShift { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-display); font-weight: 700; font-size: 13px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--blue-deep);
  margin-bottom: 20px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 4px rgba(23,168,168,.12); }
.eyebrow--dark { color: #8fd0d6; }

.h2 { font-size: clamp(36px, 5.2vw, 64px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.04; }
.h2--xl { font-size: clamp(42px, 6.6vw, 88px); }
.lead { font-size: clamp(17px, 1.4vw, 19px); color: var(--ink-2); max-width: 560px; }

.section { padding: var(--section) 0; position: relative; }
.section--tint { background: var(--bg-tint); }
.section-head { margin-bottom: clamp(48px, 6vw, 72px); max-width: 780px; }
.section-head .lead { margin-top: 22px; }
.section-head--split { max-width: none; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: end; }
.section-head--split .lead { margin-top: 0; }

.link-arrow, .link-inline { font-weight: 600; color: var(--blue-deep); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; margin-top: 32px; font-family: var(--f-display); }
.link-arrow .ico { transition: transform .3s var(--ease); }
.link-arrow:hover .ico { transform: translateX(4px); }
.link-inline { border-bottom: 1px solid currentColor; }

/* ---------- Buttons ---------- */
.btn {
  --pad-y: 13px; --pad-x: 22px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: var(--pad-y) var(--pad-x);
  border-radius: 999px; border: 1px solid transparent;
  font-family: var(--f-display); font-weight: 700; font-size: 15px; letter-spacing: -0.005em;
  cursor: pointer; white-space: nowrap; position: relative; isolation: isolate; overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background-color .3s, color .3s, border-color .3s;
}
.btn .ico { transition: transform .3s var(--ease); }
.btn:hover .ico { transform: translateX(3px); }
.btn:active { transform: scale(.98); }
.btn--sm { --pad-y: 10px; --pad-x: 18px; font-size: 14px; }
.btn--lg { --pad-y: 17px; --pad-x: 30px; font-size: 16px; }

.btn--primary { color: #fff; border: 0; padding: calc(var(--pad-y) + 1px) calc(var(--pad-x) + 1px); background: var(--grad); background-size: 170% 100%; background-position: 0 0; box-shadow: 0 8px 24px -8px rgba(23,128,168,.55); transition: transform .3s var(--ease), box-shadow .3s var(--ease), background-position .6s var(--ease); }
.btn--primary:hover { transform: translateY(-2px); background-position: 100% 0; box-shadow: 0 14px 34px -10px rgba(23,140,168,.7); }

.btn--dark { background: var(--navy-900); color: #fff; }
.btn--dark:hover { background: var(--navy-700); transform: translateY(-1px); }

.btn--ghost { background: #fff; border-color: var(--line-2); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-2px); }

.btn--glass { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn--glass:hover { background: rgba(255,255,255,.16); transform: translateY(-2px); }
.btn--glass:hover .ico { transform: none; }

/* ---------- Navbar ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background-color .35s, box-shadow .35s, padding .35s, border-color .35s;
  padding: 18px 0; border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  padding: 10px 0;
  background: rgba(255,255,255,.72);
  backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom-color: rgba(10,22,40,.07);
  box-shadow: 0 6px 24px -12px rgba(10,22,40,.12);
}
.nav__inner { display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand img { width: 36px; height: auto; }
.brand__text { font-family: var(--f-display); font-size: 18px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.brand__text strong { font-weight: 800; }
.brand--light .brand__text { color: #fff; }

.nav__links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav__links a:not(.btn) {
  font-family: var(--f-display); font-size: 15px; font-weight: 600; color: var(--ink-2);
  padding: 8px 14px; border-radius: 999px; transition: color .2s, background-color .2s;
}
.nav__links a:not(.btn):hover { color: var(--ink); background: rgba(10,22,40,.05); }
.nav__links a.is-active { color: var(--ink); }
.nav__links a.is-active::after { content: ""; display: block; height: 2px; margin-top: 2px; border-radius: 2px; background: var(--grad); }
.nav__mobile-cta { display: none; }
.nav__cta { margin-left: 8px; }

.nav__toggle {
  display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2);
  background: #fff; cursor: pointer; position: relative; margin-left: auto;
}
.nav__toggle span { position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .35s var(--ease), top .35s var(--ease); }
.nav__toggle span:first-child { top: 17px; }
.nav__toggle span:last-child { top: 25px; }
.nav__toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(130px, 16vw, 180px) 0 clamp(70px, 9vw, 120px); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, #f6f9fc 0%, #fff 70%); }
.hero__grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(10,22,40,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(10,22,40,.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 60% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 30%, #000 30%, transparent 75%);
}
.orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .5; animation: float 14s ease-in-out infinite; }
.orb--blue { width: 520px; height: 520px; right: -120px; top: -80px; background: radial-gradient(circle, rgba(31,127,194,.55), transparent 65%); }
.orb--lime { width: 420px; height: 420px; right: 18%; bottom: -160px; background: radial-gradient(circle, rgba(151,201,61,.45), transparent 65%); animation-delay: -6s; }
@keyframes float { 0%,100% { transform: translate3d(0,0,0); } 50% { transform: translate3d(-24px, 20px, 0); } }

.hero__inner { display: grid; grid-template-columns: 1.12fr 1fr; gap: clamp(40px, 5vw, 72px); align-items: center; }
.hero__title {
  font-size: clamp(40px, 5.3vw, 76px); font-weight: 800; letter-spacing: -0.045em; line-height: .98;
  text-transform: uppercase;
}
.hero__title .grad-text { display: block; padding-bottom: .06em; background-size: 130% 100%; }
.hero__lead { margin-top: 28px; font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-2); max-width: 540px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero__chips { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 44px; }
.hero__chips li { font-family: var(--f-display); font-size: 14px; font-weight: 600; color: var(--ink-3); display: flex; align-items: center; gap: 16px; }
.hero__chips li + li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--grad); }

.hero-in { opacity: 0; transform: translateY(24px); animation: heroIn .9s var(--ease) forwards; animation-delay: calc(var(--d) * 110ms + 100ms); }
@keyframes heroIn { to { opacity: 1; transform: none; } }

/* Dashboard */
.hero__visual { position: relative; padding: 30px 10px 40px; }
.dash {
  position: relative; background: rgba(255,255,255,.88); border: 1px solid rgba(10,22,40,.08);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 20px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.dash::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; z-index: -1;
  background: var(--grad); opacity: .5;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.dash__top { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.dash__dots { display: flex; gap: 5px; }
.dash__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.dash__title { font-family: var(--f-display); font-weight: 700; font-size: 14px; }
.dash__tag { margin-left: auto; font-size: 11.5px; font-weight: 600; color: var(--teal); background: rgba(23,168,168,.1); padding: 4px 10px; border-radius: 999px; }

.dash__kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.kpi { background: var(--bg-tint); border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.kpi__label { font-size: 11.5px; color: var(--ink-3); font-weight: 500; }
.kpi__value { font-family: var(--f-display); font-weight: 800; font-size: clamp(17px, 1.7vw, 22px); letter-spacing: -0.02em; }
.kpi__trend { font-size: 11px; font-weight: 600; }
.kpi__trend.up { color: var(--green); }

.dash__chart { margin-top: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 14px 14px 6px; }
.dash__chart-head { display: flex; justify-content: space-between; font-family: var(--f-display); font-weight: 700; font-size: 13px; margin-bottom: 6px; }
.dash__chart-head .muted { font-weight: 500; font-family: var(--f-body); font-size: 12px; }
.area-chart { width: 100%; height: 150px; overflow: visible; }
.gridlines line { stroke: var(--line); stroke-width: 1; }
.area-line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.2s var(--ease) .7s forwards; }
.area-line--alt { stroke-dasharray: .012 .015; stroke-dashoffset: 0; animation: none; opacity: .8; }
.area-fill { opacity: 0; animation: fadeIn 1.2s ease 1.6s forwards; }
.pulse-dot { opacity: 0; animation: fadeIn .4s ease 2.6s forwards, pulse 2s ease-in-out 3s infinite; transform-origin: 400px 18px; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.5); opacity: .6; } }

.dash__bottom { display: grid; grid-template-columns: 1fr auto; gap: 12px; margin-top: 12px; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 86px; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.bars span { flex: 1; height: var(--h); border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, var(--cyan), var(--blue)); transform-origin: bottom; transform: scaleY(0); animation: grow .9s var(--ease) forwards; }
.bars span:nth-child(odd) { background: linear-gradient(180deg, var(--lime), var(--cyan)); }
.bars span:nth-child(1) { animation-delay: 1s; } .bars span:nth-child(2) { animation-delay: 1.07s; } .bars span:nth-child(3) { animation-delay: 1.14s; }
.bars span:nth-child(4) { animation-delay: 1.21s; } .bars span:nth-child(5) { animation-delay: 1.28s; } .bars span:nth-child(6) { animation-delay: 1.35s; } .bars span:nth-child(7) { animation-delay: 1.42s; }
@keyframes grow { to { transform: scaleY(1); } }

.ring { position: relative; width: 86px; height: 86px; border: 1px solid var(--line); border-radius: 12px; display: grid; place-items: center; }
.ring svg { width: 66px; height: 66px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 7; }
.ring__track { stroke: var(--line); }
.ring__val { stroke: url(#g-brand); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; animation: ring 1.6s var(--ease) 1.2s forwards; }
@keyframes ring { to { stroke-dashoffset: calc(100 - var(--v)); } }
.ring__label { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1.1; }
.ring__label strong { font-family: var(--f-display); font-size: 15px; }
.ring__label span { font-size: 10px; color: var(--ink-3); }

.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,.92); border: 1px solid rgba(10,22,40,.08); border-radius: 14px;
  padding: 12px 16px 12px 12px; box-shadow: var(--shadow);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  animation: bob 6s ease-in-out infinite;
}
.float-card div { display: flex; flex-direction: column; line-height: 1.25; }
.float-card .muted { font-size: 11.5px; }
.float-card strong { font-family: var(--f-display); font-size: 14px; }
.float-card__icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--blue), var(--cyan)); }
.float-card__icon--lime { background: linear-gradient(135deg, var(--cyan), var(--lime)); }
.float-card--a { left: -34px; top: 262px; }
.float-card--b { right: -18px; bottom: 6px; animation-delay: -3s; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.hero__note { position: absolute; left: 14px; bottom: 8px; font-size: 11.5px; color: var(--ink-3); }

/* ---------- Trust strip ---------- */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.trust__inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust__item {
  display: flex; align-items: center; justify-content: center; gap: 12px; padding: 28px 16px;
  font-family: var(--f-display); font-weight: 700; font-size: 16px; letter-spacing: -0.01em;
}
.trust__item + .trust__item { border-left: 1px solid var(--line); }
.trust__icon { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; }
.trust__icon .ico { width: 14px; height: 14px; }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.svc {
  position: relative; display: flex; flex-direction: column; padding: 32px 30px 34px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm); overflow: hidden; isolation: isolate;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s;
}
.svc::before { /* gradient top accent */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--grad);
  transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease);
}
.svc::after { /* soft glow */
  content: ""; position: absolute; width: 260px; height: 260px; right: -110px; top: -110px; z-index: -1;
  border-radius: 50%; background: radial-gradient(circle, rgba(23,168,168,.14), transparent 70%);
  opacity: 0; transition: opacity .5s;
}
.svc:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.svc:hover::before { transform: scaleX(1); }
.svc:hover::after { opacity: 1; }
.svc__num { position: absolute; top: 28px; right: 28px; font-family: var(--f-display); font-weight: 700; font-size: 13px; color: var(--ink-3); letter-spacing: .04em; }
.svc__icon {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 28px;
  color: var(--blue-deep); background: var(--grad-soft); border: 1px solid rgba(23,168,168,.16);
  transition: background .45s, color .45s, transform .45s var(--ease);
}
.svc__icon .ico { width: 26px; height: 26px; }
.svc:hover .svc__icon { background: var(--grad); color: #fff; transform: rotate(-6deg) scale(1.05); }
.svc h3 { font-size: 21px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 10px; padding-right: 20px; }
.svc p { color: var(--ink-2); font-size: 16px; }

.svc--cta { grid-column: span var(--cta-span, 2); background: var(--navy-900); border-color: var(--navy-900); color: #fff; justify-content: flex-end; min-height: 100%; }
.svc--cta::after { opacity: .9; background: radial-gradient(circle, rgba(151,201,61,.3), transparent 70%); width: 320px; height: 320px; }
.svc--cta .svc__num { color: var(--lime); font-size: 22px; }
.svc--cta p { color: #b6c2d1; }
.svc__link { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-family: var(--f-display); font-weight: 700; color: var(--lime); }
.svc--cta:hover .svc__link .ico { transform: translateX(4px); }
.svc__link .ico { transition: transform .3s var(--ease); }

/* ---------- Dark sections ---------- */
.dark { background: var(--navy-900); color: #e8eef5; }
.dark .lead { color: #a8b5c6; }
.dark .muted { color: #8796aa; }

/* Why */
.why { overflow: hidden; isolation: isolate; }
.why__glow {
  position: absolute; z-index: -1; inset: -20%;
  background:
    radial-gradient(40% 40% at 15% 20%, rgba(31,127,194,.32), transparent 70%),
    radial-gradient(35% 35% at 85% 30%, rgba(23,168,168,.22), transparent 70%),
    radial-gradient(40% 40% at 60% 95%, rgba(151,201,61,.18), transparent 70%);
  animation: glowMove 18s ease-in-out infinite alternate;
}
@keyframes glowMove { from { transform: translate3d(0,0,0) rotate(0deg); } to { transform: translate3d(3%, -3%, 0) rotate(6deg); } }
.why::before { /* fine grid */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 80px 80px;
}
.why__head { display: grid; grid-template-columns: 1.35fr 1fr; gap: 56px; align-items: end; margin-bottom: clamp(56px, 7vw, 96px); }
.why__head .h2 { color: #fff; }
.why__intro p { color: #b2bfcf; font-size: 18px; }
.pillars { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.pillars li {
  font-family: var(--f-display); font-weight: 600; font-size: 14px; padding: 8px 16px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.04); color: #dfe7ef;
}
.why__grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.12); }
.feature { padding: 36px 28px 8px 0; position: relative; }
.feature + .feature { padding-left: 28px; border-left: 1px solid rgba(255,255,255,.12); }
.feature__num {
  display: block; font-family: var(--f-display); font-weight: 800; font-size: clamp(48px, 5vw, 72px); letter-spacing: -0.05em; line-height: 1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
  margin-bottom: 26px;
}
.feature h3 { font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 12px; }
.feature p { color: #a8b5c6; font-size: 16px; }

/* ---------- Results / analytics ---------- */
.results { background: linear-gradient(180deg, #fff, var(--bg-tint)); }
.analytics { background: #fff; border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow-lg); padding: clamp(16px, 2.4vw, 28px); }
.analytics__bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; margin-bottom: 20px; }
.badge { font-size: 12.5px; font-weight: 600; color: var(--ink-2); background: var(--bg-tint); border: 1px dashed var(--line-2); padding: 6px 12px; border-radius: 999px; }
.tabs { display: inline-flex; padding: 4px; background: var(--bg-tint); border-radius: 999px; border: 1px solid var(--line); }
.tab { border: 0; background: transparent; padding: 7px 16px; border-radius: 999px; font-family: var(--f-display); font-weight: 600; font-size: 13.5px; color: var(--ink-3); cursor: pointer; transition: background .25s, color .25s, box-shadow .25s; }
.tab.is-active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }

.analytics__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.panel { border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; }
.panel--chart { grid-column: span 3; }
.panel--funnel { grid-column: span 2; }
.panel__head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.panel__head h3 { font-size: 16px; font-weight: 700; }
.legend { display: flex; gap: 16px; font-size: 13px; color: var(--ink-3); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; }

.colchart { display: flex; gap: clamp(6px, 1.4vw, 16px); height: 230px; }
.colchart__grp { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.colchart__bars {
  flex: 1; display: flex; align-items: flex-end; justify-content: center; gap: 4px; border-bottom: 1px solid var(--line-2);
  background-image: linear-gradient(var(--line) 1px, transparent 1px); background-size: 100% 25%;
}
.colchart__bars span { width: min(16px, 40%); border-radius: 5px 5px 0 0; height: 0; transition: height 1s var(--ease); }
.colchart__bars span:first-child { background: linear-gradient(180deg, #3a9bd6, var(--blue)); }
.colchart__bars span:last-child { background: linear-gradient(180deg, #b2dc61, var(--lime)); }
.colchart__lbl { font-size: 11.5px; color: var(--ink-3); margin-top: 8px; text-align: center; white-space: nowrap; }

.funnel { display: flex; flex-direction: column; gap: 10px; }
.funnel li {
  position: relative; display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px; border-radius: 12px; background: var(--bg-tint); overflow: hidden; isolation: isolate;
  font-family: var(--f-display); font-weight: 600; font-size: 14.5px;
}
.funnel li::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 0; z-index: -1; background: var(--grad-soft); border-right: 3px solid var(--cyan); transition: width 1.3s var(--ease); }
.funnel li:nth-child(1)::before { border-color: var(--blue); }
.funnel li:nth-child(4)::before { border-color: var(--lime); }
.is-visible .funnel li::before { width: var(--w); }
.funnel li:nth-child(2)::before { transition-delay: .15s; } .funnel li:nth-child(3)::before { transition-delay: .3s; } .funnel li:nth-child(4)::before { transition-delay: .45s; }
.funnel b { font-weight: 800; }

.metric { border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.metric__label { font-size: 13px; color: var(--ink-3); font-weight: 500; }
.metric__value { font-family: var(--f-display); font-weight: 800; font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -0.03em; }
.spark { width: 100%; height: 34px; margin-top: 6px; overflow: visible; }
.spark path { fill: none; stroke: url(#g-brand); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--ease) .3s; }
.is-visible .spark path { stroke-dashoffset: 0; }

/* ---------- About ---------- */
.about { padding-top: calc(var(--section) * .6); }
.about__inner { display: grid; grid-template-columns: 300px 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.about__mark { position: relative; aspect-ratio: 1; display: grid; place-items: center; border-radius: 32px; background: var(--bg-tint); border: 1px solid var(--line); }
.about__mark::before { content: ""; position: absolute; inset: 18%; border-radius: 50%; background: radial-gradient(circle, rgba(23,168,168,.22), transparent 70%); filter: blur(10px); }
.about__mark img { position: relative; width: 58%; height: auto; animation: bob 7s ease-in-out infinite; }
.about__statement { font-family: var(--f-display); font-weight: 600; font-size: clamp(24px, 2.8vw, 38px); line-height: 1.28; letter-spacing: -0.025em; color: var(--ink); }
.about__statement em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }

/* ---------- Industries ---------- */
.industries { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ind {
  display: flex; align-items: center; gap: 18px; padding: 24px 26px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r); font-family: var(--f-display); font-weight: 700; font-size: 18px; letter-spacing: -0.015em;
  transition: transform .4s var(--ease), border-color .4s, box-shadow .4s;
}
.ind .ico { width: 26px; height: 26px; color: var(--teal); transition: color .3s, transform .4s var(--ease); }
.ind:hover { transform: translateY(-4px); border-color: rgba(23,168,168,.4); box-shadow: var(--shadow); }
.ind:hover .ico { color: var(--blue); transform: scale(1.12); }

/* ---------- Process timeline ---------- */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; position: relative; counter-reset: s; }
.timeline::before { /* track */
  content: ""; position: absolute; left: 0; right: 0; top: 31px; height: 2px; background: var(--line);
}
.timeline::after { /* progress */
  content: ""; position: absolute; left: 0; top: 31px; height: 2px; width: calc(var(--progress, 0) * 100%); background: var(--grad); transition: width .2s linear;
}
.step { position: relative; z-index: 1; }
.step__node {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 28px;
  font-family: var(--f-display); font-weight: 800; font-size: 18px; background: #fff; border: 2px solid var(--line);
  transition: border-color .5s, color .5s, box-shadow .5s, background .5s;
}
.step.is-on .step__node { border-color: transparent; color: #fff; background: var(--grad); box-shadow: 0 10px 26px -8px rgba(23,168,168,.6); }
.step h3 { font-size: clamp(24px, 2.4vw, 30px); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 10px; }
.step p { color: var(--ink-2); max-width: 260px; }

/* ---------- Work / cases ---------- */
.work .h2 { color: #fff; }
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.case { background: var(--navy-800); border: 1px solid rgba(255,255,255,.08); border-radius: var(--r-lg); overflow: hidden; transition: transform .5s var(--ease), border-color .5s; }
.case:hover { transform: translateY(-6px); border-color: rgba(23,168,168,.45); }
.case__visual { aspect-ratio: 16 / 11; position: relative; display: grid; place-items: center; overflow: hidden; }
.case__visual img { width: 100%; height: 100%; object-fit: cover; }
.case__visual::before { content: ""; position: absolute; inset: 0; transition: transform .8s var(--ease); }
.case:hover .case__visual::before { transform: scale(1.08); }
.case__visual--1::before { background: radial-gradient(70% 90% at 20% 10%, rgba(31,127,194,.7), transparent 60%), radial-gradient(60% 80% at 90% 100%, rgba(23,168,168,.5), transparent 60%), #0e2038; }
.case__visual--2::before { background: radial-gradient(70% 90% at 80% 10%, rgba(23,168,168,.65), transparent 60%), radial-gradient(60% 80% at 10% 100%, rgba(151,201,61,.45), transparent 60%), #0e2038; }
.case__visual--3::before { background: radial-gradient(70% 90% at 50% 0%, rgba(151,201,61,.55), transparent 60%), radial-gradient(60% 80% at 0% 100%, rgba(31,127,194,.55), transparent 60%), #0e2038; }
.case__visual::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 32px 32px; }
.case__ph {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-display); font-weight: 700; font-size: 14px;
  padding: 10px 18px; border-radius: 999px; border: 1px dashed rgba(255,255,255,.4); background: rgba(5,11,22,.35); color: #fff;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.case__ph::before { content: "+"; font-size: 18px; line-height: 1; color: var(--lime); }
.case__body { padding: 26px 26px 30px; }
.case__meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-size: 13px; }
.tag { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: rgba(23,168,168,.15); color: #7fd6d4; }
.case h3 { font-size: 24px; color: #fff; margin-bottom: 18px; }
.case__dl { margin: 0; display: grid; gap: 14px; }
.case__dl div { display: grid; grid-template-columns: 88px 1fr; gap: 12px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.08); }
.case__dl dt { font-family: var(--f-display); font-weight: 700; font-size: 13px; color: #8796aa; text-transform: uppercase; letter-spacing: .06em; padding-top: 2px; }
.case__dl dd { margin: 0; font-size: 15px; color: #c3cedb; }
.case__result { color: var(--lime) !important; font-weight: 600; }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote { margin: 0; padding: 34px 32px 30px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .4s var(--ease), box-shadow .4s; }
.quote:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.quote__mark { width: 34px; height: 34px; color: var(--cyan); opacity: .9; margin-bottom: 22px; }
.quote blockquote { margin: 0 0 30px; font-family: var(--f-display); font-weight: 600; font-size: 21px; line-height: 1.4; letter-spacing: -0.015em; flex: 1; }
.quote figcaption { display: flex; align-items: center; gap: 14px; padding-top: 22px; border-top: 1px solid var(--line); }
.quote figcaption > span:last-child { display: flex; flex-direction: column; line-height: 1.35; }
.quote figcaption strong { font-family: var(--f-display); font-size: 15px; }
.quote figcaption .muted { font-size: 14px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font-family: var(--f-display); font-weight: 800; font-size: 14px; flex-shrink: 0; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 1fr 1.45fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.faq__head { position: sticky; top: 110px; }
.faq__head .lead { margin-top: 22px; }
.accordion { display: flex; flex-direction: column; gap: 10px; }
.acc { background: #fff; border: 1px solid var(--line); border-radius: var(--r); transition: border-color .3s, box-shadow .3s; }
.acc.is-open { border-color: rgba(23,168,168,.4); box-shadow: var(--shadow); }
.acc h3 { font-size: inherit; }
.acc__btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; text-align: left;
  padding: 22px 24px; background: transparent; border: 0; cursor: pointer;
  font-family: var(--f-display); font-weight: 700; font-size: 17.5px; letter-spacing: -0.015em; color: var(--ink);
}
.acc__icon { width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; background: var(--bg-tint); transition: transform .4s var(--ease), background .3s, color .3s; }
.acc__icon .ico { width: 16px; height: 16px; }
.acc.is-open .acc__icon { transform: rotate(45deg); background: var(--grad); color: #fff; }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.acc.is-open .acc__panel { grid-template-rows: 1fr; }
.acc__inner { overflow: hidden; }
.acc__inner p { padding: 0 24px 24px; color: var(--ink-2); max-width: 640px; }

/* ---------- CTA ---------- */
.cta { padding: 0 0 var(--section); }
.cta__box {
  position: relative; overflow: hidden; isolation: isolate; text-align: center;
  background: var(--navy-950); color: #fff; border-radius: 32px;
  padding: clamp(72px, 10vw, 140px) clamp(24px, 5vw, 64px);
}
.cta__glow {
  position: absolute; z-index: -1; inset: -40%;
  background: conic-gradient(from 0deg at 50% 50%, rgba(31,127,194,.0), rgba(31,127,194,.45), rgba(23,168,168,.4), rgba(151,201,61,.38), rgba(31,127,194,.0) 70%);
  filter: blur(70px); opacity: .55; animation: spin 24s linear infinite;
}
.cta__box::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 70% at 50% 50%, transparent, rgba(5,11,22,.75)); }
@keyframes spin { to { transform: rotate(360deg); } }
.cta__title { font-size: clamp(46px, 8vw, 112px); font-weight: 800; letter-spacing: -0.05em; line-height: .96; }
.cta__lead { margin: 28px auto 0; max-width: 520px; font-size: clamp(17px, 1.5vw, 20px); color: #b9c5d4; }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 44px; }
.cta .btn--primary { box-shadow: 0 10px 40px -10px rgba(151,201,61,.6); }

/* ---------- Contact ---------- */
#contact { padding-top: 0; }
.contact { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact__info .lead { margin-top: 22px; }
.contact__list { margin-top: 40px; display: grid; gap: 10px; }
.contact__list li > a, .contact__list li > div {
  display: flex; align-items: center; gap: 16px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r);
  transition: border-color .3s, transform .3s var(--ease), background .3s;
}
.contact__list li > a:hover { border-color: rgba(23,168,168,.45); transform: translateX(4px); background: var(--bg-tint); }
.contact__list span:last-child { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.contact__list small { font-size: 12.5px; color: var(--ink-3); }
.contact__list b { font-family: var(--f-display); font-size: 16px; font-weight: 700; overflow-wrap: anywhere; }
.contact__icon { width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0; display: grid; place-items: center; background: var(--grad-soft); color: var(--blue-deep); }

.form { background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: clamp(24px, 3.4vw, 44px); box-shadow: var(--shadow-lg); display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-family: var(--f-display); font-size: 14px; font-weight: 700; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg-tint);
  font-size: 16px; transition: border-color .25s, box-shadow .25s, background .25s; appearance: none; -webkit-appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%236b7889' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 42px; cursor: pointer;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder, .field textarea::placeholder { color: #9aa6b4; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cyan); background: #fff; box-shadow: 0 0 0 4px rgba(23,168,168,.14); }
.field.has-error input, .field.has-error textarea { border-color: #d64545; box-shadow: 0 0 0 4px rgba(214,69,69,.1); }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 6px; }
.form__note { font-size: 14px; color: var(--ink-3); flex: 1; min-width: 200px; }
.form__note.is-error { color: #c23b3b; }
.form__note.is-ok { color: var(--green); }

/* ---------- Footer ---------- */
.footer { background: var(--navy-950); color: #a8b5c6; padding: clamp(64px, 8vw, 100px) 0 32px; overflow: hidden; }
.footer__top { display: grid; grid-template-columns: 1fr 2fr; gap: 56px; }
.footer__brand p { margin-top: 16px; }
.socials { display: flex; gap: 10px; margin-top: 28px; }
.socials a { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.12); color: #dfe7ef; transition: background .3s, border-color .3s, transform .3s var(--ease); }
.socials a:hover { background: var(--grad); border-color: transparent; color: #fff; transform: translateY(-3px); }
.socials .ico { width: 18px; height: 18px; }
.footer__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.footer__cols h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: #fff; margin-bottom: 18px; }
.footer__cols a, .footer__loc { display: block; padding: 5px 0; font-size: 15px; transition: color .2s; overflow-wrap: anywhere; }
.footer__cols a:hover { color: #fff; }
.footer__word {
  font-family: var(--f-display); font-weight: 800; font-size: clamp(80px, 22vw, 320px); line-height: .8; letter-spacing: -0.06em;
  text-align: center; margin: clamp(48px, 7vw, 90px) 0 30px; user-select: none;
  background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,0) 85%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.08); font-size: 14px; }
.to-top:hover { color: #fff; }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--rd, 0ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1140px) {
  .nav__links a:not(.btn) { padding: 8px 10px; font-size: 14.5px; }
  .analytics__grid { grid-template-columns: repeat(6, 1fr); }
  .panel--chart, .panel--funnel { grid-column: span 6; }
  .metric { grid-column: span 2; }
  .metric:nth-last-child(-n+2) { grid-column: span 3; }
}

@media (max-width: 1024px) {
  /* Mobile nav */
  .nav__toggle { display: block; }
  .nav__cta { display: none; }
  .nav__links {
    position: fixed; inset: 0; z-index: -1; margin: 0;
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 2px;
    padding: 96px var(--gutter) 32px; background: rgba(255,255,255,.98);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    opacity: 0; visibility: hidden; transform: translateY(-12px);
    transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
    overflow-y: auto;
  }
  .nav.is-open .nav__links { opacity: 1; visibility: visible; transform: none; }
  .nav.is-open { background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom-color: transparent; }
  .nav__links a:not(.btn) { font-size: clamp(26px, 6vw, 34px); font-weight: 800; letter-spacing: -0.03em; padding: 12px 0; border-radius: 0; border-bottom: 1px solid var(--line); color: var(--ink); }
  .nav__links a:not(.btn):hover { background: transparent; }
  .nav__links a.is-active::after { display: none; }
  .nav__mobile-cta { display: inline-flex; margin-top: 28px; }

  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { max-width: 620px; width: 100%; margin: 0 auto; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .why__head, .section-head--split { grid-template-columns: 1fr; gap: 24px; }
  .why__grid { grid-template-columns: repeat(2, 1fr); border-top: 0; gap: 0; }
  .feature, .feature + .feature { padding: 32px 24px 32px 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.12); }
  .feature:nth-child(even) { padding-left: 24px; border-left: 1px solid rgba(255,255,255,.12); }
  .cases { grid-template-columns: 1fr 1fr; }
  .quotes { grid-template-columns: 1fr 1fr; }
  .quote:last-child { grid-column: span 2; }
  .faq, .contact { grid-template-columns: 1fr; }
  .faq__head { position: static; }
  .footer__top { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .trust__inner { grid-template-columns: 1fr 1fr; }
  .trust__item:nth-child(3) { border-left: 0; }
  .trust__item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .industries { grid-template-columns: 1fr 1fr; }
  .about__inner { grid-template-columns: 1fr; }
  .about__mark { width: 180px; border-radius: 26px; }
  .cases { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr 1fr; gap: 36px 24px; }

  /* Vertical timeline */
  .timeline { grid-template-columns: 1fr; gap: 0; padding-left: 0; }
  .timeline::before, .timeline::after { left: 31px; right: auto; top: 0; width: 2px; height: 100%; }
  .timeline::after { height: calc(var(--progress, 0) * 100%); width: 2px; background: linear-gradient(180deg, var(--blue), var(--cyan), var(--lime)); }
  .step { display: grid; grid-template-columns: 64px 1fr; column-gap: 24px; padding-bottom: 40px; }
  .step:last-child { padding-bottom: 0; }
  .step__node { grid-row: span 2; margin-bottom: 0; }
  .step h3 { align-self: end; padding-top: 6px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .brand__text { font-size: 17px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .dash { padding: 14px; }
  .dash__kpis { grid-template-columns: 1fr 1fr; }
  .float-card--a { display: none; }
  .svc { padding: 24px 22px 26px; }
  .svc__icon { width: 46px; height: 46px; margin-bottom: 18px; }
  .svc__num { top: 22px; right: 22px; }
  .svc h3 { font-size: 19px; }
  .float-card--b { right: -6px; }
  .float-card { padding: 8px 12px 8px 8px; }
  .float-card__icon { width: 30px; height: 30px; }
  .services, .quotes, .form__row { grid-template-columns: 1fr; }
  .quote:last-child, .svc--cta { grid-column: auto; }
  .why__grid { grid-template-columns: 1fr; }
  .feature, .feature + .feature, .feature:nth-child(even) { padding: 28px 0; border-left: 0; }
  .industries { grid-template-columns: 1fr; }
  .ind { padding: 20px 22px; }
  .trust__item { font-size: 14px; padding: 20px 10px; flex-direction: column; text-align: center; gap: 8px; }
  .metric, .metric:nth-last-child(-n+2) { grid-column: span 3; }
  .metric:last-child { grid-column: span 6; }
  .colchart { height: 190px; }
  .colchart__lbl { font-size: 10px; }
  .case__dl div { grid-template-columns: 1fr; gap: 4px; }
  .cta__box { border-radius: 24px; }
  .cta__actions .btn { flex: 1 1 100%; }
  .form__foot .btn { width: 100%; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; animation-delay: 0ms !important; transition-duration: .001ms !important; transition-delay: 0ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero-in { opacity: 1; transform: none; }
}

/* =========================================================
   BACKEND ADDITIONS (v2)
   Service details modal, toasts, loading states, newsletter.
   Everything below reuses the existing tokens above; no
   existing rule is overridden except where noted.
   ========================================================= */

/* Adaptive span for the "Not sure what you need?" card when services are added/disabled */
@media (min-width: 641px) and (max-width: 1024px) {
  .svc--cta { grid-column: span var(--cta-span-2, 2); }
}

/* ---------- "View Details" on service cards ---------- */
.svc { cursor: pointer; }
.svc--cta { cursor: pointer; }
.svc__more {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px;
  margin-top: auto; padding: 20px 0 0; background: none; border: 0; cursor: pointer;
  font-family: var(--f-display); font-weight: 700; font-size: 14.5px; color: var(--blue-deep);
}
.svc p + .svc__more { margin-top: auto; }
.svc__more span { display: inline-block; transition: transform .3s var(--ease); }
.svc:hover .svc__more span, .svc__more:focus-visible span { transform: translateX(4px); }
.svc:hover .svc__more { color: var(--blue); }

/* ---------- Service details modal ---------- */
.modal { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 24px 16px; }
.modal[hidden] { display: none; }
.modal__backdrop {
  position: absolute; inset: 0; background: rgba(5,11,22,.55);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .35s var(--ease);
}
.modal__dialog {
  position: relative; width: 100%; max-width: 780px; max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); overflow-y: auto;
  background: #fff; color: var(--ink); border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  padding: clamp(28px, 4vw, 44px); overscroll-behavior: contain;
  opacity: 0; transform: translateY(24px) scale(.98); transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.modal__dialog::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--grad); }
.modal.is-open .modal__backdrop { opacity: 1; }
.modal.is-open .modal__dialog { opacity: 1; transform: none; }
.modal__dialog:focus { outline: none; }
.modal__close {
  position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid var(--line); background: #fff; cursor: pointer; color: var(--ink);
  transition: background .3s, color .3s, border-color .3s, transform .4s var(--ease);
}
.modal__close .ico { width: 18px; height: 18px; transform: rotate(45deg); }
.modal__close:hover { background: var(--grad); color: #fff; border-color: transparent; transform: rotate(90deg); }
.modal__head { display: flex; align-items: center; gap: 18px; padding-right: 48px; margin-bottom: 22px; }
.modal__head .svc__icon { margin-bottom: 0; flex-shrink: 0; background: var(--grad); color: #fff; border-color: transparent; }
.modal__head .eyebrow { margin-bottom: 8px; }
.modal__title { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; }
.modal__desc { font-size: 17px; color: var(--ink-2); max-width: 640px; }
.modal__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 22px; margin-top: 30px; }
.modal__h { font-size: 15px; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 14px; }
.modal__list { display: grid; gap: 11px; }
.modal__list li { display: flex; align-items: flex-start; gap: 12px; font-size: 15.5px; color: var(--ink-2); line-height: 1.45; }
.modal__list .trust__icon { width: 22px; height: 22px; margin-top: 1px; flex-shrink: 0; }
.modal__list .trust__icon .ico { width: 12px; height: 12px; }
.modal__help { background: var(--bg-tint); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; align-self: start; }
.modal__help p { color: var(--ink-2); font-size: 15.5px; }
.modal__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; padding-top: 26px; border-top: 1px solid var(--line); }
.modal__actions .btn--ghost .ico { transform: none; }
.modal__actions .btn--ghost:hover .ico { transform: none; }
body.modal-open { overflow: hidden; }

/* ---------- Toast notifications ---------- */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: grid; gap: 10px; width: min(380px, calc(100vw - 32px)); pointer-events: none; }
.toast {
  pointer-events: auto; display: flex; align-items: flex-start; gap: 14px; padding: 16px 16px 16px 16px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg);
  position: relative; overflow: hidden;
  opacity: 0; transform: translateY(16px); transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.toast::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--grad); }
.toast.is-in { opacity: 1; transform: none; }
.toast__icon { width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; color: #fff; background: var(--grad); }
.toast__icon .ico { width: 15px; height: 15px; }
.toast--error::before { background: var(--navy-900); }
.toast--error .toast__icon { background: var(--navy-900); }
.toast--error .toast__icon .ico { transform: rotate(45deg); }
.toast__body { flex: 1; min-width: 0; }
.toast__title { display: block; font-family: var(--f-display); font-weight: 800; font-size: 15px; letter-spacing: -0.01em; }
.toast__msg { font-size: 14px; color: var(--ink-2); line-height: 1.45; margin-top: 2px; }
.toast__close { background: none; border: 0; padding: 4px; margin: -2px -2px 0 0; cursor: pointer; color: var(--ink-3); border-radius: 8px; }
.toast__close:hover { color: var(--ink); }
.toast__close .ico { width: 16px; height: 16px; transform: rotate(45deg); }

/* ---------- Loading state for submit buttons ---------- */
.btn.is-loading { pointer-events: none; }
.btn.is-loading .ico { display: none; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .8s linear infinite; }

/* ---------- Spam honeypot (never visible) ---------- */
.hp-field { position: absolute !important; left: -10000px !important; top: auto !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

/* ---------- Footer newsletter ---------- */
.newsletter { margin-top: 30px; max-width: 380px; position: relative; }
.newsletter__label { display: block; font-family: var(--f-display); font-weight: 700; font-size: 14px; color: #fff; margin-bottom: 12px; }
.newsletter__row { display: flex; gap: 8px; }
.newsletter__row input {
  flex: 1; min-width: 0; padding: 11px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06); color: #fff; font-size: 15px; transition: border-color .25s, box-shadow .25s, background .25s;
}
.newsletter__row input::placeholder { color: #7f8da0; }
.newsletter__row input:focus { outline: none; border-color: var(--cyan); background: rgba(255,255,255,.09); box-shadow: 0 0 0 4px rgba(23,168,168,.18); }
.newsletter__row input[aria-invalid="true"] { border-color: #e07a7a; }
.newsletter__note { font-size: 13px; margin-top: 10px; min-height: 1.2em; color: #a8b5c6; }
.newsletter__note.is-ok { color: var(--lime); }
.newsletter__note.is-error { color: #f0a0a0; }

@media (max-width: 640px) {
  .modal { padding: 12px; align-items: end; }
  .modal__dialog { max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); border-radius: 22px; padding: 28px 22px 24px; }
  .modal__head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .modal__grid { grid-template-columns: 1fr; gap: 18px; margin-top: 24px; }
  .modal__actions .btn { flex: 1 1 100%; }
  .toasts { right: 16px; left: 16px; bottom: 16px; width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .spinner { animation: none; border-top-color: rgba(255,255,255,.35); }
}

/* =========================================================
   CLIENTS & BRANDS SLIDER (v3) — new section only
   ========================================================= */
.clients { padding-block: clamp(76px, 9vw, 124px); overflow: hidden; }
.clients .section-head { margin-bottom: clamp(36px, 4.5vw, 56px); }

.marquee { position: relative; }
.marquee__viewport {
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  padding: 14px 0 22px;   /* room for hover lift + shadow */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}
.marquee__viewport::-webkit-scrollbar { display: none; }
.marquee__track { display: flex; width: max-content; padding-left: var(--gutter); will-change: transform; }
.marquee.is-ready .marquee__viewport { overflow: hidden; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.marquee.is-ready .marquee__track { padding-left: 0; }
.marquee.is-dragging .marquee__viewport { cursor: grabbing; }

.client-card {
  position: relative; flex: 0 0 auto; width: 232px; margin-right: 18px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 14px 14px 18px; box-shadow: var(--shadow-sm); isolation: isolate;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s;
}
.client-card::before { /* gradient ring on hover — same treatment as the hero dashboard */
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; z-index: -1;
  background: var(--grad); opacity: 0; transition: opacity .45s var(--ease);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.client-card__logo {
  height: 118px; border-radius: var(--r); background: #fff; border: 1px solid var(--line);
  display: grid; place-items: center; overflow: hidden; position: relative;
}
.client-card__logo::after { content: ""; position: absolute; inset: 0; background: var(--grad-soft); opacity: 0; transition: opacity .45s; }
.client-card__logo img {
  width: 100%; height: 100%; object-fit: contain; padding: 18px 22px; position: relative; z-index: 1;
  filter: grayscale(1) contrast(1.05); opacity: .78; transition: filter .45s, opacity .45s, transform .6s var(--ease);
  mix-blend-mode: multiply;   /* white JPG backgrounds blend into the tile */
  -webkit-user-drag: none; pointer-events: none;
}
.client-card__text { display: flex; flex-direction: column; gap: 4px; padding: 14px 4px 0; min-width: 0; }
.client-card__text strong { font-family: var(--f-display); font-weight: 700; font-size: 16px; letter-spacing: -0.015em; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.client-card__text span { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.client-card__text span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--grad); flex-shrink: 0; }

@media (hover: hover) {
  .client-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
  .client-card:hover::before { opacity: 1; }
  .client-card:hover .client-card__logo::after { opacity: 1; }
  .client-card:hover .client-card__logo img { filter: none; opacity: 1; transform: scale(1.06); }
}
@media (hover: none) { /* touch screens: show logos in full colour */
  .client-card__logo img { filter: none; opacity: 1; }
}
@media (max-width: 640px) {
  .client-card { width: 196px; margin-right: 14px; padding: 12px 12px 16px; }
  .client-card__logo { height: 100px; }
  .client-card__text strong { font-size: 15px; }
  .marquee__viewport {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
  }
}
