:root {
  color-scheme: light dark;
  --bg: #f5f6f8;
  --text: #1c1c1e;
  --text-dim: #6e6e73;
  --card-bg: #ffffff;
  --border: rgba(0, 0, 0, 0.08);
  --accent: #5b8dff;
  --accent2: #7c5cff;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17181a;
    --text: #f0f0f2;
    --text-dim: #9a9aa0;
    --card-bg: #232427;
    --border: rgba(255, 255, 255, 0.08);
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

main {
  max-width: 480px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

h1 {
  font-size: 32px;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.tagline {
  color: var(--text-dim);
  font-size: 16px;
  margin: 0 0 36px;
}

.download-card {
  width: 100%;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.download-btn {
  width: 100%;
  padding: 16px 24px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.12s ease;
}

.download-btn:hover:not(:disabled) {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.download-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.version-meta {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-dim);
}

.other-platforms {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  gap: 16px;
  font-size: 13px;
}

.other-platforms a {
  color: var(--text-dim);
  text-decoration: none;
}

.other-platforms a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.footer {
  margin-top: 28px;
  font-size: 13px;
}

.footer a {
  color: var(--text-dim);
  text-decoration: none;
}

.footer a:hover {
  color: var(--accent);
}
