:root {
  --download-gold: #e8c36a;
  --download-gold-strong: #f2d98e;
  --download-air: #9bb2d9;
  --download-warn: #e59a55;
  --download-panel: rgba(18, 20, 30, .82);
}

.download-main {
  overflow: clip;
  background:
    radial-gradient(circle at 78% 12%, rgba(95, 119, 164, .10), transparent 31rem),
    var(--bg-0);
}

.download-shell {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

.download-hero {
  position: relative;
  isolation: isolate;
  min-height: 660px;
  padding: calc(var(--header) + 76px) 0 72px;
  border-bottom: 1px solid var(--border);
}

.download-atmosphere {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(155, 178, 217, .16) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, #000, transparent 88%);
}

.download-orbit {
  position: absolute;
  display: block;
  border: 1px solid rgba(155, 178, 217, .12);
  border-radius: 50%;
}

.download-orbit-one {
  width: min(58vw, 760px);
  aspect-ratio: 1;
  top: 20px;
  right: -16vw;
  box-shadow: inset 0 0 110px rgba(95, 119, 164, .05);
}

.download-orbit-two {
  width: 330px;
  aspect-ratio: 1;
  left: -210px;
  bottom: -150px;
}

.download-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr);
  gap: clamp(44px, 7vw, 92px);
  align-items: center;
}

.download-intro {
  max-width: 650px;
}

.download-kicker,
.section-eyebrow {
  margin: 0;
  color: var(--download-air);
  font-size: .76rem;
  font-weight: 760;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.download-kicker {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  padding: 7px 11px;
  border: 1px solid rgba(155, 178, 217, .2);
  border-radius: 999px;
  background: rgba(14, 17, 27, .62);
}

.download-kicker-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--download-gold);
  box-shadow: 0 0 13px rgba(232, 195, 106, .6);
}

.download-intro h1 {
  max-width: 620px;
  margin: 24px 0 20px;
  color: var(--text-1);
  font-size: clamp(3.2rem, 6vw, 5.7rem);
  font-weight: 740;
  letter-spacing: -.065em;
  line-height: .95;
}

.download-intro h1 em {
  display: block;
  color: var(--download-gold);
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
}

.download-lead {
  max-width: 610px;
  margin: 0;
  color: var(--text-2);
  font-size: clamp(1rem, 1.35vw, 1.17rem);
  line-height: 1.7;
}

.download-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 22px;
  margin: 29px 0 0;
  padding: 0;
  color: var(--text-3);
  font-size: .86rem;
  list-style: none;
}

.download-highlights li {
  position: relative;
  padding-left: 14px;
}

.download-highlights li::before {
  position: absolute;
  top: .52em;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--download-air);
  content: '';
}

.setup-card {
  position: relative;
  display: grid;
  gap: 21px;
  min-width: 0;
  padding: 28px;
  overflow: hidden;
  border: 1px solid rgba(232, 195, 106, .27);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(232, 195, 106, .07), transparent 48%),
    var(--download-panel);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .25);
}

.setup-card::after {
  position: absolute;
  width: 190px;
  height: 190px;
  top: -115px;
  right: -85px;
  border-radius: 50%;
  background: rgba(232, 195, 106, .08);
  filter: blur(18px);
  content: '';
  pointer-events: none;
}

.setup-card-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.setup-badge {
  padding: 5px 8px;
  border: 1px solid rgba(232, 195, 106, .27);
  border-radius: 6px;
  color: var(--download-gold-strong);
  background: rgba(232, 195, 106, .08);
  font-size: .67rem;
  font-weight: 780;
  letter-spacing: .1em;
  line-height: 1;
  text-transform: uppercase;
}

.setup-status {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  color: var(--text-3);
  font-size: .76rem;
}

.setup-status > span:first-child {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.setup-status[data-status='available'] { color: #8dd4ad; }
.setup-status[data-status='unavailable'],
.setup-status[data-status='error'] { color: #c6cbd5; }

.setup-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(155, 178, 217, .2);
  border-radius: 14px;
  color: var(--download-air);
  background: rgba(155, 178, 217, .06);
}

.setup-icon svg { width: 24px; height: 24px; }

.setup-platform {
  margin: 0 0 6px;
  color: var(--download-air);
  font-size: .74rem;
  font-weight: 740;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.setup-card h2 {
  margin: 0;
  color: var(--text-1);
  font-size: clamp(1.65rem, 2.5vw, 2.15rem);
  letter-spacing: -.035em;
}

.setup-description {
  margin: 9px 0 0;
  color: var(--text-2);
  font-size: .94rem;
  line-height: 1.58;
}

.setup-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--border);
}

.setup-facts div {
  min-width: 0;
  padding: 11px;
  background: rgba(11, 13, 21, .92);
}

.setup-facts dt {
  color: var(--text-3);
  font-size: .66rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.setup-facts dd {
  margin: 4px 0 0;
  color: var(--text-1);
  font-size: .79rem;
  font-weight: 650;
  overflow-wrap: anywhere;
  white-space: normal;
}

.setup-button {
  display: inline-flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--download-gold);
  border-radius: 11px;
  color: #19150b;
  background: linear-gradient(135deg, var(--download-gold-strong), var(--download-gold));
  box-shadow: 0 9px 26px rgba(232, 195, 106, .14);
  font: inherit;
  font-size: .9rem;
  font-weight: 780;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.setup-button:visited,
.setup-button:hover {
  color: #19150b;
}

.tier-rich .setup-button:not([disabled]):hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow: 0 13px 32px rgba(232, 195, 106, .22);
}

.setup-button[disabled] {
  cursor: not-allowed;
  border-color: var(--border);
  color: var(--text-3);
  background: rgba(155, 178, 217, .05);
  box-shadow: none;
}

.setup-footnote {
  margin: -8px 0 0;
  color: var(--text-3);
  font-size: .76rem;
  line-height: 1.5;
}

.trust-strip {
  border-bottom: 1px solid var(--border);
  background: rgba(229, 154, 85, .045);
}

.trust-strip-inner {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding-block: 22px;
}

.trust-strip svg {
  width: 25px;
  color: var(--download-warn);
}

.trust-strip h2 {
  margin: 0 0 3px;
  color: #f0ba87;
  font-size: .88rem;
  letter-spacing: -.01em;
}

.trust-strip p {
  margin: 0;
  color: var(--text-2);
  font-size: .82rem;
  line-height: 1.55;
}

.other-downloads {
  padding: 86px 0 96px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, .75fr) minmax(280px, .65fr);
  gap: 32px;
  align-items: end;
  margin-bottom: 28px;
}

.section-heading h2,
.download-help h2 {
  margin: 8px 0 0;
  color: var(--text-1);
  font-size: clamp(2rem, 4vw, 3.1rem);
  letter-spacing: -.045em;
}

.section-heading > p,
.download-help p {
  margin: 0;
  color: var(--text-2);
  font-size: .94rem;
  line-height: 1.65;
}

.portable-list {
  display: grid;
  gap: 10px;
}

.portable-item {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(18, 20, 30, .62);
  transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}

.tier-rich .portable-item:hover {
  border-color: rgba(155, 178, 217, .27);
  background: rgba(22, 25, 37, .78);
  transform: translateY(-1px);
}

.portable-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) minmax(84px, auto) minmax(112px, auto);
  gap: 16px;
  min-height: 74px;
  align-items: center;
  padding: 13px 16px;
}

.platform-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(155, 178, 217, .17);
  border-radius: 10px;
  color: var(--download-air);
  background: rgba(155, 178, 217, .05);
  font-size: .68rem;
  font-weight: 780;
  letter-spacing: .03em;
}

.portable-name {
  min-width: 0;
}

.portable-name strong {
  display: block;
  overflow: hidden;
  color: var(--text-1);
  font-size: .9rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portable-name span {
  display: block;
  margin-top: 3px;
  color: var(--text-3);
  font-size: .75rem;
}

.portable-size {
  color: var(--text-2);
  font-size: .8rem;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.portable-action,
.portable-unavailable {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid rgba(155, 178, 217, .22);
  border-radius: 9px;
  color: var(--text-1);
  background: rgba(155, 178, 217, .055);
  font-size: .78rem;
  font-weight: 680;
  text-decoration: none;
  transition: border-color .18s ease, background-color .18s ease;
}

.portable-action:hover {
  border-color: rgba(155, 178, 217, .45);
  background: rgba(155, 178, 217, .1);
}

.portable-unavailable {
  border-color: var(--border);
  color: var(--text-3);
  background: transparent;
}

.portable-details {
  border-top: 1px solid var(--border);
}

.portable-details summary {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  padding: 0 16px 0 72px;
  color: var(--download-air);
  cursor: pointer;
  font-size: .76rem;
  font-weight: 650;
  list-style: none;
}

.portable-details summary::-webkit-details-marker { display: none; }

.portable-details summary::before {
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  content: '';
  transform: rotate(-45deg);
  transition: transform .16s ease;
}

.portable-details[open] summary::before { transform: rotate(45deg); }

.portable-detail-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 19px 26px;
  padding: 4px 16px 20px 72px;
}

.portable-detail-body section:last-child { grid-column: 1 / -1; }

.portable-detail-body h3 {
  margin: 0 0 5px;
  color: var(--text-3);
  font-size: .65rem;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.portable-detail-body p {
  margin: 0;
  color: var(--text-2);
  font-size: .8rem;
  line-height: 1.55;
}

.checksum-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
}

.checksum-line code {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #c9d4e7;
  font-size: .7rem;
}

.copy-checksum {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text-2);
  background: rgba(155, 178, 217, .04);
  font: inherit;
  font-size: .7rem;
  cursor: pointer;
}

.copy-checksum[data-copied='true'] {
  border-color: rgba(141, 212, 173, .34);
  color: #8dd4ad;
}

.source-note {
  margin: 22px 0 0;
  color: var(--text-3);
  font-size: .77rem;
  line-height: 1.6;
}

.source-note strong { color: var(--text-2); }

.portable-skeleton {
  height: 75px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(155, 178, 217, .03), rgba(155, 178, 217, .08), rgba(155, 178, 217, .03));
  background-size: 220% 100%;
  animation: download-shimmer 1.35s linear infinite;
}

@keyframes download-shimmer {
  to { background-position: -220% 0; }
}

.download-error {
  display: flex;
  gap: 22px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(229, 154, 85, .22);
  border-radius: 12px;
  background: rgba(229, 154, 85, .05);
}

.download-error[hidden] { display: none; }
.download-error strong { color: #f0ba87; font-size: .84rem; }
.download-error p { margin: 3px 0 0; color: var(--text-2); font-size: .78rem; }

.retry-button {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid rgba(229, 154, 85, .27);
  border-radius: 8px;
  color: #f0ba87;
  background: transparent;
  font: inherit;
  font-size: .74rem;
  font-weight: 680;
  cursor: pointer;
}

.download-help {
  padding: 60px 0 76px;
  border-top: 1px solid var(--border);
  background: rgba(155, 178, 217, .025);
}

.download-help-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px;
  align-items: center;
}

.download-help p:not(.section-eyebrow) { max-width: 650px; margin-top: 13px; }

.help-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.help-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 15px;
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--text-1);
  background: rgba(155, 178, 217, .035);
  font-size: .8rem;
  font-weight: 680;
  text-decoration: none;
}

.footer-locale {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--text-3);
  font-size: .74rem;
}

.setup-button:focus-visible,
.portable-action:focus-visible,
.portable-details summary:focus-visible,
.copy-checksum:focus-visible,
.retry-button:focus-visible,
.help-link:focus-visible {
  outline: 3px solid rgba(155, 178, 217, .78);
  outline-offset: 3px;
}

@media (max-width: 860px) {
  .download-hero { min-height: 0; }
  .download-hero-grid { grid-template-columns: 1fr; }
  .download-intro { max-width: 740px; }
  .setup-card { max-width: 620px; }
  .section-heading { grid-template-columns: 1fr; gap: 14px; }
  .download-help-inner { grid-template-columns: 1fr; gap: 26px; }
}

@media (max-width: 620px) {
  .download-shell { width: min(100% - 28px, 1120px); }
  .download-hero { padding: calc(var(--header) + 45px) 0 46px; }
  .download-intro h1 { font-size: clamp(3rem, 17vw, 4.4rem); }
  .download-highlights { display: grid; gap: 8px; }
  .setup-card { gap: 18px; padding: 20px; border-radius: 17px; }
  .setup-facts { grid-template-columns: 1fr 1fr; }
  .setup-facts div:first-child { grid-column: 1 / -1; }
  .other-downloads { padding: 63px 0 70px; }
  .portable-row {
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 12px;
    min-height: 82px;
    padding: 12px;
  }
  .portable-size {
    grid-column: 2;
    grid-row: 2;
    text-align: left;
  }
  .portable-row > :last-child {
    grid-column: 3;
    grid-row: 1 / span 2;
  }
  .portable-details summary { padding-left: 62px; }
  .portable-detail-body { grid-template-columns: 1fr; padding: 4px 12px 18px 62px; }
  .portable-detail-body section:last-child { grid-column: auto; }
  .checksum-line { grid-template-columns: 1fr; }
  .checksum-line code { font-size: .66rem; }
  .copy-checksum { justify-self: start; }
  .download-error { align-items: flex-start; flex-direction: column; }
  .help-actions { display: grid; }
  .help-link { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .setup-button,
  .portable-item,
  .portable-action,
  .portable-details summary::before {
    transition: none !important;
  }
  .tier-rich .setup-button:not([disabled]):hover,
  .tier-rich .portable-item:hover {
    transform: none;
  }
  .portable-skeleton { animation: none; }
}
