:root {
  --bg: #0d1117;
  --surface: #161b22;
  --border: #30363d;
  --text: #e6edf3;
  --text-muted: #8b949e;
  --accent: #58a6ff;
  --green: #3fb950;
  --yellow: #d29922;
  --red: #f85149;
  --mono: 'SF Mono', 'Fira Code', 'JetBrains Mono', Consolas, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 960px; margin: 0 auto; padding: 2rem 1.5rem; }
header { border-bottom: 1px solid var(--border); padding-bottom: 1.5rem; margin-bottom: 2rem; }
header h1 { font-size: 1.5rem; font-weight: 600; }
header p { color: var(--text-muted); margin-top: 0.25rem; }
nav { margin-top: 0.75rem; display: flex; gap: 1.5rem; }
h2 { font-size: 1.25rem; font-weight: 600; margin: 2rem 0 1rem; border-bottom: 1px solid var(--border); padding-bottom: 0.5rem; }
h3 { font-size: 1rem; font-weight: 600; margin: 1.5rem 0 0.5rem; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 1rem 1.25rem; margin-bottom: 0.75rem; }
.card-title { font-weight: 600; margin-bottom: 0.25rem; }
.card-meta { color: var(--text-muted); font-size: 0.85rem; }
.hash { font-family: var(--mono); font-size: 0.8rem; color: var(--text-muted); word-break: break-all; }
.score { display: inline-block; padding: 0.15rem 0.5rem; border-radius: 3px; font-size: 0.85rem; font-weight: 600; }
.score-green { background: rgba(63,185,80,0.15); color: var(--green); }
.score-yellow { background: rgba(210,153,34,0.15); color: var(--yellow); }
.score-red { background: rgba(248,81,73,0.15); color: var(--red); }
.badge-row { display: flex; gap: 0.5rem; margin: 0.5rem 0; align-items: center; }
.copy-btn { background: var(--surface); border: 1px solid var(--border); color: var(--text-muted); padding: 0.25rem 0.5rem; border-radius: 4px; cursor: pointer; font-size: 0.75rem; }
.copy-btn:hover { color: var(--text); border-color: var(--accent); }
pre { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 0.75rem 1rem; overflow-x: auto; font-family: var(--mono); font-size: 0.85rem; margin: 0.5rem 0; position: relative; }
code { font-family: var(--mono); font-size: 0.85rem; }
table { width: 100%; border-collapse: collapse; margin: 0.5rem 0; }
th, td { padding: 0.5rem 0.75rem; border: 1px solid var(--border); text-align: left; font-size: 0.85rem; }
th { background: var(--surface); font-weight: 600; }
.tag { display: inline-block; background: rgba(88,166,255,0.1); color: var(--accent); padding: 0.1rem 0.4rem; border-radius: 3px; font-size: 0.75rem; margin-right: 0.25rem; }
footer { border-top: 1px solid var(--border); margin-top: 3rem; padding-top: 1rem; color: var(--text-muted); font-size: 0.8rem; text-align: center; }

/* Dashboard */
.dash-subtitle { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.5rem; }
.dash-hero { display: flex; gap: 2rem; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 1.5rem; margin-bottom: 2rem; }
.hero-rings { display: flex; gap: 1rem; flex-shrink: 0; }
.hero-title { font-size: 1.15rem; font-weight: 700; }
.hero-meta { flex: 1; min-width: 0; }
.hero-cta { margin-top: 0.75rem; }
.hero-cta pre { font-size: 0.8rem; }

/* Trust rings */
.trust-ring text { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
.ring-fill { animation: ring-draw 1.2s ease-out 0.3s forwards; }
@keyframes ring-draw { to { stroke-dashoffset: var(--ring-target); } }

/* Stat grid */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; margin: 1.5rem 0; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 1rem; text-align: center; }
.stat-label { color: var(--text-muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; }
.stat-value { font-size: 1.75rem; font-weight: 700; margin: 0.25rem 0; }
.stat-footer { display: flex; align-items: center; justify-content: center; gap: 0.5rem; }
.delta { font-size: 0.75rem; font-weight: 600; }
.delta-up { color: var(--green); }
.delta-down { color: var(--red); }
.sparkline { vertical-align: middle; }

/* Timeline */
.timeline-strip { display: flex; gap: 0.5rem; overflow-x: auto; padding: 0.75rem 0; }
.timeline-pill { display: inline-flex; align-items: center; gap: 0.35rem; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 0.35rem 0.75rem; font-size: 0.8rem; color: var(--text); cursor: pointer; white-space: nowrap; font-family: inherit; transition: border-color 0.15s; }
.timeline-pill:hover { border-color: var(--accent); }
.timeline-pill.pill-active { border-color: var(--accent); background: rgba(88,166,255,0.08); }
.pill-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.pill-anchor .pill-dot { background: var(--accent); }
.pill-release .pill-dot { background: var(--green); }
.timeline-detail { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 1rem; margin-top: 0.5rem; font-family: var(--mono); font-size: 0.8rem; white-space: pre-line; color: var(--text-muted); }

/* Explore grid */
.explore-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; }
.explore-tile { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 1rem; text-align: center; text-decoration: none; color: var(--text); transition: border-color 0.15s; }
.explore-tile:hover { border-color: var(--accent); text-decoration: none; }
.tile-icon { font-size: 1.5rem; font-weight: 700; color: var(--accent); margin-bottom: 0.25rem; }
.tile-label { font-weight: 600; font-size: 0.9rem; }
.tile-desc { color: var(--text-muted); font-size: 0.75rem; margin-top: 0.25rem; }

/* Verifier grid */
.verifier-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.75rem; }
.verifier-card { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 0.75rem; }

/* Pulse on hover */
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }
.stat-card:hover .stat-value { animation: pulse 1.5s ease-in-out infinite; }

/* Responsive */
@media (max-width: 768px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .explore-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-hero { flex-direction: column; text-align: center; }
  .hero-rings { justify-content: center; }
}
