*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0f1117;
  --surface:   #1a1d27;
  --border:    #2a2d3a;
  --accent:    #6c63ff;
  --accent-h:  #5a52e0;
  --text:      #e2e4ed;
  --muted:     #8b8fa8;
  --win:       #0078d4;
  --mac:       #555;
  --linux:     #e95420;
  --coffee:    #ff5e5b;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 80px 24px 60px;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, #2a2060 0%, transparent 70%);
}

.hero__icon {
  width: 96px;
  height: 96px;
  border-radius: 20px;
  margin-bottom: 28px;
  box-shadow: 0 8px 32px rgba(108, 99, 255, 0.4);
}

.hero__title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.hero__title span { color: var(--accent); }

.hero__sub {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 40px;
}

/* ── Download buttons ───────────────────────────────────── */
.download-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 16px;
}

.download-group .btn {
  width: 340px;
  justify-content: center;
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.15s, transform 0.15s;
  border: none;
  cursor: pointer;
}

.btn:hover { opacity: 0.85; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--win   { background: var(--win);    color: #fff; }
.btn--mac   { background: var(--mac);    color: #fff; }
.btn--linux { background: var(--linux);  color: #fff; }
.btn--coffee { background: var(--coffee); color: #fff; }
.btn--ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}

.btn svg { flex-shrink: 0; }

.download-note {
  font-size: 0.82rem;
  color: var(--muted);
}

/* ── Features ───────────────────────────────────────────── */
.section {
  max-width: 900px;
  margin: 0 auto;
  padding: 64px 24px;
}

.section__title {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 24px;
  text-align: center;
}

.feature__icon { font-size: 2.2rem; margin-bottom: 14px; }
.feature__title { font-weight: 600; margin-bottom: 8px; }
.feature__desc { font-size: 0.88rem; color: var(--muted); }

/* ── Download table ─────────────────────────────────────── */
.table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

th {
  text-align: left;
  padding: 10px 16px;
  color: var(--muted);
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}

td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

tr:last-child td { border-bottom: none; }

td code {
  background: #252836;
  padding: 2px 8px;
  border-radius: 5px;
  font-size: 0.85rem;
  font-family: 'Fira Code', 'Cascadia Code', monospace;
}

/* ── Support ────────────────────────────────────────────── */
.support {
  text-align: center;
  padding: 60px 24px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.support p { color: var(--muted); margin-bottom: 20px; }

/* ── Footer ─────────────────────────────────────────────── */
footer {
  text-align: center;
  padding: 24px;
  font-size: 0.82rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

footer a { color: var(--muted); text-decoration: underline; }

/* ── Divider ─────────────────────────────────────────────── */
hr { border: none; border-top: 1px solid var(--border); }

@media (max-width: 480px) {
  .btn { width: 100%; justify-content: center; }
  .download-group { flex-direction: column; align-items: center; }
}
