:root {
  color-scheme: light;
  --ink: #0a1c17;
  --muted: #61716c;
  --line: #d7e0dc;
  --paper: #f4f7f5;
  --white: #ffffff;
  --forest: #082a20;
  --green: #13bd76;
  --green-dark: #08764a;
  --blue: #2f66c9;
  --amber: #c88a16;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: "IBM Plex Sans Thai", sans-serif;
}
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }

.download-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(14px);
}
.header-inner, .hero-inner, .release-overview, .content-grid, footer {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid #cbd8d2; background: #0a251d; }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand > span:last-child { display: grid; }
.brand strong { font-family: "Space Grotesk", sans-serif; font-size: 21px; }
.brand small { color: var(--green-dark); font-size: 12px; }
.header-inner nav { display: flex; align-items: center; gap: 28px; }
.header-inner nav a { padding: 26px 0 22px; border-bottom: 3px solid transparent; font-weight: 700; text-decoration: none; }
.header-inner nav a:hover, .header-inner nav a.active { color: var(--green-dark); border-bottom-color: var(--green); }

.release-hero { color: #fff; background: var(--forest); }
.hero-inner { min-height: 380px; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(310px, .55fr); gap: 70px; align-items: center; padding-block: 58px; }
.release-label { display: inline-flex; align-items: center; gap: 9px; color: #65e4ad; font-size: 12px; font-weight: 700; letter-spacing: .06em; }
.release-label i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(19, 189, 118, .14); }
.hero-copy h1 { max-width: 700px; margin: 17px 0 12px; font-size: 62px; line-height: 1.05; letter-spacing: 0; }
.hero-copy p { max-width: 680px; margin: 0; color: #b7cbc4; font-size: 18px; line-height: 1.7; }
.release-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 27px; }
.release-badges span { padding: 7px 10px; border: 1px solid #355b4d; border-radius: 4px; color: #dbebe5; background: #0d372b; font-size: 12px; font-weight: 700; }
.download-action { padding: 25px; border: 1px solid #3d6557; border-radius: 8px; background: #fff; color: var(--ink); }
.download-action > span { color: var(--muted); font-size: 12px; font-weight: 700; }
.download-action > strong { display: block; margin: 2px 0; font-family: "Space Grotesk", sans-serif; font-size: 34px; }
.download-action > small { display: block; min-height: 22px; color: var(--muted); overflow-wrap: anywhere; }
.download-action > p { margin: 14px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.primary-download { min-height: 52px; display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 19px; border-radius: 6px; color: #062218; background: #6ee7a1; font-weight: 800; text-decoration: none; }
.primary-download:hover { background: #86edb0; }
.primary-download.disabled { color: #7c8a85; background: #dfe7e3; pointer-events: none; }
.button-spinner, .inline-spinner { width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
.primary-download:not(.disabled) .button-spinner { display: none; }

.release-overview { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: -1px; border: 1px solid var(--line); border-top: 0; background: var(--white); }
.release-overview div { min-width: 0; padding: 19px 22px; }
.release-overview div + div { border-left: 1px solid var(--line); }
.release-overview span { display: block; color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.release-overview strong { display: block; margin-top: 5px; font-size: 15px; overflow-wrap: anywhere; }

.content-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(340px, .75fr); gap: 28px; padding-block: 48px 70px; align-items: start; }
.release-notes, .install-information section { border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.release-notes { padding: 30px; }
.section-heading span, .section-kicker { color: var(--green-dark); font-size: 11px; font-weight: 800; letter-spacing: .07em; }
.section-heading h2, .install-information h2 { margin: 7px 0 0; font-size: 25px; letter-spacing: 0; }
.notes-list { margin: 25px 0 0; padding: 0; list-style: none; }
.notes-list li { position: relative; padding: 15px 16px 15px 42px; border-top: 1px solid #e3e9e6; line-height: 1.65; }
.notes-list li::before { content: ""; position: absolute; left: 17px; top: 24px; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.notes-list .loading-line { display: flex; align-items: center; gap: 10px; padding-left: 16px; color: var(--muted); }
.notes-list .loading-line::before { display: none; }
.inline-spinner { display: inline-block; width: 16px; height: 16px; color: var(--green-dark); }
.install-information { display: grid; gap: 18px; }
.install-information section { padding: 24px; }
.install-information ol { margin: 20px 0 0; padding: 0; list-style: none; counter-reset: install; }
.install-information li { counter-increment: install; position: relative; min-height: 49px; padding: 0 0 17px 48px; }
.install-information li::before { content: counter(install); position: absolute; left: 0; top: 0; width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid #b8d6ca; border-radius: 4px; color: var(--green-dark); background: #eef9f4; font-weight: 800; }
.install-information li b, .install-information li span { display: block; }
.install-information li span { color: var(--muted); font-size: 13px; line-height: 1.5; }
.release-error { width: min(1180px, calc(100% - 40px)); margin: 0 auto 50px; padding: 18px; border-left: 4px solid #c54848; background: #fff0f0; }
.release-error strong, .release-error span { display: block; }
.release-error span { color: #775252; }
.release-error button { margin-top: 10px; padding: 8px 12px; border: 0; border-radius: 4px; color: #fff; background: #a92e2e; cursor: pointer; }
.hidden { display: none !important; }

footer { min-height: 110px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); }
footer > div { display: grid; }
footer span { color: var(--muted); font-size: 12px; }
footer nav { display: flex; gap: 22px; }
footer a { color: var(--muted); font-size: 13px; text-decoration: none; }
footer a:hover { color: var(--green-dark); }

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

@media (max-width: 880px) {
  .header-inner { align-items: flex-start; flex-direction: column; padding-top: 14px; }
  .header-inner nav { width: 100%; gap: 22px; overflow-x: auto; }
  .header-inner nav a { flex: 0 0 auto; padding-block: 12px; }
  .hero-inner, .content-grid { grid-template-columns: 1fr; gap: 28px; }
  .release-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .release-overview div:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .release-overview div:nth-child(4) { border-top: 1px solid var(--line); }
}

@media (max-width: 560px) {
  .header-inner, .hero-inner, .release-overview, .content-grid, footer { width: min(100% - 24px, 1180px); }
  .hero-inner { min-height: 0; padding-block: 40px; }
  .hero-copy h1 { font-size: 40px; }
  .release-overview { grid-template-columns: 1fr; }
  .release-overview div + div { border-left: 0; border-top: 1px solid var(--line); }
  .release-notes, .install-information section { padding: 20px; }
  footer { align-items: flex-start; flex-direction: column; justify-content: center; padding-block: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button-spinner, .inline-spinner { animation-duration: 1.8s; }
}
