/* ==========================================================================
   Datapoch design system
   Tokens → base → layout → components → pages → chat → utilities
   ========================================================================== */

:root {
  --ink: #0a0f1f;
  --ink-2: #283247;
  --muted: #5a6479;
  --faint: #8b93a6;
  --line: #e7e9f0;
  --line-2: #d9dde8;
  --bg: #ffffff;
  --tint: #f6f8fc;
  --tint-2: #eef2fa;

  --blue: #1f5bff;
  --blue-700: #1746d1;
  --sky: #0ea5e9;
  --teal: #10b9a0;
  --brand-grad: linear-gradient(100deg, #1f5bff 0%, #0ea5e9 55%, #10b9a0 100%);

  --dark: #070b17;
  --dark-2: #0e1428;
  --dark-line: rgba(255, 255, 255, 0.09);
  --dark-muted: #9aa3b8;

  --ok: #0f9f6e;
  --warn: #b7791f;
  --err: #d0342c;

  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --r-sm: 8px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  --sh-1: 0 1px 2px rgba(10, 15, 31, 0.05), 0 1px 1px rgba(10, 15, 31, 0.03);
  --sh-2: 0 1px 2px rgba(10, 15, 31, 0.04), 0 8px 24px -8px rgba(10, 15, 31, 0.12);
  --sh-3: 0 2px 4px rgba(10, 15, 31, 0.04), 0 24px 60px -16px rgba(10, 15, 31, 0.22);
  --ring: 0 0 0 3px rgba(31, 91, 255, 0.28);

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 68px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-700); }
h1, h2, h3, h4 { color: var(--ink); margin: 0; line-height: 1.12; letter-spacing: -0.025em; font-weight: 600; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }
::selection { background: rgba(31, 91, 255, 0.16); }
.ico { flex: none; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-sm);
}
.skip-link:focus { top: 12px; color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 112px); }
.section-flush { padding-top: 0; }
.section-tint { background: var(--tint); border-block: 1px solid var(--line); }
.section-dark {
  background: radial-gradient(1200px 400px at 85% -10%, rgba(31, 91, 255, 0.28), transparent 60%),
              radial-gradient(800px 360px at 0% 110%, rgba(16, 185, 160, 0.18), transparent 60%),
              var(--dark);
  color: var(--dark-muted);
}
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .eyebrow { color: #7fb0ff; }
.section-dark .lead { color: var(--dark-muted); }

.split { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.split-side { position: sticky; top: calc(var(--header-h) + 32px); display: grid; gap: 24px; justify-items: start; }
.row-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.row-head .section-head { margin-bottom: 0; }

/* ---------- Type helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12.5px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue);
  margin-bottom: 16px;
}
.eyebrow-sm { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); font-weight: 500; }
.lead { font-size: clamp(17px, 1.6vw, 19px); line-height: 1.6; color: var(--muted); max-width: 62ch; }
.section-head { margin-bottom: clamp(32px, 5vw, 56px); max-width: 720px; }
.section-head h2 { font-size: clamp(30px, 4vw, 46px); margin-bottom: 16px; }
.section-head.is-center { margin-inline: auto; text-align: center; }
.section-head.is-center .lead { margin-inline: auto; }
.split-side .section-head { margin-bottom: 0; }
.grad { background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.center-note { text-align: center; margin-top: 32px; color: var(--muted); font-weight: 500; }
.center-cta { display: flex; justify-content: center; margin-top: 40px; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: var(--blue); }
.link-arrow .ico { transition: transform .2s var(--ease); }
.link-arrow:hover .ico, a:hover > .link-arrow .ico { transform: translateX(3px); }

/* ---------- Buttons ---------- */
.btn {
  --h: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding-inline: 18px; border-radius: 999px;
  font-weight: 500; font-size: 15px; line-height: 1; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: background-color .18s var(--ease), color .18s, border-color .18s, box-shadow .18s, transform .18s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-sm { --h: 38px; padding-inline: 14px; font-size: 14px; }
.btn-lg { --h: 52px; padding-inline: 24px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 6px 16px -6px rgba(10,15,31,.5); }
.btn-primary:hover { background: #1b2340; color: #fff; }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--line-2); box-shadow: var(--sh-1); }
.btn-secondary:hover { border-color: var(--ink); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--tint-2); color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #e9eefc; color: var(--ink); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.28); }
.btn-outline-light:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.06); }
.btn:disabled { opacity: .6; cursor: not-allowed; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(10,15,31,.35); }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { width: 138px; height: auto; }
.nav { margin-inline: auto; }
.nav-list { display: flex; align-items: center; gap: 2px; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px; height: 38px; padding-inline: 14px;
  border-radius: 999px; color: var(--ink-2); font-size: 15px; font-weight: 500;
  background: none; border: 0; cursor: pointer; transition: background-color .15s, color .15s;
}
.nav-link:hover, .nav-link[aria-expanded="true"] { background: var(--tint-2); color: var(--ink); }
.nav-link.is-active { color: var(--ink); }
.nav-link svg { transition: transform .2s var(--ease); }
.nav-link[aria-expanded="true"] svg { transform: rotate(180deg); }
.header-actions { display: flex; align-items: center; gap: 8px; }

.mega {
  position: absolute; top: calc(100% + 12px); left: 50%;
  width: min(760px, calc(100vw - 48px));
  transform: translate(-50%, 6px);
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--sh-3); padding: 12px;
  opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s var(--ease), visibility .18s;
}
.mega::before { content: ""; position: absolute; inset: -14px 0 auto; height: 14px; }
.mega.is-open { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.mega-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 8px; padding: 14px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); flex-wrap: wrap; }

.menu-toggle { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line-2); background: #fff; cursor: pointer; position: relative; }
.menu-toggle span { position: absolute; left: 12px; right: 12px; height: 1.6px; background: var(--ink); border-radius: 2px; transition: transform .25s var(--ease), top .25s var(--ease); }
.menu-toggle span:first-child { top: 16px; }
.menu-toggle span:last-child { top: 24px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 20px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 20px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0; z-index: 99; overflow-y: auto;
  background: #fff; border-top: 1px solid var(--line); padding-block: 20px 40px;
}
.mobile-menu[hidden] { display: none; }
.mobile-label { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); margin-bottom: 8px; }
.mobile-svcs a, .mobile-links a { display: flex; align-items: center; gap: 12px; padding: 13px 4px; color: var(--ink); font-weight: 500; border-bottom: 1px solid var(--line); }
.mobile-svcs .ico { color: var(--blue); }
.mobile-links { margin: 16px 0 24px; }
.mobile-links a { font-size: 18px; }

/* ---------- Hero ---------- */
.hero, .page-hero { position: relative; isolation: isolate; overflow: hidden; }
.hero { padding-block: clamp(20px, 3vw, 36px) 28px; }
.hero .pill { font-size: 12px; padding: 4px 10px 4px 4px; gap: 8px; }
.hero .pill-tag { font-size: 10.5px; padding: 2px 7px; }
.page-hero { padding-block: clamp(40px, 6vw, 80px) clamp(48px, 6vw, 80px); border-bottom: 1px solid var(--line); }
.page-hero-tight { padding-bottom: clamp(40px, 5vw, 64px); }
.hero-bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(600px 340px at 88% 8%, rgba(14, 165, 233, 0.16), transparent 70%),
    radial-gradient(700px 380px at 8% 0%, rgba(31, 91, 255, 0.12), transparent 70%),
    radial-gradient(500px 300px at 60% 100%, rgba(16, 185, 160, 0.10), transparent 70%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px; opacity: .55;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(38px, 6vw, 68px); letter-spacing: -0.04em; line-height: 1.02; margin-block: 20px 22px; }
.page-hero h1 { font-size: clamp(34px, 5vw, 56px); letter-spacing: -0.035em; line-height: 1.06; margin-bottom: 18px; max-width: 20ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 5px 12px 5px 5px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line-2); box-shadow: var(--sh-1);
  font-size: 13.5px; color: var(--ink-2); font-weight: 500;
}
.pill:hover { color: var(--ink); border-color: var(--ink); }
.pill-tag { white-space: nowrap; padding: 3px 9px; border-radius: 999px; background: var(--brand-grad); color: #fff; font-size: 12px; font-weight: 600; }

.hero-proof { display: flex; flex-wrap: wrap; gap: 12px 36px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.hero-proof li { display: grid; gap: 2px; }
.hero-proof strong { font-size: 26px; color: var(--ink); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.hero-proof .star { color: #f5a524; font-size: 20px; margin-left: 2px; }
.hero-proof span:not(.star) { font-size: 13px; color: var(--muted); }

/* Service orbit (home hero) */
@property --p { syntax: "<number>"; inherits: false; initial-value: 0; }
.orbit-wrap { width: 100%; max-width: 540px; margin-inline: auto; }
.orbit { position: relative; width: 100%; aspect-ratio: 1; container-type: inline-size; }
.orbit::before {
  content: ""; position: absolute; inset: 14%; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, rgba(31,91,255,.22), rgba(16,185,160,.12) 45%, transparent 70%);
  filter: blur(20px); animation: breathe 6s ease-in-out infinite;
}
@keyframes breathe { 50% { transform: scale(1.08); opacity: .8; } }
.orbit-ring { position: absolute; inset: 8.5%; border-radius: 50%; border: 1.5px dashed #cdd6ea; }
.orbit-ring-outer { inset: -1%; border: 1px solid var(--line); opacity: .7; }
.orbit-spin {
  position: absolute; inset: 8.5%; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 62%, rgba(31,91,255,.0) 62%, rgba(31,91,255,.55) 88%, #10b9a0 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
  animation: spin 9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.orbit-core {
  position: absolute; inset: 23.5%; border-radius: 50%; display: grid; place-items: center; text-align: center;
  background: radial-gradient(120% 90% at 100% 0%, rgba(31,91,255,.6), transparent 60%),
              radial-gradient(100% 80% at 0% 100%, rgba(16,185,160,.45), transparent 60%), var(--dark);
  box-shadow: 0 30px 60px -20px rgba(10,15,31,.55), 0 0 0 8px rgba(255,255,255,.7), 0 0 0 9px var(--line);
  color: #c3cadb; padding: 5.5cqw;
}
.orbit-core-inner { display: grid; justify-items: center; gap: .9cqw; transition: opacity .3s var(--ease), transform .35s var(--ease); }
.orbit-core-inner.is-swapping { opacity: 0; transform: translateY(8px) scale(.97); }
.orbit-core-ico { width: 8.5cqw; height: 8.5cqw; min-width: 36px; min-height: 36px; border-radius: 30%; display: grid; place-items: center; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); color: #fff; }
.orbit-core-num { font-family: var(--mono); font-size: max(10px, 2.1cqw); letter-spacing: .1em; color: #5fe0c6; }
.orbit-core-title { color: #fff; font-size: max(15px, 3.7cqw); line-height: 1.15; letter-spacing: -0.02em; font-weight: 600; }
.orbit-core-desc { font-size: max(12px, 2.45cqw); line-height: 1.4; max-width: 34cqw; }
.orbit-core-link { display: inline-flex; align-items: center; gap: 4px; margin-top: .6cqw; font-size: max(12px, 2.6cqw); font-weight: 600; color: #fff; padding: 1.1cqw 2.8cqw; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); transition: background .2s; }
.orbit-core-link:hover { color: #fff; background: rgba(255,255,255,.22); }

.orbit-node {
  --dur: 3600ms;
  position: absolute; left: 50%; top: 50%; width: 16cqw; height: 16cqw; margin: -8cqw 0 0 -8cqw;
  transform: rotate(var(--a)) translate(41.5cqw) rotate(calc(-1 * var(--a)));
  display: grid; place-items: center; align-content: center; gap: 2px; padding: 0;
  border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--blue); cursor: pointer;
  box-shadow: var(--sh-2);
  transition: scale .35s var(--ease), background-color .3s, color .3s, box-shadow .3s, border-color .3s;
}
.orbit-node:hover { scale: 1.08; border-color: #c9d7ff; }
.orbit-node-ico { display: grid; place-items: center; }
.orbit-label { font-size: max(10px, 2.2cqw); font-weight: 600; color: var(--ink-2); line-height: 1.1; transition: color .3s; }
.orbit-node.is-active { scale: 1.14; background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: 0 14px 30px -10px rgba(31,91,255,.6), 0 0 0 6px rgba(31,91,255,.12); }
.orbit-node.is-active .orbit-label { color: #fff; }
.orbit-node::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%; opacity: 0;
  background: conic-gradient(#10b9a0 calc(var(--p) * 1%), transparent 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
}
.orbit.is-auto .orbit-node.is-active::after { opacity: 1; animation: orbitProgress var(--dur) linear forwards; }
.orbit.is-paused .orbit-node.is-active::after { animation-play-state: paused; }
@keyframes orbitProgress { from { --p: 0; } to { --p: 100; } }
.orbit-caption { display: none; text-align: center; color: var(--muted); font-size: 15px; margin-top: 16px; min-height: 3em; }

@container (max-width: 440px) {
  .orbit-core-desc, .orbit-label { display: none; }
  .orbit-core { padding: 5cqw; }
}

/* Entrance + scroll motion */
.js .hero-copy > * { animation: rise .8s var(--ease) both; }
.js .hero-copy > :nth-child(2) { animation-delay: .08s; }
.js .hero-copy > :nth-child(3) { animation-delay: .16s; }
.js .hero-copy > :nth-child(4) { animation-delay: .24s; }
.js .hero-copy > :nth-child(5) { animation-delay: .32s; }
.js .orbit-wrap { animation: orbitIn 1.1s var(--ease) .15s both; }
.js .orbit-node { animation: nodeIn .7s var(--ease) both; animation-delay: calc(.35s + var(--i, 0) * 70ms); }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }
@keyframes orbitIn { from { opacity: 0; transform: scale(.92) rotate(-8deg); } }
@keyframes nodeIn { from { opacity: 0; scale: .4; } }
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

.industries { display: flex; align-items: center; gap: 12px 24px; flex-wrap: wrap; margin-top: clamp(48px, 6vw, 72px); padding-top: 28px; border-top: 1px solid var(--line); }
.industries-lead { font-size: 15px; color: var(--muted); }
.industries-lead strong { color: var(--ink); font-weight: 600; }
.industries ul { display: flex; flex-wrap: wrap; gap: 8px; }
.industries li { padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 14px; font-weight: 500; color: var(--ink-2); }

/* Demo card (AI receptionist) */
.hero-visual { position: relative; padding: 28px 0; }
.hero-visual-inline { padding: 0; }
.demo-card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl);
  box-shadow: var(--sh-3); padding: 20px; overflow: hidden;
}
.demo-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--brand-grad); }
.demo-top { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.demo-top strong { display: block; color: var(--ink); font-size: 15px; font-weight: 600; }
.demo-top small { color: var(--muted); font-size: 12.5px; }
.demo-avatar { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: var(--brand-grad); flex: none; }
.demo-live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #16c784; box-shadow: 0 0 0 3px rgba(22,199,132,.2); display: inline-block; animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(22,199,132,0); } }
.demo-log { display: grid; gap: 10px; padding-top: 16px; }
.msg { max-width: 84%; padding: 10px 14px; border-radius: 16px; font-size: 14.5px; line-height: 1.45; }
.msg.ai { background: var(--tint-2); color: var(--ink); border-bottom-left-radius: 6px; }
.msg.me { justify-self: end; background: var(--ink); color: #fff; border-bottom-right-radius: 6px; }
.demo-done { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: #ecfbf5; border: 1px solid #c8f0df; color: #0b6b4c; font-size: 13.5px; line-height: 1.45; }
.demo-done .ico { margin-top: 2px; }
.demo-done strong { display: block; color: #064e37; }
.demo-note { margin-top: 14px; font-size: 12.5px; color: var(--faint); text-align: center; font-family: var(--mono); }
.js .demo-card[data-demo] .demo-log > * { opacity: 0; transform: translateY(8px); }
.js .demo-card.is-playing .demo-log > * { animation: msgIn .5s var(--ease) forwards; }
.js .demo-card.is-playing .demo-log > *:nth-child(1) { animation-delay: .2s; }
.js .demo-card.is-playing .demo-log > *:nth-child(2) { animation-delay: 1.1s; }
.js .demo-card.is-playing .demo-log > *:nth-child(3) { animation-delay: 2.1s; }
.js .demo-card.is-playing .demo-log > *:nth-child(4) { animation-delay: 3s; }
.js .demo-card.is-playing .demo-log > *:nth-child(5) { animation-delay: 3.8s; }
@keyframes msgIn { to { opacity: 1; transform: none; } }
@keyframes floaty { 50% { transform: translateY(-8px); } }

/* ---------- Marquee ---------- */

@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Service showcase: expanding panels (home) ---------- */
.sx { display: flex; gap: 12px; height: 560px; }
.sx-panel {
  position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; cursor: pointer; isolation: isolate;
  padding: 24px; border-radius: 24px; border: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, var(--tint));
  transition: flex-grow .7s var(--ease), background-color .4s, border-color .4s, box-shadow .4s;
}
.sx-panel::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .6s var(--ease);
  background: radial-gradient(520px 320px at 100% 0%, rgba(31,91,255,.55), transparent 65%),
              radial-gradient(420px 300px at 0% 100%, rgba(16,185,160,.38), transparent 65%), var(--dark);
}
.sx-panel:hover:not(.is-active) { border-color: #c9d7ff; box-shadow: var(--sh-2); }
.sx-panel.is-active { flex-grow: 7.5; border-color: transparent; cursor: default; box-shadow: 0 30px 60px -24px rgba(10,15,31,.5); }
.sx-panel.is-active::before { opacity: 1; }
.sx-panel:focus-visible { box-shadow: var(--ring); }

.sx-head { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.sx-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: var(--blue); background: #fff; border: 1px solid #e1e8fb; box-shadow: var(--sh-1); transition: background-color .4s, color .4s, border-color .4s; }
.sx-num { font-family: var(--mono); font-size: 12.5px; color: var(--faint); transition: color .4s; }
.sx-panel.is-active .sx-ico { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.18); color: #fff; box-shadow: none; }
.sx-panel.is-active .sx-num { color: #5fe0c6; opacity: 0; }

.sx-vtitle {
  position: absolute; left: 50%; bottom: 28px; margin: 0; white-space: nowrap;
  writing-mode: vertical-rl; transform: translateX(-50%) rotate(180deg);
  font-size: 20px; letter-spacing: -0.01em; color: var(--ink);
  transition: opacity .3s var(--ease);
}
.sx-panel.is-active .sx-vtitle { opacity: 0; }

.sx-watermark {
  position: absolute; right: -10px; top: -40px; z-index: -1; font-size: 220px; font-weight: 700; line-height: 1; letter-spacing: -0.06em;
  color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.12); opacity: 0; transform: translateY(20px);
  transition: opacity .6s var(--ease), transform .8s var(--ease);
}
.sx-panel.is-active .sx-watermark { opacity: 1; transform: none; }

.sx-body {
  position: absolute; left: 32px; bottom: 32px; width: min(600px, calc(100% - 64px)); min-width: 380px;
  display: grid; gap: 14px; color: #c3cadb;
  opacity: 0; transform: translateY(18px); pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.sx-panel.is-active .sx-body { opacity: 1; transform: none; pointer-events: auto; transition: opacity .55s var(--ease) .28s, transform .65s var(--ease) .28s; }
.sx-eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #7fb0ff; }
.sx-title { color: #fff; font-size: clamp(24px, 2.4vw, 32px); }
.sx-summary { font-size: 16px; line-height: 1.6; }
.sx-features { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; margin: 4px 0 6px; }
.sx-features li { display: flex; gap: 8px; align-items: flex-start; color: #fff; font-size: 14.5px; font-weight: 500; }
.sx-features .ico { color: #5fe0c6; margin-top: 3px; }
.sx-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 6px; }
.sx-outcomes { display: flex; gap: 6px; flex-wrap: wrap; }
.sx-outcomes li { font-size: 12.5px; padding: 5px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,.16); color: #dfe5f2; }

/* ---------- Service cards ---------- */

.svc-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--blue); background: linear-gradient(180deg, #eef3ff, #e6f7f5); border: 1px solid #e1e8fb; }
.svc-ico-sm { width: 26px; height: 26px; border-radius: 8px; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: 12.5px; padding: 4px 10px; border-radius: 999px; background: var(--tint); border: 1px solid var(--line); color: var(--ink-2); font-weight: 500; }

/* ---------- Equation ---------- */
.equation { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 16px; align-items: center; }
.eq-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; height: 100%; box-shadow: var(--sh-1); }
.eq-card h3 { font-size: 20px; margin: 10px 0 8px; }
.eq-card p { color: var(--muted); font-size: 15px; }
.eq-label { font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.eq-result { background: var(--ink); border-color: var(--ink); }
.eq-result h3 { color: #fff; }
.eq-result p { color: var(--dark-muted); }
.eq-result .eq-label { color: #5fe0c6; }
.eq-op { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1px solid var(--line-2); font-size: 20px; color: var(--ink); font-weight: 500; }

/* Approach v2: icons, glowing connector, highlighted result */
.equation { position: relative; isolation: isolate; align-items: stretch; }
.equation::before {
  content: ""; position: absolute; z-index: -1; left: 8%; right: 8%; top: 50%; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, rgba(31,91,255,.15), #1f5bff 45%, #10b9a0 80%, rgba(16,185,160,.2));
  background-size: 200% 100%; animation: eqFlow 4s linear infinite;
}
@keyframes eqFlow { to { background-position: -200% 0; } }
.eq-card { display: flex; flex-direction: column; gap: 4px; transition: transform .3s var(--ease), box-shadow .3s; }
.eq-card:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.eq-card h3 { margin-top: 6px; }
.eq-ico { width: 46px; height: 46px; border-radius: 14px; margin-bottom: 14px; display: grid; place-items: center; color: var(--blue); background: linear-gradient(180deg, #eef3ff, #e6f7f5); border: 1px solid #e1e8fb; }
.eq-op { align-self: center; width: 44px; height: 44px; border: 0; color: #fff; font-size: 22px; background: var(--brand-grad); box-shadow: 0 0 0 6px rgba(31,91,255,.12), 0 10px 24px -8px rgba(31,91,255,.6); }
.eq-result { position: relative; overflow: hidden; border-color: transparent;
  background: radial-gradient(320px 200px at 100% 0%, rgba(31,91,255,.55), transparent 70%),
              radial-gradient(260px 180px at 0% 100%, rgba(16,185,160,.4), transparent 70%), var(--dark);
  box-shadow: 0 24px 50px -20px rgba(31,91,255,.55); }
.eq-result .eq-ico { color: #fff; background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.18); }
.eq-result:hover { box-shadow: 0 30px 60px -20px rgba(31,91,255,.65); }
.center-note .ico { display: inline-block; vertical-align: -3px; margin-right: 6px; color: var(--teal); }

/* ---------- Why ---------- */

/* ---------- Why Datapoch: auto-cycling tabs (home) ---------- */
.wt { --dur: 4500ms; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 24px; align-items: stretch; }
.wt-list { display: grid; gap: 6px; align-content: start; }
.wt-tab {
  position: relative; display: flex; align-items: center; gap: 16px; width: 100%; text-align: left; overflow: hidden;
  padding: 18px 20px; border-radius: 16px; border: 1px solid transparent; background: transparent; cursor: pointer;
  transition: background-color .25s, border-color .25s, box-shadow .3s;
}
.wt-tab:hover { background: var(--tint); }
.wt-tab.is-active { background: #fff; border-color: var(--line); box-shadow: var(--sh-2); }
.wt-num { font-family: var(--mono); font-size: 13px; color: var(--faint); transition: color .25s; }
.wt-tab.is-active .wt-num { color: var(--blue); }
.wt-text strong { display: block; font-size: 17px; color: var(--ink); font-weight: 600; letter-spacing: -0.01em; }
.wt-mobile-desc { display: none; }
.wt-arrow { margin-left: auto; color: var(--blue); opacity: 0; transform: translateX(-8px); transition: opacity .25s, transform .3s var(--ease); }
.wt-tab.is-active .wt-arrow { opacity: 1; transform: none; }
.wt-bar { position: absolute; left: 20px; right: 20px; bottom: 0; height: 2px; border-radius: 2px; background: var(--brand-grad); transform-origin: left; transform: scaleX(0); }
.wt.is-auto .wt-tab.is-active .wt-bar { animation: wtBar var(--dur) linear forwards; }
.wt.is-paused .wt-tab.is-active .wt-bar { animation-play-state: paused; }
@keyframes wtBar { to { transform: scaleX(1); } }
.wt-stage {
  position: relative; isolation: isolate; overflow: hidden; min-height: 440px; display: flex; align-items: flex-end;
  padding: clamp(28px, 4vw, 48px); border-radius: var(--r-xl); color: #c3cadb;
  background: radial-gradient(600px 300px at 100% 0%, rgba(31,91,255,.5), transparent 70%),
              radial-gradient(500px 260px at 0% 100%, rgba(16,185,160,.3), transparent 70%), var(--dark);
}
.wt-rings {
  position: absolute; right: -110px; top: -110px; width: 380px; height: 380px; border-radius: 50%; z-index: -1;
  border: 1px dashed rgba(255,255,255,.18);
  box-shadow: 0 0 0 46px rgba(255,255,255,.025), 0 0 0 92px rgba(255,255,255,.018);
  animation: spin 40s linear infinite;
}
.wt-panel { display: grid; gap: 12px; max-width: 500px; animation: rise .55s var(--ease) both; }
.wt-big-ico { width: 72px; height: 72px; border-radius: 20px; display: grid; place-items: center; margin-bottom: 14px; background: var(--brand-grad); color: #fff; box-shadow: 0 20px 40px -12px rgba(31,91,255,.6); }
.wt-panel-num { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; color: #5fe0c6; }
.wt-panel h3 { color: #fff; font-size: clamp(26px, 3vw, 36px); }
.wt-panel p { font-size: 18px; line-height: 1.6; }

/* ---------- Process timeline (home) ---------- */
.tl { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.tl::before, .tl::after { content: ""; position: absolute; top: 27px; left: 28px; right: 0; height: 2px; border-radius: 2px; }
.tl::before { background: rgba(255,255,255,.1); }
.tl::after { background: linear-gradient(90deg, #4f8bff, #22d3b4); transform-origin: left; transform: scaleX(0); transition: transform 1.8s var(--ease); }
.tl.is-in::after { transform: scaleX(1); }
.tl-step { position: relative; z-index: 1; }
.tl-dot {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--mono); font-size: 15px; font-weight: 500; color: #7fb0ff;
  background: var(--dark-2); border: 1px solid var(--dark-line);
  transition: background .5s, color .5s, box-shadow .5s, border-color .5s; transition-delay: calc(var(--i) * .42s);
}
.tl.is-in .tl-dot { color: #fff; border-color: transparent; background: var(--brand-grad); box-shadow: 0 0 0 6px rgba(31,91,255,.18), 0 12px 30px -8px rgba(31,91,255,.7); }
.tl-label { display: block; margin-top: 22px; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #7fb0ff; }
.tl-step h3 { font-size: 20px; margin: 8px 0; }
.tl-step p { font-size: 15px; }

/* ---------- Workflow diagram (solution pages) ---------- */
.flow {
  --cycle: calc(var(--n) * 0.9s + 1.4s);
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(28px, 4vw, 48px) clamp(20px, 3vw, 40px) 24px; border-radius: var(--r-xl);
  background: radial-gradient(600px 300px at 100% 0%, rgba(31,91,255,.45), transparent 70%),
              radial-gradient(500px 260px at 0% 100%, rgba(16,185,160,.3), transparent 70%), var(--dark);
}
.flow::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 40px 40px;
}
.flow-steps { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 16px; }
.flow-step { position: relative; display: grid; justify-items: center; align-content: start; text-align: center; gap: 8px; }
.flow-step:not(:last-child)::before {
  /* dashed connector to the next node */
  content: ""; position: absolute; top: 31px; left: calc(50% + 40px); right: calc(-50% + 40px); height: 2px;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.28) 0 6px, transparent 6px 12px);
  background-size: 24px 2px; animation: dash 1s linear infinite;
}
.flow-step:not(:last-child)::after {
  /* travelling pulse */
  content: ""; position: absolute; top: 28px; left: calc(50% + 40px); width: 8px; height: 8px; border-radius: 50%;
  background: #5fe0c6; box-shadow: 0 0 12px 3px rgba(95,224,198,.7); opacity: 0;
  animation: travel var(--cycle) var(--ease) infinite; animation-delay: calc(var(--i) * .9s + .45s);
}
@keyframes dash { to { background-position: 24px 0; } }
@keyframes travel {
  0% { opacity: 0; transform: translateX(0); }
  4% { opacity: 1; }
  22% { opacity: 1; transform: translateX(calc((100cqw / var(--n)) - 88px)); }
  26%, 100% { opacity: 0; transform: translateX(calc((100cqw / var(--n)) - 88px)); }
}
.flow { container-type: inline-size; }
.flow-node {
  position: relative; z-index: 1; width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center;
  color: #fff; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  animation: nodeLit var(--cycle) ease-in-out infinite; animation-delay: calc(var(--i) * .9s);
}
@keyframes nodeLit {
  0%, 30%, 100% { background: rgba(255,255,255,.06); box-shadow: none; border-color: rgba(255,255,255,.14); }
  8%, 18% { background: linear-gradient(135deg, #1f5bff, #10b9a0); border-color: transparent; box-shadow: 0 0 0 6px rgba(31,91,255,.18), 0 14px 30px -8px rgba(31,91,255,.8); }
}
.flow-step strong { color: #fff; font-size: 15.5px; font-weight: 600; margin-top: 6px; }
.flow-step small { color: #aab3c7; font-size: 13.5px; line-height: 1.45; max-width: 20ch; }
.flow-note { margin-top: 28px; text-align: center; font-family: var(--mono); font-size: 12px; color: #7d879c; }

/* Many services: slimmer collapsed panels on the home showcase */
.sx-many .sx-panel:not(.is-active) { padding: 18px 10px; }
.sx-many .sx-head { align-items: center; }
.sx-many .sx-panel:not(.is-active) .sx-ico { width: 40px; height: 40px; border-radius: 12px; }
.sx-many .sx-vtitle { font-size: 17px; }
.sx-many .sx-panel.is-active { flex-grow: 9; }
.sx-many .sx-panel.is-active .sx-head { opacity: 0; }
.sx-many .sx-outcomes { display: none; }

/* ---------- Mega menu v2: categorised columns + featured panel ---------- */
.header-inner { position: relative; }
.nav-item.has-mega { position: static; }
.mega { width: min(1120px, calc(100vw - 32px)); top: calc(100% - 4px); padding: 0; overflow: hidden; }
.mega-body { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 8px; padding: 12px; }
.mega-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.mega-col { padding: 10px 4px; }
.mega-col + .mega-col { border-left: 1px solid var(--line); padding-left: 8px; }
.mega-cat { display: flex; align-items: center; gap: 8px; margin: 2px 10px 10px; font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.mega-cat-ico { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; background: var(--tint-2); color: var(--blue); }
.mega-col ul { display: grid; gap: 2px; }
.mega-item { display: flex; align-items: flex-start; gap: 12px; padding: 10px; border-radius: 12px; color: var(--ink); transition: background-color .15s; }
.mega-item:hover, .mega-item:focus-visible { background: var(--tint); color: var(--ink); }
.mega-item.is-current { background: var(--tint-2); }
.mega-item-ico { width: 36px; height: 36px; flex: none; border-radius: 10px; display: grid; place-items: center; color: var(--blue); background: linear-gradient(180deg, #eef3ff, #e6f7f5); border: 1px solid #e1e8fb; transition: background .2s, color .2s, border-color .2s; }
.mega-item:hover .mega-item-ico, .mega-item:focus-visible .mega-item-ico { background: var(--ink); border-color: var(--ink); color: #fff; }
.mega-item-text strong { display: block; font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.mega-item-text small { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.35; color: var(--muted); }
.mega-feature {
  display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: 16px; color: #c3cadb;
  background: radial-gradient(260px 180px at 100% 0%, rgba(31,91,255,.6), transparent 70%),
              radial-gradient(220px 160px at 0% 100%, rgba(16,185,160,.4), transparent 70%), var(--dark);
}
.mega-feature-tag { align-self: flex-start; padding: 3px 10px; border-radius: 999px; background: var(--brand-grad); color: #fff; font-size: 11.5px; font-weight: 600; }
.mega-feature-title { color: #fff; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.mega-feature-text { font-size: 13.5px; line-height: 1.5; }
.mega-feature-link { display: inline-flex; align-items: center; gap: 4px; color: #fff; font-size: 13.5px; font-weight: 600; }
.mega-feature-link:hover { color: #5fe0c6; }
.mega-feature-cta { margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.12); display: grid; gap: 10px; }
.mega-feature-cta p { font-size: 13px; }
.mega-foot { margin: 0; padding: 12px 22px; background: var(--tint); border-top: 1px solid var(--line); }
.mega-foot-links { display: flex; gap: 20px; }
.mega-foot-links a { color: var(--ink-2); font-size: 14px; font-weight: 500; }
.mega-foot-links a:hover { color: var(--blue); }
.mega.is-open .mega-col, .mega.is-open .mega-feature { animation: rise .35s var(--ease) both; }
.mega.is-open .mega-col:nth-child(2) { animation-delay: .04s; }
.mega.is-open .mega-col:nth-child(3) { animation-delay: .08s; }
.mega.is-open .mega-col:nth-child(4) { animation-delay: .12s; }
.mega.is-open .mega-feature { animation-delay: .16s; }
.mobile-svcs + .mobile-label { margin-top: 22px; }

/* ---------- Services page: category hub + bento cards ---------- */
html:has(.cat-nav) { scroll-padding-top: calc(var(--header-h) + 72px); }
.svc-hero-cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 36px; }
.svc-hero-cats a { display: flex; align-items: center; gap: 12px; height: 100%; padding: 16px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-1); color: var(--ink); transition: transform .25s var(--ease), box-shadow .25s, border-color .2s; }
.svc-hero-cats a:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: var(--line-2); color: var(--ink); }
.svc-hero-cats strong { display: block; font-size: 15.5px; font-weight: 600; }
.svc-hero-cats small { color: var(--muted); font-size: 13px; }
.svc-hero-ico { width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center; color: #fff; background: var(--brand-grad); }

.cat-nav { position: sticky; top: var(--header-h); z-index: 90; background: rgba(255,255,255,.88); backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line); }
.cat-nav ul { display: flex; gap: 6px; overflow-x: auto; padding-block: 10px; scrollbar-width: none; }
.cat-nav ul::-webkit-scrollbar { display: none; }
.cat-nav a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; color: var(--muted); font-size: 14px; font-weight: 500; white-space: nowrap; transition: background-color .2s, color .2s; }
.cat-nav a:hover { background: var(--tint-2); color: var(--ink); }
.cat-nav a.is-active { background: var(--ink); color: #fff; }

.cat-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: start; max-width: 780px; margin-bottom: 40px; }
.cat-head .eyebrow { margin-bottom: 8px; }
.cat-head h2 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 10px; }
.cat-ico { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; color: #fff; background: var(--ink); box-shadow: 0 14px 30px -12px rgba(10,15,31,.6); }

.bento { display: grid; gap: 16px; }
.bento-2, .bento-3 { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
.bento-3 .is-feature { grid-row: span 2; }
.bento-card { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: 24px; border: 1px solid var(--line); background: #fff; transition: transform .3s var(--ease), box-shadow .3s, border-color .2s; }
.bento-card:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: var(--line-2); }
.bento-card.is-feature { padding: clamp(28px, 3vw, 40px); border-color: transparent; color: #c3cadb; overflow: hidden;
  background: radial-gradient(520px 300px at 100% 0%, rgba(31,91,255,.5), transparent 65%),
              radial-gradient(420px 280px at 0% 100%, rgba(16,185,160,.32), transparent 65%), var(--dark); }
.bento-card.is-feature:hover { box-shadow: 0 30px 60px -24px rgba(10,15,31,.55); }
.bento-top { display: flex; align-items: center; justify-content: space-between; }
.bento-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: var(--blue); background: linear-gradient(180deg, #eef3ff, #e6f7f5); border: 1px solid #e1e8fb; }
.is-feature .bento-ico { color: #fff; background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.18); }
.bento-num { font-family: var(--mono); font-size: 12.5px; color: var(--faint); }
.is-feature .bento-num { color: #5fe0c6; }
.bento-card h3 { font-size: 22px; }
.bento-card.is-feature h3 { font-size: clamp(24px, 2.4vw, 30px); }
.bento-card h3 a { color: var(--ink); }
.bento-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }  /* whole card is clickable */
.bento-card.is-feature h3 a { color: #fff; }
.bento-summary { color: var(--muted); font-size: 15.5px; }
.is-feature .bento-summary { color: #c3cadb; font-size: 16.5px; }
.bento-features { display: grid; gap: 8px; }
.bento-features li { display: flex; align-items: flex-start; gap: 8px; font-size: 14.5px; color: var(--ink-2); }
.bento-features .ico { color: var(--teal); margin-top: 3px; }
.is-feature .bento-features li { color: #fff; }
.bento-features-2 { grid-template-columns: 1fr 1fr; gap: 10px 20px; margin-top: 6px; }
@media (max-width: 640px) { .bento-features-2 { grid-template-columns: 1fr; } }
.bento-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.is-feature .bento-foot { border-top-color: rgba(255,255,255,.12); }
.bento-outcomes { display: flex; flex-wrap: wrap; gap: 6px; }
.bento-outcomes li { font-size: 12px; padding: 4px 10px; border-radius: 999px; background: var(--tint); border: 1px solid var(--line); color: var(--ink-2); }
.is-feature .bento-outcomes li { background: transparent; border-color: rgba(255,255,255,.16); color: #dfe5f2; }
.bento-link { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px; flex: none; font-size: 14.5px; font-weight: 600; color: var(--blue); }
.is-feature .bento-link { color: #fff; }
.bento-card:hover .bento-link .ico { transform: translateX(3px); }
.bento-link .ico { transition: transform .2s var(--ease); }

.mini-flow { --cycle: 5.9s; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin: 10px 0 6px; }
.mini-flow li { position: relative; display: grid; justify-items: center; gap: 8px; text-align: center; }
.mini-flow li span { position: relative; z-index: 1; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); animation: nodeLit var(--cycle) ease-in-out infinite; animation-delay: calc(var(--i) * .9s); }
.mini-flow li:not(:last-child)::after { content: ""; position: absolute; top: 22px; left: calc(50% + 26px); right: calc(-50% + 20px); height: 1px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.3) 0 5px, transparent 5px 10px); background-size: 20px 1px; animation: dash 1s linear infinite; }
.mini-flow small { font-size: 12px; color: #aab3c7; line-height: 1.3; }

/* ---------- Feature tabs: tool chips ---------- */
.wt-tools { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.wt-tools li { font-size: 12.5px; padding: 5px 11px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); color: #dfe5f2; }

/* ---------- Portfolio actions ---------- */
.product-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- DECIVUE product page ---------- */
.dv-audience { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.dv-audience li { padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 13.5px; font-weight: 500; color: var(--ink-2); }
.dv-mock { margin: 0; border-radius: var(--r-xl); background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-3); overflow: hidden; }
.dv-mock figcaption { padding: 10px; text-align: center; font-family: var(--mono); font-size: 12px; color: var(--faint); border-top: 1px solid var(--line); }
.dv-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; background: var(--tint); border-bottom: 1px solid var(--line); }
.dv-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.dv-bar b { margin-left: 10px; font-family: var(--mono); font-size: 12px; font-weight: 400; color: var(--muted); }
.dv-body { display: grid; gap: 14px; padding: 20px; }
.dv-file { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink); }
.dv-file .ico { color: var(--blue); }
.dv-file small { color: var(--muted); font-weight: 400; }
.dv-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.dv-kpis div { padding: 12px; border-radius: 12px; background: var(--tint); border: 1px solid var(--line); display: grid; gap: 2px; }
.dv-kpis small { font-size: 12px; color: var(--muted); }
.dv-kpis strong { font-size: 20px; color: var(--ink); letter-spacing: -0.02em; }
.dv-kpis em { font-style: normal; font-size: 12px; font-weight: 600; }
.dv-kpis .up { color: var(--ok); }
.dv-kpis .down { color: var(--err); }
.dv-chart { display: flex; align-items: flex-end; gap: 6px; height: 110px; padding: 10px 12px 0; border-radius: 12px; background: linear-gradient(180deg, #fff, var(--tint)); border: 1px solid var(--line); }
.dv-chart span { flex: 1; height: var(--h); border-radius: 6px 6px 0 0; background: linear-gradient(180deg, #1f5bff, #10b9a0); transform-origin: bottom; animation: grow .9s var(--ease) both; animation-delay: calc(.2s + var(--i) * 70ms); }
@keyframes grow { from { transform: scaleY(0); } }
.dv-alert { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: #fff7e6; border: 1px solid #f6e0b0; color: #8a5a00; font-size: 13.5px; }
.dv-ask { display: grid; gap: 8px; }
.dv-q { justify-self: end; max-width: 85%; padding: 9px 13px; border-radius: 14px 14px 4px 14px; background: var(--ink); color: #fff; font-size: 13.5px; }
.dv-a { display: flex; gap: 8px; max-width: 92%; padding: 10px 13px; border-radius: 14px 14px 14px 4px; background: var(--tint-2); color: var(--ink); font-size: 13.5px; line-height: 1.45; }
.dv-a .ico { color: var(--blue); margin-top: 3px; }
.dv-a em { font-style: normal; color: var(--muted); }
.js .dv-ask > * { animation: rise .6s var(--ease) both; }
.js .dv-ask .dv-q { animation-delay: 1s; }
.js .dv-ask .dv-a { animation-delay: 1.8s; }
.dv-principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.dv-principle { padding: 28px; border-radius: var(--r-lg); background: rgba(255,255,255,.035); border: 1px solid var(--dark-line); }
.dv-principle h3 { font-size: 19px; margin: 16px 0 8px; }
.dv-principle-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: var(--brand-grad); box-shadow: 0 12px 28px -10px rgba(31,91,255,.7); }

/* Back-to-back tinted sections read as one block */
.section-tint + .more-ways { border-top: 0; padding-top: 0; }

/* ---------- Technology ecosystem: cards + dialog ---------- */
.eco { border-block: 1px solid var(--line); background: #fbfcfe; }
.eco-count { font-family: var(--mono); font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--tint-2); color: var(--muted); }
.eco-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.eco-card { display: grid; gap: 12px; align-content: start; padding: 22px; text-align: left; cursor: pointer; border-radius: 18px; border: 1px solid var(--line); background: #fff; transition: border-color .2s, box-shadow .25s, transform .25s var(--ease); }
.eco-card:hover { border-color: var(--line-2); box-shadow: var(--sh-2); transform: translateY(-2px); }
.eco-card-head { display: flex; align-items: center; gap: 12px; }
.eco-card-head strong { font-size: 16.5px; font-weight: 600; color: var(--ink); }
.eco-card-ico { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; color: var(--blue); background: var(--tint-2); transition: background .2s, color .2s; }
.eco-card:hover .eco-card-ico { background: var(--ink); color: #fff; }
.eco-card-n { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--faint); }
.eco-card-names { font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.eco-card-names em { font-style: normal; color: var(--faint); }
.eco-card-more { display: inline-flex; align-items: center; gap: 4px; font-size: 13.5px; font-weight: 600; color: var(--blue); }
.eco-card-more .ico { transition: transform .2s var(--ease); }
.eco-card:hover .eco-card-more .ico { transform: translateX(3px); }
.eco-note { margin-top: 18px; font-size: 12.5px; color: var(--faint); }

.eco-dialog { width: min(880px, calc(100vw - 32px)); max-width: none; max-height: min(640px, calc(100dvh - 32px)); padding: 0; border: 0; border-radius: 24px; background: #fff; color: var(--ink-2); box-shadow: 0 40px 100px -20px rgba(10,15,31,.5); overflow: hidden; }
.eco-dialog[open] { display: flex; flex-direction: column; animation: dialogIn .3s var(--ease); }
.eco-dialog::backdrop { background: rgba(7,11,23,.55); backdrop-filter: blur(4px); }
@keyframes dialogIn { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.eco-dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px 24px 18px; border-bottom: 1px solid var(--line); }
.eco-dialog-head h2 { font-size: 22px; margin-top: 4px; }
.eco-close { width: 40px; height: 40px; flex: none; border-radius: 12px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.eco-close:hover { border-color: var(--ink); }
.eco-dialog-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 220px minmax(0, 1fr); }
.eco-tabs { display: grid; align-content: start; gap: 4px; padding: 14px; border-right: 1px solid var(--line); background: var(--tint); overflow-y: auto; }
.eco-tab { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 10px; border: 0; background: transparent; color: var(--ink-2); font-size: 14.5px; font-weight: 500; text-align: left; cursor: pointer; transition: background-color .15s, color .15s; }
.eco-tab .ico { color: var(--faint); }
.eco-tab small { margin-left: auto; font-family: var(--mono); font-size: 11.5px; color: var(--faint); }
.eco-tab:hover { background: #fff; }
.eco-tab[aria-selected="true"] { background: var(--ink); color: #fff; }
.eco-tab[aria-selected="true"] .ico, .eco-tab[aria-selected="true"] small { color: #5fe0c6; }
.eco-panels { overflow-y: auto; padding: 8px 24px 16px; }
.eco-panel { animation: rise .35s var(--ease) both; }
.eco-list li { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 16px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); }
.eco-list li:last-child { border-bottom: 0; }
.eco-list strong { font-size: 15px; font-weight: 600; color: var(--ink); }
.eco-list span { font-size: 14px; color: var(--muted); }
.eco-dialog-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 24px; border-top: 1px solid var(--line); background: var(--tint); font-size: 14px; color: var(--muted); }
html.eco-lock { overflow: hidden; }

/* ---------- Navigation helpers ---------- */
.scroll-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--brand-grad); transform-origin: left; transform: scaleX(var(--sp, 0)); pointer-events: none; }
.nav-link.is-active { background: var(--tint-2); }
.to-top {
  position: fixed; left: max(16px, env(safe-area-inset-left)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 110;
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: #fff; color: var(--ink); border: 1px solid var(--line-2); box-shadow: var(--sh-2);
  animation: rise .35s var(--ease) both; transition: border-color .2s, transform .2s var(--ease);
}
.to-top:hover { border-color: var(--ink); transform: translateY(-2px); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: s; }
.step { position: relative; padding: 28px 24px; border-radius: var(--r-lg); background: rgba(255,255,255,0.035); border: 1px solid var(--dark-line); }
.step::before { content: ""; position: absolute; top: 0; left: 24px; right: 24px; height: 1px; background: linear-gradient(90deg, #4f8bff, #22d3b4); opacity: .8; }
.step h3 { font-size: 19px; margin: 14px 0 8px; }
.step p { font-size: 15px; }

/* ---------- Products ---------- */
.product-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.product-mini { display: grid; gap: 10px; align-content: start; padding: 28px; border-radius: var(--r-lg); border: 1px solid var(--line); background: linear-gradient(180deg, #fff, var(--tint)); }
.product-mini h3 { font-size: 22px; }
.product-mini p:not(.eyebrow-sm) { color: var(--muted); font-size: 15px; }
.status { justify-self: start; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-live { color: var(--ok); background: #e6f8f0; }
.status-dev { color: #9a6200; background: #fdf4e3; }

.product-list { display: grid; gap: 20px; }
.product-card { border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(24px, 4vw, 40px); background: #fff; box-shadow: var(--sh-1); }
.product-head { display: flex; justify-content: space-between; gap: 24px; align-items: start; margin-bottom: 28px; flex-wrap: wrap; }
.product-head h2 { font-size: clamp(24px, 3vw, 30px); margin-top: 8px; }
.product-sub { display: block; font-size: 17px; color: var(--muted); font-weight: 500; letter-spacing: -0.01em; margin-top: 6px; }
.badges { display: flex; gap: 8px; flex-wrap: wrap; }
.badge { display: grid; padding: 8px 14px; border-radius: 12px; background: var(--tint); border: 1px solid var(--line); }
.badge strong { font-size: 14px; color: var(--ink); }
.badge small { font-size: 12px; color: var(--muted); }
.badge-live { background: #e6f8f0; border-color: #c4eedb; }
.badge-live strong { color: var(--ok); }
.badge-dev { background: #fdf4e3; border-color: #f4e1b8; }
.badge-dev strong { color: #9a6200; }
.pas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0 0 28px; }
.pas dt { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--blue); margin-bottom: 8px; }
.pas dd { margin: 0; color: var(--ink-2); font-size: 15px; }
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 20px; border-top: 1px solid var(--line); }

/* ---------- Quotes ---------- */
.quotes { display: grid; grid-template-columns: 1fr 1.4fr; gap: 16px; align-items: stretch; }
.quote { margin: 0; display: flex; flex-direction: column; gap: 18px; padding: 32px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); }
.stars { color: #f5a524; letter-spacing: 2px; }
.quote blockquote { margin: 0; flex: 1; }
.quote blockquote p { font-size: 17px; line-height: 1.6; color: var(--ink); }
.quote figcaption { display: flex; align-items: center; gap: 12px; }
.quote figcaption strong { display: block; color: var(--ink); font-size: 15px; }
.quote figcaption small { color: var(--muted); font-size: 13px; }
.q-avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-grad); color: #fff; font-weight: 600; font-size: 14px; }

/* ---------- Pricing ---------- */
.engage-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.engage-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.engage-card { display: grid; gap: 10px; align-content: start; padding: 28px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; }
.engage-price { font-size: 32px; font-weight: 600; color: var(--ink); letter-spacing: -0.03em; line-height: 1.1; }
.engage-price small { font-size: 14px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.engage-card p:last-child { color: var(--muted); font-size: 15px; }

.calc { display: grid; grid-template-columns: 1.3fr 1fr; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line); background: #fff; box-shadow: var(--sh-2); }
.calc-form { padding: clamp(24px, 4vw, 40px); display: grid; gap: 24px; }
.calc-result { padding: clamp(24px, 4vw, 40px); background: radial-gradient(500px 260px at 100% 0%, rgba(31,91,255,.35), transparent 70%), var(--dark); color: var(--dark-muted); display: grid; gap: 12px; align-content: center; }
.calc-result .eyebrow-sm { color: #7fb0ff; }
.calc-range { font-size: clamp(30px, 4vw, 42px); color: #fff; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.calc-rate { font-family: var(--mono); font-size: 14px; color: #5fe0c6; }
.calc-note { font-size: 14px; margin-bottom: 12px; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--tint-2); padding: 4px; border-radius: 12px; gap: 4px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: block; text-align: center; padding: 9px 8px; border-radius: 9px; font-size: 14px; font-weight: 500; color: var(--muted); transition: background-color .15s, color .15s, box-shadow .15s; }
.seg input:checked + span { background: #fff; color: var(--ink); box-shadow: var(--sh-1); }
.seg input:focus-visible + span { box-shadow: var(--ring); }
input[type="range"] { width: 100%; accent-color: var(--blue); height: 28px; }
.range-scale { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 12px; color: var(--faint); }
output { font-family: var(--mono); color: var(--blue); font-weight: 500; margin-left: 8px; }

.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.tier { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 32px; border: 1px solid var(--line); border-radius: var(--r-xl); background: #fff; }
.tier.is-featured { border: 1.5px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--brand-grad) border-box; box-shadow: var(--sh-3); }
.tier-flag { position: absolute; top: -12px; left: 32px; padding: 4px 12px; border-radius: 999px; background: var(--brand-grad); color: #fff; font-size: 12px; font-weight: 600; }
.tier h3 { font-size: 20px; }
.tier-price { font-size: 38px; font-weight: 600; color: var(--ink); letter-spacing: -0.03em; line-height: 1.1; }
.tier-price small { font-size: 15px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.tier-desc { color: var(--muted); font-size: 15px; }
.tier .btn { margin-top: auto; }
.checks { display: grid; gap: 10px; margin: 8px 0 16px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--ink-2); }
.checks .ico { color: var(--teal); margin-top: 3px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--r); background: #fff; transition: box-shadow .2s, border-color .2s; }
.faq-item[open] { box-shadow: var(--sh-2); border-color: var(--line-2); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; cursor: pointer; list-style: none; font-weight: 500; color: var(--ink); font-size: 16.5px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-plus { position: relative; width: 22px; height: 22px; flex: none; border-radius: 50%; background: var(--tint-2); }
.faq-plus::before, .faq-plus::after { content: ""; position: absolute; left: 6px; right: 6px; top: 10.25px; height: 1.5px; background: var(--ink); transition: transform .25s var(--ease); }
.faq-plus::after { transform: rotate(90deg); }
.faq-item[open] .faq-plus::after { transform: rotate(0); }
.faq-body { padding: 0 22px 20px; color: var(--muted); }

.faq-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(32px, 6vw, 72px); align-items: start; }
.faq-toc { position: sticky; top: calc(var(--header-h) + 32px); display: grid; gap: 12px; }
.faq-toc ul { display: grid; gap: 2px; border-left: 1px solid var(--line); }
.faq-toc a { display: block; padding: 6px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); font-size: 14.5px; }
.faq-toc a:hover, .faq-toc a.is-active { color: var(--ink); border-left-color: var(--blue); }
.faq-groups { display: grid; gap: 56px; }
.faq-group h2 { font-size: 24px; margin-bottom: 18px; }
.faq-group .link-arrow { margin-top: 16px; font-size: 15px; }

/* ---------- Solution page ---------- */
.hero-grid-solution { align-items: end; }
.who-card { padding: 28px; border-radius: var(--r-xl); background: rgba(255,255,255,.85); border: 1px solid var(--line); box-shadow: var(--sh-2); backdrop-filter: blur(8px); }
.who-card > p:not(.eyebrow-sm) { margin: 10px 0 18px; color: var(--ink-2); }
.outcomes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.outcomes li { display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 500; color: var(--ink); }
.outcomes .ico { color: var(--teal); }

/* ---------- Breadcrumbs ---------- */
.crumbs { margin-bottom: 24px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13.5px; color: var(--faint); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-2); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current] { color: var(--ink-2); }

/* ---------- About ---------- */
.prose { display: grid; gap: 18px; font-size: 17px; line-height: 1.75; color: var(--ink-2); max-width: 70ch; }
.legal { margin-top: clamp(40px, 5vw, 64px); }
.legal h2 { font-size: 22px; margin-top: 16px; }
.legal ul { list-style: disc; padding-left: 22px; display: grid; gap: 6px; }
.founder { display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: start; padding: clamp(24px, 4vw, 40px); border: 1px solid var(--line); border-radius: var(--r-xl); background: linear-gradient(180deg, #fff, var(--tint)); max-width: 880px; }
.founder-avatar { width: 96px; height: 96px; border-radius: 24px; display: grid; place-items: center; background: var(--brand-grad); color: #fff; font-size: 40px; font-weight: 600; }
.founder h3 { font-size: 24px; }
.founder-role { font-family: var(--mono); font-size: 13px; color: var(--blue); margin: 4px 0 14px; }
.founder p:not(.founder-role) { color: var(--ink-2); margin-bottom: 20px; }

/* ---------- CTA band ---------- */
.cta-band { padding-block: clamp(32px, 5vw, 56px) clamp(64px, 8vw, 96px); }
.cta-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  padding: clamp(32px, 5vw, 56px); border-radius: var(--r-xl); position: relative; overflow: hidden;
  background: radial-gradient(600px 300px at 100% 0%, rgba(31,91,255,.55), transparent 70%),
              radial-gradient(500px 260px at 0% 100%, rgba(16,185,160,.35), transparent 70%), var(--dark);
}
.cta-inner h2 { color: #fff; font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 10px; }
.cta-inner p { color: #c3cadb; max-width: 52ch; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Forms ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--sh-2); }
.form { display: grid; gap: 18px; }
.card.form { padding: clamp(24px, 4vw, 36px); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; }
.field label, .field-label { font-size: 14px; font-weight: 500; color: var(--ink); }
.opt { color: var(--faint); font-weight: 400; }
.field input:not([type="range"]):not([type="radio"]), .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line-2);
  background: #fff; color: var(--ink); font-size: 15.5px; transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='m3 4.5 3 3 3-3' fill='none' stroke='%235a6479' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: var(--ring); }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--err); }
.hp, .bk-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-msg { display: flex; gap: 8px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; font-size: 14.5px; }
.form-msg[hidden] { display: none; }
.form-ok { background: #ecfbf5; color: #0b6b4c; }
.form-err { background: #fdeeee; color: #a52822; }
.form-fine { font-size: 13px; color: var(--faint); text-align: center; }

.contact-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 72px); align-items: start; }
.contact-points { display: grid; gap: 20px; margin-top: 36px; }
.contact-points li { display: flex; gap: 14px; align-items: flex-start; color: var(--ink); font-weight: 500; }
.contact-points .ico { color: var(--blue); margin-top: 2px; }
.contact-points small { display: block; font-size: 13px; color: var(--muted); font-weight: 400; }

/* ---------- Booking (booking.js) ---------- */
.bk { display: grid; grid-template-columns: 300px minmax(0, 1fr); overflow: hidden; }
.bk-side { padding: 32px; background: var(--tint); border-right: 1px solid var(--line); display: grid; gap: 14px; align-content: start; }
.bk-side h2 { font-size: 20px; }
.bk-side p { color: var(--muted); font-size: 15px; }
.bk-tz { margin-top: 8px; }
.bk-main { padding: 32px; min-height: 420px; }
.bk-cols { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px; }
.bk-calhead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.bk-calhead b { color: var(--ink); font-weight: 600; }
.bk-calhead button { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line-2); background: #fff; cursor: pointer; font-size: 18px; }
.bk-calhead button:disabled { opacity: .35; cursor: default; }
.bk-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; text-align: center; }
.bk-dow { font-family: var(--mono); font-size: 11px; color: var(--faint); padding: 6px 0; text-transform: uppercase; }
.bk-day { aspect-ratio: 1; border-radius: 10px; border: 0; background: transparent; color: var(--faint); font-size: 14px; cursor: default; }
.bk-day.has { background: #eef3ff; color: var(--blue); font-weight: 600; cursor: pointer; }
.bk-day.has:hover { background: #dfe8ff; }
.bk-day.sel { background: var(--ink) !important; color: #fff !important; }
.bk-slots-head { font-weight: 600; color: var(--ink); margin-bottom: 14px; min-height: 36px; display: flex; align-items: center; }
.bk-slots { display: grid; gap: 8px; max-height: 340px; overflow-y: auto; padding-right: 4px; }
.bk-slot { height: 44px; border-radius: 12px; border: 1px solid #c9d7ff; background: #fff; color: var(--blue); font-weight: 600; cursor: pointer; transition: background-color .15s, color .15s; }
.bk-slot:hover { background: var(--blue); color: #fff; }
.bk-loading, .bk-note { color: var(--muted); font-size: 14.5px; }
.bk-note:empty { display: none; }
#bk-error:not(:empty) { color: var(--err); }
.bk-summary { padding: 12px 16px; border-radius: 12px; background: #eef3ff; color: var(--blue-700); font-weight: 600; margin-bottom: 20px; }
.bk-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.bk-done { display: grid; gap: 14px; }
.bk-done h2 { font-size: 26px; }
.bk-cancel-card { padding: 40px; max-width: 560px; margin-inline: auto; display: grid; gap: 14px; }
.bk-alt { text-align: center; color: var(--muted); margin-top: 24px; font-size: 15px; }
[hidden] { display: none !important; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--tint); padding-top: clamp(48px, 7vw, 80px); }
.footer-top { display: grid; grid-template-columns: 1.5fr 1.1fr 0.8fr 0.8fr; gap: 40px; }
.footer-brand p { color: var(--muted); font-size: 15px; margin: 16px 0 20px; max-width: 36ch; }
.footer-contact { display: grid; gap: 10px; font-size: 14.5px; color: var(--muted); }
.footer-contact li { display: flex; gap: 10px; align-items: center; }
.footer-contact .ico { color: var(--blue); }
.footer-social { display: flex; gap: 8px; margin-top: 20px; }
.footer-social a { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--line-2); background: #fff; color: var(--ink); }
.footer-social a:hover { border-color: var(--ink); }
.footer-col h2 { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-bottom: 16px; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { color: var(--ink-2); font-size: 14.5px; }
.footer-col a:hover { color: var(--blue); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-block: 24px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--faint); }
.footer-badges { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-badges span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- 404 ---------- */
.page-404 { min-height: 60vh; display: grid; align-items: center; text-align: center; }
.page-404 h1, .page-404 .lead { margin-inline: auto; }
.page-404 .hero-actions { justify-content: center; }

/* ==========================================================================
   Chat assistant
   ========================================================================== */
.chat { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 120; }
.chat-launcher {
  display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 20px 0 8px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--ink); color: #fff; font-weight: 500; font-size: 15px;
  box-shadow: 0 12px 32px -8px rgba(10,15,31,.55), 0 0 0 1px rgba(255,255,255,.06) inset;
  transition: transform .2s var(--ease), box-shadow .2s;
}
.chat-launcher:hover { transform: translateY(-2px); }
.chat-launcher-ico { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-grad); }
.chat.is-open .chat-launcher { opacity: 0; pointer-events: none; transform: scale(.9); }
.chat-panel {
  position: absolute; right: 0; bottom: 0; width: min(400px, calc(100vw - 32px)); height: min(640px, calc(100dvh - 32px));
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 24px; overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(10,15,31,.45); transform-origin: bottom right; animation: chatIn .28s var(--ease);
}
@keyframes chatIn { from { opacity: 0; transform: translateY(12px) scale(.97); } }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 12px 14px 16px; background: var(--dark); color: #fff; }
.chat-head h2 { font-size: 15.5px; color: #fff; letter-spacing: -0.01em; }
.chat-head p { font-size: 12.5px; color: var(--dark-muted); display: flex; align-items: center; gap: 6px; }
.chat-head .dot { width: 6px; height: 6px; }
.chat-head > div { flex: 1; min-width: 0; }
.chat-avatar { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-grad); flex: none; }
.chat-icon-btn { width: 36px; height: 36px; border-radius: 10px; border: 0; background: transparent; color: #c3cadb; cursor: pointer; display: grid; place-items: center; }
.chat-icon-btn:hover { background: rgba(255,255,255,.08); color: #fff; }
.chat-log { position: relative; flex: 1; overflow-y: auto; padding: 18px 16px 8px; display: flex; flex-direction: column; gap: 10px; background: var(--tint); scroll-behavior: smooth; }
.cb { max-width: 88%; padding: 10px 14px; border-radius: 16px; font-size: 14.5px; line-height: 1.5; animation: msgIn .3s var(--ease) both; opacity: 0; transform: translateY(6px); }
.cb-bot { align-self: flex-start; background: #fff; color: var(--ink-2); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.cb-user { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 6px; }
.cb p + p, .cb p + ul, .cb ul + p { margin-top: 8px; }
.cb ul { display: grid; gap: 4px; }
.cb li { position: relative; padding-left: 16px; }
.cb li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }
.cb strong { color: var(--ink); }
.cb a { font-weight: 500; }
.cb-card { display: grid; gap: 8px; }
.cb-card .cb-title { font-weight: 600; color: var(--ink); font-size: 15px; }
.cb-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.cb-links a { display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; border-radius: 999px; font-size: 13px; background: var(--ink); color: #fff; }
.cb-links a.alt { background: var(--tint-2); color: var(--ink); }
.cb-typing { display: inline-flex; gap: 4px; padding: 14px 16px; }
.cb-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); animation: blink 1s infinite; }
.cb-typing span:nth-child(2) { animation-delay: .15s; }
.cb-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 50% { opacity: .25; } }
.chat-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 16px; background: var(--tint); border-top: 1px solid var(--line); max-height: 132px; overflow-y: auto; }
.chat-chips:empty { display: none; }
.chip { padding: 8px 12px; border-radius: 999px; border: 1px solid #c9d7ff; background: #fff; color: var(--blue-700); font-size: 13.5px; font-weight: 500; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.chip:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.chat-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: #fff; }
.chat-input input { flex: 1; min-width: 0; height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); font-size: 15px; }
.chat-input input:focus { outline: none; border-color: var(--blue); box-shadow: var(--ring); }
.chat-input button { width: 44px; height: 44px; border-radius: 12px; border: 0; background: var(--ink); color: #fff; cursor: pointer; display: grid; place-items: center; }
.chat-foot { font-size: 11.5px; color: var(--faint); text-align: center; padding: 0 12px 10px; background: #fff; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .nav, .hide-sm { display: none; }
  .menu-toggle { display: inline-block; }
  .header-actions { margin-left: auto; }
  .steps, .engage-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 880px) {
  .hero-grid, .split, .contact-grid, .calc, .quotes, .faq-layout { grid-template-columns: 1fr; }
  .split-side, .faq-toc { position: static; }
  .faq-toc { display: none; }
  .hero-visual { max-width: 520px; width: 100%; margin-inline: auto; }
  .equation { grid-template-columns: 1fr; justify-items: center; }
  .equation .eq-card { width: 100%; }
  .product-row, .engage-grid, .tiers, .pas { grid-template-columns: 1fr; }
  /* Why tabs become a simple list; timeline goes vertical */
  .wt { grid-template-columns: 1fr; }
  .wt-stage { display: none; }
  .wt-tab { background: #fff; border-color: var(--line); align-items: flex-start; cursor: default; }
  .wt-tab:hover { background: #fff; }
  .wt-tab.is-active { box-shadow: none; }
  .wt-tab.is-active .wt-num { color: var(--faint); }
  .wt-mobile-desc { display: block; margin-top: 6px; color: var(--muted); font-size: 15px; font-weight: 400; }
  .wt-arrow, .wt-bar { display: none; }
  .tl { grid-template-columns: 1fr; gap: 32px; }
  .tl::before, .tl::after { top: 0; bottom: 0; left: 27px; right: auto; width: 2px; height: auto; }
  .tl::after { transform: scaleY(0); transform-origin: top; }
  .tl.is-in::after { transform: scaleY(1); }
  .tl-step { padding-left: 80px; min-height: 56px; }
  .tl-dot { position: absolute; left: 0; top: 0; }
  .tl-label { margin-top: 4px; }
  .equation::before { left: 50%; right: auto; top: 6%; bottom: 6%; width: 2px; height: auto; transform: translateX(-1px);
    background: linear-gradient(180deg, rgba(31,91,255,.15), #1f5bff 45%, #10b9a0 80%, rgba(16,185,160,.2)); background-size: 100% 200%; animation-name: eqFlowV; }
  @keyframes eqFlowV { to { background-position: 0 -200%; } }
  .dv-principles { grid-template-columns: 1fr; }
  .eco-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Services hub */
  .svc-hero-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento-2, .bento-3 { grid-template-columns: 1fr; }
  .bento-3 .is-feature { grid-row: auto; }
  /* Workflow diagram goes vertical */
  .flow-steps { grid-template-columns: 1fr; gap: 26px; }
  .flow-step { grid-template-columns: 64px 1fr; justify-items: start; text-align: left; column-gap: 16px; row-gap: 2px; }
  .flow-node { grid-row: span 2; }
  .flow-step strong { margin-top: 10px; }
  .flow-step small { max-width: none; }
  .flow-step:not(:last-child)::before { top: 72px; bottom: -24px; left: 31px; right: auto; width: 2px; height: auto;
    background: repeating-linear-gradient(180deg, rgba(255,255,255,.28) 0 6px, transparent 6px 12px); background-size: 2px 24px; animation: dashV 1s linear infinite; }
  .flow-step:not(:last-child)::after { display: none; }
  @keyframes dashV { to { background-position: 0 24px; } }
  .sx-many .sx-panel:not(.is-active) { padding: 18px; }
  .sx-many .sx-panel.is-active .sx-head { opacity: 1; }
  /* Showcase becomes an accordion */
  .sx { flex-direction: column; height: auto; gap: 10px; }
  .sx-panel { flex: none; padding: 18px; transition: background-color .4s, box-shadow .4s; }
  .sx-head { flex-direction: row; align-items: center; gap: 12px; }
  .sx-ico { width: 40px; height: 40px; border-radius: 12px; }
  .sx-num { order: 2; margin-left: auto; }
  .sx-panel.is-active .sx-num { opacity: 1; }
  .sx-vtitle { position: absolute; left: 70px; top: 27px; bottom: auto; writing-mode: horizontal-tb; transform: none; font-size: 17px; }
  .sx-panel.is-active .sx-vtitle { opacity: 0; }
  .sx-body { position: static; width: auto; min-width: 0; display: none; margin-top: 18px; }
  .sx-panel.is-active .sx-body { display: grid; animation: rise .5s var(--ease) both; }
  .sx-watermark { font-size: 140px; top: -20px; }
  .tiers { gap: 28px; }
  .bk { grid-template-columns: 1fr; }
  .bk-side { border-right: 0; border-bottom: 1px solid var(--line); }
  .row-head { flex-direction: column; align-items: start; }
}

@media (max-width: 640px) {
  :root { --header-h: 62px; }
  body { font-size: 15.5px; }
  .brand img { width: 120px; }
  .header-actions .btn-primary { display: none; }
  .steps, .engage-grid-4, .form-row, .bk-cols, .outcomes { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-proof { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
  .hero-proof strong { font-size: 22px; }
  .hero-proof span:not(.star) { font-size: 12px; line-height: 1.35; }
  .orbit-caption { display: block; }
  .sx-features { grid-template-columns: 1fr; }
  .eco-cards { grid-template-columns: 1fr; }
  .eco-dialog { width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; }
  .eco-dialog-body { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
  .eco-tabs { display: flex; gap: 6px; padding: 10px 16px; border-right: 0; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
  .eco-tab { flex: none; width: auto; padding: 8px 12px; }
  .eco-tab small { margin-left: 4px; }
  .eco-panels { padding: 4px 16px 12px; }
  .eco-list li { grid-template-columns: 1fr; gap: 2px; }
  .eco-dialog-foot { flex-direction: column; align-items: stretch; text-align: center; }
  .svc-hero-cats a { padding: 12px; gap: 10px; }
  .svc-hero-ico { width: 36px; height: 36px; border-radius: 10px; }
  .svc-hero-cats strong { font-size: 14px; }
  .cat-head { grid-template-columns: 1fr; gap: 14px; }
  .bento-card { padding: 22px; }
  .bento-foot { flex-direction: column; align-items: flex-start; }
  .mini-flow small { font-size: 10.5px; }
  .mini-flow li span { width: 38px; height: 38px; border-radius: 12px; }
  .mini-flow li:not(:last-child)::after { top: 19px; left: calc(50% + 22px); right: calc(-50% + 16px); }
  .sx-summary { font-size: 15px; }
  .industries { flex-direction: column; align-items: flex-start; }
  .eq-card, .tier, .quote, .engage-card { padding: 22px; }
  .founder { grid-template-columns: 1fr; }
  .founder-avatar { width: 72px; height: 72px; font-size: 30px; border-radius: 18px; }
  .cta-actions, .cta-actions .btn { width: 100%; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .bk-side, .bk-main { padding: 22px; }
  .chat { right: 12px; bottom: 12px; }
  .chat-launcher { padding-right: 8px; }
  .chat-launcher-label { display: none; }
  .to-top { left: 12px; bottom: 16px; }
  .chat.is-open { inset: 0; }
  .chat-panel { position: fixed; inset: 0; width: 100%; height: 100dvh; border-radius: 0; border: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .demo-card[data-demo] .demo-log > * { opacity: 1; transform: none; }
}

@media print {
  .site-header, .chat, .cta-band, .site-footer { display: none; }
}
