:root {
  --paper: #f3f0e8;
  --ink: #101112;
  --muted: #686861;
  --line: rgba(16, 17, 18, 0.18);
  --cyan: #18e8df;
  --red: #ff3157;
  --acid: #c7f33c;
  --panel: #17191b;
  --panel-soft: #232629;
  --max: 1220px;
  color-scheme: light;
  font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(16, 17, 18, 0.032) 1px, transparent 1px),
    var(--paper);
  background-size: 100% 26px;
}

a { color: inherit; }

button, a { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  color: #fff;
  background: var(--ink);
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  width: min(calc(100% - 40px), var(--max));
  min-height: 84px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--ink);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font: 800 12px/1 "Bahnschrift", "Arial Narrow", sans-serif;
  letter-spacing: 0.13em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--ink);
  font: 900 13px/1 Consolas, monospace;
  border: 2px solid var(--ink);
  background: var(--cyan);
  box-shadow: 4px 4px 0 var(--red);
}

.site-header nav { display: flex; gap: 28px; }

.site-header nav a {
  position: relative;
  padding: 8px 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.site-header nav a:hover,
.site-header nav a:focus-visible,
.site-header nav a[aria-current="page"] { color: var(--ink); }

.site-header nav a[aria-current="page"]::after {
  position: absolute;
  right: 0;
  bottom: 1px;
  left: 0;
  height: 3px;
  background: var(--red);
  content: "";
}

.hero {
  position: relative;
  width: min(calc(100% - 40px), var(--max));
  min-height: 690px;
  margin: 0 auto;
  padding: 84px 0 66px;
  overflow: hidden;
}

.hero::after {
  position: absolute;
  z-index: -1;
  top: 22px;
  right: -110px;
  width: 410px;
  height: 410px;
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow: inset 0 0 0 78px var(--paper), inset 0 0 0 79px var(--line), inset 0 0 0 150px var(--paper), inset 0 0 0 151px var(--line);
  content: "";
}

.hero-kicker,
.section-number {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font: 800 11px/1.2 Consolas, "Courier New", monospace;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 12px 0 0 var(--cyan);
}

.hero h1 {
  max-width: 980px;
  margin: 25px 0 26px;
  font: 900 clamp(64px, 9.6vw, 138px)/0.82 "Bahnschrift Condensed", Impact, sans-serif;
  letter-spacing: -0.055em;
  text-transform: uppercase;
}

.hero h1 .hero-line {
  display: inline-block;
  white-space: nowrap;
}

.hero h1 .hero-outline {
  position: relative;
  display: inline-block;
  margin-left: 0.52em;
  color: var(--paper);
  -webkit-text-stroke: 2px var(--ink);
}

.hero h1 .hero-outline::before {
  position: absolute;
  z-index: -1;
  right: -22px;
  bottom: -8px;
  left: -26px;
  height: 30%;
  background: var(--cyan);
  content: "";
  transform: rotate(-1.4deg);
}

.hero-summary {
  max-width: 690px;
  margin: 0;
  color: #383936;
  font-size: 18px;
  line-height: 1.85;
}

.release-ticket {
  display: grid;
  grid-template-columns: 70px repeat(3, 1fr);
  width: min(900px, 100%);
  margin: 44px 0 30px;
  color: #fff;
  border: 2px solid var(--ink);
  background: var(--panel);
  box-shadow: 9px 9px 0 var(--cyan);
}

.release-ticket > div {
  display: grid;
  min-height: 84px;
  padding: 16px 22px;
  align-content: center;
  border-right: 1px solid rgba(255,255,255,.16);
}

.release-ticket > div:last-child { border-right: 0; }

.release-ticket .ticket-index {
  padding: 0;
  place-items: center;
  color: var(--ink);
  font: 900 22px/1 Consolas, monospace;
  background: var(--acid);
}

.eyebrow {
  margin-bottom: 8px;
  color: rgba(255,255,255,.48);
  font: 700 9px/1 Consolas, monospace;
  letter-spacing: .14em;
}

.release-ticket strong { font: 800 17px/1.1 Consolas, monospace; }

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

.button {
  display: inline-flex;
  min-height: 52px;
  padding: 0 19px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 14px;
  font-weight: 800;
  border: 2px solid var(--ink);
  text-decoration: none;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.button:hover,
.button:focus-visible { transform: translate(-2px, -2px); outline: none; }
.button-primary { min-width: 238px; background: var(--red); box-shadow: 5px 5px 0 var(--ink); }
.button-primary:hover, .button-primary:focus-visible { box-shadow: 8px 8px 0 var(--ink); }
.button-secondary { background: transparent; }
.button-secondary:hover, .button-secondary:focus-visible { color: #fff; background: var(--ink); }

.download-note {
  max-width: 600px;
  margin: 21px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.product-proof {
  padding: 86px max(20px, calc((100vw - var(--max)) / 2)) 100px;
  color: #fff;
  background: var(--panel);
}

.proof-heading {
  display: flex;
  max-width: var(--max);
  margin: 0 auto 42px;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
}

.proof-heading h2,
.section-intro h2,
.install-strip h2,
.document-hero h1 {
  margin: 14px 0 0;
  font: 900 clamp(40px, 5vw, 72px)/0.98 "Bahnschrift Condensed", Impact, sans-serif;
  letter-spacing: -0.035em;
}

.proof-tags {
  display: flex;
  max-width: 360px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  list-style: none;
}

.proof-tags li {
  padding: 9px 12px;
  color: var(--cyan);
  font: 700 10px/1 Consolas, monospace;
  border: 1px solid rgba(24,232,223,.45);
}

.product-frame {
  max-width: var(--max);
  margin: 0 auto;
}

.product-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.24);
  box-shadow: 16px 16px 0 var(--red);
}

.product-frame figcaption {
  margin-top: 20px;
  color: rgba(255,255,255,.5);
  font: 700 10px/1.4 Consolas, monospace;
  text-transform: uppercase;
}

.feature-ledger,
.release-section {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 100px 0;
}

.section-intro { max-width: 850px; margin-bottom: 52px; }

.ledger-list {
  margin: 0;
  padding: 0;
  border-top: 2px solid var(--ink);
  list-style: none;
}

.ledger-list li {
  display: grid;
  grid-template-columns: 80px 260px 1fr;
  min-height: 128px;
  align-items: center;
  border-bottom: 1px solid var(--ink);
}

.ledger-no { font: 800 13px/1 Consolas, monospace; }
.ledger-list h3 { margin: 0; font: 850 23px/1.1 "Bahnschrift", sans-serif; }
.ledger-list p { max-width: 650px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.75; }

.install-strip {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 50px 80px;
  padding: 78px max(20px, calc((100vw - var(--max)) / 2));
  color: #fff;
  background: var(--red);
}

.section-number-dark { color: var(--ink); }
.install-strip ol { margin: 0; padding: 0; list-style: none; }
.install-strip li { display: flex; min-height: 58px; align-items: center; gap: 16px; border-bottom: 1px solid rgba(16,17,18,.35); font-weight: 700; }
.install-strip li span { display: grid; width: 28px; height: 28px; place-items: center; color: var(--red); font: 900 11px/1 Consolas, monospace; background: var(--ink); }
.install-strip > a { grid-column: 2; justify-self: start; font-weight: 900; text-underline-offset: 6px; }

.release-heading { display: flex; max-width: none; align-items: end; justify-content: space-between; gap: 20px; }
.checksum-button { min-height: 40px; padding: 0 13px; color: #fff; font: 800 11px/1 Consolas, monospace; border: 0; background: var(--ink); cursor: pointer; }
.checksum-button:hover, .checksum-button:focus-visible { color: var(--ink); outline: 3px solid var(--ink); background: var(--cyan); }
.checksum-row { display: grid; grid-template-columns: 180px 1fr; padding: 18px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.checksum-row span { color: var(--muted); font-size: 12px; font-weight: 700; }
.checksum-row code { overflow: hidden; font: 700 11px/1.4 Consolas, monospace; text-overflow: ellipsis; white-space: nowrap; }
.release-list article { display: grid; grid-template-columns: 150px 180px 1fr; min-height: 82px; align-items: center; border-bottom: 1px solid var(--line); }
.release-list strong { font: 900 18px/1 Consolas, monospace; }
.release-list time { color: var(--muted); font: 700 11px/1 Consolas, monospace; }
.release-list p { margin: 0; color: #393a37; line-height: 1.6; }

.site-footer {
  display: grid;
  grid-template-columns: 260px 1fr auto auto;
  min-height: 150px;
  padding: 32px max(20px, calc((100vw - var(--max)) / 2));
  align-items: center;
  gap: 34px;
  color: #fff;
  background: var(--ink);
}

.site-footer > div:first-child { display: flex; align-items: center; gap: 14px; }
.brand-mark-small { width: 30px; height: 30px; font-size: 10px; box-shadow: 3px 3px 0 var(--red); }
.site-footer p { max-width: 560px; margin: 0; color: rgba(255,255,255,.52); font-size: 12px; line-height: 1.65; }
.footer-links { display: flex; gap: 18px; }
.site-footer a { color: #fff; font-size: 12px; font-weight: 700; text-underline-offset: 5px; }
.site-footer > span { color: rgba(255,255,255,.4); font: 700 11px/1 Consolas, monospace; }

.document-page { width: min(calc(100% - 40px), 1080px); margin: 0 auto; }
.document-hero { padding: 86px 0 76px; border-bottom: 2px solid var(--ink); }
.document-hero h1 { font-size: clamp(58px, 9vw, 112px); }
.document-hero p { max-width: 720px; margin: 22px 0 30px; color: var(--muted); font-size: 17px; line-height: 1.8; }
.document-hero .button { width: fit-content; }
.instruction-block { display: grid; grid-template-columns: 170px 1fr; gap: 45px; padding: 74px 0; border-bottom: 1px solid var(--ink); }
.instruction-label { padding-top: 9px; color: var(--red); font: 900 11px/1 Consolas, monospace; letter-spacing: .12em; text-transform: uppercase; }
.instruction-content { min-width: 0; }
.instruction-content h2 { margin: 0 0 34px; font: 900 38px/1 "Bahnschrift Condensed", Impact, sans-serif; }
.instruction-content > p { color: var(--muted); line-height: 1.8; }
.instruction-content .lead { color: var(--ink); font-size: 20px; font-weight: 800; }
.steps { margin: 0; padding: 0; list-style: none; }
.steps li { display: grid; grid-template-columns: 52px 1fr; gap: 20px; padding: 24px 0; border-top: 1px solid var(--line); }
.steps li > span { display: grid; width: 38px; height: 38px; place-items: center; color: var(--ink); font: 900 11px/1 Consolas, monospace; background: var(--cyan); }
.steps h3 { margin: 0 0 8px; font-size: 18px; }
.steps p { margin: 0; color: var(--muted); line-height: 1.75; }
code, pre { font-family: Consolas, "Courier New", monospace; }
.steps code, .legal-copy code { padding: 2px 5px; border: 1px solid var(--line); background: rgba(255,255,255,.45); }
.warning-block { position: relative; }
.warning-block::before { position: absolute; inset: 26px -24px; z-index: -1; border: 2px solid var(--ink); background: #f8c950; content: ""; transform: rotate(-.35deg); }
.callout { margin-top: 25px; padding: 20px; border-left: 6px solid var(--red); background: var(--ink); color: #fff; }
.callout p { margin: 8px 0 0; color: rgba(255,255,255,.65); line-height: 1.7; }
pre { max-width: 100%; overflow-x: auto; padding: 18px; color: #fff; background: var(--panel); }
.document-checksum { grid-template-columns: 150px 1fr; margin-top: 20px; }
.document-checksum code { white-space: normal; overflow-wrap: anywhere; }
.compact-footer { grid-template-columns: 1fr auto auto; min-height: 96px; }

.privacy-page { max-width: 1080px; }
.privacy-summary { display: grid; grid-template-columns: repeat(3, 1fr); margin: 52px 0 74px; border: 2px solid var(--ink); }
.privacy-summary article { min-height: 190px; padding: 24px; border-right: 1px solid var(--ink); }
.privacy-summary article:last-child { border-right: 0; }
.privacy-summary span { color: var(--red); font: 900 11px/1 Consolas, monospace; }
.privacy-summary strong { display: block; margin: 28px 0 10px; font-size: 21px; }
.privacy-summary p { margin: 0; color: var(--muted); line-height: 1.65; }
.legal-copy { max-width: 820px; margin: 0 auto; padding-bottom: 100px; }
.legal-copy h2 { margin: 48px 0 13px; font: 900 27px/1.15 "Bahnschrift", sans-serif; }
.legal-copy p { margin: 0; color: #484944; font-size: 15px; line-height: 1.95; }

@media (prefers-reduced-motion: no-preference) {
  .hero > * { animation: reveal 520ms both; }
  .hero > *:nth-child(2) { animation-delay: 70ms; }
  .hero > *:nth-child(3) { animation-delay: 120ms; }
  .hero > *:nth-child(4) { animation-delay: 170ms; }
  .hero > *:nth-child(5) { animation-delay: 220ms; }
  @keyframes reveal { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
}

@media (max-width: 820px) {
  .site-header { min-height: 72px; }
  .site-header nav { gap: 14px; }
  .site-header nav a { font-size: 11px; }
  .hero { min-height: 0; padding: 64px 0 72px; }
  .hero h1 { font-size: clamp(60px, 15vw, 104px); }
  .release-ticket { grid-template-columns: 58px 1fr 1fr; }
  .release-ticket > div:last-child { grid-column: 2 / 4; border-top: 1px solid rgba(255,255,255,.16); }
  .proof-heading { align-items: start; flex-direction: column; }
  .proof-tags { justify-content: flex-start; }
  .ledger-list li { grid-template-columns: 56px 190px 1fr; }
  .install-strip { grid-template-columns: 1fr; }
  .install-strip > a { grid-column: 1; }
  .site-footer { grid-template-columns: 1fr auto; }
  .site-footer p { grid-column: 1 / 3; }
  .instruction-block { grid-template-columns: 130px 1fr; gap: 25px; }
}

@media (max-width: 560px) {
  .site-header { width: min(calc(100% - 28px), var(--max)); align-items: flex-start; padding: 15px 0; }
  .brand > span:last-child { display: none; }
  .site-header nav { align-self: center; gap: 12px; }
  .hero, .feature-ledger, .release-section, .document-page { width: calc(100% - 28px); }
  .hero { padding-top: 48px; }
  .hero::after { width: 280px; height: 280px; right: -150px; }
  .hero h1 { margin-top: 20px; font-size: clamp(52px, 15vw, 68px); line-height: .87; }
  .hero h1 .hero-outline { margin-left: .12em; }
  .hero-summary { font-size: 15px; line-height: 1.75; }
  .release-ticket { grid-template-columns: 50px 1fr; margin-top: 34px; }
  .release-ticket > div { min-height: 70px; padding: 13px 15px; }
  .release-ticket > div:nth-child(3), .release-ticket > div:last-child { grid-column: 2; border-top: 1px solid rgba(255,255,255,.16); }
  .hero-actions { flex-direction: column; }
  .button { width: 100%; }
  .product-proof { padding-top: 66px; padding-bottom: 78px; }
  .proof-heading h2, .section-intro h2, .install-strip h2 { font-size: 42px; }
  .product-frame img { box-shadow: 8px 8px 0 var(--red); }
  .feature-ledger, .release-section { padding: 74px 0; }
  .ledger-list li { grid-template-columns: 42px 1fr; padding: 22px 0; }
  .ledger-list p { grid-column: 2; margin-top: 10px; font-size: 13px; }
  .install-strip { padding-top: 62px; padding-bottom: 62px; gap: 34px; }
  .release-heading { align-items: start; flex-direction: column; }
  .checksum-row { grid-template-columns: 1fr; gap: 10px; }
  .release-list article { grid-template-columns: 100px 1fr; padding: 18px 0; }
  .release-list p { grid-column: 1 / 3; margin-top: 10px; }
  .site-footer { grid-template-columns: 1fr; gap: 20px; padding-top: 38px; padding-bottom: 38px; }
  .site-footer p, .site-footer > * { grid-column: 1; }
  .document-hero { padding: 60px 0 54px; }
  .document-hero h1 { font-size: 62px; }
  .instruction-block { grid-template-columns: 1fr; gap: 20px; padding: 56px 0; }
  .instruction-label { border-bottom: 1px solid var(--red); padding-bottom: 10px; }
  .warning-block::before { inset: 18px -7px; }
  .steps li { grid-template-columns: 42px 1fr; gap: 14px; }
  .privacy-summary { grid-template-columns: 1fr; }
  .privacy-summary article { min-height: 0; border-right: 0; border-bottom: 1px solid var(--ink); }
  .privacy-summary article:last-child { border-bottom: 0; }
  .compact-footer { grid-template-columns: 1fr; }
}
