/* ==========================================================================
   BTC-PQS — styles.css
   Un singur fișier pentru toate paginile. Fără fonturi externe, fără CDN.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --bg: #06080d;
  --bg-deep: #04060a;
  --panel: rgba(255, 255, 255, 0.028);
  --panel-2: rgba(255, 255, 255, 0.05);
  --line: rgba(255, 255, 255, 0.075);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #e9edf5;
  --text-2: #a4aebf;
  --muted: #7b8598;
  --cyan: #22d3ee;
  --cyan-soft: #7dd3fc;
  --violet: #a78bfa;
  --warn: #f0b35e;
  --danger: #ff7b7b;
  --ok: #58d68d;
  --grad: linear-gradient(135deg, #22d3ee 0%, #7dd3fc 38%, #a78bfa 100%);
  --radius: 18px;
  --radius-sm: 11px;
  --max: 1140px;
  --font: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system,
    "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", SFMono-Regular, Menlo, Consolas,
    "Liberation Mono", monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- 2. Reset / base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  font-feature-settings: "ss01" 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(880px 520px at 16% -10%, rgba(34, 211, 238, 0.11), transparent 62%),
    radial-gradient(760px 520px at 86% -4%, rgba(167, 139, 250, 0.11), transparent 62%),
    radial-gradient(900px 700px at 50% 108%, rgba(34, 211, 238, 0.05), transparent 68%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.032) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 0%, transparent 78%);
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 0%, transparent 78%);
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--cyan-soft);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.032em;
  line-height: 1.1;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.1rem, 5vw, 3.2rem);
}

h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.45rem);
}

h3 {
  font-size: 1.06rem;
  letter-spacing: -0.018em;
}

ul,
ol {
  margin: 0 0 1em;
  padding-left: 1.15em;
}

li {
  margin-bottom: 0.45em;
}

li::marker {
  color: var(--muted);
}

strong {
  color: #f4f7fb;
  font-weight: 600;
}

small {
  font-size: 12.5px;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 32px 0;
}

::selection {
  background: rgba(34, 211, 238, 0.28);
  color: #fff;
}

:focus-visible {
  outline: 2px solid rgba(34, 211, 238, 0.75);
  outline-offset: 2px;
  border-radius: 4px;
}

.page {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.page > main {
  flex: 1 0 auto;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.wrap--narrow {
  max-width: 860px;
}

/* ---------- 3. Utilities ---------- */
.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

.mut {
  color: var(--text-2);
}

.dim {
  color: var(--muted);
}

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.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;
}

.nobreak {
  white-space: nowrap;
}

/* ---------- 4. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(6, 8, 13, 0.74);
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  flex: 0 0 auto;
}

.brand svg {
  width: 27px;
  height: 27px;
  flex: none;
}

.brand-word {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1;
}

.brand-word .sep {
  color: var(--cyan);
  margin: 0 1px;
}

.brand-chip {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 7px;
  line-height: 1.5;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  padding: 7px 11px;
  border-radius: 8px;
  transition: color 0.16s, background 0.16s;
}

.nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
}

.nav a[aria-current="page"] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.065);
}

.header-cta {
  flex: 0 0 auto;
}

.menu-btn {
  display: none;
  margin-left: auto;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-direction: column;
}

.menu-btn span {
  display: block;
  width: 16px;
  height: 2px;
  background: rgba(233, 237, 245, 0.85);
  border-radius: 2px;
  transition: transform 0.2s var(--ease), opacity 0.2s;
}

.menu-btn[aria-expanded="true"] span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.menu-btn[aria-expanded="true"] span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  padding: 10px 24px 20px;
  background: rgba(6, 8, 13, 0.97);
}

.mobile-nav a:not(.btn) {
  display: block;
  padding: 11px 2px;
  color: var(--text-2);
  text-decoration: none;
  font-size: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-nav a[aria-current="page"] {
  color: var(--text);
}

.mobile-nav .btn {
  margin-top: 16px;
}

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 20px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 550;
  letter-spacing: -0.008em;
  text-decoration: none;
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s, border-color 0.18s, color 0.18s, transform 0.18s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: #eef2f8;
  color: #07090e;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset, 0 10px 24px -14px rgba(180, 220, 255, 0.6);
}

.btn--primary:hover {
  background: #ffffff;
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--line-2);
  color: var(--text);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.24);
}

.btn--sm {
  height: 36px;
  padding: 0 13px;
  font-size: 13px;
  border-radius: 9px;
}

.btn--xs {
  height: 30px;
  padding: 0 10px;
  font-size: 11.5px;
  border-radius: 8px;
  font-family: var(--mono);
  letter-spacing: 0.02em;
}

.btn--block {
  width: 100%;
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.42;
  cursor: not-allowed;
  transform: none;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

/* ---------- 6. Kicker / chips ---------- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #94a1b4;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  padding: 7px 12px;
  border-radius: 999px;
  line-height: 1.4;
}

.kicker .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 9px rgba(34, 211, 238, 0.9);
  flex: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  line-height: 1.5;
  white-space: nowrap;
}

.chip--ok {
  border-color: rgba(88, 214, 141, 0.28);
  color: #a9edc2;
  background: rgba(88, 214, 141, 0.08);
}

.chip--warn {
  border-color: rgba(240, 179, 94, 0.3);
  color: #f6d3a4;
  background: rgba(240, 179, 94, 0.08);
}

.chip--live {
  border-color: rgba(34, 211, 238, 0.3);
  color: #b7edf8;
  background: rgba(34, 211, 238, 0.08);
}

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 84px 0 56px;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.5;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 62% 42%, #000 8%, transparent 76%);
  mask-image: radial-gradient(ellipse 70% 70% at 62% 42%, #000 8%, transparent 76%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.hero h1 {
  margin-top: 24px;
  font-size: clamp(3.1rem, 9vw, 5.6rem);
  line-height: 0.94;
  letter-spacing: -0.05em;
  font-weight: 600;
}

.hero h1 .sub {
  display: block;
  margin-top: 16px;
  font-size: clamp(1.3rem, 3.1vw, 2.3rem);
  line-height: 1.14;
  letter-spacing: -0.028em;
  font-weight: 500;
  color: #cfd6e2;
  max-width: 18ch;
}

.hero .lead {
  margin-top: 24px;
  font-size: clamp(1rem, 1.25vw, 1.09rem);
  line-height: 1.68;
  color: var(--text-2);
  max-width: 62ch;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 30px;
  font-size: 12px;
  color: var(--muted);
}

.hero-meta .addr {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-2);
  word-break: break-all;
}

/* ---------- 8. Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 58px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat {
  padding: 22px 20px 22px 0;
  border-right: 1px solid var(--line);
}

.stat:last-child {
  border-right: 0;
}

.stat .n {
  font-family: var(--mono);
  font-size: clamp(1.45rem, 2.5vw, 1.95rem);
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: #f2f6fb;
  font-variant-numeric: tabular-nums;
}

.stat .n .u {
  font-size: 0.52em;
  color: var(--muted);
  margin-left: 4px;
  letter-spacing: 0;
}

.stat .l {
  margin-top: 8px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--muted);
  max-width: 24ch;
}

/* ---------- 9. Sections ---------- */
.section {
  padding: 84px 0;
  position: relative;
}

.section--tight {
  padding: 52px 0;
}

.section--line {
  border-top: 1px solid var(--line);
}

.sec-head {
  max-width: 720px;
}

.sec-head .idx,
.idx {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
}

.idx::before {
  content: "";
  width: 18px;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  flex: none;
}

.sec-head h2 {
  margin-top: 16px;
}

.lead {
  margin-top: 16px;
  color: var(--text-2);
  font-size: clamp(0.98rem, 1.2vw, 1.06rem);
  line-height: 1.7;
  max-width: 68ch;
}

.sec-head + .grid,
.sec-head + .steps,
.sec-head + .vault,
.sec-head + .tbl-wrap,
.sec-head + .limits,
.sec-head + .callout {
  margin-top: 40px;
}

/* ---------- 10. Grid / cards ---------- */
.grid {
  display: grid;
  gap: 16px;
}

.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));
}

.card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.036), rgba(255, 255, 255, 0.012));
  padding: 24px;
  transition: border-color 0.25s, transform 0.3s var(--ease), background 0.25s;
}

.card::after {
  content: "";
  position: absolute;
  top: -1px;
  left: 16px;
  right: 16px;
  height: 1px;
  background: var(--grad);
  opacity: 0;
  transition: opacity 0.3s;
  border-radius: 2px;
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
}

.card:hover::after {
  opacity: 0.55;
}

.card h3 {
  display: flex;
  align-items: center;
  gap: 9px;
}

.card p {
  margin-top: 10px;
  color: var(--text-2);
  font-size: 14.5px;
  line-height: 1.66;
}

.card .ico {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--cyan-soft);
}

.card .ico svg {
  width: 15px;
  height: 15px;
}

.card--flat {
  background: rgba(255, 255, 255, 0.018);
}

.card--flat:hover {
  transform: none;
}

/* ---------- 11. Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}

.step {
  padding: 26px 26px 26px 0;
  border-right: 1px solid var(--line);
  position: relative;
}

.step:last-child {
  border-right: 0;
  padding-right: 0;
}

.step + .step {
  padding-left: 26px;
}

.step-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--cyan-soft);
  opacity: 0.85;
}

.step h3 {
  margin-top: 14px;
  font-size: 1.02rem;
}

.step p {
  margin-top: 10px;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.65;
}

.step code {
  margin-top: 14px;
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
}

/* ---------- 12. Code ---------- */
code,
kbd,
samp {
  font-family: var(--mono);
  font-size: 0.86em;
  font-variant-ligatures: none;
}

:not(pre) > code {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 6px;
  padding: 1px 6px;
  color: #c6f4fd;
  white-space: nowrap;
  overflow-wrap: normal;
}

pre {
  margin: 0;
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

pre code {
  background: none;
  border: 0;
  padding: 0;
  color: #c8d4e6;
  font-size: 12.7px;
  line-height: 1.78;
  white-space: pre;
}

.code-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-deep);
  overflow: hidden;
}

.code-card__head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.code-card__head .dots {
  display: flex;
  gap: 5px;
  margin-right: 4px;
}

.code-card__head .dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}

.code-card pre {
  border: 0;
  border-radius: 0;
  background: transparent;
}

.tok-key {
  color: #b9a2ff;
}
.tok-fn {
  color: #6fe3f5;
}
.tok-com {
  color: #5a6478;
  font-style: italic;
}
.tok-num {
  color: #f0b35e;
}
.tok-str {
  color: #8fe0ad;
}
.tok-typ {
  color: #9fd0ff;
}

/* ---------- 13. Vault layout ---------- */
.vault {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 28px;
  align-items: start;
}

.vault-text p {
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.72;
}

.props {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 12px;
}

.props li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 11px;
  margin: 0;
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
}

.props li svg {
  width: 16px;
  height: 16px;
  margin-top: 4px;
  color: var(--cyan);
  flex: none;
}

.props li b {
  color: var(--text);
  font-weight: 550;
}

/* ---------- 14. Tables ---------- */
.tbl-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.018);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  min-width: 520px;
}

.tbl th {
  text-align: left;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.018);
  white-space: nowrap;
}

.tbl td {
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: top;
  color: var(--text-2);
  line-height: 1.55;
}

.tbl tr:last-child td {
  border-bottom: 0;
}

.tbl td:first-child {
  color: var(--text);
  white-space: nowrap;
}

.tbl td.val {
  font-family: var(--mono);
  color: #e6ecf5;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.tbl td.num {
  text-align: right;
  font-family: var(--mono);
  white-space: nowrap;
}

/* ---------- 15. Limits / notes ---------- */
.limits {
  display: grid;
  gap: 12px;
}

.limit {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 16px;
  padding: 20px 22px;
  border: 1px solid rgba(240, 179, 94, 0.16);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(240, 179, 94, 0.055), rgba(240, 179, 94, 0.015));
}

.limit__n {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--warn);
  border: 1px solid rgba(240, 179, 94, 0.28);
  border-radius: 8px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  line-height: 1;
  margin-top: 1px;
}

.limit h3 {
  font-size: 0.98rem;
  color: #f7e6cd;
  letter-spacing: -0.012em;
}

.limit p {
  margin-top: 7px;
  font-size: 14px;
  line-height: 1.66;
  color: #bcb3a5;
}

.limit p b,
.limit p strong {
  color: #f3e7d5;
}

.note {
  border-left: 2px solid rgba(34, 211, 238, 0.55);
  background: rgba(34, 211, 238, 0.045);
  border-radius: 0 12px 12px 0;
  padding: 14px 18px;
  font-size: 13.8px;
  line-height: 1.65;
  color: var(--text-2);
}

.note b {
  color: var(--text);
}

.note--warn {
  border-left-color: rgba(240, 179, 94, 0.6);
  background: rgba(240, 179, 94, 0.055);
}

.callout {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.022);
  padding: 26px 28px;
}

.callout h3 {
  margin-bottom: 8px;
}

.callout p {
  color: var(--text-2);
  font-size: 14.5px;
}

/* ---------- 16. CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 44px;
  background:
    radial-gradient(560px 260px at 12% 0%, rgba(34, 211, 238, 0.1), transparent 70%),
    radial-gradient(560px 260px at 92% 100%, rgba(167, 139, 250, 0.1), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012));
}

.cta-band h2 {
  max-width: 22ch;
}

.cta-band p {
  margin-top: 14px;
  color: var(--text-2);
  max-width: 56ch;
  font-size: 15px;
}

.cta-band .actions {
  margin-top: 26px;
}

/* ---------- 17. Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 64px;
  padding: 48px 0 36px;
  font-size: 13px;
  color: var(--muted);
  background: rgba(4, 6, 10, 0.5);
}

.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 36px;
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  margin-bottom: 14px;
}

.foot-brand svg {
  width: 24px;
  height: 24px;
}

.foot-legal {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.7;
  max-width: 46ch;
}

.foot-col h4 {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6d778a;
  margin-bottom: 12px;
  font-weight: 500;
}

.foot-col a {
  display: block;
  color: var(--text-2);
  text-decoration: none;
  padding: 4px 0;
  font-size: 13px;
}

.foot-col a:hover {
  color: var(--text);
}

.foot-bottom {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #6b7484;
}

.addr-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.025);
  max-width: 100%;
  overflow-wrap: anywhere;
  text-align: left;
}

.addr-chip.is-empty {
  color: var(--warn);
  border-color: rgba(240, 179, 94, 0.22);
  background: rgba(240, 179, 94, 0.05);
}

.copy-btn {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-2);
  border-radius: 7px;
  font-family: var(--mono);
  font-size: 10.5px;
  padding: 4px 8px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  white-space: nowrap;
}

.copy-btn:hover {
  color: var(--text);
  border-color: var(--line-2);
  background: rgba(255, 255, 255, 0.08);
}

.copy-btn.done {
  color: #a9edc2;
  border-color: rgba(88, 214, 141, 0.35);
}

/* ---------- 18. Article / whitepaper ---------- */
.article-head {
  padding: 64px 0 40px;
  border-bottom: 1px solid var(--line);
}

.article-head h1 {
  margin-top: 18px;
  font-size: clamp(2rem, 4.6vw, 3.1rem);
  letter-spacing: -0.04em;
  max-width: 22ch;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 22px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--muted);
  text-transform: uppercase;
}

.article-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 56px;
  padding: 48px 0 40px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 88px;
  border-left: 1px solid var(--line);
  padding-left: 18px;
}

.toc h2 {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6d778a;
  margin-bottom: 12px;
  font-weight: 500;
}

.toc a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  font-size: 12.5px;
  padding: 5px 0;
  line-height: 1.45;
  transition: color 0.15s;
}

.toc a:hover {
  color: var(--text);
}

.prose {
  max-width: 740px;
  font-size: 15.5px;
  line-height: 1.78;
  color: var(--text-2);
}

.prose h2 {
  color: var(--text);
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  margin: 52px 0 16px;
  letter-spacing: -0.03em;
  scroll-margin-top: 92px;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h2 .h2n {
  font-family: var(--mono);
  font-size: 0.56em;
  color: var(--cyan);
  letter-spacing: 0;
  margin-right: 10px;
  font-weight: 400;
  vertical-align: 2px;
}

.prose h3 {
  color: var(--text);
  font-size: 1.02rem;
  margin: 30px 0 10px;
  letter-spacing: -0.015em;
}

.prose p {
  margin: 0 0 1.05em;
}

.prose ul,
.prose ol {
  margin: 0 0 1.15em;
}

.prose li {
  margin-bottom: 0.5em;
}

.prose li b {
  color: var(--text);
}

.prose pre {
  margin: 22px 0;
}

.prose .formula {
  display: block;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-deep);
  padding: 16px 18px;
  font-family: var(--mono);
  font-size: 13px;
  color: #c6f4fd;
  overflow-x: auto;
  margin: 20px 0;
  white-space: pre;
  line-height: 1.8;
}

.prose table {
  margin: 22px 0;
}

.prose .tbl-wrap {
  margin: 22px 0;
}

.prose .note,
.prose .limit {
  margin: 24px 0;
}

.prose hr {
  margin: 40px 0;
}

.doc-foot {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

.refs {
  list-style: none;
  padding: 0;
  counter-reset: ref;
}

.refs li {
  counter-increment: ref;
  padding: 14px 0 14px 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  font-size: 13.8px;
  line-height: 1.65;
}

.refs li::before {
  content: "[" counter(ref) "]";
  position: absolute;
  left: 0;
  top: 14px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--cyan);
}

.refs li:last-child {
  border-bottom: 0;
}

/* ---------- 19. App ---------- */
.app-shell {
  padding: 44px 0 72px;
}

.app-head {
  max-width: 720px;
}

.app-head h1 {
  margin-top: 20px;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
  align-items: start;
}

.span-2 {
  grid-column: span 2;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.036), rgba(255, 255, 255, 0.012));
  padding: 22px;
  min-width: 0;
}

.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.panel__title {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel__title::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  opacity: 0.85;
}

.field {
  display: block;
  margin-bottom: 14px;
}

.field > .label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: 11.5px;
  color: var(--muted);
  margin-bottom: 7px;
  letter-spacing: 0.02em;
}

.field > .label .hint {
  font-family: var(--mono);
  font-size: 10px;
  color: #6b7484;
}

.input {
  width: 100%;
  height: 46px;
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  padding: 0 13px;
  font-family: var(--mono);
  font-size: 13px;
  transition: border-color 0.18s, box-shadow 0.18s;
  min-width: 0;
}

.input::placeholder {
  color: #4e5768;
}

.input:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

.input:focus {
  outline: none;
  border-color: rgba(34, 211, 238, 0.55);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.1);
}

.input.is-bad {
  border-color: rgba(255, 123, 123, 0.5);
}

.input-row {
  display: flex;
  gap: 8px;
}

.input-row .input {
  flex: 1 1 auto;
}

.stat-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 13px;
}

.stat-row:last-child {
  border-bottom: 0;
}

.stat-row .k {
  color: var(--muted);
  white-space: nowrap;
}

.stat-row .v {
  font-family: var(--mono);
  color: var(--text);
  text-align: right;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}

.big-num {
  font-family: var(--mono);
  font-size: clamp(1.65rem, 3.2vw, 2.1rem);
  letter-spacing: -0.045em;
  line-height: 1.15;
  color: #f3f7fc;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.big-num .unit {
  font-size: 0.46em;
  color: var(--muted);
  letter-spacing: 0.02em;
  margin-left: 6px;
}

.wallet-state {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.022);
  margin-bottom: 16px;
}

.wallet-state .addr {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text);
  overflow-wrap: anywhere;
}

.wallet-state .lbl {
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: var(--mono);
  margin-bottom: 4px;
}

.msg {
  display: none;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.55;
  border: 1px solid var(--line);
  color: var(--text-2);
  overflow-wrap: anywhere;
}

.msg.show {
  display: block;
}

.msg a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 550;
}

.msg--info {
  border-color: rgba(34, 211, 238, 0.26);
  background: rgba(34, 211, 238, 0.055);
  color: #bfeef8;
}

.msg--ok {
  border-color: rgba(88, 214, 141, 0.26);
  background: rgba(88, 214, 141, 0.055);
  color: #b8efcc;
}

.msg--warn {
  border-color: rgba(240, 179, 94, 0.3);
  background: rgba(240, 179, 94, 0.06);
  color: #f4d7ae;
}

.msg--err {
  border-color: rgba(255, 123, 123, 0.3);
  background: rgba(255, 123, 123, 0.06);
  color: #ffc4c4;
}

.msg strong {
  color: inherit;
}

.secret-box {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-deep);
  padding: 12px 14px;
  margin-top: 12px;
}

.secret-box .sb-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.secret-box .sb-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.secret-box .sb-value {
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.7;
  color: #c6f4fd;
  word-break: break-all;
  -webkit-user-select: all;
  user-select: all;
}

.secret-box--commit .sb-value {
  color: #ddd0ff;
}

.checkline {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-2);
  margin: 14px 0 4px;
  cursor: pointer;
}

.checkline input {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  background: var(--bg-deep);
  flex: none;
  margin-top: 2px;
  cursor: pointer;
  position: relative;
  transition: background 0.15s, border-color 0.15s;
}

.checkline input:checked {
  background: var(--cyan);
  border-color: var(--cyan);
}

.checkline input:checked::after {
  content: "";
  position: absolute;
  left: 4.5px;
  top: 1.5px;
  width: 4px;
  height: 8px;
  border: solid #04121a;
  border-width: 0 2px 2px 0;
  transform: rotate(42deg);
}

.log {
  display: grid;
  gap: 2px;
  font-size: 12.5px;
}

.log-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  flex-wrap: wrap;
}

.log-row:last-child {
  border-bottom: 0;
}

.log-row .lbl {
  color: var(--text-2);
  min-width: 78px;
}

.log-row .h {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--cyan-soft);
  text-decoration: none;
}

.log-row .h:hover {
  text-decoration: underline;
}

.log-row .t {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10.5px;
  color: #667085;
}

.pill-toggle {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  border-radius: 7px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 9px;
  cursor: pointer;
}

.pill-toggle:hover {
  color: var(--text);
}

.subpanel {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.015);
  margin-top: 16px;
}

.subpanel h4 {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
  font-weight: 500;
}

/* ---------- 20. Wallet guide / swap ---------- */
.guide {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.018);
}

.guide__side {
  padding: 22px 24px;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.guide__side h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
}

.guide__side p {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

.guide__body {
  padding: 22px 26px;
}

ol.steps-list {
  list-style: none;
  counter-reset: st;
  padding: 0;
  margin: 0;
}

ol.steps-list > li {
  counter-increment: st;
  position: relative;
  padding: 0 0 18px 34px;
  margin: 0;
  font-size: 14.2px;
  color: var(--text-2);
  line-height: 1.62;
}

ol.steps-list > li::before {
  content: counter(st);
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1px solid var(--line-2);
  font-family: var(--mono);
  font-size: 10.5px;
  display: grid;
  place-items: center;
  color: var(--cyan-soft);
}

ol.steps-list > li:last-child {
  padding-bottom: 0;
}

ol.steps-list > li b {
  color: var(--text);
}

.path {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.034), rgba(255, 255, 255, 0.01));
  height: 100%;
}

.path__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.path h3 {
  font-size: 1.05rem;
}

.path p {
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.66;
}

.path ul {
  margin: 0;
  padding-left: 1.05em;
  font-size: 13.2px;
  color: var(--text-2);
}

.path ul li {
  margin-bottom: 5px;
}

.path .path__foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b7484;
}

.big-statement {
  border: 1px solid rgba(240, 179, 94, 0.2);
  background: linear-gradient(180deg, rgba(240, 179, 94, 0.06), rgba(240, 179, 94, 0.015));
  border-radius: 20px;
  padding: 34px 36px;
}

.big-statement .stmt-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--warn);
  margin-bottom: 16px;
}

.big-statement h2 {
  font-size: clamp(1.5rem, 3.4vw, 2.2rem);
  max-width: 26ch;
  color: #fbefdd;
}

.big-statement p {
  margin-top: 14px;
  color: #c8bcaa;
  max-width: 62ch;
  font-size: 15px;
}

/* ---------- 21. Reveal ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
  transition-delay: var(--d, 0ms);
}

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ---------- 22. Responsive ---------- */
@media (max-width: 980px) {
  .vault {
    grid-template-columns: minmax(0, 1fr);
  }

  .article-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .toc {
    position: static;
    border-left: 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 18px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 18px;
  }

  .toc h2 {
    width: 100%;
    margin-bottom: 6px;
  }

  .toc a {
    padding: 3px 0;
  }

  .guide {
    grid-template-columns: minmax(0, 1fr);
  }

  .guide__side {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 900px) {
  .nav {
    display: none;
  }

  .menu-btn {
    display: flex;
  }

  .header-cta {
    margin-left: auto;
  }

  .mobile-nav.open {
    display: block;
  }

  .grid--3,
  .grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
    border-top: 0;
  }

  .step {
    border-right: 0;
    border-top: 1px solid var(--line);
    padding: 22px 0;
  }

  .step + .step {
    padding-left: 0;
  }

  .app-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .span-2 {
    grid-column: span 1;
  }
}

@media (max-width: 760px) {
  .wrap,
  .header-inner {
    padding-left: 18px;
    padding-right: 18px;
  }

  .header-inner {
    height: 58px;
  }

  .hero {
    padding: 56px 0 44px;
  }

  .hero h1 .sub {
    max-width: 22ch;
  }

  .section {
    padding: 60px 0;
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 40px;
  }

  .stat {
    padding: 18px 16px 18px 0;
  }

  .stat:nth-child(2n) {
    border-right: 0;
    padding-right: 0;
    padding-left: 16px;
  }

  .stat:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: minmax(0, 1fr);
  }

  .cta-band {
    padding: 30px 22px;
  }

  .big-statement {
    padding: 26px 22px;
  }

  .foot-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 28px;
  }

  .foot-grid > .foot-col--brand {
    grid-column: span 2;
  }

  .article-head {
    padding: 44px 0 30px;
  }

  .article-layout {
    padding: 32px 0 24px;
  }

  .prose {
    font-size: 15px;
  }

  .panel {
    padding: 18px;
  }

  .guide__side,
  .guide__body {
    padding: 20px;
  }

  .actions .btn {
    flex: 1 1 auto;
  }

  .brand-chip {
    display: none;
  }
}

@media (max-width: 520px) {
  .header-cta {
    display: none;
  }

  .menu-btn {
    margin-left: auto;
  }

  .hero h1 {
    font-size: clamp(2.6rem, 15vw, 3.6rem);
  }

  .tbl {
    min-width: 460px;
  }

  .tbl th,
  .tbl td {
    padding-left: 14px;
    padding-right: 14px;
  }

  .limit {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding: 18px;
  }

  .limit__n {
    margin-top: 0;
  }

  .foot-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .foot-grid > .foot-col--brand {
    grid-column: span 1;
  }

  .actions {
    flex-direction: column;
    align-items: stretch;
  }

  .actions .btn {
    width: 100%;
  }
}

/* ---------- 23. Motion / print ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

@media print {
  body::before,
  body::after,
  .site-header,
  .site-footer,
  .toc,
  .hero-canvas {
    display: none !important;
  }

  body {
    background: #fff;
    color: #111;
  }

  .prose {
    max-width: none;
    color: #222;
  }

  .article-layout {
    display: block;
  }
}

/* ---------- 24. Ajustări de detaliu ---------- */
sup {
  font-size: 0.68em;
  line-height: 0;
  vertical-align: super;
}

.step code,
.props code,
.limit code,
.note code,
.card code {
  white-space: normal;
  overflow-wrap: anywhere;
}

.input-row > .btn,
.input-row > .pill-toggle {
  height: 46px;
  border-radius: 10px;
  flex: 0 0 auto;
}

.input-row > .btn {
  padding: 0 14px;
}

.tbl td code {
  font-size: 11.5px;
}

.prose .formula {
  font-size: 12.5px;
}

.msg code {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.09);
}

.empty-state {
  color: var(--warn);
}

@media (max-width: 520px) {
  .input-row > .btn,
  .input-row > .pill-toggle {
    height: 42px;
    padding: 0 11px;
    font-size: 11.5px;
  }
}

.chip--code {
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 11px;
}

/* ---------- 25. Tabele stivuite pe mobil (etichete injectate de site.js) ---------- */
@media (max-width: 640px) {
  .tbl--stackable {
    min-width: 0;
    display: block;
  }

  .tbl--stackable thead {
    display: none;
  }

  .tbl--stackable tbody {
    display: block;
  }

  .tbl--stackable tbody tr {
    display: block;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }

  .tbl--stackable tbody tr:last-child {
    border-bottom: 0;
  }

  .tbl--stackable td {
    display: grid;
    grid-template-columns: minmax(84px, 33%) minmax(0, 1fr);
    gap: 4px 14px;
    padding: 7px 16px;
    border: 0;
    white-space: normal;
    text-align: left;
    font-size: 14px;
  }

  .tbl--stackable td::before {
    content: attr(data-label);
    font-family: var(--mono);
    font-size: 9.5px;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: var(--muted);
    line-height: 1.7;
    padding-top: 1px;
  }

  .tbl--stackable td:first-child {
    white-space: normal;
    font-weight: 550;
    color: var(--text);
    padding-top: 10px;
  }

  .tbl--stackable td.val,
  .tbl--stackable td.num {
    white-space: normal;
    text-align: left;
  }

  .tbl--stackable tbody tr:first-child td:first-child {
    padding-top: 7px;
  }
}

/* ==========================================================================
   2026 interface refresh — additive layer, does not change layout structure
   ========================================================================== */

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

::selection { background: rgba(34, 211, 238, .28); color: #f4fbff; }

.site-header {
  background: rgba(6, 8, 13, .72);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .03), 0 12px 40px -24px rgba(0, 0, 0, .8);
}

.nav a { position: relative; transition: color .18s var(--ease); }
.nav a::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: 2px; height: 1px;
  background: var(--grad); transform: scaleX(0); transform-origin: left;
  transition: transform .22s var(--ease); opacity: .9;
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }

.btn {
  transition: transform .16s var(--ease), box-shadow .22s var(--ease),
    background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.985); }
.btn--primary {
  box-shadow: 0 8px 24px -12px rgba(34, 211, 238, .55), inset 0 1px 0 rgba(255, 255, 255, .22);
}
.btn--primary:hover { box-shadow: 0 14px 34px -14px rgba(124, 168, 255, .7), inset 0 1px 0 rgba(255, 255, 255, .3); }
.btn--ghost:hover { border-color: rgba(125, 211, 252, .45); background: rgba(125, 211, 252, .07); }

.card {
  transition: border-color .22s var(--ease), box-shadow .28s var(--ease), transform .22s var(--ease);
}
.card:hover {
  border-color: rgba(255, 255, 255, .14);
  box-shadow: 0 18px 50px -30px rgba(34, 211, 238, .5);
}

input, select, textarea {
  transition: border-color .16s var(--ease), box-shadow .18s var(--ease), background .16s var(--ease);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: rgba(34, 211, 238, .55) !important;
  box-shadow: 0 0 0 3px rgba(34, 211, 238, .14);
}

:focus-visible { outline: 2px solid rgba(34, 211, 238, .7); outline-offset: 2px; border-radius: 6px; }

.tab { transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease); }
.tab:hover { background: rgba(255, 255, 255, .05); }
.tab[aria-selected="true"] {
  background: var(--grad);
  color: #06080d;
  border-color: transparent;
  box-shadow: 0 10px 26px -16px rgba(34, 211, 238, .8);
}

tbody tr { transition: background .15s var(--ease); }
tbody tr:hover { background: rgba(255, 255, 255, .025); }

.prose a, .card a:not(.btn) {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(125, 211, 252, .35);
  transition: text-decoration-color .18s var(--ease), color .18s var(--ease);
}
.prose a:hover, .card a:not(.btn):hover { text-decoration-color: var(--cyan); }

details > summary {
  cursor: pointer;
  color: var(--text-2);
  font-size: 13px;
  letter-spacing: .02em;
  padding: 6px 0;
}
details[open] > summary { color: var(--cyan-soft); }

* { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .14) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .14); border-radius: 10px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, .24); background-clip: content-box; }

/* Language selector — replaces inline styles so it can adapt on mobile */
.lang-wrap {
  position: fixed; right: 14px; bottom: 14px; z-index: 9999;
  display: flex; align-items: center; gap: 8px;
  padding: 6px 8px;
  background: rgba(11, 15, 24, .92);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 12px;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px -14px rgba(0, 0, 0, .9);
  font: 12px system-ui, sans-serif; color: #93a3b8;
}
.lang-select {
  background: #080c14; color: #e8eef7;
  border: 1px solid rgba(255, 255, 255, .12); border-radius: 8px;
  padding: 4px 6px; font: 12px system-ui, sans-serif;
}
@media (max-width: 640px) {
  body { padding-bottom: 54px; }
  .lang-wrap { right: 10px; bottom: 10px; padding: 5px 7px; opacity: .92; }
  .lang-select { max-width: 118px; }
}
