/* ==========================================================
   CruxNeo Technologies — styles
   Clean white with navy and royal blue: matched to the CN logo.
   ========================================================== */

:root {
  --bg: #FFFFFF;
  --bg-2: #F6F7FB;
  --surface: #FFFFFF;
  --surface-2: #F8F9FA;
  --surface-3: #EEF0F3;
  --line: rgba(17, 19, 24, .08);
  --line-strong: rgba(17, 19, 24, .16);
  --text: #0B1020;
  --text-2: #4B515C;
  --text-3: #8A909A;
  --accent: #1E3A8A;
  --accent-ink: #172E6E;
  --accent-bright: #2F55D4;
  --accent-soft: #EBF0FB;
  --accent-softer: #F5F7FD;
  --ok: #15803D;
  --warn: #B45309;
  --info: #1D4ED8;
  --danger: #DC2626;

  --chrome: linear-gradient(100deg, #1E3A8A 0%, #2F55D4 30%, #7C93DD 50%, #2F55D4 70%, #1E3A8A 100%);
  --accent-grad: linear-gradient(180deg, #2A4AA8 0%, #172E6E 100%);
  --panel-grad: linear-gradient(155deg, #13245A 0%, #1E3A8A 55%, #2B4BB0 100%);   /* big navy panels: use-case panel + contact form */
  --edge: linear-gradient(140deg, rgba(30, 58, 138, .28), rgba(17, 19, 24, .06) 40%, rgba(17, 19, 24, .05) 60%, rgba(30, 58, 138, .2));
  --shadow: 0 1px 2px rgba(17, 19, 24, .04), 0 18px 40px -20px rgba(30, 58, 138, .22);

  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Michroma", "Geist", sans-serif;
  --mono: "Geist Mono", ui-monospace, Consolas, monospace;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 16px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; color-scheme: light; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; }
p { margin: 0; }
strong { font-weight: 600; }
::selection { background: var(--accent); color: #fff; }

/* Royal-blue shimmer text: used for every emphasised phrase */
em {
  font-style: normal;
  background: var(--chrome);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: chrome 8s ease-in-out infinite alternate;
}
@keyframes chrome { from { background-position: 0% 0; } to { background-position: 100% 0; } }

.mono { font-family: var(--mono); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--text); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(60px, 7.5vw, 100px) 0; position: relative; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* ---------- Labels (echo the logo's lined tagline) ---------- */
.eyebrow, .tagline {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-2);
  display: inline-flex; align-items: center; gap: 14px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--accent); }
.tagline::before, .tagline::after { content: ""; width: 40px; height: 1px; background: var(--line-strong); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 24px;
  border-radius: 999px;
  font: 500 15px/1 var(--sans);
  border: 1px solid transparent;
  cursor: pointer;
  position: relative;
  transition: transform .4s var(--ease), background .3s, color .3s, border-color .3s, box-shadow .4s var(--ease);
  white-space: nowrap;
}
.btn span { transition: transform .4s var(--ease); }
.btn:hover span { transform: translateX(4px); }
.btn:active { transform: scale(.98); }
.btn--sm { padding: 11px 18px; font-size: 14px; }
.btn--accent, .btn--ink {
  background: var(--accent-grad); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 10px 24px -10px rgba(30, 58, 138, .6);
}
.btn--accent:hover, .btn--ink:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 16px 32px -10px rgba(30, 58, 138, .7); }
.btn--ghost { border-color: var(--line-strong); color: var(--text); background: var(--surface); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-ink); }
.btn--block { width: 100%; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(1.4) blur(16px);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; gap: 32px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 14px; }
.brand__mark { height: 24px; width: auto; transition: transform .6s var(--ease); }
.brand:hover .brand__mark { transform: scale(1.08); }
.brand__divider { width: 1px; height: 22px; background: var(--line-strong); }
.brand__name { font: 15px var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.nav__links { display: flex; gap: 32px; margin-left: auto; font-size: 14px; color: var(--text-2); font-weight: 400; }
.nav__links a { position: relative; transition: color .2s; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.nav__links a:hover, .nav__links a.is-active { color: var(--text); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); }
.nav__toggle { display: none; margin-left: auto; width: 42px; height: 42px; border: 1px solid var(--line-strong); border-radius: 12px; background: transparent; cursor: pointer; position: relative; }
.nav__toggle span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--text); transition: transform .3s var(--ease); }
.nav__toggle span:first-child { top: 16px; }
.nav__toggle span:last-child { top: 24px; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.mobile-menu { display: flex; flex-direction: column; gap: 4px; padding: 8px var(--gutter) 20px; border-bottom: 1px solid var(--line); }
.mobile-menu[hidden] { display: none; }
.mobile-menu a:not(.btn) { padding: 14px 0; font-size: 18px; border-bottom: 1px solid var(--line); }
.mobile-menu .btn { margin-top: 12px; }

/* ---------- Ribbons (the folded band from the N) ---------- */
.ribbons { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.ribbons i { position: absolute; width: 38vw; max-width: 560px; height: 160%; top: -30%; background: linear-gradient(90deg, rgba(30, 58, 138, 0), rgba(30, 58, 138, .06) 45%, rgba(30, 58, 138, 0)); transform: skewX(-32deg); }
.ribbons i:first-child { right: 6%; }
.ribbons i:last-child { right: 30%; width: 14vw; opacity: .7; }

/* ---------- Hero ---------- */
.hero { padding: clamp(36px, 5.5vw, 72px) 0 28px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 20%, transparent 70%);
  opacity: .6;
}
.hero > .wrap, .hero > .flowband { position: relative; z-index: 1; }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__title { font-size: clamp(40px, 5.6vw, 84px); margin: 20px 0 12px; letter-spacing: -0.05em; line-height: .95; }
.hero__lede { max-width: 520px; font-size: clamp(17px, 1.4vw, 19px); color: var(--text-2); line-height: 1.6; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

.hero__visual { position: relative; width: 100%; max-width: 500px; aspect-ratio: 1; margin-left: auto; }
.hero__steps { position: absolute; left: 0; right: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 18px; font: 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.hero__steps { bottom: 0; }
.hero__steps span { transition: color .5s; }
.hero__steps span.on { color: var(--accent); }
.hero__live { position: absolute; left: 50%; bottom: 34px; translate: -50% 0; display: inline-flex; align-items: center; gap: 8px; padding: 5px 13px 5px 11px; border-radius: 999px; background: var(--surface); border: 1px solid rgba(30, 58, 138, .18); box-shadow: 0 10px 24px -14px rgba(30, 58, 138, .5); font-size: 12px; white-space: nowrap; opacity: 0; transform: translateY(6px); transition: opacity .5s, transform .5s var(--ease); }
.hero__live.on { opacity: 1; transform: none; }
.hero__live i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(21, 128, 61, .15); }
.hero__live b { font-weight: 500; }

.flowband { margin: clamp(36px, 4.5vw, 56px) 0 0; height: clamp(170px, 20vw, 240px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--bg-2), transparent); }
.flowband canvas { width: 100%; height: 100%; }
.flowband__label { position: absolute; top: 16px; display: flex; flex-direction: column; gap: 2px; font-size: 14px; z-index: 2; }
.flowband__label .mono { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--text-3); }
.flowband__label strong { font-weight: 500; }
.flowband__label--l { left: var(--gutter); color: var(--text-2); }
.flowband__label--r { right: var(--gutter); text-align: right; }

.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 32px; font: 12px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); }
.tags li { display: flex; align-items: center; gap: 10px; }
.tags li::before { content: ""; width: 5px; height: 5px; background: var(--accent); transform: rotate(45deg); }

/* ---------- Pillars ---------- */
.pillars { padding-top: 24px; }
.pillar { padding: 28px 24px 28px; border-top: 1px solid var(--line-strong); position: relative; }
.pillar::before { content: ""; position: absolute; top: -1px; left: 0; width: 56px; height: 2px; background: var(--accent); }
.pillar .num { font: 13px var(--mono); letter-spacing: .1em; color: var(--text-3); }
.pillar h3 { font-size: 24px; margin: 20px 0 12px; }
.pillar p { color: var(--text-2); }

/* ---------- Mission ---------- */
.manifesto { background: var(--accent-softer); overflow: hidden; }
.manifesto::after { content: ""; position: absolute; right: -8%; top: -20%; width: 40%; height: 140%; background: linear-gradient(90deg, transparent, rgba(30, 58, 138, .06), transparent); transform: skewX(-32deg); pointer-events: none; }
.manifesto__head { font-size: clamp(38px, 5.8vw, 80px); max-width: 15ch; margin: 18px 0 clamp(24px, 3.5vw, 44px); }
.manifesto__body { font-size: clamp(22px, 2.8vw, 38px); line-height: 1.35; letter-spacing: -0.025em; font-weight: 400; max-width: 30ch; margin-left: auto; position: relative; z-index: 1; }
.manifesto__body .w { opacity: .16; transition: opacity .4s; }
.manifesto__body .w.on { opacity: 1; }

/* ---------- Section headings ---------- */
.sec-head { max-width: 780px; margin-bottom: clamp(32px, 4vw, 52px); }
.sec-head h2 { font-size: clamp(36px, 4.8vw, 64px); margin: 16px 0 16px; }
.sec-head__sub { font-size: 18px; color: var(--text-2); max-width: 580px; }

/* ---------- Cards ---------- */
.card { position: relative; border-radius: var(--radius); padding: clamp(24px, 3.2vw, 36px); display: flex; flex-direction: column; gap: 14px; background: var(--surface); }
.card h3 { font-size: clamp(26px, 2.8vw, 34px); }
.card p { color: var(--text-2); }
.card--muted { background: var(--bg-2); border: 1px solid var(--line); }
.card--ink { background: var(--accent-softer); box-shadow: var(--shadow); }
.card--ink::before, .cap::before, .console::before, .form::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: var(--edge);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}

.diagram { width: 100%; height: auto; margin: 8px 0; color: var(--text-3); }
.card--ink .diagram { color: var(--text-2); }
.diagram text { font: 11px var(--mono); fill: var(--text-2); }
.roles rect { fill: var(--surface); stroke: var(--line-strong); }
.team { fill: var(--surface); stroke: rgba(30, 58, 138, .35); }
.spine-line { stroke-dasharray: 300; stroke-dashoffset: 300; transition: stroke-dashoffset 1.6s var(--ease) .3s; }
.in .spine-line { stroke-dashoffset: 0; }
.list { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 10px; font-size: 15px; }
.list li { display: flex; gap: 12px; align-items: baseline; color: var(--text-2); }
.list--x li::before { content: "×"; font-family: var(--mono); color: var(--text-3); }
.list--check li { color: var(--text); }
.list--check li::before { content: "→"; font-family: var(--mono); color: var(--accent); }

/* ---------- Timeline race (problem / approach) ---------- */
.race { margin: 4px 0 8px; overflow: visible; }
.race text { font: 500 9.5px var(--mono); letter-spacing: .08em; fill: var(--text-3); }
.race .race__bar text { font: 500 10.5px var(--sans); letter-spacing: 0; fill: var(--text-2); }
.race .race__bar--solid text, .race .race__bar--late text { fill: #fff; }
.race .race__note { font: 600 11px var(--sans); letter-spacing: 0; }
.race .race__note--warn, .race .race__hire { fill: var(--warn); }
.race .race__note--go, .race .race__flag text { fill: var(--accent); }
.race .race__hire { font: 500 9px var(--sans); letter-spacing: 0; }
.race__axis, .race__cursor { stroke: var(--line-strong); stroke-width: 1; }
.race__bar rect { fill: var(--text-3); opacity: .2; }
.race__bar--late rect { opacity: .8; }
.race__bar--solid rect { fill: var(--accent); opacity: .92; }
.race__line { fill: none; stroke-width: 2; stroke-linejoin: round; }
.race__line--warn { stroke: var(--warn); }
.race__line--go { stroke: var(--accent); }
.race__area--warn { fill: var(--warn); opacity: .12; }
.race__area--go { fill: var(--accent); opacity: .12; }
.race__dot--warn { fill: var(--warn); }
.race__dot--go { fill: var(--accent); }
.race__flag line { stroke: var(--accent); stroke-width: 1.2; stroke-dasharray: 3 3; }
.race__grid { stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 3; }
.race .race__tick { font-size: 8px; letter-spacing: .06em; }
.race .race__value { font: 600 10.5px var(--sans); letter-spacing: 0; }
.race__band { fill: var(--accent); opacity: .16; }
.race__range { fill: none; stroke: var(--accent); stroke-width: 2.5; }
.race__flag--warn line { stroke: var(--warn); }
.race .race__flag--warn text { fill: var(--warn); }

/* ---------- Services ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cap {
  position: relative; background: var(--surface); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 12px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(17, 19, 24, .04);
  transition: opacity .9s var(--ease), transform .5s var(--ease), box-shadow .5s var(--ease);
}
.cap::after { content: ""; position: absolute; inset: 0; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(30, 58, 138, .07), transparent 60%); opacity: 0; transition: opacity .4s; pointer-events: none; }
.cap:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.cap:hover::after { opacity: 1; }
.cap__head { display: flex; justify-content: space-between; align-items: flex-start; }
.cap__num { font: 13px var(--mono); letter-spacing: .1em; color: var(--text-3); }
.cap h3 { font-size: 24px; }
.cap p { color: var(--text-2); max-width: 52ch; }
.cap__icon { width: 48px; height: 48px; border-radius: 12px; background: var(--accent-soft); border: 1px solid rgba(30, 58, 138, .15); display: grid; place-items: center; margin-bottom: 10px; transition: background .4s, border-color .4s; }
.cap__icon svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: stroke .4s; }
.cap:hover .cap__icon { background: var(--accent-grad); border-color: transparent; }
.cap:hover .cap__icon svg { stroke: #fff; }
.bars { margin-top: auto; padding-top: 18px; display: flex; align-items: flex-end; gap: 6px; height: 76px; }
.bars i { flex: 1; background: var(--surface-3); border-radius: 3px; height: 20%; transition: height 1s var(--ease); }
.bars i:nth-last-child(-n+4) { background: var(--accent-grad); }
.in .bars i { height: var(--h, 40%); }

/* ---------- Process spine ---------- */
.process { background: var(--bg-2); }
/* scroll-driven: the section is tall, the inner panel stays pinned while you scroll through it */
.process--scroll, .usecases--scroll { position: relative; height: 220vh; }
.process__pin { position: sticky; top: 0; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 96px 0 40px; }
.process__pin > .wrap { width: 100%; }
.process--scroll .spine__fill { transition: width .15s linear; }
.process--scroll .spine__pulse { transition: left .15s linear; }
/* 3s idle timer: fills, then the page glides to the next stage */
.spine__timer { width: 180px; height: 3px; margin: 28px auto 0; border-radius: 3px; background: var(--line-strong); overflow: hidden; opacity: 0; transition: opacity .3s; }
.spine__timer i { display: block; width: 0; height: 100%; border-radius: 3px; background: var(--accent-grad); }
.spine__timer.run { opacity: 1; }
.spine__timer.run i { animation: spine-timer 3s linear forwards; }
@keyframes spine-timer { to { width: 100%; } }
.spine { position: relative; padding: 40px 0 0; }
.spine__track { position: absolute; left: 10%; right: 10%; top: 59px; height: 1px; background: var(--line-strong); }
.spine__fill { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--accent); transition: width .7s var(--ease); }
.spine__pulse { position: absolute; top: -4px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 6px rgba(30, 58, 138, .15); left: 0; transition: left .7s var(--ease); }
.spine__stages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.spine__stages button {
  width: 100%; background: none; border: 0; cursor: pointer; color: var(--text-3);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font: 500 clamp(15px, 1.5vw, 19px) var(--sans); letter-spacing: -0.01em;
  transition: color .3s; padding: 0 4px;
}
.spine__stages button .mono { font: 11px var(--mono); letter-spacing: .1em; }
.spine__node { width: 40px; height: 40px; border-radius: 50%; background: var(--bg-2); border: 1px solid var(--line-strong); position: relative; transition: border-color .3s, background .3s, transform .4s var(--ease), box-shadow .4s; }
.spine__node::after { content: ""; position: absolute; inset: 14px; border-radius: 50%; background: var(--text-3); transition: background .3s; }
.spine__stages button.done { color: var(--text-2); }
.spine__stages button.done .spine__node { border-color: var(--accent); }
.spine__stages button.done .spine__node::after { background: var(--accent); }
.spine__stages button[aria-selected="true"] { color: var(--text); }
.spine__stages button[aria-selected="true"] .spine__node { background: var(--accent-grad); border-color: transparent; transform: scale(1.12); box-shadow: 0 10px 24px -8px rgba(30, 58, 138, .6); }
.spine__stages button[aria-selected="true"] .spine__node::after { background: #fff; }
.spine__stages button:hover .spine__node { transform: scale(1.12); }
.spine__panel { margin: 40px auto 0; max-width: 680px; text-align: center; min-height: 110px; }
.spine__text { font-size: clamp(21px, 2.4vw, 30px); letter-spacing: -0.025em; line-height: 1.3; font-weight: 400; }
.spine__example { margin-top: 16px; font-size: 12px; color: var(--text-3); }
.spine__text, .spine__example { transition: opacity .3s, transform .3s; }
.spine__panel.swap .spine__text, .spine__panel.swap .spine__example { opacity: 0; transform: translateY(6px); }

/* ---------- Build demo (console) ---------- */
.product { overflow: hidden; }
.product::before {
  content: ""; position: absolute; left: 50%; top: 32%; width: 1000px; height: 640px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(47, 85, 212, .12), transparent);
  pointer-events: none;
}
.console { position: relative; background: var(--surface); border-radius: 20px; overflow: hidden; box-shadow: 0 50px 100px -40px rgba(30, 58, 138, .3); font-size: 14px; }
.console__bar { display: flex; align-items: center; gap: 16px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.console__dots { display: flex; gap: 6px; }
.console__dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-3); }
.console__search { flex: 1; max-width: 420px; display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 8px; background: var(--surface); color: var(--text-3); font-size: 13px; border: 1px solid var(--line); }
.console__search kbd { margin-left: auto; font: 11px var(--mono); padding: 2px 6px; border-radius: 4px; border: 1px solid var(--line); }
.console__status { margin-left: auto; display: flex; align-items: center; gap: 8px; font: 12px var(--mono); color: var(--text-2); }
.live { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(21, 128, 61, .5); } 80%, 100% { box-shadow: 0 0 0 8px rgba(21, 128, 61, 0); } }

.console__body { display: grid; grid-template-columns: repeat(12, 1fr); gap: 12px; padding: 16px; background: var(--bg-2); }
.kpis { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.kpi__label { font: 10px var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--text-3); }
.kpi__val { font-size: clamp(24px, 2.6vw, 34px); font-weight: 600; letter-spacing: -0.03em; color: var(--text); font-variant-numeric: tabular-nums; }
.kpi__val small { font-size: .5em; color: var(--text-3); margin-left: 2px; font-weight: 400; }
.kpi__delta { font: 11px var(--mono); }
.kpi__delta.up { color: var(--ok); }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; min-width: 0; }
.panel__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font: 10px var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--text-3); }
.chip { padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line); font-size: 10px; }
.chip--live { color: var(--ok); border-color: rgba(21, 128, 61, .3); }
.panel--chart { grid-column: span 8; }
.panel--feed { grid-column: span 4; }
.panel--flow, .panel--table { grid-column: 1 / -1; }
#chart { width: 100%; height: 200px; }
.gridlines line { stroke: var(--line); stroke-dasharray: 3 4; }

.feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.feed li { display: grid; grid-template-columns: 58px 1fr auto; gap: 10px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--line); animation: feedIn .6s var(--ease); }
.feed li:last-child { border-bottom: 0; }
.feed .t { font: 10px var(--mono); letter-spacing: .08em; color: var(--text); font-weight: 500; }
.feed .t.test { color: var(--warn); }
.feed .t.deploy { color: var(--ok); }
.feed .t.design { color: var(--info); }
.feed .m { color: var(--text); font-size: 13px; line-height: 1.35; font-weight: 400; }
.feed .ago { font: 11px var(--mono); color: var(--text-3); }
@keyframes feedIn { from { opacity: 0; transform: translateY(-8px); background: var(--bg-2); } }

.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; counter-reset: f; }
.flow li { position: relative; padding: 12px 10px; border-radius: 8px; border: 1px solid var(--line); font-size: 13px; color: var(--text-3); text-align: center; transition: border-color .4s, box-shadow .4s; counter-increment: f; }
.flow li::before { content: counter(f, decimal-leading-zero); display: block; font: 10px var(--mono); margin-bottom: 4px; opacity: .6; }
.flow li.done { color: var(--text-2); border-color: var(--line-strong); background: var(--bg-2); }
.flow li.active { color: #fff; border-color: transparent; background: var(--accent-grad); box-shadow: 0 10px 20px -10px rgba(30, 58, 138, .6); font-weight: 500; }

.table-scroll { overflow-x: auto; }
.entities { width: 100%; border-collapse: collapse; min-width: 560px; }
.entities th { text-align: left; font: 10px var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--text-3); padding: 8px 10px; border-bottom: 1px solid var(--line); font-weight: 400; }
.entities td { padding: 11px 10px; border-bottom: 1px solid var(--line); color: var(--text); font-size: 13px; font-weight: 400; }
.entities tr:last-child td { border-bottom: 0; }
.entities td:first-child { font-family: var(--mono); color: var(--text-3); }
.state { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; }
.state::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.state--progress { color: var(--info); } .state--queued { color: var(--text-3); } .state--attention { color: var(--warn); } .state--resolved { color: var(--ok); }
.load { display: flex; align-items: center; gap: 10px; font: 12px var(--mono); }
.load__bar { width: 90px; height: 4px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.load__bar i { display: block; height: 100%; background: var(--text-3); border-radius: 4px; transition: width .9s var(--ease); }

.console__foot { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 12px 16px; border-top: 1px solid var(--line); font: 11px var(--mono); color: var(--text-3); }
.console__foot i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 6px; }
.console__foot i.ok { background: var(--ok); }
.console__note { margin-left: auto; }

/* ---------- Why ---------- */
.why { background: var(--bg-2); }
.eng { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.eng__head { position: sticky; top: 110px; }
.eng__head h2 { font-size: clamp(36px, 4.4vw, 58px); margin: 16px 0 16px; }
.eng__head p { color: var(--text-2); font-size: 17px; max-width: 40ch; }
.eng__head .btn { margin-top: 30px; }
.eng__grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line-strong); border-left: 1px solid var(--line-strong); }
.principle { padding: 28px 24px; border-right: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); transition: background .3s; }
.principle:hover { background: var(--surface); }
.principle code { font: 11px var(--mono); color: var(--accent-ink); background: var(--accent-soft); border: 1px solid rgba(30, 58, 138, .15); padding: 4px 8px; border-radius: 6px; }
.principle h3 { font-size: 22px; margin: 24px 0 10px; }
.principle p { color: var(--text-2); font-size: 15px; }

/* ---------- Contact ---------- */
.contact { overflow: hidden; }
.contact::before { content: ""; position: absolute; left: -10%; top: -30%; width: 34%; height: 160%; background: linear-gradient(90deg, transparent, rgba(30, 58, 138, .05), transparent); transform: skewX(-32deg); pointer-events: none; }
.contact__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(36px, 6vw, 80px); align-items: start; position: relative; }
.contact h2 { font-size: clamp(36px, 4.8vw, 64px); margin: 16px 0 18px; }
.contact__intro > p:not(.eyebrow) { color: var(--text-2); font-size: 18px; max-width: 42ch; }
/* contact form: navy card (same as the use-case panel) with white field boxes */
.form { position: relative; overflow: hidden; border-radius: 22px; padding: clamp(22px, 3vw, 34px); display: grid; gap: 16px;
  background: var(--panel-grad); color: #E7ECF7;
  box-shadow: 0 40px 80px -40px rgba(23, 46, 110, .85); }
.form::after { content: ""; position: absolute; right: -30%; top: -40%; width: 70%; height: 180%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .06), transparent); transform: skewX(-30deg); pointer-events: none; }
.form > * { position: relative; z-index: 1; }
.form__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.form__head b { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; color: #fff; }
.form__reply { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: rgba(231, 236, 247, .8); }
.form__reply i { width: 7px; height: 7px; border-radius: 50%; background: #4ADE80; animation: ping 2s infinite; }
.form__honey { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }   /* helper text under one field mustn't stretch its neighbour */
.field { display: grid; gap: 8px; position: relative; }
.field > span { display: flex; justify-content: space-between; font: 10px var(--mono); text-transform: uppercase; letter-spacing: .14em; color: rgba(231, 236, 247, .7); }
.field i { font-style: normal; text-transform: none; letter-spacing: 0; color: rgba(231, 236, 247, .55); }
.field .field__count { color: #9DB4FF; }
.field input, .field textarea, .field select {
  width: 100%; font: 400 15px var(--sans); color: var(--text);
  background: #fff; border: 1px solid transparent; border-radius: 12px; padding: 13px 36px 13px 14px; text-overflow: ellipsis;
  box-shadow: 0 1px 2px rgba(11, 16, 32, .08);
  transition: border-color .2s, box-shadow .2s; resize: vertical;
}
.field input:-webkit-autofill, .field input:-webkit-autofill:hover, .field input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text); caret-color: var(--text);
  -webkit-box-shadow: 0 0 0 1000px #fff inset; box-shadow: 0 0 0 1000px #fff inset;
  transition: background-color 9999s ease-out;
}
.field input::placeholder, .field textarea::placeholder { color: #A0A6B1; }
.field select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 40px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E3A8A' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 14px center / 16px no-repeat; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: #9DB4FF; box-shadow: 0 0 0 4px rgba(157, 180, 255, .35); }
/* a green tick once a field is filled in correctly */
.field.valid::after { content: "✓"; position: absolute; right: 14px; top: 34px; color: var(--ok); font-size: 13px; pointer-events: none; }
.field.valid:has(textarea)::after { top: 34px; }
.field select:has(option[value=""]:checked) { color: #A0A6B1; }
.field.invalid input, .field.invalid textarea { border-color: #FF8A8A; box-shadow: 0 0 0 4px rgba(255, 138, 138, .3); }
.form__send { margin-top: 4px; background: #fff; color: #172E6E; font-weight: 600; box-shadow: 0 14px 28px -14px rgba(0, 0, 0, .55); }
.form__send:hover { background: #EEF2FF; }
.form__send.sent { background: #4ADE80; color: #0B1020; }
.form__send:disabled { cursor: progress; opacity: .85; }
.form__hint { margin-top: -6px; text-align: center; font-size: 12px; color: rgba(231, 236, 247, .6); }
.form__status { font-size: 13px; min-height: 1.2em; text-align: center; color: rgba(231, 236, 247, .8); }
.form__status:empty { display: none; }
.form__status.ok { color: #4ADE80; }
.form__status.err { color: #FFB4B4; }
.form__status a { color: #fff; text-decoration: underline; }

/* ---------- Footer ---------- */
.footer { position: relative; background: var(--bg-2); color: var(--text-3); border-top: 1px solid var(--line); padding: 44px 0 24px; overflow: hidden; }
/* hero background, repeated: faint grid + network canvas + light bands, all behind the content */
.footer::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 75% 70% at 70% 40%, #000 20%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 70% 40%, #000 20%, transparent 72%);
  opacity: .6;
}
.footer__net { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.footer > .wrap { position: relative; z-index: 1; }
.footer__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; }
.footer__brand { display: grid; gap: 12px; }
.footer__logo img { width: clamp(170px, 19vw, 240px); height: auto; }
.footer__tagline { font-size: 14px; color: var(--text-2); }
.footer__right { display: grid; gap: 14px; justify-items: end; }
.footer__links { display: flex; gap: 28px; flex-wrap: wrap; font-size: 14px; color: var(--text-2); }
.footer__links a { transition: color .2s; }
.footer__links a:hover { color: var(--text); }
.footer__email { color: var(--accent); font-weight: 500; font-size: 15px; transition: opacity .2s; }
.footer__email:hover { opacity: .8; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line-strong); font-size: 13px; }
.footer__totop { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(30, 58, 138, .25); background: var(--surface); color: var(--accent); font-size: 13px; font-weight: 500; transition: background .25s, color .25s, border-color .25s, transform .4s var(--ease); }
.footer__totop span { transition: transform .4s var(--ease); }
.footer__totop:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.footer__totop:hover span { transform: translateY(-2px); }

/* ---------- Scroll progress ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; background: var(--accent-grad); transform-origin: left; transform: scaleX(0); }

/* ---------- Hero motion ---------- */
.hero__net { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.rotator { display: inline-block; min-width: 1ch; }
.caret { display: inline-block; width: .06em; height: .78em; margin-left: .04em; background: var(--accent); vertical-align: -0.04em; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; padding: 18px 0; border-bottom: 1px solid var(--line); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { flex-wrap: nowrap; width: max-content; gap: 0 40px; animation: marquee 38s linear infinite; }
.marquee__track li { white-space: nowrap; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Service card animations ---------- */
.in .bars i { animation: grow 3.2s ease-in-out infinite alternate; animation-delay: calc(var(--i, 0) * .12s); }
@keyframes grow { from { height: var(--h, 40%); } to { height: calc(var(--h, 40%) * .55); } }

/* ---------- Email links ---------- */
.contact__email { display: inline-flex; align-items: center; gap: 14px; margin-top: 28px; padding: 14px 20px; border-radius: 14px; background: var(--accent-softer); border: 1px solid rgba(30, 58, 138, .18); transition: border-color .3s, transform .4s var(--ease); }
.contact__email .mono { font-size: 12px; color: var(--text-3); }
.contact__email strong { font-size: 17px; font-weight: 600; color: var(--accent); }
/* email copies to the clipboard on click */
.contact__email { font: inherit; color: inherit; cursor: pointer; text-align: left; }
.contact__email:hover { border-color: var(--accent); transform: translateY(-2px); }
.contact__copy { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; border: 1px solid rgba(30, 58, 138, .25); color: var(--accent); font-size: 11px; transition: background .3s, color .3s, border-color .3s; }
.contact__copy svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.contact__email:hover .contact__copy { background: var(--accent); color: #fff; border-color: var(--accent); }
.contact__email.copied .contact__copy { background: var(--ok); border-color: var(--ok); 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; }

/* ---------- Capabilities extras ---------- */
.cap--wide { grid-column: span 2; }

/* ---------- Capabilities: section motion ---------- */
.capabilities { overflow: hidden; }
.capabilities::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(30, 58, 138, .12) 1px, transparent 1.4px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000, transparent 75%);
  animation: dots-drift 30s linear infinite;
}
@keyframes dots-drift { to { background-position: 28px 56px; } }
.capabilities > .wrap { position: relative; }
/* icons draw themselves in when the card appears */
.cap__icon svg * { stroke-dasharray: 80; stroke-dashoffset: 80; }
.cap.in .cap__icon svg * { animation: icon-draw 1.4s var(--ease) .35s forwards; }
@keyframes icon-draw { to { stroke-dashoffset: 0; } }

/* 03 control: one person — switch their role and access flips everywhere */

/* service animations inside the capability cards (drawn by script.js) */
.capviz { position: relative; margin-top: auto; height: 132px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); overflow: hidden; }
.capviz svg { position: absolute; inset: 6px 10px; width: calc(100% - 20px); height: calc(100% - 12px); display: block; overflow: visible; }
.capviz text { font: 500 10.5px var(--sans); }
.svc-label { fill: var(--text-3); letter-spacing: .02em; }
.svc-label--ink { fill: var(--text-2); }
.svc-label--strong { font-weight: 600; fill: var(--text); }
.svc-label--accent { fill: var(--accent-bright); font-family: var(--mono); letter-spacing: .14em; }
.svc-label--ok { fill: var(--ok); }
.capviz .svc-value { font-weight: 600; font-size: 11.5px; fill: var(--text-3); }
.svc-value--ok { fill: var(--ok); }
.svc-value--accent { fill: var(--accent-bright); }
.svc-chip rect { fill: var(--surface); stroke: var(--line-strong); stroke-width: 1; }
.capviz .svc-chip text { font-size: 10.5px; fill: var(--text-2); }
.svc-chip--solid rect { fill: var(--accent-bright); stroke: none; }
.svc-chip--ok rect { fill: var(--ok); stroke: none; }
.capviz .svc-chip--solid text, .capviz .svc-chip--ok text { fill: #fff; }
.svc-chip--outline rect { stroke: var(--accent-bright); }
.svc-mvpbox { fill: none; stroke: var(--accent-bright); stroke-width: 1.4; stroke-dasharray: 4 4; transition: stroke-dasharray .3s; }
.svc-mvpbox.is-set { stroke-dasharray: none; fill: var(--accent-softer); }
.svc-user { fill: var(--accent); }
.svc-track { stroke: var(--line-strong); stroke-width: 2; }
.svc-track--thin { stroke-width: 1; }
.svc-progress { stroke: var(--accent-bright); stroke-width: 3; stroke-linecap: round; }
.svc-stage { fill: var(--surface); stroke: var(--line-strong); stroke-width: 2; }
.svc-stage.is-done { fill: var(--accent-bright); stroke: none; }
.svc-stage.is-live { fill: var(--ok); stroke: none; }
.capviz .svc-tick { font-size: 11px; fill: #fff; }
.svc-team { fill: var(--accent); }
.capviz .svc-team__text { font-size: 9.5px; fill: #fff; }
.svc-link { stroke: var(--accent-bright); stroke-width: 1.4; }
.svc-road { stroke: var(--accent); stroke-width: 2; }
.svc-mile { fill: var(--surface); stroke: var(--accent-bright); stroke-width: 1.5; }
.svc-mile.is-done { fill: var(--accent-bright); }
.svc-ai { fill: var(--accent); }
.svc-ai__ring { fill: none; stroke: var(--accent-bright); stroke-width: 1.5; }
.capviz .svc-ai__text { font-size: 14px; font-weight: 700; fill: #fff; }
.svc-card { fill: var(--surface); stroke: var(--line-strong); }
.svc-meter { fill: none; stroke: var(--line); }
.svc-meter__fill { fill: var(--warn); }
.svc-meter__fill.is-good { fill: var(--ok); }
.svc-vote circle { fill: var(--warn); }
.svc-vote.is-up circle { fill: var(--ok); }
.capviz .svc-vote text { font-size: 8px; font-weight: 700; fill: #fff; }
.svc-users { fill: none; stroke: var(--accent-bright); stroke-width: 2.2; }
.svc-area { fill: var(--accent-bright); opacity: .1; }
.svc-latency { fill: none; stroke: var(--ok); stroke-width: 1.5; stroke-dasharray: 4 3; }
.svc-server { fill: var(--accent); }
.svc-server__led { fill: #6EE7A0; }
.svc-frame { fill: var(--surface); stroke: var(--line-strong); stroke-width: 1.2; }
.svc-urlbar { fill: var(--line); }
.svc-frame__dot { fill: var(--line-strong); }
.capviz .svc-url { font-size: 7.5px; fill: var(--text-3); }
.svc-block--nav { fill: var(--accent); }
.svc-block--title { fill: var(--text); }
.svc-block--text { fill: var(--text-3); }
.svc-block--btn { fill: var(--accent-bright); }
.svc-block--img { fill: var(--accent-bright); fill-opacity: .3; }
.svc-block--card { fill: var(--bg-2); stroke: var(--line-strong); stroke-width: .8; }
.svc-block--foot { fill: var(--line); }
.svc-live__dot { fill: var(--ok); }
.cap--wide .capviz { height: 150px; }

/* ---------- Use cases ---------- */
.usecases { background: var(--bg-2); }
.uc { display: grid; grid-template-columns: minmax(240px, 1fr) 1.6fr; gap: 20px; }
.uc__tabs { display: flex; flex-direction: column; }
.uc__tabs button {
  display: flex; align-items: center; gap: 16px; text-align: left;
  padding: 18px 4px; border: 0; border-bottom: 1px solid var(--line-strong); background: none; cursor: pointer;
  font: 500 clamp(17px, 1.7vw, 21px) var(--sans); letter-spacing: -0.02em; color: var(--text-3);
  transition: color .3s, padding .4s var(--ease);
}
.uc__tabs button .mono { font-size: 12px; letter-spacing: .08em; }
.uc__tabs button:hover { color: var(--text-2); }
.uc__tabs button[aria-selected="true"] { color: var(--text); padding-left: 14px; }
.uc__tabs button[aria-selected="true"] .mono { color: var(--accent); }
.uc__panel { position: relative; overflow: hidden; background: var(--panel-grad); color: #fff; border-radius: var(--radius); padding: clamp(26px, 3.6vw, 44px); display: flex; flex-direction: column; gap: 16px; min-height: 320px; box-shadow: var(--shadow); }
.uc__panel::after { content: ""; position: absolute; right: -10%; top: -40%; width: 45%; height: 180%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .08), transparent); transform: skewX(-32deg); pointer-events: none; }
.uc__panel .eyebrow { color: rgba(255, 255, 255, .7); }
.uc__panel .eyebrow::before { background: rgba(255, 255, 255, .7); }
.uc__panel h3 { font-size: clamp(28px, 3.4vw, 44px); color: #fff; }
.uc__panel > p:not(.eyebrow) { color: rgba(255, 255, 255, .78); font-size: 18px; max-width: 44ch; }
.uc__panel > * { transition: opacity .35s, transform .35s var(--ease); }
.uc__panel.swap > *:not(.uc__timer) { opacity: 0; transform: translateY(8px); }
.uc__flow { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12px; }
.uc__flow span { padding: 7px 11px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 8px; color: #fff; opacity: 0; animation: chip-in .5s var(--ease) forwards; }
.uc__flow span:last-of-type { background: #fff; color: var(--accent); border-color: #fff; font-weight: 500; }
.uc__flow b { color: rgba(255, 255, 255, .6); font-weight: 400; opacity: 0; animation: chip-in .5s var(--ease) forwards; }
@keyframes chip-in { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
.uc__timer { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .12); }
.uc__timer i { display: block; height: 100%; width: 0; background: rgba(255, 255, 255, .7); }
.uc__timer.run i { animation: uc-timer var(--uc-ms, 6000ms) linear forwards; }
@keyframes uc-timer { to { width: 100%; } }

/* ---------- Engagement steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.steps::before { content: ""; position: absolute; top: 22px; left: 0; right: 0; height: 1px; background: var(--line-strong); }
.steps::after { content: ""; position: absolute; top: 22px; left: 0; height: 2px; margin-top: -.5px; width: var(--progress, 0%); background: var(--accent-grad); transition: width .2s linear; }
.step { padding: 0 24px 0 0; position: relative; }
.step__num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line-strong); font: 500 13px var(--mono); position: relative; z-index: 1; transition: background .4s, color .4s, border-color .4s, box-shadow .4s; }
.step.lit .step__num { background: var(--accent-grad); color: #fff; border-color: transparent; box-shadow: 0 8px 20px -8px rgba(30, 58, 138, .6); }
.step h3 { font-size: 24px; margin: 22px 0 10px; }
.step p { color: var(--text-2); font-size: 15px; }

/* the conversation line as a chat bubble: typing dots, then the line types itself */
.contact__chat { display: flex; align-items: flex-end; gap: 10px; margin-top: 22px; }
.contact__chat-av { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--accent-grad); box-shadow: 0 6px 14px -8px rgba(30, 58, 138, .7); }
.contact__chat-av svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; }
.contact__bubble { margin: 0; min-height: 44px; display: flex; align-items: center; padding: 11px 16px; border-radius: 18px 18px 18px 5px; background: var(--accent-grad); color: #fff; font-size: 14px; line-height: 1.4; white-space: nowrap; box-shadow: 0 14px 28px -18px rgba(30, 58, 138, .8); }
.contact__bubble.typing .contact__bubble-live::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 2px; background: rgba(255, 255, 255, .8); vertical-align: -2px; animation: blink 1s steps(1) infinite; }
.chat-dots { display: inline-flex; gap: 4px; padding: 4px 2px; }
.chat-dots i { width: 6px; height: 6px; border-radius: 50%; background: #fff; opacity: .45; animation: chat-dot 1s ease-in-out infinite; }
.chat-dots i:nth-child(2) { animation-delay: .15s; }
.chat-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes chat-dot { 50% { opacity: 1; transform: translateY(-3px); } }

/* ---------- Social links ---------- */
.social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.social a {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  color: var(--text-2); background: var(--surface); border: 1px solid var(--line-strong);
  transition: color .25s, background .25s, border-color .25s, transform .4s var(--ease), box-shadow .4s var(--ease);
}
.social svg { width: 18px; height: 18px; }
.social a:hover { color: #fff; background: var(--accent-grad); border-color: transparent; transform: translateY(-3px); box-shadow: 0 10px 20px -10px rgba(30, 58, 138, .6); }
.social a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.social--footer a { width: 36px; height: 36px; border-radius: 10px; }
.social--footer svg { width: 16px; height: 16px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.hero .reveal:nth-child(2) { transition-delay: .06s; }
.hero .reveal:nth-child(3) { transition-delay: .12s; }
.hero .reveal:nth-child(4) { transition-delay: .18s; }
.hero .reveal:nth-child(5) { transition-delay: .24s; }
.hero__visual.reveal { transition-delay: .2s; }
.grid-3 .reveal:nth-child(2), .bento .reveal:nth-child(2), .eng__grid .reveal:nth-child(2) { transition-delay: .08s; }
.grid-3 .reveal:nth-child(3), .bento .reveal:nth-child(3), .eng__grid .reveal:nth-child(3) { transition-delay: .16s; }
.bento .reveal:nth-child(4), .steps .reveal:nth-child(4), .eng__grid .reveal:nth-child(4) { transition-delay: .24s; }
.steps .reveal:nth-child(2) { transition-delay: .08s; }
.steps .reveal:nth-child(3) { transition-delay: .16s; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .panel--chart, .panel--feed { grid-column: 1 / -1; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: repeat(3, 1fr); }
  .eng { grid-template-columns: 1fr; }
  .eng__head { position: static; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .steps::before, .steps::after { display: none; }
}
@media (max-width: 860px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: block; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { order: -1; max-width: 360px; margin: 0 auto 8px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .cap--wide { grid-column: auto; }
    .uc { grid-template-columns: 1fr; }
  .uc__tabs { flex-direction: row; overflow-x: auto; gap: 8px; padding-bottom: 4px; scrollbar-width: none; }
  .uc__tabs::-webkit-scrollbar { display: none; }
  .uc__tabs button { flex: none; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 15px; }
  .uc__tabs button[aria-selected="true"] { padding-left: 14px; background: var(--accent-grad); color: #fff; border-color: transparent; }
  .uc__tabs button .mono { display: none; }
  .contact__grid { grid-template-columns: 1fr; }
  .manifesto__body { margin-left: 0; }
  .hide-sm { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .contact__bubble { white-space: normal; font-size: 13px; }
  .process__pin { padding: 76px 0 20px; }
  .process--scroll .sec-head { margin-bottom: 20px; }
  .process--scroll .sec-head__sub { display: none; }
  .contact__email { flex-wrap: wrap; gap: 4px 12px; }
  .hero__visual { max-width: 300px; }
  .hero__steps { font-size: 9px; gap: 4px 10px; letter-spacing: .1em; }
  .hero__live { bottom: 24px; font-size: 11px; }
  .hero__actions .btn { flex: 1; }
  .spine { padding-top: 8px; }
  .spine__track { display: none; }
  .spine__stages { grid-template-columns: 1fr; gap: 14px; }
  .spine__stages button { flex-direction: row; align-items: center; gap: 14px; padding: 0; }
  .spine__panel { text-align: left; margin-top: 28px; }
  .form__row { grid-template-columns: 1fr; }
  .eng__grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .console__search { display: none; }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .kpi { padding: 12px; }
  .flowband__label { font-size: 12px; }
  .tagline::before, .tagline::after { width: 20px; }
  .brand__name { font-size: 13px; }
  .footer__top { flex-direction: column; align-items: flex-start; }
  .footer__right { justify-items: start; }
  .footer__links { gap: 12px 20px; }
}

/* ---------- v2 refinements ---------- */
/* chat bubble: typed text overlays an invisible copy of the full line */
.contact__bubble { position: relative; }
.contact__bubble-ghost { visibility: hidden; }
.contact__bubble-live { position: absolute; inset: 11px 16px; display: flex; align-items: center; }
.contact__bubble-live:has(.chat-dots) { justify-content: flex-start; }

/* product console: navy title bar + navy ring so it belongs with the other navy panels */
.console { box-shadow: 0 0 0 1px rgba(30, 58, 138, .28), 0 50px 100px -40px rgba(30, 58, 138, .4); }
.console__bar { background: var(--panel-grad); border-bottom-color: transparent; }
.console__dots i { background: rgba(255, 255, 255, .28); }
.console__search { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .18); color: rgba(231, 236, 247, .75); }
.console__search kbd { border-color: rgba(255, 255, 255, .25); color: rgba(231, 236, 247, .8); }
.console__status { color: rgba(231, 236, 247, .85); }

/* consent line + legal links */
.form__hint { line-height: 1.55; }
.form__hint a { color: #fff; text-decoration: underline; text-underline-offset: 2px; text-decoration-color: rgba(255, 255, 255, .45); }
.form__hint a:hover { text-decoration-color: #fff; }
.footer__legal { color: var(--text-2); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--line-strong); }
.footer__legal:hover { color: var(--accent); }

/* privacy page */
.legal { padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 8vw, 112px); }
.legal__wrap { max-width: 760px; }
.legal h1 { font-size: clamp(36px, 5vw, 56px); letter-spacing: -0.04em; margin: 16px 0 8px; }
.legal__meta { font: 12px var(--mono); letter-spacing: .08em; color: var(--text-3); margin-bottom: 36px; }
.legal h2 { font-size: 20px; letter-spacing: -0.02em; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--text-2); line-height: 1.7; }
.legal ul { padding-left: 20px; margin: 0 0 16px; display: grid; gap: 6px; }
.legal a:not(.btn) { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.legal__back { margin-left: auto; font-size: 14px; color: var(--text-2); transition: color .2s; }
.legal__back:hover { color: var(--accent); }
.footer--legal { padding-top: 8px; }
.footer--legal .footer__bottom { margin-top: 0; border-top: 0; }

@media (max-width: 640px) {
  /* pinned sections scroll for less on phones */
  .process--scroll, .usecases--scroll { height: 190vh; }
  /* comfortable tap targets in the footer */
  .footer__links { gap: 0 4px; }
  .footer__links a { padding: 11px 10px; margin-left: -10px; }
  .footer__email { display: inline-block; padding: 10px 0; }
  .console__status { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
  .uc__flow span, .uc__flow b { opacity: 1; animation: none; }
  .cap__icon svg * { stroke-dashoffset: 0; }
}
