:root {
  color: #15233b;
  background: #f4f7fb;
  font-family: Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  --ink: #15233b;
  --muted: #6f7d93;
  --line: #dfe6f0;
  --blue: #1769e8;
  --blue-deep: #12366f;
  --surface: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(18, 54, 111, 0.045) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(rgba(18, 54, 111, 0.045) 1px, transparent 1px) 0 0 / 56px 56px,
    #f4f7fb;
}

.download-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 48px 24px;
}

.product-panel {
  width: min(100%, 1060px);
  min-height: 680px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  grid-template-rows: auto 1fr auto;
  gap: 42px 76px;
  padding: 48px 52px 32px;
  overflow: hidden;
  border: 1px solid rgba(170, 185, 207, 0.7);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 30px 80px rgba(24, 50, 88, 0.12);
  position: relative;
}

.product-panel::after {
  content: "";
  position: absolute;
  right: -140px;
  top: -185px;
  width: 420px;
  height: 420px;
  border: 72px solid rgba(23, 105, 232, 0.055);
  border-radius: 50%;
  pointer-events: none;
}

.brand {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 720;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 10px;
  background: var(--blue-deep);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.brand-mark svg {
  width: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.intro {
  align-self: center;
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.13em;
}

h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(38px, 4.3vw, 58px);
  line-height: 1.12;
  letter-spacing: -0.055em;
}

.summary {
  max-width: 520px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.release-card {
  align-self: center;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(250, 252, 255, 0.94);
  box-shadow: 0 16px 42px rgba(24, 50, 88, 0.08);
  position: relative;
  z-index: 1;
}

.platform-row {
  display: flex;
  align-items: center;
  gap: 15px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.platform-row strong,
.platform-row div > span {
  display: block;
}

.platform-row strong {
  font-size: 17px;
}

.platform-row div > span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.windows-mark {
  width: 42px;
  height: 42px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  padding: 10px;
  border-radius: 12px;
  background: #eaf2ff;
}

.windows-mark i {
  display: block;
  background: var(--blue);
}

.release-details {
  margin: 24px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.release-details div {
  min-width: 0;
}

.release-details dt {
  color: var(--muted);
  font-size: 11px;
}

.release-details dd {
  margin: 7px 0 0;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  font-weight: 650;
}

.release-details .hash-row {
  grid-column: 1 / -1;
}

.hash-row dd {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.download-action {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #fff;
  border-radius: 11px;
  background: var(--blue);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.download-action:not(.is-disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(23, 105, 232, 0.24);
}

.download-action:focus-visible {
  outline: 3px solid rgba(23, 105, 232, 0.28);
  outline-offset: 3px;
}

.download-action svg {
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.download-action.is-disabled {
  color: #7f8ba0;
  background: #e4e9f1;
  cursor: not-allowed;
}

.portable-action {
  width: fit-content;
  display: block;
  margin: 13px auto 0;
  color: var(--blue);
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
}

.portable-action:not(.is-disabled):hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.portable-action:focus-visible {
  outline: 3px solid rgba(23, 105, 232, 0.22);
  outline-offset: 3px;
  border-radius: 4px;
}

.portable-action.is-disabled {
  color: #9ba5b5;
  cursor: not-allowed;
}

.release-status {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

footer {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  color: #8995a8;
  border-top: 1px solid var(--line);
  font-size: 11px;
}

@media (max-width: 820px) {
  .product-panel {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 42px;
    padding: 34px 28px 26px;
  }

  .intro {
    padding-top: 16px;
  }
}

@media (max-width: 520px) {
  .download-shell {
    padding: 16px;
  }

  .product-panel {
    padding: 26px 20px 22px;
    border-radius: 18px;
  }

  h1 {
    font-size: 36px;
  }

  .release-card {
    padding: 22px;
  }

  footer {
    flex-direction: column;
    gap: 8px;
  }
}

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