:root {
  --ink: #0d1b2a;
  --ink-soft: #405164;
  --paper: #f2f0e8;
  --paper-deep: #e5e0d4;
  --signal: #2cc8b8;
  --alert: #e86f45;
  --white: #fffef9;
  --line: rgba(13, 27, 42, .16);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Avenir Next", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  min-height: 100vh;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .2;
  z-index: 10;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.11'/%3E%3C/svg%3E");
}

.site-header,
main,
footer {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
}

.wordmark-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--paper);
  background: var(--ink);
  letter-spacing: -.08em;
  font-size: 15px;
}

.secure-badge {
  font-family: "SFMono-Regular", "Menlo", monospace;
  font-size: 10px;
  letter-spacing: .08em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.secure-badge span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 4px rgba(44, 200, 184, .17);
}

.hero {
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  align-items: center;
  gap: 80px;
  border-bottom: 1px solid var(--line);
}

.eyebrow,
.section-number,
.package-kicker {
  margin: 0;
  font-family: "SFMono-Regular", "Menlo", monospace;
  font-size: 11px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

h1 {
  margin: 24px 0;
  max-width: 820px;
  font-family: "Songti SC", "Iowan Old Style", serif;
  font-size: clamp(58px, 8.4vw, 112px);
  font-weight: 700;
  line-height: .97;
  letter-spacing: -.065em;
}

h1 em {
  color: var(--signal);
  font-style: normal;
}

.lede {
  width: min(590px, 100%);
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.8;
}

.index-stamp {
  aspect-ratio: 1;
  border: 1px solid var(--ink);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: rotate(6deg);
  position: relative;
}

.index-stamp::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px dashed rgba(13, 27, 42, .38);
  border-radius: inherit;
}

.index-stamp span,
.index-stamp small { font-size: 10px; letter-spacing: .16em; }
.index-stamp strong { font: 700 84px/1 "Iowan Old Style", serif; }

.shelf { padding: 110px 0 100px; }

.shelf-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 28px;
}

.shelf-heading h2,
.integrity h2 {
  margin: 6px 0 0;
  font: 700 36px/1.2 "Songti SC", "Iowan Old Style", serif;
}

.shelf-heading > p { margin: 0; color: var(--ink-soft); font-size: 13px; }

.package-card {
  background: var(--ink);
  color: var(--white);
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  min-height: 520px;
  overflow: hidden;
  box-shadow: 18px 22px 0 var(--paper-deep);
}

.app-icon {
  margin: 38px;
  width: 154px;
  height: 154px;
  position: relative;
  background: var(--white);
  color: var(--ink);
  display: grid;
  place-items: center;
}

.app-icon::after {
  content: "";
  position: absolute;
  inset: -10px 10px 10px -10px;
  border: 1px solid rgba(255, 255, 255, .35);
}

.wifi { position: absolute; border: 13px solid transparent; border-top-color: var(--ink); border-radius: 50%; }
.wifi-one { width: 105px; height: 105px; top: 35px; }
.wifi-two { width: 65px; height: 65px; top: 57px; }
.wifi-dot { position: absolute; width: 16px; height: 16px; border-radius: 50%; background: var(--ink); top: 96px; }
.app-icon b { position: absolute; right: 17px; bottom: 13px; color: var(--signal); font-size: 38px; line-height: 1; }

.package-main {
  padding: 54px 58px 52px;
  border-left: 1px solid rgba(255, 255, 255, .14);
}

.package-title-row { display: flex; justify-content: space-between; gap: 24px; }
.package-kicker { color: rgba(255, 255, 255, .55); }
.package-main h3 { margin: 10px 0 0; font: 700 48px/1.1 "Songti SC", "Iowan Old Style", serif; }
.version { align-self: start; color: var(--signal); font: 13px "SFMono-Regular", monospace; border: 1px solid rgba(44, 200, 184, .45); padding: 8px 12px; }
.description { max-width: 680px; margin: 22px 0 30px; color: rgba(255, 255, 255, .68); line-height: 1.75; }

.metadata { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255, 255, 255, .16); margin: 0; }
.metadata div { background: var(--ink); padding: 16px 14px; }
.metadata dt { font-size: 10px; color: rgba(255, 255, 255, .46); margin-bottom: 7px; }
.metadata dd { margin: 0; font-size: 13px; }
.metadata .warning { color: #ffb39a; }
.metadata .verified { color: var(--signal); }

.release-notes { display: grid; grid-template-columns: 110px 1fr; padding: 26px 0; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.release-notes p { margin: 0; color: rgba(255, 255, 255, .47); font-size: 11px; }
.release-notes ul { margin: 0; padding: 0; list-style: none; color: rgba(255, 255, 255, .78); font-size: 13px; line-height: 1.9; }
.release-notes li::before { content: "— "; color: var(--signal); }

.actions { display: flex; align-items: center; gap: 28px; margin-top: 28px; }
.download-button { min-width: 210px; display: flex; justify-content: space-between; align-items: center; padding: 17px 19px; color: var(--ink); background: var(--signal); text-decoration: none; font-weight: 700; transition: transform .2s, background .2s; }
.download-button:hover { transform: translateY(-3px); background: #48dece; }
.arrow { font-size: 22px; line-height: 1; }
.quiet-link { color: rgba(255, 255, 255, .64); font-size: 13px; text-underline-offset: 5px; }

.integrity {
  border-top: 1px solid var(--line);
  padding: 90px 0 110px;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 70px;
}

.hash-box { align-self: end; border: 1px solid var(--ink); padding: 18px; display: flex; gap: 20px; justify-content: space-between; align-items: center; background: rgba(255, 255, 255, .22); }
.hash-box span { display: block; font: 10px "SFMono-Regular", monospace; margin-bottom: 9px; color: var(--ink-soft); }
.hash-box code { display: block; font: 11px/1.6 "SFMono-Regular", "Menlo", monospace; overflow-wrap: anywhere; }
.hash-box button { border: 0; background: var(--ink); color: var(--white); padding: 11px 15px; cursor: pointer; font-weight: 700; }
.privacy-note { grid-column: 2; margin: -45px 0 0; color: var(--ink-soft); font-size: 12px; }

footer {
  border-top: 1px solid var(--line);
  min-height: 90px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font: 10px "SFMono-Regular", monospace;
  color: var(--ink-soft);
  letter-spacing: .08em;
}

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

.hero-copy > *, .index-stamp, .package-card { animation: rise .7s both cubic-bezier(.2,.8,.2,1); }
.hero-copy > :nth-child(2) { animation-delay: .08s; }
.hero-copy > :nth-child(3) { animation-delay: .16s; }
.index-stamp { animation-delay: .2s; }

@media (max-width: 820px) {
  .site-header, main, footer { width: min(100% - 28px, 680px); }
  .secure-badge { display: none; }
  .hero { min-height: 510px; grid-template-columns: 1fr; gap: 0; }
  .index-stamp { display: none; }
  h1 { font-size: clamp(54px, 18vw, 82px); }
  .shelf { padding: 76px 0; }
  .package-card { grid-template-columns: 1fr; box-shadow: 8px 10px 0 var(--paper-deep); }
  .app-icon { margin-bottom: 10px; }
  .package-main { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .14); padding: 36px 24px 38px; }
  .package-main h3 { font-size: 40px; }
  .metadata { grid-template-columns: repeat(2, 1fr); }
  .actions { align-items: stretch; flex-direction: column; gap: 18px; }
  .download-button { width: 100%; }
  .integrity { grid-template-columns: 1fr; gap: 30px; padding: 70px 0; }
  .privacy-note { grid-column: 1; margin: 0; }
  .hash-box { align-items: stretch; flex-direction: column; }
  .hash-box button { align-self: start; }
}

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