/* Inherit the homepage fonts, navigation palette and logo from /css/styles.css. */
html.download-root,
body.download-page {
  height: auto;
  min-height: 100%;
  overflow: visible;
  background: #020204; /* Exact background used by #page2-starfield. */
  color: #f5f8fc;
  color-scheme: dark;
}

html.download-root { scroll-behavior: smooth; scroll-padding-top: 28px; }
body.download-page { position: relative; min-height: 100svh; isolation: isolate; }
.download-page a { -webkit-tap-highlight-color: transparent; }
.download-page button { font: inherit; }
.download-page :focus-visible { outline: 2px solid #c3dcf5; outline-offset: 6px; }
.download-page svg { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.download-scene { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.download-scene canvas { display: block; width: 100%; height: 100%; }
.download-header { display: flex; justify-content: flex-end; align-items: center; min-height: 84px; padding: 18px 24px; }
.download-header .site-logo { position: absolute; }
.download-header__actions { display: flex; align-items: center; gap: 30px; }
.download-home { display: inline-flex; gap: 9px; align-items: center; color: #aebbd0; text-decoration: none; font-size: 12px; transition: color 180ms ease; }
.download-home:hover { color: #fff; }
.download-home svg { width: 16px; height: 16px; }
.download-language { display: inline-flex; align-items: center; padding: 4px; border: 1px solid var(--nav-border); background: var(--nav-bg); border-radius: var(--nav-radius); }
.download-language button { min-width: 42px; min-height: 36px; padding: 6px 10px; border: 0; border-radius: 999px; background: transparent; color: #8e9bb0; cursor: pointer; font-size: 11px; letter-spacing: 0.04em; transition: background 180ms ease, color 180ms ease; }
.download-language button[aria-pressed="true"] { color: #f5f8fc; background: rgba(180, 205, 230, 0.13); }
.download-language button:hover { color: #fff; }
.download-language > span { width: 1px; height: 11px; margin: 0 3px; background: rgba(180, 205, 230, 0.2); }
.download-main,
.download-footer { width: min(1160px, calc(100% - 112px)); margin-inline: auto; }
.download-hero { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; min-height: 462px; padding: 28px 0 42px; }
.download-hero__copy { position: relative; z-index: 1; }
.download-eyebrow { display: flex; align-items: center; gap: 10px; color: #b7c8dd; font-size: 10px; letter-spacing: 0.23em; font-weight: 500; margin-bottom: 26px; }
.download-spark { color: #d4eaff; font-size: 18px; text-shadow: 0 0 16px rgba(160, 200, 255, 0.55); }
.download-hero h1 { font-family: var(--font-hero); font-size: clamp(44px, 5.5vw, 76px); font-weight: 600; letter-spacing: -0.055em; line-height: 1.09; }
.download-hero h1 > span { display: block; }
.download-hero__last-line { color: #b4c6df; }
.download-hero__description { margin-top: 25px; color: #aab6c8; font-size: 16px; line-height: 1.8; font-weight: 300; }
.download-hero__description > span { display: block; }
.download-hero__jump { display: inline-flex; align-items: center; gap: 16px; margin-top: 30px; color: #e4edf9; font-size: 11px; text-decoration: none; letter-spacing: 0.02em; }
.download-hero__jump svg { width: 15px; height: 15px; transition: transform 200ms ease; }
.download-hero__jump:hover svg { transform: translateY(3px); }
.download-planet-anchor { position: relative; height: 350px; }
.download-planet-caption { position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); white-space: nowrap; color: #77889f; font-size: 8px; font-weight: 400; letter-spacing: 0.2em; }
.download-planet-caption > span:first-child { margin: 0 9px; }
.download-options { padding-top: 20px; padding-bottom: 46px; }
.download-options__heading { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
.download-options__heading h2 { font-size: 20px; font-weight: 500; letter-spacing: -0.02em; }
.download-options__heading > p { color: #8e9bb0; font-size: 12px; }
.download-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.download-option { padding: 26px 24px 18px; border: 1px solid rgba(150, 195, 240, 0.15); border-radius: 16px; background: rgba(8, 13, 24, 0.56); transition: border-color 220ms ease, background 220ms ease; }
.download-option:hover,
.download-option:focus-within { border-color: rgba(150, 195, 240, 0.32); background: rgba(11, 18, 32, 0.72); }
.download-option__platform { color: #99acc4; font-size: 9px; letter-spacing: 0.15em; font-weight: 500; }
.download-option h3 { font-size: 26px; line-height: 1.2; font-weight: 500; letter-spacing: -0.03em; margin-top: 12px; }
.download-option__description { min-height: 36px; margin-top: 10px; font-size: 12px; line-height: 1.6; color: #99a8bb; }
.download-button { position: relative; isolation: isolate; overflow: hidden; display: flex; width: 100%; min-height: 116px; margin-top: 19px; padding: 12px; gap: 12px; align-items: center; justify-content: space-between; border: 1px solid rgba(180, 205, 230, 0.35); border-radius: 12px; text-decoration: none; color: #f5f8fc; background: #03070e; box-shadow: 0 0 22px rgba(130, 185, 245, 0.13), inset 0 0 22px rgba(130, 185, 245, 0.04); transition: border-color 180ms ease, box-shadow 180ms ease; }
/* Both layers run continuously; neither intercepts clicks on the single link. */
.download-button::before { content: ''; position: absolute; inset: 0; padding: 1.5px; border-radius: inherit; background: repeating-linear-gradient(110deg, #344967 0%, #7dabd8 15%, #f0f8ff 25%, #9cbbec 35%, #344967 50%); background-size: 200% 100%; -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; animation: downloadBorderFlow 4s linear infinite; }
.download-button::after { content: ''; position: absolute; inset: 0; z-index: -1; background: repeating-linear-gradient(110deg, transparent 0%, rgba(145, 195, 255, 0.02) 12%, rgba(180, 215, 255, 0.13) 25%, transparent 38%, transparent 50%); background-size: 200% 100%; pointer-events: none; animation: downloadBorderFlow 4s linear infinite; }
.download-option:nth-child(2) .download-button::before,
.download-option:nth-child(2) .download-button::after { animation-delay: -1.3s; }
.download-option:nth-child(3) .download-button::before,
.download-option:nth-child(3) .download-button::after { animation-delay: -2.6s; }
@keyframes downloadBorderFlow { from { background-position: 200% 0; } to { background-position: 0 0; } }
.download-button:hover { border-color: #dcecff; box-shadow: 0 0 32px rgba(150, 195, 240, 0.26), inset 0 0 22px rgba(130, 185, 245, 0.07); }
.download-button:active { border-color: #fff; }
.download-badge { display: block; flex: 0 0 auto; width: auto; height: 40px; max-width: 100%; object-fit: contain; }
.download-button__action { display: flex; flex: 0 0 88px; min-height: 84px; flex-direction: column; align-items: center; justify-content: center; gap: 9px; border: 1px solid rgba(195, 222, 255, 0.28); border-radius: 8px; background: linear-gradient(135deg, rgba(167, 205, 255, 0.18), rgba(130, 175, 230, 0.08)); color: #f4f9ff; font-size: 14px; font-weight: 600; letter-spacing: -0.02em; text-shadow: 0 0 15px rgba(180, 215, 255, 0.5); }
.download-button__action svg { width: 27px; height: 27px; stroke-width: 1.7; }
.download-android { display: flex; align-items: center; gap: 9px; }
.download-apple { display: flex; align-items: center; gap: 9px; }
.download-page .download-apple__icon { flex: 0 0 auto; width: 30px; height: 36px; fill: currentColor; stroke: none; }
.download-apple .download-direct-label__brand { font-size: 21px; }
.download-page .download-android__icon { flex: 0 0 auto; width: 35px; height: 32px; color: #a7d6bf; stroke-width: 2.4; }
.download-android__icon .download-android__head { fill: currentColor; stroke: none; }
.download-android__icon circle { fill: #03070e; stroke: none; }
.download-direct-label { display: flex; flex-direction: column; gap: 4px; font-size: 11px; color: #bdcce0; }
.download-direct-label__brand { font-size: 23px; font-weight: 500; letter-spacing: -0.025em; color: #f5f8fc; }
.download-option__note { color: #8393a9; font-size: 10px; text-align: center; margin-top: 13px; }
.download-footer { padding-top: 22px; padding-bottom: 22px; border-top: 1px solid rgba(150, 195, 240, 0.12); color: #8b98ab; }
.download-footer__row { display: flex; align-items: center; justify-content: space-between; gap: 24px; font-size: 10px; }
.download-footer__tagline { letter-spacing: 0.035em; }
.download-footer nav { display: flex; gap: 24px; }
.download-footer a { color: inherit; text-decoration: none; }
.download-footer a:hover { color: #fff; }
.download-trademarks { max-width: 820px; margin: 18px auto 0; color: #69798d; text-align: center; font-size: 9px; line-height: 1.6; }
.download-skip { position: absolute; top: 12px; left: 12px; z-index: 200; transform: translateY(-200%); background: #e8edf5; color: #020204; padding: 12px 18px; border-radius: 8px; }
.download-skip:focus { transform: translateY(0); }
.download-root:lang(zh-CN) .download-hero h1 { letter-spacing: -0.02em; font-size: clamp(40px, 5.2vw, 69px); line-height: 1.2; }

@media (min-width: 1500px) and (min-height: 900px) {
  .download-hero { min-height: 520px; }
  .download-options { padding-bottom: 58px; }
}

@media (max-width: 1100px) {
  .download-main, .download-footer { width: calc(100% - 64px); }
  .download-grid { grid-template-columns: 1fr; gap: 14px; }
  .download-option { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 1fr); column-gap: 24px; padding: 22px; }
  .download-button { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; }
  .download-option__note { grid-column: 2; }
  .download-hero { min-height: 420px; }
  .download-planet-anchor { height: 290px; }
}

@media (max-width: 720px) {
  .download-header { min-height: 74px; padding: 12px 16px; }
  .download-header .site-logo { top: 27px; left: 20px; }
  .download-header__actions { gap: 16px; }
  .download-home { font-size: 10px; gap: 5px; }
  .download-home svg { width: 14px; }
  .download-language button { min-width: 36px; min-height: 32px; padding: 6px 8px; }
  .download-main, .download-footer { width: calc(100% - 40px); }
  .download-hero { grid-template-columns: 1fr; min-height: 0; padding: 26px 0 30px; text-align: center; }
  .download-eyebrow { justify-content: center; margin-bottom: 18px; font-size: 9px; }
  .download-hero h1 { font-size: clamp(38px, 8.8vw, 58px); }
  .download-root:lang(zh-CN) .download-hero h1 { font-size: clamp(32px, 10vw, 48px); }
  .download-hero__description { font-size: 14px; margin-top: 18px; }
  .download-hero__description > span { display: inline; }
  .download-hero__jump { display: none; }
  .download-planet-anchor { height: 210px; margin-top: 14px; }
  .download-planet-caption { font-size: 7px; bottom: -2px; }
  .download-options { padding-top: 16px; padding-bottom: 30px; }
  .download-options__heading { display: block; text-align: center; margin-bottom: 22px; }
  .download-options__heading h2 { font-size: 23px; }
  .download-options__heading > p { margin-top: 8px; }
  .download-grid { grid-template-columns: 1fr; gap: 16px; }
  .download-option { display: block; padding: 22px; }
  .download-option h3 { font-size: 25px; margin-top: 9px; }
  .download-option__description { min-height: 0; margin-top: 8px; }
  .download-button { margin-top: 20px; }
  .download-footer__row { flex-wrap: wrap; gap: 20px; }
  .download-footer__tagline { order: 3; width: 100%; text-align: center; }
  .download-trademarks { text-align: left; font-size: 8px; }
}

@media (max-width: 380px) {
  .download-main, .download-footer { width: calc(100% - 24px); }
  .download-option { padding: 20px 12px; }
  .download-button { padding: 10px; gap: 8px; }
  .download-button__action { flex-basis: 80px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  html.download-root { scroll-behavior: auto; }
  .download-page *, .download-page *::before, .download-page *::after { transition: none !important; animation: none !important; }
}
.download-test-version {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 8px 14px;
  border: 1px solid rgba(158, 201, 249, .3);
  border-radius: 999px;
  background: rgba(114, 170, 237, .08);
  color: #c7dffb;
  font-size: 12px;
  letter-spacing: .03em;
}

.download-test-version::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #b8d9ff;
}
