:root {
  color-scheme: dark;
  --night: #0b0d2a;
  --panel: #14173d;
  --line: rgba(255, 255, 255, .09);
  --text: #eef0ff;
  --muted: #a3a8d1;
  --cyan: #4fc8ff;
  --violet: #7b4dff;
  --magenta: #e04bd8;
  --neon: linear-gradient(100deg, var(--cyan), var(--violet) 52%, var(--magenta));
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--night);
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

* { box-sizing: border-box; }
html, body { overflow-x: hidden; overscroll-behavior: none; }
/* Vertical scrolling only: no pinch zoom, double-tap zoom or sideways dragging. */
html { touch-action: pan-y; }
body { margin: 0; min-width: 320px; background: var(--night); touch-action: pan-y; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 10px; }
h1, h2, h3, p, ul, dl, dd { margin: 0; padding: 0; }
ul { list-style: none; }

.site-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  height: 56px; padding: 0 20px;
  background: rgba(11, 13, 42, .82);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
}
.brand { display: inline-flex; align-items: center; gap: 9px; font-size: 17px; font-weight: 700; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.header-download { padding: 6px 16px; border-radius: 999px; background: var(--neon); color: #fff; font-size: 14px; font-weight: 600; }

main { width: 100%; max-width: 480px; margin: 0 auto; padding: 0 20px; }

/* Hero: the one loud moment, lit like the app icon. */
.hero { position: relative; padding: 52px 0 36px; text-align: center; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: -40px;
  width: 520px; height: 420px; transform: translateX(-50%);
  background:
    radial-gradient(closest-side at 32% 45%, rgba(79, 200, 255, .30), transparent),
    radial-gradient(closest-side at 70% 40%, rgba(224, 75, 216, .30), transparent),
    radial-gradient(closest-side at 50% 60%, rgba(123, 77, 255, .38), transparent);
  filter: blur(8px);
}
/* Shooting stars: an occasional streak across the icon, nothing more. */
.sky {
  position: absolute; z-index: 1; left: -20px; right: -20px; top: -56px; height: 330px;
  overflow: hidden; pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 12% 22%, rgba(255,255,255,.7), transparent),
    radial-gradient(1px 1px at 28% 64%, rgba(255,255,255,.45), transparent),
    radial-gradient(1.5px 1.5px at 84% 30%, rgba(255,255,255,.6), transparent),
    radial-gradient(1px 1px at 70% 72%, rgba(255,255,255,.4), transparent),
    radial-gradient(1px 1px at 92% 58%, rgba(255,255,255,.5), transparent),
    radial-gradient(1px 1px at 6% 48%, rgba(255,255,255,.5), transparent);
}
.sky i {
  position: absolute; left: var(--x); top: var(--y);
  width: 3px; height: 3px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 8px 2px rgba(190, 220, 255, .9);
  opacity: 0;
  animation: shoot 8s linear var(--delay, 0s) infinite;
}
.sky i::before {
  content: ""; position: absolute; top: 1px; right: 2px;
  width: 130px; height: 1.5px;
  background: linear-gradient(90deg, transparent, rgba(79, 200, 255, .5) 55%, #fff);
}
@keyframes shoot {
  0% { opacity: 0; transform: rotate(150deg) translateX(0); }
  1.5% { opacity: 1; }
  13% { opacity: 0; transform: rotate(150deg) translateX(var(--len, 380px)); }
  100% { opacity: 0; transform: rotate(150deg) translateX(var(--len, 380px)); }
}

.hero-icon {
  display: block; width: 112px; height: 112px; margin: 0 auto;
  border-radius: 26px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 14px 60px -6px rgba(123, 77, 255, .75);
}
.hero h1 {
  margin-top: 22px; font-size: 40px; line-height: 1.2; font-weight: 800; letter-spacing: .03em;
  background: linear-gradient(180deg, #fff 30%, #cfc6ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
/* Slogan: the brightest line on the page, warm gold against the night sky. */
.hero-slogan {
  margin-top: 14px; color: #ffd84d;
  font-size: clamp(20px, 7vw, 30px); line-height: 1.35; font-weight: 900; letter-spacing: .02em;
  text-shadow: 0 0 22px rgba(255, 196, 60, .45);
}
.hero-slogan span { display: block; white-space: nowrap; }
.hero-lead { margin-top: 14px; color: #c9cdf0; font-size: 16px; line-height: 1.7; }

.downloads { display: grid; gap: 12px; margin-top: 30px; }
.download-button {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 62px; padding: 10px 20px;
  border: 1px solid transparent; border-radius: 16px;
  text-align: left;
  transition: filter .15s ease, background-color .15s ease;
}
.download-button svg { flex: 0 0 auto; width: 26px; height: 26px; }
.download-button b, .download-button small { display: block; line-height: 1.3; }
.download-button b { font-size: 17px; font-weight: 700; }
.download-button small { margin-top: 1px; font-size: 12px; opacity: .85; }
.download-android { color: #fff; background: var(--neon); box-shadow: 0 10px 34px -10px rgba(123, 77, 255, .9); }
.download-android:hover { filter: brightness(1.08); }
.download-ios { color: var(--text); background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .18); }
.download-ios.is-pending { color: var(--muted); cursor: default; }
.install-tip { margin-top: 12px; color: var(--muted); font-size: 13px; }

[data-os="android"] .download-ios,
[data-os="ios"] .download-android,
[data-os="ios"] .install-tip-android,
[data-os="android"] .install-tip-ios { display: none; }

.facts {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin-top: 30px; padding: 14px 0;
  border: 1px solid var(--line); border-radius: 16px;
  background: rgba(255, 255, 255, .03);
}
.facts div + div { border-left: 1px solid var(--line); }
.facts dt { font-size: 16px; font-weight: 700; color: #fff; }
.facts dd { margin-top: 2px; color: var(--muted); font-size: 12px; }

/* Feature groups: each takes one color from the icon's gradient. */
.group { margin-top: 28px; padding: 22px 20px 6px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line); }
.group h2 { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; }
.group h2::before { content: ""; width: 4px; height: 20px; border-radius: 2px; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.group li { padding: 14px 0 16px; border-top: 1px solid var(--line); }
.group h2 + ul { margin-top: 12px; }
.group h3 { font-size: 16px; font-weight: 600; color: #fff; }
.group p { margin-top: 4px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.group-trade { --accent: var(--cyan); }
.group-asset { --accent: var(--violet); }
.group-safe { --accent: var(--magenta); }

.notice { margin-top: 28px; padding: 16px 18px; border-radius: 16px; border: 1px solid rgba(79, 200, 255, .25); background: rgba(79, 200, 255, .06); color: #c9cdf0; font-size: 13px; line-height: 1.85; }
.notice b { color: #fff; font-weight: 600; }

.bottom-download {
  display: flex; align-items: center; justify-content: center;
  min-height: 56px; margin: 28px 0 40px; border-radius: 16px;
  background: var(--neon); color: #fff; font-size: 17px; font-weight: 700;
  box-shadow: 0 10px 34px -10px rgba(123, 77, 255, .9);
}

.site-footer {
  display: flex; justify-content: center; gap: 20px;
  padding: 18px 20px calc(18px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  color: #7a7fa8; font-size: 12px;
}
.site-footer a:hover { color: var(--text); }

@media (min-width: 720px) {
  .site-header { padding: 0 max(32px, calc((100vw - 960px) / 2)); }
  main { max-width: 760px; }
  .hero { padding-top: 76px; }
  .hero-icon { width: 128px; height: 128px; border-radius: 30px; }
  .hero h1 { font-size: 48px; }
  .hero-slogan { font-size: 36px; }
  .downloads { max-width: 520px; margin-left: auto; margin-right: auto; }
  [data-os="other"] .downloads { grid-template-columns: 1fr 1fr; }
  .facts { max-width: 520px; margin-left: auto; margin-right: auto; }
  .group ul { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; }
  .bottom-download { max-width: 320px; margin-left: auto; margin-right: auto; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .sky i { display: none; }
}
