:root {
  --bg: #0d1117;
  --panel: #161b22;
  --panel-2: #1f2630;
  --border: #2d343d;
  --text: #e6edf3;
  --muted: #8b949e;
  --accent: #58a6ff;
  --pos: #3fb950;
  --neg: #f85149;
  --radius: 10px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.55;
  font-size: 16px;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.muted { color: var(--muted); font-weight: normal; }

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 22px;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
}

.brand {
  font-weight: 600;
  font-size: 18px;
  color: var(--text);
}

.nav a {
  margin-left: 14px;
  color: var(--muted);
}
.nav a:hover { color: var(--text); }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px 20px 60px;
}

.hero { margin-bottom: 32px; }
.hero h1 { font-size: 28px; margin: 0 0 8px; }
.hero p { margin: 4px 0; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 18px 14px;
  display: block;
  color: var(--text);
  transition: border-color .15s ease;
}
.card:hover { border-color: var(--accent); text-decoration: none; }

.card-head h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

.card-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 8px;
}

.stat { display: flex; flex-direction: column; }
.stat-label { font-size: 12px; color: var(--muted); }
.stat-value { font-size: 16px; font-weight: 600; }
.stat-value.big { font-size: 24px; }
.stat-value.pos { color: var(--pos); }
.stat-value.neg { color: var(--neg); }

.card-foot { font-size: 13px; margin-top: 8px; }

.coin-head, .report-head { margin-bottom: 24px; }
.coin-head h1, .report-head h1 { margin: 6px 0 18px; font-size: 26px; }

.big-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.back {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--muted);
}

.chart { margin: 28px 0; }

.summary, .onchain, .news, .roadmap, .archive, .sources {
  margin: 32px 0;
}

.summary h2, .onchain h2, .news h2, .roadmap h2, .archive h2, .sources h2 {
  margin: 0 0 12px;
  font-size: 20px;
}

.markdown h2 { font-size: 18px; margin: 22px 0 8px; }
.markdown h3 { font-size: 16px; margin: 18px 0 6px; }
.markdown ul { padding-left: 22px; }
.markdown li { margin: 3px 0; }
.markdown p { margin: 8px 0; }

.metrics {
  width: 100%;
  border-collapse: collapse;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.metrics th, .metrics td {
  padding: 10px 14px;
  text-align: left;
  border-top: 1px solid var(--border);
}
.metrics tr:first-child th, .metrics tr:first-child td { border-top: 0; }
.metrics th { width: 40%; color: var(--muted); font-weight: 500; }

.news ul, .sources ul, .archive-list, .roadmap-list { list-style: none; padding: 0; margin: 0; }
.news li, .sources li, .archive-list li { padding: 8px 0; border-bottom: 1px solid var(--border); }
.news li:last-child, .sources li:last-child, .archive-list li:last-child { border-bottom: none; }

.roadmap-list li {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  background: var(--panel);
}
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  text-transform: uppercase;
  margin-right: 8px;
  background: var(--panel-2);
  color: var(--muted);
}
.status-done .badge { background: rgba(63, 185, 80, 0.18); color: var(--pos); }
.status-in-progress .badge { background: rgba(88, 166, 255, 0.18); color: var(--accent); }
.status-planned .badge { background: rgba(139, 148, 158, 0.18); }

.footer {
  border-top: 1px solid var(--border);
  padding: 20px;
  text-align: center;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
}

@media (max-width: 540px) {
  .card-stats { grid-template-columns: repeat(3, 1fr); }
  .hero h1 { font-size: 22px; }
}
