:root {
  --paper: #f4f3ef;
  --paper-2: #ebe9e3;
  --card: #fbfaf7;
  --ink: #0c0d10;
  --ink-2: #16181d;
  --text: #0c0d10;
  --muted: #5b5e66;
  --dim: #8b8d93;
  --line: rgba(12, 13, 16, 0.1);
  --line-2: rgba(12, 13, 16, 0.18);
  --cobalt: #2340ff;
  --cobalt-2: #4a62ff;
  --cobalt-soft: rgba(35, 64, 255, 0.08);
  --live: #12a150;
  --wip: #e8a10c;
  --plan: #a3a5ab;
  --sans: "Inter Tight", "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;
  --gutter: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
svg { display: block; }
::selection { background: var(--cobalt); color: #fff; }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; border-radius: 4px; }
em { font-style: normal; color: var(--cobalt); }

.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- status bar ---------- */
.statusbar {
  position: relative;
  z-index: 60;
  background: var(--ink);
  color: #d9dae0;
  font-family: var(--mono);
  font-size: 12px;
}
.statusbar__inner { display: flex; align-items: center; gap: 14px; min-height: 38px; }
.statusbar__dot {
  position: relative;
  flex-shrink: 0;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--wip);
}
.statusbar__dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid var(--wip);
  border-radius: 50%;
  animation: ping 2.2s var(--ease) infinite;
}
@keyframes ping { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.7); opacity: 0; } }
.statusbar__text b { font-weight: 500; color: #fff; }
.statusbar__ver { margin-left: auto; color: #8d8f98; }
.statusbar__link { color: #fff; border-bottom: 1px solid rgba(255, 255, 255, 0.3); transition: border-color .2s; }
.statusbar__link:hover { border-color: #fff; }

/* ---------- buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 24px;
  border: 0;
  border-radius: 10px;
  font: 500 15px/1 var(--sans);
  letter-spacing: -0.01em;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: transform .4s var(--ease), color .3s, background .3s, border-color .3s, box-shadow .3s;
}
.btn::before {
  /* fill wipe on hover */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: translateY(101%);
  transition: transform .45s var(--ease);
}
.btn:hover::before { transform: none; }
.btn__arrow { display: inline-block; transition: transform .4s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn--cobalt { background: var(--cobalt); color: #fff; box-shadow: 0 10px 30px -12px rgba(35, 64, 255, 0.7); }
.btn--cobalt::before { background: var(--ink); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink::before { background: var(--cobalt); }
.btn--line { border: 1px solid var(--line-2); background: transparent; color: var(--ink); }
.btn--line::before { background: var(--ink); }
.btn--line:hover { color: #fff; border-color: var(--ink); }
.btn--line-inv { border: 1px solid rgba(255, 255, 255, 0.25); background: transparent; color: #fff; }
.btn--line-inv::before { background: #fff; }
.btn--line-inv:hover { color: var(--ink); }
.btn--line-inv.is-copied { border-color: var(--live); }
.btn--sm { padding: 11px 16px; font-size: 14px; border-radius: 8px; }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 243, 239, 0.78);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.nav.is-scrolled { border-color: var(--line); }
.nav__inner { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.brand__mark { width: 30px; height: 30px; color: var(--ink); transition: transform .5s var(--ease); }
.brand:hover .brand__mark { transform: rotate(-6deg) scale(1.05); }
.brand__name { font-size: 18px; font-weight: 400; letter-spacing: -0.03em; }
.brand__name b { font-weight: 700; }
.brand__sub {
  padding: 3px 7px;
  border: 1px solid var(--line-2);
  border-radius: 5px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.nav__links { display: flex; gap: 4px; margin-left: auto; }
.nav__links a {
  position: relative;
  padding: 8px 12px;
  font-size: 14px;
  color: var(--muted);
  transition: color .2s;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: 2px;
  height: 1.5px;
  background: var(--cobalt);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.nav__links a:hover, .nav__links a.is-active { color: var(--ink); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: none; }

.burger {
  display: none;
  position: relative;
  width: 44px; height: 44px;
  margin-left: auto;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}
.burger span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--ink); transition: transform .4s var(--ease), top .4s var(--ease); }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.nav.is-open .burger span:first-child { top: 21px; transform: rotate(45deg); }
.nav.is-open .burger span:last-child { top: 21px; transform: rotate(-45deg); }
.mobile-menu {
  display: none;
  flex-direction: column;
  padding-bottom: 18px;
}
.mobile-menu a:not(.btn) { padding: 14px 0; font-size: 20px; letter-spacing: -0.02em; border-bottom: 1px solid var(--line); }
.mobile-menu .btn { margin-top: 16px; }
.nav.is-open .mobile-menu { display: flex; }

/* ---------- hero ---------- */
.hero { padding: clamp(48px, 8vw, 96px) 0 0; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--card);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}
.tag i { width: 6px; height: 6px; border-radius: 50%; background: var(--cobalt); }
.tag--ghost { background: transparent; }
.hero__title {
  margin-top: 32px;
  font-size: clamp(44px, 9vw, 136px);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.055em;
}
.ln { display: block; overflow: hidden; padding-bottom: 0.06em; }
.ln > span { display: inline-block; transform: translateY(105%); transition: transform 1.2s var(--ease); }
.ln:nth-child(2) > span { transition-delay: .12s; }
.is-ready .ln > span { transform: none; }
.rise { opacity: 0; transform: translateY(20px); transition: opacity 1s var(--ease) .35s, transform 1s var(--ease) .35s; }
.is-ready .rise { opacity: 1; transform: none; }
.hero__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px 48px;
  margin-top: 40px;
}
.hero__lead { max-width: 560px; font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); line-height: 1.55; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* scan field */
.scan {
  position: relative;
  height: clamp(320px, 42vw, 520px);
  margin-top: clamp(40px, 6vw, 72px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, var(--paper) 0, transparent 6%, transparent 94%, var(--paper) 100%),
    var(--paper);
  cursor: crosshair;
  overflow: hidden;
}
#scan { position: absolute; inset: 0; width: 100%; height: 100%; }
.scan__hud {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  pointer-events: none;
}
.scan__hud b { font-weight: 500; color: var(--ink); }
.scan__hud--tl { top: 18px; left: var(--gutter); }
.scan__hud--tr { top: 18px; right: var(--gutter); }
.scan__hud--bl { bottom: 18px; left: var(--gutter); }
.scan__hud--br { bottom: 18px; right: var(--gutter); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cobalt); }
.dot--live { animation: blink 1.2s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0.2; } }
@media (pointer: coarse) { .scan__hud--br { display: none; } }

/* ---------- sections ---------- */
.section { padding: clamp(88px, 11vw, 150px) 0; }
.head { margin-bottom: clamp(44px, 6vw, 72px); }
.head--split { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 64px; }
.head__aside { max-width: 400px; color: var(--muted); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow span {
  display: inline-grid;
  place-items: center;
  height: 22px;
  min-width: 30px;
  padding: 0 7px;
  border-radius: 5px;
  background: var(--ink);
  color: #fff;
  letter-spacing: 0;
}
.eyebrow--inv { color: #a6a8b0; }
.eyebrow--inv span { background: var(--cobalt); }
.h2 {
  margin-top: 20px;
  font-size: clamp(34px, 5.4vw, 76px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.05em;
}

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform 1.1s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- capabilities ---------- */
.caps { list-style: none; border-top: 1px solid var(--ink); }
.cap {
  position: relative;
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) 48px;
  align-items: start;
  gap: 24px;
  padding: 40px 0;
  border-bottom: 1px solid var(--line-2);
  isolation: isolate;
}
.cap::before {
  /* cobalt sweep on hover */
  content: "";
  position: absolute;
  inset: 0 calc(var(--gutter) * -1);
  z-index: -1;
  background: var(--card);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .6s var(--ease);
}
.cap:hover::before { transform: none; }
.cap__num { font-family: var(--mono); font-size: 13px; color: var(--cobalt); padding-top: 12px; }
.cap h3 { font-size: clamp(28px, 3.6vw, 48px); font-weight: 600; letter-spacing: -0.045em; line-height: 1.05; transition: color .3s; }
.cap:hover h3 { color: var(--cobalt); }
.cap p { max-width: 640px; margin-top: 14px; color: var(--muted); font-size: 17px; }
.cap__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; list-style: none; }
.cap__tags li {
  padding: 5px 10px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  background: var(--paper);
}
.cap__arrow {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  margin-top: 4px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  font-size: 18px;
  transition: background .35s, color .35s, transform .5s var(--ease), border-color .35s;
}
.cap:hover .cap__arrow { background: var(--cobalt); border-color: var(--cobalt); color: #fff; transform: rotate(45deg); }

/* ---------- principles (dark band) ---------- */
.section--ink { background: var(--ink); color: #f1f1f3; --paper: var(--ink); }
.section--ink .head__aside { color: #a6a8b0; }
.section--ink em { color: var(--cobalt-2); }
.principles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.pr {
  padding: 36px 28px 8px 0;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  transition: opacity .9s var(--ease), transform 1.1s var(--ease);
}
.pr + .pr { padding-left: 28px; }
.pr:last-child { border-right: 0; }
.pr__icon {
  width: 44px; height: 44px;
  fill: none; stroke: #f1f1f3; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
  transition: transform .6s var(--ease);
}
.pr__icon .c { stroke: var(--cobalt-2); stroke-width: 2; }
.pr:hover .pr__icon { transform: translateY(-4px); }
.pr h3 { margin-top: 48px; font-size: 22px; font-weight: 600; letter-spacing: -0.035em; }
.pr p { margin-top: 10px; color: #a6a8b0; font-size: 15px; }

/* ---------- engagement models ---------- */
.models { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.model {
  display: flex;
  flex-direction: column;
  padding: 32px;
  border: 1px solid var(--line-2);
  border-radius: 18px;
  background: var(--card);
  transition: transform .6s var(--ease), border-color .3s, box-shadow .4s, opacity .9s var(--ease);
}
.model:hover { transform: translateY(-6px); border-color: var(--ink); box-shadow: 0 24px 50px -30px rgba(12, 13, 16, 0.35); }
.model--feat { background: var(--cobalt); color: #fff; border-color: var(--cobalt); }
.model--feat:hover { border-color: var(--cobalt); box-shadow: 0 24px 50px -24px rgba(35, 64, 255, 0.6); }
.model__kicker { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cobalt); }
.model--feat .model__kicker { color: rgba(255, 255, 255, 0.75); }
.model h3 { margin-top: 36px; font-size: 32px; font-weight: 600; letter-spacing: -0.045em; line-height: 1.05; }
.model__desc { margin-top: 12px; color: var(--muted); }
.model--feat .model__desc { color: rgba(255, 255, 255, 0.78); }
.model ul { list-style: none; display: grid; gap: 10px; margin: 28px 0 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.model--feat ul { border-color: rgba(255, 255, 255, 0.2); }
.model li { position: relative; padding-left: 24px; font-size: 15px; }
.model li::before { content: "✓"; position: absolute; left: 0; font-family: var(--mono); font-size: 13px; color: var(--cobalt); }
.model--feat li::before { color: #fff; }
.model__best { margin-top: auto; font-family: var(--mono); font-size: 11px; color: var(--dim); letter-spacing: 0.02em; }
.model--feat .model__best { color: rgba(255, 255, 255, 0.7); }

/* ---------- roadmap ---------- */
.section--grid {
  background-color: var(--paper-2);
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: -1px -1px;
}
.roadmap { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 24px; align-items: start; }
.rm-board {
  position: sticky;
  top: 100px;
  padding: 28px;
  border-radius: 18px;
  background: var(--ink);
  color: #fff;
}
.rm-board__head { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: #a6a8b0; }
.rm-board__pct { font-family: var(--sans); font-size: 64px; font-weight: 600; letter-spacing: -0.05em; color: #fff; text-transform: none; }
.rm-board__pct b { font-weight: 600; font-variant-numeric: tabular-nums; }
.rm-board__bar { height: 6px; margin-top: 18px; border-radius: 6px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.rm-board__bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: repeating-linear-gradient(-45deg, var(--cobalt) 0 8px, var(--cobalt-2) 8px 16px);
  background-size: 22px 22px;
  animation: stripes 1s linear infinite;
  transition: width 1.8s var(--ease);
}
@keyframes stripes { to { background-position: 22px 0; } }
.rm-legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 22px; list-style: none; font-size: 13px; color: #c9cad0; }
.rm-legend li { display: inline-flex; align-items: center; gap: 8px; }
.st { flex-shrink: 0; width: 10px; height: 10px; border-radius: 3px; }
.st--live { background: var(--live); }
.st--wip { background: var(--wip); animation: blink 1.4s steps(1) infinite; }
.st--plan { background: transparent; border: 1.5px dashed var(--plan); }

.rm-list { list-style: none; display: grid; gap: 10px; }
.rm {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  align-items: start;
  gap: 18px;
  padding: 22px 24px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: var(--card);
  transition: transform .5s var(--ease), border-color .3s, opacity .9s var(--ease);
}
.rm:hover { transform: translateX(6px); border-color: var(--ink); }
.rm .st { margin-top: 8px; }
.rm h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.025em; }
.rm p { margin-top: 2px; font-size: 14px; color: var(--muted); }
.rm__state { padding-top: 3px; font-family: var(--mono); font-size: 12px; color: var(--live); white-space: nowrap; }
.rm--wip .rm__state { color: #b07800; }
.rm--plan { background: transparent; border-style: dashed; }
.rm--plan .rm__state { color: var(--dim); }
.rm__bar { display: block; height: 4px; margin-top: 12px; border-radius: 4px; background: var(--paper-2); overflow: hidden; max-width: 360px; }
.rm__bar span { display: block; height: 100%; width: 0; background: var(--wip); border-radius: inherit; transition: width 1.6s var(--ease) .3s; }
.rm.is-visible .rm__bar span { width: calc(var(--p) * 100%); }

.changelog {
  margin-top: 40px;
  padding: 24px 28px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: var(--card);
  font-family: var(--mono);
  font-size: 13px;
}
.changelog__title { margin-bottom: 14px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.changelog ol { list-style: none; display: grid; gap: 8px; }
.changelog li { display: grid; grid-template-columns: 110px 54px 1fr; gap: 12px; color: var(--ink); }
.changelog time { color: var(--dim); }
.changelog li span { color: var(--cobalt); }

/* ---------- contact ---------- */
.contact { padding-top: 40px; }
.contact__card {
  position: relative;
  padding: clamp(32px, 6vw, 80px);
  border-radius: 24px;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.contact__card::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: -10%; top: -40%;
  width: 60%; aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(35, 64, 255, 0.55), transparent 65%);
  filter: blur(40px);
}
.contact__card::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(90deg, transparent 30%, #000);
  -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000);
}
.contact__title { margin-top: 24px; font-size: clamp(30px, 4.4vw, 60px); font-weight: 600; letter-spacing: -0.05em; line-height: 1.02; }
.contact__mail {
  display: inline-block;
  margin-top: 36px;
  font-size: clamp(18px, 2.8vw, 36px);
  font-weight: 500;
  letter-spacing: -0.035em;
  color: #fff;
  background: linear-gradient(var(--cobalt-2), var(--cobalt-2)) 0 100% / 0 2px no-repeat;
  padding-bottom: 6px;
  transition: background-size .6s var(--ease);
  word-break: break-all;
}
.contact__mail:hover { background-size: 100% 2px; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.contact__meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.contact__meta dt { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: #8d8f98; }
.contact__meta dd { margin-top: 6px; color: #e9e9ee; }

/* ---------- footer ---------- */
.footer { position: relative; margin-top: clamp(60px, 9vw, 120px); padding-top: 56px; border-top: 1px solid var(--ink); overflow: hidden; }
.footer__top { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 32px; }
.footer__brand p { margin-top: 16px; max-width: 300px; font-size: 14px; color: var(--muted); }
.footer__col { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer__col h4 { margin-bottom: 6px; font-family: var(--mono); font-size: 11px; font-weight: 400; text-transform: uppercase; letter-spacing: 0.1em; color: var(--dim); }
.footer__col a, .footer__col address { width: fit-content; color: var(--muted); font-style: normal; transition: color .2s; }
.footer__col a:hover { color: var(--cobalt); }
.footer__legal { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line-2); font-size: 13px; color: var(--muted); }
.footer__legal p:first-child { max-width: 820px; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin: 18px 0 24px; color: var(--dim); }
.to-top { color: var(--ink); }
.to-top:hover { color: var(--cobalt); }
.footer__word {
  font-size: clamp(72px, 19vw, 290px);
  font-weight: 700;
  line-height: 0.78;
  letter-spacing: -0.07em;
  text-align: center;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(12, 13, 16, 0.16);
  user-select: none;
  margin-bottom: -0.1em;
}

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .principles { grid-template-columns: repeat(2, 1fr); }
  .pr:nth-child(2) { border-right: 0; }
  .pr:nth-child(3) { padding-left: 0; }
  .pr:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, 0.1); }
  .footer__top { grid-template-columns: repeat(3, 1fr); }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .burger { display: block; }
  .cap { grid-template-columns: 48px minmax(0, 1fr); }
  .cap__arrow { display: none; }
  .models { grid-template-columns: 1fr; }
  .roadmap { grid-template-columns: 1fr; }
  .rm-board { position: static; }
  .contact__meta { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 600px) {
  .hide-sm { display: none; }
  .statusbar__ver { display: none; }
  .statusbar__link { margin-left: auto; }
  .brand__sub { display: none; }
  .principles { grid-template-columns: 1fr; }
  .pr, .pr + .pr { padding: 28px 0 24px; border-right: 0; border-top: 1px solid rgba(255, 255, 255, 0.1); }
  .pr:first-child { border-top: 0; }
  .pr h3 { margin-top: 24px; }
  .rm { grid-template-columns: 10px minmax(0, 1fr); }
  .rm__state { grid-column: 2; padding-top: 0; }
  .changelog li { grid-template-columns: 1fr; gap: 0; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
  .changelog li:last-child { border-bottom: 0; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .hero__actions .btn { flex: 1 1 100%; }
  .scan__hud--tr { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .rise { opacity: 1; transform: none; }
  .ln > span { transform: none; }
}

/* ---------- legal pages ---------- */
.legal-hero { padding: clamp(56px, 8vw, 96px) 0 48px; border-bottom: 1px solid var(--line); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; color: var(--dim); }
.crumbs a { color: var(--muted); transition: color .2s; }
.crumbs a:hover { color: var(--cobalt); }
.crumbs b { font-weight: 400; color: var(--ink); }
.legal-hero h1 { margin-top: 24px; font-size: clamp(40px, 6.4vw, 96px); font-weight: 600; line-height: 0.98; letter-spacing: -0.055em; }
.legal-hero p { margin-top: 18px; max-width: 620px; font-size: 18px; color: var(--muted); }
.doc-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.doc-meta span { padding: 6px 11px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--card); font-family: var(--mono); font-size: 12px; color: var(--muted); }
.legal-tabs {
  display: flex;
  gap: 4px;
  width: max-content;
  max-width: 100%;
  margin-top: 32px;
  padding: 4px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--card);
  overflow-x: auto;
  scrollbar-width: none;
}
.legal-tabs::-webkit-scrollbar { display: none; }
.legal-tabs a { padding: 9px 14px; border-radius: 7px; font-size: 14px; color: var(--muted); white-space: nowrap; transition: color .2s, background .2s; }
.legal-tabs a:hover { color: var(--ink); background: var(--paper-2); }
.legal-tabs a[aria-current="page"] { background: var(--ink); color: #fff; }

.doc-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); padding-top: 48px; }
.doc-toc {
  position: sticky;
  top: 96px;
  align-self: start;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  scrollbar-width: thin;
}
.doc-toc__label { padding-bottom: 12px; border-bottom: 1px solid var(--ink); font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); }
.doc-toc ol { list-style: none; }
.doc-toc a {
  display: flex;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.35;
  color: var(--muted);
  transition: color .2s, padding .3s var(--ease);
}
.doc-toc a span { font-family: var(--mono); font-size: 11px; color: var(--dim); padding-top: 2px; }
.doc-toc a:hover { color: var(--ink); }
.doc-toc a.is-active { color: var(--cobalt); padding-left: 8px; }
.doc-toc a.is-active span { color: var(--cobalt); }

.doc-body { min-width: 0; max-width: 800px; }
.summary { padding: 26px 28px; border-radius: 16px; background: var(--ink); color: #fff; }
.summary__label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cobalt-2); }
.summary ul { list-style: none; display: grid; gap: 10px; margin-top: 14px; }
.summary li { position: relative; padding-left: 26px; color: #ececf0; }
.summary li::before { content: "✓"; position: absolute; left: 0; font-family: var(--mono); font-size: 13px; color: var(--cobalt-2); }
.summary__note { margin-top: 16px; font-size: 13px; color: #8d8f98; }
.summary a { color: #fff; border-bottom: 1px solid rgba(255, 255, 255, 0.35); }

.doc-sec { padding: 44px 0; border-bottom: 1px solid var(--line-2); scroll-margin-top: 96px; }
.doc-sec h2 { display: flex; align-items: baseline; gap: 14px; margin-bottom: 18px; font-size: clamp(22px, 2.4vw, 28px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.2; }
.doc-sec__num { font-family: var(--mono); font-size: 13px; font-weight: 400; color: var(--cobalt); letter-spacing: 0; }
.doc { color: #33363d; font-size: 16px; line-height: 1.75; }
.doc > * + * { margin-top: 14px; }
.doc strong { color: var(--ink); font-weight: 600; }
.doc a { color: var(--cobalt); border-bottom: 1px solid rgba(35, 64, 255, 0.3); transition: border-color .2s; }
.doc a:hover { border-color: var(--cobalt); }
.doc ul, .doc ol { list-style: none; display: grid; gap: 8px; }
.doc ul li { position: relative; padding-left: 22px; }
.doc ul li::before { content: ""; position: absolute; left: 3px; top: 0.7em; width: 6px; height: 6px; background: var(--cobalt); }
.doc ol { counter-reset: n; }
.doc ol li { position: relative; padding-left: 36px; counter-increment: n; }
.doc ol li::before { content: counter(n, decimal-leading-zero); position: absolute; left: 0; top: 0.2em; font-family: var(--mono); font-size: 12px; color: var(--cobalt); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line-2); border-radius: 12px; background: var(--card); }
.doc table { width: 100%; min-width: 580px; border-collapse: collapse; font-size: 14px; line-height: 1.55; }
.doc th { padding: 12px 16px; text-align: left; font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); background: var(--paper-2); border-bottom: 1px solid var(--line-2); }
.doc td { padding: 14px 16px; vertical-align: top; border-bottom: 1px solid var(--line); }
.doc tr:last-child td { border-bottom: 0; }
.doc td:first-child { color: var(--ink); font-weight: 500; }

.details { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--line-2); overflow: hidden; }
.details div { padding: 18px 22px; background: var(--card); }
.details .details__wide { grid-column: 1 / -1; }
.details--single { grid-template-columns: 1fr; }
.details dt { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--dim); }
.details dd { margin-top: 6px; color: var(--ink); line-height: 1.5; }
.details a { color: var(--cobalt); border-bottom: 1px solid rgba(35, 64, 255, 0.3); }

.doc-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 40px; }
.doc-pager a { display: flex; flex-direction: column; gap: 6px; padding: 22px 24px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--card); font-size: 18px; font-weight: 600; letter-spacing: -0.025em; transition: border-color .3s, background .3s, color .3s; }
.doc-pager a span { font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: 0; color: var(--dim); }
.doc-pager a:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.doc-pager__next { text-align: right; }

.legal-hub { padding-top: 48px; }
.legal-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; border: 1px solid var(--line-2); border-radius: 16px; background: var(--line-2); overflow: hidden; }
.legal-card { display: flex; flex-direction: column; min-height: 280px; padding: 26px; background: var(--card); transition: background .35s, color .35s; }
.legal-card:hover { background: var(--ink); color: #fff; }
.legal-card__num { font-family: var(--mono); font-size: 12px; color: var(--cobalt); }
.legal-card h2 { margin-top: 48px; font-size: 24px; font-weight: 600; letter-spacing: -0.04em; line-height: 1.1; }
.legal-card p { margin-top: 10px; font-size: 14px; color: var(--muted); transition: color .35s; }
.legal-card:hover p { color: #a6a8b0; }
.legal-card__meta { display: flex; justify-content: space-between; margin-top: auto; padding-top: 22px; font-family: var(--mono); font-size: 11px; color: var(--dim); }
.legal-card__meta b { font-weight: 400; color: var(--cobalt); transition: transform .35s var(--ease); }
.legal-card:hover .legal-card__meta b { transform: translateX(4px); color: #fff; }
.hub-facts { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(28px, 5vw, 72px); margin-top: 80px; }
.hub-facts__head h2 { margin-top: 20px; font-size: clamp(24px, 2.8vw, 36px); font-weight: 600; letter-spacing: -0.045em; line-height: 1.05; }
.hub-facts__head p:last-child { margin-top: 14px; max-width: 380px; color: var(--muted); }

@media (max-width: 1024px) { .legal-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) {
  .doc-layout { grid-template-columns: 1fr; padding-top: 32px; }
  .doc-toc { position: static; max-height: 260px; padding: 18px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--card); }
  .hub-facts { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .legal-cards, .doc-pager, .details { grid-template-columns: 1fr; }
  .doc-pager__next { text-align: left; }
  .summary { padding: 22px; }
}
