/* ===========================================================================
   Mars Market Link — style.css  (PROJECT ETALON — built from scratch)
   Direction: RED PLANET / RUST. Deep Martian near-black #140805 base, a rust
   signal (#c1440e) warming through ember (#e07a3f) to sand (#ffb066) on
   gradients. Headlines in Orbitron (geometric, spacefaring), body in Exo 2.
   Frosted glass cards with a rust hairline and hover-lift, green verified
   pills (#3fb950), a soft ember glow on the address box, and a restrained
   dust grain over the hero. Dual-network identity (Tor .onion + I2P .i2p).
   A bespoke Mars identity — rust over orange, no condensed poster type, no
   serif. Mobile-first. 8px grid.
   =========================================================================== */

/* ---- Tokens ------------------------------------------------------------- */
:root {
  --primary: #c1440e;        /* rust */
  --primary-dark: #5c1a08;
  --primary-darker: #4a1406;
  --primary-light: #e07a3f;  /* ember */
  --primary-soft: #ef8b53;   /* brightened ember for text on near-black */

  --accent-sand: #ffb066;    /* sand highlight */
  --accent-brick: #7a1f0a;   /* dark brick */
  --ok: #3fb950;             /* verified / online green */
  --warn: #ffb066;

  --bg: #140805;             /* deep Martian */
  --bg-2: #1c0d07;
  --bg-card: #211009;
  --bg-elev: #2b150c;
  --text: #f1e6df;
  --muted: #b39c8f;
  --border: rgba(193, 68, 14, 0.32);          /* rust hairline */
  --border-soft: rgba(241, 230, 223, 0.09);

  --rust-05: rgba(193, 68, 14, 0.05);
  --rust-10: rgba(193, 68, 14, 0.10);
  --rust-18: rgba(193, 68, 14, 0.18);
  --rust-40: rgba(193, 68, 14, 0.40);

  --grad: linear-gradient(135deg, #c1440e, #7a1f0a);
  --grad-warm: linear-gradient(135deg, #e07a3f, #c1440e);
  --grad-soft: linear-gradient(135deg, rgba(193, 68, 14, 0.14), rgba(122, 31, 10, 0.07));
  --glow: 0 0 20px rgba(193, 68, 14, 0.35);

  --r: 10px;
  --r-sm: 7px;
  --r-lg: 16px;
  --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", "Rajdhani", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ff-body: "Exo 2", "Titillium Web", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ff-mono: "DejaVu Sans Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --maxw: 1100px;
}

html[data-theme="light"] {
  --bg: #f6efe9;
  --bg-2: #efe4db;
  --bg-card: #ffffff;
  --bg-elev: #ffffff;
  --text: #1c0d07;
  --muted: #6a5a50;
  --primary-soft: #a8380b;
  --border: rgba(193, 68, 14, 0.34);
  --border-soft: rgba(28, 13, 7, 0.10);
  --grad-soft: linear-gradient(135deg, rgba(193, 68, 14, 0.10), rgba(122, 31, 10, 0.05));
}

/* ---- 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.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--primary-soft); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--primary-light); }
:focus-visible {
  outline: 2px solid var(--primary-light);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Geometric, spacefaring headline type — Orbitron */
h1, h2, h3, h4 {
  font-family: var(--ff-head);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
  margin: 0 0 var(--s-3);
  letter-spacing: 0.005em;
}
h1 {
  font-size: clamp(1.95rem, 5.6vw, 3.1rem);
  font-weight: 800;
  letter-spacing: 0.01em;
}
h2 {
  font-size: clamp(1.45rem, 3.3vw, 2.05rem);
  font-weight: 700;
  margin-top: var(--s-2);
  padding-bottom: var(--s-3);
  position: relative;
  letter-spacing: 0.005em;
}
/* short rust underline under each H2 (Mars signature divider) */
h2::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 58px;
  height: 3px;
  border-radius: 3px;
  background: var(--grad-warm);
}
h3 {
  font-size: 1.22rem;
  font-weight: 600;
  color: var(--text);
}
h4 { font-size: 1rem; font-weight: 600; letter-spacing: 0.02em; }
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-4); }
.muted { color: var(--muted); }
.eyebrow {
  display: inline-block;
  font-family: var(--ff-head);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--primary-soft);
  margin-bottom: var(--s-3);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  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(20, 8, 5, 0.76);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
html[data-theme="light"] .site-header { background: rgba(246, 239, 233, 0.86); }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  min-height: 66px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--ff-head);
  font-weight: 800;
  font-size: 1.24rem;
  letter-spacing: .04em;
  color: var(--text);
}
.brand:hover { color: var(--text); }
.brand__mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--grad-warm);
  color: #fff;
  box-shadow: var(--glow);
  flex: 0 0 auto;
  overflow: hidden;
}
.brand__mark svg { width: 26px; height: 26px; display: block; }
.brand__accent { color: var(--primary-soft); }
.nav__links {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: var(--s-5);
}
.nav__links a {
  font-family: var(--ff-head);
  font-weight: 500;
  font-size: .94rem;
  letter-spacing: .03em;
  color: var(--text);
  padding: var(--s-2) 0;
  position: relative;
}
.nav__links a:hover,
.nav__links a[aria-current="page"] { color: var(--primary-soft); }
.nav__links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-warm);
}
.nav__actions { display: flex; align-items: center; gap: var(--s-2); }
.badge-verified {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--ff-head);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ok);
  border: 1px solid rgba(63, 185, 80, 0.42);
  background: rgba(63, 185, 80, 0.10);
  border-radius: 999px;
  padding: 5px 10px;
  white-space: nowrap;
}
.badge-verified::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 7px var(--ok);
}
.theme-toggle, .nav-toggle {
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  background: transparent;
  border: 1px solid var(--border-soft);
  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); background: var(--rust-10); }

.nav__links.open {
  display: flex;
  position: absolute;
  top: 66px;
  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-4) 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.04rem; }

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

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

/* ---- Hero / INSTANT VALUE ----------------------------------------------- */
.hero {
  position: relative;
  padding: var(--s-8) 0 var(--s-6);
  overflow: hidden;
  border-bottom: 1px solid var(--border-soft);
  background:
    radial-gradient(ellipse 70% 50% at 80% -5%, rgba(193, 68, 14, 0.16), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg));
}
/* warm rust↔sand gradient blob — restrained, reduced-motion aware */
.hero__glow {
  position: absolute;
  top: -180px;
  right: -120px;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle at 50% 50%, rgba(224, 122, 63, 0.24), rgba(193, 68, 14, 0.10) 45%, transparent 68%);
  filter: blur(48px);
  pointer-events: none;
  animation: glowDrift 21s ease-in-out infinite alternate;
}
/* fine Martian dust grain over the hero (restrained) */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255, 176, 102, 0.06) 1px, transparent 0),
    radial-gradient(circle at 1px 1px, rgba(193, 68, 14, 0.05) 1px, transparent 0);
  background-size: 23px 23px, 41px 41px;
  background-position: 0 0, 11px 7px;
  mask-image: radial-gradient(ellipse 90% 80% at 25% 8%, #000 22%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 25% 8%, #000 22%, transparent 80%);
  pointer-events: none;
}
@keyframes glowDrift {
  from { transform: translate(0, 0) scale(1); opacity: .8; }
  to   { transform: translate(-36px, 28px) scale(1.07); opacity: 1; }
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { max-width: 19ch; }
.hero__intro { font-size: 1.1rem; color: var(--muted); max-width: 64ch; }
.hero__mirrors-link {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  font-family: var(--ff-head);
  font-weight: 600;
  font-size: .98rem;
  letter-spacing: .02em;
  transition: transform var(--t);
}
.hero__mirrors-link:hover { transform: translateX(3px); }

/* ---- Address box (Mars dual-network: Tor .onion + I2P .i2p) ------------- */
.onion-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-4);
  margin: var(--s-5) 0 var(--s-3);
  max-width: 820px;
  box-shadow: var(--glow);
  position: relative;
  overflow: hidden;
  animation: onionPulse 3.8s ease-in-out infinite;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.onion-box::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-warm);
}
@keyframes onionPulse {
  0%, 100% { box-shadow: 0 0 18px rgba(193, 68, 14, 0.22); }
  50%      { box-shadow: 0 0 32px rgba(224, 122, 63, 0.40); }
}
.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-head);
  font-weight: 600;
  letter-spacing: .02em;
}
.addr-grid { display: grid; gap: var(--s-2); }
.addr-row {
  display: flex;
  align-items: stretch;
  gap: var(--s-2);
  flex-wrap: wrap;
  padding: var(--s-2);
  background: var(--bg-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-sm);
}
.addr-row__net {
  flex: 0 0 100%;
  font-family: var(--ff-head);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-sand);
}
.onion-row {
  display: flex;
  align-items: stretch;
  gap: var(--s-2);
  flex-wrap: wrap;
}
.onion-url {
  flex: 1 1 240px;
  min-width: 0;
  font-family: var(--ff-mono);
  font-size: .9rem;
  line-height: 1.5;
  color: var(--primary-soft);
  background: transparent;
  border: 0;
  border-radius: var(--r-sm);
  padding: var(--s-2) 0;
  word-break: break-all;
  overflow-wrap: anywhere;
  user-select: all;
}
.onion-note { margin: var(--s-3) 0 0; font-size: .9rem; color: var(--muted); }
.onion-note code {
  font-family: var(--ff-mono);
  font-size: .84rem;
  color: var(--accent-sand);
  background: var(--rust-10);
  padding: 1px 5px;
  border-radius: 4px;
}

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  font-family: var(--ff-head);
  font-weight: 600;
  font-size: .96rem;
  letter-spacing: .02em;
  line-height: 1;
  min-height: 46px;
  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: 54px; padding: 0 var(--s-5); font-size: 1rem; }
.btn--primary {
  background: var(--grad-warm);
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--glow);
}
.btn--primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.28), 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); background: var(--rust-10); color: var(--text); transform: translateY(-2px); }

.copy-btn {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 var(--s-4);
  font-family: var(--ff-head);
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .03em;
  color: #fff;
  background: var(--grad-warm);
  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.10); }
.copy-btn.copied { background: var(--ok); }

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

/* small inline verified tag */
.tag-ok {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--ff-head);
  font-size: .82rem;
  font-weight: 600;
  color: var(--ok);
}
.tag-ok::before { content: "✓"; font-weight: 700; }

/* ---- 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);
  position: relative;
  overflow: hidden;
  transition: transform var(--t), border-color var(--t), box-shadow var(--t);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
/* glass card — rust top accent on hover */
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad-warm);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t);
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--border);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}
.card:hover::before { transform: scaleX(1); }
.card h3 { margin-bottom: var(--s-2); color: var(--text); }
.card p { margin-bottom: 0; }
.card__num {
  font-family: var(--ff-head);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
  color: var(--primary-soft);
  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-soft); 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) + 8px);
  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: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--grad-warm);
  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: .94rem; }
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-head);
  font-size: .66rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--s-1);
}
.mirror-url {
  font-family: var(--ff-mono);
  font-size: .88rem;
  color: var(--primary-soft);
  word-break: break-all;
  overflow-wrap: anywhere;
  user-select: all;
  display: block;
}
.mirror-url + .mirror-url { margin-top: var(--s-2); padding-top: var(--s-2); border-top: 1px dashed var(--border-soft); }
.mirror-net {
  font-family: var(--ff-head);
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-sand);
  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-head);
  font-weight: 600;
  font-size: 1rem;
  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-family: var(--ff-body);
  font-size: 1.6rem;
  color: var(--primary-soft);
  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-top: 2px solid var(--primary);
  border-radius: var(--r);
  padding: var(--s-4);
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
}
.crypto__coin--focus { border-top-color: var(--primary-light); box-shadow: 0 0 18px rgba(193, 68, 14, 0.18); }
.crypto__sym { font-family: var(--ff-head); font-weight: 700; font-size: 1.05rem; letter-spacing: .03em; color: var(--text); }
.crypto__name { font-size: .82rem; color: var(--muted); }
.crypto__price { font-family: var(--ff-head); font-size: 1.6rem; font-weight: 700; color: var(--primary-soft); }
.crypto__chg { font-size: .85rem; font-weight: 700; }
.crypto__chg.up { color: var(--ok); }
.crypto__chg.down { color: var(--primary-light); }

/* ---- 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-body);
  font-weight: 600;
  padding: var(--s-2) 0;
  color: var(--text);
  border-bottom: 1px solid transparent;
}
.resource-links a:hover { color: var(--primary-soft); 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-7) var(--s-4);
}
.cta-band h2 { padding: 0; }
.cta-band h2::after { left: 50%; transform: translateX(-50%); }
.cta-row { display: flex; flex-wrap: wrap; gap: var(--s-3); justify-content: center; margin-top: var(--s-5); }

/* ---- 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-soft); 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-body); }
.site-footer ul a:hover { color: var(--primary-soft); }
.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 a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary-soft); }

/* ---- Media (hero figure + inline images) -------------------------------- */
.hero-media,
figure { margin: 0; }
.hero-media img,
figure img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--r-lg);
  margin: var(--s-5) 0 0;
  border: 1px solid var(--border-soft);
}
figure img { margin: var(--s-4) 0; }

/* ===========================================================================
   Responsive — mobile-first; expand at breakpoints
   =========================================================================== */
@media (min-width: 560px) {
  .addr-row__net { flex: 0 0 84px; align-self: center; }
}
@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: .94rem; }

  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .crypto { grid-template-columns: repeat(2, 1fr); max-width: 640px; }
  .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-head);
    font-size: .68rem;
    letter-spacing: .1em;
    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; }
}
