:root {
  --bg: #0f1115;
  --bg-soft: #171a21;
  --card: #1d212b;
  --border: #2a2f3c;
  --text: #e8eaf0;
  --muted: #9aa1b0;
  --accent: #4f7cff;
  --accent-hover: #6b90ff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero */
.hero {
  background: radial-gradient(ellipse at top, #1b2340 0%, var(--bg) 70%);
  padding: 72px 0 48px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.hero h1 {
  font-size: 2.6rem;
  margin: 0 0 8px;
  letter-spacing: 0.5px;
}

.tagline {
  color: var(--muted);
  font-size: 1.15rem;
  margin: 0 0 28px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.version {
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.15s ease, transform 0.05s ease;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover { background: var(--accent-hover); }

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--bg-soft);
}

.btn-ghost:hover { border-color: var(--accent); }

/* Disclaimer */
.notice-bar {
  background: #3a2e12;
  border-bottom: 1px solid #6b5518;
  color: #f0d493;
  padding: 12px 0;
  font-size: 0.95rem;
}

/* Sections */
section { padding: 44px 0; }

h2 {
  font-size: 1.6rem;
  margin: 0 0 18px;
  border-left: 4px solid var(--accent);
  padding-left: 12px;
}

h3 { margin: 0 0 8px; }

code {
  background: var(--bg-soft);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.9em;
}

.section-note {
  color: var(--muted);
  max-width: 720px;
}

/* Cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.grid-2 { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
}

.card p { color: var(--muted); margin: 0; }

.download-card .btn { margin-top: 16px; }

.h-prev { margin: 28px 0 10px; font-size: 1.05rem; }

.downloads-list {
  color: var(--muted);
  padding-left: 20px;
}

.downloads-list a { color: var(--accent); }

/* SHA-256 */
.hashes {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.hash-row {
  display: flex;
  gap: 14px;
  align-items: baseline;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  flex-wrap: wrap;
}

.hash-name {
  font-weight: 600;
  min-width: 100px;
}

.hash-value {
  word-break: break-all;
  font-size: 0.82rem;
  color: var(--muted);
  background: transparent;
  padding: 0;
}

/* Support */
.support-wrap {
  display: flex;
  gap: 32px;
  align-items: center;
  flex-wrap: wrap;
}

.qr-frame {
  background: #fff;
  padding: 18px;
  border-radius: 16px;
  text-align: center;
  flex-shrink: 0;
}

.qr-frame img { display: block; border-radius: 8px; }

.qr-caption {
  margin: 12px 0 0;
  color: #333;
  font-weight: 600;
  font-size: 0.95rem;
}

.support-text { max-width: 480px; }

.small-note { color: var(--muted); font-size: 0.88rem; }

/* Footer */
footer {
  border-top: 1px solid var(--border);
  margin-top: 32px;
  padding: 28px 0 40px;
  text-align: center;
  color: var(--muted);
}

footer p { margin: 4px 0; }

.site-stats {
  color: var(--text);
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 640px) {
  .hero { padding: 48px 0 36px; }
  .hero h1 { font-size: 2rem; }
  .support-wrap { flex-direction: column; align-items: flex-start; }
}
