:root {
  color-scheme: light;
  --canvas: #f7f8fc;
  --paper: #fff;
  --ink: #182238;
  --muted: #59667c;
  --line: #e1e6ef;
  --accent: #294acb;
  --accent-hover: #1e3baa;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei UI", "Noto Sans SC", system-ui, sans-serif;
  color: var(--ink);
  background: var(--canvas);
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
:is(a, summary):focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.masthead {
  max-width: 1140px;
  margin: 0 auto;
  padding: 15px 0;
  width: calc(100% - 96px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  font-size: 19px;
  font-weight: 700;
  text-decoration: none;
}

.brand img { display: block; flex: none; }

.download-layout {
  max-width: 1140px;
  width: calc(100% - 96px);
  margin: clamp(44px, 7.2vh, 90px) auto 60px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(38px, 6vw, 84px);
}

.release-content { min-width: 0; }
.heading { margin-bottom: clamp(25px, 4vw, 37px); }
.heading h1 {
  margin: 0;
  font-size: clamp(38px, 5vw, 68px);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -.022em;
}

.heading h1 span { color: var(--accent); }
.heading p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.6;
}

.platforms {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.platform {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--paper);
  box-shadow: 0 1px 2px #243a6509;
  transition: border-color 150ms ease-out, box-shadow 170ms ease-out;
}

.platform:focus-within, .platform:hover {
  border-color: #c9d3ed;
  box-shadow: 0 4px 16px #202f6420;
}

.platform-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 11px;
}

.platform-icon.windows { color: #3a57ca; background: #edf1ff; }
.platform-icon.android { color: #28745d; background: #e8f5ee; }

.windows i {
  width: 8px;
  height: 8px;
  background: currentColor;
  box-shadow: 10px 0 currentColor, 0 10px currentColor, 10px 10px currentColor;
  transform: translate(-5px, -5px);
}

.android i {
  position: relative;
  width: 22px;
  height: 12px;
  border-radius: 12px 12px 2px 2px;
  background: radial-gradient(circle at 7px 7px, #fff 1px, transparent 1.5px),
              radial-gradient(circle at 15px 7px, #fff 1px, transparent 1.5px),
              currentColor;
}

.android i::before, .android i::after {
  content: "";
  position: absolute;
  top: -3px;
  width: 1.5px;
  height: 6px;
  border-radius: 1px;
  background: currentColor;
}

.android i::before { left: 5px; transform: rotate(-29deg); }
.android i::after { right: 5px; transform: rotate(29deg); }

.platform h2 { margin: 0; font-size: 20px; line-height: 1.2; }
.platform p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}

.download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 96px;
  min-height: 44px;
  padding: 0 15px;
  border-radius: 9px;
  color: white;
  background: var(--accent);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  transition: background-color 140ms ease-out, transform 120ms ease-out;
}

.download:hover { background: var(--accent-hover); }
.download:active { transform: translateY(1px); }
.download span { font-size: 16px; line-height: 1; transition: transform 150ms ease-out; }
.download:hover span { transform: translateY(2px); }

.checksums { margin: 9px 0 0 2px; color: var(--muted); font-size: 13px; }
.checksums summary { width: fit-content; padding: 9px 0; cursor: pointer; }
.checksums summary:hover, .checksums a:hover { color: var(--accent); }
.checksums div { display: flex; flex-wrap: wrap; gap: 6px 15px; margin: 0 0 0 14px; }
.checksums a { display: inline-flex; align-items: center; min-height: 36px; text-underline-offset: 3px; }

.brand-visual {
  position: relative;
  isolation: isolate;
  aspect-ratio: 1.12;
  overflow: hidden;
  border: 1px solid #445cc6;
  border-radius: 25px;
  background: radial-gradient(ellipse at 67% 73%, #4764ec 0%, transparent 64%),
              radial-gradient(ellipse at 12% 15%, #2a469e 0%, transparent 49%),
              linear-gradient(143deg, #142252 0%, #1e347e 48%, #2d46b5 100%);
  box-shadow: 0 14px 38px #26387625;
}

.brand-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, #fff1 0 1px, transparent 1px 27px),
              repeating-linear-gradient(0deg, #fff1 0 1px, transparent 1px 27px);
  mask-image: radial-gradient(ellipse at 33% 41%, #000 5%, transparent 78%);
}

.visual-contours {
  position: absolute;
  width: 95%;
  aspect-ratio: 1;
  bottom: -35%;
  right: -24%;
  transform: rotate(-31deg);
  border: 1px solid #a8baff64;
  border-radius: 24%;
}

.visual-contours::before, .visual-contours::after {
  content: "";
  position: absolute;
  border: inherit;
  border-radius: inherit;
}

.visual-contours::before { inset: 8%; }
.visual-contours::after { inset: 16%; }

.icon-placement {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.icon-stack {
  position: relative;
  width: 43%;
  max-width: 214px;
  aspect-ratio: 1;
  transform: translate(-9px, -10px) rotate(-9deg);
  transition: transform 480ms cubic-bezier(.22,.66,.22,1);
}

.icon-plate { position: absolute; inset: 0; border-radius: 26%; }
.icon-back {
  transform: translate(18%, 18%) rotate(-13deg);
  background: #93aaff46;
  border: 1px solid #b5c4ff7d;
}

.icon-middle {
  transform: translate(8%, 9%) rotate(-7deg);
  border: 1px solid #a6bcff;
  background: linear-gradient(145deg, #b8c7ff, #6a8aff 90%);
}

.icon-front {
  display: grid;
  place-items: center;
  background: linear-gradient(141deg, #fff 16%, #f2f5ff 59%, #d7e1ff 100%);
  border: 1px solid white;
  box-shadow: 0 16px 38px #0f1f6557, inset 0 0 14px #fff9;
}

.icon-front img { display: block; width: 82%; height: auto; }

@media (hover: hover) {
  .brand-visual:hover .icon-stack { transform: translate(-9px, -16px) rotate(-6deg); }
}

@media (prefers-reduced-motion: no-preference) {
  .release-content { animation: content-in 480ms ease-out both; }
  .icon-placement { animation: mark-in 780ms cubic-bezier(.21,.68,.24,1) both; }
}

@keyframes content-in {
  from { opacity: .75; transform: translateY(7px); }
  to { opacity: 1; transform: none; }
}

@keyframes mark-in {
  from { opacity: .66; transform: translateY(13px) scale(.98); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 960px) {
  .masthead, .download-layout { width: calc(100% - 64px); }
  .download-layout { grid-template-columns: minmax(0, 1fr) minmax(250px, 1fr); gap: 28px; }
}

@media (max-width: 710px) {
  .masthead, .download-layout { width: calc(100% - 36px); }
  .masthead { padding: 10px 0; }
  .download-layout {
    max-width: 480px;
    margin: 30px auto 35px;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .heading { margin-bottom: 20px; }
  .heading p { margin-top: 10px; }
  .platform { gap: 10px; padding: 12px; border-radius: 13px; }
  .platform-icon { width: 39px; height: 39px; }
  .platform h2 { font-size: 18px; }
  .platform p { font-size: 12px; }
  .download { min-width: 76px; gap: 6px; padding: 0 10px; }
  .checksums summary, .checksums a { min-height: 44px; }
  .checksums { margin-top: 4px; }
  .brand-visual { aspect-ratio: 1.85; border-radius: 17px; }
  .icon-stack { width: 30%; max-width: 136px; }
}

@media (prefers-reduced-motion: reduce) {
  .platform, .download, .download span, .icon-stack { transition: none; }
  .download:active, .download:hover span { transform: none; }
  .brand-visual:hover .icon-stack { transform: translate(-9px, -10px) rotate(-9deg); }
}
