:root {
  --download-brand: #5f9df6;
  --download-brand-deep: #327ae5;
  --download-ink: #17243a;
  --download-muted: #728096;
  --download-line: #e7edf5;
  --download-page: #f2f6fb;
  --download-safe-top: env(safe-area-inset-top, 0px);
  --download-safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
}

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

html {
  background: #dfeaf8;
  -webkit-tap-highlight-color: transparent;
}

body {
  color: var(--download-ink);
  background: var(--download-page);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.download-shell {
  width: min(100%, 704px);
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background: var(--download-page);
  box-shadow: 0 0 40px rgba(30, 52, 76, .08);
}

.download-header {
  position: relative;
  z-index: 10;
  height: calc(52px + var(--download-safe-top));
  padding: var(--download-safe-top) 14px 0;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  color: #fff;
  background: linear-gradient(105deg, #6aa8f8, #4d8fea);
}

.download-header__back {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, .14);
}

.download-header__back svg {
  width: 21px;
  height: 21px;
}

.download-header__brand {
  min-width: 0;
  overflow: hidden;
  font-size: 18px;
  font-style: italic;
  font-weight: 700;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.download-header__tag {
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 999px;
  color: rgba(255, 255, 255, .92);
  font-size: 10px;
  font-weight: 650;
  white-space: nowrap;
}

.download-hero {
  position: relative;
  min-height: 390px;
  padding: 44px 24px 52px;
  overflow: hidden;
  color: #fff;
  text-align: center;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, .2) 0 2px, transparent 3px),
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, .18) 0 3px, transparent 4px),
    linear-gradient(145deg, #64a6f8 0%, #347de8 58%, #286bd7 100%);
}

.download-hero::before,
.download-hero::after {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 50%;
  content: "";
}

.download-hero::before {
  top: -155px;
  right: -145px;
  width: 360px;
  height: 360px;
}

.download-hero::after {
  bottom: -190px;
  left: -145px;
  width: 380px;
  height: 380px;
}

.download-hero__glow {
  position: absolute;
  top: 34px;
  left: 50%;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  filter: blur(24px);
  transform: translateX(-50%);
}

.download-app-icon {
  position: relative;
  z-index: 1;
  width: 84px;
  height: 84px;
  margin: 0 auto 24px;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, .48);
  border-radius: 24px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 18px 42px rgba(9, 59, 137, .32);
  transform: rotate(-3deg);
}

.download-app-icon__field {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
  overflow: hidden;
  border-radius: 17px;
  background: linear-gradient(145deg, #7bc7ff, #4287ef);
}

.download-app-icon__field::before {
  position: absolute;
  inset: 9px;
  border: 2px solid rgba(255, 255, 255, .7);
  border-radius: 4px;
  content: "";
}

.download-app-icon__line {
  position: absolute;
  top: 9px;
  bottom: 9px;
  left: 50%;
  border-left: 2px solid rgba(255, 255, 255, .7);
}

.download-app-icon__ball {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #ffcf52;
  box-shadow: 0 3px 8px rgba(32, 89, 173, .24);
  transform: translate(-50%, -50%);
}

.download-hero__eyebrow,
.download-section-heading p {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, .78);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.download-hero h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: clamp(27px, 7.5vw, 38px);
  line-height: 1.23;
  letter-spacing: -.035em;
}

.download-hero__description {
  position: relative;
  z-index: 1;
  max-width: 480px;
  margin: 15px auto 0;
  color: rgba(255, 255, 255, .8);
  font-size: 13px;
  line-height: 1.8;
}

.download-hero__badges {
  position: relative;
  z-index: 1;
  margin-top: 22px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.download-hero__badges span {
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  font-size: 11px;
  font-weight: 650;
  backdrop-filter: blur(8px);
}

.download-actions,
.download-features {
  margin: -20px 14px 0;
  padding: 20px;
  border: 1px solid rgba(224, 233, 244, .8);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(56, 82, 116, .08);
}

.download-actions {
  position: relative;
  z-index: 3;
}

.download-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.download-section-heading p {
  margin-bottom: 5px;
  color: #8b98aa;
  font-size: 9px;
}

.download-section-heading h2 {
  margin: 0;
  color: var(--download-ink);
  font-size: 20px;
  line-height: 1.35;
}

.download-buttons {
  margin-top: 18px;
  display: block;
}

.download-button {
  width: 100%;
  min-width: 0;
  min-height: 82px;
  padding: 14px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  align-items: center;
  column-gap: 11px;
  border: 1px solid #dce7f5;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(135deg, #5d9df2, #3f82e7);
  box-shadow: 0 8px 18px rgba(59, 125, 222, .16);
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}

.download-button:not(.is-disabled):hover,
.download-button:not(.is-disabled):focus-visible {
  outline: none;
  box-shadow: 0 12px 24px rgba(59, 125, 222, .24);
  transform: translateY(-2px);
}

.download-button.is-disabled {
  color: #617087;
  background: #f5f7fa;
  box-shadow: none;
  cursor: not-allowed;
}

.download-button__icon {
  grid-row: 1 / 3;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: rgba(255, 255, 255, .18);
}

.is-disabled .download-button__icon {
  color: #568ad2;
  background: #e7f0fb;
}

.download-button__icon svg {
  width: 26px;
  height: 26px;
}

.download-button__copy {
  min-width: 0;
  align-self: end;
}

.download-button__copy small,
.download-button__copy strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.download-button__copy small {
  margin-bottom: 2px;
  color: rgba(255, 255, 255, .7);
  font-size: 9px;
}

.is-disabled .download-button__copy small {
  color: #97a3b4;
}

.download-button__copy strong {
  font-size: 14px;
}

.download-button__state {
  align-self: start;
  color: rgba(255, 255, 255, .72);
  font-size: 9px;
  font-weight: 650;
}

.is-disabled .download-button__state {
  color: #6f9bd8;
}

.download-features {
  margin-top: 14px;
}

.download-feature-grid {
  margin-top: 17px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.download-feature-card {
  min-width: 0;
  padding: 15px 12px;
  border: 1px solid #edf1f6;
  border-radius: 14px;
  background: #fafbfd;
}

.download-feature-card__icon {
  width: 35px;
  height: 35px;
  margin-bottom: 12px;
  display: grid;
  place-items: center;
  border-radius: 11px;
}

.download-feature-card__icon svg {
  width: 21px;
  height: 21px;
}

.download-feature-card__icon.is-live {
  color: #e75f6b;
  background: #fff0f1;
}

.download-feature-card__icon.is-calendar {
  color: #5289da;
  background: #eaf3ff;
}

.download-feature-card__icon.is-sports {
  color: #53a06e;
  background: #eaf8ef;
}

.download-feature-card h3 {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
}

.download-feature-card p {
  margin: 6px 0 0;
  color: var(--download-muted);
  font-size: 10px;
  line-height: 1.65;
}

.download-footer {
  padding: 26px 20px calc(28px + var(--download-safe-bottom));
  color: #8a96a7;
  text-align: center;
}

.download-footer a {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: #4d88da;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.download-footer a svg {
  width: 16px;
  height: 16px;
}

.download-footer p {
  margin: 10px 0 0;
  font-size: 9px;
  line-height: 1.6;
}

@media (max-width: 520px) {
  .download-feature-grid {
    grid-template-columns: 1fr;
  }

  .download-feature-card {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    column-gap: 11px;
  }

  .download-feature-card__icon {
    grid-row: 1 / 3;
    margin-bottom: 0;
  }

  .download-feature-card p {
    margin-top: 3px;
  }
}

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