.download {
  padding-top: 112px;
  padding-bottom: 126px;
}

.download-heading {
  max-width: 760px;
}

.download-heading h2 {
  margin: 16px 0 20px;
}

.download-heading > p:last-child {
  max-width: 650px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.release-tabs {
  display: inline-flex;
  gap: 6px;
  margin: 27px 0 22px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #111a28;
}

.release-tab {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 10px 18px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: #9fb0c7;
  cursor: pointer;
  font-size: 13px;
  transition: background .25s, color .25s, box-shadow .25s;
}

.release-tab strong {
  color: inherit;
  font-size: 14px;
}

.release-tab.is-active {
  background: #233449;
  color: #fff;
  box-shadow: 0 7px 17px rgba(0, 0, 0, .16);
}

.release-tab-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6ef0c3;
  box-shadow: 0 0 12px rgba(110, 240, 195, .55);
}

.release-tab[data-release="beta"] .release-tab-dot {
  background: var(--orange);
  box-shadow: 0 0 12px rgba(255, 120, 61, .55);
}

.release-tab:focus-visible,
.platform-card a:focus-visible,
.release-archive summary:focus-visible,
.archive-card a:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.release-panel[hidden] {
  display: none;
}

.release-note {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  margin: 0 0 21px;
  padding: 16px 20px;
  border: 1px solid rgba(110, 240, 195, .19);
  border-radius: 16px;
  background: linear-gradient(90deg, rgba(110, 240, 195, .09), rgba(110, 240, 195, .015));
}

.release-note-icon {
  display: grid;
  flex: 0 0 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: rgba(110, 240, 195, .15);
  color: #7bffd2;
  font-weight: 800;
}

.release-note strong,
.release-note small {
  display: block;
}

.release-note strong {
  font-size: 13px;
}

.release-note small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.release-note-beta {
  border-color: rgba(255, 120, 61, .26);
  background: linear-gradient(90deg, rgba(255, 120, 61, .12), rgba(255, 120, 61, .015));
}

.release-note-beta .release-note-icon {
  background: rgba(255, 120, 61, .17);
  color: #ffad7e;
}

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

.platform-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 458px;
  border: 1px solid rgba(189, 222, 255, .14);
  border-radius: 24px;
  background: linear-gradient(152deg, #162536, #101923 62%, #121a26);
  transition: transform .26s, border-color .26s, box-shadow .26s;
}

.platform-card:hover {
  transform: translateY(-5px);
  border-color: rgba(105, 233, 244, .35);
  box-shadow: 0 22px 40px rgba(0, 0, 0, .21);
}

.platform-visual {
  position: relative;
  display: grid;
  height: 182px;
  overflow: hidden;
  place-items: center;
  background: radial-gradient(circle at 50% 65%, rgba(105, 233, 244, .14), transparent 52%), #17283a;
}

.platform-card-windows .platform-visual {
  background: radial-gradient(circle at 50% 65%, rgba(91, 196, 255, .2), transparent 55%), linear-gradient(125deg, #152b46, #101e34);
}

.platform-card-linux .platform-visual {
  background: radial-gradient(circle at 50% 65%, rgba(255, 171, 85, .2), transparent 55%), linear-gradient(125deg, #2a2836, #171e2d);
}

.platform-card-source .platform-visual {
  background: radial-gradient(circle at 50% 65%, rgba(105, 233, 244, .17), transparent 55%), linear-gradient(125deg, #14313d, #14232f);
}

.platform-visual::before,
.platform-visual::after {
  content: "";
  position: absolute;
  inset: auto -20% -82px;
  height: 150px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 50%;
  transform: rotate(-11deg);
}

.platform-visual::after {
  inset: auto -30% -102px;
  transform: rotate(14deg);
}

.platform-visual img {
  position: relative;
  z-index: 1;
  width: 250px;
  height: 190px;
  object-fit: contain;
  filter: drop-shadow(0 16px 22px rgba(0, 0, 0, .28));
  transition: transform .32s ease;
}

.platform-card:hover .platform-visual img {
  transform: translateY(-5px) scale(1.035);
}

.platform-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px 25px 22px;
}

.platform-kicker {
  color: var(--cyan);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.platform-card-linux .platform-kicker {
  color: #ffbd7c;
}

.platform-content h3 {
  margin: 4px 0 8px;
  font-size: 28px;
  letter-spacing: -.05em;
}

.platform-content p {
  min-height: 64px;
  margin: 0 0 20px;
  color: #a6b6ca;
  font-size: 13px;
  line-height: 1.55;
}

.platform-primary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  margin-top: auto;
  padding: 11px 15px;
  border-radius: 10px;
  background: #f3f9ff;
  color: #142236;
  font-size: 12px;
  font-weight: 850;
  transition: background .2s, transform .2s;
}

.platform-primary:hover {
  transform: translateY(-2px);
  background: #9bebf2;
}

.platform-alternatives {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 13px;
  min-height: 28px;
  margin-top: 13px;
}

.platform-alternatives a {
  color: #b1c3da;
  font-size: 11px;
  text-decoration: underline;
  text-decoration-color: rgba(177, 195, 218, .35);
  text-underline-offset: 3px;
}

.platform-alternatives a:hover {
  color: var(--cyan);
}

.release-archive {
  margin-top: 27px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #101a28;
}

.release-archive summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  cursor: pointer;
  list-style: none;
}

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

.release-archive summary strong,
.release-archive summary small {
  display: block;
}

.release-archive summary strong {
  font-size: 15px;
}

.release-archive summary small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.archive-count {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.archive-count span {
  display: inline-block;
  margin-left: 8px;
  font-size: 19px;
  transition: transform .2s;
}

.release-archive[open] .archive-count span {
  transform: rotate(180deg);
}

.archive-content {
  padding: 4px 24px 25px;
  border-top: 1px solid var(--line);
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding-top: 20px;
}

.archive-card {
  padding: 18px;
  border: 1px solid rgba(189, 222, 255, .11);
  border-radius: 13px;
  background: #152131;
}

.archive-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 13px;
}

.archive-card-head h3 {
  margin: 0;
  font-size: 16px;
  letter-spacing: -.025em;
}

.archive-badge {
  padding: 4px 8px;
  border-radius: 30px;
  background: rgba(105, 233, 244, .1);
  color: var(--cyan);
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.archive-badge-beta {
  background: rgba(255, 120, 61, .12);
  color: #ffad7e;
}

.archive-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.archive-links a {
  padding: 7px 10px;
  border: 1px solid rgba(189, 222, 255, .15);
  border-radius: 8px;
  color: #cfdef0;
  font-size: 11px;
  transition: background .2s, border-color .2s;
}

.archive-links a:hover {
  border-color: rgba(105, 233, 244, .45);
  background: rgba(105, 233, 244, .08);
}

.archive-footnote,
.download-disclaimer {
  color: #8799b0;
  font-size: 12px;
  line-height: 1.6;
}

.archive-footnote {
  margin: 22px 0 0;
}

.archive-footnote a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.download-disclaimer {
  margin: 18px 0 0;
}

@media (max-width: 980px) {
  .platform-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .platform-card-source {
    grid-column: 1 / -1;
    min-height: 0;
  }
}

@media (max-width: 690px) {
  .download {
    padding-top: 76px;
    padding-bottom: 82px;
  }

  .download-heading > p:last-child {
    font-size: 15px;
  }

  .release-tabs {
    display: flex;
    width: 100%;
  }

  .release-tab {
    flex: 1;
    justify-content: center;
    padding: 9px;
    font-size: 11px;
  }

  .release-tab strong {
    font-size: 12px;
  }

  .platform-grid,
  .archive-grid {
    grid-template-columns: 1fr;
  }

  .platform-card-source {
    grid-column: auto;
  }

  .platform-card {
    min-height: 0;
  }

  .platform-content p {
    min-height: 0;
  }

  .release-archive summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .platform-card,
  .platform-visual img,
  .platform-primary,
  .release-tab,
  .archive-count span {
    transition: none;
  }
}
