:root {
  --bg: #0d1117;
  --surface: #131a22;
  --surface-soft: #18212b;
  --line: #2a3643;
  --text: #f4f7f9;
  --muted: #9aa8b6;
  --accent: #18d4bc;
  --accent-strong: #0fae9c;
  --amber: #f3bc4d;
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 280px;
  color: var(--text);
  background: var(--bg);
  letter-spacing: 0;
}

a { color: inherit; }

.topbar,
main,
footer {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-size: 20px;
  font-weight: 760;
}

.brand img { border-radius: 7px; }

.release {
  color: var(--muted);
  font: 600 12px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace;
  font-variant-numeric: tabular-nums;
}

.intro {
  padding: 74px 0 52px;
  max-width: 820px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font: 700 12px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace;
}

h1,
h2,
p { margin-top: 0; }

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(38px, 6vw, 70px);
  line-height: 1.02;
  font-weight: 760;
  letter-spacing: 0;
}

.lead {
  max-width: 690px;
  margin-bottom: 30px;
  color: #bbc6d0;
  font-size: 18px;
  line-height: 1.65;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 7px;
  text-decoration: none;
  font-weight: 700;
}

.button:focus-visible,
.brand:focus-visible,
.toplink:focus-visible,
.legal-nav a:focus-visible,
.legal-copy a:focus-visible,
.footer-links a:focus-visible {
  outline: 3px solid rgba(24, 212, 188, 0.35);
  outline-offset: 3px;
}

.toplink {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}

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

.button.primary {
  color: #051310;
  background: var(--accent);
}

.button.primary:hover { background: #31e4ce; }

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

.button.secondary:hover { border-color: #566575; }

.checksum {
  margin: 18px 0 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font: 600 11px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace;
  font-variant-numeric: tabular-nums;
}

.checksum span { color: var(--amber); }

.checksum code {
  overflow-wrap: anywhere;
  color: #c8d2db;
}

.product-view {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
}

.product-view img {
  display: block;
  width: 100%;
  height: auto;
}

.install {
  padding: 92px 0 76px;
  display: grid;
  grid-template-columns: minmax(200px, 0.7fr) minmax(0, 1.3fr);
  gap: 64px;
}

h2 {
  margin-bottom: 0;
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: 0;
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.steps li {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.steps li > span {
  color: var(--accent);
  font: 700 12px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.steps strong { font-size: 16px; }

.steps p {
  margin: 5px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-variant-numeric: tabular-nums;
}

.notes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.notes div {
  min-width: 0;
  padding: 22px 18px;
  border-right: 1px solid var(--line);
}

.notes div:first-child { padding-left: 0; }
.notes div:last-child { border-right: 0; }

.notes strong,
.notes span { display: block; }

.notes strong {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.notes span {
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.45;
}

footer {
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 13px;
}

footer span { color: var(--text); font-weight: 750; }
footer p { margin: 0; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a[aria-current="page"] { color: var(--text); }

.legal-page {
  max-width: 880px;
  padding-bottom: 72px;
}

.legal-intro { padding: 68px 0 36px; }

.legal-intro h1 {
  margin-bottom: 12px;
  font-size: 52px;
  line-height: 1.06;
}

.legal-effective {
  margin-bottom: 22px;
  color: var(--amber);
  font: 650 12px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace;
  font-variant-numeric: tabular-nums;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.legal-nav a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}

.legal-nav a:hover { color: var(--accent); }

.legal-copy section {
  padding: 38px 0 8px;
  scroll-margin-top: 24px;
}

.legal-copy h2 {
  margin-bottom: 20px;
  font-size: 27px;
}

.legal-copy h3 {
  margin: 26px 0 8px;
  font-size: 16px;
  line-height: 1.4;
}

.legal-copy p,
.legal-copy li {
  color: #bbc6d0;
  font-size: 15px;
  line-height: 1.75;
}

.legal-copy p { margin-bottom: 14px; }

.legal-copy ul {
  margin: 0 0 18px;
  padding-left: 22px;
}

.legal-copy li { margin-bottom: 8px; }

.legal-copy strong { color: var(--text); }

.legal-copy a { color: var(--accent); }

@media (max-width: 760px) {
  .topbar,
  main,
  footer { width: min(100% - 28px, 1120px); }

  .topbar { min-height: 66px; }
  .release { max-width: 142px; text-align: right; }
  .intro { padding: 52px 0 38px; }
  h1 { font-size: 42px; }
  .lead { font-size: 16px; }
  .actions { display: grid; }
  .button { width: 100%; }
  .checksum { display: block; }
  .checksum span { display: block; margin-bottom: 4px; }

  .install {
    padding: 68px 0 54px;
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .notes { grid-template-columns: 1fr 1fr; }
  .notes div,
  .notes div:first-child { padding: 18px 12px; }
  .notes div:nth-child(2) { border-right: 0; }
  .notes div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  footer { align-items: flex-start; flex-direction: column; justify-content: center; }

  .legal-page { padding-bottom: 48px; }
  .legal-intro { padding: 48px 0 26px; }
  .legal-intro h1 { font-size: 40px; }
  .legal-copy section { padding-top: 32px; }
}

@media (max-width: 420px) {
  h1 { font-size: 36px; }
  .notes { grid-template-columns: 1fr; }
  .notes div { border-right: 0; border-bottom: 1px solid var(--line); }
  .notes div:last-child { border-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
