/* =============================================================
   Robinhood-style trading tips · styles
   - Bright green #00C805 for gains / primary
   - Red #FF5000 for losses
   - Dark sections for hero / footer
   - Inter font, system-stack fallback
============================================================= */

:root {
  --green: #00C805;
  --green-soft: #1FCB53;
  --green-bg: #E6FAE3;
  --red: #FF5000;
  --red-soft: #FF6F2F;
  --red-bg: #FFE9DE;

  --ink: #0B1411;
  --ink-2: #1A2421;
  --ink-soft: #5C6B66;
  --ink-mute: #8A9691;
  --line: #E4E8E5;
  --line-2: #EFF2F0;

  --paper: #FFFFFF;
  --paper-2: #FAFBF9;
  --paper-3: #F4F6F3;

  --black: #000000;
  --black-2: #0A0F0C;
  --black-3: #111A14;

  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 22px;

  --max: 1200px;
  --shadow: 0 1px 0 rgba(0,0,0,0.04), 0 8px 24px rgba(10, 20, 14, 0.05);
  --shadow-strong: 0 1px 0 rgba(0,0,0,0.06), 0 24px 60px rgba(10, 20, 14, 0.18);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

b, strong { font-weight: 700; }
em { font-style: italic; }

h1, h2, h3, h4 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--ink);
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

button { font-family: inherit; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}

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

/* =============================================================
   Top navigation
============================================================= */
.topnav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.topnav__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand__text-light { color: var(--ink-soft); font-weight: 500; }

.topnav__nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
  flex-wrap: wrap;
}

.topnav__nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}

.topnav__nav a:hover { background: var(--paper-3); color: var(--ink); }

.topnav__cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background 0.15s;
}
.topnav__cta:hover { background: var(--ink-2); }

@media (max-width: 900px) {
  .topnav__nav { display: none; }
  .topnav__cta { display: none; }
}

/* =============================================================
   Buttons
============================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.1s, background 0.15s, color 0.15s;
  white-space: nowrap;
}

.btn--primary {
  background: var(--green);
  color: #fff;
}
.btn--primary:hover { background: #00B005; }
.btn--primary:active { transform: scale(0.98); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { background: var(--paper-3); border-color: var(--ink-mute); }

.btn--small { padding: 8px 14px; font-size: 13px; }

/* =============================================================
   Hero
============================================================= */
.hero {
  background: var(--black);
  color: #fff;
  padding: 60px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0,200,5,0.18) 0%, transparent 60%);
  pointer-events: none;
}

.hero__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  background: rgba(0,200,5,0.1);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero__title {
  font-size: clamp(38px, 5.8vw, 64px);
  line-height: 1.04;
  font-weight: 800;
  color: #fff;
  margin: 0 0 24px;
  letter-spacing: -0.03em;
}

.hero__title .hl-green { color: var(--green); }
.hero__title .hl-red { color: var(--red); }

.hero__lede {
  font-size: 18px;
  color: rgba(255,255,255,0.75);
  max-width: 56ch;
  margin: 0 0 32px;
  line-height: 1.55;
}

.hero__lede em { color: #fff; font-style: normal; font-weight: 600; }

.hero__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero__cta .btn--ghost {
  color: #fff;
  border-color: rgba(255,255,255,0.25);
}
.hero__cta .btn--ghost:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.5); }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.hero__stats > div { display: flex; flex-direction: column; gap: 4px; }
.hero__stats b {
  font-family: 'JetBrains Mono', monospace;
  font-size: 24px;
  font-weight: 600;
  color: var(--green);
  letter-spacing: -0.01em;
}
.hero__stats span {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  line-height: 1.4;
}

.hero__viz {
  position: relative;
  aspect-ratio: 1 / 1;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hero__ticker {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  display: flex;
  gap: 14px;
  padding: 12px 18px;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255,255,255,0.08);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  white-space: nowrap;
  overflow-x: auto;
}

.hero__ticker b { color: #fff; font-weight: 600; margin-right: 6px; }
.hero__ticker em { font-style: normal; }
.hero__ticker .up { color: var(--green); }
.hero__ticker .down { color: var(--red); }

@media (max-width: 900px) {
  .hero { padding: 40px 0 60px; }
  .hero__inner { grid-template-columns: 1fr; gap: 32px; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .hero__viz { aspect-ratio: 16 / 10; }
}

/* =============================================================
   Disclaimer / how-to band
============================================================= */
.disclaimer {
  background: var(--paper-3);
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}

.disclaimer p {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0;
}
.disclaimer b { color: var(--ink); }

.band {
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
  padding: 48px 0;
}

.howto {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.howto__item {
  position: relative;
  padding: 24px 0 0;
  border-top: 2px solid var(--green);
}

.howto__num {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
  background: var(--green-bg);
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 14px;
}

.howto__item h3 {
  font-size: 17px;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.howto__item p {
  font-size: 14.5px;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .howto { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .howto { grid-template-columns: 1fr; }
}

/* =============================================================
   Sections (generic)
============================================================= */
.section {
  padding: 80px 0;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.section--alt { background: var(--paper-2); }
.section--formulas { background: var(--paper); }
.section--viz { background: var(--black); color: #fff; }
.section--viz .section__intro { color: rgba(255,255,255,0.7); }
.section--viz-alt { background: var(--black-2); color: #fff; }

.section__num {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--green);
  background: var(--green-bg);
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 18px;
}
.section--viz .section__num { background: rgba(0,200,5,0.15); color: var(--green); }

.section__title {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0 0 16px;
  max-width: 22ch;
}

.section--viz .section__title { color: #fff; }

.section__intro {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 64ch;
  margin: 0 0 48px;
  line-height: 1.6;
}

/* =============================================================
   Tip cards (grid)
============================================================= */
.grid { display: grid; gap: 18px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.tipcard {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px;
  transition: border-color 0.15s, transform 0.15s;
}

.tipcard:hover { border-color: var(--ink-mute); transform: translateY(-2px); }

.tipcard h3 {
  font-size: 17px;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.tipcard p {
  font-size: 14.5px;
  color: var(--ink-soft);
  margin: 0 0 14px;
  line-height: 1.6;
}

.tipcard__chip {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-soft);
  background: var(--paper-3);
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

@media (max-width: 720px) {
  .grid--2 { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
}

/* =============================================================
   Tip rows (linear list with letter marks)
============================================================= */
.tipstack { display: flex; flex-direction: column; }

.tiprow {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.tipstack .tiprow:first-child { border-top: none; padding-top: 0; }

.tiprow__num {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
}

.tiprow h3 {
  font-size: 19px;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.tiprow p {
  font-size: 15.5px;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.65;
}

.tiprow p b { color: var(--ink); }

/* =============================================================
   Danger callout (memecoins)
============================================================= */
.danger-callout {
  background: var(--red-bg);
  border-left: 4px solid var(--red);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin: 0 0 32px;
}

.danger-callout__label {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red);
  background: #fff;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.danger-callout p {
  font-size: 15px;
  color: var(--ink);
  margin: 0;
  line-height: 1.6;
}

/* =============================================================
   Formulas + calculators
============================================================= */
.formula-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.formula {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s, transform 0.15s;
}

.formula:hover { border-color: var(--green); }

.formula__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.formula__n {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--green);
  background: var(--green-bg);
  padding: 3px 8px;
  border-radius: 4px;
}

.formula__name {
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.formula__eq {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13.5px;
  background: var(--paper-3);
  color: var(--ink);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  margin: 0 0 16px;
  overflow-x: auto;
  line-height: 1.5;
}

.formula__calc {
  display: grid;
  gap: 8px;
  padding: 16px;
  background: var(--paper-2);
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
}

.formula__field {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  font-size: 13px;
}

.formula__field label {
  color: var(--ink-soft);
  font-weight: 500;
}

.formula__field input {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13.5px;
  font-weight: 500;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 6px;
  padding: 6px 10px;
  width: 100px;
  text-align: right;
  color: var(--ink);
  transition: border-color 0.15s;
}

.formula__field input:focus {
  outline: none;
  border-color: var(--green);
}

.formula__result {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
}

.formula__result b {
  color: var(--green);
  font-size: 15px;
  font-weight: 600;
}

.formula__example {
  font-size: 13.5px;
  color: var(--ink-soft);
  margin: 0 0 12px;
  line-height: 1.55;
}

.formula__note {
  font-size: 12.5px;
  color: var(--ink-mute);
  margin: 0;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  line-height: 1.55;
}

@media (max-width: 900px) {
  .formula-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .formula-grid { grid-template-columns: 1fr; }
}

/* =============================================================
   3D viz sections
============================================================= */
.viz {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 24px;
  align-items: stretch;
  margin-top: 32px;
}

.viz__canvas {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  display: block;
  touch-action: none;
}

.viz__panel {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 24px 26px;
  font-size: 14.5px;
  color: rgba(255,255,255,0.8);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rrrow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.rrrow:last-of-type { border-bottom: none; }

.rrlabel { color: rgba(255,255,255,0.6); font-size: 14px; }
.rrval {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-size: 15px;
  color: #fff;
}
.rrval.up { color: var(--green); }
.rrval.down { color: var(--red); }

.rrhint {
  font-size: 13.5px;
  color: rgba(255,255,255,0.55);
  margin: 8px 0 0;
  line-height: 1.55;
}

.ddlegend { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.dddot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.dddown { background: var(--red); }
.ddup { background: var(--green); }

@media (max-width: 900px) {
  .viz { grid-template-columns: 1fr; }
  .viz__canvas { aspect-ratio: 16 / 11; }
}

/* =============================================================
   Rules grid
============================================================= */
.rules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 56px;
}

.rule {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 16px;
  align-items: flex-start;
  padding: 22px 24px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.rule__mark {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
}

.rule p {
  font-size: 14.5px;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.6;
}
.rule p b { color: var(--ink); }

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

/* =============================================================
   Checklist
============================================================= */
.checklist {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.checklist h3 {
  font-size: 22px;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.checklist__intro {
  font-size: 14.5px;
  color: var(--ink-soft);
  margin: 0 0 20px;
}

.checklist__items {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}

.checkitem {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  user-select: none;
}

.checkitem:hover { border-color: var(--ink-mute); }

.checkitem input { display: none; }

.checkitem__box {
  width: 22px; height: 22px;
  min-width: 22px;
  border: 2px solid var(--line);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  margin-top: 1px;
}

.checkitem__box::after {
  content: '';
  width: 12px; height: 12px;
  background: var(--green);
  border-radius: 3px;
  opacity: 0;
  transform: scale(0.4);
  transition: all 0.15s;
}

.checkitem.is-checked .checkitem__box { border-color: var(--green); }
.checkitem.is-checked .checkitem__box::after { opacity: 1; transform: scale(1); }
.checkitem.is-checked { background: var(--green-bg); border-color: var(--green); }
.checkitem.is-checked span { text-decoration: line-through; color: var(--ink-mute); }

.checkitem span { font-size: 14.5px; color: var(--ink); line-height: 1.5; }

.checklist__progress {
  display: flex;
  align-items: center;
  gap: 14px;
}

.checklist__bar {
  flex: 1;
  height: 8px;
  background: var(--paper-3);
  border-radius: 999px;
  overflow: hidden;
}

.checklist__fill {
  height: 100%;
  background: var(--green);
  border-radius: 999px;
  width: 0%;
  transition: width 0.3s;
}

.checklist__progress > span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  min-width: 40px;
  text-align: right;
}

/* =============================================================
   Scenario comparator
============================================================= */
.scenario {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.scenario__col {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px;
  text-align: center;
  transition: border-color 0.15s, transform 0.15s;
}

.scenario__col--featured {
  border-color: var(--green);
  border-width: 2px;
  background: var(--green-bg);
  position: relative;
}

.scenario__col h4 {
  font-size: 18px;
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}

.scenario__num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 30px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.scenario__col--featured .scenario__num:first-of-type { color: var(--red); }
.scenario__col:not(.scenario__col--featured) .scenario__num:first-of-type { color: var(--red); }
.scenario__num:last-of-type { color: var(--green); }

.scenario__label {
  font-size: 12.5px;
  color: var(--ink-soft);
  margin: 4px 0 18px;
  letter-spacing: 0.01em;
}

.scenario__tag {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-soft);
  background: var(--paper-3);
  padding: 4px 10px;
  border-radius: 999px;
  margin-top: 8px;
}

.scenario__col--featured .scenario__tag { background: #fff; color: var(--green); }

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

/* =============================================================
   Glossary
============================================================= */
.glossary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.gloss {
  padding: 16px 18px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.gloss__term {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 6px;
  cursor: help;
  border-bottom: 1px dashed var(--green);
}

.gloss__def {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0;
}

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

/* =============================================================
   Quiz
============================================================= */
.quiz {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.quiz__head {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
}

.quiz__progress {
  height: 6px;
  background: var(--paper-3);
  border-radius: 999px;
  overflow: hidden;
  grid-column: 1 / -1;
  order: 1;
}

.quiz__fill {
  height: 100%;
  background: var(--green);
  width: 10%;
  transition: width 0.3s;
}

.quiz__count, .quiz__score {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--ink-soft);
  font-weight: 500;
}

.quiz__count { order: 2; }
.quiz__score { order: 3; }

.quiz__body { min-height: 220px; }

.quiz__q {
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 20px;
  letter-spacing: -0.01em;
  line-height: 1.4;
}

.quiz__opts { display: grid; gap: 10px; }

.quiz__opt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 15px;
  color: var(--ink);
  text-align: left;
  width: 100%;
  transition: all 0.15s;
}

.quiz__opt:hover { border-color: var(--ink-mute); background: #fff; }

.quiz__opt.is-picked {
  border-color: var(--ink);
  background: #fff;
}

.quiz__opt.is-correct {
  border-color: var(--green);
  background: var(--green-bg);
  color: var(--ink);
}

.quiz__opt.is-wrong {
  border-color: var(--red);
  background: var(--red-bg);
  color: var(--ink);
}

.quiz__opt b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}

.quiz__feedback {
  margin-top: 16px;
  padding: 12px 16px;
  background: var(--paper-2);
  border-left: 3px solid var(--ink-mute);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.55;
}
.quiz__feedback.is-correct { border-left-color: var(--green); }
.quiz__feedback.is-wrong { border-left-color: var(--red); }

.quiz__nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
}

.quiz__nav .btn--ghost:disabled,
.quiz__nav .btn--primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

@media (max-width: 600px) {
  .quiz { padding: 24px 20px; }
  .quiz__head { grid-template-columns: 1fr 1fr; }
  .quiz__count, .quiz__score { font-size: 12px; }
  .quiz__q { font-size: 17px; }
}

/* =============================================================
   FAQ
============================================================= */
.faq {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-family: 'JetBrains Mono', monospace;
  font-size: 22px;
  color: var(--green);
  font-weight: 400;
  transition: transform 0.2s;
  min-width: 16px;
  text-align: center;
}

.faq-item[open] summary::after { content: '–'; }

.faq-item p {
  padding: 0 0 20px;
  font-size: 15.5px;
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 70ch;
}

/* =============================================================
   Footer
============================================================= */
.footer {
  background: var(--black);
  color: rgba(255,255,255,0.7);
  padding: 48px 0;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.footer__brand .brand__text-light { color: rgba(255,255,255,0.5); font-weight: 500; }

.footer p {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  max-width: 70ch;
  margin: 0;
  line-height: 1.65;
}

/* Donate */
.footer__donate {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer__donate-msg {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  margin: 0 0 14px;
  line-height: 1.5;
}

.footer__donate-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.donate-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  font-family: 'JetBrains Mono', monospace;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
  white-space: nowrap;
  position: relative;
}

.donate-chip:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.25);
}
.donate-chip:active { transform: scale(0.98); }

.donate-chip code {
  font-family: inherit;
  font-size: 12.5px;
  color: rgba(255,255,255,0.9);
}

.donate-chip--paypal {
  background: #0070BA;
  border-color: #0070BA;
}
.donate-chip--paypal:hover {
  background: #005A99;
  border-color: #005A99;
}

.donate-chip--btc {
  background: rgba(247, 147, 26, 0.12);
  border-color: rgba(247, 147, 26, 0.4);
  color: #fff;
}
.donate-chip--btc:hover {
  background: rgba(247, 147, 26, 0.2);
  border-color: rgba(247, 147, 26, 0.6);
}

.donate-chip__copied {
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--green);
  color: #000;
  font-size: 11px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  padding: 4px 10px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.donate-chip__copied.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* =============================================================
   Live memecoin feed (section 05A)
============================================================= */
.section--live {
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-3) 100%);
}

.mlive { display: flex; flex-direction: column; gap: 16px; }

.mlive__bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  flex-wrap: wrap;
}

.mlive__pulse {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 0 rgba(255, 80, 0, 0.6);
  animation: mlive-pulse 1.6s infinite;
  flex-shrink: 0;
}
@keyframes mlive-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 80, 0, 0.6); }
  70%  { box-shadow: 0 0 0 12px rgba(255, 80, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 80, 0, 0); }
}

.mlive__bar b { color: var(--green); font-weight: 700; letter-spacing: 0.08em; }
.mlive__updated { color: rgba(255, 255, 255, 0.55); font-size: 12px; }

.mlive__filter { margin-left: auto; display: flex; gap: 6px; }
.mlive__chip {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.15s;
}
.mlive__chip:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }
.mlive__chip.is-on { background: var(--green); color: #fff; border-color: var(--green); }

.mlive__ticker {
  display: flex;
  gap: 18px;
  padding: 10px 18px;
  background: var(--ink-2);
  color: #fff;
  border-radius: var(--radius-sm);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  white-space: nowrap;
  overflow-x: auto;
}
.mlive__ticker b { color: #fff; margin-right: 6px; }
.mlive__ticker em { font-style: normal; }
.mlive__ticker .up { color: var(--green); }
.mlive__ticker .down { color: var(--red); }

.mlive__scroller {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.mlive__grid {
  display: flex;
  gap: 12px;
  align-items: stretch;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  padding-bottom: 4px;
  flex: 1;
  min-width: 0;
  scrollbar-width: thin;
}
.mlive__grid::-webkit-scrollbar { height: 6px; }
.mlive__grid::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }
.mlive__grid::-webkit-scrollbar-thumb:hover { background: var(--green); }

.mlive__arrow {
  flex-shrink: 0;
  width: 30px;
  align-self: center;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.mlive__arrow:hover { border-color: var(--green); color: var(--green); box-shadow: 0 2px 8px rgba(0,0,0,0.06); }

.mlive__slider-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px 4px;
}
.mlive__slider-label { font-size: 12px; color: var(--ink-soft); flex-shrink: 0; }
.mlive__slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 999px;
  background: var(--line);
  outline: none;
  cursor: pointer;
}
.mlive__slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--green);
  border: 3px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
  cursor: pointer;
}
.mlive__slider::-moz-range-thumb {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--green);
  border: 3px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
  cursor: pointer;
}

.mlive__card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
  min-width: 210px;
  width: 210px;
  flex-shrink: 0;
  scroll-snap-align: start;
}
.mlive__card:hover {
  background: var(--paper-2);
  border-color: var(--green);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.mlive__card-top { display: flex; align-items: center; gap: 10px; font-family: 'Inter', sans-serif; }
.mlive__card-id { min-width: 0; flex: 1; }
.mlive__card-id b { font-size: 14.5px; font-weight: 700; color: var(--ink); display: block; line-height: 1.2; }
.mlive__card-id span {
  font-size: 12px;
  color: var(--ink-soft);
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mlive__logo {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green) 0%, #00A805 100%);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: 'JetBrains Mono', monospace;
}

.mlive__rh-badge {
  flex-shrink: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--green-bg);
  color: var(--green);
}

.mlive__type-badge {
  flex-shrink: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 2px 6px;
  border-radius: 999px;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.06);
  color: var(--ink-soft);
}
.mlive__type-badge.type-stock { background: rgba(37, 99, 235, 0.1); color: #2563eb; }
.mlive__type-badge.type-meme { background: var(--green-bg); color: var(--green); }

.mlive__logo.logo-stock { background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%); border-radius: 8px; }

.mlive__chart { display: flex; align-items: center; }
.mlive__svg { width: 100%; height: 32px; display: block; }

.mlive__card-price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
}
.mlive__price { font-weight: 600; color: var(--ink); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mlive__chg { font-weight: 600; font-size: 12.5px; flex-shrink: 0; }
.mlive__chg.up { color: var(--green); }
.mlive__chg.down { color: var(--red); }

.mlive__card-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
}
.mlive__card-stats div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mlive__card-stats span { color: var(--ink-soft); }
.mlive__card-stats b { color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.mlive__actions { display: flex; gap: 6px; margin-top: auto; }
.mlive__btn {
  width: 32px; height: 32px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-soft);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  flex-shrink: 0;
}
.mlive__btn:hover { border-color: var(--green); color: var(--green); }
.mlive__btn--primary {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  width: auto;
  flex: 1;
  padding: 0 12px;
  font-size: 12px;
}
.mlive__btn--primary:hover { background: var(--green); border-color: var(--green); color: #fff; }
.mlive__btn.is-on { background: var(--green); color: #fff; border-color: var(--green); }

.mlive__note {
  font-size: 12.5px;
  color: var(--ink-soft);
  background: var(--paper-2);
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin: 0;
  line-height: 1.55;
}
.mlive__note b { color: var(--ink); }
.mlive__note code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  background: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--line);
}

@media (max-width: 640px) {
  .mlive__grid { gap: 10px; }
  .mlive__card { padding: 12px; min-width: 160px; width: 160px; }
  .mlive__arrow { display: none; }
}

/* =============================================================
   Reduce-3D toggle
============================================================= */
.reduce-3d {
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: 80;
  padding: 8px 14px;
  background: rgba(0,0,0,0.85);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.reduce-3d:hover { background: rgba(0,0,0,0.95); }
.reduce-3d b { color: var(--green); margin-left: 4px; }
.reduce-3d[aria-pressed="true"] b { color: var(--red); }

body.reduce-3d-on .hero__canvas,
body.reduce-3d-on .viz__canvas { display: none; }
body.reduce-3d-on .hero__viz::after,
body.reduce-3d-on .viz__canvas::after { content: '3D off'; }
