:root {
  --brand: #12a489;
  --brand-dark: #087765;
  --brand-soft: #e8f7f3;
  --ink: #10212d;
  --ink-soft: #334854;
  --muted: #6c7b82;
  --line: #d8e7e6;
  --surface: #ffffff;
  --page-x: clamp(24px, 5vw, 80px);
  --max-width: 1440px;
  --content-edge: max(var(--page-x), calc((100vw - var(--max-width)) / 2));
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: #f8fbfb;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100svh;
  margin: 0;
  color: var(--ink);
  background-color: #f8fbfb;
  background-image:
    linear-gradient(rgba(18, 164, 137, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 164, 137, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: 0;
}

.download-page {
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  overflow: hidden;
}

.download-header {
  position: relative;
  z-index: 20;
  display: flex;
  width: min(calc(100% - var(--page-x) * 2), var(--max-width));
  min-height: 76px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(216, 231, 230, 0.88);
}

.download-brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 14px;
}

.download-brand img {
  display: block;
  width: auto;
  height: 31px;
}

.brand-divider {
  width: 1px;
  height: 22px;
  background: var(--line);
}

.product-wordmark {
  overflow: hidden;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.header-actions,
.language-toggle {
  display: flex;
  align-items: center;
}

.header-actions {
  gap: 12px;
}

.language-toggle {
  height: 40px;
  padding: 3px;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.8);
}

.language-option {
  display: grid;
  min-width: 40px;
  height: 32px;
  padding: 0 10px;
  place-items: center;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
  transition: color 180ms ease, background-color 180ms ease;
}

.language-option.is-active {
  color: #ffffff;
  background: var(--brand);
}

.language-divider {
  color: #a7b4b8;
  font-size: 12px;
}

.home-link {
  display: inline-flex;
  height: 40px;
  padding: 0 14px;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  font-weight: 650;
  transition: border-color 180ms ease, color 180ms ease, background-color 180ms ease;
}

.home-link svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-link:hover {
  border-color: rgba(18, 164, 137, 0.42);
  color: var(--brand-dark);
  background: #ffffff;
}

.download-hero {
  display: grid;
  width: min(calc(100% - var(--page-x) * 2), var(--max-width));
  min-height: calc(100svh - 142px);
  margin: 0 auto;
  padding: 28px 0;
  grid-template-columns: minmax(390px, 0.8fr) minmax(560px, 1.2fr);
  align-items: center;
  gap: clamp(42px, 5vw, 84px);
}

.download-copy {
  position: relative;
  z-index: 2;
  max-width: 560px;
}

.product-signature {
  display: flex;
  margin-bottom: 24px;
  align-items: center;
  gap: 13px;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 750;
}

.product-signature img {
  width: 54px;
  height: 54px;
  filter: drop-shadow(0 10px 18px rgba(16, 33, 45, 0.14));
}

.download-copy h1 {
  margin: 0;
  color: var(--ink);
  font-size: 64px;
  font-weight: 760;
  line-height: 1.05;
}

.product-title-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.product-tagline {
  margin: 0;
  color: var(--brand-dark);
  font-size: 27px;
  font-weight: 680;
  line-height: 1.3;
  white-space: nowrap;
}

.product-description {
  max-width: 520px;
  margin: 20px 0 0;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.75;
}

.product-description span {
  display: block;
}

.foundation-note {
  display: flex;
  max-width: 520px;
  margin: 16px 0 0;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.foundation-note svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--brand-dark);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.download-actions {
  display: flex;
  margin-top: 32px;
  align-items: center;
  gap: 12px;
}

.windows-download {
  display: inline-flex;
  min-width: 220px;
  height: 54px;
  padding: 0 22px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  border: 1px solid var(--brand);
  border-radius: 8px;
  color: #ffffff;
  background: var(--brand);
  box-shadow: 0 18px 38px rgba(18, 164, 137, 0.2);
  font-size: 15px;
  font-weight: 720;
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.windows-download:not(.is-preparing):hover {
  transform: translateY(-2px);
  background: var(--brand-dark);
  box-shadow: 0 22px 44px rgba(18, 164, 137, 0.26);
}

.windows-download.is-preparing {
  border-color: rgba(18, 164, 137, 0.24);
  color: var(--brand-dark);
  background: var(--brand-soft);
  box-shadow: none;
  cursor: default;
}

.windows-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  fill: currentColor;
}

.release-status {
  display: flex;
  margin: 15px 0 0;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e3a02e;
  box-shadow: 0 0 0 4px rgba(227, 160, 46, 0.12);
}

.release-status.is-ready .status-dot {
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(18, 164, 137, 0.14);
}

.compatibility {
  display: flex;
  margin-top: 29px;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: #718087;
  font-size: 12px;
}

.compatibility > span[aria-hidden="true"] {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #a8b7bb;
}

.product-visual {
  position: relative;
  display: flex;
  justify-content: flex-end;
  min-width: 0;
}

.product-window {
  --product-shift-x: calc(var(--content-edge) + 10%);
  position: relative;
  overflow: hidden;
  width: clamp(760px, 62vw, 1080px);
  flex: 0 0 auto;
  aspect-ratio: 2160 / 1352;
  border: 1px solid rgba(201, 219, 220, 0.96);
  border-radius: 8px;
  background: #ffffff;
  box-shadow:
    0 22px 42px rgba(16, 33, 45, 0.12),
    0 52px 100px rgba(18, 164, 137, 0.13);
  transform: translate(var(--product-shift-x), -3px);
  animation: product-float 7s ease-in-out infinite;
  will-change: transform;
}

.product-window img {
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: left top;
}

@keyframes product-float {
  0%,
  100% {
    transform: translate(var(--product-shift-x), -3px);
  }

  50% {
    transform: translate(var(--product-shift-x), 5px);
  }
}

.download-footer {
  position: relative;
  z-index: 10;
  display: flex;
  width: min(calc(100% - var(--page-x) * 2), var(--max-width));
  min-height: 66px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid rgba(216, 231, 230, 0.88);
  color: #819096;
  font-size: 12px;
}

.download-footer p {
  margin: 0;
}

.download-footer nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.download-footer a {
  transition: color 180ms ease;
}

.download-footer a:hover {
  color: var(--brand-dark);
}

@media (max-width: 1120px) {
  .download-hero {
    grid-template-columns: minmax(340px, 0.82fr) minmax(470px, 1.18fr);
    gap: 40px;
  }

  .download-copy h1 {
    font-size: 56px;
  }

  .product-tagline {
    font-size: 24px;
  }
}

@media (max-width: 1180px) {
  .download-page {
    overflow: visible;
  }

  .download-hero {
    min-height: auto;
    padding-top: 56px;
    grid-template-columns: 1fr;
    gap: 58px;
  }

  .download-copy {
    max-width: 650px;
  }

  .product-window {
    --product-shift-x: 0px;
    width: 100%;
    aspect-ratio: 2160 / 1352;
  }

  .product-window img {
    width: 100%;
  }

  .download-footer {
    margin-top: 18px;
  }
}

@media (max-width: 640px) {
  :root {
    --page-x: 22px;
  }

  body {
    background-size: 48px 48px;
  }

  .download-header {
    min-height: 64px;
  }

  .download-brand {
    gap: 10px;
  }

  .download-brand img {
    height: 25px;
  }

  .brand-divider,
  .product-wordmark,
  .home-link span {
    display: none;
  }

  .home-link {
    width: 40px;
    padding: 0;
    justify-content: center;
  }

  .download-hero {
    padding: 46px 0 34px;
    gap: 48px;
  }

  .product-signature {
    margin-bottom: 20px;
  }

  .product-signature img {
    width: 48px;
    height: 48px;
  }

  .download-copy h1 {
    font-size: 46px;
  }

  .product-tagline {
    font-size: 22px;
  }

  .product-title-row {
    gap: 8px 12px;
  }

  .product-description {
    margin-top: 16px;
    font-size: 15px;
    line-height: 1.7;
  }

  .foundation-note {
    align-items: flex-start;
  }

  .download-actions {
    margin-top: 26px;
  }

  .windows-download {
    width: 100%;
  }

  .compatibility {
    margin-top: 24px;
  }

  .download-footer {
    min-height: 106px;
    padding: 20px 0;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .product-window {
    animation: none;
    transform: translateX(var(--product-shift-x));
  }
}
