/* ==========================================================================
   FALL SAFE — Design System 2026
   Rewritten front-end. Structure + content preserved from the original site.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --font-display: "Sora", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --c-orange: #ff5a1f;
  --c-orange-2: #ff8a3d;
  --c-blue: #1e7bff;
  --c-blue-2: #4fb0ff;
  --c-teal: #00c2a8;
  --c-lime: #c9f24d;

  --accent: var(--c-orange);
  --accent-ink: #ffffff;

  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 36px;
  --r-pill: 999px;

  --sh-sm: 0 1px 2px rgba(8, 12, 20, .05), 0 4px 14px rgba(8, 12, 20, .05);
  --sh-md: 0 2px 6px rgba(8, 12, 20, .05), 0 18px 40px -12px rgba(8, 12, 20, .16);
  --sh-lg: 0 30px 70px -20px rgba(8, 12, 20, .28);
  --sh-glow: 0 18px 50px -14px rgba(255, 90, 31, .45);

  --ease: cubic-bezier(.22, .9, .24, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --container: 1240px;
  --gutter: clamp(20px, 5vw, 56px);
  --sec-y: clamp(72px, 9vw, 132px);
  --nav-h: 74px;
}

/* Light theme (default) */
:root,
[data-theme="light"] {
  --bg: #f4f5f7;
  --bg-2: #ffffff;
  --bg-3: #eceef1;
  --surface: rgba(255, 255, 255, .78);
  --surface-solid: #ffffff;
  --text: #090d14;
  --text-2: #3c4553;
  --muted: #66707f;
  --border: rgba(9, 13, 20, .09);
  --border-strong: rgba(9, 13, 20, .16);
  --grid-line: rgba(9, 13, 20, .055);
  --hero-veil: rgba(9, 13, 20, .52);
  --ink: #080b11;
  --ink-2: #12161e;
  --ink-text: #eef2f8;
  --ink-muted: #98a3b3;
  --ink-border: rgba(255, 255, 255, .11);
}

/* Dark theme */
[data-theme="dark"] {
  --bg: #070a0f;
  --bg-2: #0c1017;
  --bg-3: #12171f;
  --surface: rgba(255, 255, 255, .04);
  --surface-solid: #11161e;
  --text: #eef2f8;
  --text-2: #c3cbd7;
  --muted: #8f9aa9;
  --border: rgba(255, 255, 255, .1);
  --border-strong: rgba(255, 255, 255, .2);
  --grid-line: rgba(255, 255, 255, .05);
  --hero-veil: rgba(0, 0, 0, .58);
  --ink: #04060a;
  --ink-2: #0a0e14;
  --ink-text: #eef2f8;
  --ink-muted: #939eae;
  --ink-border: rgba(255, 255, 255, .11);
  --sh-sm: 0 1px 2px rgba(0, 0, 0, .4), 0 4px 14px rgba(0, 0, 0, .3);
  --sh-md: 0 2px 6px rgba(0, 0, 0, .4), 0 18px 40px -12px rgba(0, 0, 0, .6);
  --sh-lg: 0 30px 70px -20px rgba(0, 0, 0, .8);
}

* { box-sizing: border-box; }
*::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 20px);
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color .5s var(--ease), color .5s var(--ease);
}

body.is-locked { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }

::selection { background: var(--accent); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -.03em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.55rem, 6.4vw, 5.1rem); }
h2 { font-size: clamp(1.95rem, 4.2vw, 3.3rem); }
h3 { font-size: clamp(1.25rem, 2.1vw, 1.6rem); letter-spacing: -.02em; }
h4 { font-size: 1.06rem; letter-spacing: -.01em; }

.lead {
  font-size: clamp(1.02rem, 1.35vw, 1.22rem);
  line-height: 1.6;
  color: var(--muted);
  max-width: 62ch;
  font-weight: 400;
}
.text-2 { color: var(--text-2); }
.muted { color: var(--muted); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: .7;
}
.eyebrow--plain::before { display: none; }
.sec--ink .eyebrow { color: var(--c-orange-2); }

.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.03em;
  font-weight: 600;
}

.grad-text {
  background: linear-gradient(100deg, var(--c-orange) 0%, var(--c-orange-2) 42%, var(--c-blue-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: 900px; }
.wrap--wide { max-width: 1420px; }

.sec {
  position: relative;
  padding-block: var(--sec-y);
}
/* decorative blobs must never widen the document */
.sec > .aurora, .phero > .aurora { max-width: 100%; }
.sec--tight { padding-block: clamp(48px, 6vw, 84px); }
.sec--flush-top { padding-top: 0; }

.sec--tint { background: var(--bg-3); }
.sec--ink {
  background: var(--ink);
  color: var(--ink-text);
  --text: var(--ink-text);
  --muted: var(--ink-muted);
  --border: var(--ink-border);
  --surface: rgba(255, 255, 255, .045);
  --surface-solid: #11161e;
  --text-2: #c8d1dd;
}
.sec--ink .lead { color: var(--ink-muted); }

.hr {
  height: 1px;
  background: var(--border);
  border: 0;
  margin: 0;
}

/* ---------- Ambient decoration ---------- */
.ambient {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 100% 70% at 50% 0%, #000 25%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 100% 70% at 50% 0%, #000 25%, transparent 78%);
}
.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  opacity: .5;
}
.aurora--a { background: radial-gradient(circle, rgba(255,90,31,.5), transparent 70%); }
.aurora--b { background: radial-gradient(circle, rgba(30,123,255,.42), transparent 70%); }
.aurora--c { background: radial-gradient(circle, rgba(0,194,168,.34), transparent 70%); }
[data-theme="dark"] .aurora { opacity: .34; }

/* ---------- Top progress + nav ---------- */
.progress {
  position: fixed;
  inset: 0 auto auto 0;
  height: 2px;
  width: 0;
  z-index: 200;
  background: linear-gradient(90deg, var(--c-orange), var(--c-orange-2), var(--c-blue-2));
  transition: width .12s linear;
}

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 150;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background-color .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease), backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom-color: var(--border);
  box-shadow: 0 10px 30px -22px rgba(0, 0, 0, .45);
}
.nav__inner {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
}
.nav__brand img { height: 30px; width: auto; }
.nav__brand .mark-light { display: none; }
[data-theme="dark"] .nav__brand .mark-dark { display: none; }
[data-theme="dark"] .nav__brand .mark-light { display: block; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-inline: auto;
}
.nav__link {
  position: relative;
  padding: 9px 14px;
  border-radius: var(--r-pill);
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-2);
  white-space: nowrap;
  transition: color .25s, background-color .25s;
}
.nav__link:hover { color: var(--text); background: color-mix(in srgb, var(--text) 7%, transparent); }
.nav__link[aria-current="page"] { color: var(--text); }
.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  translate: -50% 0;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}
.nav__tools { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }

.icon-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  transition: color .25s, border-color .25s, transform .25s var(--ease), background-color .25s;
}
.icon-btn:hover { color: var(--text); border-color: var(--border-strong); transform: translateY(-1px); }
.icon-btn svg { width: 17px; height: 17px; }
.theme-toggle .moon { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: none; }
[data-theme="dark"] .theme-toggle .moon { display: block; }

/* Nav sitting on top of a dark hero band */
.has-darkhero .nav:not(.is-stuck) { color: #fff; }
.has-darkhero .nav:not(.is-stuck) .nav__link { color: rgba(255, 255, 255, .76); }
.has-darkhero .nav:not(.is-stuck) .nav__link:hover { color: #fff; background: rgba(255, 255, 255, .12); }
.has-darkhero .nav:not(.is-stuck) .nav__link[aria-current="page"] { color: #fff; }
.has-darkhero .nav:not(.is-stuck) .nav__brand .mark-dark { display: none; }
.has-darkhero .nav:not(.is-stuck) .nav__brand .mark-light { display: block; }
.has-darkhero .nav:not(.is-stuck) .icon-btn {
  border-color: rgba(255, 255, 255, .26);
  color: rgba(255, 255, 255, .9);
  background: rgba(255, 255, 255, .1);
  backdrop-filter: blur(8px);
}
.has-darkhero .nav:not(.is-stuck) .icon-btn:hover { color: #fff; border-color: rgba(255, 255, 255, .5); }
.has-darkhero .nav:not(.is-stuck) .burger span { background: #fff; }

.burger { display: none; }
.burger span {
  display: block;
  width: 17px;
  height: 1.6px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .25s;
}
.burger span + span { margin-top: 4.5px; }
.burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 140;
  background: var(--bg);
  padding: calc(var(--nav-h) + 24px) var(--gutter) 40px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity .32s var(--ease), transform .32s var(--ease), visibility .32s;
}
.drawer.is-open { opacity: 1; visibility: visible; transform: none; }
.drawer a {
  padding: 15px 4px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -.02em;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text);
}
.drawer a span { font-family: var(--font-mono); font-size: .72rem; color: var(--muted); }
.drawer .btn { margin-top: 20px; justify-content: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: -.01em;
  white-space: nowrap;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background-color .3s, color .3s, border-color .3s;
  will-change: transform;
}
.btn svg { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn--primary {
  background: linear-gradient(135deg, var(--c-orange), var(--c-orange-2));
  color: #fff;
  box-shadow: var(--sh-glow);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 24px 60px -14px rgba(255, 90, 31, .6); }

.btn--solid { background: var(--text); color: var(--bg); }
.btn--solid:hover { transform: translateY(-2px); box-shadow: var(--sh-md); }

.btn--ghost {
  border: 1px solid var(--border-strong);
  color: var(--text);
  background: color-mix(in srgb, var(--bg-2) 45%, transparent);
}
.btn--ghost:hover { border-color: var(--text); transform: translateY(-2px); }

.sec--ink .btn--ghost { border-color: var(--ink-border); color: var(--ink-text); }
.sec--ink .btn--ghost:hover { border-color: var(--ink-text); }
.sec--ink .btn--solid { background: #fff; color: var(--ink); }

.btn--sm { padding: 10px 18px; font-size: .85rem; }
.btn--lg { padding: 16px 30px; font-size: 1rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: .92rem;
  color: var(--accent);
}
.link-arrow svg { width: 15px; height: 15px; transition: transform .35s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Pills / chips / badges ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: .78rem;
  font-weight: 500;
  color: var(--text-2);
  backdrop-filter: blur(8px);
}
.chip__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-teal);
  box-shadow: 0 0 0 0 rgba(0, 194, 168, .6);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 194, 168, .55); }
  70% { box-shadow: 0 0 0 9px rgba(0, 194, 168, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 194, 168, 0); }
}
.tag {
  display: inline-block;
  padding: 5px 11px;
  border-radius: var(--r-xs);
  background: color-mix(in srgb, var(--accent) 13%, transparent);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.sec--ink .tag { background: rgba(255, 90, 31, .18); color: var(--c-orange-2); }

/* ---------- Cards ---------- */
.card {
  position: relative;
  padding: clamp(22px, 2.6vw, 34px);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--surface-solid);
  overflow: hidden;
  isolation: isolate;
  transition: transform .45s var(--ease), border-color .45s, box-shadow .45s var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  transition: opacity .45s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%);
}
.card:hover { transform: translateY(-5px); border-color: var(--border-strong); box-shadow: var(--sh-md); }
.card:hover::before { opacity: 1; }
.card--pad-lg { padding: clamp(28px, 3.4vw, 46px); }
.card--ink { background: var(--ink); color: var(--ink-text); border-color: var(--ink-border); }
.card--glass {
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.card__icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  margin-bottom: 20px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
}
.card__icon svg { width: 21px; height: 21px; }
.card__icon--blue { background: rgba(30, 123, 255, .12); color: var(--c-blue); }
.card__icon--teal { background: rgba(0, 194, 168, .13); color: #00a48e; }
.card__icon--lime { background: rgba(163, 205, 30, .16); color: #7d9c0d; }
.card h3 + p, .card h4 + p { margin-top: 10px; }
.card p { color: var(--muted); font-size: .95rem; }

/* ---------- Grids ---------- */
.grid { display: grid; gap: clamp(16px, 1.8vw, 24px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--auto { grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); }
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4.5vw, 72px);
  align-items: center;
}
.split--wide-left { grid-template-columns: 1.15fr .85fr; }
.split--wide-right { grid-template-columns: .85fr 1.15fr; }

/* ---------- Section header ---------- */
.sec-head { max-width: 760px; }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head--center .lead { margin-inline: auto; }
.sec-head h2 { margin-top: 18px; }
.sec-head .lead { margin-top: 18px; }
.sec-head--row {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.sec-head--row > div { max-width: 680px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(94vh, 880px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  padding-top: calc(var(--nav-h) + 48px);
  padding-bottom: clamp(40px, 6vw, 76px);
  isolation: isolate;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -3;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 32% 42%;
  transform: scale(1.06);
  animation: heroDrift 26s var(--ease) infinite alternate;
}
@keyframes heroDrift {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to { transform: scale(1.14) translate3d(-1.4%, -1.6%, 0); }
}
.hero__veil {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(4, 6, 10, .74) 0%, rgba(4, 6, 10, .38) 34%, rgba(4, 6, 10, .9) 100%),
    linear-gradient(94deg, rgba(4, 6, 10, .9) 0%, rgba(4, 6, 10, .42) 58%, rgba(4, 6, 10, .16) 100%);
}
.hero__grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .5;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 60% at 20% 40%, #000 10%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 20% 40%, #000 10%, transparent 72%);
}
.hero__inner { position: relative; width: 100%; }
.hero h1 { color: #fff; max-width: 20ch; }
.hero h1 .grad-text {
  background: linear-gradient(100deg, #ffb27a, var(--c-orange) 45%, #ff7a3d);
  -webkit-background-clip: text;
  background-clip: text;
}
.hero__sub {
  margin-top: 24px;
  max-width: 56ch;
  font-size: clamp(1rem, 1.3vw, 1.16rem);
  line-height: 1.68;
  color: rgba(255, 255, 255, .8);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px;
  margin-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid rgba(255, 255, 255, .16);
  padding-top: 28px;
  max-width: 760px;
}
.hero__stats .stat { padding-right: 20px; }
.hero__stats .stat__v {
  font-family: var(--font-mono);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 600;
  letter-spacing: -.04em;
  color: #fff;
  line-height: 1;
}
.hero__stats .stat__l {
  margin-top: 8px;
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .6);
}
.hero__scroll {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(40px, 6vw, 76px);
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
}
.hero__scroll i {
  display: block;
  width: 1px;
  height: 46px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, .5), transparent);
  animation: scrollHint 2.2s var(--ease) infinite;
}
@keyframes scrollHint {
  0% { transform: scaleY(.2); transform-origin: top; opacity: 0; }
  40% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(.2); transform-origin: bottom; opacity: 0; }
}

/* Compact page hero (sub-pages / legal) */
.phero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(48px, 7vw, 86px));
  padding-bottom: clamp(40px, 6vw, 72px);
  background: var(--ink);
  color: var(--ink-text);
  overflow: hidden;
  isolation: isolate;
}
.phero img.phero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .3;
  z-index: -2;
}
.phero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(4, 6, 10, .6), rgba(4, 6, 10, .95));
}
.phero h1 { font-size: clamp(2.1rem, 5vw, 3.9rem); max-width: 22ch; }
.phero .lead { margin-top: 20px; }
.phero--plain::after { background: none; }
.phero--plain { background: var(--bg-3); color: var(--text); }
.phero--plain img.phero__bg { display: none; }

.crumbs {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 20px;
}
.phero--plain .crumbs { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
.crumbs span { opacity: .5; }

/* ---------- Stats ---------- */
.statgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.statgrid__cell {
  padding: clamp(24px, 3vw, 38px);
  background: var(--bg-2);
}
.sec--ink .statgrid__cell { background: var(--ink-2); }
.stat__v {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 600;
  letter-spacing: -.045em;
  line-height: 1;
}
.stat__v em { font-style: normal; color: var(--accent); }
.stat__l {
  margin-top: 14px;
  font-weight: 600;
  font-size: .95rem;
}
.stat__n { margin-top: 6px; font-size: .84rem; color: var(--muted); }
.stat--accent .stat__v { color: var(--accent); }

/* Inline figure with unit */
.figure-inline { display: flex; align-items: baseline; gap: 8px; }

/* ---------- Bars / meters ---------- */
.meter { margin-top: 20px; }
.meter__row { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; font-size: .86rem; }
.meter__row + .meter__row { margin-top: 16px; }
.meter__track {
  margin-top: 9px;
  height: 9px;
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--text) 9%, transparent);
  overflow: hidden;
}
.meter__fill {
  height: 100%;
  width: 0;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--c-orange), var(--c-orange-2));
  transition: width 1.5s var(--ease-out);
}
.meter__fill--blue { background: linear-gradient(90deg, var(--c-blue), var(--c-blue-2)); }
.meter__fill--teal { background: linear-gradient(90deg, #00a48e, var(--c-teal)); }
.meter__fill--grey { background: linear-gradient(90deg, #8b94a3, #b6bec9); }
.meter.is-in .meter__fill { width: var(--w, 0%); }

/* Radial ring */
.ring { position: relative; width: 132px; height: 132px; flex: 0 0 auto; }
.ring svg { transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 9; stroke-linecap: round; }
.ring .track { stroke: color-mix(in srgb, var(--text) 10%, transparent); }
.ring .bar {
  stroke: var(--accent);
  stroke-dasharray: 360;
  stroke-dashoffset: 360;
  transition: stroke-dashoffset 1.7s var(--ease-out);
}
.ring.is-in .bar { stroke-dashoffset: var(--off, 360); }
.ring__val {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -.04em;
}

/* ---------- Comparison ---------- */
.compare__row {
  display: grid;
  grid-template-columns: 132px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.compare__row:last-child { border-bottom: 0; }
.compare__label { font-weight: 600; font-size: .92rem; }
.compare__track { height: 34px; border-radius: var(--r-sm); background: color-mix(in srgb, var(--text) 6%, transparent); overflow: hidden; }
.compare__bar {
  height: 100%;
  width: 0;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  padding-left: 14px;
  font-family: var(--font-mono);
  font-size: .8rem;
  font-weight: 600;
  color: #fff;
  transition: width 1.4s var(--ease-out);
}
.compare__bar--ours { background: linear-gradient(90deg, var(--c-orange), var(--c-orange-2)); }
.compare__bar--theirs { background: linear-gradient(90deg, #8b94a3, #b6bec9); }
.compare__row.is-in .compare__bar { width: var(--w, 0%); }
.compare__delta { font-family: var(--font-mono); font-size: .86rem; font-weight: 600; color: var(--c-teal); white-space: nowrap; }

/* ---------- Tabs ---------- */
.tabs {
  display: inline-flex;
  gap: 4px;
  padding: 5px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  flex-wrap: wrap;
}
.tab {
  padding: 9px 18px;
  border-radius: var(--r-pill);
  font-size: .87rem;
  font-weight: 600;
  color: var(--muted);
  transition: color .25s, background-color .3s var(--ease);
}
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { background: var(--text); color: var(--bg); }
.panel[hidden] { display: none; }
.panel { animation: fadeUp .5s var(--ease) both; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(9px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Product viewer ---------- */
.viewer {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: clamp(20px, 3vw, 44px);
  align-items: center;
}
.viewer__stage {
  position: relative;
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  background:
    radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 68%),
    var(--bg-2);
  padding: clamp(20px, 3vw, 42px);
  min-height: 380px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.viewer__stage img {
  position: absolute;
  inset: 0;
  margin: auto;
  max-height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  opacity: 0;
  scale: .97;
  transition: opacity .5s var(--ease), scale .6s var(--ease);
}
.viewer__stage img.is-active { opacity: 1; scale: 1; }
.viewer__code {
  position: absolute;
  left: 18px;
  bottom: 16px;
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.viewer__panel { display: flex; flex-direction: column; gap: 14px; }
.seg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 6px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface);
}
.seg button {
  padding: 11px 6px;
  border-radius: var(--r-sm);
  font-size: .82rem;
  font-weight: 600;
  color: var(--muted);
  transition: color .25s, background-color .3s var(--ease);
}
.seg button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.seg--2 { grid-template-columns: repeat(2, 1fr); }

.switch {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface-solid);
}
.switch__label { font-size: .88rem; font-weight: 600; }
.switch__sub { font-size: .76rem; color: var(--muted); }
.toggle {
  position: relative;
  width: 52px;
  height: 29px;
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--text) 14%, transparent);
  flex: 0 0 auto;
  margin-left: auto;
  transition: background-color .35s var(--ease);
}
.toggle::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .3);
  transition: translate .35s var(--ease);
}
.toggle[aria-pressed="true"] { background: var(--accent); }
.toggle[aria-pressed="true"]::after { translate: 23px 0; }

/* ---------- Accordion ---------- */
.acc { border-top: 1px solid var(--border); }
.acc__item { border-bottom: 1px solid var(--border); }
.acc__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 22px 2px;
  text-align: left;
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.6vw, 1.16rem);
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--text);
}
.acc__btn i {
  position: relative;
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
}
.acc__btn i::before, .acc__btn i::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto 0;
  height: 1.6px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .35s var(--ease), opacity .3s;
}
.acc__btn i::after { transform: rotate(90deg); }
.acc__item.is-open .acc__btn i::after { transform: rotate(0); opacity: 0; }
.acc__item.is-open .acc__btn { color: var(--accent); }
.acc__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .42s var(--ease);
}
.acc__item.is-open .acc__body { grid-template-rows: 1fr; }
.acc__body > div { overflow: hidden; }
.acc__body p { padding: 0 2px 24px; color: var(--muted); max-width: 76ch; font-size: .95rem; }
.acc__num { font-family: var(--font-mono); font-size: .72rem; color: var(--muted); margin-right: 14px; }

/* ---------- Timeline / steps ---------- */
.steps { position: relative; }
.steps__line {
  position: absolute;
  left: 0; right: 0; top: 26px;
  height: 1px;
  background: var(--border);
}
.steps__line span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--c-orange), var(--c-blue-2));
  transition: width 1.8s var(--ease-out);
}
.steps.is-in .steps__line span { width: 100%; }
.steps__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 26px;
}
.step { position: relative; padding-top: 66px; }
.step__dot {
  position: absolute;
  top: 14px;
  left: 0;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--bg);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: .66rem;
  font-weight: 600;
  transition: background-color .4s, color .4s, border-color .4s;
}
.sec--ink .step__dot { background: var(--ink); }
.steps.is-in .step__dot { background: var(--accent); border-color: var(--accent); color: #fff; }
.step h4 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .92rem; }

/* ---------- Numbered feature list ---------- */
.nlist { display: grid; gap: 2px; }
.nlist__item {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 18px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  transition: padding-inline .35s var(--ease), background-color .35s;
}
.nlist__item:hover { padding-inline: 12px; background: color-mix(in srgb, var(--text) 2.5%, transparent); }
.nlist__n {
  font-family: var(--font-mono);
  font-size: .8rem;
  font-weight: 600;
  color: var(--accent);
  padding-top: 3px;
}
.nlist__item p { color: var(--muted); font-size: .94rem; margin-top: 7px; }

/* ---------- Marquee ---------- */
.marquee {
  position: relative;
  overflow: hidden;
  display: flex;
  gap: 0;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: clamp(34px, 5vw, 68px);
  padding-right: clamp(34px, 5vw, 68px);
  flex: 0 0 auto;
  animation: marquee 34s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }
.marquee__item {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.marquee__item b { color: var(--text); font-weight: 600; }
.marquee__item svg { width: 16px; height: 16px; opacity: .75; }
.marquee img { height: 26px; width: auto; opacity: .75; }

/* ---------- Coverage diagram ---------- */
.coverage { position: relative; }
.coverage__figure { position: relative; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border); }
.coverage__list { display: grid; gap: 10px; }
.cov-item {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 13px 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface-solid);
  transition: border-color .3s, transform .3s var(--ease);
}
.cov-item:hover { border-color: var(--accent); transform: translateX(4px); }
.cov-item__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  margin-top: 8px;
  flex: 0 0 auto;
}
.cov-item b { font-size: .92rem; font-weight: 600; }
.cov-item span { display: block; font-size: .84rem; color: var(--muted); margin-top: 3px; }

/* ---------- Simulator ---------- */
.sim {
  position: relative;
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  background: var(--bg-2);
  overflow: hidden;
  isolation: isolate;
}
.sim__stage {
  position: relative;
  display: grid;
  place-items: center;
  padding: clamp(24px, 4vw, 48px);
  min-height: 420px;
  background:
    radial-gradient(90% 70% at 50% 110%, color-mix(in srgb, var(--c-blue) 12%, transparent), transparent 70%),
    var(--bg-3);
}
.sim__stage img { max-height: 340px; width: auto; transition: opacity .45s var(--ease); }
.sim__stage img.sim__img-deploy {
  position: absolute;
  inset: 0;
  margin: auto;
  opacity: 0;
  scale: .94;
  transition: opacity .5s var(--ease), scale .6s var(--ease);
}
.sim__stage.is-fired img.sim__img-deploy { opacity: 1; scale: 1; }
.sim__stage.is-fired img.sim__img-store { opacity: .12; }
.shock {
  position: absolute;
  left: 50%; top: 52%;
  width: 40px; height: 40px;
  margin: -20px 0 0 -20px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  opacity: 0;
  pointer-events: none;
}
.sim__stage.is-fired .shock { animation: shockOut .9s var(--ease-out) 2; }
@keyframes shockOut {
  from { opacity: .75; transform: scale(.5); }
  to { opacity: 0; transform: scale(9); }
}
.sim__hud {
  position: absolute;
  left: 18px; top: 16px;
  display: flex; flex-direction: column; gap: 6px;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.sim__hud b { color: var(--accent); }
.sim__readout {
  position: absolute;
  right: 18px; top: 16px;
  text-align: right;
  font-family: var(--font-mono);
}
.sim__readout .v { font-size: 1.5rem; font-weight: 600; letter-spacing: -.04em; color: var(--accent); }
.sim__readout .l { font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.sim__bar {
  height: 4px;
  background: color-mix(in srgb, var(--text) 8%, transparent);
}
.sim__bar span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--c-teal), var(--c-orange));
  transition: width .5s linear;
}
.sim__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px clamp(20px, 3vw, 30px);
  flex-wrap: wrap;
}

/* ---------- Marquee style image band ---------- */
.band {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  min-height: clamp(300px, 42vw, 480px);
  display: grid;
  place-items: center;
  isolation: isolate;
  color: #fff;
  text-align: center;
}
.band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.band::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(4, 6, 10, .5), rgba(4, 6, 10, .85));
}
.band__inner { padding: clamp(28px, 5vw, 60px); max-width: 720px; }
.band h2 { color: #fff; }

/* ---------- Comparison table ---------- */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--bg-2); }
table.tbl { width: 100%; border-collapse: collapse; min-width: 540px; }
table.tbl th, table.tbl td {
  padding: 15px 20px;
  text-align: left;
  font-size: .92rem;
  border-bottom: 1px solid var(--border);
}
table.tbl th {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  background: color-mix(in srgb, var(--text) 3%, transparent);
}
table.tbl td:first-child { color: var(--muted); }
table.tbl td:last-child { font-family: var(--font-mono); font-weight: 600; }
table.tbl tr:last-child td { border-bottom: 0; }
table.tbl tbody tr { transition: background-color .25s; }
table.tbl tbody tr:hover { background: color-mix(in srgb, var(--accent) 5%, transparent); }

/* ---------- Feature tick list ---------- */
.ticks { display: grid; gap: 12px; }
.ticks li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 13px;
  align-items: start;
  font-size: .95rem;
  color: var(--text-2);
}
.ticks svg { width: 18px; height: 18px; color: var(--accent); margin-top: 3px; }
.sec--ink .ticks li { color: var(--ink-muted); }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.gallery figure {
  margin: 0;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-2);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.gallery figure:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.gallery img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; }
.gallery figcaption { padding: 13px 16px; font-size: .84rem; color: var(--muted); border-top: 1px solid var(--border); }

/* ---------- Quote ---------- */
.quote {
  position: relative;
  padding-left: clamp(24px, 3vw, 40px);
  border-left: 2px solid var(--accent);
}
.quote p {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -.02em;
  color: var(--text);
}
.quote cite {
  display: block;
  margin-top: 16px;
  font-style: normal;
  font-size: .84rem;
  color: var(--muted);
  font-family: var(--font-mono);
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* ---------- CTA band ---------- */
.cta {
  position: relative;
  border-radius: var(--r-xl);
  padding: clamp(34px, 5.5vw, 76px);
  background: linear-gradient(120deg, #0a0e15 0%, #121b28 52%, #1b1410 100%);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.cta .aurora { opacity: .42; }
.cta__grid {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(28px, 4vw, 56px);
  flex-wrap: wrap;
}
.cta__grid > div:first-child { flex: 1 1 30ch; }
.cta__grid > div:last-child { flex: 0 0 auto; }
.cta h2 { color: #fff; max-width: 22ch; }
.cta p { color: rgba(255, 255, 255, .72); margin-top: 16px; max-width: 52ch; }

/* ---------- Footer ---------- */
.foot {
  background: var(--ink);
  color: var(--ink-text);
  padding-top: clamp(56px, 7vw, 92px);
  padding-bottom: 34px;
  --border: var(--ink-border);
  --muted: var(--ink-muted);
}
.foot a { color: var(--ink-muted); transition: color .25s; }
.foot a:hover { color: #fff; }
.foot__top {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, minmax(120px, 1fr));
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: clamp(36px, 5vw, 60px);
  border-bottom: 1px solid var(--ink-border);
}
.foot__brand img { height: 30px; width: auto; }
.foot__brand p { margin-top: 18px; max-width: 34ch; font-size: .9rem; color: var(--ink-muted); }
.foot__contact { margin-top: 22px; display: grid; gap: 8px; font-size: .9rem; }
.foot__contact span { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-muted); }
.foot__contact svg { width: 15px; height: 15px; margin-top: 4px; flex: 0 0 auto; opacity: .7; }
.foot h4 {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .45);
  font-weight: 500;
  margin-bottom: 18px;
}
.foot__links { display: grid; gap: 11px; font-size: .92rem; }
.foot__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 26px;
  flex-wrap: wrap;
  font-size: .82rem;
  color: var(--ink-muted);
}
.foot__legal { display: flex; gap: 22px; flex-wrap: wrap; }
.foot__status { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }

/* ---------- Search overlay ---------- */
.search {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: start center;
  padding: 12vh 20px 20px;
  background: color-mix(in srgb, var(--ink) 72%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s;
}
.search.is-open { opacity: 1; visibility: visible; }
.search__box {
  width: min(620px, 100%);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--bg-2);
  box-shadow: var(--sh-lg);
  overflow: hidden;
  transform: translateY(-14px) scale(.98);
  transition: transform .35s var(--ease);
}
.search.is-open .search__box { transform: none; }
.search__field {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}
.search__field svg { width: 18px; height: 18px; color: var(--muted); flex: 0 0 auto; }
.search__field input {
  width: 100%;
  border: 0;
  background: none;
  font-size: 1rem;
  color: var(--text);
  outline: none;
}
.search__hint { font-family: var(--font-mono); font-size: .68rem; color: var(--muted); border: 1px solid var(--border); padding: 3px 7px; border-radius: 6px; }
.search__results { max-height: min(52vh, 420px); overflow-y: auto; padding: 8px; }
.search__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 14px;
  border-radius: var(--r-sm);
  transition: background-color .2s;
}
.search__item:hover, .search__item.is-active { background: color-mix(in srgb, var(--accent) 9%, transparent); }
.search__item b { font-weight: 600; font-size: .94rem; display: block; }
.search__item span { font-size: .78rem; color: var(--muted); }
.search__item small { font-family: var(--font-mono); font-size: .68rem; color: var(--accent); letter-spacing: .08em; text-transform: uppercase; }
.search__empty { padding: 26px 20px; text-align: center; color: var(--muted); font-size: .9rem; }

/* ---------- To top ---------- */
.totop {
  position: fixed;
  right: clamp(16px, 3vw, 30px);
  bottom: clamp(16px, 3vw, 30px);
  z-index: 120;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: var(--r-pill);
  background: var(--text);
  color: var(--bg);
  box-shadow: var(--sh-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
}
.totop.is-on { opacity: 1; visibility: visible; transform: none; }
.totop:hover { transform: translateY(-3px); }
.totop svg { width: 17px; height: 17px; }

/* ---------- Reveal animations ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform;
}
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal="left"] { transform: translateX(-30px); }
[data-reveal="right"] { transform: translateX(30px); }
[data-reveal="zoom"] { transform: scale(.95); }
[data-reveal].is-in { transform: none; }

/* Hero entrance */
.hero [data-seq] {
  opacity: 0;
  transform: translateY(30px);
  animation: heroIn .95s var(--ease-out) forwards;
  animation-delay: var(--d, 0ms);
}
@keyframes heroIn { to { opacity: 1; transform: none; } }

/* ---------- Misc ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-s { margin-top: 14px; }
.mt-m { margin-top: 28px; }
.mt-l { margin-top: 44px; }
.mt-xl { margin-top: 64px; }
.mb-xl { margin-bottom: 64px; }
.mb-l { margin-bottom: 44px; }
.flex { display: flex; }
.wrapflex { flex-wrap: wrap; }
.gap-s { gap: 10px; }
.gap-m { gap: 18px; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.nowrap { white-space: nowrap; }

.note {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  border-radius: var(--r-md);
  border: 1px solid color-mix(in srgb, var(--c-orange) 30%, transparent);
  background: color-mix(in srgb, var(--c-orange) 7%, transparent);
  font-size: .92rem;
}
.note svg { width: 18px; height: 18px; color: var(--accent); flex: 0 0 auto; margin-top: 3px; }
.note b { display: block; margin-bottom: 4px; }
.note p { color: var(--text-2); font-size: .92rem; }

.prose { max-width: 78ch; }
.prose h3 { margin-top: 44px; margin-bottom: 14px; font-size: 1.22rem; }
.prose h3:first-child { margin-top: 0; }
.prose p { color: var(--muted); margin-top: 12px; }
.prose ul { margin-top: 16px; display: grid; gap: 10px; }
.prose ul li {
  position: relative;
  padding-left: 20px;
  color: var(--muted);
  font-size: .95rem;
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 4px; top: .62em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
.prose strong { color: var(--text); font-weight: 600; }
.prose h4 {
  margin-top: 30px;
  margin-bottom: 10px;
  font-size: 1rem;
  font-family: var(--font-ui);
  font-weight: 600;
  color: var(--text);
}
.prose h4:first-child { margin-top: 0; }
.prose code {
  font-family: var(--font-mono);
  font-size: .86em;
  padding: 2px 7px;
  border-radius: var(--r-xs);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
  white-space: nowrap;
}
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--text); }

.toc {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  align-self: start;
  display: grid;
  gap: 3px;
  font-size: .87rem;
}
.toc a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--r-xs);
  color: var(--muted);
  border-left: 2px solid transparent;
  transition: color .25s, border-color .25s, background-color .25s;
}
.toc a:hover { color: var(--text); background: color-mix(in srgb, var(--text) 4%, transparent); }
.toc a.is-active { color: var(--accent); border-left-color: var(--accent); }
.legal-grid { display: grid; grid-template-columns: 236px 1fr; gap: clamp(28px, 4vw, 64px); align-items: start; }

.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;
}

.skip {
  position: fixed;
  top: 10px; left: 10px;
  z-index: 400;
  padding: 10px 16px;
  border-radius: var(--r-xs);
  background: var(--text);
  color: var(--bg);
  font-size: .85rem;
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform .3s var(--ease);
}
.skip:focus { transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .viewer { grid-template-columns: 1fr; }
  .viewer__panel { order: -1; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot__top { grid-template-columns: 1fr 1fr; }
  .legal-grid { grid-template-columns: 1fr; }
  .toc { position: static; display: flex; flex-wrap: wrap; gap: 6px; }
  .toc a { border-left: 0; border: 1px solid var(--border); border-radius: var(--r-pill); }
}
@media (max-width: 900px) {
  .nav__links { display: none; }
  .burger { display: flex; flex-direction: column; align-items: center; justify-content: center; }
  .nav__tools .btn { display: none; }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; }
  .split--wide-left, .split--wide-right { grid-template-columns: 1fr; }
  .hero { min-height: 88vh; }
  .hero__scroll { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .foot__top { grid-template-columns: 1fr; }
  .compare__row { grid-template-columns: 96px 1fr; }
  .compare__delta { grid-column: 2; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); gap: 20px 1px; }
  .statgrid { grid-template-columns: 1fr 1fr; }
  .statgrid__cell { padding: 20px; }
  .nlist__item { grid-template-columns: 40px 1fr; gap: 12px; }
  .cta__grid { gap: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .hero [data-seq] { opacity: 1; transform: none; }
}

@media print {
  .nav, .totop, .progress, .search, .drawer { display: none !important; }
  .sec--ink, .hero, .phero { background: #fff !important; color: #000 !important; }
}
