:root {
  --bg: #0f172a;
  --surface: #1e293b;
  --surface-hover: #334155;
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --accent: #f4aa41;
  --accent-hover: #e09b36;
  --radius: 12px;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}

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

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.hero {
  text-align: center;
  margin-bottom: 48px;
}

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

.title {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -1px;
}

.tagline {
  font-size: 20px;
  color: var(--text);
  margin-bottom: 12px;
}

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

.download {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  margin-bottom: 32px;
}

.loading,
.error {
  text-align: center;
  color: var(--text-muted);
  padding: 24px 0;
}

.error p {
  margin-bottom: 16px;
}

.hidden {
  display: none;
}

.version {
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.release-date {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.primary-download {
  text-align: center;
  margin-bottom: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--accent);
  color: #0f172a;
  font-weight: 700;
  font-size: 16px;
  padding: 16px 28px;
  border-radius: var(--radius);
  transition: background 0.2s ease, transform 0.1s ease;
  text-decoration: none;
}

.button:hover {
  background: var(--accent-hover);
  text-decoration: none;
  transform: translateY(-1px);
}

.button-secondary {
  background: var(--surface-hover);
  color: var(--text);
}

.button-secondary:hover {
  background: #475569;
}

.button small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  opacity: 0.8;
}

.all-downloads {
  border-top: 1px solid var(--surface-hover);
  padding-top: 24px;
  margin-bottom: 32px;
}

.all-downloads h3 {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.platforms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.platform-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 16px;
  background: var(--surface-hover);
  border-radius: var(--radius);
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  transition: background 0.2s ease;
  text-decoration: none;
}

.platform-button:hover {
  background: #475569;
  text-decoration: none;
}

.platform-button .ext {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.release-notes {
  border-top: 1px solid var(--surface-hover);
  padding-top: 24px;
}

.release-notes h3 {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.release-notes-body {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
}

.release-notes-body h1,
.release-notes-body h2,
.release-notes-body h3 {
  color: var(--text);
  margin: 16px 0 8px;
  font-size: 16px;
}

.release-notes-body ul,
.release-notes-body ol {
  padding-left: 20px;
  margin-bottom: 12px;
}

.release-notes-body p {
  margin-bottom: 12px;
}

.release-notes-body code {
  background: var(--bg);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
}

.install-guide {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  margin-bottom: 32px;
}

.install-guide h2 {
  font-size: 22px;
  margin-bottom: 8px;
  text-align: center;
}

.install-intro {
  color: var(--text-muted);
  font-size: 14px;
  text-align: center;
  margin-bottom: 24px;
}

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--surface-hover);
}

.tab-button {
  flex: 1;
  padding: 12px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.tab-button:hover {
  color: var(--text);
}

.tab-button.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.tab-content {
  display: none;
  animation: fadeIn 0.2s ease;
}

.tab-content.active {
  display: block;
}

.tab-content h3 {
  font-size: 16px;
  margin-bottom: 12px;
  color: var(--text);
}

.tab-content p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 16px;
  line-height: 1.7;
}

.tab-content ol {
  color: var(--text-muted);
  font-size: 14px;
  padding-left: 20px;
  line-height: 1.8;
  margin-bottom: 16px;
}

.tab-content li {
  margin-bottom: 8px;
}

.tab-content pre {
  background: var(--bg);
  padding: 12px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 12px 0;
}

.tab-content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  color: var(--text);
}

.tab-content li code {
  background: var(--bg);
  padding: 2px 6px;
  border-radius: 4px;
}

.note {
  background: rgba(244, 170, 65, 0.1);
  border-left: 3px solid var(--accent);
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
  font-size: 13px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.footer {
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

@media (max-width: 480px) {
  .title {
    font-size: 36px;
  }

  .tagline {
    font-size: 18px;
  }

  .download {
    padding: 24px;
  }
}
