:root {
  --download-blue: #2678ea;
  --download-blue-dark: #1465d8;
  --download-ink: #172033;
  --download-muted: #69758a;
  --download-line: #dfe5ed;
  --download-bg: #f3f5f8;
}

body.desktop-download-page {
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--download-ink);
  background:
    radial-gradient(circle at 50% -10%, rgba(38, 120, 234, 0.08), transparent 36%),
    var(--download-bg);
}

.desktop-download-page > .topbar {
  position: sticky;
  z-index: 40;
  top: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 14px clamp(22px, 5vw, 76px);
  border: 0;
  border-bottom: 1px solid rgba(216, 224, 234, 0.9);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: none;
  backdrop-filter: blur(16px) saturate(140%);
}

.desktop-download-page > .topbar .brand {
  color: #173655;
  text-decoration: none;
}

.desktop-download-page > .topbar .brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

.desktop-download-page > .topbar nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.download-main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(54px, 7vw, 92px) 0 70px;
}

.download-hero {
  max-width: 920px;
  margin: 0 auto clamp(44px, 6vw, 66px);
  text-align: center;
}

.download-app-icon {
  display: block;
  width: 92px;
  height: 92px;
  margin: 0 auto 24px;
  border-radius: 23px;
  box-shadow: 0 14px 30px rgba(220, 35, 52, 0.2), 0 2px 4px rgba(16, 33, 54, 0.1);
}

.download-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 18px;
  color: var(--download-blue);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.download-kicker::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #20b77a;
  box-shadow: 0 0 0 5px rgba(32, 183, 122, 0.12);
  content: "";
}

.download-hero h1 {
  margin: 0;
  color: #141b29;
  font-size: clamp(38px, 5.2vw, 64px);
  font-weight: 760;
  line-height: 1.12;
  letter-spacing: -0.055em;
}

.download-hero p {
  max-width: 800px;
  margin: 22px auto 0;
  color: var(--download-muted);
  font-size: clamp(16px, 1.7vw, 20px);
  line-height: 1.8;
}

.download-version-line {
  display: block;
  margin-top: 15px;
  color: #9aa5b7;
  font-size: 14px;
}

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

.download-card {
  position: relative;
  display: flex;
  min-height: 390px;
  flex-direction: column;
  padding: clamp(28px, 3vw, 40px);
  overflow: hidden;
  border: 1px solid var(--download-line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 28px rgba(29, 49, 76, 0.08);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.download-card:hover {
  border-color: #b9cbe1;
  box-shadow: 0 18px 38px rgba(29, 49, 76, 0.12);
  transform: translateY(-2px);
}

.download-card.recommended {
  border: 2px solid var(--download-blue);
  box-shadow: 0 15px 38px rgba(38, 120, 234, 0.13);
}

.download-recommended {
  position: absolute;
  top: 28px;
  right: 28px;
  display: none;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--download-blue-dark);
  background: #eaf3ff;
  font-size: 12px;
  font-weight: 800;
}

.download-card.recommended .download-recommended { display: inline-flex; }

.download-platform-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  margin-bottom: 28px;
  border-radius: 15px;
  color: #242a33;
  background: #f1f3f5;
}

.download-card-windows .download-platform-icon {
  color: var(--download-blue);
  background: #eaf3ff;
}

.download-platform-icon svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.download-card h2 {
  margin: 0 0 12px;
  color: #171d28;
  font-size: 30px;
  font-weight: 760;
  letter-spacing: -0.025em;
}

.download-requirements {
  margin: 0;
  color: var(--download-muted);
  font-size: 15px;
  line-height: 1.65;
}

.download-card-actions {
  margin-top: auto;
  padding-top: 46px;
}

.download-button {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #2d80ec, #2172e5);
  box-shadow: 0 8px 18px rgba(38, 120, 234, 0.23);
  font-size: 16px;
  font-weight: 750;
  text-decoration: none;
  transition: background 0.18s ease, transform 0.18s ease;
}

.download-button:hover {
  color: #fff;
  background: linear-gradient(135deg, #2073df, #1261cf);
  transform: translateY(-1px);
}

.download-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.download-file-meta {
  margin: 16px 0 0;
  color: #98a4b7;
  font-size: 13px;
  text-align: center;
}

.mac-open-guide {
  margin-top: 24px;
  padding: clamp(26px, 3vw, 36px);
  border: 1px solid #e3d7bd;
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(255, 253, 247, 0.98), rgba(255, 249, 235, 0.9));
  box-shadow: 0 10px 28px rgba(90, 68, 27, 0.06);
}

.mac-open-guide.recommended {
  border-color: #e1be70;
  box-shadow: 0 12px 32px rgba(157, 112, 18, 0.1);
}

.mac-open-guide-head {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.mac-open-guide-icon {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  place-items: center;
  border-radius: 13px;
  color: #a56806;
  background: #fff0c7;
}

.mac-open-guide-icon svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mac-open-guide-kicker {
  display: block;
  margin-bottom: 5px;
  color: #a56806;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.05em;
}

.mac-open-guide h2 {
  margin: 0;
  color: #332817;
  font-size: clamp(21px, 2.2vw, 27px);
  letter-spacing: -0.025em;
}

.mac-open-guide-head p {
  max-width: 780px;
  margin: 9px 0 0;
  color: #76684f;
  font-size: 14px;
  line-height: 1.75;
}

.mac-open-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.mac-open-steps li {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 11px;
  padding: 17px;
  border: 1px solid rgba(220, 204, 170, 0.75);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.72);
}

.mac-open-steps li > span {
  display: grid;
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #b97a13;
  font-size: 12px;
  font-weight: 850;
}

.mac-open-steps b {
  display: block;
  margin: 2px 0 6px;
  color: #3c3020;
  font-size: 14px;
}

.mac-open-steps p {
  margin: 0;
  color: #796c58;
  font-size: 12.5px;
  line-height: 1.65;
}

.mac-open-guide-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  color: #8b7b61;
  font-size: 12.5px;
}

.mac-open-guide-foot a {
  flex: 0 0 auto;
  color: #93600d;
  font-weight: 750;
  text-decoration: none;
}

.mac-open-guide-foot a:hover { text-decoration: underline; }

.download-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.download-note {
  padding: 18px 20px;
  border: 1px solid #e2e7ee;
  border-radius: 14px;
  color: #68768b;
  background: rgba(255, 255, 255, 0.65);
  font-size: 13px;
  line-height: 1.65;
}

.download-note b {
  display: block;
  margin-bottom: 4px;
  color: #2a3a50;
  font-size: 14px;
}

@media (max-width: 880px) {
  .desktop-download-page > .topbar {
    display: flex !important;
    min-height: 64px !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    gap: 10px !important;
    padding: 10px 14px;
  }

  .desktop-download-page > .topbar .brand small { display: none; }
  .desktop-download-page > .topbar .topbar-primary { display: none; }
  .desktop-download-page > .topbar .topbar-divider { display: none; }
  .desktop-download-page > .topbar nav,
  .desktop-download-page > .topbar .topbar-account {
    width: auto !important;
    flex: 0 0 auto !important;
    flex-direction: row !important;
  }

  .download-main {
    width: min(100% - 28px, 680px);
    padding-top: 42px;
  }

  .download-app-icon { width: 76px; height: 76px; border-radius: 19px; }
  .download-grid { grid-template-columns: 1fr; }
  .download-card { min-height: 350px; }
  .mac-open-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .download-notes { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .desktop-download-page > .topbar .topbar-account .logout-link,
  .desktop-download-page > .topbar .topbar-account > a:first-child:not(:last-child) { display: none; }
  .desktop-download-page > .topbar nav { gap: 4px; }
  .desktop-download-page > .topbar nav a { padding: 7px 9px !important; }
  .download-main { padding-top: 34px; }
  .download-hero h1 { font-size: 36px; }
  .download-hero p { font-size: 15px; }
  .download-card { min-height: 330px; padding: 26px 22px; }
  .download-recommended { top: 22px; right: 22px; }
  .mac-open-guide { padding: 22px 18px; }
  .mac-open-guide-head { gap: 12px; }
  .mac-open-guide-icon { width: 40px; height: 40px; flex-basis: 40px; border-radius: 11px; }
  .mac-open-guide-icon svg { width: 23px; height: 23px; }
  .mac-open-steps { grid-template-columns: 1fr; gap: 9px; margin-top: 20px; }
  .mac-open-steps li { padding: 15px; }
  .mac-open-guide-foot { align-items: flex-start; flex-direction: column; gap: 8px; }
}

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