:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background: #070607;
  color: #fff4f5;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 14% 0%, rgb(190 16 39 / 30%), transparent 34rem),
    radial-gradient(circle at 92% 30%, rgb(105 8 25 / 20%), transparent 30rem),
    linear-gradient(145deg, #070607, #16070a 55%, #090709);
}

main {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 56px 0 44px;
}

.hero {
  display: grid;
  grid-template-columns: 164px 1fr;
  gap: 34px;
  align-items: center;
  padding: 34px;
  border: 1px solid #651b29;
  border-radius: 26px;
  background: rgb(20 8 12 / 90%);
  box-shadow: 0 22px 80px rgb(0 0 0 / 46%);
}

.icon {
  display: block;
  width: 164px;
  height: 164px;
  border-radius: 34px;
  box-shadow: 0 16px 54px rgb(212 25 47 / 30%);
}

.eyebrow,
.platform-label {
  margin: 0 0 8px;
  color: #ff4f64;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.16em;
}

h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 70px);
  line-height: 0.98;
}

.lead {
  max-width: 790px;
  margin: 18px 0 0;
  color: #e7cdd2;
  font-size: 18px;
  line-height: 1.55;
}

.release-line {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 22px;
  color: #ba929a;
  font-size: 13px;
  font-weight: 750;
}

.release-badge {
  padding: 7px 11px;
  border: 1px solid #71303a;
  border-radius: 999px;
  background: #281017;
  color: #ffd8dd;
}

.downloads {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.download-card,
.steps article,
.facts,
.notice {
  border: 1px solid #421820;
  background: rgb(20 9 12 / 86%);
}

.download-card {
  padding: 26px;
  border-radius: 20px;
}

.platform-head {
  display: flex;
  gap: 15px;
  align-items: center;
}

.platform-status {
  margin-left: auto;
  padding: 7px 10px;
  border: 1px solid #a43a4b;
  border-radius: 999px;
  background: #3b111a;
  color: #ffdce1;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.platform-mark {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #9b2639;
  border-radius: 14px;
  background: linear-gradient(145deg, #d21d36, #65101d);
  box-shadow: 0 9px 28px rgb(213 26 53 / 20%);
  font-size: 21px;
  font-weight: 900;
}

.platform-label {
  margin-bottom: 2px;
  font-size: 11px;
}

h2 {
  margin: 0;
  font-size: 22px;
}

.devices {
  margin: 18px 0;
  color: #d7b8be;
  line-height: 1.45;
}

.install-hint {
  min-height: 72px;
  margin: -4px 0 18px;
  color: #cbaab0;
  font-size: 14px;
  line-height: 1.5;
}

.download-button {
  display: flex;
  min-height: 60px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 18px;
  border-radius: 13px;
  background: linear-gradient(135deg, #db2039, #a41028);
  box-shadow: 0 10px 30px rgb(214 31 53 / 24%);
  color: white;
  font-weight: 850;
  text-decoration: none;
}

.download-button + .download-button {
  margin-top: 10px;
}

.download-button-secondary {
  border: 1px solid #8e2637;
  background: linear-gradient(135deg, #68101f, #3d0b14);
  box-shadow: none;
}

.download-button-secondary:hover,
.download-button-secondary:focus-visible {
  background: linear-gradient(135deg, #8f1529, #59101e);
}

.download-button:hover,
.download-button:focus-visible {
  background: linear-gradient(135deg, #ef2a47, #bd1530);
  outline: 2px solid #ff8796;
  outline-offset: 2px;
}

.download-button small {
  color: #ffd2d8;
  font-size: 12px;
  white-space: nowrap;
}

details {
  margin-top: 15px;
  color: #bd969d;
  font-size: 12px;
}

.checksums {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

summary {
  cursor: pointer;
  font-weight: 750;
}

details code {
  display: block;
  margin-top: 9px;
  overflow-wrap: anywhere;
  color: #ffbdc5;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 18px;
}

.steps article {
  min-height: 184px;
  padding: 24px;
  border-radius: 18px;
}

.step {
  display: grid;
  width: 32px;
  height: 32px;
  margin-bottom: 17px;
  place-items: center;
  border-radius: 50%;
  background: #b7182d;
  font-weight: 900;
}

.steps p {
  margin: 9px 0 0;
  color: #d8bcc1;
  line-height: 1.55;
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 18px;
  overflow: hidden;
  border-radius: 18px;
}

.facts div {
  min-width: 0;
  padding: 18px;
  background: #150a0d;
}

.facts span {
  display: block;
  margin-bottom: 7px;
  color: #b98f96;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.facts code {
  display: block;
  overflow-wrap: anywhere;
  color: #ffbdc5;
  font-size: 12px;
}

.notice {
  margin: 18px 0 0;
  padding: 17px 20px;
  border-radius: 14px;
  color: #bd9da2;
  font-size: 13px;
  line-height: 1.5;
}

@media (max-width: 800px) {
  main {
    padding-top: 22px;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .icon {
    width: 112px;
    height: 112px;
    border-radius: 24px;
  }

  .downloads,
  .steps,
  .facts {
    grid-template-columns: 1fr;
  }

  .devices {
    min-height: auto;
  }

  .install-hint {
    min-height: auto;
  }
}

@media (max-width: 520px) {
  main {
    width: min(100% - 22px, 1120px);
  }

  .hero,
  .download-card,
  .steps article {
    padding: 20px;
  }

  .download-button {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
    justify-content: center;
  }

  .checksums {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .platform-head {
    flex-wrap: wrap;
  }

  .platform-status {
    width: max-content;
    margin-left: 63px;
  }
}
