/* ═══════════════════════════════════════════════════════════════════════
   SOQUPOOL — Foundry system
   Cast-metal instrument design for an institutional merge-mining pool.
   Grounds: blue-black iron. Accent: molten copper (live / action only).
   Metal encodings: LTC silver · DOGE brass · SOQ violet (the new element).
   Type: Archivo (variable width — expanded caps for nameplates) ·
         Martian Mono (every number the pool reports).
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  /* iron */
  --iron-950: #0b0d10;
  --iron-900: #10141a;
  --iron-850: #141922;
  --iron-800: #1a212b;
  --seam: #232c38;
  --seam-hi: #313d4c;
  /* text */
  --text-hi: #e9edf2;
  --text-mid: #aab4c0;
  --text-lo: #717d8b;
  /* molten copper — the only warm thing on the page */
  --copper: #d96f32;
  --copper-hot: #f0a36e;
  --copper-dim: #8a4a26;
  /* the three metals */
  --ltc: #b9c4d0;
  --doge: #d9b45b;
  --soq: #8e7cf0;
  /* status (encoding only, desaturated) */
  --ok: #57b98a;
  --warn: #d9a54b;
  --down: #d96a5b;

  --font-display: "Archivo", sans-serif;
  --font-mono: "Martian Mono", monospace;

  --w-max: 1240px;
  --pad-x: clamp(20px, 4vw, 48px);
}

/* ── base ─────────────────────────────────────────────────────────────── */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--iron-950);
  color: var(--text-mid);
  font-family: var(--font-display);
  font-variation-settings: "wdth" 100;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--copper-dim); color: var(--text-hi); }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--text-hi); }

:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 2px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--copper); color: var(--iron-950);
  padding: 8px 16px; z-index: 100; font-weight: 600;
}
.skip-link:focus { left: 0; }

.wrap { max-width: var(--w-max); margin: 0 auto; padding: 0 var(--pad-x); }

/* ── type roles ───────────────────────────────────────────────────────── */

/* nameplate: stamped-metal expanded caps */
.nameplate {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 125;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-hi);
}

/* engraved label: the small etched captions on equipment */
.engraved {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-lo);
}

/* readout: a number the machine reports */
.readout {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-hi);
  font-variant-numeric: tabular-nums;
}

.prose { max-width: 62ch; }
.prose strong { color: var(--text-hi); font-weight: 600; }

/* ── chassis top bar ──────────────────────────────────────────────────── */
.chassis {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--iron-950) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--seam);
}
.chassis-inner {
  max-width: var(--w-max); margin: 0 auto; padding: 0 var(--pad-x);
  display: flex; align-items: stretch; gap: 0;
  height: 60px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  padding-right: 28px; border-right: 1px solid var(--seam);
  font-size: 17px;
}
.brand-mark {
  width: 22px; height: 22px; display: block;
}
.chassis-nav {
  display: flex; align-items: stretch; margin-left: 4px;
}
.chassis-nav a {
  display: flex; align-items: center; padding: 0 18px;
  font-family: var(--font-mono); font-size: 11.5px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-lo);
  border-bottom: 2px solid transparent;
}
.chassis-nav a:hover { color: var(--text-hi); border-bottom-color: var(--seam-hi); }
.chassis-cta { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 11px 20px;
  border: 1px solid var(--seam-hi);
  color: var(--text-hi);
  background: transparent;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { border-color: var(--text-lo); color: var(--text-hi); }
.btn-pour {
  background: var(--copper);
  border-color: var(--copper);
  color: #16100a;
}
.btn-pour:hover { background: var(--copper-hot); border-color: var(--copper-hot); color: #16100a; }
.btn-sm { padding: 8px 14px; font-size: 11px; }

/* ── hero ─────────────────────────────────────────────────────────────── */
.hero { padding: clamp(56px, 9vh, 110px) 0 0; }
.hero-eyebrow {
  display: flex; align-items: center; gap: 14px; margin-bottom: 26px;
}
.hero-eyebrow .tick { width: 34px; height: 1px; background: var(--copper); }
.hero h1 {
  font-variation-settings: "wdth" 122;
  font-weight: 800;
  font-size: clamp(40px, 6.4vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  color: var(--text-hi);
  max-width: 14ch;
}
.hero h1 .pour-word { color: var(--copper); }
.hero-sub {
  margin-top: 28px; font-size: 17.5px; max-width: 58ch; color: var(--text-mid);
}
.hero-sub .m-ltc { color: var(--ltc); font-weight: 600; }
.hero-sub .m-doge { color: var(--doge); font-weight: 600; }
.hero-sub .m-soq { color: var(--soq); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

/* ── the pour (signature instrument) ──────────────────────────────────── */
.pour-panel {
  margin-top: clamp(48px, 7vh, 84px);
  border: 1px solid var(--seam);
  background: linear-gradient(180deg, var(--iron-900), var(--iron-950));
}
.pour-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 22px; border-bottom: 1px solid var(--seam);
}
.pour-live {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.2em;
  color: var(--copper-hot); text-transform: uppercase;
}
.pour-live .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--copper); box-shadow: 0 0 8px var(--copper);
}
@media (prefers-reduced-motion: no-preference) {
  .pour-live .dot { animation: livepulse 2.4s ease-in-out infinite; }
  @keyframes livepulse { 50% { opacity: 0.35; } }
}
.pour-stage { display: block; width: 100%; height: auto; }

/* ── proof strip ──────────────────────────────────────────────────────── */
.proof-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--seam); border-top: 0;
}
.proof-cell {
  padding: 20px 22px 18px;
  border-right: 1px solid var(--seam);
}
.proof-cell:last-child { border-right: 0; }
.proof-cell .engraved { display: block; margin-bottom: 8px; }
.proof-cell .readout { font-size: clamp(18px, 2vw, 26px); }
.proof-cell .unit { font-size: 12px; color: var(--text-lo); font-weight: 400; margin-left: 4px; }

/* ── sections ─────────────────────────────────────────────────────────── */
.section { padding: clamp(72px, 11vh, 128px) 0 0; }
.section-head { display: flex; align-items: baseline; gap: 18px; margin-bottom: 14px; }
.section-head .tick { width: 26px; height: 1px; background: var(--seam-hi); transform: translateY(-4px); }
.section h2 {
  font-variation-settings: "wdth" 118;
  font-weight: 800; text-transform: uppercase;
  font-size: clamp(26px, 3.4vw, 42px);
  line-height: 1.04; color: var(--text-hi);
  max-width: 24ch;
}
.section-lead { margin-top: 18px; font-size: 16.5px; }

/* ── metal cells (economics) ──────────────────────────────────────────── */
.metals {
  margin-top: 44px;
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--seam);
}
.metal {
  padding: 26px 26px 30px;
  border-right: 1px solid var(--seam);
  position: relative;
}
.metal:last-child { border-right: 0; }
.metal::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--metal-c);
}
.metal .engraved { color: var(--metal-c); }
.metal h3 {
  font-variation-settings: "wdth" 116;
  text-transform: uppercase; font-weight: 700;
  font-size: 21px; color: var(--text-hi); margin: 10px 0 4px;
}
.metal .role { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; color: var(--text-lo); }
.metal p { margin-top: 14px; font-size: 14.5px; }
.metal .metal-stats { margin-top: 18px; border-top: 1px solid var(--seam); }
.metal .metal-stats div {
  display: flex; justify-content: space-between; padding: 9px 0;
  border-bottom: 1px solid var(--seam);
  font-family: var(--font-mono); font-size: 12px;
}
.metal .metal-stats div span:first-child { color: var(--text-lo); }
.metal .metal-stats div span:last-child { color: var(--text-hi); }
.m-c-ltc { --metal-c: var(--ltc); }
.m-c-doge { --metal-c: var(--doge); }
.m-c-soq { --metal-c: var(--soq); }

/* ── access sequence (a real sequence: apply → verify → approve → mine) ── */
.access-grid {
  margin-top: 44px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--seam);
}
.access-step { padding: 24px 24px 28px; border-right: 1px solid var(--seam); }
.access-step:last-child { border-right: 0; }
.access-step .step-no {
  font-family: var(--font-mono); font-size: 11px; color: var(--copper);
  letter-spacing: 0.2em;
}
.access-step h3 {
  font-variation-settings: "wdth" 112;
  font-size: 17px; font-weight: 700; text-transform: uppercase;
  color: var(--text-hi); margin: 12px 0 10px;
}
.access-step p { font-size: 13.5px; }
.access-why {
  margin-top: 26px; padding: 22px 26px;
  border: 1px solid var(--seam); border-left: 2px solid var(--copper);
  background: var(--iron-900);
  max-width: 860px;
}
.access-why p { font-size: 14.5px; }

/* ── infrastructure ───────────────────────────────────────────────────── */
.infra-grid {
  margin-top: 44px;
  display: grid; grid-template-columns: 1.15fr 1fr;
  gap: 0; border: 1px solid var(--seam);
}
.infra-nodes { border-right: 1px solid var(--seam); }
.infra-node {
  display: grid; grid-template-columns: 18px 1fr auto;
  gap: 14px; align-items: baseline;
  padding: 18px 24px; border-bottom: 1px solid var(--seam);
}
.infra-node:last-child { border-bottom: 0; }
.infra-node .lamp { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); align-self: center; }
.infra-node .n-name { color: var(--text-hi); font-weight: 600; font-size: 15px; }
.infra-node .n-region { font-family: var(--font-mono); font-size: 11px; color: var(--text-lo); letter-spacing: .08em; }
.infra-list { list-style: none; }
.infra-list li {
  padding: 16px 24px; border-bottom: 1px solid var(--seam);
  font-size: 14px; display: flex; gap: 12px; align-items: baseline;
}
.infra-list li:last-child { border-bottom: 0; }
.infra-list .k { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--copper); white-space: nowrap; }

/* ── fee plate ────────────────────────────────────────────────────────── */
.fee-plate {
  margin-top: 44px;
  display: grid; grid-template-columns: auto 1fr;
  border: 1px solid var(--seam);
  background:
    radial-gradient(1200px 400px at 20% 0%, color-mix(in srgb, var(--copper) 5%, transparent), transparent),
    var(--iron-900);
}
.fee-number {
  padding: 40px 56px; border-right: 1px solid var(--seam);
  display: flex; flex-direction: column; justify-content: center;
}
.fee-number .readout { font-size: clamp(52px, 7vw, 92px); line-height: 1; letter-spacing: -0.02em; }
.fee-number .engraved { margin-top: 12px; }
.fee-terms { padding: 34px 40px; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.fee-terms p { font-size: 14.5px; max-width: 56ch; }
.fee-terms .fee-lock { color: var(--text-hi); font-weight: 600; }

/* ── blocks table ─────────────────────────────────────────────────────── */
.blocks-panel { margin-top: 44px; border: 1px solid var(--seam); overflow-x: auto; }
table.blocks { width: 100%; border-collapse: collapse; font-family: var(--font-mono); font-size: 12.5px; }
table.blocks th {
  text-align: left; padding: 12px 20px;
  font-size: 10.5px; font-weight: 400; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-lo); border-bottom: 1px solid var(--seam);
  background: var(--iron-900);
}
table.blocks td { padding: 12px 20px; border-bottom: 1px solid var(--seam); color: var(--text-mid); white-space: nowrap; }
table.blocks tr:last-child td { border-bottom: 0; }
table.blocks .chain-tag { font-size: 10.5px; letter-spacing: .1em; }
.tag-ltc { color: var(--ltc); } .tag-doge { color: var(--doge); } .tag-soq { color: var(--soq); }
table.blocks .hash { color: var(--text-lo); }
table.blocks td.height { color: var(--text-hi); }

/* ── faq ──────────────────────────────────────────────────────────────── */
.faq { margin-top: 44px; border: 1px solid var(--seam); }
.faq details { border-bottom: 1px solid var(--seam); }
.faq details:last-child { border-bottom: 0; }
.faq summary {
  cursor: pointer; padding: 18px 24px; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  color: var(--text-hi); font-weight: 600; font-size: 15px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-family: var(--font-mono); color: var(--text-lo); font-weight: 400;
}
.faq details[open] summary::after { content: "–"; color: var(--copper); }
.faq .faq-a { padding: 0 24px 20px; font-size: 14.5px; max-width: 72ch; }

/* ── application cta band ─────────────────────────────────────────────── */
.apply-band {
  margin-top: clamp(72px, 11vh, 128px);
  border-top: 1px solid var(--seam);
  background: linear-gradient(180deg, var(--iron-900), var(--iron-950));
}
.apply-inner {
  max-width: var(--w-max); margin: 0 auto; padding: 72px var(--pad-x);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px;
}
.apply-inner h2 {
  font-variation-settings: "wdth" 120;
  font-weight: 800; text-transform: uppercase;
  font-size: clamp(24px, 3vw, 38px); color: var(--text-hi); line-height: 1.05;
}

/* ── footer ───────────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--seam);
  padding: 40px 0 56px; margin-top: 0;
}
.footer-inner {
  max-width: var(--w-max); margin: 0 auto; padding: 0 var(--pad-x);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; color: var(--text-lo);
}
.footer-inner a:hover { color: var(--text-hi); }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }

/* ── member-area notice modal ─────────────────────────────────────────── */
.soq-notice { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 24px; }
.soq-notice[hidden] { display: none; }
.soq-notice-scrim { position: absolute; inset: 0; background: color-mix(in srgb, var(--iron-950) 78%, transparent); backdrop-filter: blur(4px); }
.soq-notice-card {
  position: relative; max-width: 520px; width: 100%;
  background: linear-gradient(180deg, var(--iron-900), var(--iron-950));
  border: 1px solid var(--seam); border-top: 2px solid var(--copper);
  padding: 34px 34px 30px;
}
.soq-notice-card .engraved { display: block; margin-bottom: 10px; }
.soq-notice-card h2 {
  font-variation-settings: "wdth" 118; font-weight: 800; text-transform: uppercase;
  font-size: clamp(24px, 3.5vw, 34px); line-height: 1.02; color: var(--text-hi); margin-bottom: 16px;
}
.soq-notice-card .prose { font-size: 15px; margin-bottom: 12px; }
.soq-notice-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.soq-notice-x {
  position: absolute; top: 14px; right: 16px; background: none; border: 0; cursor: pointer;
  color: var(--text-lo); font-size: 24px; line-height: 1; padding: 4px;
}
.soq-notice-x:hover { color: var(--text-hi); }
@media (prefers-reduced-motion: no-preference) {
  .soq-notice-card { animation: noticeIn .18s ease-out; }
  @keyframes noticeIn { from { opacity: 0; transform: translateY(8px); } }
}

/* ── responsive ───────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .proof-strip { grid-template-columns: repeat(3, 1fr); }
  .proof-cell:nth-child(3) { border-right: 0; }
  .proof-cell:nth-child(n+4) { border-top: 1px solid var(--seam); }
  .metals { grid-template-columns: 1fr; }
  .metal { border-right: 0; border-bottom: 1px solid var(--seam); }
  .metal:last-child { border-bottom: 0; }
  .access-grid { grid-template-columns: 1fr 1fr; }
  .access-step:nth-child(2n) { border-right: 0; }
  .access-step:nth-child(n+3) { border-top: 1px solid var(--seam); }
  .infra-grid { grid-template-columns: 1fr; }
  .infra-nodes { border-right: 0; border-bottom: 1px solid var(--seam); }
  .fee-plate { grid-template-columns: 1fr; }
  .fee-number { border-right: 0; border-bottom: 1px solid var(--seam); padding: 32px 32px; }
  .chassis-nav { display: none; }
}
@media (max-width: 620px) {
  .proof-strip { grid-template-columns: 1fr 1fr; }
  .proof-cell { border-top: 1px solid var(--seam); }
  .proof-cell:nth-child(-n+2) { border-top: 0; }
  .proof-cell:nth-child(odd) { border-right: 1px solid var(--seam); }
  .proof-cell:nth-child(even) { border-right: 0; }
  .access-grid { grid-template-columns: 1fr; }
  .access-step { border-right: 0 !important; border-top: 1px solid var(--seam); }
  .access-step:first-child { border-top: 0; }
}
