:root {
  color-scheme: light;
  --base: #ffffff;
  --mist: #f7fbfc;
  --cool: #f7fbff;
  --warm: #fffefa;
  --text: #111827;
  --body: #243447;
  --muted: #6b7280;
  --soft: #8a93a1;
  --border: #e1e7ef;
  --echo-blue: #2cbce8;
  --active-blue: #21a7f8;
  --warm-yellow: #fcf0c0;
  --play-orange: #ff8a3d;
  --nami-green: #45c982;
  --shadow: 0 18px 50px rgba(33, 45, 68, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 12%, rgba(252, 240, 192, 0.72), transparent 26rem),
    radial-gradient(circle at 86% 20%, rgba(44, 188, 232, 0.18), transparent 24rem),
    linear-gradient(180deg, var(--mist) 0%, var(--warm) 58%, #ffffff 100%);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

a,
button {
  font: inherit;
}

.page-shell {
  width: min(1160px, 100%);
  margin: 0 auto;
  padding: 36px 24px 34px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: clamp(340px, 46vh, 440px);
  align-items: center;
  padding: 22px 0 26px;
}

.hero-copy {
  width: min(100%, 520px);
  justify-self: center;
  text-align: center;
}

.hero-title-lockup {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  max-width: 700px;
}

.hero-title-lockup img {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.1);
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  max-width: 620px;
  font-size: clamp(40px, 4.8vw, 62px);
  line-height: 1.04;
  font-weight: 800;
}

.slogan {
  max-width: 560px;
  margin-top: 24px;
  color: var(--text);
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.22;
  font-weight: 800;
}

.hero-lede {
  max-width: 560px;
  margin-top: 12px;
  color: var(--body);
  font-size: 20px;
  line-height: 1.7;
}

.primary-button,
.ghost-button,
.download-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  padding: 0 22px;
  border: 1px solid transparent;
  text-decoration: none;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.primary-button,
.download-link {
  color: #ffffff;
  background: var(--text);
  box-shadow: 0 10px 22px rgba(17, 24, 39, 0.12);
}

.ghost-button {
  color: var(--text);
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(225, 231, 239, 0.92);
}

.primary-button:hover,
.ghost-button:hover,
.download-link:not(.disabled):hover {
  transform: translateY(-1px);
}

.download-band {
  max-width: 720px;
  margin: 0 auto;
  padding: 18px 0 24px;
  text-align: center;
}

.section-heading p {
  color: var(--active-blue);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
  text-transform: uppercase;
}

.section-heading h2 {
  margin-top: 6px;
  font-size: 28px;
  line-height: 1.25;
}

.download-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin-top: 22px;
}

.download-card {
  min-height: 268px;
  padding: 24px;
  text-align: center;
  border: 1px solid rgba(225, 231, 239, 0.96);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 12px 30px rgba(36, 52, 71, 0.05);
}

.download-card.preferred {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(247, 251, 255, 0.78)),
    radial-gradient(circle at 92% 10%, rgba(252, 240, 192, 0.78), transparent 12rem);
}

.platform-topline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.platform-icon {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  color: var(--text);
  background: rgba(61, 220, 132, 0.13);
}

#iosCard .platform-icon {
  background: rgba(225, 231, 239, 0.72);
}

.platform-icon img {
  width: 23px;
  height: 23px;
  display: block;
  object-fit: contain;
}

.download-card h3 {
  margin-top: 22px;
  font-size: 24px;
  line-height: 1.25;
}

.version-text {
  min-height: 28px;
  margin-top: 10px;
  color: var(--body);
  font-size: 16px;
  line-height: 1.7;
}

.download-card .download-link {
  width: 100%;
  margin-top: 22px;
}

.download-link.disabled {
  pointer-events: none;
  color: var(--soft);
  background: rgba(225, 231, 239, 0.56);
  box-shadow: none;
}

.meta-text {
  margin-top: 12px;
  color: var(--soft);
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

.meta-text[hidden] {
  display: none;
}

.notes-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  max-width: 560px;
  margin: 0 auto;
  padding: 14px 0 6px;
  text-align: center;
}

.note-item {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 18px 0;
  border-top: 1px solid rgba(225, 231, 239, 0.88);
}

.note-item strong {
  font-size: 14px;
  line-height: 1.4;
}

.note-item span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

@media (max-width: 760px) {
  .page-shell {
    padding: 18px 18px 28px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 20px;
    min-height: auto;
    padding: 10px 0 18px;
  }

  h1 {
    font-size: clamp(36px, 10vw, 52px);
  }

  .hero-title-lockup {
    display: grid;
    justify-items: center;
    gap: 14px;
  }

  .hero-title-lockup img {
    width: 50px;
    height: 50px;
  }

  .hero-lede {
    font-size: 17px;
  }

  .download-grid,
  .notes-band {
    grid-template-columns: 1fr;
  }

  .download-card {
    min-height: 250px;
    border-radius: 24px;
  }
}
