/* ============================================
   BSC x402 RESEARCH — Dexter Research
   Based on wash-report.css design system
   Accent: BNB gold (#F3BA2F) instead of red
   ============================================ */

:root {
  --bg: #06060a;
  --surface: #0d0d14;
  --surface2: #13131e;
  --surface3: #191926;
  --border: #1a1a2a;
  --border-bright: #2a2a44;
  --accent: #F3BA2F;
  --accent2: #E8A800;
  --blue: #3b82f6;
  --green: #22c55e;
  --purple: #a855f7;
  --yellow: #eab308;
  --cyan: #06b6d4;
  --red: #ef4444;
  --text: #e2e2e8;
  --dim: #8b8ba0;
  --dim2: #55556a;
  --mono: 'JetBrains Mono', monospace;
  --serif: 'Source Serif 4', 'Georgia', serif;
  --display: 'Fraunces', 'Georgia', serif;
  --container: 780px;
  --container-wide: 1080px;
  --container-full: 1280px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-family: var(--mono); font-size: 0.85em; background: var(--surface2); padding: 2px 7px; border-radius: 3px; color: var(--accent); }
strong { color: var(--text); }

/* ---- LAYOUT ---- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 32px; }
.container-wide { max-width: var(--container-wide); margin: 0 auto; padding: 0 32px; }

/* ---- SCROLL PROGRESS BAR ---- */
.progress-bar {
  position: fixed; top: 0; left: 0; z-index: 200;
  width: 0%; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transition: width 50ms linear;
}

/* ---- NAV ---- */
nav {
  position: sticky; top: 0; z-index: 150;
  background: rgba(6, 6, 10, 0.88);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid var(--border);
}
nav.scrolled { box-shadow: 0 4px 30px rgba(0,0,0,.5); }

.nav-inner {
  max-width: var(--container-full);
  margin: 0 auto; padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between;
  height: 52px;
}

.nav-brand {
  font-family: var(--mono); font-size: 11px;
  color: var(--dim2); letter-spacing: 2px;
  text-transform: uppercase; white-space: nowrap;
}
.nav-brand span { color: var(--accent); }

.nav-steps { display: flex; gap: 2px; overflow-x: auto; }
.nav-step {
  font-size: 12px; font-family: var(--mono);
  padding: 6px 14px; border-radius: 6px;
  color: var(--dim2); text-decoration: none;
  transition: all 0.25s ease; white-space: nowrap;
}
.nav-step:hover { color: var(--dim); background: var(--surface2); text-decoration: none; }
.nav-step.active { color: var(--accent); background: rgba(243, 186, 47, 0.08); }

/* ---- HERO ---- */
.hero {
  padding: 120px 0 80px;
  text-align: center;
}
.hero-kicker {
  font-family: var(--mono); font-size: 12px;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 24px;
}
.hero h1 {
  font-family: var(--display); font-size: clamp(32px, 5vw, 52px);
  font-weight: 700; line-height: 1.15;
  margin-bottom: 28px; color: #fff;
}
.hero-lede {
  font-size: 18px; line-height: 1.7;
  color: var(--dim); max-width: 640px;
  margin: 0 auto 32px;
}
.hero-meta {
  font-size: 13px; color: var(--dim2);
  font-family: var(--mono);
}
.hero-meta a { color: var(--dim); }

/* ---- SECTIONS ---- */
section {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}
.section-label {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 12px;
}
.section-title {
  font-family: var(--display); font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 700; line-height: 1.2;
  margin-bottom: 28px; color: #fff;
}
section p {
  margin-bottom: 20px; color: var(--text);
  font-size: 16px;
}

/* ---- TABLES ---- */
table {
  width: 100%; border-collapse: collapse;
  margin: 32px 0; font-size: 14px;
}
th {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--dim2); text-align: left;
  padding: 10px 14px; border-bottom: 2px solid var(--border-bright);
}
td {
  padding: 10px 14px; border-bottom: 1px solid var(--border);
  color: var(--text); vertical-align: top;
}
tr:hover td { background: var(--surface); }

td.yes { color: var(--green); font-weight: 600; }
td.no { color: var(--red); font-weight: 600; }
td.unknown { color: var(--dim2); font-style: italic; }
td.accent { color: var(--accent); font-family: var(--mono); font-size: 13px; }

/* ---- CALLOUT BOXES ---- */
.callout {
  background: var(--surface);
  border-left: 3px solid var(--accent);
  padding: 20px 24px;
  margin: 32px 0;
  border-radius: 0 8px 8px 0;
}
.callout-title {
  font-family: var(--mono); font-size: 12px;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 8px;
}
.callout p { margin-bottom: 8px; font-size: 15px; }
.callout p:last-child { margin-bottom: 0; }

.callout.red { border-left-color: var(--red); }
.callout.red .callout-title { color: var(--red); }
.callout.blue { border-left-color: var(--blue); }
.callout.blue .callout-title { color: var(--blue); }
.callout.green { border-left-color: var(--green); }
.callout.green .callout-title { color: var(--green); }

/* ---- CODE BLOCKS ---- */
pre {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px 24px;
  overflow-x: auto;
  margin: 24px 0;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.6;
  color: var(--dim);
}
pre .highlight { color: var(--accent); font-weight: 600; }
pre .comment { color: var(--dim2); }
pre .string { color: var(--green); }
pre .keyword { color: var(--purple); }

/* ---- STAT BLOCKS ---- */
.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px; margin: 32px 0;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
}
.stat-value {
  font-family: var(--display);
  font-size: 28px; font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
}
.stat-label {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--dim2);
}

/* ---- ADDRESS TAGS ---- */
.addr {
  font-family: var(--mono); font-size: 12px;
  background: var(--surface2); padding: 2px 8px;
  border-radius: 4px; color: var(--dim);
  word-break: break-all;
}
.addr a { color: var(--blue); }

/* ---- APPROACH CARDS ---- */
.approaches {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px; margin: 32px 0;
}
.approach-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
}
.approach-card h4 {
  font-family: var(--display); font-size: 18px;
  color: #fff; margin-bottom: 4px;
}
.approach-card .approach-who {
  font-family: var(--mono); font-size: 11px;
  color: var(--dim2); letter-spacing: 1px;
  text-transform: uppercase; margin-bottom: 12px;
}
.approach-card p {
  font-size: 14px; color: var(--dim); margin-bottom: 12px;
}
.approach-card .approach-tradeoff {
  font-size: 13px; color: var(--dim2);
  border-top: 1px solid var(--border);
  padding-top: 12px; margin-top: 8px;
}

/* ---- PULL QUOTES ---- */
.pull-quote {
  font-family: var(--display);
  font-size: 24px; font-weight: 600;
  color: #fff; text-align: center;
  padding: 48px 0; margin: 16px 0;
  position: relative;
}
.pull-quote::before {
  content: '';
  position: absolute; top: 0; left: 50%;
  transform: translateX(-50%);
  width: 40px; height: 2px;
  background: var(--accent);
}

/* ---- FOOTER ---- */
footer {
  padding: 60px 0;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--dim2);
  font-family: var(--mono);
  font-size: 12px;
}
footer a { color: var(--dim); }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .nav-steps { gap: 0; }
  .nav-step { padding: 6px 10px; font-size: 11px; }
  .hero { padding: 80px 0 48px; }
  section { padding: 48px 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .approaches { grid-template-columns: 1fr; }
  table { font-size: 13px; }
  th, td { padding: 8px 10px; }
}
