:root {
  color-scheme: light;
  font-family:
    Inter, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: #15233b;
  background: #f7f9fd;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% 0%, rgba(51, 136, 255, 0.12), transparent 38%),
    #f7f9fd;
}

button {
  font: inherit;
}

.download-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
}

.download-card {
  width: min(420px, 100%);
  padding: 48px 40px 42px;
  text-align: center;
  background: #ffffff;
  border: 1px solid #e2e8f2;
  border-radius: 20px;
  box-shadow: 0 20px 56px rgba(28, 53, 91, 0.1);
}

.brand-mark {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
  color: #ffffff;
  background: linear-gradient(135deg, #4394ff, #1b5fc9);
  border-radius: 16px;
  font-size: 30px;
  font-weight: 750;
  letter-spacing: -0.04em;
}

h1 {
  margin: 0;
  color: #111827;
  font-size: clamp(28px, 7vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.subtitle {
  margin: 10px 0 30px;
  color: #7c889b;
  font-size: 15px;
}

.platform-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  background: #f0f4fa;
  border-radius: 12px;
}

.platform-switch button {
  min-height: 40px;
  padding: 0 16px;
  color: #66758c;
  background: transparent;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.platform-switch button[aria-pressed="true"] {
  color: #1b5fc9;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(44, 75, 119, 0.1);
  font-weight: 650;
}

.platform-switch button:focus-visible,
.download-button:focus-visible {
  outline: 3px solid rgba(51, 136, 255, 0.28);
  outline-offset: 2px;
}

.release-meta {
  min-height: 24px;
  margin: 24px 0 12px;
  color: #7c889b;
  font-size: 14px;
  line-height: 24px;
}

.download-button {
  width: 100%;
  min-height: 52px;
  padding: 0 24px;
  color: #ffffff;
  background: #3388ff;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(51, 136, 255, 0.24);
  transition: background-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.download-button:hover:not(:disabled) {
  background: #2479ef;
  box-shadow: 0 14px 28px rgba(51, 136, 255, 0.3);
  transform: translateY(-1px);
}

.download-button:active:not(:disabled) {
  transform: translateY(0);
}

.download-button:disabled {
  color: #a4adbb;
  background: #e9edf4;
  box-shadow: none;
  cursor: wait;
}

.download-status {
  min-height: 20px;
  margin: 12px 0 0;
  color: #b42318;
  font-size: 13px;
  line-height: 20px;
}

@media (max-width: 480px) {
  .download-page {
    padding: 20px 16px;
  }

  .download-card {
    padding: 40px 24px 34px;
    border-radius: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
