:root {
  color-scheme: light;
  --paper: #f7f5ef;
  --surface: #fdfbf7;
  --paper-deep: #eeeae1;
  --ink: #21201d;
  --dim: #5e5a52;
  --line: #d9d4c9;
  --seal: #a93625;
  --seal-dark: #812819;
  --display: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Helvetica Neue", system-ui, sans-serif;
}

:lang(zh) {
  --display: "Songti SC", "Noto Serif CJK SC", SimSun, Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 1.5rem; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
figure, dl, dd { margin: 0; }
button { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--seal); outline-offset: 4px; }

.wrap { width: min(100% - clamp(2rem, 8vw, 8rem), 76rem); margin-inline: auto; }
.section { padding-block: clamp(3.75rem, 8vw, 7.25rem); }

.skip-link {
  position: fixed;
  z-index: 2;
  top: .75rem;
  left: .75rem;
  transform: translateY(-150%);
  padding: .5rem 1rem;
  background: var(--surface);
}
.skip-link:focus { transform: none; }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.2rem;
  min-height: 4.75rem;
}
.wordmark {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: .35rem;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -.04em;
  text-decoration: none;
  white-space: nowrap;
}
.primary-nav, .header-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(.9rem, 2.6vw, 2rem);
  font-size: .875rem;
  font-weight: 600;
}
.header-actions { justify-self: end; justify-content: flex-end; }
.primary-nav a, .locale, .footer-inner > a { text-decoration: none; }
.primary-nav a:hover, .locale:hover, .footer-inner > a:hover {
  color: var(--seal);
  text-decoration: underline;
  text-underline-offset: .25em;
}
.primary-nav a, .locale { display: inline-flex; align-items: center; min-height: 44px; }

.button {
  display: inline-flex;
  min-height: 3rem;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  padding: .56rem 1.12rem;
  border: 1px solid transparent;
  border-radius: .55rem;
  font-weight: 650;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  transition: background-color .2s, border-color .2s;
}
.button-small { min-height: 2.75rem; padding-inline: .85rem; }
.button-primary { background: var(--seal); color: #fffaf4; }
.button-primary:hover { background: var(--seal-dark); }
.button-outline { border-color: #bdb7aa; }
.button-outline:hover { background: var(--paper-deep); border-color: #a49c8e; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr);
  gap: clamp(1.6rem, 5.25vw, 5rem);
  align-items: center;
  padding-block: clamp(2.75rem, 5.2vw, 5rem) clamp(3.5rem, 6vw, 5.5rem);
}
.platform, .eyebrow {
  color: var(--seal);
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .025em;
}
.hero h1, .section h2 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -.055em;
  line-height: 1.03;
}
.hero h1 { font-size: clamp(3.1rem, 6.05vw, 5.55rem); margin-top: 1rem; }
.hero h1 span { color: var(--seal); }
:lang(en) .hero-copy { container-type: inline-size; }
:lang(en) .hero h1 { font-size: min(4.5rem, 14.25cqi); }
:lang(zh) .hero h1 {
  font-size: clamp(3.55rem, 6.55vw, 6rem);
  letter-spacing: -.075em;
  line-height: 1.1;
}
.hero-description {
  max-width: 30rem;
  margin-top: 1.55rem;
  color: var(--dim);
  font-size: clamp(1rem, 1.48vw, 1.22rem);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.85rem; }
.requirements { margin-top: .85rem; color: var(--dim); font-size: .875rem; }

.hero-visual {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  aspect-ratio: 1.27;
  border-radius: 1.1rem;
  background:
    radial-gradient(ellipse at 83% 7%, #b35946 0, transparent 61%),
    radial-gradient(ellipse at 8% 82%, #a65441 0, transparent 55%),
    #462623;
  box-shadow: inset 0 0 0 1px #50282055;
}
.hero-visual::before {
  position: absolute;
  z-index: -1;
  top: -30%;
  left: 31%;
  width: 99%;
  aspect-ratio: 1;
  border: 1px solid #ffccae65;
  border-radius: 50%;
  box-shadow: 0 0 0 18px #ffccae0c, 0 0 0 58px #ffccae10, 0 0 0 100px #ffccae0d;
  content: "";
}
.hero-window {
  position: absolute;
  top: 30%;
  left: 8%;
  width: 84%;
  border: 1px solid #33252158;
  border-radius: clamp(.45rem, 1vw, .9rem);
  box-shadow: 0 1.35rem 3.5rem #21120d77;
}
.hero-cue {
  position: absolute;
  top: 8.5%;
  left: 15%;
  width: 70%;
  border: 1px solid #d6b8a36e;
  border-radius: clamp(.6rem, 1.3vw, 1.1rem);
  box-shadow: 0 .8rem 2.4rem #170b09ad;
}
.hero-figure figcaption, .demo-figure figcaption {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-top: .65rem;
  color: var(--dim);
  font-size: .8125rem;
}
.legend-mark { width: 1.25rem; height: .16rem; border-radius: 1rem; background: var(--seal); }

.tour-section { background: var(--paper-deep); border-block: 1px solid var(--line); }
.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: end;
  gap: 1.5rem 4rem;
  margin-bottom: 2.15rem;
}
.section h2 { margin-top: .55rem; font-size: clamp(2.25rem, 4.25vw, 4.15rem); }
:lang(zh) .section h2 { letter-spacing: -.055em; line-height: 1.12; }
.section-heading > p, .privacy-intro > p:last-child { max-width: 30rem; color: var(--dim); }

.demo { overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 1.1rem; }
.demo-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  padding: .75rem clamp(1rem, 3vw, 2.25rem);
  border-bottom: 1px solid var(--line);
}
.demo-tabs button {
  min-height: 44px;
  padding: .35rem 1rem;
  background: transparent;
  border: 1px solid transparent;
  border-radius: .45rem;
  cursor: pointer;
  font-size: .9375rem;
  font-weight: 650;
}
.demo-tabs button[aria-selected="true"] { background: var(--ink); color: var(--surface); }
.demo-tabs button[aria-selected="false"]:hover { border-color: var(--line); }
.demo-panel {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  align-items: center;
  gap: 2.5rem;
  padding: clamp(1rem, 3vw, 2.25rem);
}
.demo-panel:focus-visible { outline-offset: -4px; }
.demo-panel + .demo-panel { border-top: 1px solid var(--line); }
.demo-panel[role="tabpanel"] { border-top: 0; }
.demo-copy { padding: clamp(.25rem, 1.4vw, 1rem); }
.demo-copy h3 {
  font: 600 clamp(1.65rem, 3vw, 2.85rem)/1.12 var(--display);
  letter-spacing: -.035em;
}
.demo-copy p { color: var(--dim); margin-top: 1rem; }
.demo-copy .demo-note { margin-top: 1.45rem; color: var(--seal); font-size: .875rem; font-weight: 650; }
.demo-figure img { width: 100%; border: 1px solid var(--line); border-radius: .65rem; }
.demo-figure figcaption { flex-wrap: wrap; justify-content: space-between; }
.demo-figure figcaption a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  color: var(--seal);
  text-underline-offset: .2em;
}

.start-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
  padding: 0;
  margin: 0;
  counter-reset: steps;
  list-style: none;
}
.start-grid li { border-top: 1px solid var(--line); padding-top: 1.1rem; counter-increment: steps; }
.start-grid li::before {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 1rem;
  border: 1px solid #d7a394;
  border-radius: 50%;
  color: var(--seal);
  font-size: .875rem;
  font-weight: 700;
  content: counter(steps);
}
.start-grid h3, .store-card h3 { font-size: 1.22rem; line-height: 1.35; letter-spacing: -.025em; }
.start-grid p, .store-card p { margin-top: .6rem; color: var(--dim); }

.privacy-section { background: #24221f; color: #f9f5eb; }
.privacy-layout { display: grid; grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr); gap: 3rem 5rem; }
.privacy-layout .eyebrow { color: #f3a390; }
.privacy-intro > p:last-child { margin-top: 1.25rem; color: #d2cac0; }
.privacy-list > div { border-top: 1px solid #5a5149; padding-block: 1.1rem; }
.privacy-list > div:last-child { border-bottom: 1px solid #5a5149; }
.privacy-list dt { font-weight: 700; font-size: 1.12rem; }
.privacy-list dd { margin-top: .35rem; color: #ded6cc; }

.store-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.store-card {
  display: flex;
  flex-direction: column;
  padding: clamp(1.15rem, 2.65vw, 2rem);
  border: 1px solid var(--line);
  border-radius: .85rem;
  background: var(--surface);
}
.pro-card { background: #f4e6df; border-color: #dfb8a9; }
.card-description { flex: 1; }
.store-card .service-state {
  width: fit-content;
  margin-top: 1.4rem;
  padding: .32rem .55rem;
  border-radius: .35rem;
  background: #eceae4;
  color: #504b42;
  font-size: .875rem;
  font-weight: 650;
  overflow-wrap: anywhere;
}
.store-card .service-state[data-ready] { background: #e3ede0; color: #2c5627; }
.store-card .button { margin-top: .85rem; }

.faq { width: min(100%, 52rem); margin-top: 3.5rem; }
.faq h2 { margin-bottom: 1rem; font-size: clamp(1.75rem, 3vw, 2.65rem); }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { padding-block: .8rem; cursor: pointer; font-weight: 650; }
.faq summary:hover { color: var(--seal); }
.faq details p { padding: 0 .8rem .9rem 1rem; color: var(--dim); }

.site-footer { border-top: 1px solid var(--line); }
.footer-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem 1.4rem;
  padding-block: .75rem;
  color: var(--dim);
  font-size: .875rem;
}
.footer-inner .wordmark { margin-right: auto; color: var(--ink); }
.footer-inner a { display: inline-flex; align-items: center; min-height: 44px; }

@media (max-width: 56rem) {
  .header-inner { grid-template-columns: 1fr auto; gap: 0 1rem; padding-top: .35rem; }
  .primary-nav { grid-column: 1 / -1; grid-row: 2; }
  .header-actions { gap: .65rem; }
  .hero { gap: 1.5rem; }
  .hero h1 { font-size: clamp(2.65rem, 6.05vw, 5rem); }
  :lang(zh) .hero h1 { font-size: clamp(2.95rem, 6.55vw, 5rem); }
  .hero-description { margin-top: 1rem; }
  .hero-actions { margin-top: 1.2rem; }
  .section-heading, .privacy-layout { gap: 1rem 2rem; }
}

@media (max-width: 43.75rem) {
  .hero, .section-heading, .demo-panel, .privacy-layout, .start-grid, .store-grid { grid-template-columns: minmax(0, 1fr); }
  .hero { gap: 2rem; }
  .hero h1 { font-size: clamp(3.5rem, 10vw, 5rem); }
  :lang(zh) .hero h1 { font-size: clamp(3.55rem, 11vw, 5rem); }
  .hero-visual { border-radius: .8rem; }
  .hero-cue { width: 74%; left: 13%; }
  .demo-panel { gap: .9rem; }
  .demo-tabs { gap: .25rem; }
  .demo-tabs button { flex: 1; padding-inline: .45rem; }
  .demo-copy .demo-note { margin-top: .75rem; }
  .privacy-layout { gap: 1.5rem; }
  .store-grid { gap: .8rem; }
}

@media (max-width: 22rem) {
  .hero h1 { font-size: 3.1rem; }
  :lang(zh) .hero h1 { font-size: 3.15rem; }
  :lang(zh) .privacy-intro h2 { text-wrap: balance; }
  .header-actions { gap: .45rem; }
  .wordmark { font-size: 1rem; }
  .wordmark img { width: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .button { transition: none; }
}
