/* ===========================================================================
   Vortex Link — style.css  (PROJECT ETALON — Vortex)
   Saturated cyberpunk: Orbitron / Michroma futuristic headlines, Exo 2 body,
   3-colour neon gradient (violet -> cyan -> green), glass cards, deep
   black-violet base tuned for Tor. Mobile-first. 8px grid.
   Palette: primary #7c3aed, bg #0A0A0A / #1A0B2E, accents green #10b981 /
   amber #f59e0b / cyan #06b6d4. Built from scratch for Vortex — NOT a clone
   of Nexus/Torzon (different fonts, gradient, base, particle layer).
   =========================================================================== */

/* ---- Tokens ------------------------------------------------------------- */
:root {
  --primary: #7c3aed;
  --primary-dark: #6d28d9;
  --primary-light: #8b5cf6;
  --accent: #06b6d4;   /* cyan  */
  --accent-2: #f59e0b; /* amber */
  --ok: #10b981;       /* green */

  --bg: #0A0A0A;
  --bg-2: #120a1f;
  --bg-3: #1A0B2E;
  --bg-card: #170d28;
  --bg-elev: #211238;
  --text: #ece9f5;
  --muted: #a99fc4;
  --border: rgba(124, 58, 237, 0.22);
  --border-soft: rgba(169, 159, 196, 0.16);

  --grad: linear-gradient(135deg, #7c3aed, #06b6d4, #10b981);
  --grad-2: linear-gradient(135deg, #7c3aed, #8b5cf6);
  --grad-soft: linear-gradient(135deg, rgba(124, 58, 237, 0.16), rgba(6, 182, 212, 0.12), rgba(16, 185, 129, 0.10));
  --glow: 0 0 22px rgba(124, 58, 237, 0.42);

  --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: "Orbitron", "Michroma", "Segoe UI", system-ui, sans-serif;
  --ff-sub: "Michroma", "Orbitron", system-ui, sans-serif;
  --ff-body: "Exo 2", "Saira Condensed", system-ui, -apple-system, sans-serif;
  --ff-mono: "DejaVu Sans Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --maxw: 1120px;
}

html[data-theme="light"] {
  --bg: #f4f1fb;
  --bg-2: #ece6f7;
  --bg-3: #e6def4;
  --bg-card: #ffffff;
  --bg-elev: #ffffff;
  --text: #1c1230;
  --muted: #5f5577;
  --border: rgba(124, 58, 237, 0.32);
  --border-soft: rgba(28, 18, 48, 0.10);
  --grad-soft: linear-gradient(135deg, rgba(124, 58, 237, 0.09), rgba(6, 182, 212, 0.07), rgba(16, 185, 129, 0.06));
  --glow: 0 0 18px rgba(124, 58, 237, 0.25);
}

/* ---- 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;
  position: relative;
}

/* faint full-page neon grid behind everything (subtle cyberpunk texture) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(124, 58, 237, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 182, 212, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
html[data-theme="light"] body::before { opacity: .5; }
/* deep radial glow anchored top — gives the violet "vortex" ambience */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 50% at 50% -8%, rgba(124, 58, 237, 0.20), transparent 60%),
    radial-gradient(ellipse 60% 50% at 90% 12%, rgba(6, 182, 212, 0.10), transparent 55%);
  pointer-events: none;
}
html[data-theme="light"] body::after { opacity: .35; }

img { max-width: 100%; height: auto; }
a { color: var(--primary-light); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--accent); }
:focus-visible {
  outline: 2px solid var(--primary-light);
  outline-offset: 2px;
  border-radius: 4px;
}

h1, h2, h3, h4 {
  font-family: var(--ff-head);
  font-weight: 700;
  line-height: 1.18;
  color: var(--text);
  margin: 0 0 var(--s-3);
}
h1 { font-size: clamp(1.7rem, 4.8vw, 2.7rem); letter-spacing: 0.01em; }
h2 {
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  margin-top: var(--s-2);
  padding-bottom: var(--s-2);
  border-bottom: 1px solid var(--border);
  letter-spacing: 0.01em;
}
h3 { font-size: 1.1rem; font-family: var(--ff-sub); font-weight: 400; letter-spacing: .01em; }
h4 { font-size: .92rem; font-family: var(--ff-sub); font-weight: 400; letter-spacing: .03em; }
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: .72rem;
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  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(10, 10, 10, 0.74);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
html[data-theme="light"] .site-header { background: rgba(244, 241, 251, 0.84); }
.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.18rem;
  color: var(--text);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.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.05rem;
  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: 400;
  font-size: .92rem;
  letter-spacing: .04em;
  color: var(--text);
  padding: var(--s-2) 0;
  position: relative;
}
.nav__links a:hover,
.nav__links a[aria-current="page"] { color: var(--primary-light); }
.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-light); 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-3);
  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: 1rem; }

/* ---- 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 {
  /* denser neon grid local to the hero — saturated cyberpunk */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(124, 58, 237, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 182, 212, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 85% 75% at 50% 0%, #000 35%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 0%, #000 35%, transparent 80%);
  pointer-events: none;
}
/* swirling 3-colour "vortex" blob */
.hero__blob {
  position: absolute;
  top: -140px;
  right: -90px;
  width: 480px;
  height: 480px;
  background:
    radial-gradient(circle at 38% 38%, rgba(124, 58, 237, 0.34), transparent 60%),
    radial-gradient(circle at 68% 58%, rgba(6, 182, 212, 0.24), transparent 58%),
    radial-gradient(circle at 50% 80%, rgba(16, 185, 129, 0.18), transparent 60%);
  filter: blur(50px);
  pointer-events: none;
  animation: swirlBlob 18s linear infinite;
}
@keyframes swirlBlob {
  from { transform: rotate(0deg) scale(1); }
  50%  { transform: rotate(180deg) scale(1.1); }
  to   { transform: rotate(360deg) scale(1); }
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { max-width: 20ch; }
.hero__intro { font-size: 1.06rem; 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: 400;
  font-size: .96rem;
  letter-spacing: .03em;
}
.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: 780px;
  box-shadow: var(--glow);
  position: relative;
  overflow: hidden;
  animation: onionPulse 3.6s ease-in-out infinite;
}
/* gradient hairline at the top edge of the onion box */
.onion-box::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad);
  opacity: .9;
}
@keyframes onionPulse {
  0%, 100% { box-shadow: 0 0 16px rgba(124, 58, 237, 0.24); }
  50%      { box-shadow: 0 0 32px rgba(124, 58, 237, 0.46); }
}
.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: 400;
  font-size: .92rem;
  letter-spacing: .03em;
}
.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: .92rem;
  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: 400;
  font-size: .96rem;
  letter-spacing: .03em;
  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: 1rem; }
.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.32), 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(--accent); 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: 400;
  font-size: .88rem;
  letter-spacing: .03em;
  color: #fff;
  background: var(--grad-2);
  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.1); }
.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: .72rem;
  font-weight: 400;
  letter-spacing: .08em;
  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(245, 158, 11, 0.45);
  background: rgba(245, 158, 11, 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);
  position: relative;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.34), var(--glow);
}
.card h3 { margin-bottom: var(--s-2); color: var(--primary-light); }
.card p { margin-bottom: 0; }
.card__num {
  font-family: var(--ff-head);
  font-size: 1.9rem;
  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(--accent); 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-2);
  color: #fff;
  font-family: var(--ff-head);
  font-weight: 700;
  box-shadow: 0 0 12px rgba(124, 58, 237, 0.4);
}

/* ---- 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: .68rem;
  letter-spacing: .1em;
  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: 400;
  font-size: .98rem;
  letter-spacing: .01em;
  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(--accent);
  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 (6 coins for Vortex) --------------------------------- */
.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);
  position: relative;
  overflow: hidden;
}
.crypto__coin::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: var(--grad);
  opacity: .7;
}
.crypto__sym { font-family: var(--ff-sub); font-weight: 400; letter-spacing: .04em; color: var(--primary-light); }
.crypto__name { font-size: .8rem; color: var(--muted); }
.crypto__price { font-family: var(--ff-head); font-size: 1.4rem; font-weight: 700; }
.crypto__chg { font-size: .85rem; font-weight: 700; }
.crypto__chg.up { color: var(--ok); }
.crypto__chg.down { color: var(--accent-2); }

/* ---- 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: 400;
  font-size: .9rem;
  letter-spacing: .01em;
  padding: var(--s-2) 0;
  color: var(--text);
  border-bottom: 1px solid transparent;
}
.resource-links a:hover { color: var(--accent); border-bottom-color: var(--border); }

/* ---- Callout / notice --------------------------------------------------- */
.notice {
  background: var(--grad-soft);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  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);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 0%, rgba(124, 58, 237, 0.18), transparent 65%);
  pointer-events: none;
}
.cta-band > * { position: relative; }
.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-light); 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); font-size: .86rem; }
.site-footer ul a:hover { color: var(--accent); }
.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;
}

/* ---- Breadcrumb --------------------------------------------------------- */
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }

/* ---- 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; border: 1px solid var(--border-soft); }
.media-figure { margin: var(--s-4) 0; }
.media-figure figcaption { font-size: .82rem; color: var(--muted); margin-top: calc(-1 * var(--s-2)); }

/* ===========================================================================
   Responsive — mobile-first; expand at breakpoints
   =========================================================================== */
@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: .92rem; }

  .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: .72rem;
    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: 980px) {
  .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; }
}

/* ===========================================================================
   Vortex Market — market-role addendum (appended to the Vortex base above).
   Adds: stat grid (numbers), trust badges, comparison-table cells, feature
   grid. Same Vortex tokens (#7c3aed primary, 3-colour violet->cyan->green
   gradient), 8px scale, fonts and reduced-motion as the base — no new colours.
   Mobile: comparison table collapses to labelled stacked cards.
   =========================================================================== */

/* ---- Stat grid (rank, users, vendors, rating, 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);
  position: relative; overflow: hidden;
}
.stat::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--grad); opacity: .8;
}
.stat:hover { transform: translateY(-3px); border-color: var(--border); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 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); letter-spacing: .02em; }

/* ---- Trust badges (six coins · multisig escrow · Security PIN) ----------- */
.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: 400; letter-spacing: .02em;
  color: var(--primary-light);
  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 6+ market feature cards) --------------- */
.grid--auto { grid-template-columns: 1fr; gap: var(--s-3); margin-top: var(--s-4); }

/* ---- Comparison table (Vortex vs Torzon/Nexus) -------------------------- */
/* Reuses the base .mirrors table structure; adds centred cells + own-column
   tint. Wide screens behave like a real table; mobile stacks into labelled
   cards (rules below). */
.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(258px, 1fr)); display: grid; gap: var(--s-3); margin-top: var(--s-4); }
  .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 tbody tr:last-child { border-bottom: 0; }
  .compare-table th[scope="row"] {
    display: block; padding: var(--s-3) var(--s-3) var(--s-1);
    font-size: 1rem; color: var(--primary-light); 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: 400; text-align: left;
  }
  .compare-table tbody td.col-own { background: var(--grad-soft); }
}
