:root {
  --bg: #0f1218;
  --panel: #171b24;
  --text: #e8ecf3;
  --muted: #9aa3b5;
  --line: rgba(255, 255, 255, 0.08);
  --accent: #6ea8fe;
  --accent-2: #8bb4ff;
  --radius: 16px;
  font-family: "SF Pro Text", "Segoe UI", "PingFang SC", "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); }
body {
  min-height: 100vh;
  background:
    radial-gradient(900px 480px at 12% -10%, rgba(110, 168, 254, 0.18), transparent 60%),
    radial-gradient(700px 420px at 90% 0%, rgba(160, 180, 220, 0.1), transparent 55%),
    var(--bg);
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 6vw;
  border-bottom: 1px solid var(--line);
}
.brand { font-weight: 700; letter-spacing: 0.02em; }
nav { display: flex; gap: 18px; }
nav a { color: var(--muted); text-decoration: none; font-size: 14px; }
nav a:hover { color: var(--text); }

main { max-width: 980px; margin: 0 auto; padding: 48px 6vw 80px; }

.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 14px;
  letter-spacing: -0.03em;
}
.lead { color: var(--muted); font-size: 1.05rem; line-height: 1.6; max-width: 42rem; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
}
.btn.primary { background: var(--accent); color: #0b1020; }
.btn.primary:hover { background: var(--accent-2); }
.btn.ghost { border-color: var(--line); color: var(--text); }
.btn.ghost:hover { border-color: rgba(255,255,255,0.25); }

.panel { margin-top: 64px; }
.panel h2 { margin: 0 0 18px; font-size: 1.35rem; }
.section-lead {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin: -6px 0 18px;
  max-width: 40rem;
}
.section-lead strong { color: var(--text); }
.muted-line { color: var(--muted); font-size: 14px; }

.history-fold {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  padding: 0;
  overflow: hidden;
}
.history-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  user-select: none;
}
.history-summary::-webkit-details-marker { display: none; }
.history-summary::after {
  content: "›";
  color: var(--muted);
  font-size: 1.2rem;
  transform: rotate(90deg);
  transition: transform 0.15s ease;
}
.history-fold[open] > .history-summary::after {
  transform: rotate(-90deg);
}
.history-summary-label {
  font-weight: 600;
  font-size: 14px;
}
.history-summary-meta {
  color: var(--muted);
  font-size: 12px;
  margin-right: auto;
  margin-left: 10px;
}
.history-fold .release-list {
  border-top: 1px solid var(--line);
  padding: 12px;
  gap: 8px;
}
.history-fold .release-row {
  background: rgba(255, 255, 255, 0.02);
}

.release-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.release-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
}
.release-row.is-latest {
  border-color: rgba(110, 168, 254, 0.35);
}
.release-meta { min-width: 0; flex: 1; }
.release-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}
.release-arch {
  color: var(--muted);
  font-size: 12px;
}
.release-notes {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.badge.latest {
  color: #0b1020;
  background: var(--accent);
  border-color: transparent;
  font-weight: 600;
}
.release-dl {
  flex-shrink: 0;
  padding: 8px 14px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.card h3 { margin: 0 0 8px; }
.card p { color: var(--muted); margin: 0 0 14px; font-size: 14px; line-height: 1.5; }
.card.muted { opacity: 0.72; }
.hint { font-size: 12px !important; margin-top: 12px !important; margin-bottom: 0 !important; }
.badge {
  display: inline-block;
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
}

.steps {
  color: var(--muted);
  line-height: 1.7;
  padding-left: 1.2rem;
}
.steps strong { color: var(--text); }
.steps code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  background: rgba(255,255,255,0.06);
  padding: 1px 6px;
  border-radius: 6px;
}
.note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
  border-left: 3px solid rgba(110, 168, 254, 0.5);
  padding-left: 12px;
}

footer {
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: 28px;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--line);
}

@media (max-width: 640px) {
  .top { padding: 16px 5vw; }
  main { padding-top: 32px; }
}
