:root {
  --ink: #15282b;
  --ink-soft: #223d40;
  --paper: #f4efe4;
  --paper-light: #faf6ec;
  --paper-deep: #e8e0d0;
  --red: #b4432e;
  --red-deep: #933322;
  --thread: #b9a98e;
  --muted: #6d7068;
  --line: #d8cebc;
  --moss: #2f6b57;
  --serif: "Songti SC", "STSong", "Noto Serif SC", "SimSun", serif;
  --sans: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", "Segoe UI", sans-serif;
  --mono: "Consolas", "SFMono-Regular", "Cascadia Mono", monospace;
  --wrap: 1180px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image: repeating-linear-gradient(
    0deg,
    rgba(21, 40, 43, 0.016) 0,
    rgba(21, 40, 43, 0.016) 1px,
    transparent 1px,
    transparent 7px
  );
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  z-index: 0;
  top: 0;
  bottom: 0;
  left: 20px;
  width: 3px;
  background: repeating-linear-gradient(
    to bottom,
    var(--red) 0,
    var(--red) 18px,
    transparent 18px,
    transparent 40px
  );
  opacity: 0.55;
  pointer-events: none;
}

::selection {
  color: var(--paper-light);
  background: var(--red);
}

img { max-width: 100%; height: auto; }

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

a:hover { color: var(--red); }

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: -80px;
  left: 20px;
  padding: 10px 16px;
  color: var(--paper-light);
  background: var(--ink);
}

.skip-link:focus { top: 12px; }

.wrap {
  width: min(var(--wrap), calc(100% - 64px));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

/* Header ------------------------------------------------------------------ */
.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid transparent;
  background: rgba(244, 239, 228, 0.9);
  backdrop-filter: blur(14px);
  transition: border-color 180ms ease, background-color 180ms ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(244, 239, 228, 0.97);
}

.header-inner {
  display: flex;
  align-items: center;
  min-height: 72px;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 17px;
  letter-spacing: 0.02em;
}

.brand img { display: block; }

.brand b {
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.01em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
  font-size: 13.5px;
  color: var(--muted);
}

.site-nav a { text-decoration: none; }

.site-nav a:hover { color: var(--ink); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid var(--red);
  border-radius: 2px;
  color: var(--paper-light);
  background: var(--red);
  box-shadow: 5px 5px 0 rgba(21, 40, 43, 0.13);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}

.button:hover {
  color: var(--paper-light);
  background: var(--red-deep);
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 rgba(21, 40, 43, 0.13);
}

.button-small {
  min-height: 36px;
  padding: 0 14px;
  font-size: 12.5px;
  box-shadow: 3px 3px 0 rgba(21, 40, 43, 0.12);
}

.button-ghost {
  color: var(--ink);
  background: transparent;
  border-color: var(--ink);
  box-shadow: none;
}

.button-ghost:hover {
  color: var(--paper-light);
  background: var(--ink);
  transform: none;
  box-shadow: none;
}

.button-outline {
  color: var(--ink);
  background: transparent;
  border-color: var(--ink);
  box-shadow: none;
}

.button-outline:hover {
  color: var(--paper-light);
  background: var(--ink);
  transform: none;
  box-shadow: none;
}

.button-light {
  color: var(--ink);
  background: var(--paper-light);
  border-color: var(--paper-light);
}

.button-light:hover {
  color: var(--paper-light);
  background: var(--red);
  border-color: var(--red);
}

/* Hero -------------------------------------------------------------------- */
.hero {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  align-items: center;
  gap: clamp(36px, 5vw, 72px);
  padding-top: 84px;
  padding-bottom: 66px;
}

.hero-copy {
  animation: rise 620ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero-media {
  animation: rise 720ms 90ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

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

h1 {
  margin-bottom: 26px;
  font-family: var(--serif);
  font-size: clamp(48px, 6vw, 78px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.seal-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.54em;
  height: 0.54em;
  margin-left: 0.12em;
  border: 1px solid rgba(244, 239, 228, 0.55);
  border-radius: 2px;
  color: var(--paper-light);
  background: var(--red);
  font-family: var(--sans);
  font-size: 0.36em;
  font-weight: 700;
  line-height: 1;
  vertical-align: 0.18em;
  transform: rotate(-4deg);
}

.lead {
  max-width: 31em;
  margin-bottom: 30px;
  color: #3e5052;
  font-size: 16.5px;
  line-height: 1.85;
}

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

.small-note {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 11.5px;
  letter-spacing: 0.04em;
}

.bound-shot {
  position: relative;
  padding: 9px 9px 9px 40px;
  border: 1px solid var(--ink);
  background: var(--paper-light);
  box-shadow: 14px 14px 0 var(--paper-deep);
}

.bound-shot img {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
}

.stitches {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 11px;
  width: 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 42px;
}

.stitches i {
  display: block;
  width: 7px;
  height: 30px;
  border-radius: 2px;
  background: var(--red);
}

.caption {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 11.5px;
  letter-spacing: 0.02em;
}

/* Claims ------------------------------------------------------------------ */
.claims {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 84px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.claims article {
  padding: 27px 30px 26px;
}

.claims article + article {
  border-left: 1px solid var(--line);
}

.claims h2 {
  margin-bottom: 8px;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.claims p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.75;
}

/* Showcase ---------------------------------------------------------------- */
.showcase { padding-bottom: 28px; }

.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 48px;
  margin-bottom: 26px;
}

.section-head h2 {
  margin-bottom: 0;
  font-family: var(--serif);
  font-size: clamp(36px, 4.4vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.section-head p {
  max-width: 30em;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.8;
}

.show-row {
  display: grid;
  grid-template-columns: 1.28fr 0.72fr;
  align-items: center;
  gap: clamp(36px, 5vw, 68px);
  padding: 62px 0;
  border-top: 1px solid var(--line);
}

.show-row.reverse {
  grid-template-columns: 0.72fr 1.28fr;
}

.show-row.reverse .shot { order: 2; }
.show-row.reverse .show-copy { order: 1; }

.shot {
  position: relative;
  margin: 0;
  padding: 8px;
  border: 1px solid var(--ink);
  background: var(--paper-light);
  box-shadow: 10px 10px 0 var(--paper-deep);
}

.shot::before {
  content: "";
  position: absolute;
  top: 18px;
  left: -1px;
  width: 3px;
  height: 46px;
  background: var(--red);
}

.shot img {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
}

.tag {
  display: inline-block;
  margin-bottom: 14px;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--red);
  color: var(--red);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
}

.show-copy h3 {
  margin-bottom: 14px;
  font-family: var(--serif);
  font-size: clamp(25px, 2.6vw, 32px);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.02em;
}

.show-copy > p {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.85;
}

.ticks {
  margin: 0;
  padding: 0;
  list-style: none;
  color: #405254;
  font-size: 13.5px;
}

.ticks li {
  position: relative;
  padding: 5px 0 5px 18px;
}

.ticks li::before {
  content: "";
  position: absolute;
  top: 0.95em;
  left: 0;
  width: 6px;
  height: 6px;
  background: var(--red);
}

/* Steps ------------------------------------------------------------------- */
.steps {
  margin-top: 40px;
  padding: 82px 0 76px;
  color: var(--paper);
  background: var(--ink);
}

.steps .section-head h2 { color: var(--paper-light); }

.steps .section-head p { color: #b9b4a6; }

.step-list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  margin: 46px 0 0;
  padding: 0;
  list-style: none;
}

.step-list::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 16px;
  right: 16px;
  border-top: 1px dashed rgba(244, 239, 228, 0.28);
}

.step-list li {
  position: relative;
  padding-right: 20px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 22px;
  border: 1px solid rgba(244, 239, 228, 0.42);
  border-radius: 50%;
  color: var(--paper-light);
  background: var(--red);
  font-family: var(--serif);
  font-size: 21px;
}

.step-list h3 {
  margin-bottom: 8px;
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 700;
}

.step-list p {
  max-width: 23em;
  margin-bottom: 0;
  color: #b9b4a6;
  font-size: 13.5px;
  line-height: 1.8;
}

.steps-shot {
  margin-top: 58px;
  padding: 8px;
  border: 1px solid rgba(244, 239, 228, 0.26);
  background: rgba(250, 246, 236, 0.04);
}

.steps-shot img {
  display: block;
  width: 100%;
  border: 1px solid rgba(244, 239, 228, 0.18);
}

/* Download ---------------------------------------------------------------- */
.download {
  padding-top: 78px;
  padding-bottom: 30px;
}

.download-panel {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  padding: 52px 54px;
  border: 1px solid var(--ink);
  background: #efe6d4;
  box-shadow: 14px 14px 0 var(--red);
  overflow: hidden;
}

.version {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--red);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.download-panel h2 {
  max-width: 16em;
  margin-bottom: 14px;
  font-family: var(--serif);
  font-size: clamp(32px, 3.7vw, 44px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.download-note {
  max-width: 42em;
  margin-bottom: 24px;
  color: #4f5c5b;
  font-size: 14px;
  line-height: 1.8;
}

.download-note code { font-family: var(--mono); font-size: 0.92em; }

.checksum {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 10.5px;
}

.checksum span {
  font-family: var(--mono);
  letter-spacing: 0.05em;
}

.checksum code {
  max-width: 100%;
  overflow-wrap: anywhere;
  color: #56615e;
  font-family: var(--mono);
  font-size: 10px;
}

.checksum button {
  padding: 3px 8px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: transparent;
  font-family: var(--sans);
  font-size: 10px;
  cursor: pointer;
}

.checksum button:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.download-seal {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 110px;
  height: 110px;
  border: 2px solid rgba(244, 239, 228, 0.7);
  border-radius: 3px;
  color: var(--paper-light);
  background: var(--red);
  box-shadow: 8px 8px 0 rgba(21, 40, 43, 0.12);
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 700;
  line-height: 1.05;
  writing-mode: vertical-rl;
  letter-spacing: 0.12em;
  transform: rotate(3deg);
  opacity: 0.92;
}

.smart-note {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 11.5px;
}

/* FAQ --------------------------------------------------------------------- */
.faq {
  padding-top: 52px;
  padding-bottom: 70px;
}

.faq h2 {
  margin-bottom: 20px;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.faq details {
  border-top: 1px solid var(--line);
}

.faq details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  position: relative;
  padding: 17px 42px 17px 0;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  position: absolute;
  top: 15px;
  right: 4px;
  color: var(--red);
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
}

.faq details[open] summary::after { content: "−"; }

.faq details p {
  max-width: 48em;
  margin: -4px 0 20px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.85;
}

/* Footer ------------------------------------------------------------------ */
.site-footer {
  color: #b9b4a6;
  background: var(--ink);
  font-size: 12px;
}

.footer-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 28px;
  padding-top: 26px;
  padding-bottom: 26px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--paper-light);
  font-family: var(--serif);
  font-size: 15px;
}

.footer-brand img { display: block; }

.footer-inner p { margin: 0; }

.footer-links {
  display: flex;
  gap: 18px;
  margin-left: auto;
}

.footer-links a { color: #d7cdbb; text-decoration: none; }
.footer-links a:hover { color: var(--paper-light); }

.copyright { color: #7f857d; }

/* Reveal ------------------------------------------------------------------ */
/* Responsive -------------------------------------------------------------- */
@media (max-width: 1120px) {
  body::before { display: none; }

  .hero { gap: 38px; }
  .show-row, .show-row.reverse { gap: 36px; }
  .download-panel { padding: 42px; }
}

@media (max-width: 900px) {
  .wrap { width: min(var(--wrap), calc(100% - 40px)); }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 54px;
    padding-bottom: 42px;
  }

  .hero-media { margin-top: 12px; }
  .hero-copy { max-width: 620px; }

  .claims {
    grid-template-columns: 1fr;
    margin-bottom: 56px;
  }

  .claims article + article {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 12px;
  }

  .show-row, .show-row.reverse {
    grid-template-columns: 1fr;
    padding: 38px 0;
  }

  .show-row.reverse .shot,
  .show-row.reverse .show-copy { order: initial; }

  .show-copy { max-width: 620px; }

  .step-list {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 34px;
  }

  .step-list::before {
    top: 12px;
    bottom: 12px;
    left: 27px;
    right: auto;
    border-top: 0;
    border-left: 1px dashed rgba(244, 239, 228, 0.28);
  }

  .step-list li { padding-left: 80px; padding-right: 0; }

  .step-number {
    position: absolute;
    top: 0;
    left: 0;
    margin-bottom: 0;
  }

  .download { padding-top: 54px; }

  .download-panel {
    grid-template-columns: 1fr;
    padding: 34px 28px;
    box-shadow: 9px 9px 0 var(--red);
  }

  .download-seal {
    position: absolute;
    right: 24px;
    bottom: 18px;
    width: 74px;
    height: 74px;
    font-size: 24px;
    opacity: 0.22;
  }

  .footer-links { margin-left: 0; width: 100%; }
}

@media (max-width: 640px) {
  .header-inner { min-height: 62px; gap: 14px; }
  .site-nav { display: none; }
  .header-inner .button-small { margin-left: auto; }
  .brand { font-size: 15px; }
  .brand b { font-size: 13px; }

  .hero { padding-top: 42px; }
  h1 { font-size: clamp(40px, 12.5vw, 54px); margin-bottom: 20px; }
  .lead { font-size: 15px; }
  .actions .button { flex: 1 1 150px; }
  .bound-shot { padding-left: 30px; box-shadow: 8px 8px 0 var(--paper-deep); }
  .stitches { left: 8px; gap: 30px; }
  .stitches i { width: 5px; height: 22px; }

  .claims article { padding: 22px 4px; }
  .section-head h2 { font-size: 36px; }
  .show-copy h3 { font-size: 25px; }
  .steps { padding: 56px 0 54px; }
  .steps-shot { margin-top: 38px; }
  .download-panel h2 { font-size: 31px; }
  .checksum code { width: 100%; }
  .faq { padding-top: 38px; padding-bottom: 46px; }
  .footer-inner { gap: 12px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}
