/* ============================================
   POST QUANTUM COIN — Q-Day Report
   Adaptive 5-level depth explainer
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;0,9..144,700;0,9..144,800;0,9..144,900;1,9..144,400;1,9..144,700&family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,500;0,8..60,600;0,8..60,700;1,8..60,400;1,8..60,500&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  --bg: #04050a;
  --surface: #0a0c14;
  --surface2: #10121e;
  --surface3: #161a28;
  --border: #1a1e2e;
  --border-bright: #252a40;
  --accent: #00d4aa;
  --accent2: #00b8ff;
  --accent3: #7c5cff;
  --warn: #ff6b35;
  --danger: #ef4444;
  --blue: #3b82f6;
  --green: #22c55e;
  --purple: #a855f7;
  --yellow: #eab308;
  --cyan: #06b6d4;
  --text: #e4e8f0;
  --dim: #8b92a8;
  --dim2: #525a72;
  --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.75;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: var(--accent2); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); text-decoration: underline; }
code { font-family: var(--mono); font-size: 0.82em; background: var(--surface2); padding: 2px 8px; border-radius: 3px; border: 1px solid var(--border); }
strong { color: #fff; }

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

/* ---- NAV BRAND (token identity) ---- */
.nav-logo {
  width: 24px; height: 24px;
  min-width: 24px; min-height: 24px;
  max-width: 24px; max-height: 24px;
  border-radius: 50%;
  border: 1.5px solid var(--border-bright);
  transition: border-color 0.3s;
  object-fit: cover;
}
.nav-brand:hover .nav-logo { border-color: var(--accent); }
.nav-brand-text {
  font-family: var(--mono); font-size: 12px;
  color: var(--dim2); letter-spacing: 1px;
  font-weight: 500;
}
.nav-brand-text span { color: var(--accent); font-weight: 700; }

/* ---- NAV ACTIONS (mint + circles) ---- */
.nav-actions {
  display: flex; align-items: center; gap: 10px;
  flex-shrink: 0;
}

/* ---- HERO MINT (click to copy) ---- */
.hero-mint {
  display: inline-flex; align-items: center; gap: 10px;
  cursor: pointer;
  padding: 10px 20px;
  border: 1px solid var(--border-bright);
  border-radius: 999px;
  background: rgba(0, 212, 170, 0.03);
  transition: all 0.3s;
  position: relative;
  margin-bottom: 32px;
  opacity: 0; transform: translateY(12px);
  animation: fadeUp 0.6s ease 0.1s forwards;
}
.hero-mint:hover {
  border-color: var(--accent);
  background: rgba(0, 212, 170, 0.06);
  box-shadow: 0 0 20px rgba(0, 212, 170, 0.08);
}
.mint-full {
  font-family: var(--mono); font-size: 12px;
  color: var(--dim);
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.mint-icon {
  color: var(--dim2);
  flex-shrink: 0;
  transition: color 0.2s;
}
.hero-mint:hover .mint-icon { color: var(--accent); }

.mint-toast {
  position: absolute;
  top: -32px; left: 50%;
  transform: translateX(-50%) translateY(6px);
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  color: var(--bg);
  background: var(--accent);
  padding: 5px 14px;
  border-radius: 999px;
  pointer-events: none;
  white-space: nowrap;
  display: none;
}
.mint-toast.show {
  display: block;
  animation: toastPop 0.3s ease forwards;
}

@keyframes toastPop {
  from { opacity: 0; transform: translateX(-50%) translateY(6px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.nav-circles {
  display: flex; align-items: center; gap: 4px;
}
.nav-circle {
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px;
  min-width: 30px; min-height: 30px;
  max-width: 30px; max-height: 30px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--dim2);
  background: transparent;
  transition: all 0.3s;
  text-decoration: none;
  overflow: hidden;
}
.nav-circle:hover { text-decoration: none; transform: scale(1.1); }

.nav-circle-img {
  width: 16px !important; height: 16px !important;
  max-width: 16px !important; max-height: 16px !important;
  min-width: 16px; min-height: 16px;
  object-fit: contain;
  border-radius: 0 !important;
  border: none !important;
  filter: grayscale(1) brightness(0.6);
  transition: filter 0.3s;
}
.nav-circle:hover .nav-circle-img {
  filter: grayscale(0) brightness(1);
}

.nc-jup:hover { border-color: rgba(199,242,132,.4); background: rgba(199,242,132,.08); box-shadow: 0 0 12px rgba(199,242,132,.15); }
.nc-pump:hover { border-color: rgba(0,209,140,.4); background: rgba(0,209,140,.08); box-shadow: 0 0 12px rgba(0,209,140,.15); }
.nc-dex:hover { border-color: rgba(77,166,255,.4); background: rgba(77,166,255,.08); box-shadow: 0 0 12px rgba(77,166,255,.15); }
.nc-x:hover { color: #fff; border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.06); box-shadow: 0 0 12px rgba(255,255,255,.08); }

@media (max-width: 768px) {
  .nav-circle { width: 26px; height: 26px; min-width: 26px; min-height: 26px; max-width: 26px; max-height: 26px; }
  .nav-circle-img { width: 14px !important; height: 14px !important; max-width: 14px !important; max-height: 14px !important; }
  .hero-mint { padding: 8px 14px; }
  .mint-full { font-size: 9px; overflow: hidden; text-overflow: ellipsis; max-width: 70vw; display: block; }
}
/* nav-brand-text removed, logo always visible */

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

/* ---- NAV ---- */
nav {
  position: sticky; top: 0; z-index: 150;
  background: rgba(4, 5, 10, 0.92);
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: 0 4px 40px rgba(0,0,0,.6); }

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

.nav-brand {
  display: flex; align-items: center; gap: 8px;
  flex-shrink: 0;
  cursor: default;
}

.nav-steps { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.nav-steps::-webkit-scrollbar { display: none; }
.nav-step {
  font-size: 12px; font-family: var(--mono);
  padding: 6px 12px; 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(0, 212, 170, 0.06); }

@media (max-width: 768px) {
  .nav-steps { gap: 0; }
  .nav-step { font-size: 10px; padding: 6px 7px; }
}

/* ---- LEVEL SELECTOR (bottom bar) ---- */
.level-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 180;
  background: rgba(4, 5, 10, 0.95);
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  border-top: 1px solid var(--border);
  padding: 10px 0;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.level-bar.visible { transform: translateY(0); }

.level-bar-inner {
  max-width: var(--container-wide);
  margin: 0 auto; padding: 0 28px;
  display: flex; align-items: center; gap: 16px;
}

.level-label {
  font-family: var(--mono); font-size: 10px;
  color: var(--dim2); text-transform: uppercase;
  letter-spacing: 2px; white-space: nowrap;
  flex-shrink: 0;
}

.level-pills {
  display: flex; gap: 4px; flex: 1;
  justify-content: center;
}

.level-pill {
  font-family: var(--mono); font-size: 11px;
  padding: 7px 16px; border-radius: 20px;
  color: var(--dim2); background: transparent;
  border: 1px solid var(--border);
  cursor: pointer; transition: all 0.3s ease;
  white-space: nowrap;
  user-select: none;
}
.level-pill:hover { color: var(--dim); border-color: var(--border-bright); }
.level-pill.active {
  color: var(--bg);
  border-color: transparent;
}
.level-pill[data-level="1"].active { background: var(--accent); }
.level-pill[data-level="2"].active { background: var(--accent2); }
.level-pill[data-level="3"].active { background: var(--blue); }
.level-pill[data-level="4"].active { background: var(--purple); }
.level-pill[data-level="5"].active { background: var(--warn); }

.level-desc {
  font-family: var(--mono); font-size: 10px;
  color: var(--dim2); white-space: nowrap;
  flex-shrink: 0; min-width: 80px;
}

@media (max-width: 640px) {
  .level-label, .level-desc { display: none; }
  .level-pill { font-size: 10px; padding: 6px 12px; }
}

/* ---- DEPTH CONTENT SYSTEM ---- */
.depth {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.4s ease,
              margin 0.4s ease,
              padding 0.4s ease;
  margin-top: 0;
  margin-bottom: 0;
}
.depth.depth-visible {
  max-height: 5000px;
  opacity: 1;
  margin-top: 20px;
  margin-bottom: 12px;
}

.depth-tag {
  display: inline-block;
  font-family: var(--mono); font-size: 9px;
  text-transform: uppercase; letter-spacing: 1.5px;
  padding: 3px 10px; border-radius: 3px;
  margin-bottom: 12px;
  opacity: 0.7;
}
.depth-tag.dt-2 { background: rgba(0,184,255,.08); color: var(--accent2); }
.depth-tag.dt-3 { background: rgba(59,130,246,.08); color: var(--blue); }
.depth-tag.dt-4 { background: rgba(168,85,247,.08); color: var(--purple); }
.depth-tag.dt-5 { background: rgba(255,107,53,.08); color: var(--warn); }

/* ---- HERO ---- */
.hero {
  min-height: 92vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 140px 0 120px;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 20% 20%, rgba(0, 212, 170, 0.04) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 80% 60%, rgba(124, 92, 255, 0.03) 0%, transparent 70%),
    radial-gradient(ellipse 70% 30% at 50% 90%, rgba(0, 184, 255, 0.02) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute; bottom: 0; left: -50vw; right: -50vw;
  height: 1px;
  background: linear-gradient(90deg, transparent 10%, var(--border-bright) 50%, transparent 90%);
}

.hero-kicker {
  font-family: var(--mono); font-size: 12px;
  text-transform: uppercase; letter-spacing: 6px;
  color: var(--accent); margin-bottom: 32px;
  opacity: 0; transform: translateY(12px);
  animation: fadeUp 0.6s ease 0.2s forwards;
  position: relative;
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(42px, 6.5vw, 80px);
  font-weight: 900; line-height: 1.02;
  margin-bottom: 40px;
  max-width: 900px;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #ffffff 0%, #c8d0e0 40%, #8090b0 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0; transform: translateY(16px);
  animation: fadeUp 0.7s ease 0.35s forwards;
  position: relative;
}

.hero-lede {
  font-size: 20px; color: var(--dim);
  max-width: 620px; line-height: 1.75;
  margin-bottom: 56px;
  opacity: 0; transform: translateY(12px);
  animation: fadeUp 0.6s ease 0.5s forwards;
  position: relative;
}

.hero-meta {
  font-family: var(--mono); font-size: 12px;
  color: var(--dim2); line-height: 2;
  opacity: 0;
  animation: fadeIn 0.6s ease 0.7s forwards;
  position: relative;
}

.hero-scroll-hint {
  position: absolute; bottom: 40px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono); font-size: 10px;
  color: var(--dim2); letter-spacing: 3px;
  text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  opacity: 0; animation: fadeIn 1s ease 1.2s forwards;
  transition: opacity 0.5s ease;
}
.hero-scroll-hint::after {
  content: '';
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--dim2), transparent);
  animation: scrollPulse 2s ease infinite;
}

/* ---- SECTIONS ---- */
section {
  padding: 100px 0;
  position: relative;
}
section::before {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: -1;
}
section::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--border) 20%, var(--border) 80%, transparent 100%);
}

#threat::before { background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(0,212,170,.025) 0%, transparent 70%); }
#papers::before { background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(0,184,255,.025) 0%, transparent 70%); }
#trajectory::before { background: radial-gradient(ellipse 80% 50% at 50% 20%, rgba(124,92,255,.025) 0%, transparent 70%); }
#crypto::before { background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255,107,53,.025) 0%, transparent 70%); }
#policy::before { background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(234,179,8,.025) 0%, transparent 70%); }
#migration::before { background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(34,197,94,.025) 0%, transparent 70%); }

.section-label {
  font-family: var(--mono); font-size: 11px;
  color: var(--accent); letter-spacing: 4px;
  text-transform: uppercase; margin-bottom: 16px;
}

.section-title {
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800; line-height: 1.1;
  letter-spacing: -0.015em;
  margin-bottom: 24px;
}

.section-intro {
  font-size: 18px; color: var(--dim);
  max-width: 640px; line-height: 1.75;
  margin-bottom: 48px;
}

/* ---- PULL QUOTE ---- */
.pull-quote {
  font-family: var(--display);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  font-style: italic;
  color: var(--text);
  max-width: 700px;
  margin: 48px 0;
  position: relative;
  padding-left: 28px;
}
.pull-quote::before {
  content: '';
  position: absolute; left: 0; top: 4px; bottom: 4px;
  width: 3px;
  background: linear-gradient(to bottom, var(--accent), var(--accent2));
  border-radius: 2px;
}
.pull-quote .hl { color: var(--accent); }

/* ---- BIG NUMBER ---- */
.big-number {
  font-family: var(--mono);
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  margin: 24px 0 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.big-number-label {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 32px;
}

/* ---- REVEAL ---- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }

/* ---- PAPER CARDS ---- */
.paper-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 40px;
  margin: 20px 0;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.25s;
}
.paper-card:hover {
  border-color: var(--border-bright);
  transform: translateY(-2px);
}
.paper-card::after {
  content: attr(data-num);
  position: absolute;
  right: 20px; top: -16px;
  font-family: var(--mono);
  font-size: 140px;
  font-weight: 800;
  line-height: 1;
  color: rgba(255,255,255,.012);
  pointer-events: none;
}
.paper-card > * { position: relative; z-index: 1; }

.paper-card.card-gidney { border-left: 3px solid var(--accent); }
.paper-card.card-iceberg { border-left: 3px solid var(--accent2); }
.paper-card.card-google { border-left: 3px solid var(--warn); }

.paper-badge {
  display: inline-block;
  font-family: var(--mono); font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1.5px;
  padding: 4px 12px; border-radius: 3px;
  margin-bottom: 16px;
}
.badge-google { background: rgba(255,107,53,.08); color: var(--warn); }
.badge-startup { background: rgba(0,184,255,.08); color: var(--accent2); }
.badge-research { background: rgba(0,212,170,.08); color: var(--accent); }

.paper-card h3 {
  font-family: var(--display);
  font-size: 22px; font-weight: 700;
  margin-bottom: 12px; line-height: 1.3;
}
.paper-card p {
  font-size: 15px; color: var(--dim);
  line-height: 1.8;
}
.paper-source {
  font-family: var(--mono); font-size: 11px;
  color: var(--dim2); margin-top: 16px;
}

/* ---- STATS BAND ---- */
.stats-band {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 64px 32px;
  margin: 48px -28px;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  padding-left: calc(50vw - 50%);
  padding-right: calc(50vw - 50%);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  max-width: var(--container-wide);
  margin: 0 auto;
}
@media (max-width: 700px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .stats-grid { grid-template-columns: 1fr; } }

.stat-cell {
  text-align: center;
  padding: 28px 20px;
  position: relative;
}
.stat-cell:not(:last-child)::after {
  content: '';
  position: absolute; right: 0; top: 20%; bottom: 20%;
  width: 1px;
  background: var(--border);
}

.stat-val {
  font-family: var(--mono);
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 10px;
  font-variant-numeric: tabular-nums;
}
.stat-label {
  font-size: 10px; color: var(--dim2);
  text-transform: uppercase; letter-spacing: 2px;
  font-family: var(--mono);
}

.stat-val.c-accent { color: var(--accent); }
.stat-val.c-blue { color: var(--accent2); }
.stat-val.c-purple { color: var(--purple); }
.stat-val.c-warn { color: var(--warn); }

/* ---- QUBIT CHART (CSS bars) ---- */
.qubit-chart {
  margin: 48px 0;
  display: flex; flex-direction: column; gap: 14px;
}
.qc-row {
  display: flex; align-items: center; gap: 16px;
}
.qc-label {
  font-family: var(--mono); font-size: 11px;
  color: var(--dim2); width: 140px;
  text-align: right; flex-shrink: 0;
  white-space: nowrap;
}
@media (max-width: 600px) { .qc-label { width: 80px; font-size: 9px; } }
.qc-bar-track {
  flex: 1; height: 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}
.qc-bar {
  height: 100%;
  border-radius: 3px;
  position: relative;
  transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
  width: 0;
}
.qc-bar-val {
  position: absolute; right: 8px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  color: #fff;
  white-space: nowrap;
}
.bar-green { background: linear-gradient(90deg, rgba(34,197,94,.12), rgba(34,197,94,.35)); }
.bar-blue { background: linear-gradient(90deg, rgba(0,184,255,.12), rgba(0,184,255,.35)); }
.bar-purple { background: linear-gradient(90deg, rgba(168,85,247,.12), rgba(168,85,247,.35)); }
.bar-warn { background: linear-gradient(90deg, rgba(255,107,53,.12), rgba(255,107,53,.35)); }

/* ---- TIMELINE ---- */
.timeline {
  position: relative;
  padding-left: 36px;
  margin: 48px 0;
}
.timeline::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--border);
}
.timeline::after {
  content: '';
  position: absolute; left: 0; top: 0;
  width: 2px; height: 0;
  background: linear-gradient(to bottom, var(--accent), var(--accent2), var(--accent3));
}
.timeline.tl-animated::after { height: var(--tl-fill-h, 0); }

.tl-item {
  padding: 0 0 36px 0;
  position: relative;
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.tl-item.tl-visible { opacity: 1; transform: translateX(0); }
.tl-item::before {
  content: '';
  position: absolute;
  left: -41px; top: 4px;
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--bg);
  transition: border-color 0.3s, background 0.3s;
}
.tl-item.tl-visible::before {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 12px rgba(0, 212, 170, 0.3);
}

.tl-date { font-family: var(--mono); font-size: 11px; color: var(--dim2); letter-spacing: 2px; margin-bottom: 4px; }
.tl-title { font-family: var(--display); font-size: 17px; font-weight: 700; margin-bottom: 6px; line-height: 1.3; }
.tl-detail { font-size: 14px; color: var(--dim); line-height: 1.7; max-width: 600px; }

.tl-item.c-green.tl-visible::before { border-color: var(--green); background: var(--green); box-shadow: 0 0 12px rgba(34,197,94,.3); }
.tl-item.c-blue.tl-visible::before { border-color: var(--accent2); background: var(--accent2); box-shadow: 0 0 12px rgba(0,184,255,.3); }
.tl-item.c-yellow.tl-visible::before { border-color: var(--yellow); background: var(--yellow); box-shadow: 0 0 12px rgba(234,179,8,.3); }
.tl-item.c-red.tl-visible::before { border-color: var(--danger); background: var(--danger); box-shadow: 0 0 12px rgba(239,68,68,.3); }
.tl-item.c-purple.tl-visible::before { border-color: var(--purple); background: var(--purple); box-shadow: 0 0 12px rgba(168,85,247,.3); }

/* ---- CALLOUT ---- */
.callout {
  border-left: 3px solid var(--accent);
  padding: 24px 28px;
  background: rgba(0, 212, 170, 0.03);
  margin: 40px 0;
  font-size: 16px;
  line-height: 1.75;
  color: var(--dim);
}
.callout strong { color: var(--text); }
.callout.callout-warn { border-left-color: var(--warn); background: rgba(255,107,53,.03); }
.callout.callout-danger { border-left-color: var(--danger); background: rgba(239,68,68,.03); }

/* ---- MATH BLOCK ---- */
.math-block {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 24px 28px;
  margin: 28px 0;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 2;
  color: var(--accent2);
  overflow-x: auto;
}
.math-label {
  font-size: 10px;
  color: var(--dim2);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
  display: block;
}

/* ---- GRID ---- */
.grid-2 {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px; margin: 16px 0;
}
@media (max-width: 700px) { .grid-2 { grid-template-columns: 1fr; } }

/* ---- SECTION PROGRESS ---- */
.section-progress {
  position: fixed;
  right: 20px; top: 50%;
  transform: translateY(-50%);
  display: flex; flex-direction: column;
  gap: 10px; z-index: 100;
  opacity: 0;
  transition: opacity 0.4s;
}
.section-progress.sp-visible { opacity: 1; }

.sp-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: all 0.3s;
  cursor: pointer;
  position: relative;
}
.sp-dot.sp-active { background: var(--accent); box-shadow: 0 0 10px rgba(0,212,170,.4); transform: scale(1.3); }
.sp-dot.sp-passed { background: var(--dim2); }
.sp-dot .sp-label {
  position: absolute; right: 18px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono); font-size: 10px;
  color: var(--dim2); white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s;
}
.sp-dot:hover .sp-label { opacity: 1; }

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

/* ---- BREAKER ---- */
.section-breaker {
  text-align: center;
  padding: 80px 0;
}
.breaker-text {
  font-family: var(--display);
  font-size: clamp(24px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text);
}
.hl-accent { color: var(--accent); }
.hl-blue { color: var(--accent2); }
.hl-warn { color: var(--warn); }

/* ---- FOOTER ---- */
footer {
  padding: 80px 0 120px;
  text-align: center;
  position: relative;
}
footer::before {
  content: '';
  position: absolute; top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}
.footer-brand {
  font-family: var(--mono); font-size: 13px;
  color: var(--dim2); letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-note {
  font-family: var(--mono); font-size: 11px;
  color: var(--dim2); margin-top: 16px;
  line-height: 1.8;
}

/* ---- KEYFRAMES ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; }
  50%      { opacity: 0.8; }
}

/* ---- PRINT ---- */
@media print {
  .progress-bar, nav, .level-bar, .section-progress, .hero-scroll-hint { display: none; }
  body { background: #fff; color: #111; }
  section { padding: 32px 0; }
  .depth { max-height: none !important; opacity: 1 !important; }
}
