:root {
  --download-ink: #0c1c18;
  --download-muted: #607069;
  --download-green: #14c784;
  --download-green-dark: #087757;
  --download-mint: #e9fbf4;
  --download-paper: #fbfcf8;
  --download-line: rgba(12, 28, 24, 0.11);
  --download-shadow: 0 24px 70px rgba(12, 45, 35, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  color: var(--download-ink);
  background: var(--download-paper);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 83% 8%, rgba(20, 199, 132, 0.14), transparent 28rem),
    var(--download-paper);
}

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

button {
  font: inherit;
}

.container {
  width: min(calc(100% - 48px), 1120px);
  margin: 0 auto;
}

.download-shell {
  min-height: 100vh;
  overflow: hidden;
}

.download-header {
  border-bottom: 1px solid var(--download-line);
  background: rgba(251, 252, 248, 0.88);
  backdrop-filter: blur(18px);
}

.download-nav,
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.download-nav {
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 20px;
  font-weight: 760;
  letter-spacing: -0.03em;
}

.brand img {
  width: 34px;
  height: 34px;
}

.nav-actions,
.footer-row div {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-actions a,
.download-footer a {
  color: var(--download-muted);
  font-size: 14px;
  font-weight: 620;
}

.nav-actions a:hover,
.download-footer a:hover {
  color: var(--download-green-dark);
}

.nav-actions .console-link {
  min-height: 42px;
  padding: 11px 17px;
  border-radius: 999px;
  color: #fff;
  background: var(--download-ink);
}

.download-hero {
  position: relative;
  padding: 48px 0 44px;
}

.download-hero::before {
  content: "";
  position: absolute;
  inset: auto -14% -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--download-line), transparent);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.82fr);
  align-items: center;
  gap: 56px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--download-green-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 670px;
  margin-bottom: 18px;
  font-size: clamp(44px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.hero-lead {
  max-width: 660px;
  margin-bottom: 22px;
  color: var(--download-muted);
  font-size: 17px;
  line-height: 1.7;
}

.hero-download {
  max-width: 680px;
}

.release-summary {
  margin-bottom: 10px;
  color: var(--download-muted);
  font-size: 13px;
}

.hero-download + .trust-row {
  margin-top: 18px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trust-row span {
  padding: 8px 12px;
  border: 1px solid var(--download-line);
  border-radius: 999px;
  color: #43524c;
  background: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  font-weight: 650;
}

.connection-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-width: 350px;
  justify-self: end;
}

.visual-orbit {
  position: absolute;
  inset: 10%;
  border: 1px solid rgba(8, 119, 87, 0.19);
  border-radius: 50%;
}

.orbit-two {
  inset: 24%;
  border-style: dashed;
}

.visual-core {
  position: absolute;
  inset: 32%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 32%;
  color: #fff;
  background: linear-gradient(145deg, #163c31, #087757);
  box-shadow: 0 24px 60px rgba(8, 119, 87, 0.28);
  transform: rotate(-3deg);
}

.visual-core strong {
  font-size: 50px;
  line-height: 1;
}

.visual-core span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.visual-node {
  position: absolute;
  min-width: 76px;
  padding: 13px 15px;
  border: 1px solid rgba(8, 119, 87, 0.15);
  border-radius: 14px;
  color: var(--download-green-dark);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 36px rgba(12, 45, 35, 0.1);
  font-size: 14px;
  font-weight: 760;
  text-align: center;
}

.node-system {
  top: 8%;
  left: 18%;
}

.node-data {
  top: 40%;
  right: 0;
}

.node-device {
  bottom: 7%;
  left: 22%;
}

.download-content {
  padding: 54px 0 72px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 22px;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -0.045em;
}

.section-heading > p {
  max-width: 440px;
  margin-bottom: 3px;
  color: var(--download-muted);
  font-size: 14px;
  text-align: right;
  line-height: 1.7;
}

.download-status,
.download-error {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 13px;
  min-height: 112px;
  padding: 24px;
  border: 1px solid var(--download-line);
  border-radius: 22px;
  color: var(--download-muted);
  background: #fff;
}

.status-spinner {
  width: 19px;
  height: 19px;
  border: 2px solid rgba(8, 119, 87, 0.18);
  border-top-color: var(--download-green-dark);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.recommended-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 22px;
  overflow: hidden;
  padding: 24px;
  border: 1px solid rgba(8, 119, 87, 0.2);
  border-radius: 22px;
  background:
    linear-gradient(125deg, rgba(233, 251, 244, 0.94), rgba(255, 255, 255, 0.98) 62%),
    #fff;
  box-shadow: var(--download-shadow);
}

.recommended-card::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -90px;
  bottom: -130px;
  border: 42px solid rgba(20, 199, 132, 0.1);
  border-radius: 50%;
}

.recommendation-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  color: var(--download-green-dark);
  font-size: 13px;
  font-weight: 780;
}

.recommendation-label::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--download-green);
  box-shadow: 0 0 0 5px rgba(20, 199, 132, 0.13);
}

.recommended-card h3 {
  margin-bottom: 6px;
  font-size: clamp(24px, 2.5vw, 30px);
  letter-spacing: -0.035em;
}

.asset-meta {
  margin-bottom: 0;
  color: var(--download-muted);
  font-size: 14px;
  line-height: 1.7;
}

.asset-actions {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.download-button,
.secondary-download,
.download-error button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 0;
  border-radius: 13px;
  font-weight: 760;
  cursor: pointer;
}

.download-button {
  color: #fff;
  background: var(--download-ink);
  box-shadow: 0 12px 24px rgba(12, 28, 24, 0.16);
}

.download-button:hover {
  background: var(--download-green-dark);
  transform: translateY(-1px);
}

.secondary-download {
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid var(--download-line);
  color: var(--download-green-dark);
  background: #fff;
  font-size: 13px;
}

.all-platforms-link {
  padding: 8px 2px;
  color: var(--download-green-dark);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.all-platforms-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.other-platforms {
  border: 1px solid var(--download-line);
  border-radius: 20px;
  background: #fff;
}

.other-platforms summary {
  padding: 22px 24px;
  color: #35453f;
  font-weight: 700;
  cursor: pointer;
}

.platform-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 0 22px 22px;
}

.platform-card {
  padding: 22px;
  border: 1px solid var(--download-line);
  border-radius: 20px;
  background: #fff;
}

.platform-card h3 {
  margin-bottom: 6px;
  font-size: 20px;
}

.platform-card > p {
  min-height: 45px;
  margin-bottom: 18px;
  color: var(--download-muted);
  font-size: 13px;
  line-height: 1.65;
}

.asset-list {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 9px;
}

.download-error {
  align-items: flex-start;
  flex-direction: column;
}

.download-error strong {
  color: #7b3129;
  font-size: 20px;
}

.download-error p {
  max-width: 680px;
  margin-bottom: 4px;
  line-height: 1.7;
}

.download-error button {
  min-height: 44px;
  margin-top: 9px;
  color: #fff;
  background: var(--download-ink);
}

.noscript-message {
  margin-top: 20px;
}

.install-help {
  padding: 62px 0;
  border-top: 1px solid var(--download-line);
  border-bottom: 1px solid var(--download-line);
  background: #f3f7f2;
}

.help-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
}

.help-grid article {
  position: relative;
  padding-left: 54px;
}

.help-grid article > span {
  position: absolute;
  top: 0;
  left: 0;
  color: var(--download-green-dark);
  font-size: 13px;
  font-weight: 800;
}

.help-grid h3 {
  margin-bottom: 9px;
  font-size: 19px;
}

.help-grid p {
  margin-bottom: 0;
  color: var(--download-muted);
  font-size: 14px;
  line-height: 1.75;
}

.download-footer {
  padding: 30px 0;
  color: var(--download-muted);
  font-size: 13px;
}

[hidden] {
  display: none !important;
}

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

  .status-spinner {
    animation: none;
  }

  .download-button:hover {
    transform: none;
  }
}

@media (max-width: 920px) {
  .hero-layout {
    grid-template-columns: 1fr;
  }

  .connection-visual {
    display: none;
  }

  .hero-copy,
  .hero-download {
    max-width: 760px;
  }

  .platform-list,
  .help-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .recommended-card {
    grid-template-columns: 1fr;
  }

  .asset-actions {
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .container {
    width: min(calc(100% - 28px), 1120px);
  }

  .download-nav {
    min-height: 66px;
  }

  .nav-actions > a:first-child,
  .brand span {
    display: none;
  }

  .download-hero {
    padding: 36px 0 34px;
  }

  h1 {
    margin-bottom: 16px;
    font-size: 42px;
  }

  .hero-lead {
    margin-bottom: 18px;
    font-size: 16px;
    line-height: 1.65;
  }

  .download-content {
    padding: 46px 0 58px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .section-heading > p {
    text-align: left;
  }

  .recommended-card {
    padding: 20px;
  }

  .asset-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .download-button,
  .secondary-download {
    width: 100%;
  }

  .all-platforms-link {
    align-self: flex-start;
  }

  .platform-list {
    padding: 0 16px 16px;
  }

  .footer-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }
}
