/* rbitcoin.org — navy truss, bitcoin orange, geometric mark */

@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/IBMPlexSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/IBMPlexSans-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/IBMPlexSans-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/IBMPlexSans-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/IBMPlexMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/IBMPlexMono-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Deep navy around the mark; accent is the coin */
  --bg: #0e1218;
  --bg-elevated: #141a22;
  --bg-panel: #181f28;
  --bg-panel-hover: #1e2732;
  --border: rgba(90, 110, 130, 0.22);
  --border-strong: rgba(211, 90, 12, 0.38);
  --text: #e8eef4;
  --text-muted: #8b96a4;
  --text-dim: #5c6775;
  --copper: #d65f0f;
  --copper-bright: #e87828;
  --copper-deep: #8a3a08;
  --copper-dim: rgba(211, 90, 12, 0.18);
  --brass: #8b96a4;
  --brass-bright: #c5cdd6;
  --patina: #3d5c54;
  --patina-bright: #5a9e8a;
  --steel: #7a8696;
  --steel-bright: #c5cdd6;
  --rearden: #a8b4c0;
  --rail: #2c3340;
  --rail-hi: #4a5564;
  --tie: #1a222c;
  --tie-hi: #2c3340;
  --ok: #5a9e8a;
  --warn: #e87828;
  --paper: #f4f1ec;
  --ink: #2e323e;
  --font-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Code", Menlo, monospace;
  --radius: 4px;
  --radius-sm: 2px;
  --shadow: 0 14px 40px rgba(0, 0, 0, 0.55);
  --max: 1120px;
  --header-h: 4rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 70% 45% at 50% -18%, rgba(211, 90, 12, 0.1), transparent 55%),
    radial-gradient(ellipse 40% 30% at 100% 0%, rgba(90, 110, 140, 0.07), transparent 50%),
    linear-gradient(180deg, #141a22 0%, var(--bg) 38%);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--copper-bright);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.15s var(--ease);
}

a:hover {
  color: #f08a3a;
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--copper-bright);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--copper);
  color: var(--paper);
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

/* ——— Header (rail section) ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid var(--rail);
  background: rgba(14, 18, 24, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--copper) 18%, var(--copper-bright) 50%, var(--copper) 82%, transparent);
  pointer-events: none;
  opacity: 0.9;
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand:hover {
  color: var(--text);
}

.brand img {
  flex-shrink: 0;
}

.brand-name {
  font-size: 1.125rem;
}

.brand-name span {
  color: var(--copper-bright);
  font-weight: 500;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem 1.25rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.35rem 0;
  border-bottom: 1px solid transparent;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--steel-bright);
  border-bottom-color: var(--copper-bright);
}

.nav-links .nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.38rem 0.8rem;
  margin-left: 0.15rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--border-strong);
  border-bottom-color: var(--copper);
  background: linear-gradient(180deg, #1e2732 0%, #141a22 100%);
  box-shadow: inset 0 1px 0 rgba(180, 190, 200, 0.06);
}

.nav-links .nav-cta:hover,
.nav-links .nav-cta:focus-visible {
  color: var(--text);
  border-color: var(--steel);
  border-bottom-color: var(--copper-bright);
}

.nav-social {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: 0.5rem;
  padding-left: 0.85rem;
  border-left: 1px solid var(--border);
}

.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  color: var(--steel);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}

.icon-link:hover {
  color: var(--text);
  background: var(--bg-panel);
}

.icon-link svg {
  width: 1.15rem;
  height: 1.15rem;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle svg {
  width: 1.25rem;
  height: 1.25rem;
}

@media (max-width: 980px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem 1.25rem 1.25rem;
    background: rgba(14, 18, 24, 0.97);
    border-bottom: 1px solid var(--border-strong);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s var(--ease), opacity 0.2s;
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-links a {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
  }

  .nav-links .nav-cta {
    margin: 0.75rem 0 0;
    width: 100%;
    padding: 0.7rem 0.8rem;
  }

  .nav-social {
    margin: 0.75rem 0 0;
    padding: 0.75rem 0 0;
    border-left: none;
    border-top: 1px solid var(--border);
  }
}

/* ——— Layout ——— */
main {
  min-height: calc(100vh - var(--header-h) - 12rem);
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 4rem 0;
}

.section-tight {
  padding: 2.5rem 0;
}

.section-head {
  margin-bottom: 2rem;
  max-width: none; /* match full content width (cards/metrics below) */
}

.section-head h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  letter-spacing: -0.03em;
  font-weight: 650;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
}

.section-head p + p {
  margin-top: 0.75rem;
}

/* ——— Hero ——— */
.hero {
  position: relative;
  padding: 4.5rem 0 3.5rem;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(60deg, rgba(211, 90, 12, 0.05) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(-60deg, rgba(90, 110, 140, 0.06) 0 1px, transparent 1px 28px);
  mask-image: radial-gradient(ellipse 90% 85% at 40% 40%, black 15%, transparent 78%);
  opacity: 0.9;
  pointer-events: none;
}

/* Home hero: copy + full OG art (plate + rails) */
.hero-split .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 2rem 2.5rem;
  align-items: center;
}

.hero-copy {
  min-width: 0;
}

.hero-visual {
  position: relative;
  min-width: 0;
  border: 1px solid var(--rail-hi);
  border-top: 3px solid var(--copper);
  box-shadow:
    0 22px 56px rgba(0, 0, 0, 0.62),
    0 0 0 1px rgba(0, 0, 0, 0.55);
  background: var(--paper);
  overflow: hidden;
  aspect-ratio: 1000 / 720;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.45rem;
}

.hero-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(138, 146, 156, 0.12);
}

/* Subpages: photoreal track strip (same asset family as OG) */
.hero-tracks {
  position: absolute;
  z-index: 0;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(42%, 28rem);
  pointer-events: none;
  overflow: hidden;
  opacity: 0.14;
  mask-image: linear-gradient(90deg, transparent 0%, black 18%, black 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 18%, black 100%);
}

.hero-tracks img {
  display: block;
  width: 140%;
  max-width: none;
  height: 100%;
  object-fit: contain;
  object-position: right center;
}

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

@media (max-width: 900px) {
  .hero-split .container {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .hero-visual {
    max-width: 36rem;
    aspect-ratio: 1000 / 720;
  }

  .hero-tracks {
    width: min(55%, 18rem);
    opacity: 0.55;
  }
}

@media (max-width: 560px) {
  .hero-tracks {
    display: none;
  }
}

.brand-mark {
  width: 2.85rem;
  height: 2.05rem;
  object-fit: contain;
  object-position: center;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem 0.4rem 0.65rem;
  margin-bottom: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--steel-bright);
  background: linear-gradient(180deg, #1e2732, #141a22);
  border: 1px solid var(--rail);
  border-left: 3px solid var(--copper);
  border-radius: 0;
  box-shadow: inset 0 1px 0 rgba(180, 190, 200, 0.06);
}

.status-chip::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 1px;
  background: var(--copper-bright);
  box-shadow: 0 0 0 2px rgba(211, 90, 12, 0.35);
}

.hero h1 {
  margin: 0 0 1rem;
  max-width: 18ch;
  font-size: clamp(2.2rem, 5.6vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.038em;
  font-weight: 700;
}

.hero-split h1 {
  max-width: 13ch;
}

.hero-lead {
  margin: 0 0 1.75rem;
  max-width: 36rem;
  font-size: 1.125rem;
  color: var(--text-muted);
}

.hero-copy .hero-lead + .hero-lead {
  margin-top: -0.85rem;
}

.hero-split .hero-lead {
  max-width: none;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0;
  color: var(--text-dim);
  font-size: 0.875rem;
  font-family: var(--font-mono);
}

.meta-row span {
  display: inline-flex;
  align-items: center;
}

.meta-row span:not(:first-child)::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 2px;
  margin: 0 0.85rem;
  background: var(--rail-hi);
  box-shadow: 0 3px 0 var(--rail);
  flex-shrink: 0;
  opacity: 0.7;
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.72rem 1.25rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: linear-gradient(180deg, #e07018 0%, var(--copper) 55%, #b84a08 100%);
  color: #fff8f2;
  border-color: #f08a3a;
  border-bottom-color: var(--copper-deep);
  box-shadow:
    0 1px 0 rgba(255, 220, 180, 0.18) inset,
    0 -1px 0 rgba(0, 0, 0, 0.3) inset,
    0 8px 22px rgba(0, 0, 0, 0.35);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}

.btn-primary:hover {
  color: #fff;
  background: linear-gradient(180deg, #f08a3a 0%, #e07018 50%, var(--copper) 100%);
  border-bottom-color: var(--copper);
}

.btn-secondary {
  background: linear-gradient(180deg, #1e2732 0%, #141a22 100%);
  color: var(--text);
  border-color: var(--border-strong);
  box-shadow: inset 0 1px 0 rgba(180, 190, 200, 0.06);
}

.btn-secondary:hover {
  color: var(--text);
  background: var(--bg-panel-hover);
  border-color: var(--steel);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: transparent;
}

.btn-ghost:hover {
  color: var(--steel-bright);
  background: rgba(30, 34, 40, 0.7);
}

.btn-donate {
  background: linear-gradient(180deg, #3a2418 0%, #241610 100%);
  color: var(--paper);
  border-color: rgba(211, 90, 12, 0.55);
  border-bottom-color: var(--copper-bright);
  box-shadow:
    inset 0 1px 0 rgba(232, 180, 120, 0.12),
    0 8px 22px rgba(0, 0, 0, 0.32);
}

.btn-donate:hover {
  color: #fff8f2;
  background: linear-gradient(180deg, #4a2e1c 0%, #2e1a12 100%);
  border-color: var(--copper-bright);
}

/* ——— Cards / grid ——— */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (max-width: 860px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

.card {
  position: relative;
  background-color: var(--bg-panel);
  background-image: linear-gradient(145deg, rgba(90, 110, 140, 0.08) 0%, transparent 42%);
  border: 1px solid var(--border);
  border-top: 2px solid var(--copper);
  border-radius: var(--radius);
  padding: 1.45rem 1.5rem 1.4rem;
  box-shadow:
    0 1px 0 rgba(180, 190, 200, 0.04) inset,
    0 10px 28px rgba(0, 0, 0, 0.32);
  transition: border-color 0.15s, background-color 0.15s, box-shadow 0.15s;
}

.card:hover {
  border-color: rgba(211, 90, 12, 0.45);
  background-color: var(--bg-panel-hover);
  box-shadow:
    0 1px 0 rgba(180, 190, 200, 0.07) inset,
    0 12px 32px rgba(0, 0, 0, 0.4);
}

.card-icon {
  width: 2.25rem;
  height: 2.25rem;
  margin: 0.15rem 0 0.9rem;
  color: var(--rearden);
}

.card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.975rem;
}

/* ——— Metrics ——— */
.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rail);
  border: 1px solid var(--rail);
  border-top: 2px solid var(--copper);
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.metric {
  position: relative;
  background: linear-gradient(180deg, #1a222c 0%, #141a22 100%);
  padding: 1.55rem 1.35rem 1.45rem;
}

.metric::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--rail-hi) 30%, var(--rearden) 50%, var(--rail-hi) 70%, transparent);
  opacity: 0.35;
}

.metric-value {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 500;
  color: var(--steel-bright);
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
  text-shadow: 0 0 20px rgba(211, 90, 12, 0.22);
}

.metric-label {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.metric-note {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.75rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.metric-value-flag {
  font-size: clamp(1.35rem, 2.6vw, 1.65rem);
}

.metric .metric-label code {
  color: inherit;
  background: transparent;
  padding: 0;
}

@media (max-width: 720px) {
  .metrics {
    grid-template-columns: 1fr;
  }
}

.footnote {
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: var(--text-dim);
}

/* ——— Tables ——— */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--rail);
  border-top: 2px solid var(--copper);
  border-radius: 0;
  background: var(--bg-panel);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

th,
td {
  padding: 0.85rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

th {
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.2);
  white-space: nowrap;
}

tr:last-child td {
  border-bottom: none;
}

td:first-child {
  font-weight: 500;
  color: var(--steel-bright);
  white-space: nowrap;
}

/* ——— Callout ——— */
.callout {
  display: flex;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  border-radius: 0;
  border: 1px solid rgba(211, 90, 12, 0.35);
  border-left: 3px solid var(--copper);
  background: rgba(40, 28, 18, 0.35);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25);
}

.callout-warn {
  border-color: rgba(211, 90, 12, 0.45);
  border-left-color: var(--copper-bright);
  background: rgba(48, 28, 14, 0.38);
}

.callout-info {
  border-color: rgba(80, 100, 110, 0.35);
  border-left-color: var(--steel);
  background: rgba(30, 40, 48, 0.35);
}

.callout strong {
  color: var(--copper-bright);
}

.callout p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.975rem;
}

.callout p + p {
  margin-top: 0.5rem;
}

/* ——— Code ——— */
.pre-wrap {
  position: relative;
  margin: 1rem 0;
  border-radius: 0;
  border: 1px solid var(--rail);
  border-left: 3px solid var(--copper);
  background: #0a0e14;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.5);
}

.pre-wrap pre {
  margin: 0;
  padding: 1.1rem 1.2rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.55;
  color: #b8c4b8;
}

.pre-wrap .copy-btn {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  padding: 0.3rem 0.55rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
}

.pre-wrap .copy-btn:hover {
  color: var(--text);
  border-color: var(--steel);
}

.pre-wrap .copy-btn.is-copied {
  color: var(--ok);
  border-color: rgba(111, 191, 138, 0.4);
}

code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  color: var(--copper-bright);
  background: var(--copper-dim);
  padding: 0.1em 0.35em;
  border-radius: 2px;
}

pre code {
  background: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

/* ——— Prose pages ——— */
/* Match content column — not full-bleed browser width */
.page-hero {
  position: relative;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  box-sizing: border-box;
}

.page-hero .hero-tracks {
  opacity: 0.55;
  width: min(38%, 22rem);
  right: 0;
  top: 0;
  bottom: 0;
}

.page-hero .container {
  position: relative;
  z-index: 1;
  max-width: none;
  margin: 0;
  padding: 0;
}

.page-hero h1 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.85rem, 4vw, 2.4rem);
  letter-spacing: -0.03em;
}

.page-hero p {
  margin: 0;
  max-width: 48rem;
  color: var(--text-muted);
  font-size: 1.0625rem;
  line-height: 1.65;
}

.page-hero .status-chip {
  margin-bottom: 0.85rem;
}

.prose {
  max-width: 44rem;
}

.prose h2 {
  margin: 2.25rem 0 0.75rem;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.prose h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.05rem;
}

.prose p,
.prose ul,
.prose ol {
  color: var(--text-muted);
}

.prose ul,
.prose ol {
  padding-left: 1.25rem;
}

.prose li + li {
  margin-top: 0.35rem;
}

.prose > *:first-child {
  margin-top: 0;
}

/* ——— Pipeline diagram ——— */
/* ——— Store diagram (architecture page) ——— */
.store-diagram {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 1.35rem;
  background: #0a0e14;
  border: 1px solid var(--rail);
  border-top: 3px solid var(--copper);
  box-shadow:
    inset 0 0 32px rgba(0, 0, 0, 0.35),
    0 16px 40px rgba(0, 0, 0, 0.28);
}

.store-layer {
  border: 1px solid var(--border-strong);
  background: var(--bg-panel);
  padding: 1.15rem 1.25rem 1.25rem;
  box-shadow: 0 1px 0 rgba(180, 190, 200, 0.05) inset;
}

.store-layer-a {
  border-color: rgba(138, 146, 156, 0.45);
  border-left: 3px solid var(--rearden);
}

.store-layer-c {
  border-color: rgba(211, 90, 12, 0.4);
  border-left: 3px solid var(--copper);
}

.store-layer-b {
  border-color: rgba(106, 138, 120, 0.4);
  border-left: 3px solid var(--patina-bright);
}

.store-layer-out {
  border-color: rgba(110, 118, 128, 0.4);
  border-left: 3px solid var(--steel);
}

.store-layer-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--steel-bright);
  margin-bottom: 0.35rem;
}

.store-layer-a .store-layer-label {
  color: var(--rearden);
}

.store-layer-c .store-layer-label {
  color: var(--copper-bright);
}

.store-layer-b .store-layer-label {
  color: var(--patina-bright);
}

.store-layer-tag {
  margin: 0 0 0.9rem;
  font-size: 0.875rem;
  color: var(--text-dim);
}

.store-cells {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}

.store-cells-4 {
  grid-template-columns: repeat(4, 1fr);
}

.store-cells-stack {
  grid-template-columns: 1fr;
}

.store-cell {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem 0.85rem;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--border);
  min-height: 3.5rem;
}

.store-cell strong {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text);
}

.store-cell span {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.store-flow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.5rem;
}

.store-flow-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rail-hi), transparent);
  opacity: 0.6;
}

.store-flow-caption {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
}

.store-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

@media (max-width: 860px) {
  .store-cells,
  .store-cells-4 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .store-cells,
  .store-cells-4,
  .store-split {
    grid-template-columns: 1fr;
  }
}

/* ——— Split lists ——— */
.audience {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 640px) {
  .audience {
    grid-template-columns: 1fr;
  }
}

.list-card h3 {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}

.list-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.list-card li {
  position: relative;
  padding: 0.4rem 0 0.4rem 1.25rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  font-size: 0.975rem;
}

.list-card li:last-child {
  border-bottom: none;
}

.list-card.for li::before {
  content: "+";
  position: absolute;
  left: 0;
  color: var(--ok);
  font-weight: 600;
}

.list-card.not li::before {
  content: "−";
  position: absolute;
  left: 0;
  color: var(--text-dim);
  font-weight: 600;
}

/* ——— CTA band ——— */
.cta-band {
  position: relative;
  margin: 1.5rem 0 3rem;
  padding: 2.25rem 2rem;
  border-radius: 0;
  border: 1px solid var(--rail);
  border-top: 3px solid var(--copper);
  background:
    linear-gradient(135deg, rgba(211, 90, 12, 0.12), transparent 48%),
    linear-gradient(180deg, #1e2630, #141a22);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 1.75rem;
  box-shadow:
    inset 0 1px 0 rgba(180, 190, 200, 0.08),
    0 16px 44px rgba(0, 0, 0, 0.4);
}

.cta-band .btn-primary,
.cta-band .btn-donate {
  min-width: 10rem;
}

.cta-band .btn-secondary {
  min-width: 8rem;
}

/* mini rail line under CTA top */
.cta-band::before {
  content: "";
  position: absolute;
  left: 1.5rem;
  right: 1.5rem;
  top: 0;
  height: 0;
  border-top: 1px solid var(--rail-hi);
  opacity: 0.25;
  pointer-events: none;
}

.cta-band h2 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.cta-band p {
  margin: 0;
  color: var(--text-muted);
  max-width: 32rem;
}

.cta-band .hero-actions {
  margin: 0;
}

/* ——— Footer ——— */
.site-footer {
  position: relative;
  border-top: 1px solid var(--rail);
  background: #0a0e14;
  padding: 2.5rem 0 2rem;
  margin-top: 2rem;
}

.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--copper) 20%, var(--copper-bright) 50%, var(--copper) 80%, transparent);
  opacity: 0.85;
  pointer-events: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem 1.5rem;
  margin-bottom: 2rem;
}

@media (max-width: 800px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-brand .brand {
  margin-bottom: 0.25rem;
}

.footer-brand p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.875rem;
  max-width: 22rem;
}

.footer-col h3 {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  font-weight: 600;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li + li {
  margin-top: 0.4rem;
}

.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--steel-bright);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--text-dim);
}

.footer-bottom a {
  color: var(--text-dim);
  text-decoration: none;
}

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

/* ——— Contact block ——— */
.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}

.contact-list .label {
  min-width: 7rem;
  font-weight: 600;
  color: var(--steel-bright);
  font-size: 0.9rem;
}

/* Donate methods */
.donate-block {
  margin-top: 0.5rem;
}

.donate-lead {
  margin: 0 0 1.15rem;
  max-width: 40rem;
}

.donate-block > p:not(.donate-lead) {
  margin: 0 0 1rem;
}

.donate-methods {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.donate-method {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.2rem 1.25rem;
  background: var(--bg-panel);
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--rail);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.donate-method:hover {
  border-color: rgba(211, 90, 12, 0.45);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
}

.donate-method-sp {
  grid-column: 1 / -1;
  border-left-color: var(--copper);
}

@media (max-width: 640px) {
  .donate-methods {
    grid-template-columns: 1fr;
  }
}

.donate-icon {
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  border-radius: 0.45rem;
  object-fit: cover;
  background: #0a0e14;
}

.donate-icon-sp {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--copper-bright);
  border: 1px solid var(--rail);
}

.donate-method-body {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.45rem;
}

.donate-method-body strong {
  font-size: 0.95rem;
  color: var(--text);
}

.donate-address-row {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
  min-width: 0;
}

.ln-address,
.sp-address {
  display: block;
  flex: 1;
  min-width: 0;
  box-sizing: border-box;
  margin: 0;
  padding: 0.65rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.45;
  word-break: break-all;
  color: var(--steel-bright);
  background: #0a0e14;
  border: 1px solid var(--rail);
}

.sp-address {
  font-size: 0.72rem;
}

.donate-address-row .copy-btn {
  position: static;
  flex-shrink: 0;
  align-self: center;
  white-space: nowrap;
}

@media (max-width: 520px) {
  .donate-address-row {
    flex-wrap: wrap;
  }

  .donate-address-row .copy-btn {
    width: 100%;
  }
}

/* ——— Utility ——— */
.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;
}

.mt-0 {
  margin-top: 0;
}
.mb-0 {
  margin-bottom: 0;
}
.mb-2 {
  margin-bottom: 1.5rem;
}
.mt-2 {
  margin-top: 1.5rem;
}
.mt-3 {
  margin-top: 2rem;
}

.divider {
  height: 1px;
  background: var(--border);
  border: 0;
  margin: 0;
}
