:root {
  color-scheme: light;
  --paper: #f6f7f2;
  --ink: #203f33;
  --forest: #244f40;
  --muted: #69756b;
  --line: #dfe5da;
  --gold: #cda16a;
  --serif: 'Songti SC', 'Noto Serif SC', 'STSong', 'SimSun', serif;
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-width: 320px;
}

body:has(dialog[open]) {
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

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

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

p,
h1,
h2,
h3,
figure {
  margin: 0;
}

.icon-definitions {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.line-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.page-shell {
  width: min(1200px, calc(100% - 96px));
  margin: 0 auto;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 12px;
  left: 12px;
  padding: 12px 18px;
  border-radius: 8px;
  color: #fff;
  background: var(--forest);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

/* A quiet masthead with a single invitation to explore. */
.site-header {
  min-height: 94px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand-copy {
  display: grid;
  gap: 5px;
}

.brand-copy strong {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1;
}

.brand-copy > span {
  font-size: 9px;
  letter-spacing: 3.5px;
  color: var(--muted);
}

.header-motto {
  padding-left: 18px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 1px;
}

.header-actions {
  display: flex;
  align-items: center;
  font-size: 13px;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  padding: 12px 19px;
  border: 1px solid #bdccbd;
  border-radius: 7px;
  transition:
    background 180ms ease,
    border-color 180ms ease;
}

.nav-cta:hover {
  border-color: var(--forest);
  background: #eaf0e5;
}

/* The landscape is an existing project asset, encoded for the public homepage. */
.hero {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  align-items: center;
  gap: 56px;
  padding-block: 42px 54px;
}

.hero-content {
  padding-block: 10px;
  animation: arrive 650ms ease both;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: #64775a;
  font-size: 12px;
  letter-spacing: 2.5px;
}

.little-sun {
  width: 13px;
  height: 13px;
  border: 1px solid #b58c58;
  border-radius: 50%;
  box-shadow: 0 0 0 4px #cda16a15;
}

.hero h1 {
  font-size: clamp(42px, 5vw, 70px);
  font-weight: 750;
  letter-spacing: -1.8px;
  line-height: 1.18;
  white-space: nowrap;
}

.title-question {
  display: inline-block;
  margin-left: 1px;
  color: #b18b55;
  font-family: var(--serif);
  font-weight: 400;
  transform: rotate(8deg);
}

.hero-tagline {
  margin-top: 14px;
  font-family: var(--serif);
  font-size: clamp(27px, 2.8vw, 39px);
  line-height: 1.45;
  letter-spacing: 1px;
}

.hero-tagline span {
  white-space: nowrap;
}

.hero-description {
  margin-top: 22px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.95;
}

.primary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  min-height: 49px;
  margin-top: 27px;
  padding: 14px 23px;
  border-radius: 7px;
  background: var(--forest);
  color: #fbfcf6;
  font-size: 14px;
  font-weight: 600;
  transition:
    background 180ms ease,
    box-shadow 180ms ease;
}

.primary-cta .line-icon {
  width: 18px;
  height: 18px;
  transition: transform 180ms ease;
}

.primary-cta:hover {
  background: #183e30;
  box-shadow: 0 5px 16px #234f4019;
}

.primary-cta:hover .line-icon {
  transform: translateX(4px);
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 29px 0 0;
  padding: 0;
  list-style: none;
  color: #687766;
  font-size: 12px;
}

.hero-features li {
  display: flex;
  align-items: center;
  gap: 7px;
}

.hero-features .line-icon {
  width: 17px;
  height: 17px;
}

.hero-visual {
  position: relative;
  min-width: 0;
  animation: arrive 750ms 100ms ease both;
}

.contour-lines {
  position: absolute;
  z-index: -1;
  top: -27px;
  right: 24px;
  width: 270px;
  height: 270px;
  stroke: #4b6b42;
  stroke-width: 0.8px;
  opacity: 0.2;
  transform: rotate(-23deg);
}

.hero-photo {
  position: relative;
  height: 384px;
  overflow: hidden;
  border-radius: 110px 12px 12px 12px;
  isolation: isolate;
  background: #d4dfc9;
}

.hero-photo > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 50%;
}

.hero-photo::after {
  position: absolute;
  z-index: 0;
  inset: 30% 0 0;
  content: '';
  background: linear-gradient(transparent, #112c246b);
  pointer-events: none;
}

.photo-label {
  position: absolute;
  z-index: 1;
  top: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border: 1px solid #f8f9e78c;
  border-radius: 30px;
  background: #fffbe322;
  color: #294932;
  font-size: 11px;
  letter-spacing: 1px;
  backdrop-filter: blur(8px);
}

.photo-label > span {
  font-size: 19px;
  line-height: 1;
}

.hero-photo figcaption {
  position: absolute;
  z-index: 1;
  left: 30px;
  bottom: 76px;
  color: #fffef0;
}

.hero-photo figcaption > span {
  font-size: 9px;
  letter-spacing: 2.5px;
}

.hero-photo figcaption > strong {
  display: block;
  margin-top: 10px;
  font-family: var(--serif);
  font-size: 29px;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 2px;
}

.photo-compass {
  position: absolute;
  z-index: 1;
  right: 27px;
  bottom: 28px;
  width: 41px;
  height: 41px;
  color: #fbf9d9b3;
  stroke-width: 0.8px;
}

.field-note {
  position: absolute;
  z-index: 2;
  left: -27px;
  bottom: -16px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 22px 15px 17px;
  border: 1px solid #e0e5d8;
  border-radius: 10px;
  background: #fbfcf6;
  box-shadow: 0 5px 20px #223e3210;
  transform: rotate(-3deg);
}

.field-note > .line-icon {
  width: 29px;
  height: 29px;
  color: #7a8a60;
  stroke-width: 1.2px;
}

.field-note small,
.field-note strong {
  display: block;
}

.field-note small {
  color: #78826e;
  font-size: 9px;
  letter-spacing: 0.7px;
}

.field-note strong {
  margin-top: 6px;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 400;
  letter-spacing: 1px;
}

/* Three honest platform states: scan now, or coming soon. */
.platforms {
  padding-top: 5px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 23px;
}

.section-eyebrow {
  color: #7c855f;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 2.4px;
}

.section-heading h2 {
  margin-top: 9px;
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.5px;
  text-wrap: balance;
}

.section-note {
  padding-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 19px;
}

.platform-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 317px;
  padding: 24px 25px 18px;
  border: 1px solid var(--line);
  border-radius: 13px;
  animation: arrive 700ms 180ms ease both;
}

.platform-card:nth-child(2) {
  animation-delay: 250ms;
}

.platform-card:nth-child(3) {
  animation-delay: 320ms;
}

.wechat-card {
  border-color: var(--forest);
  background: var(--forest);
  color: #f6faee;
  scroll-margin-top: 24px;
}

.android-card {
  background: #eef2e8;
}

.ios-card {
  background: #f1efe6;
}

.platform-heading {
  display: flex;
  align-items: center;
  gap: 11px;
}

.platform-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 39px;
  height: 39px;
  border: 1px solid #cbd5c5;
  border-radius: 11px;
  color: #52674a;
}

.platform-icon > svg {
  width: 25px;
  height: 25px;
}

.wechat-icon {
  border-color: #ffffff20;
  background: #ffffff0d;
  color: #eff6e6;
}

.wechat-eye {
  fill: var(--forest);
}

.apple-icon {
  border-color: #d7d4c8;
  color: #606c58;
}

.apple-icon > svg {
  width: 24px;
  height: 24px;
}

.platform-heading h3 {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
}

.platform-heading p {
  margin-top: 5px;
  color: #6a7864;
  font-size: 10px;
  letter-spacing: 0.4px;
}

.wechat-card .platform-heading p {
  color: #c1d4bd;
}

.platform-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex: 0 0 auto;
  margin-left: auto;
  padding: 5px 8px;
  border: 1px solid #cbd4c1;
  border-radius: 20px;
  font-size: 9px;
  white-space: nowrap;
}

.available-badge {
  border-color: #bacda13d;
  color: #d6e6b8;
}

.available-badge i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #c8dc9a;
}

.coming-badge {
  color: #66715e;
}

.wechat-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding-block: 18px 15px;
}

.mini-code-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 170px;
  height: 170px;
  padding: 6px;
  border: 0;
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  cursor: zoom-in;
  transition: box-shadow 180ms ease;
}

.mini-code-button img {
  width: 158px;
  height: 158px;
}

.mini-code-button:hover {
  box-shadow: 0 0 0 4px #c2d7a52b;
}

.mini-code-button:disabled {
  cursor: default;
}

.mini-code-button:disabled .code-expand {
  display: none;
}

.mini-code-fallback {
  display: grid;
  gap: 12px;
  text-align: center;
}

.mini-code-fallback strong {
  font-size: 19px;
}

.mini-code-fallback > span {
  font-size: 10px;
}

.code-expand {
  position: absolute;
  right: -7px;
  bottom: -7px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 2px solid var(--forest);
  border-radius: 7px;
  background: #e6edd9;
  color: var(--forest);
}

.code-expand .line-icon {
  width: 13px;
  height: 13px;
}

.code-hint {
  color: #d1dfc8;
  font-size: 11px;
  letter-spacing: 0.7px;
}

.coming-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 0 17px;
  text-align: center;
}

.coming-eyebrow {
  color: #768066;
  font-size: 8px;
  letter-spacing: 1.3px;
}

.coming-title {
  margin-top: 13px;
  font-family: var(--serif);
  font-size: 34px;
  letter-spacing: 3px;
  line-height: 1.4;
}

.coming-title > span {
  color: #b18f56;
}

.coming-description {
  margin-top: 9px;
  color: #74806b;
  font-size: 11px;
  line-height: 1.9;
}

.coming-route {
  width: 148px;
  height: 25px;
  margin-top: 16px;
  color: #829473;
  stroke: currentColor;
  stroke-width: 1.2;
  stroke-linecap: round;
}

.coming-route > path:first-of-type {
  stroke-dasharray: 3 4;
}

.coming-route > circle {
  fill: #b7c79b;
  stroke: none;
}

.platform-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 13px;
  border-top: 1px solid #cfd8c7;
  color: #6b7a63;
  font-size: 9px;
}

.platform-footer > span:first-child {
  font-size: 8px;
  letter-spacing: 1px;
  white-space: nowrap;
}

.wechat-card .platform-footer {
  border-color: #b1c4a72e;
  color: #c7d8bc;
}

/* Registration remains explicitly pending until a real number is supplied. */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 36px;
  padding-block: 24px 27px;
  border-top: 1px solid var(--line);
}

.footer-message {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #6c7869;
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.6px;
}

.footer-message img {
  opacity: 0.72;
}

.footer-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: #707b6c;
  font-size: 10px;
  line-height: 1.8;
}

.footer-divider {
  color: #b0b8a8;
}

.footer-meta a:hover {
  color: var(--forest);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mini-code-dialog {
  width: min(380px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: 34px 28px 28px;
  overflow: auto;
  border: 1px solid #e2e7db;
  border-radius: 18px;
  background: #fafbf6;
  color: var(--ink);
  text-align: center;
  box-shadow: 0 20px 90px #112e3659;
}

.mini-code-dialog::backdrop {
  background: #142c23b3;
  backdrop-filter: blur(5px);
}

.dialog-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #eaf0e5;
  color: var(--forest);
  cursor: pointer;
}

.dialog-close:hover {
  background: #dee8d5;
}

.mini-code-dialog h2 {
  margin-top: 12px;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 1px;
}

.mini-code-dialog > img {
  width: 100%;
  height: auto;
  margin: 20px auto 12px;
  border-radius: 10px;
}

.mini-code-dialog > p:not(.section-eyebrow) {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.save-code {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  min-height: 44px;
  margin-top: 20px;
  border-radius: 7px;
  background: var(--forest);
  color: #fff;
  font-size: 13px;
}

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

@media (min-width: 1700px) {
  .page-shell {
    width: 1320px;
  }

  .hero {
    gap: 70px;
    padding-block: 56px 64px;
  }

  .hero-photo {
    height: 420px;
  }
}

@media (max-width: 1100px) {
  .header-motto {
    display: none;
  }

  .hero {
    gap: 35px;
  }

  .hero h1 {
    font-size: 54px;
  }

  .hero-tagline {
    font-size: 29px;
  }

  .hero-description {
    font-size: 12px;
  }

  .hero-photo {
    height: 365px;
  }

  .platform-card {
    padding-inline: 18px;
  }

  .platform-badge {
    font-size: 8px;
    padding-inline: 6px;
  }

  .platform-heading {
    gap: 9px;
  }

  .platform-heading h3 {
    font-size: 15px;
  }

  .platform-footer > span:last-child {
    font-size: 8px;
  }

  .coming-eyebrow {
    font-size: 7px;
    letter-spacing: 0.6px;
  }
}

@media (max-width: 850px) {
  .page-shell {
    width: calc(100% - 48px);
  }

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

  .hero-content {
    padding: 0;
  }

  .hero h1 {
    font-size: 61px;
  }

  .hero-tagline {
    font-size: 34px;
  }

  .hero-description {
    font-size: 14px;
  }

  .hero-features {
    gap: 25px;
    margin-top: 25px;
  }

  .hero-photo {
    height: 330px;
    border-top-left-radius: 85px;
  }

  .hero-visual {
    margin-left: 13px;
  }

  .contour-lines {
    width: 220px;
    height: 220px;
  }

  .field-note {
    left: -13px;
  }

  .section-note {
    display: none;
  }

  .platform-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .wechat-card {
    grid-column: 1 / -1;
  }

  .platform-card {
    padding: 22px 24px 18px;
  }

  .platform-heading h3 {
    font-size: 18px;
  }

  .platform-badge {
    padding: 6px 10px;
    font-size: 10px;
  }

  .upcoming-card {
    min-height: 280px;
  }

  .site-footer {
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 28px;
    padding-block: 24px;
  }
}

@media (max-width: 540px) {
  .page-shell {
    width: calc(100% - 40px);
  }

  .site-header {
    min-height: 80px;
    gap: 12px;
  }

  .brand {
    gap: 9px;
  }

  .brand > img {
    width: 36px;
    height: 36px;
  }

  .brand-copy {
    gap: 4px;
  }

  .brand-copy strong {
    font-size: 17px;
  }

  .brand-copy > span {
    font-size: 8px;
    letter-spacing: 2.5px;
  }

  .nav-cta {
    gap: 14px;
    padding: 10px 12px;
    font-size: 11px;
  }

  .hero {
    padding-top: 30px;
  }

  .eyebrow {
    margin-bottom: 17px;
    font-size: 10px;
    letter-spacing: 2px;
  }

  .hero h1 {
    font-size: 44px;
    letter-spacing: -1px;
  }

  .hero-tagline {
    margin-top: 13px;
    font-size: 27px;
    letter-spacing: 0;
  }

  .hero-description {
    margin-top: 18px;
    font-size: 12px;
    line-height: 1.95;
  }

  .primary-cta {
    min-height: 46px;
    margin-top: 22px;
    padding: 12px 20px;
    font-size: 13px;
  }

  .hero-features {
    gap: 22px;
    font-size: 11px;
  }

  .hero-photo {
    height: 265px;
    border-top-left-radius: 66px;
  }

  .hero-photo figcaption {
    left: 23px;
    bottom: 68px;
  }

  .hero-photo figcaption > span {
    font-size: 7px;
    letter-spacing: 1.8px;
  }

  .hero-photo figcaption > strong {
    margin-top: 8px;
    font-size: 25px;
    line-height: 1.45;
  }

  .photo-label {
    top: 15px;
    right: 15px;
    padding: 5px 9px;
    font-size: 9px;
  }

  .photo-label > span {
    font-size: 16px;
  }

  .photo-compass {
    right: 20px;
    bottom: 20px;
    width: 33px;
    height: 33px;
  }

  .field-note {
    gap: 11px;
    padding: 11px 16px;
  }

  .field-note strong {
    font-size: 17px;
  }

  .field-note small {
    font-size: 8px;
  }

  .section-heading {
    margin-bottom: 19px;
  }

  .section-heading h2 {
    font-size: 21px;
    letter-spacing: 0;
  }

  .section-eyebrow {
    font-size: 8px;
    letter-spacing: 1.7px;
  }

  .platform-grid {
    gap: 12px;
  }

  .platform-card {
    padding: 19px 17px 15px;
  }

  .wechat-card {
    min-height: 317px;
    padding-inline: 23px;
  }

  .upcoming-card {
    min-height: 258px;
  }

  .upcoming-card .platform-heading {
    gap: 8px;
  }

  .upcoming-card .platform-icon {
    width: 29px;
    height: 31px;
    border: none;
    border-radius: 0;
  }

  .upcoming-card .platform-icon > svg {
    width: 26px;
    height: 26px;
  }

  .upcoming-card .platform-heading h3 {
    font-size: 14px;
    white-space: nowrap;
  }

  .upcoming-card .platform-heading p {
    font-size: 9px;
  }

  .coming-badge,
  .coming-eyebrow,
  .upcoming-card .platform-footer > span:last-child {
    display: none;
  }

  .coming-content {
    padding-block: 14px 12px;
  }

  .coming-title {
    margin-top: 8px;
    font-size: 25px;
    letter-spacing: 1px;
  }

  .coming-description {
    font-size: 10px;
    line-height: 1.85;
  }

  .coming-route {
    width: 100%;
    max-width: 120px;
    margin-top: 13px;
  }

  .footer-message {
    font-size: 11px;
  }

  .footer-meta {
    justify-content: center;
    gap: 10px;
    font-size: 9px;
  }

  .mini-code-dialog {
    padding-inline: 24px;
  }
}

@media (max-width: 359px) {
  .page-shell {
    width: calc(100% - 32px);
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero-tagline {
    font-size: 25px;
  }

  .platform-card {
    padding-inline: 12px;
  }

  .wechat-card {
    padding-inline: 18px;
  }

  .upcoming-card .platform-heading {
    gap: 5px;
  }

  .upcoming-card .platform-heading h3 {
    font-size: 13px;
  }

  .platform-heading h3 {
    font-size: 16px;
  }

  .available-badge {
    padding-inline: 7px;
    font-size: 9px;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
