/* ===========================================================================
   Nexus Link — style.css  (PROJECT ETALON)
   Elegant cyberpunk: Playfair Display serif headlines + neon rose/purple
   accents, glass cards, dark blue-violet base. Mobile-first. 8px grid.
   Palette: rose #e94560 / #ff6b7a, bg #1a1a2e, accents purple #9c27b0 /
   orange #ff9800. Built from scratch for Nexus — not a clone of any sibling.
   =========================================================================== */

/* ---- Tokens ------------------------------------------------------------- */
:root {
  --primary: #e94560;
  --primary-2: #ff6b7a;
  --primary-light: #ff8a97;
  --accent: #9c27b0;
  --accent-2: #ff9800;
  --ok: #10b981;

  --bg: #1a1a2e;
  --bg-2: #16162a;
  --bg-card: #23233f;
  --bg-elev: #2a2a4a;
  --text: #ece8f0;
  --muted: #a59db5;
  --border: rgba(233, 69, 96, 0.18);
  --border-soft: rgba(165, 157, 181, 0.16);

  --grad: linear-gradient(135deg, #e94560, #9c27b0);
  --grad-soft: linear-gradient(135deg, rgba(233, 69, 96, 0.14), rgba(156, 39, 176, 0.14));
  --glow: 0 0 20px rgba(233, 69, 96, 0.35);

  --r: 12px;
  --r-sm: 8px;
  --r-lg: 18px;
  --t: 200ms;

  /* 8px spacing scale */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 16px;
  --s-4: 24px;
  --s-5: 32px;
  --s-6: 48px;
  --s-7: 72px;
  --s-8: 96px;

  --ff-head: "Playfair Display", Georgia, "Times New Roman", serif;
  --ff-sub: "Raleway", system-ui, sans-serif;
  --ff-body: "Lato", "Source Sans Pro", system-ui, -apple-system, sans-serif;
  --ff-mono: "DejaVu Sans Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --maxw: 1100px;
}

html[data-theme="light"] {
  --bg: #f6f4f9;
  --bg-2: #efeaf4;
  --bg-card: #ffffff;
  --bg-elev: #ffffff;
  --text: #221a2b;
  --muted: #6a6178;
  --border: rgba(233, 69, 96, 0.30);
  --border-soft: rgba(34, 26, 43, 0.10);
  --grad-soft: linear-gradient(135deg, rgba(233, 69, 96, 0.08), rgba(156, 39, 176, 0.08));
}

/* ---- Reset / base ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--primary-2); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--primary-light); }
:focus-visible {
  outline: 2px solid var(--primary-2);
  outline-offset: 2px;
  border-radius: 4px;
}

h1, h2, h3, h4 {
  font-family: var(--ff-head);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  margin: 0 0 var(--s-3);
}
h1 { font-size: clamp(1.85rem, 5vw, 2.9rem); letter-spacing: -0.01em; }
h2 {
  font-size: clamp(1.45rem, 3.4vw, 1.95rem);
  margin-top: var(--s-2);
  padding-bottom: var(--s-2);
  border-bottom: 1px solid var(--border);
}
h3 { font-size: 1.18rem; font-family: var(--ff-sub); font-weight: 700; letter-spacing: .01em; }
h4 { font-size: 1rem; font-family: var(--ff-sub); }
p { margin: 0 0 var(--s-3); max-width: 72ch; }
strong { color: var(--text); font-weight: 700; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--s-3); }
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.muted { color: var(--muted); }
.eyebrow {
  display: inline-block;
  font-family: var(--ff-sub);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--primary-2);
  margin-bottom: var(--s-3);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--primary);
  color: #fff;
  padding: var(--s-2) var(--s-3);
  z-index: 200;
  border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; }

/* ---- Header / nav ------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(26, 26, 46, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
html[data-theme="light"] .site-header { background: rgba(246, 244, 249, 0.82); }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  min-height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--text);
  letter-spacing: .01em;
}
.brand:hover { color: var(--text); }
.brand__mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--grad);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: var(--glow);
  font-family: var(--ff-head);
}
.nav__links {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: var(--s-4);
}
.nav__links a {
  font-family: var(--ff-sub);
  font-weight: 600;
  color: var(--text);
  padding: var(--s-2) 0;
  position: relative;
}
.nav__links a:hover,
.nav__links a[aria-current="page"] { color: var(--primary-2); }
.nav__links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--grad);
  border-radius: 2px;
}
.nav__actions { display: flex; align-items: center; gap: var(--s-2); }
.theme-toggle, .nav-toggle {
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text);
  cursor: pointer;
  font-size: 1.1rem;
  transition: border-color var(--t), background var(--t);
}
.theme-toggle:hover, .nav-toggle:hover { border-color: var(--primary-2); background: var(--grad-soft); }

.nav__links.open {
  display: flex;
  position: absolute;
  top: 64px;
  left: 0; right: 0;
  flex-direction: column;
  gap: 0;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  padding: var(--s-2) var(--s-3) var(--s-4);
}
.nav__links.open li { border-bottom: 1px solid var(--border-soft); }
.nav__links.open a { display: block; padding: var(--s-3) 0; font-size: 1.05rem; }

/* ---- Layout sections ---------------------------------------------------- */
.section { padding: var(--s-6) 0; }
.section + .section { padding-top: var(--s-4); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 520ms ease, transform 520ms ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---- Hero / INSTANT VALUE ----------------------------------------------- */
.hero {
  position: relative;
  padding: var(--s-7) 0 var(--s-6);
  overflow: hidden;
  border-bottom: 1px solid var(--border-soft);
}
.hero::before {
  /* faint neon grid — elegant cyberpunk texture */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(233, 69, 96, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(156, 39, 176, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 35%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 35%, transparent 78%);
  pointer-events: none;
}
.hero__blob {
  position: absolute;
  top: -120px;
  right: -80px;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle at 40% 40%, rgba(233, 69, 96, 0.30), transparent 62%),
              radial-gradient(circle at 70% 60%, rgba(156, 39, 176, 0.26), transparent 60%);
  filter: blur(46px);
  pointer-events: none;
  animation: floatBlob 16s ease-in-out infinite alternate;
}
@keyframes floatBlob {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-40px, 30px) scale(1.08); }
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { max-width: 18ch; }
.hero__intro { font-size: 1.08rem; color: var(--muted); max-width: 66ch; }
.hero__mirrors-link {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  font-family: var(--ff-sub);
  font-weight: 700;
  font-size: 1.02rem;
}
.hero__mirrors-link::after { content: ""; }
.hero__mirrors-link:hover { transform: translateX(2px); }

/* ---- Onion box ---------------------------------------------------------- */
.onion-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-4);
  margin: var(--s-4) 0 var(--s-3);
  max-width: 760px;
  box-shadow: var(--glow);
  position: relative;
  overflow: hidden;
  animation: onionPulse 3.4s ease-in-out infinite;
}
@keyframes onionPulse {
  0%, 100% { box-shadow: 0 0 16px rgba(233, 69, 96, 0.22); }
  50%      { box-shadow: 0 0 30px rgba(233, 69, 96, 0.42); }
}
.onion-box__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
  flex-wrap: wrap;
  margin-bottom: var(--s-3);
  font-family: var(--ff-sub);
  font-weight: 700;
  letter-spacing: .02em;
}
.onion-row {
  display: flex;
  align-items: stretch;
  gap: var(--s-2);
  flex-wrap: wrap;
}
.onion-url {
  flex: 1 1 280px;
  min-width: 0;
  font-family: var(--ff-mono);
  font-size: .94rem;
  line-height: 1.5;
  color: var(--primary-light);
  background: var(--bg-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-sm);
  padding: var(--s-3);
  word-break: break-all;
  overflow-wrap: anywhere;
  user-select: all;
}
.onion-note { margin: var(--s-3) 0 0; font-size: .9rem; color: var(--muted); }

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  font-family: var(--ff-sub);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  min-height: 44px;
  padding: 0 var(--s-4);
  border-radius: var(--r);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--t), box-shadow var(--t), background var(--t), border-color var(--t);
  text-align: center;
}
.btn--lg { min-height: 52px; padding: 0 var(--s-5); font-size: 1.05rem; }
.btn--primary {
  background: var(--grad);
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--glow);
}
.btn--primary::after {
  /* shimmer */
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-18deg);
  transition: left 600ms ease;
}
.btn--primary:hover { transform: translateY(-2px); }
.btn--primary:hover::after { left: 130%; }
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn--ghost:hover { border-color: var(--primary-2); background: var(--grad-soft); color: var(--text); transform: translateY(-2px); }

.copy-btn {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 var(--s-4);
  font-family: var(--ff-sub);
  font-weight: 700;
  font-size: .95rem;
  color: #fff;
  background: var(--grad);
  border: none;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: transform var(--t), filter var(--t);
}
.copy-btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.copy-btn.copied { background: var(--ok); }

/* ---- Status pills ------------------------------------------------------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  font-family: var(--ff-sub);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid;
}
.pill__dot { width: 8px; height: 8px; border-radius: 50%; }
.pill--online {
  color: var(--ok);
  border-color: rgba(16, 185, 129, 0.45);
  background: rgba(16, 185, 129, 0.10);
}
.pill--online .pill__dot { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.pill--checking {
  color: var(--accent-2);
  border-color: rgba(255, 152, 0, 0.45);
  background: rgba(255, 152, 0, 0.10);
}
.pill--checking .pill__dot { background: var(--accent-2); animation: blink 1.3s ease-in-out infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

/* ---- Cards / grids ------------------------------------------------------ */
.grid { display: grid; gap: var(--s-3); grid-template-columns: 1fr; margin-top: var(--s-4); }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--r);
  padding: var(--s-4);
  transition: transform var(--t), border-color var(--t), box-shadow var(--t);
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28), var(--glow);
}
.card h3 { margin-bottom: var(--s-2); color: var(--primary-2); }
.card p { margin-bottom: 0; }
.card__num {
  font-family: var(--ff-head);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
  margin-bottom: var(--s-1);
}

/* ordered/unordered content lists */
.content-list { padding-left: 1.2rem; margin: 0 0 var(--s-3); max-width: 72ch; }
.content-list li { margin-bottom: var(--s-2); }
.content-list li::marker { color: var(--primary-2); font-weight: 700; }

/* ---- Steps -------------------------------------------------------------- */
.steps { counter-reset: step; list-style: none; padding: 0; margin: var(--s-4) 0 var(--s-3); display: grid; gap: var(--s-3); }
.steps li {
  counter-increment: step;
  position: relative;
  padding: var(--s-3) var(--s-3) var(--s-3) calc(var(--s-6) + 4px);
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--r);
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: var(--s-3);
  top: var(--s-3);
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-family: var(--ff-head);
  font-weight: 700;
}

/* ---- Mirror table ------------------------------------------------------- */
.table-wrap { margin: var(--s-4) 0 var(--s-3); border: 1px solid var(--border-soft); border-radius: var(--r); overflow: hidden; }
table.mirrors { width: 100%; border-collapse: collapse; font-size: .95rem; }
table.mirrors thead { display: none; }
table.mirrors th, table.mirrors td { text-align: left; padding: var(--s-3); }
table.mirrors tbody tr { display: block; border-bottom: 1px solid var(--border-soft); background: var(--bg-card); }
table.mirrors tbody tr:last-child { border-bottom: 0; }
table.mirrors td { display: block; padding: var(--s-2) var(--s-3); }
table.mirrors td.cell-url { padding-top: var(--s-3); }
table.mirrors td.cell-action { padding-bottom: var(--s-3); }
table.mirrors td::before {
  content: attr(data-label);
  display: block;
  font-family: var(--ff-sub);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--s-1);
}
.mirror-url {
  font-family: var(--ff-mono);
  font-size: .9rem;
  color: var(--primary-light);
  word-break: break-all;
  overflow-wrap: anywhere;
  user-select: all;
  display: block;
}

/* ---- FAQ accordion ------------------------------------------------------ */
.faq { margin: var(--s-4) 0 var(--s-3); display: grid; gap: var(--s-2); }
.faq__item { background: var(--bg-card); border: 1px solid var(--border-soft); border-radius: var(--r); overflow: hidden; }
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  text-align: left;
  font-family: var(--ff-sub);
  font-weight: 700;
  font-size: 1.04rem;
  color: var(--text);
  background: transparent;
  border: 0;
  padding: var(--s-3) var(--s-4);
  cursor: pointer;
  min-height: 44px;
}
.faq__q::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--primary-2);
  transition: transform var(--t);
  line-height: 1;
}
.faq__item.open .faq__q::after { transform: rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height 300ms ease; }
.faq__a p { margin: 0; padding: 0 var(--s-4) var(--s-4); color: var(--muted); }

/* ---- Crypto widget ------------------------------------------------------ */
.crypto { display: grid; grid-template-columns: 1fr; gap: var(--s-3); margin: var(--s-4) 0 var(--s-3); }
.crypto__coin {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--r);
  padding: var(--s-4);
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
}
.crypto__sym { font-family: var(--ff-sub); font-weight: 700; letter-spacing: .04em; color: var(--primary-2); }
.crypto__name { font-size: .82rem; color: var(--muted); }
.crypto__price { font-family: var(--ff-head); font-size: 1.5rem; font-weight: 700; }
.crypto__chg { font-size: .85rem; font-weight: 700; }
.crypto__chg.up { color: var(--ok); }
.crypto__chg.down { color: var(--primary); }

/* ---- Resource links ----------------------------------------------------- */
.resource-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-2) var(--s-4);
  list-style: none;
  padding: 0;
  margin-top: var(--s-4);
}
.resource-links a {
  display: block;
  font-family: var(--ff-sub);
  font-weight: 600;
  padding: var(--s-2) 0;
  color: var(--text);
  border-bottom: 1px solid transparent;
}
.resource-links a:hover { color: var(--primary-2); border-bottom-color: var(--border); }

/* ---- Callout / notice --------------------------------------------------- */
.notice {
  background: var(--grad-soft);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: var(--r);
  padding: var(--s-3) var(--s-4);
  margin: var(--s-4) 0;
  color: var(--text);
}
.notice p { margin: 0; }

/* ---- CTA band ----------------------------------------------------------- */
.cta-band {
  text-align: center;
  background: var(--grad-soft);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-6) var(--s-4);
}
.cta-band h2 { border: 0; padding: 0; }
.cta-row { display: flex; flex-wrap: wrap; gap: var(--s-3); justify-content: center; margin-top: var(--s-4); }

/* ---- Footer ------------------------------------------------------------- */
.site-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: var(--s-6) 0 var(--s-4);
  margin-top: var(--s-6);
}
.footer-grid { display: grid; grid-template-columns: 1fr; gap: var(--s-5); }
.site-footer h4 { color: var(--primary-2); margin-bottom: var(--s-2); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-2); }
.site-footer ul a { color: var(--muted); font-family: var(--ff-sub); }
.site-footer ul a:hover { color: var(--primary-2); }
.disclaimer { color: var(--muted); font-size: .9rem; max-width: 48ch; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  justify-content: space-between;
  margin-top: var(--s-5);
  padding-top: var(--s-3);
  border-top: 1px solid var(--border-soft);
  color: var(--muted);
  font-size: .82rem;
}

/* ===========================================================================
   Responsive — mobile-first; expand at breakpoints (Nexus USP = mobile-first)
   =========================================================================== */
@media (min-width: 720px) {
  .nav__links { display: flex; }
  .nav-toggle { display: none; }
  .nav__links.open { position: static; flex-direction: row; background: transparent; border: 0; padding: 0; }
  .nav__links.open li { border: 0; }
  .nav__links.open a { display: inline; padding: var(--s-2) 0; font-size: 1rem; }

  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .crypto { grid-template-columns: repeat(3, 1fr); }
  .resource-links { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }

  /* restore real table layout on wider screens */
  table.mirrors thead { display: table-header-group; }
  table.mirrors thead th {
    font-family: var(--ff-sub);
    font-size: .76rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
    border-bottom: 1px solid var(--border);
    background: var(--bg-elev);
  }
  table.mirrors tbody tr { display: table-row; }
  table.mirrors tbody tr:hover { background: var(--bg-elev); }
  table.mirrors td { display: table-cell; vertical-align: middle; padding: var(--s-3); }
  table.mirrors td::before { display: none; }
}

@media (min-width: 960px) {
  .resource-links { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: 1fr 1fr; }
}

/* ---- Reduced motion ----------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn--primary::after { display: none; }
}

/* ---- Media (hero figure + inline images) -------------------------------- */
.hero-media,
figure { margin: 0; }
.hero-media img,
figure img { max-width: 100%; height: auto; display: block; border-radius: 12px; margin: 1.5rem 0; }

/* ===========================================================================
   Nexus Market — market-role addendum (appended to the Nexus base above).
   Adds: stat grid (numbers), trust badges, comparison-table Yes/No cells.
   Same Nexus tokens / 8px scale / reduced-motion as the base. No new colours
   beyond the existing rose/purple palette. Mobile: tables → stacked cards.
   =========================================================================== */

/* ---- Stat grid (users, vendors, rating, rank, launch) -------------------- */
.stat-grid { display: grid; gap: var(--s-3); grid-template-columns: repeat(2, 1fr); margin: var(--s-5) 0 var(--s-3); }
.stat {
  background: linear-gradient(180deg, var(--bg-card), var(--bg-elev));
  border: 1px solid var(--border-soft); border-radius: var(--r);
  padding: var(--s-4) var(--s-3); text-align: center;
  transition: transform var(--t), border-color var(--t), box-shadow var(--t);
}
.stat:hover { transform: translateY(-3px); border-color: var(--border); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28), var(--glow); }
.stat__num {
  font-family: var(--ff-head);
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.1rem); font-weight: 700; line-height: 1.1;
  font-variant-numeric: tabular-nums;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  display: block;
}
.stat__label { display: block; margin-top: var(--s-2); font-size: .85rem; color: var(--muted); font-family: var(--ff-sub); }

/* ---- Trust badges (DAO governance · multisig escrow · security audits) --- */
.badges { display: flex; flex-wrap: wrap; gap: var(--s-2); margin: var(--s-4) 0 0; padding: 0; list-style: none; }
.badge {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-family: var(--ff-sub); font-size: .85rem; font-weight: 700; color: var(--primary-2);
  background: var(--grad-soft); border: 1px solid var(--border);
  padding: var(--s-2) var(--s-3); border-radius: 999px;
}
.badge svg { width: 15px; height: 15px; flex: 0 0 auto; }

/* ---- Feature grid (auto-fit, for 8 product feature cards) ---------------- */
.grid--auto { grid-template-columns: 1fr; }

/* ---- Comparison table (Nexus vs Torzon/DrugHub) -------------------------- */
/* Reuses .mirrors table structure; adds yes/no cells + own-column tint.
   On wide screens it behaves like a real table; on mobile it stacks (base
   table.mirrors mobile rules already collapse rows into labelled cards). */
.compare-table th[scope="col"] { text-align: center; }
.compare-table td { text-align: center; }
.compare-table th[scope="row"] { text-align: left; font-weight: 700; color: var(--text); font-family: var(--ff-sub); }
.compare-table .col-own { color: var(--primary-light); }
.compare-table tbody td.col-own { background: var(--grad-soft); font-weight: 700; }
.cell-yes { color: var(--ok); font-weight: 700; }
.cell-no  { color: var(--muted); }

@media (min-width: 720px) {
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
  .grid--auto { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); display: grid; gap: var(--s-3); margin-top: var(--s-4); }
}

/* Wide screens: comparison table cells centred + own-column tinted (table layout
   restored by base table.mirrors @720px). */
@media (min-width: 720px) {
  .compare-table th[scope="row"] { white-space: nowrap; }
}

/* Mobile (<720px): comparison rows stack as labelled cards, matching the
   base mirror-table collapse. Row header becomes the card title. */
@media (max-width: 719px) {
  .compare-table thead { display: none; }
  .compare-table tbody tr { display: block; border-bottom: 1px solid var(--border-soft); background: var(--bg-card); padding: var(--s-2) 0; }
  .compare-table th[scope="row"] {
    display: block; padding: var(--s-3) var(--s-3) var(--s-1);
    font-size: 1rem; color: var(--primary-2); border: 0;
  }
  .compare-table td {
    display: flex; justify-content: space-between; align-items: center; gap: var(--s-3);
    padding: var(--s-1) var(--s-3); text-align: right;
  }
  .compare-table td::before {
    content: attr(data-label); display: inline; margin: 0;
    font-family: var(--ff-sub); font-size: .72rem; letter-spacing: .06em;
    text-transform: uppercase; color: var(--muted); font-weight: 700; text-align: left;
  }
  .compare-table tbody td.col-own { background: var(--grad-soft); }
}
