:root {
  color-scheme: dark;
  --bg: #0a0a0c;
  --panel: rgba(18, 18, 22, 0.92);
  --panel-strong: #15171c;
  --border: rgba(255, 255, 255, 0.12);
  --text: #f4f7fb;
  --muted: #9ba3b5;
  --accent: #7ed321;
  --accent-strong: #5db616;
  --accent-soft: rgba(126, 211, 33, 0.14);
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top right, rgba(126, 211, 33, 0.18), transparent 28%),
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.14), transparent 24%),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body { padding: 0 18px 64px; }
.shell { max-width: 1120px; margin: 0 auto; }

/* Nav */
.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0 28px;
}
.nav-brand { display: flex; align-items: center; gap: 10px; }
.nav-logo { width: 28px; height: 28px; object-fit: contain; }
.nav-title, a.nav-title { font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; color: var(--text); text-decoration: none; }
.btn-ghost {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: transparent;
  font-size: 0.9rem;
}
.btn-ghost:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.25); }

/* Hero */
.hero { display: grid; grid-template-columns: 1.7fr 1fr; gap: 24px; align-items: stretch; margin-bottom: 24px; }
.panel, .hero-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.hero-copy {
  padding: 40px;
  background: linear-gradient(180deg, rgba(21, 23, 28, 0.92), rgba(10, 10, 12, 0.92));
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.eyebrow, .kicker {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.wordmark { width: min(320px, 100%); margin: 20px 0 10px; display: block; }
.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.1;
  max-width: 16ch;
}
.lede {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 58ch;
  margin: 18px 0 0;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 14px; }
.install-note {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 0 0 20px;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.55;
}
.install-note svg { flex-shrink: 0; margin-top: 2px; opacity: 0.6; }
.install-note strong { color: var(--text); font-weight: 600; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: transform .15s ease, opacity .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(180deg, var(--accent), var(--accent-strong)); color: #081106; }
.btn-primary:hover { opacity: 0.92; }
.btn-secondary { border: 1px solid var(--border); color: var(--text); background: rgba(255, 255, 255, 0.02); }
.btn-secondary:hover { border-color: rgba(255, 255, 255, 0.25); }
.quick-stats {
  list-style: none; padding: 0; margin: 10px 0 0;
  display: grid; gap: 10px; grid-template-columns: repeat(3, minmax(0, 1fr));
}
.quick-stats li {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.02);
}
.quick-stats span, .muted { color: var(--muted); }
.quick-stats strong { display: block; margin-top: 6px; font-size: 1rem; color: var(--text); }
.hero-card {
  position: relative;
  padding: 32px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 100%;
}
.card-glow {
  position: absolute; inset: auto auto 10% 50%; width: 220px; height: 220px; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(126, 211, 33, 0.45), rgba(126, 211, 33, 0)); filter: blur(6px);
}
.mark { width: min(220px, 64%); position: relative; z-index: 1; }
.card-meta { position: relative; z-index: 1; margin-top: 18px; display: grid; gap: 6px; }
.meta-label { color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; }

/* Main layout */
main { display: flex; flex-direction: column; gap: 24px; }
.panel { padding: 28px; transition: border-color .2s ease; }
.panel:hover { border-color: rgba(255, 255, 255, 0.2); }
.panel-head { margin-bottom: 18px; }
.panel-head h2 { margin: 10px 0 0; font-size: 1.5rem; }

/* Back link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 16px;
  transition: color .15s ease;
}
.back-link:hover { color: var(--text); }

/* Version history */
.versions-list { display: flex; flex-direction: column; }
.version-row {
  display: flex;
  flex-direction: column;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.version-row:last-child { border-bottom: none; }
.version-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.version-info { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.version-actions { display: flex; align-items: center; gap: 8px; }
.version-tag { font-weight: 700; font-size: 0.95rem; font-family: ui-monospace, "Cascadia Code", "Fira Code", monospace; }
.version-badge {
  display: inline-flex; padding: 3px 8px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}
.version-date, .version-size { font-size: 0.88rem; color: var(--muted); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 0.88rem; border-radius: 10px; }

/* Changelog toggle */
.btn-changelog {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: color .15s ease, border-color .15s ease;
}
.btn-changelog:hover { color: var(--text); border-color: rgba(255,255,255,0.25); }
.changelog-chevron {
  transition: transform .2s ease;
  flex-shrink: 0;
}
.btn-changelog[aria-expanded="true"] .changelog-chevron { transform: rotate(180deg); }

/* Changelog panel */
.version-changelog {
  margin-top: 12px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.changelog-list {
  margin: 0;
  padding: 0 0 0 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.changelog-list li {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

.small { font-size: 0.92rem; }
.release-copy { color: var(--muted); line-height: 1.75; }
.release-copy ul { margin: 12px 0 0 20px; }
.release-copy li { margin-bottom: 6px; }

/* Footer */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}
.site-footer p { margin: 0; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--muted); text-decoration: none; transition: color .15s ease; }
.footer-links a:hover { color: var(--text); }
a { color: #bfe88e; }

@media (max-width: 900px) {
  .hero, .grid.two-up { grid-template-columns: 1fr; }
  .hero-copy, .hero-card, .panel { padding: 24px; }
  .quick-stats { grid-template-columns: 1fr; }
  .site-footer { flex-direction: column; align-items: flex-start; }
}