:root {
  color-scheme: light;
  --ink: #142d45;
  --muted: #5d6b77;
  --navy: #102b45;
  --navy-deep: #0b2137;
  --gold: #e7c577;
  --paper: #f6f7f4;
  --line: #dce2e6;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }
button, a, input, summary { -webkit-tap-highlight-color: transparent; }
svg { flex: 0 0 auto; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }

:focus-visible { outline: 3px solid #2366a2; outline-offset: 4px; }
.download-panel :focus-visible { outline-color: #fff; }

.shell { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.skip-link { position: absolute; z-index: 10; top: 8px; left: 8px; transform: translateY(-160%); padding: 10px 16px; border-radius: 6px; background: #fff; color: var(--ink); }
.skip-link:focus { transform: translateY(0); }

.site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 92px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--navy); box-shadow: inset 0 -3px 0 var(--gold); color: #f3d58d; font-size: 25px; font-weight: 700; line-height: 1; }
.brand-name { font-size: 16px; font-weight: 750; letter-spacing: .055em; white-space: nowrap; }
.brand-name span { font-weight: 450; }
.section-label { margin: 0; color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: .035em; }

.main-content { padding-block: 30px 24px; }
.tool-card { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(280px, 1fr); overflow: hidden; border: 1px solid #d6dee3; border-radius: 18px; background: #fff; box-shadow: 0 12px 34px rgb(17 37 57 / 7%); }
.download-panel { min-width: 0; padding: 30px 34px 26px; border-top: 3px solid var(--gold); background: linear-gradient(118deg, var(--navy), var(--navy-deep)); color: #fff; }
.eyebrow { margin: 0 0 13px; color: #efd38f; font-size: 12px; font-weight: 700; letter-spacing: .13em; }
h1 { margin: 0; font-size: clamp(30px, 2.9vw, 40px); font-weight: 650; letter-spacing: -.03em; line-height: 1.13; }
.tool-description { max-width: 47ch; margin: 15px 0 0; color: #d3dde8; font-size: 15px; line-height: 1.55; }
.download-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin: 20px 0 21px; padding: 0; color: #e1e7ee; list-style: none; font-size: 12px; }
.download-meta .version { padding: 3px 9px; border: 1px solid #7a785f; border-radius: 5px; color: #f7dea6; font-weight: 600; }
.download-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 11px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; max-width: 100%; padding: 10px 16px; border: 1px solid transparent; border-radius: 7px; font-size: 14px; font-weight: 650; line-height: 1.3; text-align: center; text-decoration: none; cursor: pointer; transition: background-color 150ms ease, border-color 150ms ease; }
.button-primary { background: var(--gold); color: #142c42; }
.button-primary:hover { background: #f0d58e; }
.button-primary:active { background: #dbb660; }
.button-secondary { border-color: #64778b; background: transparent; color: #fff; font-size: 13px; font-weight: 500; }
.button-secondary:hover { border-color: #9cacbc; background: rgb(255 255 255 / 7%); }
.button-secondary:active { background: rgb(255 255 255 / 12%); }
.button:disabled { cursor: wait; opacity: .75; }
.service-note { display: flex; align-items: flex-start; gap: 8px; margin: 16px 0 0; color: #d3dde8; font-size: 13px; line-height: 1.5; }
.service-note svg { margin-top: 0; color: #a8bdd0; }
.copy-status { margin: 9px 0 0; color: #f2da9c; font-size: 12px; line-height: 1.5; }
.copy-status:empty { margin-top: 0; }
.copy-fallback { margin-top: 12px; padding: 12px; border: 1px solid #63758a; border-radius: 7px; background: rgb(255 255 255 / 5%); }
.copy-fallback label { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 600; }
.copy-fallback input { display: block; width: 100%; min-width: 0; height: 38px; padding: 7px 9px; border: 1px solid #b4c2cf; border-radius: 4px; background: #fff; color: #132d45; font-size: 13px; }
.copy-fallback p { margin: 7px 0 0; color: #d3dde8; font-size: 12px; line-height: 1.45; }

.steps-panel { padding: 33px 30px 26px; background: #fcfcf8; }
.panel-kicker { margin: 0 0 5px; color: #62717d; font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.steps-panel h2 { margin: 0 0 24px; font-size: 24px; font-weight: 650; letter-spacing: -.025em; line-height: 1.25; }
.install-steps { display: grid; gap: 22px; margin: 0; padding: 0; list-style: none; }
.install-steps li { display: grid; grid-template-columns: 29px minmax(0, 1fr); align-items: start; gap: 12px; }
.step-number { display: grid; place-items: center; width: 28px; height: 28px; margin-top: 1px; border: 1px solid #d7dfdf; border-radius: 50%; background: #f2f4ef; color: #243f52; font-size: 12px; font-weight: 650; }
.install-steps h3 { margin: 0 0 3px; font-size: 14px; font-weight: 650; line-height: 1.5; }
.install-steps p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.install-steps strong { color: #374d5e; font-weight: 650; }
.file-extension { white-space: nowrap; }

.features { margin-top: 26px; }
.features > h2 { margin: 0 0 12px; font-size: 15px; font-weight: 650; letter-spacing: -.01em; }
.feature-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 20px; border: 1px solid #dfe5e8; border-radius: 12px; background: #fff; list-style: none; }
.feature-list li { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }
.feature-icon { display: grid; flex: 0 0 auto; place-items: center; width: 31px; height: 33px; border-radius: 7px; background: #f0f4f6; color: #38566f; }
.feature-list h3 { margin: 0 0 4px; font-size: 13px; font-weight: 700; line-height: 1.5; }
.feature-list p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }

.page-bottom { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 24px; margin-top: 20px; padding-top: 17px; border-top: 1px solid var(--line); }
.release-details { min-width: 0; }
.release-details summary { display: inline-flex; align-items: center; gap: 7px; min-height: 30px; border-radius: 3px; color: #526676; font-size: 12px; font-weight: 600; list-style: none; cursor: pointer; }
.release-details summary::-webkit-details-marker { display: none; }
.release-details summary svg { stroke-width: 1.5; transition: transform 150ms ease; }
.release-details[open] summary svg { transform: rotate(90deg); }
.release-details dl { display: grid; gap: 9px; max-width: 710px; margin: 12px 0 0; padding: 15px; border: 1px solid #dce2e6; border-radius: 8px; background: #fff; font-size: 12px; }
.release-details dl > div { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; }
.release-details dt { color: var(--muted); font-weight: 600; }
.release-details dd { min-width: 0; margin: 0; }
.release-details code { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 11px; overflow-wrap: anywhere; }
.powered-by { padding-top: 6px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.powered-by strong { color: #25445c; font-size: 12px; font-weight: 700; letter-spacing: .035em; }

@media (max-width: 1000px) {
  .shell { width: calc(100% - 48px); }
  .tool-card { grid-template-columns: minmax(0, 1.6fr) minmax(255px, 1fr); }
  .download-panel { padding-inline: 26px; }
  .steps-panel { padding-inline: 25px; }
  .feature-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 24px; }
  .feature-list h3 { font-size: 13px; }
}

@media (max-width: 780px) {
  .tool-card { grid-template-columns: minmax(0, 1fr); }
  .download-panel { padding: 27px 28px; }
  h1 { font-size: 35px; }
  .steps-panel { padding: 25px 28px 27px; }
  .steps-panel h2 { margin-bottom: 18px; font-size: 21px; }
  .install-steps { gap: 19px; }
  .install-steps li { grid-template-columns: 28px minmax(0, 1fr); }
  .install-steps p { max-width: 46ch; }
  .panel-kicker { font-size: 10px; }
}

@media (max-width: 520px) {
  .shell { width: calc(100% - 32px); }
  .site-header { align-items: flex-start; flex-direction: column; gap: 11px; min-height: 0; padding-block: 20px 17px; }
  .brand-mark { width: 34px; height: 34px; border-radius: 9px; font-size: 23px; }
  .brand-name { font-size: 15px; }
  .section-label { font-size: 12px; }
  .main-content { padding-block: 22px; }
  .tool-card { border-radius: 14px; }
  .download-panel { padding: 25px 21px 23px; }
  .eyebrow { margin-bottom: 14px; font-size: 10px; letter-spacing: .08em; }
  h1 { font-size: clamp(27px, 7.5vw, 34px); }
  .tool-description { margin-top: 14px; font-size: 14px; }
  .download-meta { gap: 9px 14px; margin-block: 18px 20px; }
  .download-actions { align-items: stretch; flex-direction: column; gap: 10px; }
  .button { width: 100%; min-height: 46px; padding-inline: 11px; }
  .button-primary { font-size: 13px; }
  .service-note { font-size: 13px; }
  .steps-panel { padding: 25px 21px; }
  .features { margin-top: 23px; }
  .feature-list { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 19px 17px; }
  .feature-list h3 { font-size: 13px; }
  .feature-list p { font-size: 13px; }
  .page-bottom { grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 18px; padding-top: 13px; }
  .release-details summary { min-height: 38px; }
  .release-details dl > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .powered-by { padding-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
