:root {
  color-scheme: light;
  --ink: #101b36;
  --muted: #526789;
  --line: rgba(77, 123, 190, 0.22);
  --panel: rgba(255, 255, 255, 0.86);
  --blue: #2767ef;
  --blue-soft: #eaf2ff;
  --green: #14835f;
  --shadow: 0 18px 48px rgba(55, 92, 154, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  background: #edf5ff;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.7;
  background:
    radial-gradient(circle at 15% 0%, rgba(111, 162, 255, 0.26), transparent 32rem),
    radial-gradient(circle at 95% 18%, rgba(169, 224, 255, 0.28), transparent 28rem),
    linear-gradient(180deg, #f7fbff 0%, #edf5ff 100%);
}

a {
  color: var(--blue);
  text-underline-offset: 0.18em;
}

.shell {
  width: min(100% - 32px, 960px);
  margin: 0 auto;
  padding: 28px 0 72px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 2px 26px;
}

.brand {
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 16px;
  font-size: 0.95rem;
}

.hero,
.card,
.legal-document {
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.hero {
  padding: clamp(28px, 5vw, 52px);
  margin-bottom: 22px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 3px 12px;
  border-radius: 999px;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 0.86rem;
  font-weight: 750;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

h1 {
  margin: 18px 0 10px;
  font-size: clamp(2.1rem, 7vw, 4rem);
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(1.4rem, 4vw, 2rem);
}

h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

.lead {
  max-width: 46rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.meta {
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.92rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.card {
  padding: 26px;
}

.card.wide {
  grid-column: 1 / -1;
}

.contact-list,
.plain-list {
  margin: 0;
  padding-left: 1.25rem;
}

.contact-list li,
.plain-list li {
  margin: 0.4rem 0;
}

.status {
  color: var(--green);
  font-weight: 750;
}

.language-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.language-links a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 6px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-weight: 700;
  text-decoration: none;
}

.legal-document {
  padding: clamp(26px, 5vw, 50px);
}

.legal-document section {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.legal-document section:first-of-type {
  border-top: 0;
}

.legal-document ul {
  margin-top: 0;
  padding-left: 1.25rem;
}

.legal-document li {
  margin: 0.5rem 0;
}

.language-divider {
  margin: 44px 0;
  border: 0;
  border-top: 2px solid var(--line);
}

.download-page {
  min-height: 100vh;
  font-family: "Avenir Next", "PingFang SC", "Hiragino Sans GB", sans-serif;
  background:
    radial-gradient(circle at 50% -10%, rgba(73, 134, 255, 0.36), transparent 34rem),
    radial-gradient(circle at 8% 54%, rgba(121, 223, 255, 0.18), transparent 26rem),
    radial-gradient(circle at 94% 72%, rgba(103, 142, 255, 0.16), transparent 28rem),
    linear-gradient(165deg, #f9fcff 0%, #eaf3ff 48%, #f8fbff 100%);
}

.download-shell {
  width: min(100% - 32px, 1060px);
}

.download-page .nav a {
  padding: 5px 0;
  color: #315caa;
  font-weight: 650;
  text-decoration: none;
}

.download-page .nav a[aria-current="page"] {
  color: var(--ink);
  box-shadow: inset 0 -2px #4b7ee8;
}

.download-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 0.7fr);
  align-items: center;
  gap: clamp(30px, 6vw, 76px);
  min-height: 510px;
  padding: clamp(34px, 7vw, 72px);
  border: 1px solid rgba(255, 255, 255, 0.96);
  border-radius: 38px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 34px 90px rgba(43, 84, 151, 0.18);
  backdrop-filter: blur(24px);
}

.download-hero::before,
.download-hero::after {
  position: absolute;
  z-index: -1;
  border-radius: 999px;
  content: "";
  pointer-events: none;
}

.download-hero::before {
  width: 420px;
  height: 420px;
  right: -110px;
  top: -160px;
  border: 1px solid rgba(61, 117, 235, 0.18);
  box-shadow:
    0 0 0 34px rgba(85, 140, 255, 0.05),
    0 0 0 78px rgba(85, 140, 255, 0.035);
}

.download-hero::after {
  width: 180px;
  height: 180px;
  left: -76px;
  bottom: -90px;
  background: rgba(84, 216, 255, 0.16);
  filter: blur(12px);
}

.download-copy h1 {
  max-width: 10em;
  margin-bottom: 18px;
  font-size: clamp(2.5rem, 5.4vw, 3.75rem);
  font-weight: 760;
  letter-spacing: -0.055em;
}

.download-copy h1 span {
  display: block;
  white-space: nowrap;
}

.download-copy .lead {
  max-width: 38rem;
  font-size: clamp(1.02rem, 2vw, 1.2rem);
}

.app-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 310px;
}

.app-stage::before,
.app-stage::after {
  position: absolute;
  border-radius: 50%;
  content: "";
}

.app-stage::before {
  width: 290px;
  height: 290px;
  border: 1px solid rgba(48, 104, 218, 0.19);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.95), rgba(224, 239, 255, 0.38) 58%, transparent 60%);
  animation: stage-breathe 5s ease-in-out infinite;
}

.app-stage::after {
  width: 220px;
  height: 36px;
  bottom: 18px;
  background: rgba(38, 93, 193, 0.18);
  filter: blur(18px);
}

.download-app-icon {
  position: relative;
  z-index: 1;
  width: clamp(156px, 22vw, 210px);
  height: auto;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 27%;
  box-shadow:
    0 28px 60px rgba(35, 83, 177, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.3);
  transform: rotate(-2deg);
}

.download-section {
  padding: clamp(48px, 8vw, 82px) 0 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
}

.section-heading p {
  max-width: 34rem;
  color: var(--muted);
  text-align: right;
}

.store-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.store-card {
  position: relative;
  overflow: hidden;
  min-height: 224px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 52px rgba(55, 92, 154, 0.12);
}

.store-card::after {
  position: absolute;
  width: 150px;
  height: 150px;
  right: -58px;
  bottom: -72px;
  border-radius: 50%;
  background: var(--store-glow, rgba(54, 111, 238, 0.1));
  content: "";
}

.store-card.apple {
  --store-glow: rgba(28, 49, 87, 0.1);
}

.store-card.android {
  --store-glow: rgba(31, 174, 126, 0.13);
}

.store-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.store-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #5f8cf2;
  box-shadow: 0 0 0 5px rgba(95, 140, 242, 0.12);
}

.android .store-dot {
  background: #28a77c;
  box-shadow: 0 0 0 5px rgba(40, 167, 124, 0.12);
}

.store-card h3 {
  margin: 20px 0 8px;
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.store-card p {
  max-width: 30rem;
  color: var(--muted);
}

.store-action {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 18px;
  padding: 8px 17px;
  border: 1px solid rgba(55, 93, 163, 0.16);
  border-radius: 999px;
  color: #597092;
  background: #f2f6fb;
  font-size: 0.92rem;
  font-weight: 760;
}

.store-action.is-live {
  color: #fff;
  background: var(--blue);
  text-decoration: none;
}

.market-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.market-list span {
  padding: 6px 10px;
  border: 1px solid rgba(59, 101, 176, 0.13);
  border-radius: 9px;
  color: #50698f;
  background: rgba(244, 248, 253, 0.92);
  font-size: 0.8rem;
  font-weight: 680;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.feature-card {
  min-height: 158px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 16px 44px rgba(55, 92, 154, 0.09);
}

.feature-card h3 {
  margin-bottom: 10px;
  font-size: 1.22rem;
}

.feature-card p {
  color: var(--muted);
  font-size: 0.96rem;
}

.download-support {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 54px;
  padding: 26px 30px;
  border: 1px solid rgba(255, 255, 255, 0.94);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.74);
}

.download-support p {
  color: var(--muted);
}

.download-support a {
  flex: 0 0 auto;
  padding: 10px 16px;
  border-radius: 999px;
  color: #fff;
  background: #1d4fae;
  font-weight: 760;
  text-decoration: none;
}

@keyframes stage-breathe {
  0%, 100% { transform: scale(0.96); opacity: 0.74; }
  50% { transform: scale(1.04); opacity: 1; }
}

footer {
  padding: 30px 4px 0;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
}

@media (max-width: 680px) {
  .shell {
    width: min(100% - 20px, 960px);
    padding-top: 16px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding-inline: 8px;
  }

  .nav {
    justify-content: flex-start;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .card.wide {
    grid-column: auto;
  }

  .hero,
  .card,
  .legal-document {
    border-radius: 22px;
  }

  .download-shell {
    width: min(100% - 18px, 1060px);
  }

  .download-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 22px 22px 28px;
    border-radius: 28px;
  }

  .download-copy h1 {
    margin: 14px 0 12px;
    font-size: clamp(2.05rem, 9vw, 2.4rem);
    line-height: 1.14;
  }

  .app-stage {
    min-height: 154px;
    order: -1;
  }

  .app-stage::before {
    width: 164px;
    height: 164px;
  }

  .app-stage::after {
    width: 128px;
    height: 22px;
    bottom: 4px;
  }

  .download-app-icon {
    width: 116px;
    border-radius: 25%;
    box-shadow: 0 18px 38px rgba(35, 83, 177, 0.24);
  }

  .download-hero .lead {
    font-size: 0.96rem;
    line-height: 1.62;
  }

  .download-hero .lead[lang="en"] {
    display: none;
  }

  .download-section {
    padding-top: 40px;
  }

  .store-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .download-support {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-heading p {
    text-align: left;
  }

  .download-support a {
    width: 100%;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .app-stage::before {
    animation: none;
  }
}
