/* ============================================================
   BaudCoin — light fintech design system
   ============================================================ */
@font-face {
  font-family: "Satoshi";
  src: url("../fonts/Satoshi-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url("../fonts/Satoshi-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url("../fonts/Satoshi-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url("../fonts/Satoshi-Black.ttf") format("truetype");
  font-weight: 900;
  font-display: swap;
}
@font-face {
  font-family: "Clash Display";
  src: url("../fonts/ClashDisplay-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Clash Display";
  src: url("../fonts/ClashDisplay-Semibold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Clash Display";
  src: url("../fonts/ClashDisplay-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #f1f1f1;
  --bg-2: #f4f3ef;
  --card: #ffffff;
  --line: #e3e2dc;
  --line-2: #d5d4ce;
  --text: #15181e;
  --dim: #70737a;
  --faint: #9a9da4;
  --navy: #131313;
  --blue: #7a7a7a;
  --blue-deep: #3d3d3d;
  --pale: #e8e8e8;
  --gold: #f5f5f5;
  --sans: "Satoshi", "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --disp: "Clash Display", "Satoshi", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", Consolas, monospace;
  --radius: 12px;
  --shadow: 0 18px 50px rgba(20, 25, 40, 0.10);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

a { color: var(--text); text-decoration: none; }

::selection { background: var(--blue); color: #fff; }

.grid-build { display: none; }
.corner { display: none; }

/* ---------- labels ---------- */
.microlabel {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1160px, calc(100vw - 28px));
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(20, 25, 40, 0.06);
  border-radius: 10px;
  box-shadow: 0 10px 34px rgba(20, 25, 40, 0.08);
}
.nav-inner {
  padding: 0 18px 0 14px;
  height: 54px;
  display: flex;
  align-items: center;
  gap: 22px;
}
.logo-lockup {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--disp);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.logo-lockup img { width: 26px; height: 26px; display: block; }
.nav-links { display: flex; gap: 20px; margin: 0 auto; }
.nav-links a {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  transition: color 0.2s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.nav-next {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}
.nav-next b { color: var(--text); font-family: var(--mono); font-size: 12px; }

/* ---------- buttons ---------- */
.btn-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: var(--navy);
  border: 0;
  border-radius: 7px;
  padding: 11px 20px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-dark:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(20, 25, 40, 0.25); color: #fff; }
.btn-dark.small { padding: 8px 16px; }
.btn-pale {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #223458;
  background: rgba(215, 230, 248, 0.9);
  border: 0;
  border-radius: 7px;
  padding: 11px 20px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.btn-pale:hover { background: #e6effa; color: #223458; }
.btn-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: 7px;
  padding: 11px 20px;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.btn-line:hover { border-color: var(--text); box-shadow: 0 6px 18px rgba(20, 25, 40, 0.08); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 128px 0 96px;
  background:
    radial-gradient(900px 500px at 88% 96%, rgba(233, 178, 148, 0.55), transparent 60%),
    radial-gradient(700px 420px at 8% 10%, rgba(120, 150, 220, 0.5), transparent 65%),
    linear-gradient(118deg, #4f74c9 0%, #6488d6 48%, #8aa4e2 100%);
  overflow: hidden;
}
.hero-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 22px;
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(340px, 480px);
  gap: 50px;
  align-items: center;
}
.hero h1 {
  font-family: var(--sans);
  font-size: clamp(38px, 5.4vw, 58px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.08;
  color: var(--pale);
  margin-bottom: 18px;
}
.hero .sub {
  font-size: 14px;
  color: rgba(230, 238, 250, 0.85);
  max-width: 380px;
  margin-bottom: 26px;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* hero dashboard card */
.hero-card {
  position: relative;
  background: var(--card);
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(15, 22, 45, 0.35);
  padding: 20px 22px 22px;
}
.hero-card .hc-brand {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--disp);
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 16px;
}
.hero-card .hc-brand img { width: 16px; height: 16px; }
.hc-total { text-align: center; margin-bottom: 16px; }
.hc-total .n { font-family: var(--disp); font-size: 30px; font-weight: 700; letter-spacing: -0.01em; }
.hc-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}
.hc-cols > div { padding: 12px 8px; text-align: center; }
.hc-cols > div:first-child { border-right: 1px solid var(--line); }
.hc-cols .n { font-family: var(--disp); font-size: 18px; font-weight: 700; }
.hc-chart {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 56px;
  margin-bottom: 18px;
}
.hc-chart span {
  flex: 1;
  background: var(--navy);
  border-radius: 2px 2px 0 0;
  min-height: 4px;
}
.hc-list-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-weight: 600;
  font-size: 13.5px;
  margin-bottom: 10px;
}
.hc-list-title .microlabel { font-weight: 600; }
.hc-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; }
.hc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--bg-2);
  border-radius: 8px;
  padding: 8px 10px;
}
.hc-row .t { display: flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 700; }
.hc-row .t i {
  width: 16px; height: 16px;
  border-radius: 4px;
  background: var(--navy);
  color: var(--gold);
  font-style: normal;
  font-size: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.hc-row .v { text-align: right; }
.hc-row .v b { display: block; font-size: 11px; color: #178a4c; }
.hc-row .v small { font-size: 9.5px; color: var(--faint); }

.hc-demo {
  position: absolute;
  right: -14px;
  bottom: -22px;
  width: 210px;
  background: var(--navy);
  color: #fff;
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 22px 50px rgba(10, 14, 28, 0.45);
}
.hc-demo .microlabel { color: rgba(255, 255, 255, 0.5); }
.hc-demo .bal { font-family: var(--disp); font-size: 21px; font-weight: 700; margin: 2px 0 10px; }
.hc-demo .row { display: flex; justify-content: space-between; font-size: 11px; }
.hc-demo .row .microlabel { font-size: 9px; }
.hc-demo .row b { color: var(--gold); }

/* ---------- sections ---------- */
.section {
  position: relative;
  max-width: 1160px;
  margin: 0 auto;
  padding: 84px 22px 0;
}
.sec-kicker {
  text-align: center;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 14px;
}
.sec-title {
  text-align: center;
  font-family: var(--sans);
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0 auto 44px;
  max-width: 640px;
}
.sec-head-left { margin-bottom: 26px; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.sec-head-left h2 { font-size: 21px; font-weight: 700; letter-spacing: -0.01em; }
.sec-head-left .note { font-size: 11.5px; color: var(--faint); max-width: 300px; text-align: right; }

/* metrics */
.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 34px 20px;
  text-align: center;
  margin-bottom: 44px;
}
.metric .n {
  font-family: var(--sans);
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.metric .microlabel { margin-top: 8px; color: var(--text); }
.metric .d { font-size: 11.5px; color: var(--faint); margin-top: 5px; max-width: 200px; margin-left: auto; margin-right: auto; }
.metrics-cta { text-align: center; }

/* asset-style cards */
.asset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.asset {
  background: var(--card);
  border: 1px solid rgba(20, 25, 40, 0.05);
  border-radius: var(--radius);
  padding: 16px 18px 14px;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.asset:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.asset-top { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.asset-ic {
  width: 30px; height: 30px;
  border-radius: 7px;
  background: var(--navy);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
}
.asset-top .tk { font-size: 12.5px; font-weight: 700; }
.asset-top .nm { font-size: 11px; color: var(--faint); }
.asset-bottom { display: flex; justify-content: space-between; align-items: flex-end; }
.asset-bottom .v { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.asset-bottom .microlabel { display: block; margin-bottom: 3px; }
.asset-link {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}
.asset:hover .asset-link { color: var(--text); }
.asset.expansion { background: var(--bg-2); border-style: dashed; border-color: var(--line-2); }
.asset.expansion h4 { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.asset.expansion p { font-size: 12px; color: var(--dim); margin-bottom: 12px; }

/* big white panel (tables etc.) */
.panel {
  background: var(--card);
  border: 1px solid rgba(20, 25, 40, 0.05);
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(20, 25, 40, 0.05);
  padding: 22px 24px;
  overflow-x: auto;
}
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.panel-head h3 { font-size: 15.5px; font-weight: 700; }
.panel-head a { font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
.panel-head a:hover { color: var(--text); }

table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--bg-2); }
tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) { background: #fafaf7; }
th {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}
td.mono, .mono { font-family: var(--mono); }
td .accent-text { color: var(--text); font-weight: 700; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--bg-2);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 10.5px;
  font-weight: 700;
  margin: 2px 3px 2px 0;
}
.chip i {
  width: 12px; height: 12px;
  border-radius: 3px;
  background: var(--navy);
  color: var(--gold);
  font-style: normal;
  font-size: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.chip small { color: var(--faint); font-weight: 500; }

/* tweets */
.tweet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
  align-items: start;
}
.tweet-cell {
  background: var(--card);
  border: 1px solid rgba(20, 25, 40, 0.05);
  border-radius: var(--radius);
  padding: 8px 14px 2px;
  transition: box-shadow 0.25s ease;
}
.tweet-cell:hover { box-shadow: var(--shadow); }
.tweet-cell .twitter-tweet { margin: 8px auto !important; }
.tweet-cell blockquote.twitter-tweet {
  font-size: 13px;
  color: var(--dim);
  border-left: 2px solid var(--line-2);
  padding: 4px 0 4px 12px;
}
.tweet-cell blockquote.twitter-tweet a { color: var(--blue-deep); }

/* CTA strip */
.cta-strip {
  background: var(--card);
  border: 1px solid rgba(20, 25, 40, 0.05);
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(20, 25, 40, 0.05);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.cta-strip p { font-size: 13.5px; font-weight: 600; }

/* footer */
.site-footer { padding: 34px 22px 40px; }
.fineprint {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  font-size: 10.5px;
  line-height: 1.7;
  color: var(--faint);
}
.fineprint a { color: var(--dim); text-decoration: underline; }
.footer-links { display: flex; justify-content: center; gap: 22px; margin-bottom: 14px; }
.footer-links a {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}
.footer-links a:hover { color: var(--text); }

/* ============================================================
   App pages
   ============================================================ */
body.app { background: #fbfbfa; }
main.page-main {
  position: relative;
  z-index: 2;
  max-width: 1060px;
  margin: 0 auto;
  padding: 110px 22px 60px;
}
.wp-ghost.page {
  font-size: clamp(180px, 36vw, 480px);
  color: rgba(17, 17, 17, 0.03);
  align-items: flex-start;
  padding-top: 8vh;
}
.page-head { margin-bottom: 30px; }
.page-head .kicker {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 10px;
}
.page-head h1 { font-size: clamp(26px, 4vw, 36px); font-weight: 600; letter-spacing: -0.02em; }
.page-head .sub { margin-top: 6px; color: var(--dim); font-size: 13.5px; }

.grid { display: grid; gap: 14px; }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }

.box {
  position: relative;
  background: var(--card);
  border: 1px solid rgba(20, 25, 40, 0.05);
  border-radius: var(--radius);
  padding: 18px 20px;
  transition: box-shadow 0.25s ease;
}
.box:hover { box-shadow: var(--shadow); }
.box h3 { font-size: 13px; font-weight: 700; letter-spacing: 0.02em; margin-bottom: 12px; }
.box h3 .tag { color: var(--blue-deep); }
.box p { color: var(--dim); }

.stat .label {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 6px;
}
.stat .value { font-size: 24px; font-weight: 600; letter-spacing: -0.01em; }
.stat .value.accent { color: var(--blue-deep); }
.stat .hint { font-size: 11px; color: var(--faint); margin-top: 4px; }

section.block { margin: 40px 0; }
section.block h2 { font-size: 17px; font-weight: 700; margin-bottom: 14px; }
section.block > p { color: var(--dim); max-width: 700px; margin-bottom: 10px; font-size: 13.5px; }

/* forms */
.form-row { margin-bottom: 15px; }
.form-row label {
  display: block;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 6px;
}
.form-row input[type="text"], .form-row select {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 13.5px;
  padding: 10px 12px;
}
.form-row input:focus, .form-row select:focus { outline: 2px solid var(--blue); outline-offset: -1px; }
.form-hint { font-size: 11.5px; color: var(--faint); margin-top: 6px; line-height: 1.6; }

.radio-card {
  display: block;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 9px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.radio-card:hover { border-color: var(--line-2); }
.radio-card:has(input:checked) { border-color: var(--navy); background: #fff; }
.radio-card input { margin-right: 8px; accent-color: var(--navy); }
.radio-card .rc-title { font-weight: 700; font-size: 13px; }
.radio-card .rc-desc { font-size: 12px; color: var(--dim); margin-top: 4px; line-height: 1.55; }

.action-btn {
  width: 100%;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 12px 0;
  background: var(--navy);
  color: #fff;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.action-btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(20, 25, 40, 0.22); }
.action-btn.ghost {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--line-2);
}
.action-btn.ghost:hover:not(:disabled) { border-color: var(--text); box-shadow: none; }
.action-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* pills */
.pill {
  display: inline-block;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--dim);
  background: var(--card);
}
.pill.ok { border-color: #2a2a2a; background: #131313; color: #f5f5f5; }
.pill.warn { border-color: var(--line-2); color: var(--text); }

/* FAQ */
details.faq {
  background: var(--card);
  border: 1px solid rgba(20, 25, 40, 0.05);
  border-radius: 10px;
  margin-bottom: 9px;
}
details.faq[open] { box-shadow: var(--shadow); }
details.faq summary {
  cursor: pointer;
  padding: 14px 16px;
  font-weight: 700;
  font-size: 13.5px;
  list-style: none;
}
details.faq summary::before { content: "+ "; color: var(--blue-deep); }
details.faq[open] summary::before { content: "− "; }
details.faq div { padding: 0 16px 14px; color: var(--dim); font-size: 13px; line-height: 1.65; }

.story-img { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); }

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hc-demo { position: static; width: 100%; margin-top: 14px; }
}
@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-next { display: none; }
}

/* ============================================================
   The Tunnel — single-scene 3D lore dive (home)
   ============================================================ */
body.tunnel {
  background: #050505;
  color: #f5f5f5;
  overflow-x: hidden;
}

.warp { position: fixed; inset: 0; z-index: 0; }

.gridplane {
  position: fixed;
  left: -50vw;
  width: 200vw;
  height: 62vh;
  z-index: 1;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 90px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 90px);
  mask-image: linear-gradient(to top, rgba(0,0,0,0.9), transparent 85%);
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0.9), transparent 85%);
}
.gridplane.floor {
  bottom: -14vh;
  transform: perspective(620px) rotateX(76deg);
  transform-origin: bottom center;
}
.gridplane.ceil {
  top: -14vh;
  transform: perspective(620px) rotateX(-76deg);
  transform-origin: top center;
  opacity: 0.45;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9), transparent 85%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9), transparent 85%);
}

.scene {
  position: fixed;
  inset: 0;
  perspective: 950px;
  perspective-origin: 50% 46%;
  z-index: 2;
}

.layer {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(660px, 90vw);
  text-align: center;
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
}

.l-kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: #8a8a8a;
  margin-bottom: 16px;
}
.layer h2 {
  font-family: var(--disp);
  font-size: clamp(32px, 5.4vw, 56px);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.06;
  color: #fff;
  margin-bottom: 18px;
}
.layer .lead {
  font-size: 15.5px;
  line-height: 1.75;
  color: #b9b9b9;
  max-width: 540px;
  margin: 0 auto 16px;
}
.layer .lead strong { color: #fff; }
.layer a { color: #fff; }

.l-title h1 {
  font-family: var(--disp);
  font-size: clamp(54px, 10vw, 110px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #fff;
  margin: 22px 0 18px;
}
.l-title img { width: 76px; height: 76px; }
.l-title .lead { font-size: 17px; }

.tframe {
  display: block;
  max-width: 560px;
  margin: 20px auto 10px;
  border: 1px solid #333;
  border-radius: 12px;
  overflow: hidden;
  background: #0d0d0d;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.8);
}
.tframe img {
  display: block;
  width: 100%;
  height: auto;
  filter: grayscale(1) contrast(1.06);
  opacity: 0.92;
}
.tsrc {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: #6f6f6f;
}
.tsrc a { color: #a8a8a8; }

.tweetcard {
  background: #0c0c0c;
  border: 1px solid #2c2c2c;
  border-radius: 16px;
  padding: 20px 22px;
  text-align: left;
  max-width: 520px;
  margin: 0 auto 14px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7);
}
.tweetcard .tc-head { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; }
.tweetcard .tc-av {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid #d8d8d5;
  object-fit: cover;
  filter: grayscale(1);
  display: block;
}
.tweetcard .tc-ver {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #111;
  color: #fff;
  font-size: 9px;
  line-height: 1;
  margin-left: 3px;
  vertical-align: 1px;
}
.tweetcard .tc-name { font-weight: 700; font-size: 14px; color: #fff; }
.tweetcard .tc-handle { font-size: 12px; color: #7d7d7d; }
.tweetcard .tc-x { margin-left: auto; font-family: var(--disp); font-weight: 700; font-size: 16px; color: #6f6f6f; }
.tweetcard .tc-body { font-size: 15px; line-height: 1.65; color: #e6e6e6; margin-bottom: 12px; }
.tweetcard .tc-body em { color: #fff; font-style: normal; border-bottom: 1px solid #4a4a4a; }
.tweetcard .tc-foot { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; color: #6f6f6f; }
.tweetcard .tc-foot a { color: #a8a8a8; }
.tweetcard.big .tc-body { font-size: clamp(17px, 2.6vw, 22px); line-height: 1.5; }

.l-links { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.l-btn {
  font-family: var(--disp);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffffff;
  background: #111111;
  border-radius: 8px;
  padding: 13px 26px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.l-btn:hover { transform: translateY(-2px); box-shadow: 0 0 40px rgba(255, 255, 255, 0.25); color: #050505; }
.l-btn.line { background: transparent; color: #f5f5f5; border: 1px solid #4a4a4a; }
.l-btn.line:hover { border-color: #f5f5f5; box-shadow: none; }

.l-fineprint {
  margin-top: 40px;
  font-size: 10.5px;
  line-height: 1.7;
  color: #5f5f5f;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* tunnel chrome */
.tnav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 24px;
  background: linear-gradient(to bottom, rgba(251, 251, 250, 0.94), transparent);
}
.tnav .logo-lockup { color: #111; font-size: 12px; }
.tnav .nav-links { margin-left: auto; display: flex; gap: 20px; }
.tnav .nav-links a {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #9a9a9a;
}
.tnav .nav-links a:hover, .tnav .nav-links a.active { color: #000; }

.progress {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.progress button {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 1px solid #5a5a5a;
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.progress button.active { background: #f5f5f5; border-color: #f5f5f5; transform: scale(1.35); }

.scroll-hint {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #8a8a8a;
  animation: hint-bob 2.2s ease-in-out infinite;
  transition: opacity 0.5s ease;
}
.scroll-hint.gone { opacity: 0; }
@keyframes hint-bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 7px); }
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 46%, transparent 55%, rgba(0, 0, 0, 0.65) 100%);
}

@media (max-width: 700px) {
  .tnav .nav-links { display: none; }
  .progress { right: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-hint { animation: none; }
}

/* ---------- tunnel: all-white override ---------- */
body.tunnel { background: #fbfbfa; color: #111; }

body.tunnel .gridplane {
  background-image:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.08) 0 1px, transparent 1px 90px),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.08) 0 1px, transparent 1px 90px);
}

body.tunnel .vignette {
  background: radial-gradient(ellipse at 50% 46%, transparent 52%, rgba(251, 251, 250, 0.92) 100%);
}

body.tunnel .l-kicker { color: #9a9a9a; }
body.tunnel .layer h2 { color: #0d0d0d; }
body.tunnel .layer h2 span { color: #9a9a9a !important; }
body.tunnel .layer .lead { color: #555; }
body.tunnel .layer .lead strong { color: #0d0d0d; }
body.tunnel .layer .lead em { color: #0d0d0d !important; }
body.tunnel .layer a { color: #0d0d0d; }

body.tunnel .l-title h1 { color: #0d0d0d; }

body.tunnel .tframe {
  border-color: #e2e2df;
  background: #fff;
  box-shadow: 0 34px 90px rgba(15, 15, 15, 0.16);
}
body.tunnel .tframe img { opacity: 1; }
body.tunnel .tsrc { color: #a0a0a0; }
body.tunnel .tsrc a { color: #555; }

body.tunnel .tweetcard {
  background: #fff;
  border-color: #e4e4e1;
  box-shadow: 0 30px 80px rgba(15, 15, 15, 0.14);
}
body.tunnel .tweetcard .tc-av { background: #f1f1ef; border-color: #ddd; color: #111; }
body.tunnel .tweetcard .tc-name { color: #0d0d0d; }
body.tunnel .tweetcard .tc-handle { color: #9a9a9a; }
body.tunnel .tweetcard .tc-x { color: #c2c2c2; }
body.tunnel .tweetcard .tc-body { color: #333; }
body.tunnel .tweetcard .tc-body em { color: #000; border-bottom-color: #bbb; }
body.tunnel .tweetcard .tc-foot { color: #a0a0a0; }
body.tunnel .tweetcard .tc-foot a { color: #555; }

body.tunnel .l-btn { background: #111; color: #fff !important; }
body.tunnel .l-btn:hover { box-shadow: 0 12px 34px rgba(15, 15, 15, 0.25); color: #fff; }
body.tunnel .l-btn.line { background: transparent; color: #111 !important; border-color: #bbb; }
body.tunnel .l-btn.line:hover { border-color: #111; box-shadow: none; }
body.tunnel .l-fineprint { color: #a8a8a8; }
body.tunnel .l-fineprint a { color: #777 !important; }

body.tunnel .tnav { background: linear-gradient(to bottom, rgba(251, 251, 250, 0.92), transparent); }
body.tunnel .tnav .logo-lockup { color: #111; }
body.tunnel .tnav .nav-links a { color: #9a9a9a; }
body.tunnel .tnav .nav-links a:hover, body.tunnel .tnav .nav-links a.active { color: #000; }

body.tunnel .progress button { border-color: #bfbfbf; }
body.tunnel .progress button.active { background: #111; border-color: #111; }

body.tunnel .scroll-hint { color: #9a9a9a; }

/* ---------- whitepaper backdrop elements ---------- */
body.tunnel .gridplane { display: none; }

.wp-ghost {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  pointer-events: none;
  font-family: var(--disp);
  font-weight: 700;
  font-size: clamp(240px, 52vw, 640px);
  letter-spacing: -0.05em;
  color: rgba(17, 17, 17, 0.035);
  user-select: none;
}

.wp-corner {
  position: fixed;
  width: 24px;
  height: 24px;
  z-index: 4;
  pointer-events: none;
}
.wp-corner::before, .wp-corner::after {
  content: "";
  position: absolute;
  background: rgba(17, 17, 17, 0.28);
}
.wp-corner::before { width: 24px; height: 1px; }
.wp-corner::after { width: 1px; height: 24px; }
.wp-corner.tl { top: 64px; left: 20px; }
.wp-corner.tr { top: 64px; right: 20px; transform: rotate(90deg); }
.wp-corner.br { bottom: 20px; right: 20px; transform: rotate(180deg); }
.wp-corner.bl { bottom: 20px; left: 20px; transform: rotate(270deg); }

.wp-side {
  position: fixed;
  left: 20px;
  top: 30%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  rotate: 180deg;
  z-index: 4;
  pointer-events: none;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #bdbdba;
  user-select: none;
}

.wp-foot {
  position: fixed;
  bottom: 24px;
  z-index: 4;
  pointer-events: none;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #b3b3b0;
  user-select: none;
}
.wp-foot.left { left: 58px; }
.wp-foot.right { right: 58px; }

/* ---------- finale links, editorial underline ---------- */
.l-link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  color: #111 !important;
  text-decoration: none;
  padding-bottom: 7px;
}
.l-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1.5px;
  background: #111;
  transform-origin: left center;
  transition: transform 0.4s cubic-bezier(0.2, 0.72, 0.18, 1), height 0.2s ease;
}
.l-link:hover::after { height: 2.5px; }
.l-link .arr {
  font-size: 16px;
  color: #9a9a9a;
  transition: transform 0.35s cubic-bezier(0.2, 0.72, 0.18, 1), color 0.25s ease;
}
.l-link:hover .arr { transform: translateX(5px); color: #111; }
.l-links { display: flex; justify-content: center; gap: 44px; flex-wrap: wrap; margin-top: 30px; }

/* ---------- finale buttons, premium (legacy) ---------- */
.l-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  border-radius: 10px;
  padding: 15px 20px 15px 24px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
  min-width: 190px;
}
.l-btn .arr {
  font-size: 15px;
  line-height: 1;
  transition: transform 0.35s cubic-bezier(0.2, 0.72, 0.18, 1);
}
.l-btn:hover .arr { transform: translateX(4px); }
body.tunnel .l-btn {
  background: linear-gradient(180deg, #232323, #0b0b0b);
  border: 1px solid #000;
  color: #fff !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 1px 2px rgba(15, 15, 15, 0.3),
    0 14px 30px rgba(15, 15, 15, 0.16);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
body.tunnel .l-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 2px 4px rgba(15, 15, 15, 0.3),
    0 20px 44px rgba(15, 15, 15, 0.22);
}
body.tunnel .l-btn .arr { color: #9a9a9a; }
body.tunnel .l-btn:hover .arr { color: #fff; }
body.tunnel .l-btn.line {
  background: linear-gradient(180deg, #ffffff, #f6f6f4);
  border: 1px solid #dededb;
  color: #111 !important;
  box-shadow:
    inset 0 1px 0 #fff,
    0 1px 2px rgba(15, 15, 15, 0.06),
    0 10px 24px rgba(15, 15, 15, 0.07);
}
body.tunnel .l-btn.line:hover {
  border-color: #b5b5b2;
  box-shadow:
    inset 0 1px 0 #fff,
    0 2px 4px rgba(15, 15, 15, 0.08),
    0 16px 34px rgba(15, 15, 15, 0.12);
}
body.tunnel .l-btn.line .arr { color: #b5b5b2; }
body.tunnel .l-btn.line:hover .arr { color: #111; }

@media (max-width: 760px) {
  .wp-side, .wp-foot { display: none; }
  .wp-ghost { font-size: 70vw; }
}

/* ============================================================
   Docs
   ============================================================ */
body.docs { background: #fbfbfa; color: #15181e; }

.docs-wrap {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 46px;
  max-width: 1060px;
  margin: 0 auto;
  padding: 108px 22px 80px;
}

.docs-side { position: sticky; top: 92px; align-self: start; max-height: calc(100vh - 120px); }
.docs-side-inner { overflow-y: auto; max-height: calc(100vh - 130px); padding-right: 6px; }
.docs-side-inner::-webkit-scrollbar { width: 4px; }
.docs-side-inner::-webkit-scrollbar-thumb { background: #dcdcd8; border-radius: 2px; }
.docs-side-toggle { display: none; }
.docs-group {
  display: block;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 20px 0 7px;
  padding-left: 12px;
}
.docs-group:first-child { margin-top: 0; }
.docs-side a {
  display: block;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--dim);
  padding: 5px 0 5px 12px;
  border-left: 2px solid #ececE8;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.docs-side a:hover { color: var(--text); border-left-color: #b8b8b4; }
.docs-side a.active { color: var(--text); border-left-color: #111; font-weight: 700; }

.docs-body { max-width: 660px; }
.docs-body .kicker {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 12px;
}
.docs-body h1 {
  font-family: var(--disp);
  font-size: clamp(28px, 4.4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin-bottom: 14px;
}
.docs-body .lede { font-size: 15.5px; color: var(--dim); margin-bottom: 34px; line-height: 1.7; }
.docs-body h2 {
  font-family: var(--disp);
  font-size: 21px;
  font-weight: 600;
  margin: 38px 0 12px;
}
.docs-body h3 { font-size: 15px; font-weight: 700; margin: 26px 0 8px; }
.docs-body p { font-size: 14.5px; line-height: 1.75; color: #3c3f45; margin-bottom: 14px; }
.docs-body p strong { color: var(--text); }
.docs-body ul, .docs-body ol { margin: 0 0 16px 22px; }
.docs-body li { font-size: 14.5px; line-height: 1.75; color: #3c3f45; margin-bottom: 8px; }
.docs-body a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.docs-body code {
  font-family: var(--mono);
  font-size: 12.5px;
  background: #f0f0ed;
  border: 1px solid #e5e5e1;
  border-radius: 5px;
  padding: 1px 6px;
}
.docs-body pre {
  background: #101114;
  color: #e8e8e6;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.7;
  border-radius: 10px;
  padding: 16px 18px;
  overflow-x: auto;
  margin-bottom: 18px;
}
.docs-body table { width: 100%; border-collapse: collapse; font-size: 13.5px; margin-bottom: 18px; }
.docs-body th, .docs-body td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #ecece8; }
.docs-body th {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 500;
}
.docs-note {
  border: 1px solid #e2e2de;
  border-left: 3px solid #111;
  background: #f6f6f3;
  border-radius: 8px;
  padding: 13px 16px;
  font-size: 13.5px;
  line-height: 1.65;
  color: #3c3f45;
  margin: 18px 0;
}
.docs-next {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid #ecece8;
  font-size: 13.5px;
  font-weight: 600;
}
.docs-next a { text-decoration: none; }
.docs-next a:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .docs-wrap { grid-template-columns: 1fr; gap: 18px; padding-top: 96px; }
  .docs-side { position: static; max-height: none; }
  .docs-side-toggle {
    display: block;
    width: 100%;
    text-align: left;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px 14px;
    cursor: pointer;
  }
  .docs-side-toggle::after { content: " ▾"; color: var(--faint); }
  .docs-side-inner {
    display: none;
    max-height: 60vh;
    margin-top: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 12px 14px;
  }
  .docs-side-inner.open { display: block; }
}

/* ============================================================
   App consoles (dashboard / switchboard / tape) — light
   ============================================================ */
body.app { background: #fbfbfa; color: #15181e; }

.console { position: relative; z-index: 2; max-width: 1080px; margin: 0 auto; padding: 104px 22px 70px; }
.console-head { margin-bottom: 22px; }
.console-head .kicker { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--faint); }
.console-head h1 { font-family: var(--disp); font-size: clamp(30px,4.6vw,46px); font-weight: 600; letter-spacing: -0.02em; margin: 6px 0 0; }

/* CA status bar */
.ca-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: #fff; border: 1px solid rgba(20,25,40,0.08); border-radius: 12px; padding: 13px 16px; margin: 18px 0 30px; box-shadow: 0 4px 18px rgba(20,25,40,0.04); }
.ca-bar .dot { width: 8px; height: 8px; border-radius: 50%; background: #b7bbc2; flex: none; }
.ca-bar.live .dot { background: #17945a; animation: livepulse 2s infinite; }
@keyframes livepulse { 0%,100%{box-shadow:0 0 0 0 rgba(23,148,90,0.4);} 50%{box-shadow:0 0 0 6px rgba(23,148,90,0);} }
.ca-bar .state { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.ca-bar.live .state { color: #17945a; }
.ca-bar .addr { font-family: var(--mono); font-size: 12.5px; color: #3c3f45; margin-left: auto; }
.ca-bar a, .ca-bar button.copy { font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; color: var(--dim); text-decoration: none; background: #fff; border: 1px solid var(--line-2); border-radius: 6px; padding: 6px 10px; cursor: pointer; }
.ca-bar a:hover, .ca-bar button.copy:hover { color: var(--text); border-color: var(--text); }

/* stat grid */
.cgrid { display: grid; gap: 14px; }
.cgrid.c4 { grid-template-columns: repeat(auto-fit, minmax(210px,1fr)); }
.cgrid.c3 { grid-template-columns: repeat(auto-fit, minmax(250px,1fr)); }
.cgrid.c2 { grid-template-columns: repeat(auto-fit, minmax(320px,1fr)); }

.ccard { position: relative; background: #fff; border: 1px solid rgba(20,25,40,0.06); border-radius: 14px; padding: 20px 22px; transition: box-shadow .25s, transform .25s; }
.ccard:hover { box-shadow: 0 14px 40px rgba(20,25,40,0.08); transform: translateY(-2px); }
.ccard .lab { font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); margin-bottom: 10px; }
.ccard .val { font-family: var(--disp); font-size: 30px; font-weight: 600; letter-spacing: -0.01em; color: var(--text); line-height: 1; }
.ccard .val.sm { font-size: 20px; }
.ccard .val .u { font-size: 14px; color: var(--dim); font-weight: 500; margin-left: 3px; }
.ccard .val.pending { color: #b7bbc2; font-family: var(--mono); font-size: 15px; font-weight: 400; letter-spacing: 0.04em; }
.ccard .sub { font-size: 12px; color: var(--faint); margin-top: 8px; }
.ccard .bar { height: 4px; border-radius: 4px; background: #ececE8; margin-top: 12px; overflow: hidden; }
.ccard .bar span { display: block; height: 100%; background: linear-gradient(90deg,#17945a,#12784a); width: 0; transition: width .8s ease; }

.csection { margin-top: 40px; }
.csection h2 { font-family: var(--disp); font-size: 18px; font-weight: 600; margin-bottom: 14px; }

/* panel + table */
.cpanel { background: #fff; border: 1px solid rgba(20,25,40,0.06); border-radius: 14px; overflow: hidden; box-shadow: 0 6px 24px rgba(20,25,40,0.04); }
.cpanel .phead { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid #f0f0ec; }
.cpanel .phead h3 { font-size: 14px; font-weight: 700; }
.cpanel .phead .pill { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); border: 1px solid var(--line-2); border-radius: 999px; padding: 3px 10px; }
.cpanel .phead .pill.live { color: #17945a; border-color: rgba(23,148,90,0.4); background: rgba(23,148,90,0.07); }
.ctable { width: 100%; border-collapse: collapse; font-size: 13px; }
.ctable th, .ctable td { text-align: left; padding: 12px 20px; border-bottom: 1px solid #f4f4f0; }
.ctable tbody tr:last-child td { border-bottom: 0; }
.ctable tbody tr:nth-child(even) { background: #fafaf7; }
.ctable th { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); font-weight: 500; }
.ctable td { color: #3c3f45; }
.ctable td.mono { font-family: var(--mono); }
.ctable a { color: var(--text); }
.ctable .empty { text-align: center; color: #9a9da4; padding: 40px 20px; font-size: 13px; }
.ctable .empty .big { font-family: var(--disp); font-size: 16px; color: #6b6f76; display: block; margin-bottom: 4px; }

/* forms */
.cfield { margin-bottom: 16px; }
.cfield label { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); margin-bottom: 7px; }
.cfield select, .cfield input[type=text] { width: 100%; background: #fbfbfa; border: 1px solid var(--line); border-radius: 8px; color: var(--text); font-family: var(--sans); font-size: 14px; padding: 11px 13px; }
.cfield select:focus, .cfield input:focus { outline: 2px solid var(--text); outline-offset: -1px; }
.cbtn { width: 100%; font-family: var(--sans); font-weight: 700; font-size: 13px; padding: 13px 0; border-radius: 9px; border: 1px solid transparent; cursor: pointer; background: var(--navy); color: #fff; transition: transform .2s, box-shadow .2s; }
.cbtn:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(20,25,40,0.22); }
.cbtn.ghost { background: #fff; color: var(--text); border-color: var(--line-2); }
.cbtn.ghost:hover { border-color: var(--text); box-shadow: none; }
.cbtn:disabled { opacity: .4; cursor: not-allowed; transform: none; box-shadow: none; }
.cmsg { font-size: 12px; color: var(--faint); margin-top: 10px; line-height: 1.6; }

.radio-tier { display: block; background: #fbfbfa; border: 1px solid var(--line); border-radius: 10px; padding: 13px 15px; margin-bottom: 9px; cursor: pointer; transition: border-color .2s, background .2s; }
.radio-tier:hover { border-color: var(--line-2); }
.radio-tier:has(input:checked) { border-color: var(--navy); background: #fff; }
.radio-tier input { margin-right: 8px; accent-color: var(--navy); }
.radio-tier .t { font-weight: 700; font-size: 13.5px; }
.radio-tier .d { font-size: 12px; color: var(--faint); margin-top: 4px; }

.reel { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px,1fr)); gap: 12px; }
.reel .slot { background: #fbfbfa; border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.reel .slot .n { font-family: var(--mono); font-size: 10px; color: var(--faint); letter-spacing: 0.12em; }
.reel .slot .v { font-family: var(--disp); font-size: 22px; font-weight: 600; margin-top: 6px; }
.reel .slot.pending .v { color: #c2c5cb; font-family: var(--mono); font-size: 13px; font-weight: 400; }


/* console lede */
.console-lede { margin-top: 12px; max-width: 620px; color: var(--dim); font-size: 14.5px; line-height: 1.65; }

/* tier cards */
.tier-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px,1fr)); gap: 14px; }
.tier-card { background: #fff; border: 1px solid rgba(20,25,40,0.07); border-radius: 14px; padding: 22px; transition: box-shadow .25s, transform .25s, border-color .25s; }
.tier-card:hover { box-shadow: 0 16px 44px rgba(20,25,40,0.09); transform: translateY(-3px); border-color: rgba(20,25,40,0.14); }
.tier-top { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; }
.tier-name { font-family: var(--disp); font-size: 17px; font-weight: 700; }
.tier-w { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; color: var(--faint); text-transform: uppercase; }
.tier-principal { font-family: var(--disp); font-size: 30px; font-weight: 600; letter-spacing: -0.02em; line-height: 1; }
.tier-principal span { font-size: 14px; color: var(--dim); font-weight: 500; }
.tier-lab { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); margin-top: 6px; }
.tier-fee { margin-top: 16px; padding-top: 14px; border-top: 1px solid #f0f0ec; font-size: 12.5px; color: var(--dim); }

/* acquisition path cards */
.ccard.path { padding: 22px 24px; }
.ccard.path .path-n { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; color: var(--faint); }
.ccard.path .path-t { font-family: var(--disp); font-size: 19px; font-weight: 700; margin: 8px 0 8px; }
.ccard.path p { color: var(--dim); font-size: 13.5px; line-height: 1.6; margin: 0; }

/* launch note banner */
.launch-note { display: flex; gap: 14px; align-items: flex-start; margin-top: 20px; padding: 16px 18px; background: #fff; border: 1px solid rgba(20,25,40,0.08); border-radius: 12px; }
.launch-note .ln-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--navy); margin-top: 5px; flex: none; }
.launch-note .ln-title { font-weight: 700; font-size: 14px; }
.launch-note .ln-sub { font-size: 13px; color: var(--dim); line-height: 1.6; margin-top: 3px; }
.launch-note .ln-sub a { color: var(--text); }

/* footer social links — centered, underline on hover */
.flinks { display: flex; gap: 44px; flex-wrap: wrap; justify-content: center; margin-bottom: 16px; }
.flinks a { text-align: center; text-decoration: none; display: inline-block; }
.flinks .fl-k { display: block; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); margin-bottom: 4px; }
.flinks .fl-v { display: inline-block; font-size: 14px; font-weight: 600; color: var(--text); border-bottom: 1.5px solid transparent; padding-bottom: 1px; transition: border-color .2s ease; }
.flinks a:hover .fl-v { border-bottom-color: var(--text); }

/* switchboard: your-rigs empty state */
.rig-empty { margin-top: 6px; padding: 26px 18px; text-align: center; border: 1px dashed var(--line-2); border-radius: 12px; background: #fbfbfa; }
.rig-empty .re-big { font-family: var(--disp); font-size: 15px; font-weight: 600; color: #6b6f76; margin-bottom: 5px; }
.rig-empty .re-sub { font-size: 12.5px; color: var(--faint); line-height: 1.55; max-width: 320px; margin: 0 auto; }

/* agent network: live HF badge values + join note */
.badge-val { display: flex; align-items: center; min-height: 30px; }
.badge-val img { height: 34px; display: block; margin-left: -6px; image-rendering: -webkit-optimize-contrast; }
.ccard .sub a { color: var(--dim); text-decoration: underline; text-underline-offset: 2px; }
.ccard .sub a:hover { color: var(--text); }
.agent-note { display: flex; gap: 14px; align-items: flex-start; margin-top: 16px; padding: 16px 18px; background: #fff; border: 1px solid rgba(20,25,40,0.08); border-radius: 12px; }
.agent-note .ln-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--navy); margin-top: 5px; flex: none; }
.agent-note .ln-title { font-weight: 700; font-size: 14px; }
.agent-note .ln-sub { font-size: 13px; color: var(--dim); line-height: 1.65; margin-top: 3px; }
.agent-note .ln-sub a { color: var(--text); }
.agent-note code { font-family: var(--mono); font-size: 12px; background: #f4f4f0; border: 1px solid var(--line); border-radius: 5px; padding: 2px 7px; display: inline-block; margin-top: 6px; }
