:root {
  color-scheme: light;
  --bg: #f8f8f7;
  --bg-canvas: #eeecea;
  --surface: #ffffff;
  --surface-hover: #fafaf9;
  --border: #e8e5e0;
  --border-light: #f0eeea;
  --text: #37352f;
  --text-secondary: #787774;
  --text-muted: #b4b0a8;
  --accent: #2383e2;
  --accent-dark: #1b70c9;
  --accent-light: rgba(35, 131, 226, 0.08);
  --accent-border: rgba(35, 131, 226, 0.38);
  --accent-file: #d9730d;
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-float: 0 24px 72px rgba(35, 131, 226, 0.15), 0 12px 34px rgba(55, 53, 47, 0.08);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "PingFang SC",
    "Hiragino Sans GB",
    "Microsoft YaHei",
    "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 77% 34%, rgba(35, 131, 226, 0.12), transparent 31%),
    radial-gradient(circle at 88% 86%, rgba(154, 200, 255, 0.2), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 52%, #eef6ff 100%);
  color: var(--text);
}

a {
  color: inherit;
}

.page-shell {
  width: min(1168px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 22px 0 52px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 36px;
  margin-bottom: 24px;
}

.brand,
.header-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand {
  gap: 10px;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-icon {
  width: 27px;
  height: 27px;
  border-radius: 7px;
  box-shadow: var(--shadow-card);
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.header-link {
  min-height: 32px;
  padding: 0;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
}

.header-link:hover {
  color: var(--text);
}

.header-divider {
  width: 1px;
  height: 14px;
  background: var(--border);
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 650;
}

.language-switch a {
  color: var(--text-secondary);
  text-decoration: none;
}

.language-switch a:hover,
.language-switch a[aria-current="true"] {
  color: var(--accent);
}

.hero {
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(430px, 0.82fr) minmax(500px, 1.08fr);
  gap: 58px;
  align-items: center;
}

.hero-copy {
  max-width: 510px;
}

.app-icon {
  width: 56px;
  height: 56px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 14px;
  box-shadow: 0 12px 34px rgba(35, 131, 226, 0.16);
}

.eyebrow,
.section-kicker {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow {
  margin: 20px 0 10px;
}

h1 {
  max-width: 520px;
  margin: 0;
  color: var(--accent);
  font-size: clamp(52px, 5.9vw, 74px);
  font-weight: 780;
  letter-spacing: 0;
  line-height: 0.94;
}

h1 span {
  display: block;
}

.slogan {
  max-width: 500px;
  margin: 18px 0 0;
  color: var(--text-secondary);
  font-size: 18px;
  line-height: 1.55;
}

.version-card {
  width: fit-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0 10px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--text-secondary);
  font-size: 13px;
  box-shadow: var(--shadow-card);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-file);
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.primary-action {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 58px;
  padding: 11px 18px 10px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: 0;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition:
    background 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease,
  transform 140ms ease;
}

.primary-action {
  min-width: min(100%, 440px);
  border: 1px solid var(--accent-dark);
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 24px rgba(35, 131, 226, 0.22);
}

.primary-action__label,
.primary-action__meta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.primary-action__label {
  font-size: 15px;
}

.primary-action__meta {
  gap: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 650;
}

.primary-action .status-dot {
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.86);
}

.primary-action:hover {
  background: var(--accent-dark);
  box-shadow: 0 15px 28px rgba(35, 131, 226, 0.26);
  transform: translateY(-1px);
}

.primary-action[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.52;
}

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

.download-option {
  min-width: 0;
  display: grid;
  gap: 5px;
  padding: 12px 14px;
  border: 1px solid rgba(35, 131, 226, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  text-decoration: none;
  box-shadow: var(--shadow-card);
  transition:
    border-color 140ms ease,
    box-shadow 140ms ease,
    transform 140ms ease;
}

.download-option:hover {
  border-color: rgba(35, 131, 226, 0.28);
  box-shadow: 0 10px 22px rgba(35, 131, 226, 0.08);
  transform: translateY(-1px);
}

.download-option--disabled {
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.46);
  box-shadow: none;
}

.download-option--disabled:hover {
  border-color: rgba(35, 131, 226, 0.14);
  box-shadow: none;
  transform: none;
}

.download-option__title {
  font-size: 13px;
  font-weight: 760;
}

.download-option__meta,
.download-option__checksum {
  min-width: 0;
  overflow: hidden;
  color: var(--text-secondary);
  font-size: 11px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.download-option__checksum {
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Consolas,
    monospace;
}

.download-note,
.install-note {
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.6;
}

.download-note {
  margin: 12px 0 0;
}

.install-note {
  margin: 14px 0 0;
}

.product-preview {
  width: min(100%, 690px);
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(35, 131, 226, 0.16);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-float);
}

.product-preview img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
}

.release-notes {
  margin-top: 16px;
  padding: 22px 24px;
  border: 1px solid rgba(35, 131, 226, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow-card);
}

.release-notes[hidden] {
  display: none;
}

.release-notes__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.release-notes h2 {
  margin: 0;
  color: var(--text);
  font-size: 20px;
  font-weight: 740;
  letter-spacing: 0;
}

.release-list {
  display: grid;
  gap: 14px;
}

.release-entry {
  display: grid;
  grid-template-columns: 176px minmax(0, 1fr);
  gap: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
}

.release-entry:first-child {
  padding-top: 0;
  border-top: 0;
}

.release-entry__header {
  display: grid;
  align-content: start;
  gap: 6px;
}

.release-entry__version {
  width: fit-content;
  padding: 4px 9px;
  border: 1px solid var(--accent-border);
  border-radius: 999px;
  background: var(--accent-light);
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 750;
}

.release-entry__date {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 650;
}

.release-entry__body p,
.release-entry__body li {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.68;
}

.release-entry__body ul {
  margin: 0;
  padding-left: 18px;
}

.release-entry__body li + li {
  margin-top: 4px;
}

.install-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 16px;
  padding-bottom: 28px;
}

.install-grid article {
  min-height: 160px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-card);
}

.section-kicker {
  display: block;
  margin-bottom: 10px;
  color: var(--text-muted);
  font-size: 11px;
}

.install-grid h2 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 18px;
  font-weight: 740;
  letter-spacing: 0;
}

.install-grid p,
.install-grid li {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.68;
}

.install-grid ol {
  margin: 0;
  padding-left: 20px;
}

@media (max-width: 1020px) {
  .site-header {
    margin-bottom: 28px;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero-copy {
    max-width: 660px;
  }

  .download-options {
    grid-template-columns: 1fr;
  }

  .product-preview {
    width: 100%;
  }

  .install-grid {
    grid-template-columns: 1fr;
    margin-top: 18px;
  }

  .release-entry {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

@media (max-width: 720px) {
  h1 {
    font-size: 52px;
  }

  .product-preview img {
    height: 240px;
    object-fit: cover;
    object-position: center;
  }

  .install-grid {
    margin-top: 22px;
  }
}

@media (max-width: 560px) {
  .page-shell {
    width: min(100vw - 28px, 1168px);
    padding: 18px 0 42px;
  }

  .site-header {
    margin-bottom: 24px;
  }

  .header-link {
    display: none;
  }

  .app-icon {
    width: 52px;
    height: 52px;
  }

  .eyebrow {
    margin-top: 24px;
  }

  h1 {
    font-size: 48px;
  }

  .header-divider {
    display: none;
  }

  .slogan {
    font-size: 17px;
  }

  .hero {
    gap: 26px;
  }

  .primary-action {
    width: 100%;
  }

  .primary-action {
    min-width: 0;
  }

  .product-preview img {
    height: 210px;
  }

  .product-preview {
    box-shadow: 0 18px 48px rgba(35, 131, 226, 0.15), 0 8px 24px rgba(55, 53, 47, 0.06);
  }
}
