/* =========================================================
   CLAi — landing
   Palette from Brand Guidelines 3.1
   ========================================================= */
:root {
  --light: #86dfff;
  --sky: #4e86ff;
  --blue: #2146d9;
  --royal: #003cb3;
  --navy: #0a1440;
  --ink: #040716;

  --bg: #ffffff;
  --bg-soft: #f4f6fb;
  --line: rgba(10, 20, 64, 0.08);
  --line-strong: rgba(10, 20, 64, 0.16);
  --text: #0a1440;
  --muted: #5b6487;

  --font: "Satoshi", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1440px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --nav-h: 72px;
  --bar-h: 40px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body.is-loading { overflow: hidden; }
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: var(--blue); color: #fff; }

.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); position: relative; }
.muted { color: var(--muted); }

/* ---------- Background grid lines ---------- */
.grid-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  display: grid; grid-template-columns: repeat(4, 1fr);
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter);
}
.grid-bg i { border-left: 1px solid var(--line); }
.grid-bg i:last-child { border-right: 1px solid var(--line); position: absolute; right: var(--gutter); top: 0; bottom: 0; border-left: 0; }

/* ---------- 3D stage ---------- */
.stage { position: fixed; inset: 0; z-index: 5; pointer-events: none; }
.stage canvas { width: 100%; height: 100%; display: block; }
.stage__glow {
  position: absolute; width: 46vmin; height: 46vmin; border-radius: 50%;
  left: 0; top: 0; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(78,134,255,.35), rgba(134,223,255,.12) 45%, transparent 70%);
  filter: blur(20px); opacity: 0; will-change: transform, opacity;
}

/* ---------- Preloader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100; background: #fff;
  display: grid; place-items: center;
}
.loader__inner { width: min(320px, 70vw); display: grid; gap: 18px; justify-items: center; }
.loader__icon { width: 72px; height: 55px; color: var(--blue); animation: blink 2.4s infinite; }
.loader__bar { width: 100%; height: 2px; background: var(--line); overflow: hidden; }
.loader__bar span { display: block; height: 100%; width: 100%; background: var(--blue); transform-origin: left; transform: scaleX(0); }
.loader__meta { width: 100%; display: flex; justify-content: space-between; color: var(--muted); }
.loader__count { color: var(--blue); }
.loader__wipe { position: absolute; inset: 0; background: var(--blue); transform: scaleY(0); transform-origin: bottom; }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.9); } }

/* ---------- Announcement bar ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 41; height: var(--bar-h); overflow: hidden;
  background: linear-gradient(90deg, var(--navy), var(--blue) 50%, var(--navy)); color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: transform .5s var(--ease);
}
body.bar-off .topbar { transform: translateY(-100%); }
.topbar__track { display: flex; width: max-content; }
.topbar__msg { margin: 0; display: flex; align-items: center; gap: 10px; white-space: nowrap; font-size: 14px; padding: 0 24px; }
.topbar__msg b { font-weight: 500; font-size: 11px; color: var(--light); border: 1px solid rgba(134,223,255,.45); border-radius: 5px; padding: 3px 7px; }
.topbar__msg span { color: rgba(255,255,255,.92); }
.topbar__msg i { font-style: normal; color: var(--light); font-weight: 700; margin: 0 6px; }
.topbar__msg--dup { display: none; }
@media (max-width: 1000px) {
  .topbar { justify-content: flex-start; }
  .topbar__msg--dup { display: flex; }
  .topbar__track { animation: marquee 26s linear infinite; }
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: var(--bar-h); left: 0; right: 0; z-index: 40; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--gutter);
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--line);
  transition: transform .5s var(--ease), top .5s var(--ease);
}
body.bar-off .nav { top: 0; }
.nav.is-hidden { transform: translateY(-100%); }
.nav__logo { display: flex; align-items: center; gap: 12px; color: var(--blue); }
.nav__icon { width: 34px; height: 26px; color: var(--blue); }
.nav__word { width: 66px; height: 25px; color: var(--navy); }
.nav__word .atom, .atom { fill: var(--sky); }
.nav__links { display: flex; gap: 4px; }
.nav__links a {
  padding: 8px 12px; border-radius: 6px; color: var(--muted); position: relative;
  transition: color .3s, background .3s;
}
.nav__links a::before { content: "•"; margin-right: 6px; color: var(--line-strong); transition: color .3s; }
.nav__links a:hover, .nav__links a.is-active { color: var(--navy); background: var(--bg-soft); }
.nav__links a:hover::before, .nav__links a.is-active::before { color: var(--blue); }

/* ---------- Buttons ---------- */
.btn {
  --h: 52px;
  display: inline-flex; align-items: center; gap: 14px; height: var(--h);
  padding: 0 10px 0 22px; border-radius: 10px; border: 1px solid transparent;
  font-family: var(--mono); font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
  position: relative; overflow: hidden; isolation: isolate; white-space: nowrap;
  transition: color .35s var(--ease), border-color .35s, box-shadow .35s;
}
.btn > span { position: relative; z-index: 1; }
.btn__arrow {
  font-style: normal; width: calc(var(--h) - 16px); height: calc(var(--h) - 16px); border-radius: 7px;
  display: grid; place-items: center; position: relative; z-index: 1; font-size: 15px;
  transition: transform .45s var(--ease), background .35s;
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: 0; border-radius: inherit;
  transform: translateY(101%); transition: transform .5s var(--ease);
}
.btn:hover::after { transform: translateY(0); }
.btn:hover .btn__arrow { transform: rotate(45deg); }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 10px 30px -10px rgba(33,70,217,.55); }
.btn--primary .btn__arrow { background: rgba(255,255,255,.16); }
.btn--primary::after { background: var(--navy); }
.btn--ghost { background: rgba(255,255,255,.7); color: var(--navy); border-color: var(--line-strong); backdrop-filter: blur(6px); }
.btn--ghost .btn__arrow { background: var(--bg-soft); }
.btn--ghost::after { background: var(--navy); }
.btn--ghost:hover { color: #fff; border-color: var(--navy); }
.btn--ghost:hover .btn__arrow { background: rgba(255,255,255,.14); }
.btn--sm { --h: 42px; font-size: 12px; padding-left: 16px; }
.btn--lg { --h: 60px; padding-left: 28px; font-size: 14px; }
.btn--block { width: 100%; justify-content: space-between; }
.btn:focus-visible, a:focus-visible, input:focus-visible + .choice__box { outline: 2px solid var(--sky); outline-offset: 3px; }

/* ---------- Side rail ---------- */
.rail {
  position: fixed; right: 18px; top: 50%; transform: translateY(-50%); z-index: 30;
  display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 10px;
}
.rail__label { writing-mode: vertical-rl; transform: rotate(180deg); color: var(--blue); min-height: 80px; text-align: center; }
.rail__dots { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rail__dots li { width: 4px; height: 4px; border-radius: 50%; background: var(--line-strong); transition: transform .4s var(--ease), background .4s; }
.rail__dots li.is-active { background: var(--blue); transform: scale(2); }

/* ---------- Typo ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--blue); margin: 0 0 28px; padding: 8px 14px; border: 1px solid rgba(33,70,217,.2); border-radius: 100px; background: rgba(255,255,255,.7); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 0 rgba(33,70,217,.6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(33,70,217,0); } 100% { box-shadow: 0 0 0 0 rgba(33,70,217,0); } }

.tag { display: inline-flex; align-items: center; gap: 12px; color: var(--blue); margin: 0 0 28px; }
.tag span { display: inline-grid; place-items: center; min-width: 34px; height: 26px; padding: 0 8px; border: 1px solid currentColor; border-radius: 6px; font-size: 11px; }
.tag--light { color: var(--light); }

.h2 { font-size: clamp(32px, 4.4vw, 64px); line-height: 1.04; letter-spacing: -.03em; font-weight: 500; margin: 0 0 28px; max-width: 16ch; }
.body { color: var(--muted); font-size: clamp(16px, 1.2vw, 19px); max-width: 46ch; margin: 0 0 28px; }
.body em { color: var(--navy); font-style: normal; font-weight: 500; }

/* split lines */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split .w > span { display: inline-block; will-change: transform; }

/* ---------- HERO ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--bar-h) + var(--nav-h) + 40px) 0 120px; overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 70% at 72% 50%, #ffffff 0%, #eef1f7 45%, transparent 75%),
    linear-gradient(180deg, #ffffff 0%, #f1f3f8 70%, #ffffff 100%);
}
.hero__wrap { z-index: 2; }
.hero__title {
  font-size: clamp(38px, 5.4vw, 86px); line-height: 1.0; letter-spacing: -.035em; font-weight: 500;
  margin: 0 0 32px; max-width: 13.5ch;
}
.hero__lead { font-size: clamp(17px, 1.35vw, 21px); color: var(--muted); max-width: 44ch; margin: 0 0 40px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__foot {
  position: absolute; left: 0; right: 0; bottom: 32px; display: flex; gap: 22px; color: var(--muted); font-size: 11px; flex-wrap: wrap;
}
.hero__scroll { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; color: var(--blue); }
.hero__scroll i { width: 1px; height: 28px; background: var(--line-strong); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--blue); animation: drip 1.8s var(--ease) infinite; }
@keyframes drip { to { top: 100%; } }

.hud { position: absolute; width: 22px; height: 22px; border-color: var(--blue); border-style: solid; opacity: .5; }
.hud--tl { top: calc(var(--nav-h) + 24px); right: calc(var(--gutter) + 46%); border-width: 1px 0 0 1px; display: none; }
.hud--br { bottom: 90px; right: calc(var(--gutter) + 8px); border-width: 0 1px 1px 0; }

/* ---------- Marquee ---------- */
.marquee { position: relative; z-index: 6; overflow: hidden; background: var(--blue); color: #fff; padding: 18px 0; transform: rotate(-1.2deg) scale(1.02); }
.marquee__track { display: flex; gap: 34px; width: max-content; animation: marquee 30s linear infinite; font-size: clamp(14px, 1.4vw, 18px); }
.marquee b { color: var(--light); font-weight: 400; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- PROBLEM ---------- */
.problem { position: relative; overflow-x: clip; }
.problem__pin { min-height: 100svh; display: flex; align-items: center; padding: calc(var(--nav-h) + 40px) 0 60px; }
.problem__wrap { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.problem__answer { font-size: clamp(24px, 2.4vw, 36px); line-height: 1.15; letter-spacing: -.02em; font-weight: 500; margin: 8px 0 0; }
.problem__answer-inner {
  background: linear-gradient(90deg, var(--blue), var(--sky)); -webkit-background-clip: text; background-clip: text; color: transparent;
  background-size: 200% 100%; display: inline;
}

.graph { position: relative; width: 100%; aspect-ratio: 600 / 560; max-width: 620px; justify-self: end; }
.graph__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.graph__chaos path { fill: none; stroke: #c3c9dc; stroke-width: 1.5; stroke-dasharray: 4 7; }
.graph__clean path { fill: none; stroke: var(--blue); stroke-width: 2; }
.pulse { fill: var(--sky); opacity: 0; filter: drop-shadow(0 0 6px var(--sky)); }

.node { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 8px; text-align: center; z-index: 2; }
.node__tile {
  width: clamp(64px, 7vw, 92px); aspect-ratio: 1; border-radius: 18px; display: grid; place-items: center;
  background: #fff; border: 1px solid var(--line-strong);
  box-shadow: 0 1px 0 #fff inset, 0 18px 40px -18px rgba(10,20,64,.25);
  position: relative;
}
.node__tile::before, .node__tile::after { content: ""; position: absolute; width: 8px; height: 8px; border-color: var(--blue); border-style: solid; opacity: .6; }
.node__tile::before { top: -5px; left: -5px; border-width: 1px 0 0 1px; }
.node__tile::after { bottom: -5px; right: -5px; border-width: 0 1px 1px 0; }
.node__tile svg { width: 42%; height: 42%; fill: none; stroke: var(--navy); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.node > span { color: var(--navy); font-size: 11px; }
.node small { color: var(--muted); font-size: 13px; margin-top: -6px; }
.node__tile--hub { width: clamp(84px, 9vw, 120px); border-radius: 24px; background: var(--blue); border-color: var(--blue); box-shadow: 0 24px 60px -18px rgba(33,70,217,.7), 0 0 0 10px rgba(78,134,255,.1); }
.node__tile--hub svg { width: 56%; height: 56%; color: #fff; stroke: none; }

.chip {
  position: absolute; left: var(--x); top: var(--y); transform: rotate(var(--r)); z-index: 3;
  padding: 8px 12px; border-radius: 8px; font-size: 13px; white-space: nowrap;
  background: #fff; border: 1px solid var(--line-strong); color: var(--muted);
  box-shadow: 0 10px 24px -14px rgba(10,20,64,.35);
}
.chip.mono { font-size: 10px; }
.chip--fax { background: #fffdf3; border-color: #ece3c2; color: #7a6a2b; }
.chip--q { border-radius: 14px 14px 14px 4px; color: var(--navy); }
.chip--sheet { background: #f2fbf5; border-color: #cfe8d7; color: #2d6a43; }

/* ---------- PLATFORM ---------- */
.platform { position: relative; padding-top: clamp(80px, 12vw, 160px); }
.platform__head { margin-bottom: 40px; }
.platform__head .h2 { max-width: 22ch; }

.product { min-height: 100svh; display: flex; align-items: center; padding: 80px 0; position: relative; }
.product__grid { display: grid; grid-template-columns: minmax(0, 4.2fr) minmax(0, 3.6fr) minmax(0, 4.2fr); gap: 32px; align-items: center; }
.product__copy { grid-column: 1; }
.product__list { grid-column: 3; }
.product__num { color: var(--blue); margin: 0 0 18px; display: inline-flex; padding: 6px 10px; border: 1px solid rgba(33,70,217,.3); border-radius: 6px; }
.product__name { font-size: clamp(40px, 4.6vw, 72px); line-height: 1; letter-spacing: -.035em; font-weight: 400; margin: 0 0 12px; color: var(--navy); }
.product__name b { font-weight: 700; color: var(--blue); }
.product__kicker { color: var(--muted); margin: 0 0 24px; }

.product__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.product__list li {
  display: block; padding: 16px 4px 16px 44px;
  border-bottom: 1px solid var(--line-strong); font-size: 15px; line-height: 1.45; color: var(--navy);
  position: relative; transition: padding .4s var(--ease), color .3s;
}
.product__list li::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.product__list li:hover { padding-left: 52px; }
.product__list li:hover::after { transform: scaleX(1); }
.product__list li > span { color: var(--blue); font-size: 11px; position: absolute; left: 0; top: 19px; transition: left .4s var(--ease); }
.product__list li:hover > span { left: 8px; }
.product__list li b { font-weight: 700; }
.product__list li.is-strong { color: var(--blue); font-weight: 700; }

/* mock UI */
.mock {
  background: rgba(255,255,255,.85); backdrop-filter: blur(10px);
  border: 1px solid var(--line-strong); border-radius: 14px; padding: 14px; max-width: 420px;
  box-shadow: 0 30px 60px -30px rgba(10,20,64,.3);
}
.mock__head { display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; padding: 2px 4px 12px; border-bottom: 1px dashed var(--line-strong); margin-bottom: 8px; }
.live { color: var(--blue); display: inline-flex; align-items: center; gap: 6px; }
.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); animation: ping 2s infinite; }
.mock__log, .mock__chron, .mock__ledger { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.mock__log li, .mock__chron li { display: flex; align-items: center; gap: 10px; padding: 8px 6px; border-radius: 8px; font-size: 13.5px; color: var(--navy); }
.mock__log li:nth-child(odd), .mock__chron li:nth-child(odd) { background: var(--bg-soft); }
.mock__log em, .mock__chron em { margin-left: auto; font-style: normal; font-size: 9.5px; color: var(--blue); background: rgba(33,70,217,.08); padding: 4px 7px; border-radius: 5px; }
.ic { width: 24px; height: 24px; border-radius: 6px; flex: none; background: var(--blue) center/14px no-repeat; }
.ic--call { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M5 4h4l2 5-2.5 1.5a11 11 0 0 0 5 5L15 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2'/%3E%3C/svg%3E"); }
.ic--fax { background-color: var(--sky); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M6 9V3h12v6M6 18H4V9h16v9h-2M6 14h12v7H6z'/%3E%3C/svg%3E"); }
.ic--sms { background-color: var(--navy); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M4 5h16v11H9l-5 4z'/%3E%3C/svg%3E"); }
.ic--sign { background-color: #19b37a; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M3 17c3-6 5-6 6-3s3 3 5-1 4-2 7 1M3 21h18'/%3E%3C/svg%3E"); }
.mock__kv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mock__kv div { background: var(--bg-soft); border-radius: 10px; padding: 12px; display: grid; gap: 6px; }
.mock__kv small { font-size: 9px; color: var(--muted); }
.mock__kv b { font-size: 14px; font-weight: 700; color: var(--navy); }
.pill { justify-self: start; color: var(--blue) !important; background: rgba(33,70,217,.1); padding: 2px 8px; border-radius: 100px; }
.mock__timeline { list-style: none; margin: 0; padding: 4px 4px 4px 22px; display: grid; gap: 14px; position: relative; }
.mock__timeline::before { content: ""; position: absolute; left: 8px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--blue), var(--light)); border-radius: 2px; }
.mock__timeline li { display: flex; justify-content: space-between; font-size: 14px; position: relative; }
.mock__timeline li::before { content: ""; position: absolute; left: -19px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: #fff; border: 2px solid var(--blue); }
.mock__timeline span { color: var(--muted); font-size: 13px; }
.mock__ledger li { display: flex; align-items: center; gap: 12px; padding: 10px 8px; font-size: 11px; color: var(--navy); }
.mock__ledger i { flex: 1; height: 6px; border-radius: 6px; background: var(--bg-soft); position: relative; overflow: hidden; }
.mock__ledger i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--blue), var(--sky)); transform-origin: left; transform: scaleX(var(--p, .8)); }
.mock__ledger li:nth-child(2) i::after { --p: .35; background: var(--light); }
.mock__ledger li:nth-child(3) i::after { --p: .6; }
.mock__ledger b { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 6px; background: rgba(33,70,217,.1); color: var(--blue); }
.mock__chron span { width: 42px; color: var(--muted); font-size: 9.5px; }
.mock__approve { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; padding: 10px; border-radius: 10px; background: var(--navy); color: rgba(255,255,255,.7); font-size: 10px; }
.mock__approve b { background: var(--blue); color: #fff; padding: 6px 10px; border-radius: 6px; font-weight: 500; }

/* ---------- WHY ---------- */
.why { padding: clamp(100px, 14vw, 180px) 0; position: relative; }
.why__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; max-width: 60%; border-top: 1px solid var(--line-strong); border-left: 1px solid var(--line-strong); }
.card {
  position: relative; padding: clamp(24px, 2.6vw, 40px); min-height: 260px; display: flex; flex-direction: column;
  border-right: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); background: rgba(255,255,255,.75);
  overflow: hidden; transition: background .5s var(--ease), color .5s;
}
.card::before { content: ""; position: absolute; inset: 0; background: var(--blue); transform: translateY(100%); transition: transform .6s var(--ease); z-index: 0; }
.card > * { position: relative; z-index: 1; }
.card:hover::before { transform: translateY(0); }
.card:hover, .card:hover h4, .card:hover p, .card:hover .card__n { color: #fff; }
.card:hover .card__ic { background: rgba(255,255,255,.15); border-color: transparent; }
.card:hover .card__ic svg { stroke: #fff; }
.card__n { color: var(--blue); position: absolute !important; top: 20px; right: 20px; font-size: 11px; }
.card__ic { width: 48px; height: 48px; border-radius: 12px; border: 1px solid var(--line-strong); display: grid; place-items: center; margin-bottom: auto; background: var(--bg-soft); transition: background .4s; }
.card__ic svg { width: 22px; height: 22px; fill: none; stroke: var(--blue); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.card h4 { font-size: clamp(22px, 1.9vw, 28px); letter-spacing: -.02em; margin: 40px 0 8px; font-weight: 700; color: var(--navy); transition: color .4s; }
.card p { margin: 0; color: var(--muted); transition: color .4s; }

/* ---------- SECURITY ---------- */
.security {
  position: relative; padding: clamp(110px, 14vw, 200px) 0; color: #fff; overflow: hidden;
  background:
    radial-gradient(60% 80% at 20% 50%, rgba(78,134,255,.35), transparent 70%),
    linear-gradient(160deg, var(--blue) 0%, #1736b8 45%, var(--navy) 100%);
  border-radius: clamp(20px, 3vw, 40px); margin: 0 clamp(8px, 1.4vw, 20px);
}
.security::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(80% 80% at 50% 50%, #000, transparent); }
.security__grid { display: grid; grid-template-columns: 5fr 6fr; gap: 48px; align-items: center; }
.security__copy .h2 { color: #fff; max-width: 18ch; }
.security__visual { min-height: 420px; position: relative; }
.shield { position: absolute; left: 50%; top: 50%; width: 1px; height: 1px; }
.shield__ring { position: absolute; left: 50%; top: 50%; border: 1px solid rgba(134,223,255,.35); border-radius: 50%; transform: translate(-50%, -50%); }
.shield__ring.r1 { width: 300px; height: 300px; }
.shield__ring.r2 { width: 440px; height: 440px; border-style: dashed; animation: spin 40s linear infinite; }
.shield__ring.r3 { width: 580px; height: 580px; opacity: .5; }
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.sec-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255,255,255,.2); }
.sec-list li { display: grid; grid-template-columns: 70px 1fr; gap: 16px; padding: 22px 0; border-bottom: 1px solid rgba(255,255,255,.2); align-items: baseline; }
.sec-list span { color: var(--light); font-size: 11px; border: 1px solid rgba(134,223,255,.4); border-radius: 6px; padding: 4px 8px; text-align: center; }
.sec-list b { font-weight: 500; font-size: clamp(17px, 1.4vw, 21px); line-height: 1.4; }

/* ---------- HOW ---------- */
.how { padding: clamp(100px, 14vw, 180px) 0; position: relative; }
.how .h2 { max-width: 14ch; }
.steps { list-style: none; margin: 56px 0 0; padding: 0; max-width: 58%; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; left: 39px; top: 40px; bottom: 40px; width: 1px; background: var(--line-strong); }
.steps .progress { position: absolute; left: 39px; top: 40px; width: 1px; height: calc(100% - 80px); background: var(--blue); transform-origin: top; transform: scaleY(0); }
.step { display: grid; grid-template-columns: 80px 1fr; gap: 28px; padding: 28px 0; align-items: start; position: relative; }
.step__n {
  width: 80px; height: 80px; border-radius: 20px; display: grid; place-items: center; position: relative; z-index: 1;
  background: #fff; border: 1px solid var(--line-strong); font-family: var(--mono); font-size: 20px; color: var(--blue);
  transition: background .5s, color .5s, border-color .5s, box-shadow .5s;
}
.step.is-on .step__n { background: var(--blue); color: #fff; border-color: var(--blue); box-shadow: 0 18px 40px -14px rgba(33,70,217,.6); }
.step h4 { font-size: clamp(26px, 2.6vw, 40px); letter-spacing: -.03em; margin: 6px 0 8px; font-weight: 700; }
.step p { margin: 0; color: var(--muted); font-size: clamp(16px, 1.25vw, 19px); max-width: 40ch; }

/* ---------- CTA ---------- */
.cta { min-height: 100svh; position: relative; display: flex; align-items: flex-end; padding: 0 0 clamp(56px, 7vw, 100px); overflow: hidden; }
.cta__bg { position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 60% at 50% 34%, #ffffff 0%, #eceff6 55%, #ffffff 100%); }
.cta__wrap { text-align: center; display: grid; justify-items: center; }
.cta__title { font-size: clamp(38px, 5vw, 80px); line-height: .98; letter-spacing: -.04em; font-weight: 500; margin: 0 0 40px; max-width: 14ch; }

/* ---------- Footer ---------- */
.footer { position: relative; z-index: 6; border-top: 1px solid var(--line); background: #fff; padding: 28px 0; }
.footer__wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; color: var(--muted); }
.footer__wrap p { margin: 0; font-size: 11px; }
.footer__logo { display: flex; align-items: center; gap: 12px; }

/* ---------- MODAL ---------- */
.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal__scrim { position: absolute; inset: 0; background: rgba(4,7,22,.45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.modal__panel {
  position: relative; width: min(540px, 100%); max-height: calc(100svh - 32px); overflow: auto;
  background: #fff; border-radius: 22px; padding: clamp(24px, 4vw, 40px);
  box-shadow: 0 40px 120px -30px rgba(4,7,22,.5);
  background-image: radial-gradient(80% 50% at 100% 0%, rgba(134,223,255,.25), transparent 60%);
}
.modal__panel::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--blue), var(--sky), var(--light)); border-radius: 22px 22px 0 0; }
.modal__close { position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line-strong); background: #fff; transition: background .3s, transform .4s var(--ease); }
.modal__close:hover { background: var(--bg-soft); transform: rotate(90deg); }
.modal__kind { font-style: normal; }
.modal__title { font-size: clamp(26px, 3vw, 34px); letter-spacing: -.03em; line-height: 1.08; margin: 0 0 8px; font-weight: 700; }
.modal__sub { color: var(--muted); margin: 0 0 24px; }
.field { display: grid; gap: 8px; margin: 0 0 16px; border: 0; padding: 0; }
.field > span, .field legend { color: var(--muted); font-size: 10.5px; padding: 0; margin-bottom: 8px; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"] {
  height: 52px; border-radius: 12px; border: 1px solid var(--line-strong); padding: 0 16px; font: inherit; font-size: 16px; color: var(--navy);
  background: var(--bg-soft); transition: border-color .3s, background .3s, box-shadow .3s; outline: none;
}
.field input:focus { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(78,134,255,.18); }
.field input.is-invalid { border-color: #d93a3a; }
.choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; }
.choice__box {
  display: grid; justify-items: center; gap: 10px; padding: 18px 8px; border-radius: 14px; border: 1px solid var(--line-strong);
  background: #fff; cursor: pointer; transition: border-color .3s, background .3s, transform .3s var(--ease), box-shadow .3s; text-align: center;
}
.choice__box svg { width: 26px; height: 26px; fill: none; stroke: var(--navy); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: stroke .3s; }
.choice__box b { font-weight: 500; font-size: 14px; }
.choice:hover .choice__box { border-color: var(--sky); transform: translateY(-2px); }
.choice input:checked + .choice__box { border-color: var(--blue); background: rgba(33,70,217,.06); box-shadow: 0 0 0 3px rgba(78,134,255,.2); }
.choice input:checked + .choice__box svg { stroke: var(--blue); }
.form__error { color: #d93a3a; min-height: 18px; margin: 4px 0 12px; font-size: 11px; }
.modal__done { text-align: center; padding: 20px 0 4px; display: grid; justify-items: center; gap: 4px; }
.modal__done[hidden] { display: none; }
.modal__done-icon { width: 84px; height: 64px; color: var(--blue); margin-bottom: 16px; }


.codes { display: flex; flex-wrap: wrap; gap: 8px; margin: -8px 0 24px; }
.codes span { font-size: 10.5px; color: var(--blue); background: rgba(33,70,217,.07); border: 1px solid rgba(33,70,217,.2); border-radius: 6px; padding: 6px 10px; }

/* ---------- Demo form v2 ---------- */
.modal__panel { width: min(620px, 100%); }
.modal__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 0 48px 20px 0; }
.modal__top .tag { margin: 0; }
.steps-ind { display: flex; align-items: center; gap: 10px; font-size: 10px; color: var(--muted); }
.steps-ind i { width: 28px; height: 1px; background: var(--line-strong); }
.steps-ind__i.is-on { color: var(--blue); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field b, .consent b { color: var(--blue); font-weight: 500; }
.field select, .field textarea {
  border-radius: 12px; border: 1px solid var(--line-strong); padding: 0 16px; font: inherit; font-size: 16px; color: var(--navy);
  background: var(--bg-soft); transition: border-color .3s, background .3s, box-shadow .3s; outline: none; width: 100%;
}
.field select { height: 52px; appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232146d9' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; }
.field textarea { padding: 14px 16px; resize: vertical; min-height: 88px; line-height: 1.45; }
.field input, .field select, .field textarea { min-width: 0; }
.field select:focus, .field textarea:focus { border-color: var(--blue); background-color: #fff; box-shadow: 0 0 0 4px rgba(78,134,255,.18); }
.field select.is-invalid, .field textarea.is-invalid, .choices.is-invalid .choice__box { border-color: #d93a3a; }
.chips-in { display: flex; flex-wrap: wrap; gap: 8px; }
.cbx { position: relative; }
.cbx input { position: absolute; opacity: 0; inset: 0; }
.cbx span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 100px; border: 1px solid var(--line-strong); font-size: 14px; cursor: pointer; background: #fff; transition: border-color .3s, background .3s, color .3s; }
.cbx span::before { content: ""; width: 14px; height: 14px; border-radius: 4px; border: 1px solid var(--line-strong); transition: background .3s, border-color .3s; background: center/10px no-repeat; }
.cbx:hover span { border-color: var(--sky); }
.cbx input:checked + span { border-color: var(--blue); background: rgba(33,70,217,.06); color: var(--blue); }
.cbx input:checked + span::before { background-color: var(--blue); border-color: var(--blue); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E"); }
.cbx input:focus-visible + span { outline: 2px solid var(--sky); outline-offset: 2px; }
.consent { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; font-size: 13.5px; color: var(--muted); margin: 6px 0 4px; cursor: pointer; }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--blue); }
.consent.is-invalid span { color: #d93a3a; }
.fstep__nav { display: flex; gap: 10px; }
.fstep__nav .btn--primary { flex: 1; justify-content: space-between; }
.fstep__nav .btn--ghost { padding: 0 18px 0 8px; }
@media (max-width: 560px) {
  .row2 { grid-template-columns: 1fr; gap: 0; }
  .modal__top { margin-right: 44px; }
  .steps-ind i { width: 14px; }
}

/* ---------- Reveal defaults (JS overrides) ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav__links { display: none; }
  .why__grid, .steps { max-width: 100%; }
}
@media (max-width: 900px) {
  .hero { justify-content: flex-start; padding-top: calc(42svh + var(--bar-h)); padding-bottom: 80px; }
  .hero__title { font-size: clamp(32px, 8.4vw, 56px); margin-bottom: 20px; }
  .eyebrow { margin-bottom: 18px; }
  .node__tile { width: 54px; border-radius: 14px; }
  .node__tile--hub { width: 66px; border-radius: 18px; }
  .chip--q:nth-of-type(n) { max-width: 46vw; white-space: normal; }
  .hero__foot span:not(.hero__scroll) { display: none; }
  .hud--br { display: none; }
  .problem__wrap, .security__grid { grid-template-columns: 1fr; }
  .graph { justify-self: center; }
  .product { min-height: auto; padding: 60px 0; }
  .product__grid { grid-template-columns: 1fr; }
  .product__copy, .product__list { grid-column: 1; }
  .security__visual { display: none; }
  .why__grid { grid-template-columns: 1fr; }
  .rail { display: none; }
  .cta { min-height: 80svh; }
  .grid-bg { grid-template-columns: repeat(2, 1fr); }
  .grid-bg i:nth-child(n+3):not(:last-child) { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .nav .btn > span { display: none; }
  .nav .btn--sm { padding-left: 6px; }
  .choices { grid-template-columns: 1fr; }
  .choice__box { grid-template-columns: 26px 1fr; justify-items: start; padding: 14px 16px; }
  .chip { font-size: 11px; padding: 6px 9px; }
  .chip.mono { font-size: 9px; }
  .node small { display: none; }
  .mock__kv { grid-template-columns: 1fr; }
  .hero__ctas .btn { flex: 1 1 100%; justify-content: space-between; }
  .step { grid-template-columns: 56px 1fr; gap: 18px; }
  .step__n { width: 56px; height: 56px; border-radius: 14px; font-size: 16px; }
  .steps::before, .steps .progress { left: 27px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
