:root {
  color-scheme: light dark;
  --bg: #f6f7f2;
  --surface: #ecefe6;
  --surface-strong: #dfe5d7;
  --text: #171a16;
  --muted: #596157;
  --line: #c9d0c4;
  --accent: #9dff57;
  --accent-text: #14210d;
  --radius: 16px;
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111310;
    --surface: #1a1e18;
    --surface-strong: #232a20;
    --text: #f0f3ea;
    --muted: #aeb7a8;
    --line: #343c31;
    --accent: #9dff57;
    --accent-text: #14210d;
  }
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 82% 18%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 28rem),
    var(--bg);
  color: var(--text);
}

a { color: inherit; }

.site-header,
main,
footer {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.brand img { display: block; }

.source-link,
.signature-link,
footer a {
  color: var(--muted);
  font-weight: 600;
  text-underline-offset: 4px;
}

.source-link:hover,
.signature-link:hover,
footer a:hover { color: var(--text); }

main { padding: 58px 0 96px; }

.hero {
  min-height: min(720px, calc(100dvh - 130px));
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
  align-items: center;
  gap: clamp(48px, 8vw, 120px);
}

.hero-copy,
.artifact { min-width: 0; }

.eyebrow {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1,
h2,
p { text-wrap: pretty; }

h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(3rem, 7.2vw, 6.8rem);
  line-height: .94;
  letter-spacing: -.065em;
  overflow-wrap: break-word;
}

.lead {
  max-width: 580px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
  line-height: 1.55;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 750;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(1px); }
.button:focus-visible,
button:focus-visible,
a:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 65%, transparent); outline-offset: 4px; }

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-text);
}

.button.secondary { background: var(--surface); }

.release-state {
  min-height: 22px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: .9rem;
}

.artifact {
  align-self: center;
  padding: clamp(28px, 4vw, 52px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  box-shadow: 0 30px 90px color-mix(in srgb, var(--surface-strong) 45%, transparent);
}

.artifact-logo {
  display: block;
  width: min(148px, 44%);
  height: auto;
  margin: 0 auto 52px;
}

dl { margin: 0; }
dl div {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 18px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
dl div:last-child { border-bottom: 0; }
dt { color: var(--muted); }
dd { margin: 0; font-weight: 700; text-align: right; overflow-wrap: anywhere; }

.trust,
.steps,
.notice {
  margin-top: 96px;
}

.trust { max-width: 900px; }

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1.02;
  letter-spacing: -.045em;
}

.trust > p {
  max-width: 650px;
  margin: 22px 0 30px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.checksum-block {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--surface);
}

.checksum-block span { color: var(--muted); font-size: .78rem; font-weight: 800; }
.checksum-block code { overflow: hidden; text-overflow: ellipsis; font-size: .88rem; }
.checksum-block button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--text);
  padding: 9px 14px;
  font: inherit;
  font-size: .84rem;
  font-weight: 700;
  cursor: pointer;
}
.checksum-block button:disabled { cursor: not-allowed; opacity: .55; }
.signature-line {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: .88rem;
}
.signature-line code {
  display: inline-block;
  max-width: min(100%, 520px);
  overflow: hidden;
  vertical-align: bottom;
  text-overflow: ellipsis;
}

.steps ol {
  display: grid;
  grid-template-columns: 1.15fr .95fr .8fr;
  gap: 18px;
  margin: 38px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

.steps li {
  counter-increment: steps;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.steps li:nth-child(2) { background: var(--surface-strong); }
.steps li:nth-child(3) { background: color-mix(in srgb, var(--accent) 22%, var(--surface)); }
.steps li::before { content: counter(steps, decimal-leading-zero); margin-bottom: auto; color: var(--muted); font-weight: 800; }
.steps strong { font-size: 1.18rem; }
.steps span { margin-top: 10px; color: var(--muted); line-height: 1.45; }

.notice {
  max-width: 760px;
  padding-left: 24px;
  border-left: 4px solid var(--accent);
}
.notice strong { font-size: 1.08rem; }
.notice p { margin: 8px 0 0; color: var(--muted); line-height: 1.55; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .9rem;
}

@media (max-width: 767px) {
  .site-header,
  main,
  footer { width: min(100% - 32px, 620px); }
  .source-link { font-size: .9rem; }
  main { padding-top: 34px; }
  .hero { min-height: 0; grid-template-columns: 1fr; gap: 52px; }
  h1 { font-size: clamp(2.8rem, 12vw, 4.2rem); }
  .lead { margin-top: 24px; }
  .actions { flex-direction: column; }
  .button { width: 100%; }
  .artifact { max-width: 520px; width: 100%; }
  .trust, .steps, .notice { margin-top: 72px; }
  .checksum-block { grid-template-columns: 1fr auto; }
  .checksum-block span { grid-column: 1 / -1; }
  .steps ol { grid-template-columns: 1fr; }
  .steps li { min-height: 190px; }
  footer { flex-direction: column; }
}

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