:root {
  --bg: #07070b;
  --bg-2: #0b0b12;
  --panel: rgba(255, 255, 255, 0.038);
  --line: rgba(255, 255, 255, 0.085);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #ececf3;
  --muted: #9a9aac;
  --dim: #6e6e80;
  --violet: #8f7cff;
  --violet-2: #c4b5fd;
  --teal: #5eead4;
  --amber: #ffb454;
  --red: #ff5c7a;
  --red-2: #ff8fa3;
  --radius: 24px;
  --max: 1160px;
  --mono: "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 94px;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(143, 124, 255, 0.4);
  color: #fff;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

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

.skip-link {
  position: fixed;
  top: -120px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--violet);
  color: #0b0714;
  font-weight: 700;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
}

.progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  height: 2px;
  background: linear-gradient(90deg, var(--violet), var(--teal));
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

.page-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 640px at 12% -12%, rgba(143, 124, 255, 0.16), transparent 62%),
    radial-gradient(760px 540px at 92% -4%, rgba(94, 234, 212, 0.07), transparent 60%),
    radial-gradient(900px 700px at 50% 110%, rgba(143, 124, 255, 0.05), transparent 62%);
}

.wrap {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: rgba(7, 7, 11, 0.74);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: border-color 0.25s ease, background 0.25s ease;
}

.site-header.scrolled {
  border-color: var(--line);
  background: rgba(7, 7, 11, 0.9);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  font-size: 0.92rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.brand svg {
  color: var(--violet-2);
}

.brand .slash {
  margin: 0 4px;
  color: var(--dim);
  font-weight: 400;
}

.brand-sub {
  color: var(--muted);
  font-weight: 450;
}

.nav-links {
  display: flex;
  gap: 2px;
  margin-left: auto;
}

.nav-links a {
  position: relative;
  padding: 8px 11px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 0.83rem;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
}

.nav-links a.active {
  color: var(--text);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 3px;
  height: 1px;
  background: var(--violet-2);
  opacity: 0.75;
}

.ghost-btn {
  flex: none;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 550;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.ghost-btn:hover {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.045);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 82px 0 58px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.034) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.034) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 72% 66% at 26% 18%, #000 12%, transparent 74%);
  mask-image: radial-gradient(ellipse 72% 66% at 26% 18%, #000 12%, transparent 74%);
  opacity: 0.55;
}

.hero::after {
  content: "";
  position: absolute;
  top: -220px;
  left: 42%;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: rgba(143, 124, 255, 0.09);
  filter: blur(110px);
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  z-index: 1;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.028);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.pill.warn {
  border-color: rgba(255, 180, 84, 0.3);
  background: rgba(255, 180, 84, 0.075);
  color: #ffd39a;
}

.pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(255, 180, 84, 0.14);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.015em;
  overflow-wrap: anywhere;
}

.nowrap {
  white-space: nowrap;
}

h1 {
  max-width: 14ch;
  margin: 0 0 24px;
  font-size: clamp(2.65rem, 6.2vw, 5.1rem);
  font-weight: 700;
  letter-spacing: -0.052em;
  line-height: 1.02;
}

.grad {
  background-image: linear-gradient(102deg, #e9e4ff 0%, #b9a6ff 38%, #8f7cff 62%, #5eead4 105%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  max-width: 61ch;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.15rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 17px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.055);
}

.btn.primary {
  border-color: rgba(164, 148, 255, 0.42);
  background: linear-gradient(180deg, #9c8bff, #7d68f2);
  color: #0b0718;
  box-shadow: 0 10px 36px rgba(125, 104, 242, 0.24);
}

.btn.primary:hover {
  background: linear-gradient(180deg, #ab9cff, #8874ff);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 54px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat {
  padding: 22px 22px 22px 0;
  border-right: 1px solid var(--line);
}

.stat:last-child {
  border-right: 0;
}

.stat-value {
  display: block;
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  display: block;
  margin-top: 5px;
  color: var(--dim);
  font-size: 0.74rem;
  line-height: 1.35;
}

/* ---------- Alert ---------- */

.alert {
  display: flex;
  gap: 13px;
  margin-top: 4px;
  padding: 17px 20px;
  border: 1px solid rgba(255, 180, 84, 0.25);
  border-radius: 15px;
  background: rgba(255, 180, 84, 0.055);
  color: #f0d6b0;
}

.alert svg {
  flex: none;
  margin-top: 3px;
  color: var(--amber);
}

.alert strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 650;
}

.alert p {
  margin: 4px 0 0;
  color: #c8ac86;
  font-size: 0.83rem;
  line-height: 1.55;
}

/* ---------- Sections ---------- */

.section {
  position: relative;
  padding: 104px 0;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section-head {
  max-width: 780px;
  margin-bottom: 38px;
}

.kicker {
  margin: 0 0 14px;
  color: var(--violet-2);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h2 {
  max-width: 20ch;
  margin: 0 0 15px;
  font-size: clamp(1.8rem, 3.4vw, 2.75rem);
  font-weight: 650;
  letter-spacing: -0.038em;
  line-height: 1.08;
}

.section-head p {
  max-width: 65ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.014));
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.26);
}

/* ---------- Capability ---------- */

.chart-panel {
  padding: 28px 32px 24px;
  transition: border-color 0.3s ease;
}

.chart-panel:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

.chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--line);
}

.chart-head h3 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.head-note {
  margin-left: 6px;
  color: var(--dim);
  font-size: 0.72rem;
  font-weight: 400;
}

.legend {
  display: flex;
  gap: 14px;
  color: var(--dim);
  font-size: 0.72rem;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.key {
  width: 9px;
  height: 9px;
  border-radius: 3px;
}

.key.base {
  background: rgba(154, 154, 172, 0.42);
}

.key.edit {
  background: linear-gradient(90deg, #7d68f2, #c4b5fd);
}

.bench {
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  padding: 21px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.075);
}

.bench:last-of-type {
  border-bottom: 0;
}

.bench-meta {
  min-width: 0;
}

.bench-name {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.bench-name .muted {
  color: var(--dim);
  font-weight: 400;
}

.bench-sub {
  display: block;
  margin-top: 2px;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.7rem;
}

.bench-plot {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.bar-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 64px;
  gap: 10px;
  align-items: center;
}

.bar-tag {
  color: var(--dim);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-align: right;
  text-transform: uppercase;
}

.track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.052);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35);
}

.bar {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.95s cubic-bezier(0.22, 1, 0.36, 1);
}

.animate-chart.in-view .bar {
  transform: scaleX(var(--w, 0));
}

.bar.base {
  background: rgba(154, 154, 172, 0.4);
}

.bar.edit {
  background: linear-gradient(90deg, #6d5ce7, #9d8bff 58%, #c4b5fd);
}

.bar.hot {
  background: linear-gradient(90deg, #a4133c, #ff5c7a 68%, #ffa3b3);
}

.bar-num {
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.bar-num .unit {
  margin-left: 1px;
  color: var(--dim);
  font-size: 0.66rem;
}

.axis-note {
  margin: 14px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 0.76rem;
  line-height: 1.6;
}

.axis-note span {
  color: var(--violet-2);
}

.delta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.delta {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "label value"
    "note note";
  align-items: baseline;
  gap: 2px 10px;
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.022);
}

.d-label {
  grid-area: label;
  color: var(--muted);
  font-size: 0.76rem;
}

.d-value {
  grid-area: value;
  font-family: var(--mono);
  font-size: 1.15rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}

.d-value.up {
  color: var(--teal);
}

.d-value.down {
  color: var(--red-2);
}

.d-note {
  grid-area: note;
  color: var(--dim);
  font-size: 0.68rem;
}

/* ---------- Safety ---------- */

.safety-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.safety-grid .panel {
  padding: 26px 28px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.panel-head h3 {
  margin: 0;
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.tag {
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.panel-sub {
  margin: 5px 0 0;
  color: var(--dim);
  font-size: 0.78rem;
}

.big-compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: end;
  margin-top: 26px;
  padding-bottom: 18px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}

.big-stat {
  min-width: 0;
}

.big-num {
  display: block;
  font-size: clamp(2.15rem, 4.2vw, 3.05rem);
  font-weight: 650;
  letter-spacing: -0.055em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.big-num.hot {
  color: var(--red-2);
}

.big-label {
  display: block;
  margin-top: 7px;
  color: var(--dim);
  font-size: 0.7rem;
  line-height: 1.35;
}

.arrow {
  padding-bottom: 20px;
  color: var(--dim);
  font-size: 1.1rem;
}

.micro {
  margin: 9px 0 0;
  color: var(--dim);
  font-size: 0.68rem;
  line-height: 1.5;
}

.micro strong {
  color: var(--muted);
  font-weight: 550;
}

.mini-compare {
  margin-top: 22px;
}

.mini-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 0.78rem;
}

.mini-nums {
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.76rem;
  white-space: nowrap;
}

.mini-nums strong {
  color: var(--text);
  font-weight: 600;
}

.mini-nums .teal {
  color: var(--teal);
}

.bench.compact {
  grid-template-columns: minmax(120px, 160px) minmax(0, 1fr);
  gap: 18px;
  padding: 15px 0;
}

.panel-sub + .bench.compact {
  margin-top: 12px;
  padding-top: 16px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

.bench.compact .bench-name {
  font-size: 0.84rem;
}

.bench.cve {
  margin: 8px -10px 0;
  padding: 14px 10px;
  border: 1px solid rgba(255, 92, 122, 0.16);
  border-radius: 12px;
  background: rgba(255, 92, 122, 0.038);
}

.callout {
  display: flex;
  gap: 13px;
  margin-top: 18px;
  padding: 17px 20px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.025);
}

.callout svg {
  flex: none;
  margin-top: 3px;
}

.callout strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 650;
}

.callout p {
  margin: 4px 0 0;
  font-size: 0.82rem;
  line-height: 1.6;
}

.callout.danger {
  border-color: rgba(255, 92, 122, 0.24);
  background: rgba(255, 92, 122, 0.055);
  color: #ffc2cc;
}

.callout.danger svg {
  color: var(--red-2);
}

.callout.danger p {
  color: #d8a3ad;
}

.callout.danger em {
  color: #ffd3da;
  font-style: normal;
}

.callout.note {
  margin-top: 16px;
  border-color: rgba(255, 180, 84, 0.2);
  background: rgba(255, 180, 84, 0.045);
  color: #f2d7b2;
}

.callout.note svg {
  color: var(--amber);
}

.callout.note p {
  color: #c9ae88;
}

/* ---------- Method ---------- */

.method-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 42px;
  align-items: start;
}

.steps {
  padding-top: 4px;
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 18px;
  padding-bottom: 30px;
}

.step:last-child {
  padding-bottom: 0;
}

.step::before {
  content: "";
  position: absolute;
  top: 42px;
  bottom: 0;
  left: 20px;
  width: 1px;
  background: linear-gradient(180deg, var(--line-strong), rgba(255, 255, 255, 0.03));
}

.step:last-child::before {
  display: none;
}

.step-num {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--bg-2);
  color: var(--violet-2);
  font-family: var(--mono);
  font-size: 0.68rem;
  z-index: 1;
}

.step h3 {
  margin: 7px 0 4px;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.step p {
  margin: 0;
  color: var(--dim);
  font-size: 0.84rem;
  line-height: 1.6;
}

.method-aside blockquote {
  margin: 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(400px 200px at 100% 0%, rgba(143, 124, 255, 0.12), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012));
}

.method-aside blockquote p {
  margin: 0;
  font-size: 1.18rem;
  letter-spacing: -0.02em;
  line-height: 1.5;
}

.method-aside blockquote footer {
  margin-top: 14px;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.7rem;
}

.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.mini-stat {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.022);
}

.mini-value {
  display: block;
  font-size: 1.35rem;
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.mini-label {
  display: block;
  margin-top: 3px;
  color: var(--dim);
  font-size: 0.62rem;
  line-height: 1.3;
}

/* ---------- Usage ---------- */

.code-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #09090f;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
}

.code-toolbar {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 9px 11px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.code-tab {
  padding: 6px 11px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--dim);
  font-size: 0.76rem;
  font-weight: 550;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.code-tab:hover {
  color: var(--muted);
}

.code-tab.active {
  background: rgba(255, 255, 255, 0.075);
  color: var(--text);
}

.copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: transparent;
  color: var(--dim);
  font-size: 0.7rem;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.copy:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.copy.copied {
  border-color: rgba(94, 234, 212, 0.35);
  color: var(--teal);
}

.code-pane {
  display: none;
}

.code-pane.active {
  display: block;
}

pre {
  margin: 0;
  padding: 22px 24px;
  overflow-x: auto;
  color: #d7d3ff;
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.75;
  tab-size: 2;
}

pre code {
  font-family: inherit;
}

pre::-webkit-scrollbar {
  height: 8px;
}

pre::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.zro-block {
  margin-top: 28px;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.022);
}

.zro-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.zro-head h3 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.zro-head a {
  color: var(--violet-2);
  font-family: var(--mono);
  font-size: 0.73rem;
}

.zro-head a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--line);
}

.fact {
  padding: 14px 15px;
  background: #0b0b12;
}

.fact-label {
  display: block;
  color: var(--dim);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fact-value {
  display: block;
  margin-top: 4px;
  font-size: 0.85rem;
  font-weight: 550;
}

.mono {
  font-family: var(--mono);
  font-size: 0.8rem !important;
}

.zro-block .micro {
  margin-top: 12px;
}

/* ---------- Limits ---------- */

.limit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.limit {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.036), rgba(255, 255, 255, 0.012));
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.limit:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.13);
}

.limit-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 15px;
  border: 1px solid rgba(143, 124, 255, 0.24);
  border-radius: 11px;
  background: rgba(143, 124, 255, 0.09);
  color: var(--violet-2);
}

.limit-icon.hot {
  border-color: rgba(255, 92, 122, 0.25);
  background: rgba(255, 92, 122, 0.08);
  color: var(--red-2);
}

.limit h3 {
  margin: 0 0 6px;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.limit p {
  margin: 0;
  color: var(--dim);
  font-size: 0.84rem;
  line-height: 1.6;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 56px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
}

.footer-brand {
  margin: 0 0 7px;
  font-size: 0.85rem;
  font-weight: 650;
  letter-spacing: -0.015em;
}

.footer-brand .slash {
  margin: 0 4px;
  color: var(--dim);
  font-weight: 400;
}

.footer-note {
  max-width: 58ch;
  margin: 0;
  color: var(--dim);
  font-size: 0.72rem;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  align-content: flex-start;
  justify-content: flex-end;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.76rem;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--text);
}

/* ---------- Reveal ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.js .reveal.visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .method-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .safety-grid {
    grid-template-columns: 1fr;
  }

  .facts {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 840px) {
  .nav-links {
    display: none;
  }

  .ghost-btn {
    margin-left: auto;
  }

  .stat-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stat {
    padding: 18px 18px 18px 0;
  }

  .stat:nth-child(2) {
    border-right: 0;
  }

  .stat:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .stat:nth-child(3) {
    padding-top: 18px;
  }
}

@media (max-width: 760px) {
  .wrap {
    width: calc(100% - 36px);
  }

  .hero {
    padding: 62px 0 46px;
  }

  .section {
    padding: 78px 0;
  }

  .bench {
    grid-template-columns: 1fr;
    gap: 11px;
    padding: 18px 0;
  }

  .bench.compact {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .bench-meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
  }

  .bench-sub {
    margin-top: 0;
    text-align: right;
  }

  .chart-panel {
    padding: 22px 20px 20px;
  }

  .safety-grid .panel {
    padding: 22px 20px;
  }

  .limit-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    gap: 22px;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .hero-badges {
    margin-bottom: 22px;
  }

  .pill {
    padding: 5px 9px;
    font-size: 0.62rem;
  }

  h1 {
    max-width: 13ch;
  }

  .hero-actions {
    align-items: stretch;
  }

  .btn {
    justify-content: center;
  }

  .delta-grid {
    grid-template-columns: 1fr;
  }

  .big-compare {
    gap: 8px;
  }

  .big-num {
    font-size: 2.15rem;
  }

  .arrow {
    padding-bottom: 16px;
  }

  .facts {
    grid-template-columns: 1fr;
  }

  .zro-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .mini-stats {
    grid-template-columns: 1fr 1fr;
  }

  .mini-stat:last-child {
    grid-column: 1 / -1;
  }

  .bar-row {
    grid-template-columns: 38px minmax(0, 1fr) 58px;
    gap: 8px;
  }

  .bar-num {
    font-size: 0.72rem;
  }

  .bench-meta {
    flex-direction: column;
    gap: 1px;
  }

  .bench-sub {
    text-align: left;
  }

  .code-toolbar {
    overflow-x: auto;
  }

  .copy span {
    display: none;
  }

  pre {
    padding: 18px;
    font-size: 0.73rem;
  }

  .zro-block {
    padding: 20px;
  }
}

@media (max-width: 420px) {
  .brand-sub {
    display: none;
  }

  .brand .slash {
    display: none;
  }

  .ghost-btn {
    padding: 7px 10px;
    font-size: 0.74rem;
  }

  .stat-value {
    font-size: 1.65rem;
  }

  .stat-label {
    font-size: 0.68rem;
  }

  .mini-head {
    flex-direction: column;
    gap: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }

  .bar {
    transform: scaleX(var(--w, 0));
  }
}
