:root {
  --page-width: 750px;
  --page-height: 1624px;
  --page-scale: 1;
  color-scheme: dark;
  font-family: "Source Han Sans SC", "Noto Sans CJK SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: #101534;
}

body {
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.stage {
  display: flex;
  justify-content: center;
  width: 100%;
  height: calc(var(--page-height) * var(--page-scale));
  min-height: 100vh;
  overflow: hidden;
}

.download-page {
  position: relative;
  flex: 0 0 var(--page-width);
  width: var(--page-width);
  height: var(--page-height);
  overflow: hidden;
  transform: scale(var(--page-scale));
  transform-origin: top center;
  background: linear-gradient(180deg, #141a43 0%, #3242a9 100%);
  color: #fff;
}

.market-background {
  position: absolute;
  top: 62px;
  left: -2px;
  width: 752px;
  height: 501px;
  object-fit: cover;
  opacity: 0.1;
  pointer-events: none;
  transform: scaleX(-1);
}

.brand {
  position: absolute;
  inset: 175px 0 auto;
  text-align: center;
}

.brand-logo {
  width: 200px;
  height: 200px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 44.5312px;
  background: linear-gradient(144.08deg, #0847a3 9.27%, #002361 29.34%, #000e2b 95.45%);
  box-shadow: 0 12px 26px rgba(2, 10, 42, 0.35);
}

.brand-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand h1 {
  margin: 20px 0 0;
  font-size: 56px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.3333px;
}

.brand p {
  margin: 14px 0 0;
  color: #848bb8;
  font-size: 32px;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.3333px;
}

.download-actions {
  position: absolute;
  top: 617px;
  left: 40px;
  display: grid;
  grid-template-columns: 324px 324px;
  gap: 22px;
}

.download-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 324px;
  height: 108px;
  border-radius: 16.2px;
  font-size: 32px;
  font-weight: 500;
  line-height: 1;
  transition: filter 120ms ease, transform 120ms ease;
}

.download-button.apple {
  background: #1772fe;
}

.download-button.android {
  background: #19c4b6;
}

.download-button img {
  width: 48px;
  height: 48px;
  margin-right: 12px;
}

.download-button:active,
.backup-button:active {
  filter: brightness(0.92);
  transform: translateY(2px);
}

.backup-section {
  position: absolute;
  top: 799px;
  left: 40px;
  width: 670px;
}

.backup-section h2 {
  margin: 0 0 39px;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.35;
}

.backup-list {
  display: grid;
  gap: 24px;
}

.backup-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 670px;
  height: 108px;
  border: 1px solid #646ca8;
  border-radius: 12.762px;
  background: #384497;
  font-size: 32px;
  font-weight: 400;
  line-height: 1;
  transition: filter 120ms ease, transform 120ms ease;
}

.backup-button img {
  width: 48px;
  height: 48px;
  margin-right: 12px;
}

.toast {
  position: absolute;
  left: 50%;
  bottom: 96px;
  z-index: 2;
  max-width: 620px;
  padding: 18px 28px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  background: rgba(3, 9, 36, 0.88);
  color: #fff;
  font-size: 26px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px);
  transition: opacity 180ms ease, transform 180ms ease;
  white-space: nowrap;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (prefers-reduced-motion: reduce) {
  .download-button,
  .backup-button,
  .toast {
    transition: none;
  }
}
