/* ── Reset & Variables ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0d0d0f;
  --bg-card: #16161a;
  --bg-card-hover: #1e1e24;
  --border: #2a2a33;
  --accent: #6C63FF;
  --accent-dim: rgba(108, 99, 255, 0.15);
  --text: #e8e8f0;
  --text-muted: #888899;
  --text-faint: #555566;
  --radius: 10px;
  --radius-sm: 6px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Navbar ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 13, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.3px;
}

nav {
  display: flex;
  gap: 28px;
}

nav a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.15s;
}

nav a:hover { color: var(--text); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  border: 1px solid transparent;
  text-decoration: none;
}

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

.btn-ghost {
  color: var(--text-muted);
  border-color: var(--border);
}
.btn-ghost:hover { color: var(--text); background: var(--bg-card); }

.btn-outline {
  color: var(--text-muted);
  border-color: var(--border);
  background: transparent;
  font-size: 13px;
  padding: 7px 16px;
  white-space: nowrap;
}
.btn-outline:hover { color: var(--text); border-color: var(--accent); }

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
  border-radius: var(--radius);
}

/* ── Hero ── */
.hero {
  padding: 80px 0 72px;
  text-align: center;
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.2;
  margin-bottom: 20px;
}

.subtitle {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

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

/* ── Section shared ── */
.section-title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 32px;
}

section { padding: 64px 0; }

section + section { border-top: 1px solid var(--border); }

/* ── Features ── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.2s, background 0.2s;
}

.feature-card:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
}

.feature-icon { font-size: 24px; margin-bottom: 12px; }

.feature-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Download ── */
.dl-primary {
  text-align: center;
  margin-bottom: 36px;
}

.dl-detected-label {
  font-size: 12px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
}

.dl-table {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dl-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  gap: 16px;
  transition: border-color 0.15s;
}

.dl-row:hover { border-color: #444455; }

.dl-platform {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dl-os-icon { font-size: 22px; }

.dl-os-name {
  font-size: 14px;
  font-weight: 500;
}

.dl-os-detail {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.dl-note {
  margin-top: 20px;
  font-size: 12px;
  color: var(--text-faint);
  text-align: center;
}

/* ── Changelog ── */
.changelog-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 28px;
  border-left: 2px solid var(--border);
  padding-left: 24px;
}

.changelog-item {
  position: relative;
  padding-bottom: 32px;
}

.changelog-item::before {
  content: '';
  position: absolute;
  left: -30px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
}

.cl-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.cl-version {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

.cl-date {
  font-size: 12px;
  color: var(--text-faint);
}

.cl-notes {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.cl-notes li {
  font-size: 13px;
  color: var(--text-muted);
  padding-left: 14px;
  position: relative;
}

.cl-notes li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--text-faint);
}

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--text-faint);
}

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

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

/* ── Responsive ── */
@media (max-width: 600px) {
  .nav-inner nav { display: none; }
  .hero { padding: 56px 0 48px; }
  .hero h1 { font-size: 1.8rem; }
  .dl-row { flex-direction: column; align-items: flex-start; }
  .footer-inner { flex-direction: column; text-align: center; }
}
