:root {
  --paper: #f3f5f8;
  --surface: #ffffff;
  --ink: #111d2f;
  --muted: #657187;
  --line: #d6dde7;
  --line-strong: #b5c2d3;
  --green: #2f5f9d;
  --green-dark: #091a33;
  --green-soft: #e6edf7;
  --brass: #8a6426;
  --night: #071426;
  --mono: Consolas, "SFMono-Regular", "Liberation Mono", monospace;
  --sans: "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
body.dialog-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; font: inherit; }
button, summary { cursor: pointer; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-weight: 650; line-height: 1.22; letter-spacing: 0; }
ul, ol { margin: 0; padding: 0; }
svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}
.container { width: min(1200px, calc(100% - 64px)); margin-inline: auto; }
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 8px 14px;
  background: var(--ink);
  color: white;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 4px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; min-width: 0; }
.brand img { border-radius: 10%; }
.brand-name { font-size: 20px; font-weight: 700; line-height: 1; letter-spacing: 0; }
.brand-section { margin-left: 5px; padding-left: 16px; border-left: 1px solid var(--line-strong); color: var(--muted); font-size: 13px; }
.main-nav { display: flex; align-items: center; gap: 32px; font-size: 14px; }
.main-nav a { position: relative; padding-block: 24px; color: var(--muted); }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--ink); }
.main-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--green);
}
.main-nav .nav-donate { padding: 7px 16px; border: 1px solid var(--line-strong); color: var(--ink); }
.main-nav .nav-donate:hover { border-color: var(--green); color: var(--green); }
.main-nav .nav-donate::after { display: none; }
.icon-button {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
}
.menu-toggle { display: none; }

.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 480px); gap: 80px; align-items: center; padding-block: 76px 72px; }
.eyebrow { margin-bottom: 18px; color: var(--brass); font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 1.5px; line-height: 1.5; }
.hero h1 { max-width: 650px; font-size: 64px; line-height: 1.12; }
.hero-intro { max-width: 580px; margin-top: 26px; color: var(--muted); font-size: 18px; line-height: 1.85; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 26px; margin-top: 34px; }
.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 19px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.4;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}
.button-primary { background: var(--green); color: white; }
.button-primary:hover { background: var(--green-dark); }
.button-secondary { border-color: var(--line-strong); background: transparent; color: var(--ink); }
.button-secondary:hover { border-color: var(--green); color: var(--green); }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--green); font-size: 14px; font-weight: 650; }
.text-link:hover { color: var(--green-dark); text-decoration: underline; text-underline-offset: 5px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; color: var(--muted); font-family: var(--mono); font-size: 11px; }
.hero-meta span { color: var(--line-strong); }
.hero-figure { min-width: 0; border: 1px solid var(--line); background: var(--surface); }
.hero-image { display: block; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; }
.screenshot-button { position: relative; padding: 0; border: 0; background: var(--surface); cursor: zoom-in; }
.hero-figure figcaption { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 15px; border-top: 1px solid var(--line); color: var(--muted); font-family: var(--mono); font-size: 10px; }
.status-dot { display: inline-flex; align-items: center; gap: 7px; color: var(--brass); }
.status-dot::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--brass); }

.facts { border-block: 1px solid var(--line); }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts-grid > div { display: flex; flex-direction: column; gap: 2px; padding: 24px 28px; border-left: 1px solid var(--line); }
.facts-grid > div:first-child { padding-left: 0; border-left: 0; }
.facts-grid strong { font-family: var(--mono); font-size: 19px; font-weight: 500; }
.facts-grid span { color: var(--muted); font-size: 12px; }

.section { padding-block: 88px; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 42px; }
.section-heading .eyebrow { margin-bottom: 12px; }
.section-heading h2 { font-size: 38px; }
.section-heading > p { max-width: 400px; color: var(--muted); font-size: 14px; text-align: right; }
.tool-list { border-bottom: 1px solid var(--line); }
.tool-row { display: grid; grid-template-columns: 250px minmax(0, 1fr) 172px; gap: 34px; align-items: center; padding-block: 36px; border-top: 1px solid var(--line); }
.tool-image { width: 250px; aspect-ratio: 16 / 10; overflow: hidden; border: 1px solid var(--line); }
.tool-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 200ms ease; }
.tool-image:hover img { transform: scale(1.025); }
.tool-image > span { position: absolute; right: 8px; bottom: 8px; padding: 3px 7px; background: var(--night); color: white; font-size: 10px; opacity: 0; transition: opacity 150ms ease; }
.tool-image:hover > span, .tool-image:focus-visible > span { opacity: 1; }
.tool-content { min-width: 0; }
.tool-kicker { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 10px; color: var(--muted); font-family: var(--mono); font-size: 10px; }
.tag { display: inline-flex; padding: 2px 7px; border: 1px solid var(--line-strong); border-radius: 3px; color: var(--muted); font-family: var(--sans); font-size: 10px; line-height: 1.5; }
.tag-stable { border-color: #afc2dd; background: var(--green-soft); color: var(--green); }
.tag-research { border-color: #d5bf93; color: var(--brass); }
.tool-content h3 { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; margin-bottom: 13px; font-size: 26px; }
.tool-content h3 span { color: var(--muted); font-family: var(--mono); font-size: 13px; font-weight: 400; }
.tool-content > p { max-width: 610px; color: #47556b; font-size: 14px; }
.tool-points { display: grid; gap: 3px; margin-top: 13px; color: var(--muted); font-size: 12px; list-style: none; }
.tool-points li { position: relative; padding-left: 13px; }
.tool-points li::before { content: ""; position: absolute; top: 11px; left: 0; width: 4px; height: 4px; background: var(--line-strong); }
.tool-download { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.tool-download .button { width: 100%; }
.platform { color: var(--muted); font-family: var(--mono); font-size: 9px; text-align: center; }
.file-size { color: var(--muted); font-family: var(--mono); font-size: 11px; text-align: center; }
.checksum-note { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 28px; padding: 20px 22px; border: 1px solid var(--line); background: var(--surface); }
.checksum-note > div { display: flex; align-items: center; gap: 16px; }
.checksum-note svg { width: 28px; height: 28px; color: var(--green); }
.checksum-note p { color: var(--muted); font-size: 12px; line-height: 1.65; }
.checksum-note strong { color: var(--ink); font-size: 13px; }
.checksum-note .text-link { flex: 0 0 auto; }

.guide-section { background: #e9eef5; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; list-style: none; }
.steps li { padding-top: 20px; border-top: 1px solid var(--line-strong); }
.steps li > span { color: var(--green); font-family: var(--mono); font-size: 11px; }
.steps h3 { margin-top: 15px; margin-bottom: 10px; font-size: 20px; }
.steps p { color: var(--muted); font-size: 13px; }
.faq { max-width: 900px; margin-top: 74px; }
.faq h2 { margin-bottom: 22px; font-size: 28px; }
.faq details { border-top: 1px solid var(--line-strong); }
.faq details:last-child { border-bottom: 1px solid var(--line-strong); }
.faq summary { position: relative; padding: 19px 36px 19px 0; font-size: 15px; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; top: 16px; right: 4px; color: var(--green); font-family: var(--mono); font-size: 20px; font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { max-width: 760px; padding: 0 0 22px; color: var(--muted); font-size: 13px; }

.support-band { background: var(--green-dark); color: white; }
.support-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-block: 48px; }
.support-inner .eyebrow { margin-bottom: 10px; color: #d6bc87; }
.support-inner h2 { font-size: 30px; }
.support-inner p:last-child { margin-top: 8px; color: #c3d0e0; font-size: 13px; }
.support-inner .button-secondary { flex: 0 0 auto; border-color: #8298b6; color: white; }
.support-inner .button-secondary:hover { border-color: white; background: white; color: var(--green-dark); }

.site-footer { background: var(--night); color: #e4eaf2; }
.footer-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 48px; align-items: center; padding-block: 44px; }
.footer-brand { margin-bottom: 12px; }
.footer-grid > div:first-child > p { color: #9aa9bd; font-size: 12px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; font-size: 12px; }
.footer-links a { color: #c2cfdf; }
.footer-links a:hover { color: white; }
.footer-note { color: #9aa9bd; font-size: 11px; text-align: right; }

.screenshot-dialog { width: min(1120px, calc(100% - 40px)); max-width: none; max-height: calc(100dvh - 40px); padding: 0; border: 1px solid var(--line-strong); border-radius: 4px; background: var(--surface); color: var(--ink); overflow: auto; }
.screenshot-dialog::backdrop { background: rgb(5 13 27 / 78%); }
.dialog-bar { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 56px; padding: 8px 12px 8px 20px; border-bottom: 1px solid var(--line); background: var(--surface); }
.dialog-bar h2 { font-size: 15px; }
.screenshot-dialog > img { width: 100%; max-height: calc(100dvh - 100px); object-fit: contain; }

.page-hero { padding-block: 72px 56px; border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 760px; font-size: 50px; }
.page-hero > p:last-child { max-width: 700px; margin-top: 22px; color: var(--muted); font-size: 17px; }
.page-section { padding-block: 64px 80px; }
.about-intro { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 64px; }
.side-label { color: var(--green); font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 1px; }
.about-copy { max-width: 760px; }
.about-copy h2 { margin-bottom: 18px; font-size: 28px; }
.about-copy p { color: var(--muted); }
.about-copy p + p { margin-top: 16px; }
.about-tools { margin-top: 58px; border-top: 1px solid var(--line-strong); }
.about-tool { display: grid; grid-template-columns: 180px minmax(0, 1fr) 150px; gap: 28px; padding-block: 22px; border-bottom: 1px solid var(--line); align-items: baseline; }
.about-tool strong { font-size: 17px; }
.about-tool p { color: var(--muted); font-size: 13px; }
.about-tool span { color: var(--muted); font-family: var(--mono); font-size: 11px; text-align: right; }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 64px; }
.principles article { padding-top: 20px; border-top: 2px solid var(--green); }
.principles h3 { margin-bottom: 10px; font-size: 18px; }
.principles p { color: var(--muted); font-size: 13px; }
.license-block { margin-top: 64px; padding: 26px 0; border-block: 1px solid var(--line); }
.license-block h2 { margin-bottom: 12px; font-size: 22px; }
.license-block p { max-width: 780px; color: var(--muted); font-size: 13px; }
.license-block a { color: var(--green); text-decoration: underline; text-underline-offset: 4px; }
.updated { margin-top: 22px; color: var(--muted); font-family: var(--mono); font-size: 11px; }
.about-user-text { max-width: none; color: var(--ink); font-size: 18px; line-height: 2.1; text-align: left; }
.about-user-text p { text-indent: 2em; }
.about-user-text p + p { margin-top: 16px; }
.about-user-text a { color: var(--green); text-decoration: underline; text-underline-offset: 4px; overflow-wrap: anywhere; }
.donation-qr-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 28px; }
.donation-qr-grid figure { min-width: 0; }
.donation-qr-grid img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 4px; }
.donation-qr-grid figcaption { margin-top: 10px; color: var(--muted); font-size: 12px; text-align: center; }
.donation-qr-grid a:hover img { border-color: var(--green); }

.donate-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 72px; align-items: start; }
.donate-copy h2 { margin-bottom: 18px; font-size: 28px; }
.donate-copy > p { max-width: 680px; color: var(--muted); }
.donate-note { margin-top: 26px; padding: 20px 22px; border-left: 3px solid var(--brass); background: #f1ebdf; }
.donate-note strong { display: block; margin-bottom: 5px; font-size: 14px; }
.donate-note p { color: #665a45; font-size: 13px; }
.donate-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.share-status { min-height: 25px; margin-top: 12px; color: var(--green); font-size: 12px; }
.donate-aside { padding: 26px; border: 1px solid var(--line); background: var(--surface); }
.donate-aside svg { width: 28px; height: 28px; margin-bottom: 20px; color: var(--green); }
.donate-aside h2 { margin-bottom: 12px; font-size: 20px; }
.donate-aside p { color: var(--muted); font-size: 13px; }
.donate-aside ul { display: grid; gap: 10px; margin-top: 20px; list-style: none; color: var(--muted); font-size: 12px; }
.donate-aside li { padding-top: 10px; border-top: 1px solid var(--line); }

@media (max-width: 1050px) {
  .hero { grid-template-columns: minmax(0, 1fr) 390px; gap: 46px; }
  .hero h1 { font-size: 54px; }
  .tool-row { grid-template-columns: 215px minmax(0, 1fr) 150px; gap: 24px; }
  .tool-image { width: 215px; }
  .footer-grid { grid-template-columns: 1fr auto; }
  .footer-note { grid-column: 1 / -1; text-align: left; }
}

@media (max-width: 780px) {
  .container { width: min(100% - 36px, 640px); }
  .header-inner { min-height: 64px; }
  .brand-name { font-size: 18px; }
  .brand-section { display: none; }
  .menu-toggle { display: inline-grid; }
  .main-nav { position: absolute; top: 64px; right: 0; left: 0; display: none; padding: 8px 18px 18px; border-bottom: 1px solid var(--line); background: var(--paper); }
  .main-nav.open { display: grid; }
  .main-nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .main-nav a[aria-current="page"]::after { display: none; }
  .main-nav .nav-donate { margin-top: 8px; padding: 10px 14px; border: 1px solid var(--line-strong); text-align: center; }
  .hero { grid-template-columns: 1fr; gap: 42px; padding-block: 52px 48px; }
  .hero h1 { font-size: 46px; }
  .hero-intro { font-size: 16px; }
  .hero-figure { width: min(100%, 560px); }
  .facts-grid { grid-template-columns: repeat(2, 1fr); }
  .facts-grid > div { padding: 18px; border-bottom: 1px solid var(--line); }
  .facts-grid > div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .facts-grid > div:nth-child(n + 3) { border-bottom: 0; }
  .section { padding-block: 62px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 16px; margin-bottom: 30px; }
  .section-heading h2 { font-size: 32px; }
  .section-heading > p { text-align: left; }
  .tool-row { grid-template-columns: 1fr; gap: 22px; padding-block: 32px; }
  .tool-image { width: 100%; aspect-ratio: 16 / 9; }
  .tool-content h3 { font-size: 24px; }
  .tool-download { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 18px; }
  .tool-download .platform { grid-column: 1 / -1; text-align: left; }
  .tool-download .button { width: auto; min-width: 145px; }
  .file-size { text-align: right; }
  .checksum-note { align-items: flex-start; flex-direction: column; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .faq { margin-top: 54px; }
  .support-inner { align-items: flex-start; flex-direction: column; padding-block: 40px; }
  .support-inner h2 { font-size: 26px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-note { grid-column: auto; }
  .page-hero { padding-block: 52px 42px; }
  .page-hero h1 { font-size: 40px; }
  .page-hero > p:last-child { font-size: 15px; }
  .page-section { padding-block: 48px 62px; }
  .about-user-text { font-size: 16px; }
  .about-intro { grid-template-columns: 1fr; gap: 18px; }
  .about-tool { grid-template-columns: 1fr auto; gap: 8px 18px; }
  .about-tool p { grid-column: 1 / -1; grid-row: 2; }
  .principles { grid-template-columns: 1fr; gap: 28px; }
  .donate-layout { grid-template-columns: 1fr; gap: 42px; }
  .donate-aside { max-width: 480px; }
  .donation-qr-grid { max-width: 430px; grid-template-columns: 1fr; }
}

@media (max-width: 430px) {
  .hero h1 { font-size: 40px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 20px; }
  .hero-actions .button { width: 100%; }
  .hero-figure figcaption { align-items: flex-start; flex-direction: column; gap: 2px; }
  .facts-grid strong { font-size: 16px; }
  .tool-download { grid-template-columns: 1fr; }
  .tool-download .button { width: 100%; }
  .file-size { text-align: left; }
  .checksum-note { padding: 18px; }
  .checksum-note > div { align-items: flex-start; }
  .footer-links { gap: 18px; }
  .donate-actions { flex-direction: column; }
  .donate-actions .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

.tool-image-fit img { object-fit: contain; background: #f2f2f2; }
.tool-quickstart { margin-top: 54px; }
.tool-quickstart .section-heading { margin-bottom: 28px; }
.quickstart-note { margin-top: 22px; color: var(--muted); font-size: 13px; }
.donate-feedback { margin-top: 20px; }
