:root {
  --ink: #243047;
  --ink-2: #3d4861;
  --soft-ink: #68738a;
  --muted: #99a1b2;
  --paper: #fffaf7;
  --paper-2: #eef7ff;
  --surface: #ffffff;
  --rose: #f7b6cd;
  --rose-deep: #c96a95;
  --sky: #9fc8f4;
  --mint: #cfe6ff;
  --sun: #ffe1ec;
  --violet: #b9b9ee;
  --blue-deep: #6b9bd8;
  --line: rgba(23, 33, 43, 0.11);
  --line-strong: rgba(23, 33, 43, 0.22);
  --max: 1180px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.78;
  overflow-x: hidden;
}

body::before {
  display: none;
  content: "";
  position: fixed;
  left: 28px;
  top: 156px;
  bottom: 92px;
  width: 1px;
  z-index: 0;
  pointer-events: none;
  background: rgba(159, 200, 244, 0.26);
}

body::after {
  display: none;
  content: "";
  position: fixed;
  left: 22px;
  top: 228px;
  z-index: 0;
  width: 12px;
  height: 58px;
  border-radius: 999px;
  background: rgba(207, 230, 255, 0.66);
  pointer-events: none;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

::selection {
  color: #fff;
  background: var(--rose-deep);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 250, 247, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(var(--max), calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
}

.brand,
.footer-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0;
}

.brand img,
.footer-title img {
  border-radius: 8px;
}

.brand img {
  width: 46px;
  height: 46px;
}

.brand span {
  font-size: 18px;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 8px;
  color: var(--soft-ink);
  font-size: 15px;
  scrollbar-width: none;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-links a {
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  white-space: nowrap;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.nav-links a:hover {
  color: var(--rose-deep);
  border-color: rgba(201, 106, 149, 0.18);
  background: rgba(255, 255, 255, 0.72);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.76);
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-direction: column;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.nav.is-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav.is-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.nav.is-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-download,
.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid rgba(23, 33, 43, 0.1);
  border-radius: 8px;
  color: #fff;
  background: var(--blue-deep);
  font-weight: 850;
  transition: transform 0.18s ease, background 0.18s ease;
}

.nav-download:hover,
.primary-link:hover {
  transform: translateY(-2px);
  background: var(--rose-deep);
}

.icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.hero,
.split-section,
.version-preview,
.library-section,
.download-section,
.sub-main,
.feature-grid,
.showcase-strip,
.comic-wall {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  position: relative;
  min-height: calc(100vh - 76px);
  padding: clamp(64px, 9vw, 118px) 0 clamp(48px, 7vw, 84px);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.78fr);
  align-items: center;
  gap: clamp(42px, 7vw, 94px);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 28px auto auto -82px;
  width: min(48vw, 560px);
  aspect-ratio: 1;
  background: url("../logo.webp") center / contain no-repeat;
  opacity: 0.055;
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--rose-deep);
  font-size: 14px;
  font-weight: 900;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: currentColor;
}

h1 {
  max-width: 860px;
  margin-bottom: 26px;
  font-size: clamp(46px, 7.4vw, 96px);
  line-height: 1.03;
  letter-spacing: 0;
}

h1 span {
  color: var(--rose-deep);
}

.hero-text,
.lead {
  color: var(--soft-ink);
  font-size: clamp(18px, 1.75vw, 21px);
}

.hero-text {
  max-width: 700px;
  margin-bottom: 34px;
}

.hero-actions,
.download-actions,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  border-bottom: 1px solid currentColor;
  font-weight: 850;
  transition: color 0.18s ease;
}

.text-link:hover {
  color: var(--rose-deep);
}

.text-link::after {
  content: "→";
  color: var(--rose-deep);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 680px;
  margin-top: 34px;
}

.hero-stats div {
  min-height: 92px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.hero-stats strong,
.metric-card strong {
  display: block;
  color: var(--ink);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.05;
}

.hero-stats span,
.metric-card span {
  display: block;
  margin-top: 8px;
  color: var(--soft-ink);
  font-size: 13px;
  line-height: 1.45;
}

.reader-preview {
  position: relative;
  z-index: 1;
  min-height: 690px;
  display: grid;
  align-items: center;
  justify-items: end;
}

.reader-preview::before,
.reader-preview::after {
  content: "";
  position: absolute;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
}

.reader-preview::before {
  right: -10px;
  bottom: 36px;
  width: 240px;
  height: 174px;
  transform: rotate(4deg);
}

.reader-preview::after {
  left: -20px;
  top: 70px;
  width: 150px;
  height: 220px;
  transform: rotate(-7deg);
  background: rgba(247, 182, 205, 0.72);
}

.hero-poster {
  position: relative;
  z-index: 2;
  width: min(418px, 100%);
  margin: 0;
  border: 1px solid rgba(23, 33, 43, 0.14);
  border-radius: 8px;
  background: var(--surface);
  transform: rotate(1.25deg);
}

.hero-poster img {
  width: 100%;
  height: auto;
  object-position: center top;
}

.reader-preview > p {
  color: var(--muted);
  font-size: 13px;
}

.cover-tile,
.cover-mini {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4.2;
  border: 1px solid rgba(23, 33, 43, 0.14);
  border-radius: 8px;
  background: var(--sky);
}

.cover-mini::before {
  content: "";
  position: absolute;
  inset: 12% 12% auto;
  height: 28%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.52);
}

.cover-mini::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 12%;
  height: 26%;
  border-radius: 8px;
  background: rgba(23, 33, 43, 0.15);
}

.cover-mini:nth-child(2) {
  background-color: var(--rose);
}

.cover-mini:nth-child(3) {
  background-color: var(--mint);
}

.cover-mini:nth-child(4) {
  background-color: var(--sun);
}

.reader-preview > p {
  position: relative;
  z-index: 2;
  width: min(438px, 100%);
  margin: 14px 0 0 auto;
  padding: 0 6px;
}

.genre-rail {
  width: 100%;
  padding: 17px max(16px, calc((100vw - var(--max)) / 2));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.82);
  font-size: 15px;
}

.genre-rail span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.genre-rail span::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--sky);
}

.genre-rail span:nth-child(2n)::before {
  background: var(--rose);
}

.genre-rail span:nth-child(3n)::before {
  background: var(--mint);
}

.comic-wall {
  position: relative;
  isolation: isolate;
  padding: clamp(68px, 9vw, 116px) 0;
  display: grid;
  grid-template-columns: minmax(260px, 0.6fr) minmax(0, 1fr);
  gap: clamp(38px, 7vw, 88px);
  align-items: start;
}

.comic-wall::before,
.showcase-strip::before,
.library-section::before,
.version-preview::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: -1;
  width: 100vw;
  transform: translateX(-50%);
  pointer-events: none;
}

.comic-wall::before {
  background: rgba(255, 255, 255, 0.36);
  border-top: 1px solid rgba(36, 48, 71, 0.06);
  border-bottom: 1px solid rgba(36, 48, 71, 0.06);
}

.comic-wall-copy {
  position: sticky;
  top: 106px;
  z-index: 1;
}

.cover-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.cover-tile {
  width: 100%;
  min-height: 138px;
  object-fit: cover;
  object-position: center;
}

.cover-tile:nth-child(2n) {
  transform: translateY(22px);
}

.cover-tile:nth-child(3n) {
  transform: translateY(44px);
}

.feature-grid {
  position: relative;
  padding: 0 0 clamp(72px, 9vw, 118px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.feature-card,
.metric-card {
  position: relative;
  z-index: 1;
  overflow: hidden;
  min-height: 220px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
}

.feature-card::before,
.metric-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--sky);
}

.feature-card:nth-child(2)::before {
  background: var(--rose);
}

.feature-card:nth-child(3)::before {
  background: var(--mint);
}

.feature-card:nth-child(4)::before {
  background: var(--sun);
}

.feature-card {
  display: grid;
  align-content: space-between;
}

.feature-card svg {
  width: 28px;
  height: 28px;
  color: var(--rose-deep);
}

.feature-card h3 {
  margin: 28px 0 10px;
  font-size: 22px;
  line-height: 1.22;
}

.feature-card p {
  margin: 0;
  color: var(--soft-ink);
}

.feature-card:nth-child(2) svg {
  color: var(--sky);
}

.feature-card:nth-child(3) svg {
  color: #6c75ff;
}

.feature-card:nth-child(4) svg {
  color: #d84f9b;
}

.split-section {
  padding: clamp(78px, 9vw, 130px) 0;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(42px, 8vw, 104px);
  border-top: 1px solid var(--line);
}

.section-side {
  position: sticky;
  top: 108px;
  align-self: start;
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(32px, 4.2vw, 54px);
  line-height: 1.14;
  letter-spacing: 0;
}

.lead {
  max-width: 840px;
  margin-bottom: 42px;
}

.rule-list {
  border-top: 1px solid var(--line-strong);
}

.rule-list div {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 32px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.rule-list strong {
  color: var(--ink);
  font-size: 20px;
  line-height: 1.35;
}

.rule-list p {
  margin: 0;
  color: var(--soft-ink);
}

.showcase-strip {
  position: relative;
  isolation: isolate;
  padding: 0 0 clamp(72px, 8vw, 108px);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 14px;
}

.showcase-strip::before {
  top: -36px;
  bottom: 36px;
  background: rgba(255, 255, 255, 0.4);
  border-top: 1px solid rgba(36, 48, 71, 0.06);
  border-bottom: 1px solid rgba(36, 48, 71, 0.06);
}

.showcase-main,
.showcase-side {
  position: relative;
  z-index: 1;
  min-height: 320px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
}

.showcase-main {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(280px, 1fr);
}

.showcase-art {
  position: relative;
  min-height: 320px;
  background: var(--sky);
}

.showcase-art img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(78%, 310px);
  height: auto;
  object-fit: contain;
  transform: translate(-50%, -50%) rotate(-5deg);
}

.showcase-copy,
.showcase-side {
  padding: 28px;
}

.showcase-copy p,
.showcase-side p {
  color: var(--soft-ink);
}

.showcase-copy h2,
.showcase-side h2 {
  max-width: 8em;
  margin-bottom: 16px;
  font-size: clamp(32px, 3.2vw, 44px);
}

.showcase-copy .eyebrow,
.showcase-side .eyebrow {
  margin-bottom: 14px;
}

.showcase-copy .text-link {
  margin-top: 12px;
}

.showcase-points {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 800;
  list-style: none;
}

.showcase-points li {
  position: relative;
  padding-left: 18px;
}

.showcase-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.82em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rose-deep);
}

.showcase-side {
  display: grid;
  align-content: space-between;
  background: rgba(255, 241, 247, 0.58);
}

.mini-cover-line {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.download-step-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: download-step;
  border-top: 1px solid var(--line);
}

.download-step-list li {
  counter-increment: download-step;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.download-step-list li::before {
  content: "0" counter(download-step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--rose-deep);
  background: rgba(255, 255, 255, 0.66);
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  grid-row: 1 / span 2;
}

.download-step-list strong,
.download-step-list span {
  display: block;
}

.download-step-list strong {
  grid-column: 2;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.35;
}

.download-step-list span {
  grid-column: 2;
  color: var(--soft-ink);
  line-height: 1.5;
}

.cover-mini {
  min-height: 118px;
}

.library-section {
  position: relative;
  isolation: isolate;
  padding: clamp(78px, 9vw, 122px) 0;
  display: grid;
  grid-template-columns: minmax(260px, 0.68fr) minmax(0, 1fr);
  gap: clamp(44px, 8vw, 100px);
  align-items: start;
  border-top: 1px solid var(--line);
}

.library-section::before {
  background: rgba(255, 255, 255, 0.32);
}

.library-section > div:first-child {
  max-width: 480px;
}

.library-board {
  border-top: 1px solid var(--line-strong);
}

.library-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) 112px;
  gap: 24px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.library-row strong {
  font-size: 20px;
}

.library-row span {
  color: var(--soft-ink);
}

.library-row em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--rose-deep);
  background: rgba(255, 255, 255, 0.66);
  font-style: normal;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
}

.library-row:nth-child(2) em {
  color: var(--blue-deep);
}

.library-row:nth-child(3) em {
  color: var(--ink-2);
}

.version-preview {
  position: relative;
  isolation: isolate;
  padding: clamp(76px, 9vw, 122px) 0;
  border-top: 1px solid var(--line);
}

.version-preview::before {
  background: rgba(255, 255, 255, 0.38);
  border-top: 1px solid rgba(36, 48, 71, 0.06);
  border-bottom: 1px solid rgba(36, 48, 71, 0.06);
}

.version-preview > div:first-child {
  width: 100%;
  margin-bottom: 34px;
}

.version-preview > div:first-child h2 {
  max-width: 1120px;
}

.version-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

.version-card {
  min-height: 340px;
  padding: 22px;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.version-card > div,
.version-ledger article > div {
  display: grid;
  align-content: start;
}

.version-card img {
  width: 64px;
  height: 64px;
  border-radius: 14px;
}

.version-card time,
.version-ledger time {
  display: block;
  margin-bottom: 8px;
  color: var(--rose-deep);
  font-size: 18px;
  font-weight: 900;
}

.version-card h3 {
  margin-bottom: 10px;
  font-size: 24px;
  line-height: 1.28;
}

.version-card p {
  margin: 0;
  color: var(--soft-ink);
}

.version-updates {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
  color: var(--soft-ink);
  list-style: none;
}

.version-updates li {
  position: relative;
  padding-left: 17px;
  line-height: 1.62;
}

.version-updates li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.76em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rose-deep);
}

.version-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  min-height: 40px;
  margin-top: auto;
  padding: 9px 14px;
  border: 1px solid rgba(201, 106, 149, 0.26);
  border-radius: 8px;
  color: var(--rose-deep);
  background: rgba(255, 255, 255, 0.76);
  font-size: 14px;
  font-weight: 900;
  transition: transform 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.version-download:hover {
  transform: translateY(-2px);
  color: #fff;
  background: var(--rose-deep);
}

.download-section {
  position: relative;
  isolation: isolate;
  margin-top: clamp(42px, 6vw, 76px);
  margin-bottom: clamp(70px, 9vw, 118px);
  padding: clamp(10px, 2vw, 24px) 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, auto);
  gap: clamp(22px, 5vw, 64px);
  align-items: center;
  border: 0;
  background: transparent;
}

.download-section::after {
  content: "HALI";
  position: absolute;
  right: clamp(12px, 5vw, 78px);
  bottom: -26px;
  z-index: -1;
  color: rgba(201, 106, 149, 0.075);
  font-size: clamp(86px, 13vw, 170px);
  font-weight: 900;
  line-height: 0.8;
  pointer-events: none;
}

.download-copy,
.download-actions {
  position: relative;
}

.download-copy h2 {
  max-width: 720px;
  margin-bottom: 16px;
  font-size: clamp(32px, 4vw, 48px);
}

.download-copy p {
  max-width: 640px;
  margin-bottom: 0;
  color: var(--soft-ink);
}

.download-points {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  max-width: 760px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.download-points li {
  position: relative;
  min-width: 160px;
  padding-left: 18px;
}

.download-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.74em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rose-deep);
}

.download-points li:nth-child(2)::before {
  background: var(--blue-deep);
}

.download-points li:nth-child(3)::before {
  background: var(--sky);
}

.download-points strong {
  display: block;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.35;
}

.download-points span {
  display: block;
  margin-top: 3px;
  color: var(--soft-ink);
  font-size: 14px;
  line-height: 1.45;
}

.download-actions {
  display: grid;
  justify-items: start;
  gap: 14px;
  padding-bottom: 8px;
  justify-content: flex-end;
}

.download-note {
  max-width: 280px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.site-footer {
  padding: 46px 0;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.84);
}

.footer-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 42px;
  color: var(--soft-ink);
  font-size: 14px;
}

.footer-title {
  margin-bottom: 12px;
  color: var(--ink);
}

.footer-title img {
  width: 34px;
  height: 34px;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links strong {
  color: var(--ink);
}

.footer-links a:hover {
  color: var(--rose-deep);
}

.footer-disclaimer {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.sub-main {
  padding: clamp(64px, 8vw, 118px) 0;
}

.page-head {
  max-width: 940px;
  padding-bottom: 54px;
}

.sub-hero-title {
  width: 100%;
  max-width: 100%;
}

.page-head p:last-child,
.download-hero p,
.version-note p,
.download-details p,
.download-faq p {
  color: var(--soft-ink);
  font-size: 18px;
}

.version-ledger {
  display: grid;
  gap: 16px;
}

.version-ledger article {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: clamp(22px, 4vw, 40px);
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.version-ledger img {
  width: 76px;
  height: 76px;
  border-radius: 16px;
}

.version-ledger time {
  font-size: 20px;
}

.version-ledger p {
  margin-bottom: 16px;
}

.version-ledger .version-updates {
  margin-bottom: 20px;
}

.version-ledger h2,
.version-note h2,
.download-details h2,
.download-faq h2 {
  font-size: clamp(28px, 3.4vw, 44px);
}

.version-note,
.download-details,
.download-faq {
  padding: clamp(54px, 8vw, 88px) 0 0;
}

.download-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(42px, 8vw, 96px);
  align-items: start;
  padding-bottom: clamp(58px, 8vw, 104px);
  border-bottom: 1px solid var(--line);
}

.download-box {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  align-content: start;
  background: rgba(255, 255, 255, 0.9);
}

.download-box img {
  width: 110px;
  height: 110px;
  border-radius: 8px;
}

.download-box strong {
  margin-top: 8px;
  font-size: 24px;
}

.download-box span {
  color: var(--muted);
}

.manual-layout {
  padding: clamp(58px, 8vw, 104px) 0;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: clamp(38px, 8vw, 100px);
  border-bottom: 1px solid var(--line);
}

.manual-layout aside p {
  color: var(--soft-ink);
}

.install-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: install;
}

.install-steps li {
  counter-increment: install;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 28px;
  padding: 0 0 26px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.install-steps strong::before {
  content: "0" counter(install) " ";
  color: var(--sky);
}

.install-steps p {
  margin: 0;
  color: var(--soft-ink);
}

.download-info-panel {
  margin: 28px 0 34px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: clamp(24px, 5vw, 56px);
  align-items: stretch;
}

.download-details dl {
  margin: 0;
  border-top: 1px solid var(--line-strong);
}

.download-details dl div {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 28px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.download-details dt {
  color: var(--muted);
  font-weight: 850;
}

.download-details dd {
  margin: 0;
}

.download-logo-card {
  margin: 0;
  min-height: 100%;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  text-align: center;
}

.download-logo-card img {
  width: min(180px, 74%);
  height: auto;
  border-radius: 18px;
}

.download-logo-card figcaption {
  color: var(--soft-ink);
  font-weight: 850;
}

.reader-download {
  background: rgba(255, 255, 255, 0.92);
}

.mini-reader {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-2);
}

.mini-reader i {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: rgba(23, 33, 43, 0.14);
}

.mini-reader i:nth-child(2) {
  width: 72%;
}

.mini-reader i:nth-child(3) {
  width: 48%;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 980px) {
  .nav {
    position: relative;
    grid-template-columns: minmax(0, 1fr) auto auto;
    min-height: auto;
    gap: 10px;
    padding: 13px 0;
  }

  .brand {
    min-width: 0;
  }

  .nav-toggle {
    display: inline-flex;
    order: 2;
  }

  .nav-download {
    order: 3;
  }

  .nav-links {
    grid-column: 1 / -1;
    order: 4;
    display: none;
    justify-content: stretch;
    gap: 6px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
  }

  .nav.is-open .nav-links {
    display: grid;
  }

  .nav-links a {
    min-height: 42px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
  }

  .hero,
  .comic-wall,
  .split-section,
  .library-section,
  .download-section,
  .download-hero,
  .manual-layout,
  .showcase-strip,
  .showcase-main {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .reader-preview {
    min-height: auto;
    justify-items: start;
    gap: 14px;
  }

  .reader-preview::before,
  .reader-preview::after {
    display: none;
  }

  .reader-preview > p {
    margin-left: 0;
  }

  .hero-poster {
    width: min(520px, 100%);
    max-height: none;
    transform: none;
  }

  .comic-wall-copy,
  .section-side {
    position: static;
  }

  .cover-grid,
  .feature-grid,
  .version-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cover-tile:nth-child(n) {
    transform: none;
  }

  .rule-list div,
  .library-row,
  .install-steps li,
  .download-info-panel,
  .download-details dl div {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .download-logo-card {
    min-height: 180px;
    padding: 24px 0;
  }

  .download-actions {
    padding-left: 0;
    border-left: 0;
    padding-bottom: 0;
    justify-content: flex-start;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .nav-download {
    padding: 10px 12px;
    font-size: 14px;
    white-space: nowrap;
  }

  .brand span {
    font-size: 16px;
    white-space: nowrap;
  }

  .nav-toggle {
    width: 42px;
    height: 42px;
  }

  h1 {
    font-size: clamp(40px, 13.4vw, 58px);
  }

  h2 {
    font-size: clamp(30px, 9vw, 42px);
  }

  .comic-wall {
    padding: 42px 0 54px;
    gap: 22px;
  }

  .comic-wall .lead {
    margin-bottom: 0;
  }

  .primary-link {
    width: 100%;
  }

  .hero-actions,
  .download-actions {
    align-items: stretch;
  }

  .hero-stats,
  .feature-grid,
  .cover-grid,
  .mini-cover-line {
    grid-template-columns: 1fr;
  }

  .hero-stats,
  .reader-preview > p {
    display: none;
  }

  .cover-grid {
    display: flex;
    grid-template-columns: none;
    gap: 10px;
    margin-right: -16px;
    padding: 2px 16px 4px 0;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .cover-grid::-webkit-scrollbar {
    display: none;
  }

  .cover-tile {
    flex: 0 0 132px;
    width: 132px;
    height: 178px;
    min-height: 0;
    scroll-snap-align: start;
  }

  .reader-preview {
    order: -1;
    position: relative;
    min-height: 430px;
    margin-bottom: 8px;
    justify-items: center;
    align-items: center;
  }

  .reader-preview::before,
  .reader-preview::after {
    display: block;
  }

  .reader-preview::before {
    right: 4%;
    bottom: 28px;
    width: 150px;
    height: 108px;
    transform: rotate(4deg);
  }

  .reader-preview::after {
    left: 3%;
    top: 26px;
    width: 104px;
    height: 150px;
    transform: rotate(-7deg);
  }

  .hero-poster {
    width: min(340px, 88vw);
    aspect-ratio: 4 / 5;
    overflow: hidden;
    transform: rotate(1.25deg);
  }

  .hero-poster img {
    height: 100%;
    object-fit: cover;
    object-position: center top;
  }

  .showcase-copy,
  .showcase-side,
  .download-box,
  .feature-card,
  .metric-card {
    padding: 20px;
  }

  .version-card-grid {
    grid-template-columns: 1fr;
  }

  .version-ledger article {
    grid-template-columns: 1fr;
  }

  .version-ledger img {
    width: 66px;
    height: 66px;
  }
}

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