.download-page {
  background: #fff;
}

.download-hero {
  position: relative;
  overflow: hidden;
  padding: 82px 0 96px;
  background:
    radial-gradient(ellipse at 50% -14%, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.12) 52%, transparent 70%),
    linear-gradient(180deg, #fbfdff 0%, #f4f8ff 58%, #f8faff 100%);
}
.download-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(21, 36, 67, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 36, 67, 0.045) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 82%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 82%);
  pointer-events: none;
}
.download-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(24px);
  pointer-events: none;
}
.download-glow-a {
  width: 650px;
  height: 420px;
  right: -220px;
  top: 50px;
  background: rgba(116, 166, 247, 0.25);
}
.download-glow-b {
  width: 520px;
  height: 340px;
  left: -240px;
  top: 310px;
  background: rgba(183, 211, 250, 0.24);
}
.download-hero-inner { position: relative; z-index: 1; }
.download-heading {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  animation: hero-in 600ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.download-heading h1 {
  margin-top: 20px;
  font-size: clamp(46px, 5.2vw, 68px);
  font-weight: 480;
  letter-spacing: 0.035em;
  line-height: 1.2;
}
.download-heading h1 span { color: var(--blue); white-space: nowrap; }
.download-heading > p:not(.hero-eyebrow):not(.device-line) {
  max-width: 690px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.78;
  text-wrap: balance;
}
.device-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 32px;
  margin-top: 14px;
  padding: 4px 11px;
  border: 1px solid rgba(58, 130, 247, 0.16);
  border-radius: 999px;
  color: #4771a9;
  background: rgba(246, 250, 255, 0.78);
  font-size: 11.5px;
  font-weight: 600;
}
.device-line i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.platform-picker {
  max-width: 980px;
  margin: 38px auto 0;
  animation: case-in 700ms 90ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.platform-tabs {
  display: flex;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 16px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 10px 30px rgba(41, 82, 145, 0.06);
}
.platform-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 150px;
  min-height: 44px;
  padding: 9px 20px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font-size: 13.5px;
  font-weight: 650;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}
.platform-tab svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 180ms ease;
}
.platform-tab[data-platform="win"] svg { fill: currentColor; stroke: none; }
.platform-tab:hover { color: var(--navy-2); }
.platform-tab:hover svg { transform: translateY(-1px); }
.platform-tab[aria-selected="true"] {
  color: var(--blue-strong);
  background: #fff;
  box-shadow: 0 4px 14px rgba(41, 82, 145, 0.1);
}
.platform-tab[aria-selected="true"] svg { transform: scale(1.05); }

.download-panel {
  overflow: hidden;
  border: 1px solid rgba(29, 67, 121, 0.13);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-float);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  animation: panel-in 280ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 78px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(251, 253, 255, 0.84);
}
.package-title {
  display: flex;
  align-items: center;
  gap: 12px;
}
.package-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  color: var(--blue);
  background: var(--blue-soft);
}
.package-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.download-panel.is-active .package-icon svg {
  animation: package-settle 520ms 120ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.package-title > span:last-child { display: flex; flex-direction: column; line-height: 1.4; }
.package-title small { color: var(--muted); font-size: 11px; }
.package-title strong { color: var(--navy); font-size: 13.5px; font-weight: 660; }
.release-pill {
  flex: none;
  padding: 5px 11px;
  border: 1px solid #d8e7fb;
  border-radius: 999px;
  color: #547399;
  background: #f6faff;
  font-size: 10.5px;
}
.release-pill b { color: var(--blue-strong); font-family: var(--font-mono); font-weight: 650; }
.panel-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: center;
  gap: 44px;
  padding: 30px 26px 27px;
}
.package-copy h2 {
  font-size: 27px;
  font-weight: 640;
  line-height: 1.35;
}
.package-copy > p {
  max-width: 550px;
  margin-top: 9px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.76;
}
.package-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 17px;
}
.package-meta span {
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: #fbfdff;
  font-size: 10.5px;
}
.package-meta b { color: var(--navy-2); font-weight: 650; }
.download-actions { display: grid; gap: 10px; }
.download-actions .button svg { transition: transform 180ms ease; }
.download-actions .button:hover svg { transform: translateY(2px); }
.download-actions > span {
  color: var(--muted);
  text-align: center;
  font-size: 10.5px;
}
.download-actions > span b { color: var(--navy-2); font-family: var(--font-mono); font-weight: 600; }
.button-quiet {
  min-height: 42px;
  border-color: var(--line);
  color: var(--navy-2);
  background: #fbfdff;
  font-size: 12.5px;
}
.button-quiet:hover { border-color: var(--blue-line); color: var(--blue-strong); background: #f7faff; }
.package-details {
  border-top: 1px solid var(--line);
  background: #fbfdff;
}
.package-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 10px 22px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 620;
  cursor: pointer;
  list-style: none;
}
.package-details summary::-webkit-details-marker { display: none; }
.package-details summary::after {
  content: "+";
  color: var(--blue-strong);
  font-family: var(--font-mono);
  font-size: 16px;
}
.package-details[open] summary::after { content: "−"; }
.details-body {
  padding: 0 22px 17px;
  animation: detail-in 220ms ease both;
}
.details-body p { color: var(--muted); font-size: 11.5px; }
.details-body code {
  display: block;
  overflow-wrap: anywhere;
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #526b8b;
  background: #fff;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.65;
}
.details-body code code { display: inline; padding: 0; border: 0; background: transparent; }
.selector-note {
  margin-top: 16px;
  color: var(--muted);
  text-align: center;
  font-size: 11.5px;
}
.selector-note a { color: var(--blue-strong); border-bottom: 1px solid var(--blue-line); }

.install-section {
  background: #fff;
}
.install-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 48px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.install-steps .install-step {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 420ms ease, transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}
.install-steps.is-visible .install-step { opacity: 1; transform: none; }
.install-steps.is-visible .install-step:nth-child(2) { transition-delay: 70ms; }
.install-steps.is-visible .install-step:nth-child(3) { transition-delay: 140ms; }
.install-step {
  min-height: 238px;
  padding: 30px 28px;
  border-right: 1px solid var(--line);
}
.install-step:last-child { border-right: 0; }
.install-num {
  display: block;
  color: var(--blue-strong);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 680;
}
.install-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-top: 30px;
  border-radius: 12px;
  color: var(--blue);
  background: var(--blue-soft);
}
.install-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.install-steps.is-visible .install-icon svg {
  animation: install-icon-in 520ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.install-steps.is-visible .install-step:nth-child(2) .install-icon svg { animation-delay: 70ms; }
.install-steps.is-visible .install-step:nth-child(3) .install-icon svg { animation-delay: 140ms; }
.install-step h3 { margin-top: 17px; font-size: 19px; font-weight: 640; }
.install-step p { margin-top: 9px; color: var(--muted); font-size: 13px; line-height: 1.8; }

.download-faq {
  background:
    radial-gradient(circle at 16% 30%, rgba(214, 233, 255, 0.45), transparent 28%),
    var(--canvas);
  border-top: 1px solid rgba(223, 230, 241, 0.76);
}
.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: 80px;
  align-items: start;
}
.faq-heading { position: sticky; top: 110px; text-align: left; }
.faq-heading h2 {
  margin-top: 12px;
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 510;
  line-height: 1.3;
}
.faq-heading > p:last-child {
  max-width: 390px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.82;
}
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 15px 0;
  color: var(--navy);
  font-size: 15px;
  font-weight: 630;
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  color: var(--blue-strong);
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 400;
}
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p {
  max-width: 720px;
  padding: 0 38px 18px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.85;
}

.download-end { background: #fff; }
.download-end-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  min-height: 238px;
  overflow: hidden;
  padding: 42px 48px;
  border-radius: 32px;
  color: #fff;
  background:
    radial-gradient(circle at 85% 15%, rgba(133, 185, 255, 0.7), transparent 28%),
    linear-gradient(125deg, #245bd6 0%, #3a82f7 58%, #74acff 100%);
  box-shadow: 0 28px 70px rgba(38, 103, 218, 0.18);
}
.download-end-card > div:first-child { position: relative; z-index: 1; }
.download-end-card p { color: rgba(255, 255, 255, 0.72); font-size: 11.5px; font-weight: 680; letter-spacing: 0.09em; }
.download-end-card h2 {
  margin-top: 9px;
  color: #fff;
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 500;
  line-height: 1.32;
}
.download-end-card span { display: block; margin-top: 11px; color: rgba(255, 255, 255, 0.76); font-size: 12.5px; }
.end-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: none;
}
.end-button { color: var(--blue-strong); background: #fff; }
.end-button:hover { color: var(--navy); background: #f8fbff; }
.download-end-card .text-link { color: #fff; border-bottom: 1px solid rgba(255, 255, 255, 0.55); }

@media (max-width: 900px) {
  .panel-main { grid-template-columns: 1fr; gap: 24px; }
  .download-actions { max-width: 420px; }
  .faq-layout { grid-template-columns: 1fr; gap: 38px; }
  .faq-heading { position: static; }
}

@media (max-width: 760px) {
  .download-hero { padding: 54px 0 66px; }
  .download-hero-grid { background-size: 58px 58px; }
  .download-heading h1 {
    margin-top: 17px;
    font-size: clamp(39px, 11vw, 48px);
    line-height: 1.26;
  }
  .download-heading h1 span { display: block; white-space: normal; }
  .download-heading > p:not(.hero-eyebrow):not(.device-line) {
    margin-top: 15px;
    font-size: 15px;
    line-height: 1.78;
  }
  .platform-picker { margin-top: 30px; }
  .platform-tabs { width: 100%; }
  .platform-tab { flex: 1; min-width: 0; padding-inline: 12px; }
  .download-panel { border-radius: 24px; }
  .panel-top {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 14px 16px;
  }
  .release-pill { margin-left: 54px; }
  .panel-main { padding: 22px 16px 20px; }
  .package-copy h2 { font-size: 23px; }
  .package-copy > p { font-size: 13.5px; }
  .download-actions { max-width: none; }
  .package-details summary { padding-inline: 16px; }
  .details-body { padding-inline: 16px; }
  .selector-note { padding-inline: 8px; }

  .install-steps { grid-template-columns: 1fr; margin-top: 34px; }
  .install-step {
    min-height: 0;
    padding: 24px 18px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .install-step:last-child { border-bottom: 0; }
  .install-icon { margin-top: 20px; }
  .faq-list summary { min-height: 60px; font-size: 14px; }
  .faq-list details p { padding-right: 20px; }
  .download-end-card {
    align-items: flex-start;
    flex-direction: column;
    min-height: 0;
    padding: 32px 24px;
    border-radius: 28px;
  }
  .download-end-card h2 { font-size: clamp(31px, 9vw, 40px); }
  .end-actions { width: 100%; align-items: stretch; }
  .end-button { width: 100%; }
  .download-end-card .text-link { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .download-heading,
  .platform-picker,
  .download-panel { animation: none; }
  .install-steps .install-step { opacity: 1; transform: none; transition: none; }
  .download-panel .package-icon svg,
  .install-step .install-icon svg {
    opacity: 1;
    transform: none;
    animation: none !important;
  }
}

@keyframes detail-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}
@keyframes package-settle {
  from { opacity: 0; transform: scale(0.82) translateY(3px); }
  to { opacity: 1; transform: none; }
}
@keyframes install-icon-in {
  from { opacity: 0; transform: scale(0.86) translateY(3px); }
  to { opacity: 1; transform: none; }
}
