:root {
  color-scheme: light;
  --paper: #f4f1e9;
  --paper-bright: #fbfaf6;
  --ink: #11110f;
  --muted: #67655e;
  --line: rgba(17, 17, 15, 0.16);
  --soft-line: rgba(17, 17, 15, 0.09);
  --yellow: #f4bf24;
  --red: #d96356;
  --green: #37956e;
  --blue: #4c81bf;
  --violet: #8164a7;
  --radius: 28px;
  --shadow: 0 30px 70px rgba(33, 30, 24, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 16% 7%, rgba(244, 191, 36, 0.08), transparent 22rem),
    var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea { font: inherit; }

body [lang="zh-Hans"] { display: none !important; }
html[data-locale="zh-Hans"] body [lang="en"] { display: none !important; }
html[data-locale="zh-Hans"] body [lang="zh-Hans"] { display: revert !important; }

.skip-link {
  position: fixed;
  z-index: 100;
  left: 1rem;
  top: 1rem;
  transform: translateY(-180%);
  padding: 0.7rem 1rem;
  background: var(--ink);
  color: white;
  border-radius: 999px;
}

.skip-link:focus { transform: none; }

.site-header {
  width: min(1380px, calc(100% - 48px));
  min-height: 88px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 780;
  letter-spacing: -0.02em;
}

.brand img { border-radius: 10px; }

.site-nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.2rem); }
.site-nav a, .site-footer a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
  text-decoration: none;
  transition: color 180ms ease;
}
.site-nav a:hover, .site-footer a:hover { color: var(--ink); }

.language-switch {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: #aaa69d;
}

.language-switch button {
  min-width: 44px;
  min-height: 44px;
  border: 0;
  padding: 0.4rem;
  background: transparent;
  color: #96928a;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 760;
  letter-spacing: 0.08em;
}

.language-switch button[aria-pressed="true"] { color: var(--ink); }

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

.hero {
  min-height: calc(100svh - 88px);
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(430px, 0.82fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 8rem);
  padding-block: clamp(4rem, 8vw, 8rem);
}

.eyebrow {
  margin: 0 0 1.35rem;
  color: var(--muted);
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.27em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 1.8rem;
  font-size: clamp(3.8rem, 7.6vw, 7.5rem);
  font-weight: 780;
  letter-spacing: -0.075em;
  line-height: 0.86;
}

h1 em {
  position: relative;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

h1 em::after {
  content: "";
  position: absolute;
  left: 0.05em;
  right: -0.03em;
  bottom: 0.02em;
  height: 0.065em;
  border-radius: 999px;
  background: var(--yellow);
  transform: rotate(-1.5deg);
}

.zh-hero-title {
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 780;
  letter-spacing: -0.075em;
}

.zh-accent {
  position: relative;
  white-space: nowrap;
}

.zh-accent::after {
  content: "";
  position: absolute;
  left: 0.02em;
  right: -0.02em;
  bottom: 0.01em;
  height: 0.065em;
  border-radius: 999px;
  background: var(--yellow);
  transform: rotate(-1.5deg);
}

.lede {
  max-width: 38rem;
  margin-bottom: 2.15rem;
  color: #4d4b45;
  font-size: clamp(1.06rem, 1.5vw, 1.27rem);
  line-height: 1.62;
}

.store-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.store-button {
  min-width: 184px;
  min-height: 60px;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 1.05rem;
  border: 1px solid var(--ink);
  border-radius: 14px;
  text-decoration: none;
}
.store-button[aria-disabled="true"] { cursor: default; }
.store-button-primary { background: var(--ink); color: white; }
.store-button-muted { border-color: var(--line); color: #77736b; background: rgba(255,255,255,0.32); }
.store-button span:not(.store-mark) { display: grid; }
.store-button small { font-size: 0.63rem; line-height: 1.05; }
.store-button strong { font-size: 1.02rem; letter-spacing: -0.025em; }
.store-mark { width: 1.45rem; font-size: 1.65rem; line-height: 1; text-align: center; }
.play-mark { font-size: 1.15rem; }
.availability-note { max-width: 31rem; margin: 0.85rem 0 0; color: #817d74; font-size: 0.72rem; }

.hero-art { position: relative; min-height: 680px; overflow: clip; isolation: isolate; }
.phone {
  position: absolute;
  overflow: hidden;
  border: 1px solid rgba(17,17,15,0.16);
  border-radius: 38px;
  background: #deddd9;
  box-shadow: var(--shadow);
}
.phone-main {
  width: min(72%, 376px);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(1.6deg);
}
.phone img { width: 100%; }
.orbit {
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  border: 1px solid;
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-22deg);
}
.orbit-one { width: 90%; height: 45%; border-color: rgba(76,129,191,0.3); }
.orbit-two { width: 70%; height: 85%; border-color: rgba(217,99,86,0.24); transform: translate(-50%, -50%) rotate(34deg); }

.rule-section {
  padding-block: clamp(5rem, 11vw, 10rem);
  background: var(--ink);
  color: #f7f5ef;
}
.rule-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(4rem, 10vw, 9rem); align-items: end; }
.rule-section .eyebrow, .rule-section p { color: #aaa79f; }
.section-intro h2, .gallery h2, .feature-section h2, .closing h2 {
  margin-bottom: 1.2rem;
  font-size: clamp(2.6rem, 5.5vw, 5.3rem);
  line-height: 0.99;
  letter-spacing: -0.06em;
}
.section-intro > .locale-copy > p { max-width: 42rem; font-size: 1.06rem; }
.numbers { margin: 0; display: grid; }
.numbers div { display: grid; grid-template-columns: 0.7fr 1fr; align-items: baseline; padding: 1.1rem 0; border-top: 1px solid rgba(255,255,255,0.18); }
.numbers div:last-child { border-bottom: 1px solid rgba(255,255,255,0.18); }
.numbers dt { font-size: clamp(2.8rem, 6vw, 5.5rem); font-weight: 250; letter-spacing: -0.06em; }
.numbers dd { margin: 0; color: #aaa79f; font-size: 0.84rem; text-transform: uppercase; letter-spacing: 0.12em; }

.gallery { padding-block: clamp(6rem, 12vw, 11rem); }
.gallery-heading { max-width: 720px; margin-bottom: clamp(3rem, 6vw, 6rem); }
.gallery-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.2rem; align-items: start; }
.shot {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
  background: #ebe8e0;
  box-shadow: 0 20px 40px rgba(39,36,30,0.07);
}
.shot img { width: 100%; }
.shot figcaption { padding: 1rem 1.25rem 1.2rem; color: var(--muted); font-size: 0.79rem; }
.shot-tall { grid-column: 1 / span 4; margin-top: 5rem; }
.shot-dark { grid-column: 5 / span 4; background: #090909; color: white; }
.shot-dark figcaption { color: #bbb8b0; }
.shot-wide { grid-column: 9 / span 4; margin-top: 9rem; }

.feature-section { padding-block: clamp(6rem, 11vw, 10rem); border-block: 1px solid var(--line); background: rgba(255,255,255,0.22); }
.centered { max-width: 830px; margin: 0 auto clamp(4rem, 8vw, 7rem); text-align: center; }
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.feature { min-height: 260px; padding: clamp(1.5rem, 4vw, 3rem); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feature-index { display: block; margin-bottom: 3rem; color: var(--muted); font-family: ui-monospace, monospace; font-size: 0.67rem; }
.feature h3 { margin-bottom: 0.65rem; font-size: 1.35rem; letter-spacing: -0.035em; }
.feature p { max-width: 30rem; margin-bottom: 0; color: var(--muted); }

.closing { min-height: 75svh; display: grid; align-content: center; justify-items: center; padding-block: 7rem; text-align: center; }
.closing img { margin-bottom: 2.2rem; border-radius: 25%; }
.closing h2 { max-width: 950px; }
.closing .locale-copy > p:last-child { color: var(--muted); }

.site-footer {
  width: min(1380px, calc(100% - 48px));
  margin: 0 auto;
  padding: 2.4rem 0 3rem;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: end;
  gap: 3rem;
  border-top: 1px solid var(--line);
}
.footer-brand { display: grid; gap: 0.2rem; }
.footer-brand strong { font-size: 0.96rem; }
.footer-brand span, .site-footer > p { margin: 0; color: var(--muted); font-size: 0.72rem; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.4rem; }

/* Informational pages */
.page-main { min-height: 70svh; }
.page-hero { padding: clamp(5rem, 10vw, 9rem) 0 clamp(3rem, 6vw, 5rem); border-bottom: 1px solid var(--line); }
.page-hero-inner { width: min(900px, calc(100% - 48px)); margin: 0 auto; }
.page-hero h1 { max-width: 780px; font-size: clamp(3.4rem, 7vw, 6.6rem); }
.page-hero .lede { max-width: 680px; }
.page-meta { margin: 1.7rem 0 0; color: var(--muted); font-size: 0.77rem; }
.document { width: min(900px, calc(100% - 48px)); margin: 0 auto; padding-block: clamp(4rem, 8vw, 7rem); }
.document .locale-copy > section, .document .locale-copy > div > section { padding: 2rem 0; border-top: 1px solid var(--line); }
.document h2 { margin-bottom: 0.85rem; font-size: clamp(1.55rem, 3vw, 2.25rem); letter-spacing: -0.035em; }
.document h3 { margin: 1.5rem 0 0.5rem; font-size: 1rem; }
.document p, .document li { color: #4f4d47; }
.document .locale-copy > section:not(.faq) > p,
.document .locale-copy > section:not(.faq) > ul { max-width: 46rem; }
.document ul { padding-left: 1.25rem; }
.document li + li { margin-top: 0.5rem; }
.document a { text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
.contact-card {
  margin: 1.8rem 0 0;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2rem;
  padding: clamp(1.4rem, 4vw, 2.4rem);
  border-radius: 22px;
  background: var(--ink);
  color: white;
}
.contact-card p { margin: 0.3rem 0 0; color: #aaa79f; }
.contact-button { display: inline-flex; padding: 0.75rem 1rem; border-radius: 999px; background: var(--yellow); color: var(--ink); font-size: 0.82rem; font-weight: 750; text-decoration: none; white-space: nowrap; }
.faq { display: grid; grid-template-columns: 1fr 2fr; gap: 3rem; padding: 1.5rem 0; border-top: 1px solid var(--line); }
.faq h2 { font-size: 1.15rem; }
.faq p { margin-bottom: 0; }
.status-pill { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--muted); font-size: 0.78rem; }
.status-pill::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(55,149,110,0.12); }

.reveal { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 0.2rem 1rem;
    padding-block: 0.65rem 0.5rem;
  }
  .site-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    gap: clamp(1rem, 5vw, 2rem);
    overflow-x: auto;
    scrollbar-width: none;
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { max-width: 720px; }
  .hero-art { min-height: 610px; }
  .phone-main { width: min(65%, 360px); }
  .rule-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .shot-tall, .shot-dark, .shot-wide { grid-column: auto; margin-top: 0; }
  .shot-wide { grid-column: 1 / -1; width: 50%; justify-self: center; }
  .site-footer { grid-template-columns: 1fr; gap: 1.5rem; align-items: start; }
  .site-footer nav { justify-content: flex-start; }
}

@media (max-width: 620px) {
  .site-header, .shell, .site-footer, .page-hero-inner, .document { width: min(100% - 30px, 1240px); }
  .site-header { min-height: 112px; }
  .brand img { width: 34px; height: 34px; }
  .brand span { font-size: 0.85rem; }
  h1 { font-size: clamp(3.45rem, 17vw, 5rem); }
  .hero { min-height: auto; padding-block: 4rem 2rem; }
  .hero-art { min-height: 540px; }
  .phone-main { width: min(78%, 340px); }
  .site-nav a { font-size: 0.76rem; white-space: nowrap; }
  .page-hero .locale-copy[lang="zh-Hans"] h1 {
    font-size: clamp(2.9rem, 14vw, 4.2rem);
    line-height: 1.02;
    letter-spacing: -0.06em;
    word-break: keep-all;
  }
  .store-button { width: 100%; }
  .numbers div { grid-template-columns: 0.85fr 1.15fr; }
  .gallery-grid { display: grid; grid-template-columns: 1fr; }
  .shot-wide { grid-column: auto; width: 100%; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature { min-height: 230px; }
  .contact-card { grid-template-columns: 1fr; }
  .contact-button { width: fit-content; }
  .faq { grid-template-columns: 1fr; gap: 0.25rem; }
}

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