:root {
  --bg: #0d140f;
  --bg-2: #131d16;
  --card: #18241b;
  --line: #2a3a2e;
  --text: #e7eee2;
  --muted: #9bab98;
  --accent: #accd9c;
  --accent-2: #d1dfb9;
  --on-accent: #102016;
  --radius: 14px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font: 16px/1.55 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background:
    radial-gradient(1200px 600px at 50% -200px, #243b2c 0%, transparent 70%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
}

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

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px 24px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 650; font-size: 18px; }
.brand:hover { text-decoration: none; }
.top nav { display: flex; gap: 22px; }
.top nav a { color: var(--muted); font-size: 15px; }
.top nav a:hover { color: var(--text); text-decoration: none; }

main { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

.hero { text-align: center; padding: 56px 0 64px; }
.hero-icon { filter: drop-shadow(0 12px 40px rgba(172, 205, 156, .18)); }
.hero h1 { font-size: clamp(40px, 7vw, 64px); line-height: 1.05; margin: 20px 0 12px; letter-spacing: -.02em; }
.lede { font-size: 19px; color: var(--muted); max-width: 560px; margin: 0 auto 32px; }

.cta { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 650;
  font-size: 17px;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn small { font-weight: 450; font-size: 13px; opacity: .8; }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 8px 30px rgba(172, 205, 156, .25); }
.btn-primary:hover { background: var(--accent-2); }
.meta { color: var(--muted); font-size: 14px; margin-top: 18px; min-height: 1.5em; }

h2 { font-size: 26px; margin: 0 0 20px; letter-spacing: -.01em; }

.downloads { padding: 24px 0 40px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; align-items: start; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.card.detected { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.card h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 4px; font-size: 20px; }
.card h3 svg { width: 22px; height: 22px; fill: var(--accent); }
.req { color: var(--muted); font-size: 14px; margin: 0 0 16px; }

.files { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.files li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 10px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--text);
}
.files li a:hover { border-color: var(--accent); text-decoration: none; }
.files li a.recommended { border-color: rgba(172, 205, 156, .55); }
.files .label { font-weight: 560; font-size: 15px; }
.files .label em { font-style: normal; font-size: 12px; color: var(--on-accent); background: var(--accent); border-radius: 999px; padding: 1px 8px; margin-left: 6px; vertical-align: 1px; }
.files .detail { color: var(--muted); font-size: 13px; white-space: nowrap; }
.files .empty { color: var(--muted); font-size: 14px; padding: 6px 2px; }

.terminal { background: #0a0f0b; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 14px; }
.term-label { margin: 0 0 8px; font-size: 13px; color: var(--muted); }
.term-row { display: flex; align-items: center; gap: 10px; }
.term-row code { flex: 1; overflow-x: auto; white-space: nowrap; font-size: 13px; color: var(--accent-2); }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; }
.copy {
  flex: none;
  font: inherit;
  font-size: 12px;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 10px;
  cursor: pointer;
}
.copy:hover { border-color: var(--accent); }

.checksums { color: var(--muted); font-size: 14px; margin-top: 18px; }

.notes { padding: 24px 0 56px; }
.notes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.notes h3 { margin: 0 0 6px; font-size: 17px; }
.notes p { margin: 0 0 10px; color: var(--muted); font-size: 15px; }
.notes b { color: var(--text); font-weight: 600; }
.notes pre { margin: 0; background: #0a0f0b; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; overflow-x: auto; font-size: 12.5px; color: var(--accent-2); }

footer { border-top: 1px solid var(--line); text-align: center; color: var(--muted); font-size: 14px; padding: 24px; }

@media (max-width: 560px) {
  .top nav { gap: 14px; }
  .hero { padding: 32px 0 44px; }
}
