:root {
  --canvas: #f7f5ef;
  --surface: #fffdf8;
  --ink: #20201e;
  --muted: #6d6a62;
  --line: #dedad0;
  --coral: #ef6a5b;
  --coral-dark: #c9473c;
  --indigo: #5865d8;
  --indigo-soft: #e9ebff;
  --mint: #dff2e9;
  --shadow: 0 24px 60px rgba(46, 43, 35, 0.1);
  --radius-lg: 30px;
  --radius-md: 20px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background:
    radial-gradient(circle at 10% 12%, rgba(239, 106, 91, 0.08), transparent 26rem),
    radial-gradient(circle at 90% 34%, rgba(88, 101, 216, 0.08), transparent 28rem),
    var(--canvas);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC",
    "Hiragino Sans GB", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

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

button,
summary {
  font: inherit;
}

:focus-visible {
  outline: 3px solid rgba(88, 101, 216, 0.42);
  outline-offset: 4px;
  border-radius: 6px;
}

html:not([data-language="en"]) [lang="en"] {
  display: none;
}

html[data-language="en"] [lang="zh-CN"] {
  display: none;
}

html[data-language="en"] [lang="en"] {
  display: inline;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: white;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

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

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: calc(var(--max-width) + 48px);
  margin: 0 auto;
  padding: 20px 24px;
  background: rgba(247, 245, 239, 0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: inline-block;
  width: 31px;
  height: 31px;
  border-radius: 10px;
  background: var(--ink);
  transform: rotate(-4deg);
}

.brand-mark i {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--canvas);
}

.brand-mark i:first-child {
  top: 7px;
  left: 7px;
}

.brand-mark i:nth-child(2) {
  top: 13px;
  left: 13px;
}

.brand-mark i:last-child {
  right: 7px;
  bottom: 7px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.text-link {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

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

.language-switcher {
  display: flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.8);
}

.language-switcher button {
  min-width: 48px;
  min-height: 34px;
  padding: 5px 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

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

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(360px, 0.8fr);
  gap: clamp(48px, 8vw, 110px);
  align-items: center;
  min-height: 690px;
  padding-block: 72px 100px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--coral-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(52px, 7vw, 88px);
  font-weight: 780;
}

.hero-lede {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.7;
}

.hero-actions {
  --hero-action-height: 50px;
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.hero-actions .button,
.hero-actions .app-store-badge-link {
  height: var(--hero-action-height);
  min-height: var(--hero-action-height);
}

.hero-actions .button {
  padding-block: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 750;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

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

.button-primary {
  background: var(--ink);
  color: white;
}

.button-primary:hover {
  background: #353531;
}

.button-secondary {
  border-color: var(--line);
  background: var(--surface);
}

.app-store-badge-link {
  display: inline-flex;
  align-items: center;
  border-radius: 7px;
}

.app-store-badge {
  display: block;
  width: auto;
  height: var(--hero-action-height, 50px);
  max-width: 100%;
}

.availability {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #55a67d;
  box-shadow: 0 0 0 5px rgba(85, 166, 125, 0.12);
}

.tool-preview {
  position: relative;
  padding: 24px;
  border: 1px solid rgba(222, 218, 208, 0.8);
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 248, 0.88);
  box-shadow: var(--shadow);
  transform: rotate(1.6deg);
}

.tool-preview::before {
  position: absolute;
  z-index: -1;
  inset: 20px -18px -18px 18px;
  border-radius: var(--radius-lg);
  background: var(--indigo);
  content: "";
  opacity: 0.88;
}

.preview-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  font-size: 15px;
  font-weight: 750;
}

.spark {
  color: var(--coral);
  font-size: 24px;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.tool-chip {
  display: flex;
  flex-direction: column;
  min-height: 170px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--canvas);
}

.tool-chip-featured {
  background: var(--indigo-soft);
}

.tool-chip strong {
  margin-top: auto;
  font-size: 17px;
}

.tool-chip small {
  color: var(--muted);
  font-size: 12px;
}

.tool-symbol {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin-bottom: 20px;
}

.coin-symbol {
  border: 5px solid var(--coral);
  border-radius: 50%;
  background: rgba(239, 106, 91, 0.15);
  box-shadow: inset 0 0 0 4px var(--canvas);
}

.dice-symbol {
  border-radius: 16px;
  background: var(--ink);
  color: white;
  font-size: 12px;
  line-height: 2;
  letter-spacing: 5px;
  transform: rotate(-5deg);
}

.wheel-symbol {
  border: 5px solid var(--indigo);
  border-radius: 50%;
  background: conic-gradient(var(--coral) 0 25%, #efc15a 25% 50%, var(--mint) 50% 75%, var(--indigo-soft) 75%);
}

.number-symbol {
  border-radius: 16px;
  background: var(--mint);
  color: #287054;
  font-size: 24px;
  font-weight: 800;
}

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

.section-heading {
  max-width: 760px;
  margin-bottom: 54px;
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(38px, 5vw, 60px);
  font-weight: 760;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.feature-card {
  min-height: 260px;
  padding: clamp(28px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 253, 248, 0.78);
}

.feature-index {
  display: block;
  margin-bottom: 50px;
  color: var(--coral);
  font-size: 12px;
  font-weight: 800;
}

.feature-card h3 {
  margin-bottom: 14px;
  font-size: 26px;
}

.feature-card p,
.principles-copy > p,
.support-intro > p {
  margin-bottom: 0;
  color: var(--muted);
}

.principles {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(48px, 9vw, 120px);
  align-items: center;
  padding-block: 110px;
}

.principles-copy h2 {
  font-size: clamp(38px, 4.8vw, 58px);
}

.inline-link {
  display: inline-flex;
  gap: 10px;
  margin-top: 30px;
  color: var(--indigo);
  font-weight: 750;
}

.principle-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.principle-list li {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.principle-list li > span:first-child {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--mint);
  color: #287054;
  font-weight: 900;
}

.principle-list strong,
.principle-list small {
  display: block;
}

.principle-list small {
  margin-top: 2px;
  color: var(--muted);
}

.support-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(50px, 9vw, 120px);
  padding-block: 110px 140px;
  border-top: 1px solid var(--line);
}

.support-intro h2 {
  font-size: clamp(38px, 4.6vw, 56px);
}

.support-intro .button {
  margin-top: 28px;
}

.support-email {
  margin-top: 14px !important;
  font-size: 14px;
}

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

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

.faq-list summary {
  position: relative;
  padding: 25px 42px 25px 0;
  cursor: pointer;
  font-weight: 720;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  position: absolute;
  top: 22px;
  right: 4px;
  content: "+";
  color: var(--indigo);
  font-size: 24px;
  font-weight: 500;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list p {
  max-width: 720px;
  margin: -6px 0 24px;
  color: var(--muted);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 40px;
  align-items: end;
  max-width: calc(var(--max-width) + 48px);
  margin: 0 auto;
  padding: 50px 24px;
  border-top: 1px solid var(--line);
}

.footer-brand {
  font-size: 16px;
}

.footer-brand .brand-mark {
  width: 27px;
  height: 27px;
  transform: scale(0.86) rotate(-4deg);
}

.site-footer p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.site-footer .apple-trademark-credit {
  max-width: 430px;
  font-size: 11px;
  line-height: 1.45;
}

.footer-links {
  display: flex;
  gap: 22px;
  font-size: 13px;
  font-weight: 650;
}

.copyright {
  white-space: nowrap;
}

/* Privacy page */
.privacy-shell {
  width: min(1100px, calc(100% - 48px));
  margin: 0 auto;
  padding: 70px 0 130px;
}

.privacy-hero {
  max-width: 880px;
  padding-bottom: 70px;
}

.privacy-hero h1 {
  margin-bottom: 28px;
}

.privacy-summary {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(18px, 2.2vw, 22px);
}

.effective-date {
  display: inline-block;
  margin: 28px 0 0;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--indigo-soft);
  color: #3e4ab9;
  font-size: 13px;
  font-weight: 700;
}

.privacy-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 70px;
  align-items: start;
}

.privacy-nav {
  position: sticky;
  top: 104px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 253, 248, 0.74);
}

.privacy-nav p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.privacy-nav ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.privacy-nav a {
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}

.privacy-nav a:hover {
  color: var(--ink);
}

.privacy-content section {
  position: relative;
  margin-bottom: 32px;
  padding: clamp(28px, 5vw, 50px);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 253, 248, 0.84);
}

.privacy-content section:target {
  border-color: rgba(88, 101, 216, 0.55);
  box-shadow: 0 0 0 4px rgba(88, 101, 216, 0.08);
}

.privacy-content h2 {
  margin-bottom: 24px;
  padding-right: 45px;
  font-size: clamp(28px, 4vw, 38px);
}

.privacy-content h3 {
  margin: 32px 0 10px;
  font-size: 20px;
  letter-spacing: -0.025em;
}

.privacy-content p {
  color: #4f4d47;
}

.privacy-content a:not(.button) {
  color: #4451c4;
}

.section-number {
  position: absolute;
  top: 32px;
  right: 32px;
  color: var(--coral);
  font-size: 12px;
  font-weight: 850;
}

.callout {
  margin: 24px 0;
  padding: 22px;
  border-radius: 15px;
}

.callout-positive {
  background: var(--mint);
}

.callout strong {
  display: block;
  color: #286b51;
}

.callout p {
  margin: 6px 0 0;
  color: #3e6857;
}

.data-table {
  margin: 28px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
}

.data-row {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
}

.data-row + .data-row {
  border-top: 1px solid var(--line);
}

.data-row > div {
  padding: 18px;
}

.data-row > div + div {
  border-left: 1px solid var(--line);
}

.data-row strong,
.data-row [role="cell"] > span {
  display: block;
}

.data-row [role="cell"] > span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 14px;
}

.data-head {
  background: #f0eee7;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.policy-list {
  display: grid;
  gap: 16px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

.policy-list li {
  padding-left: 19px;
  border-left: 3px solid var(--indigo-soft);
  color: #4f4d47;
}

.policy-list strong,
.policy-list li > span {
  display: block;
}

.policy-list li > span {
  margin-top: 4px;
}

.contact-card {
  background: var(--ink) !important;
  color: white;
}

.contact-card h2,
.contact-card p {
  color: white;
}

.contact-card .button {
  margin-top: 10px;
  background: white;
  color: var(--ink);
}

@media (max-width: 860px) {
  .hero,
  .principles,
  .support-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 58px;
  }

  .tool-preview {
    max-width: 540px;
    transform: none;
  }

  .principles,
  .support-section {
    gap: 48px;
  }

  .privacy-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .privacy-nav {
    position: static;
  }

  .privacy-nav ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer {
    grid-template-columns: 1fr auto;
  }

  .copyright {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .site-header {
    padding: 14px 16px;
  }

  .text-link {
    display: none;
  }

  .header-actions {
    gap: 8px;
  }

  .section-shell,
  .privacy-shell {
    width: min(100% - 32px, var(--max-width));
  }

  .hero {
    gap: 52px;
    padding-block: 46px 80px;
  }

  h1 {
    font-size: clamp(45px, 15vw, 65px);
  }

  .preview-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .tool-chip {
    min-height: 150px;
  }

  .feature-section,
  .principles,
  .support-section {
    padding-block: 80px;
  }

  .feature-card {
    min-height: 230px;
  }

  .privacy-shell {
    padding-top: 48px;
  }

  .privacy-hero {
    padding-bottom: 48px;
  }

  .privacy-nav ol {
    grid-template-columns: 1fr;
  }

  .privacy-content section {
    padding: 28px 22px;
  }

  .section-number {
    top: 28px;
    right: 22px;
  }

  .data-row {
    grid-template-columns: 1fr;
  }

  .data-row > div + div {
    border-top: 1px dashed var(--line);
    border-left: 0;
  }

  .data-head {
    display: none;
  }

  .site-footer {
    grid-template-columns: 1fr;
    padding-inline: 16px;
  }

  .footer-links {
    flex-wrap: wrap;
  }

  .copyright {
    grid-column: auto;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-contrast: more) {
  :root {
    --muted: #47453f;
    --line: #aaa59a;
  }
}

@media print {
  .site-header,
  .privacy-nav,
  .site-footer,
  .skip-link {
    display: none;
  }

  body {
    background: white;
  }

  .privacy-shell {
    width: 100%;
    padding: 0;
  }

  .privacy-content section {
    break-inside: avoid;
    border-color: #ccc;
    background: white;
  }
}
