.nf-download-page {
  --download-background: #220d36;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  background: var(--download-background);
}

.nf-download-page #content {
  display: grid;
  flex: 1;
}

.nf-download-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: min(48vw, 44rem);
  overflow: clip;
  background: radial-gradient(ellipse at 76% 67%, #49216d, #250d3a 53%, #1a082b 90%);
  color: #fffbff;
}

.nf-download-layout {
  position: relative;
  container-type: inline-size;
}

.nf-download-copy { width: 52%; padding-block: 32px 104px; }

.nf-download-copy h1 {
  margin: 0;
  font: 700 clamp(43px, 5.9cqw, 73px)/1.05 var(--serif);
  letter-spacing: -.045em;
}

.nf-download-copy h1 span { display: block; }

.nf-download-description {
  max-width: 650px;
  margin: 25px 0 clamp(24px, 3.9cqw, 48px);
  color: #d5bde6;
  font-size: clamp(18px, 2.5cqw, 31px);
  line-height: 1.24;
}

.nf-download-apk {
  display: inline-flex;
  align-items: center;
  min-height: 64px;
  padding: 14px clamp(22px, 3.5cqw, 44px);
  border-radius: 20px;
  background: var(--purple);
  color: white;
  font-size: clamp(17px, 1.94cqw, 24px);
  font-weight: 700;
  line-height: 1.2;
}

.nf-download-apk:hover { background: var(--purple-hover); color: white; }
.nf-download-apk:focus-visible { outline: 2px solid white; outline-offset: 4px; }

.nf-download-version {
  margin: 16px 0 0;
  color: #d5bde6;
  font-size: clamp(14px, 1.55cqw, 20px);
  line-height: 1.5;
}

.nf-download-art {
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  width: calc(100% + 8rem);
  transform: translate(-50%, -50%);
}

.nf-download-art img {
  width: 100%;
  height: auto;
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent),
              linear-gradient(transparent, #000 12%, #000 87%, transparent);
  mask-composite: intersect;
}

@media (max-width: 900px), (max-aspect-ratio: 4/5) {
  .nf-download-hero { align-items: stretch; background: var(--download-background); }
  .nf-download-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(clamp(300px, 105vw, 590px), 1fr);
  }
  .nf-download-copy { width: auto; max-width: 700px; padding-block: clamp(38px, 6vw, 66px) 0; }
  .nf-download-copy h1 { font-size: clamp(39px, 8vw, 68px); }
  .nf-download-description { max-width: 440px; margin-top: 16px; }
  .nf-download-apk { min-height: 52px; border-radius: 16px; }
  .nf-download-art {
    position: relative;
    top: auto;
    width: 100vw;
    min-height: 0;
    transform: translateX(-50%);
  }
  .nf-download-art img { height: 100%; object-fit: cover; object-position: right center; mask-image: none; }
  .nf-download-art::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(var(--download-background), transparent 23%);
  }
}
