/* ============================================================================
   WREDLIM — BNB position terminal. Self-contained landing styles.
   Display: Geist · Data/labels: IBM Plex Mono · Palette: BNB gold on black.
   ========================================================================== */

@font-face {
  font-family: 'Geist';
  src: url('/fonts/Geist-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/assets/ibm-plex-mono-latin-400-normal-DMJ8VG8y.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/assets/ibm-plex-mono-latin-500-normal-DSY6xOcd.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}

:root {
  --bg: #0B0E11;
  --bg-1: #12161C;
  --bg-2: #161B22;
  --bg-3: #1C222B;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.055);
  --line-gold: rgba(240, 185, 11, 0.24);
  --ink: #EAECEF;
  --ink-2: #B7BDC6;
  --muted: #848E9C;
  --muted-2: #5E6673;
  --bnb: #F0B90B;
  --bnb-2: #FCD535;
  --bnb-ink: #0B0E11;
  --up: #0ECB81;
  --down: #F6465D;

  --font-display: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --glow-gold: 0 0 44px rgba(240, 185, 11, 0.22);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.55;
  font-size: 16px;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img, svg { display: block; }
::selection { background: var(--bnb); color: var(--bnb-ink); }

/* ---- Ambient background --------------------------------------------------- */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.bg-grid {
  position: absolute;
  inset: -2px;
  background-image:
    linear-gradient(var(--line-2) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-2) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(120% 80% at 50% 0%, #000 25%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 80% at 50% 0%, #000 25%, transparent 78%);
}
.bg-glow {
  position: absolute;
  top: -320px;
  left: 50%;
  width: 1100px;
  height: 900px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(240, 185, 11, 0.16), rgba(240, 185, 11, 0.04) 55%, transparent 72%);
  filter: blur(6px);
}
.bg-diamond {
  position: absolute;
  top: 120px;
  left: 50%;
  width: 460px;
  height: 460px;
  transform: translateX(-50%) rotate(45deg);
  border: 1px solid rgba(240, 185, 11, 0.10);
  border-radius: 40px;
  mask-image: radial-gradient(closest-side, transparent 60%, #000);
  -webkit-mask-image: radial-gradient(closest-side, transparent 60%, #000);
}

/* ---- Shell ---------------------------------------------------------------- */
.shell { position: relative; z-index: 1; }
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* ---- Mono utility --------------------------------------------------------- */
.mono {
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.02em;
  font-feature-settings: "tnum" 1;
}
.eyebrow {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 20px;
  height: 1px;
  background: var(--bnb);
  box-shadow: 0 0 8px rgba(240, 185, 11, 0.6);
}
.eyebrow.is-center::after {
  content: "";
  width: 20px;
  height: 1px;
  background: var(--bnb);
  box-shadow: 0 0 8px rgba(240, 185, 11, 0.6);
}

/* ---- Ticker tape ---------------------------------------------------------- */
.tape {
  position: relative;
  z-index: 3;
  border-bottom: 1px solid var(--line);
  background: rgba(11, 14, 17, 0.85);
  backdrop-filter: blur(8px);
  overflow: hidden;
  height: 38px;
  display: flex;
  align-items: center;
}
.tape::before, .tape::after {
  content: "";
  position: absolute;
  top: 0;
  width: 90px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}
.tape::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.tape::after { right: 0; background: linear-gradient(270deg, var(--bg), transparent); }
.tape-track {
  display: flex;
  align-items: center;
  gap: 34px;
  white-space: nowrap;
  padding-left: 34px;
  animation: tape 42s linear infinite;
  will-change: transform;
}
.tape:hover .tape-track { animation-play-state: paused; }
@keyframes tape { to { transform: translateX(-50%); } }
.tape-item {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.tape-item b { color: var(--ink); font-weight: 500; }
.tape-item .up { color: var(--up); }
.tape-item .down { color: var(--down); }
.tape-item .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--bnb); opacity: 0.5; }

/* ---- Header --------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.header.is-stuck {
  border-bottom-color: var(--line);
  background: rgba(11, 14, 17, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
}
.header-in {
  height: 68px;
  display: flex;
  align-items: center;
  gap: 22px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  background: none;
  border: 0;
  padding: 0;
  color: var(--ink);
}
.brand-mark { width: 30px; height: 30px; filter: drop-shadow(0 3px 10px rgba(240, 185, 11, 0.28)); }
.brand-word {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.17em;
  padding-left: 0.17em;
  white-space: nowrap;
}
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-inline: auto;
}
.nav a {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.nav a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.04); }
.header-actions { display: flex; align-items: center; gap: 10px; }

.ca {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--bg-1);
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 12px;
  transition: border-color 0.2s, color 0.2s;
}
.ca:hover { border-color: var(--line-gold); color: var(--ink); }
.ca .k { color: var(--muted); }
.ca .copied { color: var(--up); }
.ca svg { width: 13px; height: 13px; opacity: 0.7; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 40px;
  padding: 0 18px;
  border-radius: 10px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.03em;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.25s, background 0.2s, border-color 0.2s, color 0.2s;
}
.btn svg { width: 16px; height: 16px; }
.btn-gold {
  background: linear-gradient(180deg, var(--bnb-2), var(--bnb));
  color: var(--bnb-ink);
  box-shadow: 0 8px 24px rgba(240, 185, 11, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.btn-gold:hover { box-shadow: 0 10px 30px rgba(240, 185, 11, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.btn-ghost {
  background: var(--bg-1);
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--line-gold); background: var(--bg-2); }
.btn:active { transform: translateY(1px); }
.btn-lg { height: 50px; padding: 0 24px; font-size: 14px; border-radius: 12px; }

/* ---- Sections ------------------------------------------------------------- */
section { position: relative; }
.section-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 42px;
}
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 620;
  font-size: clamp(26px, 4vw, 40px);
  letter-spacing: -0.03em;
  line-height: 1.06;
  margin: 0;
}
.section-head p { margin: 0; color: var(--muted); max-width: 54ch; font-size: 15.5px; }
.section-index {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--bnb);
  letter-spacing: 0.1em;
}

/* ---- Hero ----------------------------------------------------------------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding-top: clamp(48px, 8vw, 92px);
  padding-bottom: clamp(56px, 8vw, 96px);
}
.hero-copy { max-width: 620px; }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 640;
  font-size: clamp(40px, 6.4vw, 74px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  margin: 20px 0 0;
}
.hero h1 .g {
  background: linear-gradient(92deg, var(--bnb-2), var(--bnb));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  margin: 22px 0 0;
  color: var(--ink-2);
  font-size: clamp(15.5px, 1.5vw, 17px);
  line-height: 1.6;
  max-width: 52ch;
}
.hero-cta { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }

.hero-chips { margin-top: 30px; }
.hero-chips-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 11px;
}
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 13px 0 10px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--bg-1);
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 12.5px;
  transition: border-color 0.2s, background 0.2s, color 0.2s, transform 0.15s;
}
.chip img { width: 26px; height: 15px; object-fit: contain; opacity: 0.9; }
.chip:hover { border-color: var(--line-gold); color: var(--ink); transform: translateY(-1px); }
.chip.is-active {
  border-color: var(--bnb);
  color: var(--bnb-ink);
  background: linear-gradient(180deg, var(--bnb-2), var(--bnb));
  box-shadow: 0 6px 18px rgba(240, 185, 11, 0.28);
}
.chip.is-active img { opacity: 1; filter: saturate(0) brightness(0.1); }

/* ---- Hero terminal (position readout) ------------------------------------- */
.terminal {
  position: relative;
  isolation: isolate;
}
.terminal-stack {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.terminal-stack span {
  position: absolute;
  inset: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-1);
}
.terminal-stack span:nth-child(1) { transform: translate(14px, 16px) scale(0.965); opacity: 0.5; }
.terminal-stack span:nth-child(2) { transform: translate(7px, 8px) scale(0.985); opacity: 0.75; }

.panel {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(240, 185, 11, 0.10), transparent 60%),
    linear-gradient(180deg, var(--bg-2), var(--bg-1));
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.8);
  overflow: hidden;
}
.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(160deg, rgba(240, 185, 11, 0.35), transparent 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.term-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.term-dots { display: flex; gap: 6px; }
.term-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--bg-3); border: 1px solid var(--line); }
.term-dots i:first-child { background: rgba(240, 185, 11, 0.5); border-color: transparent; }
.term-live { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; color: var(--up); }
.term-live .led {
  width: 7px; height: 7px; border-radius: 50%; background: var(--up);
  box-shadow: 0 0 0 0 rgba(14, 203, 129, 0.55);
  animation: led 2s ease-out infinite;
}
@keyframes led {
  0% { box-shadow: 0 0 0 0 rgba(14, 203, 129, 0.5); }
  70% { box-shadow: 0 0 0 7px rgba(14, 203, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(14, 203, 129, 0); }
}
.term-body { padding: 20px; }
.term-asset { display: flex; align-items: center; gap: 14px; }
.term-logo {
  width: 62px; height: 62px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: var(--bg-3);
  display: grid;
  place-items: center;
  flex: none;
}
.term-logo img { width: 40px; height: 24px; object-fit: contain; }
.term-asset-id .sym {
  font-family: var(--font-display);
  font-weight: 640;
  font-size: 26px;
  letter-spacing: -0.02em;
}
.term-asset-id .name { color: var(--muted); font-size: 13px; font-family: var(--font-mono); }
.term-serial {
  margin-left: auto;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
}
.term-serial b { display: block; color: var(--bnb); font-weight: 500; letter-spacing: 0.05em; }

.term-spark { margin: 18px 0 4px; height: 56px; }
.term-spark svg { width: 100%; height: 100%; overflow: visible; }

.term-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-top: 12px;
}
.term-cell { padding: 13px 14px; border-right: 1px solid var(--line); }
.term-cell:last-child { border-right: 0; }
.term-cell .l {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.term-cell .v {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 19px;
  margin-top: 5px;
  color: var(--ink);
}
.term-cell .v.up { color: var(--up); }
.term-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding-top: 15px;
  border-top: 1px dashed var(--line);
}
.term-foot .badge {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.term-foot .badge svg { width: 13px; height: 13px; color: var(--bnb); }
.term-foot .btn { margin-left: auto; height: 36px; }

/* ---- Stat band ------------------------------------------------------------ */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat { padding: 26px var(--gutter); border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat .n {
  font-family: var(--font-display);
  font-weight: 640;
  font-size: clamp(28px, 3.4vw, 40px);
  letter-spacing: -0.03em;
  line-height: 1;
}
.stat .n .u { color: var(--bnb); }
.stat .l {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-top: 10px;
}

/* ---- Generic section padding --------------------------------------------- */
.band { padding-block: clamp(64px, 9vw, 120px); }

/* ---- How it works --------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  counter-reset: step;
}
.step {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--bg-1), rgba(18, 22, 28, 0.4));
  padding: 22px 20px 24px;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s;
}
.step:hover { border-color: var(--line-gold); transform: translateY(-3px); }
.step-n {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted-2);
  letter-spacing: 0.1em;
}
.step-ico {
  width: 46px; height: 46px;
  border-radius: 12px;
  border: 1px solid var(--line-gold);
  background: radial-gradient(120% 120% at 30% 0%, rgba(240, 185, 11, 0.16), transparent 70%), var(--bg-2);
  display: grid;
  place-items: center;
  margin: 16px 0 18px;
  color: var(--bnb);
}
.step-ico svg { width: 22px; height: 22px; }
.step h3 { margin: 0 0 8px; font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.step p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.step.is-key { background: linear-gradient(180deg, rgba(240, 185, 11, 0.09), rgba(18, 22, 28, 0.3)); border-color: var(--line-gold); }
.step.is-key .step-n { color: var(--bnb); }

/* ---- Ledger --------------------------------------------------------------- */
.ledger {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-1);
}
.ledger-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}
.ledger-top .live { display: inline-flex; align-items: center; gap: 7px; color: var(--up); }
.ledger-top .live .led { width: 7px; height: 7px; border-radius: 50%; background: var(--up); animation: led 2s ease-out infinite; }
.ledger-top .count { margin-left: auto; color: var(--ink-2); }
.table-scroll { overflow-x: auto; }
table.ledger-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.ledger-table thead th {
  text-align: left;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
}
.ledger-table thead th.num, .ledger-table tbody td.num { text-align: right; font-variant-numeric: tabular-nums; }
.ledger-table tbody td {
  padding: 15px 18px;
  border-bottom: 1px solid var(--line-2);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-2);
}
.ledger-table tbody tr:last-child td { border-bottom: 0; }
.ledger-table tbody tr { transition: background 0.18s; }
.ledger-table tbody tr:hover { background: rgba(255, 255, 255, 0.02); }
.led-serial { color: var(--bnb); font-weight: 500; }
.led-asset { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.led-asset img { width: 24px; height: 14px; object-fit: contain; }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.03em;
  border: 1px solid transparent;
}
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; }
.tag.claimed { color: var(--up); background: rgba(14, 203, 129, 0.1); border-color: rgba(14, 203, 129, 0.25); }
.tag.claimed::before { background: var(--up); }
.tag.withdrawn { color: var(--muted); background: rgba(132, 142, 156, 0.08); border-color: rgba(132, 142, 156, 0.22); }
.tag.withdrawn::before { background: var(--muted); }
.led-bid { color: var(--bnb); }

/* ---- Deposit CTA ---------------------------------------------------------- */
.deposit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(28px, 5vw, 52px);
  background:
    radial-gradient(90% 130% at 100% 0%, rgba(240, 185, 11, 0.08), transparent 55%),
    linear-gradient(180deg, var(--bg-1), var(--bg));
  overflow: hidden;
}
.deposit h2 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 640; letter-spacing: -0.03em; margin: 14px 0 0; line-height: 1.05; }
.deposit p { color: var(--muted); margin: 16px 0 26px; max-width: 44ch; }
.config {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
  padding: 18px;
}
.config-row { display: flex; align-items: center; gap: 12px; }
.config-row .term-logo { width: 52px; height: 52px; }
.config-row .term-logo img { width: 34px; height: 20px; }
.config-name .sym { font-family: var(--font-display); font-weight: 620; font-size: 20px; }
.config-name .name { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.config-live {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--up);
  display: inline-flex; align-items: center; gap: 6px;
}
.config-live .led { width: 6px; height: 6px; border-radius: 50%; background: var(--up); }
.config-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 16px 0;
}
.config-split div {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
}
.config-split .l { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2); }
.config-split .v { font-family: var(--font-mono); font-weight: 500; font-size: 18px; margin-top: 5px; }
.config .btn { width: 100%; }

/* ---- FAQ ------------------------------------------------------------------ */
.faq { display: grid; gap: 12px; max-width: 820px; }
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-1);
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq details[open] { border-color: var(--line-gold); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 550;
  font-size: 16px;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .q { font-family: var(--font-mono); font-size: 12px; color: var(--bnb); }
.faq summary .sign {
  margin-left: auto;
  width: 22px; height: 22px;
  position: relative;
  flex: none;
}
.faq summary .sign::before, .faq summary .sign::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 11px; height: 1.5px; background: var(--muted);
  transform: translate(-50%, -50%);
  transition: transform 0.25s, background 0.25s;
}
.faq summary .sign::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details[open] summary .sign::after { transform: translate(-50%, -50%) rotate(0); }
.faq details[open] summary .sign::before, .faq details[open] summary .sign::after { background: var(--bnb); }
.faq p { margin: 0; padding: 0 20px 20px 54px; color: var(--muted); font-size: 14.5px; line-height: 1.6; }

/* ---- Footer --------------------------------------------------------------- */
.footer { border-top: 1px solid var(--line); padding-block: 40px 34px; margin-top: 20px; }
.footer-top {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line-2);
}
.footer-nav { display: flex; gap: 4px; margin-inline: auto; flex-wrap: wrap; }
.footer-nav a { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); padding: 7px 12px; border-radius: 8px; }
.footer-nav a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.04); }
.footer-bottom {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 22px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted-2);
}
.footer-bottom .chain { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); }
.footer-bottom .chain .led { width: 6px; height: 6px; border-radius: 50%; background: var(--up); }
.footer-bottom .ca-inline { margin-left: auto; color: var(--muted); }
.footer-disclaim { margin-top: 18px; color: var(--muted-2); font-size: 11.5px; font-family: var(--font-mono); line-height: 1.6; max-width: 90ch; }

/* ---- Reveal --------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--d, 0ms);
}
[data-reveal].in { opacity: 1; transform: none; }

/* ---- Mobile nav ----------------------------------------------------------- */
.menu-btn { display: none; }

/* ---- Responsive ----------------------------------------------------------- */
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; gap: 40px; }
  .hero-copy { max-width: none; }
  .terminal { max-width: 480px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
  .deposit { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .header-in { height: 60px; gap: 12px; }
  .ca { display: none; }
  .brand-word { font-size: 13px; letter-spacing: 0.08em; }
  .steps { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(38px, 12vw, 52px); }
  .hero-cta .btn { flex: 1; }
  .footer-nav { width: 100%; order: 3; }
}

@media (prefers-reduced-motion: reduce) {
  .tape-track { animation: none; }
  .term-live .led, .ledger-top .live .led { animation: none; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  * { scroll-behavior: auto !important; }
}

/* ---- Connect Wallet button ---- */
.wallet-btn { gap: 9px; }
.wallet-btn .wdot { display: none; width: 7px; height: 7px; border-radius: 50%; background: var(--up); box-shadow: 0 0 8px rgba(14, 203, 129, 0.65); }
.wallet-btn.is-connected { border-color: var(--line-gold); color: var(--ink); font-variant-numeric: tabular-nums; }
.wallet-btn.is-connected .wicon { display: none; }
.wallet-btn.is-connected .wdot { display: inline-block; }
@media (max-width: 620px) { .wallet-btn { padding: 0 11px; } .wallet-btn:not(.is-connected) [data-wallet-label] { display: none; } }

/* ---- Wallet picker + toast ---- */
.wallet-menu { position: fixed; z-index: 60; min-width: 214px; background: var(--bg-1); border: 1px solid var(--line-gold); border-radius: 12px; box-shadow: 0 22px 54px -22px rgba(0,0,0,0.85); padding: 8px; opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .18s, transform .18s; }
.wallet-menu.open { opacity: 1; transform: none; pointer-events: auto; }
.wallet-menu-head { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); padding: 6px 10px 8px; }
.wallet-opt { display: flex; align-items: center; gap: 11px; width: 100%; text-align: left; background: none; border: 0; border-radius: 8px; padding: 10px; color: var(--ink); font-family: var(--font-display); font-size: 14px; font-weight: 500; transition: background .15s; }
.wallet-opt:hover { background: rgba(255,255,255,0.05); }
.wallet-opt img { width: 22px; height: 22px; border-radius: 6px; object-fit: cover; }
.wallet-opt .wo-dot { width: 22px; height: 22px; border-radius: 6px; background: linear-gradient(180deg, var(--bnb-2), var(--bnb)); }
.wallet-toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px); z-index: 70; max-width: min(92vw, 470px); background: var(--bg-2); border: 1px solid var(--line-gold); border-radius: 12px; padding: 13px 16px; color: var(--ink); font-size: 13.5px; line-height: 1.45; box-shadow: 0 22px 54px -20px rgba(0,0,0,0.85); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; }
.wallet-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---- Ledger: per-asset differentiation ---- */
.led-asset { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); }
.led-logo { width: 32px; height: 24px; border-radius: 7px; display: grid; place-items: center; flex: none; background: color-mix(in srgb, var(--ac, #ffffff) 13%, transparent); border: 1px solid color-mix(in srgb, var(--ac, #ffffff) 42%, transparent); }
.led-logo img { width: 22px; height: 13px; object-fit: contain; }
.led-tk { display: flex; flex-direction: column; line-height: 1.16; }
.led-tk b { font-weight: 500; }
.led-tk small { color: var(--muted-2); font-size: 10px; font-family: var(--font-mono); letter-spacing: 0.03em; }
.ledger-table tbody td:first-child { box-shadow: inset 2px 0 0 var(--ac, transparent); }
.tag.repacked { color: var(--bnb); background: rgba(240,185,11,0.10); border-color: var(--line-gold); }
.tag.repacked::before { background: var(--bnb); }

/* ---- Ledger -> card layout on mobile ---- */
@media (max-width: 680px) {
  .ledger-top { flex-wrap: wrap; row-gap: 4px; }
  .table-scroll { overflow: visible; }
  table.ledger-table { display: block; min-width: 0; width: 100%; }
  .ledger-table thead { display: none; }
  .ledger-table tbody { display: flex; flex-direction: column; gap: 10px; padding: 12px; }
  .ledger-table tbody tr { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; border: 1px solid var(--line); border-left: 3px solid var(--ac, var(--line-gold)); border-radius: 12px; padding: 13px 14px; background: rgba(255,255,255,0.02); }
  .ledger-table tbody td { display: block; border: 0 !important; padding: 0; box-shadow: none !important; }
  .ledger-table td.led-serial { order: 1; font-size: 12px; }
  .ledger-table td:last-child { order: 2; margin-left: auto; }
  .ledger-table td:nth-child(2) { order: 3; flex-basis: 100%; }
  .ledger-table td.num { order: 4; text-align: left; }
  .ledger-table td.num::before { content: attr(data-label); display: block; font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 3px; }
}

/* ---- Ledger per-row trend sparkline ---- */
.led-spark { display: block; width: 62px; height: 15px; margin-top: 5px; opacity: 0.85; }
.led-spark svg { width: 100%; height: 100%; overflow: visible; }
@media (max-width: 680px) { .led-spark { width: 84px; height: 18px; } }

/* ---- Lenis smooth scroll ---- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }
