.download-shell {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    radial-gradient(70% 55% at 52% 24%, #22282e 0%, #161a1f 50%, var(--night) 100%);
  background-size: 42px 42px, 42px 42px, auto;
}

.download-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle at center, transparent 40%, rgba(0, 0, 0, 0.35) 100%);
}

.download-header,
.download-footer {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(24px, 5vw, 64px);
}

.download-header { border-bottom: 1px solid rgba(255, 255, 255, 0.09); }

.download-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.34em;
  text-decoration: none;
}

.download-brand img { width: 38px; height: 38px; border-radius: 10px; }

.download-main {
  width: min(980px, calc(100% - 40px));
  min-width: 0;
  margin: 0 auto;
  padding: clamp(56px, 8vw, 100px) 0 clamp(65px, 8vw, 90px);
}

.eyebrow,
.platform-label {
  margin: 0 0 15px;
  color: #35b8e0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.24em;
}

.download-intro h1 {
  margin: 0;
  font-size: clamp(48px, 7vw, 76px);
  line-height: 1;
  letter-spacing: -0.055em;
}

.download-intro > p:last-child {
  max-width: 730px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.download-intro a,
.release-link a { color: var(--ink); text-underline-offset: 3px; }

.platform-section { margin-top: clamp(64px, 8vw, 94px); }

.section-heading { margin-bottom: 26px; }

.section-heading .eyebrow { margin-bottom: 10px; }

.section-heading h2,
.detail-card h2 {
  margin: 0;
  font-size: clamp(28px, 3.5vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.platform-grid,
.download-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.platform-card,
.detail-card {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.026);
}

.platform-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 38px;
  padding: clamp(26px, 4vw, 40px);
}

.platform-card h3 {
  margin: 0;
  font-size: clamp(24px, 3vw, 31px);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.platform-card p:not(.platform-label),
.detail-card p:last-child {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.platform-card p:not(.platform-label) { margin: 17px 0 0; }

.platform-card code {
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.065);
  color: var(--ink);
  font-size: 0.93em;
}

.download-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 15px 18px;
  border: 1px solid var(--accent);
  border-radius: 9px;
  background: var(--accent);
  color: #04141a;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.025em;
  text-decoration: none;
  transition: opacity 140ms ease, transform 140ms ease;
}

.download-button:hover { opacity: 0.9; transform: translateY(-1px); }

.download-button span { font-size: 18px; line-height: 0.8; }

.download-status {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.download-status:empty { display: none; }

.release-link,
.legal-notice {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.release-link code { color: var(--ink); }

.legal-notice { margin-top: 10px; color: var(--ghost); font-size: 13px; }

.legal-notice a,
.detail-card a {
  color: var(--ink);
  text-underline-offset: 3px;
}

.download-details { margin-top: clamp(60px, 8vw, 90px); }

.detail-card { padding: clamp(24px, 3vw, 32px); }

.detail-card h2 { font-size: 25px; }

.detail-card p:last-child { margin: 15px 0 0; }

.download-footer {
  color: var(--ghost);
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.download-footer .footer-links {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.download-footer a {
  color: var(--ghost);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
}

.download-footer a:hover,
.download-footer a[aria-current="page"] { color: var(--ink); }

.download-brand:focus-visible,
.download-button:focus-visible,
.download-intro a:focus-visible,
.release-link a:focus-visible,
.legal-notice a:focus-visible,
.detail-card a:focus-visible,
.download-footer a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

@media (max-width: 700px) {
  .platform-grid,
  .download-details { grid-template-columns: 1fr; }

  .download-header,
  .download-footer { padding: 22px 20px; }

  .download-footer { flex-direction: column; align-items: flex-start; gap: 15px; }

  .download-footer .footer-links { justify-content: flex-start; }
}

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