:root {
  color-scheme: dark;
  --black: #000000;
  --panel: #1c1d21;
  --panel-soft: #202126;
  --surface: #0d0e12;
  --surface-soft: #14151a;
  --text: #f7f7fb;
  --muted: #9a9da6;
  --muted-strong: #c7c9d1;
  --border: #303139;
  --border-soft: #23242a;
  --accent: #7c4dff;
  --accent-hover: #8b62ff;
  --accent-pressed: #6b3fee;
  --shell: min(1240px, calc(100% - 80px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--black);
  color: var(--text);
  font-family: Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.download-screen {
  display: grid;
  grid-template-columns: clamp(430px, 31vw, 600px) minmax(0, 1fr);
  min-height: max(720px, calc(100svh - 78px));
  overflow: hidden;
  border-bottom: 1px solid var(--border-soft);
  background: var(--black);
}

.download-panel {
  position: relative;
  z-index: 4;
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 40px clamp(36px, 3vw, 56px) 30px;
  border-right: 1px solid #2b2c32;
  background: var(--panel);
  box-shadow: 22px 0 58px rgba(0, 0, 0, 0.24);
}

.brand,
.footer-brand {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 13px;
  color: #ffffff;
  font-size: 24px;
  font-weight: 830;
  letter-spacing: -0.025em;
}

.brand img {
  width: 47px;
  height: 47px;
  border-radius: 10px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.38), 0 0 30px rgba(124, 77, 255, 0.1);
}

.download-content {
  margin-top: clamp(48px, 8vh, 82px);
  animation: reveal-up 760ms 80ms cubic-bezier(.22, 1, .36, 1) both;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(28px, 2.15vw, 35px);
  font-weight: 790;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.hero-copy p {
  max-width: 470px;
  margin: 17px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.primary-download {
  display: inline-flex;
  width: 100%;
  min-height: 62px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 30px;
  padding: 0 23px;
  border-radius: 9px;
  background: var(--accent);
  color: #ffffff;
  font-size: 17px;
  font-weight: 750;
  letter-spacing: -0.01em;
  box-shadow: 0 18px 38px rgba(124, 77, 255, 0.26);
  transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.primary-download:hover {
  background: var(--accent-hover);
  box-shadow: 0 22px 46px rgba(124, 77, 255, 0.34);
  transform: translateY(-2px);
}

.primary-download:active {
  background: var(--accent-pressed);
  transform: translateY(0);
}

.primary-download:focus-visible,
.platform-download:focus-visible,
.usage-link:focus-visible,
.copy-checksum:focus-visible,
.site-footer a:focus-visible {
  outline: 3px solid rgba(139, 98, 255, 0.62);
  outline-offset: 4px;
}

.windows-mark {
  display: grid;
  grid-template-columns: repeat(2, 10px);
  grid-template-rows: repeat(2, 10px);
  gap: 2px;
  flex: 0 0 auto;
}

.windows-mark i {
  display: block;
  width: 10px;
  height: 10px;
  background: currentColor;
}

.download-arrow {
  width: 21px;
  height: 21px;
  margin-left: auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.release-facts {
  display: grid;
  gap: 0;
  margin: 30px 0 0;
  padding: 17px 0 0;
  border-top: 1px solid var(--border);
}

.release-facts > div {
  display: grid;
  grid-template-columns: minmax(106px, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 42px;
}

.release-facts dt,
.release-facts dd {
  margin: 0;
}

.release-facts dt {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #8f929b;
  font-size: 13px;
}

.release-facts dd {
  color: #d4d5db;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.release-facts svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.platform-download {
  display: grid;
  min-width: 0;
  min-height: 106px;
  align-content: center;
  gap: 7px;
  padding: 15px;
  border: 1px solid #373943;
  border-radius: 8px;
  background: #15161b;
  color: #d8d9df;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.platform-download:hover {
  border-color: #5b5f6f;
  background: #191a20;
  transform: translateY(-1px);
}

.platform-download.is-current {
  border-color: rgba(124, 77, 255, .72);
  background: #181525;
}

.platform-download span,
.platform-download small {
  overflow: hidden;
  color: #8f929b;
  font-size: 12px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.platform-download strong {
  overflow: hidden;
  color: #ffffff;
  font-size: 14px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.panel-note {
  margin: auto 0 0;
  padding-top: 22px;
  color: #676a73;
  font-size: 12px;
}

.brand-stage {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: #000000;
}

.usage-link {
  position: absolute;
  z-index: 6;
  top: 36px;
  right: 44px;
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 9px;
  color: #c5c6ce;
  font-size: 14px;
  font-weight: 650;
  transition: color 160ms ease;
}

.usage-link:hover {
  color: #ffffff;
}

.usage-link svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-copy {
  position: relative;
  z-index: 3;
  margin-top: clamp(80px, 10vh, 112px);
  text-align: center;
  animation: reveal-copy 900ms 140ms cubic-bezier(.22, 1, .36, 1) both;
}

.brand-copy h2 {
  margin: 0;
  color: #f1efff;
  font-size: clamp(66px, 7.2vw, 116px);
  font-style: italic;
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: .96;
  text-shadow: 0 18px 44px rgba(124, 77, 255, 0.15);
}

.brand-copy p {
  margin: 28px 0 0;
  color: #9b9da4;
  font-size: clamp(22px, 2vw, 31px);
  font-weight: 730;
  letter-spacing: .025em;
  line-height: 1.3;
}

.brand-copy > span {
  display: block;
  margin-top: 8px;
  color: #f0f0f4;
  font-size: 14px;
  font-weight: 720;
}

.family-video {
  position: absolute;
  z-index: 2;
  right: 50%;
  bottom: -1px;
  display: block;
  width: min(94%, 1440px);
  height: auto;
  background: #000000;
  object-fit: contain;
  object-position: center bottom;
  transform: translateX(50%);
  user-select: none;
  pointer-events: none;
  animation: reveal-family 1000ms 240ms cubic-bezier(.22, 1, .36, 1) both;
}

.stage-accent {
  position: absolute;
  z-index: 1;
  right: 50%;
  bottom: 20%;
  display: flex;
  width: min(56%, 760px);
  justify-content: space-between;
  transform: translateX(50%);
  pointer-events: none;
}

.stage-accent i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(124, 77, 255, .72);
  animation: pulse-dot 2600ms ease-in-out infinite alternate;
}

.stage-accent i:nth-child(2) { animation-delay: -900ms; }
.stage-accent i:nth-child(3) { animation-delay: -1700ms; }

.guide-shell,
.integrity-inner,
.footer-inner {
  width: var(--shell);
  margin: 0 auto;
}

.install-guide {
  padding: 108px 0 104px;
  background: var(--surface-soft);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(34px, 3vw, 46px);
  font-weight: 760;
  letter-spacing: -0.045em;
  line-height: 1.15;
}

.section-heading p {
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.section-heading > span {
  padding-bottom: 4px;
  color: #6f727b;
  font-size: 12px;
}

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(40px, 7vw, 112px);
  margin: 72px 0 0;
  padding: 0;
  list-style: none;
}

.steps::before {
  position: absolute;
  z-index: 0;
  top: 20px;
  right: 10%;
  left: 10%;
  height: 1px;
  background: #5f469f;
  content: "";
}

.steps li {
  position: relative;
  z-index: 1;
  min-width: 0;
  text-align: center;
}

.step-number {
  display: grid;
  width: 42px;
  height: 42px;
  margin: 0 auto;
  place-items: center;
  border: 1px solid #9b7cff;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 0 0 8px var(--surface-soft);
}

.step-icon {
  width: 48px;
  height: 48px;
  margin: 36px auto 22px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.steps h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.4;
}

.steps p {
  max-width: 330px;
  margin: 11px auto 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.integrity {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.integrity-inner {
  display: grid;
  grid-template-columns: minmax(300px, .64fr) minmax(520px, 1.36fr);
  align-items: center;
  gap: clamp(42px, 6vw, 100px);
  min-height: 186px;
  padding: 38px 0;
}

.integrity-copy {
  display: flex;
  align-items: center;
  gap: 24px;
}

.integrity-copy > svg {
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.integrity-copy h2 {
  margin: 0;
  font-size: 21px;
  line-height: 1.35;
}

.integrity-copy h2 span {
  margin-left: 5px;
  color: var(--muted-strong);
  font-size: 14px;
  font-weight: 600;
}

.integrity-copy p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.checksum-list {
  display: grid;
  gap: 12px;
}

.checksum {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.checksum > span {
  min-width: 0;
  color: #d7d8de;
  font-size: 13px;
  font-weight: 700;
}

.checksum code {
  display: flex;
  min-width: 0;
  min-height: 58px;
  align-items: center;
  overflow: hidden;
  padding: 0 20px;
  border: 1px solid #3c3e47;
  border-radius: 9px;
  background: #090a0d;
  color: #bfc1c9;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  letter-spacing: .035em;
  white-space: nowrap;
}

.copy-checksum {
  display: inline-flex;
  min-width: 104px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 9px;
  background: var(--accent);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 160ms ease, transform 160ms ease;
}

.copy-checksum:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.copy-checksum svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-footer {
  background: var(--black);
}

.footer-inner {
  min-height: 104px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 34px;
}

.footer-brand {
  font-size: 16px;
}

.footer-brand img {
  width: 32px;
  height: 32px;
  border-radius: 7px;
}

.site-footer a,
.footer-inner p {
  color: #777982;
  font-size: 12px;
}

.site-footer a {
  transition: color 160ms ease;
}

.site-footer a:hover {
  color: #ffffff;
}

.footer-inner p {
  margin: 0;
  text-align: right;
}

@keyframes reveal-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes reveal-copy {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes reveal-family {
  from { opacity: 0; transform: translateX(50%) translateY(14px) scale(.99); }
  to { opacity: 1; transform: translateX(50%) translateY(0) scale(1); }
}

@keyframes pulse-dot {
  from { opacity: .22; transform: scale(.7); }
  to { opacity: .72; transform: scale(1.2); }
}

@media (max-width: 1180px) {
  .download-screen {
    grid-template-columns: 410px minmax(0, 1fr);
  }

  .download-panel {
    padding-right: 34px;
    padding-left: 34px;
  }

  .download-content {
    margin-top: 46px;
  }

  .hero-copy h1 {
    font-size: 28px;
  }

  .brand-copy h2 {
    font-size: clamp(62px, 7.6vw, 90px);
  }

  .family-video {
    width: 102%;
  }
}

@media (max-width: 900px) {
  :root {
    --shell: min(100% - 40px, 780px);
  }

  .download-screen {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .download-panel {
    min-height: 650px;
    padding: 30px 28px 26px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .download-content {
    width: min(100%, 620px);
    margin-top: 48px;
  }

  .primary-download {
    width: min(100%, 520px);
  }

  .release-facts {
    width: min(100%, 520px);
  }

  .platform-downloads {
    width: min(100%, 520px);
  }

  .brand-stage {
    min-height: 650px;
  }

  .brand-copy {
    margin-top: 78px;
  }

  .brand-copy h2 {
    font-size: clamp(64px, 13vw, 92px);
  }

  .family-video {
    width: min(112%, 980px);
  }

  .integrity-inner {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 48px 0;
  }
}

@media (max-width: 640px) {
  :root {
    --shell: calc(100% - 32px);
  }

  .download-panel {
    min-height: 640px;
    padding: 24px 20px;
  }

  .brand {
    gap: 10px;
    font-size: 19px;
  }

  .brand img {
    width: 39px;
    height: 39px;
    border-radius: 8px;
  }

  .download-content {
    margin-top: 40px;
  }

  .hero-copy h1 {
    font-size: 27px;
  }

  .hero-copy p {
    font-size: 13px;
  }

  .primary-download {
    min-height: 58px;
    margin-top: 25px;
    border-radius: 8px;
    font-size: 16px;
  }

  .release-facts {
    margin-top: 26px;
  }

  .release-facts > div {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .release-facts dd {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .platform-downloads {
    grid-template-columns: 1fr;
  }

  .platform-download {
    min-height: 82px;
  }

  .brand-stage {
    min-height: 520px;
  }

  .usage-link {
    top: 20px;
    right: 20px;
  }

  .usage-link span {
    display: none;
  }

  .usage-link svg {
    width: 22px;
    height: 22px;
  }

  .brand-copy {
    margin-top: 76px;
  }

  .brand-copy h2 {
    font-size: clamp(50px, 15vw, 68px);
  }

  .brand-copy p {
    margin-top: 20px;
    font-size: 19px;
  }

  .brand-copy > span {
    font-size: 12px;
  }

  .family-video {
    width: 148%;
  }

  .install-guide {
    padding: 80px 0 74px;
  }

  .section-heading {
    display: block;
  }

  .section-heading h2 {
    font-size: 34px;
  }

  .section-heading > span {
    display: block;
    margin-top: 18px;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 48px;
  }

  .steps::before {
    top: 20px;
    bottom: 20px;
    left: 20px;
    width: 1px;
    height: auto;
  }

  .steps li {
    display: grid;
    grid-template-columns: 42px 44px minmax(0, 1fr);
    align-items: start;
    gap: 18px;
    padding: 0 0 40px;
    text-align: left;
  }

  .steps li:last-child {
    padding-bottom: 0;
  }

  .step-number {
    margin: 0;
    box-shadow: 0 0 0 7px var(--surface-soft);
  }

  .step-icon {
    width: 38px;
    height: 38px;
    margin: 2px 0 0;
  }

  .steps h3 {
    font-size: 18px;
  }

  .steps p {
    margin: 8px 0 0;
  }

  .integrity-copy {
    align-items: flex-start;
  }

  .integrity-copy > svg {
    width: 46px;
    height: 46px;
  }

  .checksum {
    grid-template-columns: 1fr;
  }

  .checksum code {
    min-height: 54px;
    overflow-x: auto;
  }

  .copy-checksum {
    min-height: 50px;
  }

  .footer-inner {
    min-height: 136px;
    grid-template-columns: 1fr auto;
    gap: 16px;
    padding: 28px 0;
  }

  .footer-inner p {
    grid-column: 1 / -1;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
