:root {
  --yellow: #FFC500;
  --yellow-soft: rgba(255, 197, 0, 0.08);
  --border: rgba(255, 197, 0, 0.12);
  --border2: rgba(255,255,255,0.06);
  --bg: #080808;
  --bg2: #0f0f0f;
  --text: #e8e8e8;
  --muted: #6b6b6b;
  --muted2: #444;
}

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

html { scroll-behavior: smooth; font-size: 16px; background: var(--bg); }

body {
  font-family: 'Manrope', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.strip {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--yellow);
  z-index: 1000;
}

.sub-nav {
  position: sticky;
  top: 3px;
  z-index: 900;
  padding: 0 5vw;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(8,8,8,0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border2);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo-text {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  color: var(--yellow);
}

.sub-nav-back {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
}

.sub-nav-back:hover { color: var(--text); }

.page-main {
  flex: 1;
  padding: 48px 5vw 80px;
  max-width: 820px;
  margin: 0 auto;
  width: 100%;
}

.page-eyebrow {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 12px;
}

.page-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1;
  color: #fff;
  margin-bottom: 12px;
}

.page-meta {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 36px;
}

.prose h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin: 32px 0 12px;
}

.prose h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 24px 0 8px;
}

.prose p, .prose li {
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 12px;
}

.prose ul, .prose ol {
  padding-left: 1.25rem;
  margin-bottom: 16px;
}

.prose a {
  color: var(--yellow);
  text-decoration: none;
}

.prose a:hover { text-decoration: underline; }

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 0.85rem;
}

.prose th, .prose td {
  border: 1px solid var(--border2);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.prose th {
  background: var(--bg2);
  color: #fff;
  font-weight: 600;
}

.prose td { color: var(--muted); }

.roadmap-item, .changelog-release {
  border-left: 2px solid var(--border2);
  padding: 16px 20px;
  margin-bottom: 16px;
  background: var(--bg2);
}

.roadmap-item h3, .changelog-release h2 {
  font-size: 1rem;
  color: var(--yellow);
  margin: 0 0 8px;
}

.roadmap-item ul,
.changelog-release ul {
  margin: 0;
  padding-left: 1.15rem;
}

.roadmap-item li,
.changelog-release li {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 6px;
  line-height: 1.55;
}

.roadmap-item li:last-child,
.changelog-release li:last-child { margin-bottom: 0; }

.roadmap-item p {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0;
}

.roadmap-subhead {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  margin: 14px 0 6px;
}

.roadmap-subhead:first-of-type { margin-top: 0; }

.changelog-section-label,
.roadmap-section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted2);
  margin: 12px 0 6px;
}

.changelog-section-label:first-of-type,
.roadmap-section-label:first-of-type { margin-top: 0; }

.toc {
  background: var(--bg2);
  border: 1px solid var(--border2);
  padding: 20px 24px;
  margin-bottom: 32px;
}

.toc-title {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted2);
  margin-bottom: 12px;
}

.toc a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  padding: 4px 0;
}

.toc a:hover { color: var(--yellow); }

.disclaimer {
  margin-top: 40px;
  padding: 16px;
  border: 1px solid var(--border2);
  background: var(--bg2);
  font-size: 0.78rem;
  color: var(--muted2);
}

footer {
  background: var(--bg);
  border-top: 1px solid var(--border2);
  padding: 56px 5vw 40px;
  margin-top: auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border2);
}

.footer-brand-desc {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.65;
  margin-top: 14px;
  max-width: 240px;
}

.footer-col-title {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted2);
  margin-bottom: 16px;
}

.footer-links { display: flex; flex-direction: column; gap: 10px; }

.footer-links a {
  font-size: 0.82rem;
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover { color: var(--yellow); }

.footer-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copy { font-size: 0.75rem; color: var(--muted2); }

.footer-legal { display: flex; gap: 20px; flex-wrap: wrap; }

.footer-legal a {
  font-size: 0.72rem;
  color: var(--muted2);
  text-decoration: none;
}

.footer-legal a:hover { color: var(--muted); }

@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
