:root {
  color-scheme: dark;
  --background: #2b4049;
  --surface: #3a5059;
  --text: #f3f6f5;
  --secondary: #d8e1e3;
  --muted: #c8d5d9;
  --accent: #96e1cb;
  --border: #667e89;
}

* { box-sizing: border-box; }
html { background: var(--background); }
body {
  margin: 0;
  color: var(--text);
  font: 16px/1.65 system-ui, -apple-system, "Segoe UI", sans-serif;
  background: radial-gradient(ellipse 75% 560px at 12% 0%, #3c5856 0%, transparent 80%);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button { font: inherit; }
img { display: block; max-width: 100%; }
.container { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
h1, h2, h3, p { overflow-wrap: break-word; }
::selection { background: #96e1cb; color: #2b4049; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
#main:focus { outline: none; }
.skip-link {
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 20px;
  transform: translateY(-180%);
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--background);
}
.skip-link:focus { transform: none; }

.site-header { padding-top: 24px; }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 22px;
  border: 1px solid #698087;
  border-radius: 14px;
  background: #263a42;
  box-shadow: 0 10px 28px rgb(0 0 0 / 14%), inset 0 1px rgb(255 255 255 / 3%);
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-size: 20px; font-weight: 650; letter-spacing: -0.025em; }
.brand img { border-radius: 10px; }
.header-label { padding-left: 20px; border-left: 1px solid var(--border); color: var(--secondary); font-size: 13px; }

.download-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(350px, 0.9fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  padding-block: 76px 64px;
}
.product-intro { padding-block: 8px; }
.eyebrow { margin: 0 0 20px; color: var(--accent); font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.product-intro > .eyebrow { display: flex; align-items: center; gap: 12px; }
.product-intro > .eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--accent); }
h1 { margin: 0; font-size: clamp(42px, 5.2vw, 64px); line-height: 1.08; letter-spacing: -0.04em; font-weight: 650; }
.intro { max-width: 470px; margin: 26px 0 30px; color: var(--secondary); font-size: 17px; line-height: 1.8; }
.version-line { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 12px; }
.version { padding: 5px 11px; border: 1px solid #789198; border-radius: 6px; color: var(--secondary); font-weight: 600; }
.release-status { display: inline-flex; align-items: center; gap: 8px; padding: 5px 11px; border: 1px solid; border-radius: 6px; font-size: 12px; font-weight: 500; }
.release-status::before { content: ""; width: 5px; height: 5px; flex: 0 0 auto; border-radius: 50%; background: currentColor; }
.release-status--pending { color: #edc783; background: #25251f; border-color: #907347; }
.release-status--ready { color: var(--accent); background: #1b302c; border-color: #42685e; }

.download-card {
  position: relative;
  min-width: 0;
  border: 1px solid #82999e;
  border-radius: 18px;
  background: linear-gradient(145deg, #435c64, var(--surface) 75%);
  padding: 32px;
  box-shadow: 0 20px 48px rgb(0 0 0 / 20%), inset 0 1px rgb(255 255 255 / 5%);
}
.download-card::before { content: ""; position: absolute; top: -1px; left: 32px; width: 58px; height: 2px; background: var(--accent); }
.card-title { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
.windows-icon { width: 40px; height: 40px; flex: 0 0 auto; fill: #d3dfe4; }
.card-title h2 { margin: 0; font-size: 21px; font-weight: 600; line-height: 1.45; letter-spacing: -0.015em; }
.download-action-frame { padding: 7px; border: 1px solid #6c838b; border-radius: 12px; background: #293d45; }
.download-action { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 54px; gap: 14px; border: 1px solid #a1e5d4; border-radius: 6px; background: var(--accent); color: #10251f; padding: 13px 16px; text-decoration: none; font-size: 16px; font-weight: 650; line-height: 1.4; }
a.download-action { transition: background-color 150ms ease, border-color 150ms ease; }
a.download-action:hover { border-color: #c5f1e6; background: #9ce4d0; }
.download-action svg { width: 19px; height: 19px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.download-action:disabled { color: #d1dcde; border-color: #7b9297; background: #40595f; cursor: not-allowed; }
.download-status { margin: 16px 0 24px; color: var(--secondary); font-size: 13px; line-height: 1.75; }
.file-metadata { display: grid; gap: 14px; margin: 0; border-top: 1px solid #778d94; padding-top: 22px; font-size: 13px; }
.file-metadata > div { display: grid; grid-template-columns: 75px minmax(0, 1fr); gap: 16px; }
.file-metadata dt { color: var(--muted); }
.file-metadata dd { margin: 0; }
.file-metadata small { display: block; font-size: 11px; color: var(--muted); }
.file-metadata small:empty { display: none; }
.file-metadata code { font: 11px/1.75 ui-monospace, Consolas, monospace; overflow-wrap: anywhere; }
.metadata-pending { color: var(--muted); font-size: 12px; }

.install-guide { border-top: 1px solid var(--border); padding-block: 42px 40px; }
.guide-heading h2 { margin: 0; font-size: 12px; line-height: 1.6; }
.guide-heading > p:last-child { margin: 14px 0 28px; color: var(--muted); font-size: 14px; }
.steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.steps li { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 18px; padding: 24px; border: 1px solid var(--border); border-radius: 12px; background: #344b54; }
.step-number { display: grid; place-items: center; width: 36px; height: 40px; border: 1px solid #73baa7; border-radius: 7px; background: #273f44; color: var(--accent); font: 15px/1 ui-monospace, Consolas, monospace; font-variant-numeric: tabular-nums; }
.steps h3 { margin: 3px 0 9px; font-size: 15px; font-weight: 600; line-height: 1.5; }
.steps p { max-width: 425px; margin: 0; color: var(--secondary); font-size: 13px; line-height: 1.8; }
.guide-note { border-left: 2px solid #8cbcae; margin: 26px 0 0; padding: 2px 0 2px 14px; color: var(--muted); font-size: 12px; }
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; border-top: 1px solid var(--border); padding-block: 22px 30px; color: var(--muted); font-size: 12px; }

@media (max-width: 800px) {
  .container { width: min(620px, calc(100% - 48px)); }
  .download-hero { grid-template-columns: 1fr; gap: 32px; padding-block: 44px; }
  .product-intro { padding-block: 0; }
  .intro { max-width: 520px; }
  .download-card { width: 100%; }
  .steps { grid-template-columns: 1fr; }
  .steps p { max-width: none; }
}
@media (max-width: 540px) {
  .container { width: calc(100% - 40px); }
  .site-header { padding-top: 16px; }
  .header-inner { padding: 14px; gap: 12px; border-radius: 11px; }
  .brand { font-size: 18px; gap: 9px; }
  .brand img { width: 34px; height: 34px; border-radius: 8px; }
  .header-label { padding-left: 12px; font-size: 11px; line-height: 1.5; }
  .download-hero { gap: 30px; padding-block: 38px 36px; }
  .eyebrow { margin-bottom: 18px; font-size: 10px; }
  h1 { font-size: clamp(38px, 10.8vw, 52px); }
  .intro { font-size: 15px; margin-block: 20px 24px; }
  .download-card { padding: 24px; border-radius: 14px; }
  .download-card::before { left: 24px; }
  .card-title { gap: 12px; margin-bottom: 22px; }
  .card-title h2 { font-size: 17px; }
  .download-action { font-size: 15px; gap: 10px; }
  .file-metadata > div { grid-template-columns: 62px minmax(0, 1fr); gap: 12px; }
  .install-guide { padding-block: 30px; }
  .guide-heading h2 { font-size: 11px; }
  .steps { gap: 12px; }
  .steps li { padding: 20px; gap: 14px; }
  .steps h3 { font-size: 14px; }
  .site-footer { flex-direction: column; gap: 4px; padding-bottom: 24px; font-size: 11px; }
}
@media (max-width: 360px) {
  .container { width: calc(100% - 32px); }
  .header-inner { padding: 12px; }
  .brand { font-size: 16px; gap: 8px; }
  .brand img { width: 30px; height: 30px; }
  .header-label { font-size: 10px; padding-left: 10px; }
  .download-card { padding: 20px; }
  .download-card::before { left: 20px; }
  .steps li { padding: 18px; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  a.download-action { transition: none; }
}
@media (forced-colors: active) {
  .download-action:disabled { color: GrayText; border-color: GrayText; }
  .windows-icon { fill: CanvasText; }
  .release-status::before { background: CanvasText; }
}
