* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #0a0a0f;
  --bg-card: #12121a;
  --bg-card-hover: #1a1a26;
  --bg-code: #0d0d14;
  --text: #e4e4ef;
  --text-dim: #6b6b80;
  --text-muted: #44445a;
  --accent: #4ade80;
  --accent-dim: #22c55e20;
  --accent-glow: #4ade8030;
  --border: #1e1e2e;
  --border-accent: #4ade8040;

  --critical: #f43f5e;
  --experimental: #a78bfa;
  --cancelled: #f97316;
  --hardware: #38bdf8;
  --easter-egg: #fbbf24;
  --oddity: #e879f9;
  --ghost: #6ee7b7;
  --legacy: #94a3b8;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.scanlines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
}

code, pre, .terminal-tag, .code-block {
  font-family: 'JetBrains Mono', monospace;
}

/* Nav */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(10, 10, 15, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--text);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8rem;
  font-family: 'JetBrains Mono', monospace;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-page-link {
  position: relative;
}

.nav-page-link.active {
  color: var(--accent) !important;
}

.nav-divider {
  color: var(--text-muted);
  font-size: 0.75rem;
  opacity: 0.4;
  user-select: none;
}

/* Hero BG Gradient (no image variant) */

.hero-bg-gradient {
  background: radial-gradient(ellipse at center 40%, rgba(74, 222, 128, 0.06) 0%, transparent 60%),
              linear-gradient(180deg, var(--bg) 0%, rgba(18, 18, 26, 1) 50%, var(--bg) 100%);
}

/* Hero */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0.12;
  filter: saturate(0.4) brightness(0.8);
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, var(--bg) 0%, transparent 20%, transparent 60%, var(--bg) 100%),
    linear-gradient(to right, var(--bg) 0%, transparent 30%, transparent 70%, var(--bg) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
}

.terminal-tag {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  padding: 0.4rem 1.2rem;
  border-radius: 4px;
  margin-bottom: 2rem;
  letter-spacing: 0.02em;
}

.blink {
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero h1 {
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 1.5rem;
  white-space: nowrap;
}

.hero h1 .accent {
  margin: 0 0.15em;
}

.accent {
  color: var(--accent);
  text-shadow: 0 0 40px var(--accent-glow);
}

.subtitle {
  font-size: 1.1rem;
  color: var(--text-dim);
  max-width: 620px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.subtitle em {
  color: var(--accent);
  font-style: italic;
}

.hero-tagline {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  margin-top: 2rem;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.meta-chip {
  font-size: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-dim);
  border: 1px solid var(--border);
  padding: 0.3rem 0.8rem;
  border-radius: 3px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.leak-date {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-size: 0.85rem;
}

.leak-date .label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--critical);
  background: rgba(244, 63, 94, 0.1);
  border: 1px solid rgba(244, 63, 94, 0.3);
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  letter-spacing: 0.1em;
  font-weight: 700;
}

.leak-date .date {
  color: var(--text);
  font-weight: 600;
}

.leak-date .source {
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
}

/* Context Bar */

.context-bar {
  max-width: 100%;
  padding: 1.5rem 2rem;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.context-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.context-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.context-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.context-value {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.context-value.red {
  color: var(--critical);
  font-weight: 600;
}

/* Sections */

section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 6rem 2rem;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-desc {
  color: var(--text-dim);
  font-size: 0.95rem;
  margin-bottom: 3rem;
  max-width: 700px;
  line-height: 1.7;
}

.line-num {
  font-family: 'JetBrains Mono', monospace;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 400;
  margin-right: 1rem;
  opacity: 0.7;
}

/* Timeline */

.timeline-content {
  position: relative;
  padding-left: 2rem;
  border-left: 2px solid var(--border);
}

.timeline-entry {
  position: relative;
  margin-bottom: 2rem;
}

.timeline-entry:last-child {
  margin-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: -2.55rem;
  top: 0.5rem;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent-glow);
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  transition: border-color 0.2s;
}

.timeline-card:hover {
  border-color: var(--border-accent);
}

.timestamp {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 0.5rem;
}

.timeline-card p {
  color: var(--text-dim);
  font-size: 0.95rem;
}

.timeline-card code {
  background: var(--accent-dim);
  color: var(--accent);
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  font-size: 0.85rem;
}

/* Archives */

.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.archive-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  transition: all 0.2s;
}

.archive-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
}

.archive-icon {
  width: 40px;
  height: 40px;
  color: var(--accent);
  margin-bottom: 1rem;
  opacity: 0.7;
}

.archive-card h3 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.archive-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 1rem;
}

.archive-card p {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.6;
}

/* File Tree */

.file-tree-section {
  margin-top: 3rem;
}

.subsection-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.file-tree {
  background: var(--bg-code);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  line-height: 1.8;
  overflow-x: auto;
}

.tree-line {
  white-space: nowrap;
}

.tree-line.depth-1 { padding-left: 1.5rem; }
.tree-line.depth-2 { padding-left: 3rem; }
.tree-line.depth-3 { padding-left: 4.5rem; }

.tree-line.depth-1::before { content: "\251C\2500\2500 "; color: var(--text-muted); }
.tree-line.depth-2::before { content: "\2502   \251C\2500\2500 "; color: var(--text-muted); }
.tree-line.depth-3::before { content: "\2502   \2502   \251C\2500\2500 "; color: var(--text-muted); }

.tree-folder { color: var(--accent); font-weight: 700; }
.tree-file { color: var(--text-dim); }
.tree-note { color: var(--text-muted); font-size: 0.72rem; margin-left: 0.5rem; }

/* Findings */

.finding-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem;
  margin-bottom: 2rem;
  transition: all 0.2s;
}

.finding-card:hover {
  border-color: var(--border-accent);
}

.finding-card.featured {
  border-left: 3px solid var(--accent);
}

.finding-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.finding-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 0.25rem 0.7rem;
  border-radius: 3px;
  text-transform: uppercase;
}

.finding-tag.critical { color: var(--critical); background: rgba(244, 63, 94, 0.1); border: 1px solid rgba(244, 63, 94, 0.25); }
.finding-tag.experimental { color: var(--experimental); background: rgba(167, 139, 250, 0.1); border: 1px solid rgba(167, 139, 250, 0.25); }
.finding-tag.cancelled { color: var(--cancelled); background: rgba(249, 115, 22, 0.1); border: 1px solid rgba(249, 115, 22, 0.25); }
.finding-tag.hardware { color: var(--hardware); background: rgba(56, 189, 248, 0.1); border: 1px solid rgba(56, 189, 248, 0.25); }
.finding-tag.easter-egg { color: var(--easter-egg); background: rgba(251, 191, 36, 0.1); border: 1px solid rgba(251, 191, 36, 0.25); }
.finding-tag.oddity { color: var(--oddity); background: rgba(232, 121, 249, 0.1); border: 1px solid rgba(232, 121, 249, 0.25); }
.finding-tag.ghost { color: var(--ghost); background: rgba(110, 231, 183, 0.1); border: 1px solid rgba(110, 231, 183, 0.25); }
.finding-tag.legacy { color: var(--legacy); background: rgba(148, 163, 184, 0.1); border: 1px solid rgba(148, 163, 184, 0.25); }

.finding-id {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.finding-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.finding-card > p {
  color: var(--text-dim);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.finding-note {
  font-size: 0.85rem !important;
  color: var(--text-muted) !important;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  margin-top: 1.5rem !important;
  margin-bottom: 0 !important;
  font-style: italic;
}

/* Detail Grid (Trial World) */

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.detail-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.2rem;
}

.detail-card h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.detail-card p {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 0;
}

.img-detail-grid {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.detail-img-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: var(--bg-code);
}

.detail-img-card img {
  max-width: 100%;
  max-height: 160px;
  height: auto;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

/* Platform Table */

.platform-table {
  background: var(--bg-code);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.platform-row {
  display: grid;
  grid-template-columns: 120px 100px 1fr;
  padding: 0.8rem 1.2rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
  align-items: center;
}

.platform-row:last-child {
  border-bottom: none;
}

.platform-row.header {
  background: rgba(255, 255, 255, 0.03);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.platform-name {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: var(--text);
  font-size: 0.82rem;
}

.status {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  text-align: center;
  width: fit-content;
}

.status.shipped { color: var(--accent); background: var(--accent-dim); }
.status.partial { color: var(--easter-egg); background: rgba(251, 191, 36, 0.1); }
.status.cancelled { color: var(--critical); background: rgba(244, 63, 94, 0.1); }

.platform-row span:last-child {
  color: var(--text-dim);
  font-size: 0.82rem;
}

/* Finding Images */

.finding-img {
  margin: 1.5rem 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-code);
}

.finding-img img {
  width: 100%;
  height: auto;
  display: block;
}

.finding-img .img-caption,
.section-hero-img .img-caption {
  display: block;
  padding: 0.75rem 1rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--border);
}

.finding-img-inline {
  float: right;
  margin: 0 0 1rem 1.5rem;
  width: 120px;
}

.finding-img-inline img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 20px rgba(251, 191, 36, 0.15));
}

@media (max-width: 768px) {
  .finding-img-inline {
    float: none;
    margin: 0 auto 1rem;
    width: 80px;
  }
}

/* Section Hero Image */

.section-hero-img {
  margin-bottom: 2rem;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-code);
  max-width: 500px;
}

.section-hero-img img {
  width: 100%;
  height: auto;
  display: block;
}

.section-hero-img.wide {
  max-width: 100%;
}

.section-hero-img.wide img {
  max-height: 350px;
  object-fit: cover;
}

/* Edition Logos */

.edition-logos {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  opacity: 0.5;
}

.edition-logos img {
  height: 50px;
  width: auto;
  filter: grayscale(1) brightness(1.5);
  transition: all 0.3s;
}

.edition-logos img:hover {
  filter: grayscale(0) brightness(1);
  opacity: 1;
}

/* Code blocks */

.code-block {
  background: var(--bg-code);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1rem;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border);
}

.code-lang {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.code-file {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.code-block pre {
  padding: 1.2rem;
  overflow-x: auto;
  font-size: 0.82rem;
  line-height: 1.7;
  tab-size: 4;
}

.code-block code {
  color: var(--text-dim);
}

.code-block .kw { color: #c678dd; }
.code-block .fn { color: #61afef; }
.code-block .cm { color: #5c6370; font-style: italic; }
.code-block .str { color: #98c379; }
.code-block .num { color: #d19a66; }

/* PE Section */

.pe-section {
  border-top: 1px solid var(--border);
}

.pe-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.pe-category {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem;
}

.pe-category h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.pe-category > p {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.pe-category > p code {
  background: var(--accent-dim);
  color: var(--accent);
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  font-size: 0.82rem;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.pe-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
  font-weight: 600;
}

.pe-tag.item { color: var(--easter-egg); background: rgba(251, 191, 36, 0.1); border: 1px solid rgba(251, 191, 36, 0.2); }
.pe-tag.worldgen { color: var(--accent); background: var(--accent-dim); border: 1px solid var(--border-accent); }
.pe-tag.mob { color: var(--critical); background: rgba(244, 63, 94, 0.1); border: 1px solid rgba(244, 63, 94, 0.2); }

.pe-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
  font-style: italic;
}

/* Stats */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  transition: all 0.2s;
}

.stat-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
}

.stat-number {
  display: block;
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 30px var(--accent-glow);
}

.stat-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.stat-detail {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}

/* Why This Matters */

.context-section {
  border-top: 1px solid var(--border);
}

.context-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.context-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem;
  transition: border-color 0.2s;
}

.context-card:hover {
  border-color: var(--border-accent);
}

.context-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--accent);
}

.context-card p {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.7;
}

.context-card strong {
  color: var(--text);
}

/* Footer */

footer {
  border-top: 1px solid var(--border);
  padding: 4rem 2rem;
  margin-top: 2rem;
}

.footer-content {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.footer-brand {
  margin-bottom: 2rem;
}

.footer-title {
  display: block;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.3rem;
}

.footer-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer-disclaimer {
  font-size: 0.75rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.footer-sources {
  margin-bottom: 2rem;
}

.footer-sources h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.source-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.source-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.8rem;
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: all 0.2s;
}

.source-links a:hover {
  color: var(--accent);
  border-color: var(--border-accent);
}

.footer-credit {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Code Compare (side-by-side) */

.code-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}

.code-compare .code-block {
  margin: 0;
}

.code-compare-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.5rem 0.8rem;
  text-align: center;
  border-radius: 6px 6px 0 0;
}

.code-compare-label.readable {
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-bottom: none;
}

.code-compare-label.actual {
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  border-bottom: none;
}

.code-compare-label + .code-block {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.source-verified {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  padding: 0.25rem 0.7rem;
  border-radius: 3px;
  margin-top: 0.75rem;
  display: inline-block;
}

/* Responsive */

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  section {
    padding: 4rem 1.25rem;
  }

  .finding-card {
    padding: 1.5rem;
  }

  .code-block pre {
    font-size: 0.72rem;
    padding: 1rem;
  }

  .leak-date {
    flex-direction: column;
    gap: 0.5rem;
  }

  .archive-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .platform-row {
    grid-template-columns: 90px 80px 1fr;
    font-size: 0.75rem;
    padding: 0.6rem 0.8rem;
  }

  .context-inner {
    flex-direction: column;
    gap: 1rem;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .context-cards {
    grid-template-columns: 1fr;
  }

  .code-compare {
    grid-template-columns: 1fr;
  }
}

/* Scroll animations */

.finding-card,
.archive-card,
.stat-card,
.timeline-entry,
.pe-category,
.context-card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.2s;
}

.finding-card.visible,
.archive-card.visible,
.stat-card.visible,
.timeline-entry.visible,
.pe-category.visible,
.context-card.visible {
  opacity: 1;
  transform: translateY(0);
}
