:root {
  color-scheme: light;
  --ink: #172231;
  --ink-soft: #596577;
  --ink-muted: #738092;
  --paper: #f7f3eb;
  --surface: #fffdf8;
  --line: #ded8cd;
  --mint: #e3f2eb;
  --mint-ink: #17654f;
  --warm: #fff0cd;
  --warm-ink: #8f5a00;
  --focus: #276fbe;
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
}

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

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

.page-shell {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  padding-top: 20px;
}

.site-nav,
.desktop-nav,
.brand,
.phone-top,
.app-card-top,
.app-stats,
.footer-inner,
.footer-links,
.trust-row {
  display: flex;
  align-items: center;
}

.site-nav {
  min-height: 52px;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  background: var(--ink);
  color: #fff9ef;
  font-size: 20px;
  font-weight: 800;
}

.brand-copy {
  display: grid;
  line-height: 1.25;
}

.brand-copy small {
  color: var(--ink-muted);
}

.desktop-nav {
  gap: 26px;
  color: #4e5968;
}

.menu-button,
.mobile-nav {
  display: none;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 10px 19px;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-dark {
  border-color: var(--ink);
  background: var(--ink);
  color: #fffdf8;
  box-shadow: 0 12px 24px rgb(23 34 49 / 12%);
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
  gap: 76px;
  align-items: center;
  padding-block: 76px 90px;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--warm);
  color: var(--warm-ink);
  font-size: 13px;
  font-weight: 800;
}

.hero h1 {
  max-width: 12em;
  margin: 24px 0 18px;
  font-size: clamp(44px, 6vw, 72px);
  line-height: 1.12;
  letter-spacing: -.055em;
}

.hero-lead {
  max-width: 34em;
  margin: 0;
  color: var(--ink-soft);
  font-size: 18px;
}

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

.safe-note {
  margin: 18px 0 0;
  color: var(--ink-muted);
  font-size: 14px;
}

.phone-stage {
  position: relative;
  min-height: 600px;
  padding: 22px;
}

.phone-orbit {
  position: absolute;
  border-radius: 999px;
}

.orbit-mint {
  inset: 4% 0 32% 18%;
  background: #dcefe6;
}

.orbit-warm {
  inset: 62% 58% 0 0;
  background: #ffe6af;
}

.phone {
  position: relative;
  width: min(330px, 100%);
  margin-inline: auto;
  padding: 10px;
  border-radius: 36px;
  background: var(--ink);
  box-shadow: 0 30px 70px rgb(39 49 56 / 20%);
  transform: rotate(2deg);
}

.phone-screen {
  overflow: hidden;
  padding: 22px 17px 18px;
  border-radius: 28px;
  background: #fbf8f2;
}

.phone-top,
.app-card-top,
.app-stats {
  justify-content: space-between;
  gap: 12px;
}

.online-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #187d63;
}

.phone-greeting {
  margin: 34px 0 18px;
}

.phone-greeting h2,
.phone-greeting p,
.app-card p {
  margin: 0;
}

.phone-greeting h2 {
  font-size: 22px;
}

.phone-greeting p,
.app-card p,
.app-stats small {
  color: #687384;
}

.app-card {
  display: grid;
  gap: 11px;
  margin-top: 12px;
  padding: 18px;
  border-radius: 22px;
}

.app-card-mint {
  background: var(--mint);
  color: #163c31;
}

.app-card-warm {
  background: var(--warm);
  color: #6e4b0f;
}

.app-stats {
  padding: 18px 4px 4px;
}

.app-stats > div {
  display: grid;
  gap: 3px;
}

.app-stats small {
  font-size: 11px;
}

.values-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.value-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 38px;
  padding-block: 70px;
}

.section-heading {
  max-width: 680px;
}

.section-heading h2,
.section-heading p,
.value-item h3,
.value-item p,
.device-copy h3,
.device-copy p,
.tribute-inner h2,
.tribute-inner p,
.site-footer p {
  margin: 0;
}

.section-heading h2,
.tribute-inner h2 {
  margin-top: 8px;
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.18;
  letter-spacing: -.04em;
}

.section-heading > p:last-child {
  margin-top: 12px;
  color: var(--ink-soft);
}

.section-kicker {
  color: var(--mint-ink);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
}

.value-item {
  display: grid;
  align-content: start;
  gap: 13px;
}

.value-icon,
.tribute-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 14px;
  background: var(--mint);
  color: var(--mint-ink);
  font-size: 19px;
  font-weight: 800;
}

.value-item p {
  color: var(--ink-soft);
}

.download-section {
  padding-block: 94px;
}

.download-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px;
  align-items: center;
  margin-top: 32px;
  padding: 42px;
  border-radius: 30px;
  background: var(--ink);
  color: #f7f3eb;
  box-shadow: 0 28px 64px rgb(23 34 49 / 15%);
}

.device-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.device-tabs button {
  min-height: 42px;
  padding: 9px 16px;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 13px;
  background: transparent;
  color: #dce3e8;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.device-tabs button[aria-pressed="true"] {
  border-color: #f4ad39;
  background: #f4ad39;
  color: var(--ink);
}

.device-copy {
  display: grid;
  gap: 11px;
}

.device-copy h3 {
  font-size: 27px;
}

.device-copy > p:not(.download-status) {
  color: #c1cad2;
}

.device-meta {
  font-size: 14px;
}

.download-button {
  width: fit-content;
  margin-top: 8px;
  border-color: #f7f3eb;
  background: #f7f3eb;
  color: var(--ink);
  cursor: pointer;
}

.download-button.is-disabled,
.download-button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: .56;
}

.download-status {
  min-height: 1.6em;
  color: #f4c874;
  font-size: 14px;
}

.inline-link {
  width: fit-content;
  color: #f4c874;
  font-size: 14px;
  font-weight: 700;
}

.inline-link:hover {
  color: #ffe2a1;
}

.trust-row {
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 24px;
  color: #aeb9c3;
  font-size: 13px;
}

.qr-area {
  display: grid;
  justify-items: center;
  gap: 8px;
  color: #d4dce2;
  text-align: center;
}

.qr-area small {
  color: #97a5b1;
}

.qr-code {
  display: block;
  width: 142px;
  height: 142px;
  padding: 10px;
  border-radius: 20px;
  background: #fff;
  transition: transform 160ms ease;
}

.qr-code:hover {
  transform: translateY(-2px);
}

.qr-code img {
  display: block;
  width: 100%;
  height: 100%;
}

.tribute-section {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.tribute-inner {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding-block: 90px;
  text-align: center;
}

.tribute-inner > p:last-child {
  max-width: 660px;
  color: var(--ink-soft);
}

.tribute-mark {
  background: var(--warm);
  color: var(--warm-ink);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-muted);
}

.footer-inner {
  min-height: 98px;
  justify-content: space-between;
  gap: 24px;
}

.footer-links {
  flex-wrap: wrap;
  gap: 18px;
}

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

.footer-legal {
  display: flex;
  min-height: 52px;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 13px;
}

.footer-legal a:hover {
  color: var(--ink);
}

.config-required {
  color: #a13a43;
  font-weight: 800;
}

.public-beta-note {
  margin-top: 26px;
}

.table-scroll {
  overflow-x: auto;
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.privacy-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  text-align: left;
}

.privacy-table th,
.privacy-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.privacy-table th {
  background: var(--mint);
  color: #163c31;
  font-size: 14px;
}

.privacy-table td {
  color: var(--ink-soft);
}

.privacy-table tr:last-child td {
  border-bottom: 0;
}

.subpage-header {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.subpage-nav-link {
  color: var(--ink-soft);
  font-weight: 700;
}

.subpage-nav-link:hover {
  color: var(--ink);
}

.document-main {
  padding-block: 72px 96px;
}

.document-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 64px;
  align-items: start;
}

.document-article {
  min-width: 0;
}

.document-article > header {
  margin-bottom: 48px;
}

.document-article h1 {
  max-width: 14em;
  margin: 10px 0 16px;
  font-size: clamp(38px, 5vw, 60px);
  line-height: 1.12;
  letter-spacing: -.05em;
}

.document-lead {
  max-width: 42em;
  margin: 0;
  color: var(--ink-soft);
  font-size: 18px;
}

.document-section {
  padding-block: 30px;
  border-top: 1px solid var(--line);
}

.document-section h2 {
  margin: 0 0 12px;
  font-size: 25px;
  line-height: 1.3;
}

.document-section h3 {
  margin: 24px 0 8px;
  font-size: 18px;
}

.document-section p,
.document-section li {
  color: var(--ink-soft);
}

.document-section p {
  margin: 10px 0 0;
}

.document-section ul,
.document-section ol {
  margin: 12px 0 0;
  padding-left: 1.4em;
}

.document-aside {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 10px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}

.document-aside strong {
  font-size: 14px;
}

.document-aside a {
  color: var(--ink-soft);
  font-size: 14px;
}

.document-aside a:hover {
  color: var(--mint-ink);
}

.notice-card,
.release-card,
.support-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
}

.notice-card {
  margin: 26px 0;
  padding: 20px 22px;
  background: var(--warm);
}

.notice-card strong,
.notice-card p {
  color: #6e4b0f;
}

.release-card {
  padding: 28px;
}

.release-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.release-top h2,
.release-top p {
  margin: 0;
}

.release-top p {
  color: var(--ink-muted);
}

.release-tag {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--mint-ink);
  font-size: 13px;
  font-weight: 800;
}

.release-notes {
  margin-block: 24px;
  padding-left: 1.4em;
  color: var(--ink-soft);
}

.checksum {
  overflow-wrap: anywhere;
  padding: 14px 16px;
  border-radius: 14px;
  background: #f0ede6;
  color: #4a5665;
  font: 12px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}

.support-card {
  padding: 24px;
}

.support-card h2,
.support-card p {
  margin: 0;
}

.support-card p {
  margin-top: 8px;
  color: var(--ink-soft);
}

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

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

.faq-list summary {
  padding: 22px 0;
  cursor: pointer;
  font-weight: 800;
}

.faq-list details p {
  margin: -8px 0 22px;
  color: var(--ink-soft);
}

.back-row {
  margin-bottom: 28px;
}

.back-row a {
  color: var(--ink-soft);
  font-weight: 700;
}

.back-row a:hover {
  color: var(--ink);
}

.download-page-main {
  max-width: 820px;
  padding-block: 64px 92px;
}

.download-ready-card {
  display: grid;
  justify-items: center;
  padding: 52px;
  border-radius: 30px;
  background: var(--surface);
  box-shadow: 0 24px 64px rgb(23 34 49 / 10%);
  text-align: center;
}

.download-ready-icon {
  display: grid;
  width: 64px;
  height: 64px;
  margin-bottom: 22px;
  place-items: center;
  border-radius: 20px;
  background: var(--mint);
  color: var(--mint-ink);
  font-size: 28px;
  font-weight: 900;
}

.download-ready-card h1 {
  margin: 10px 0 12px;
  font-size: clamp(34px, 5vw, 50px);
  line-height: 1.16;
  letter-spacing: -.045em;
}

.download-ready-lead {
  margin: 0;
  color: var(--ink-soft);
}

.download-health {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 26px;
  color: var(--ink-soft);
  font-size: 14px;
}

.download-health span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d29b32;
  box-shadow: 0 0 0 5px rgb(210 155 50 / 12%);
}

.download-health[data-state="ready"] span {
  background: #238365;
  box-shadow: 0 0 0 5px rgb(35 131 101 / 12%);
}

.download-health[data-state="error"] span {
  background: #c84b55;
  box-shadow: 0 0 0 5px rgb(200 75 85 / 12%);
}

.download-primary {
  width: min(360px, 100%);
  margin-top: 24px;
}

.browser-tip {
  max-width: 36em;
  margin: 14px 0 0;
  color: var(--ink-muted);
  font-size: 14px;
}

.browser-tip.is-important {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--warm);
  color: #6e4b0f;
  font-weight: 700;
}

.download-fallback {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
  color: var(--ink-muted);
  font-size: 14px;
}

.download-fallback p {
  margin: 0;
}

.text-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--mint-ink);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.download-safety {
  margin-top: 26px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgb(255 253 248 / 55%);
}

.download-safety h2 {
  margin: 0;
}

.download-safety ol {
  margin: 14px 0 18px;
  padding-left: 1.5em;
  color: var(--ink-soft);
}

.inline-document-link {
  color: var(--mint-ink);
  font-weight: 800;
}

@media (max-width: 800px) {
  .desktop-nav {
    display: none;
  }

  .menu-button {
    display: grid;
    width: 44px;
    height: 44px;
    padding: 10px;
    place-content: center;
    gap: 5px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: var(--surface);
    cursor: pointer;
  }

  .menu-button span {
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: var(--ink);
  }

  .mobile-nav {
    padding-block: 14px 8px;
    border-bottom: 1px solid var(--line);
  }

  .mobile-nav:not([hidden]) {
    display: grid;
    gap: 4px;
  }

  .mobile-nav a {
    min-height: 44px;
    padding: 10px 4px;
    font-weight: 700;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-block: 54px 64px;
  }

  .hero h1 {
    font-size: clamp(40px, 11vw, 48px);
  }

  .phone-stage {
    min-height: auto;
  }

  .value-grid {
    grid-template-columns: 1fr;
  }

  .value-heading {
    margin-bottom: 10px;
  }

  .download-panel {
    grid-template-columns: 1fr;
  }

  .qr-area {
    justify-items: start;
    text-align: left;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 28px;
  }

  .footer-legal {
    padding-block: 16px;
  }

  .document-layout {
    grid-template-columns: 1fr;
  }

  .document-aside {
    position: static;
    grid-row: 1;
  }
}

@media (max-width: 480px) {
  .page-shell {
    width: min(100% - 32px, 1120px);
  }

  .brand-copy small {
    display: none;
  }

  .hero-actions,
  .hero-actions .button {
    width: 100%;
  }

  .phone-stage {
    padding: 8px;
  }

  .download-section {
    padding-block: 72px;
  }

  .download-panel {
    padding: 26px 18px;
  }

  .device-tabs button {
    flex: 1;
    padding-inline: 10px;
  }

  .document-main {
    padding-block: 48px 72px;
  }

  .document-layout {
    gap: 34px;
  }

  .support-grid {
    grid-template-columns: 1fr;
  }

  .download-page-main {
    padding-block: 42px 68px;
  }

  .download-ready-card {
    padding: 36px 20px;
  }

  .download-safety {
    padding: 24px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button {
    transition: none;
  }
}
