:root {
  color-scheme: light dark;
  --bg: #f6f1e8;
  --surface: #fffcf7;
  --text: #242220;
  --muted: #6f675e;
  --line: rgba(36, 34, 32, 0.10);
  --accent: #e08a6f;
  --accent-strong: #c96f52;
  --accent-soft: #f4d9ce;
  --shadow: 0 18px 50px rgba(80, 55, 38, 0.10);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --max: 880px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171513;
    --surface: #211e1b;
    --text: #f3ede4;
    --muted: #a79c90;
    --line: rgba(255, 255, 255, 0.10);
    --accent: #f0a088;
    --accent-strong: #ffb59e;
    --accent-soft: rgba(240, 160, 136, 0.16);
    --shadow: 0 22px 60px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 50% -10%, var(--accent-soft), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: 0.005em;
}

::selection { background: var(--accent-soft); color: var(--text); }

a {
  color: var(--accent-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover { color: var(--accent); }

.wrap {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
}

/* ---------- Nav ---------- */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 0 10px;
}

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

.brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 15px;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
}

.nav-links a:hover { color: var(--text); }

/* ---------- Hero ---------- */

.hero {
  padding: 64px 0 40px;
  text-align: center;
}

.hero-icon {
  width: 108px;
  height: 108px;
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.hero h1 {
  margin: 30px 0 10px;
  font-family: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-size: clamp(40px, 8vw, 62px);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.hero .tagline {
  margin: 0 auto;
  max-width: 620px;
  font-size: clamp(19px, 3.4vw, 24px);
  line-height: 1.45;
  color: var(--text);
}

.hero .tagline-zh {
  margin: 12px auto 0;
  max-width: 620px;
  font-size: 16px;
  color: var(--muted);
}

.hero .lede {
  margin: 22px auto 0;
  max-width: 600px;
  color: var(--muted);
  font-size: 17px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--accent);
  color: #2a1712;
  font-weight: 650;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(201, 111, 82, 0.22);
}

.button:hover { background: var(--accent-strong); color: #fff; }

.button.secondary {
  background: transparent;
  color: var(--text);
  box-shadow: none;
  border: 1px solid var(--line);
}

.button.secondary:hover { border-color: var(--accent); color: var(--text); }

.coming-soon {
  margin-top: 18px;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- Feature cards ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 28px 0 64px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  box-shadow: 0 10px 30px rgba(80, 55, 38, 0.05);
}

.card .glyph {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--accent-soft);
  font-size: 20px;
}

.card h3 {
  margin: 16px 0 6px;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

/* ---------- Legal pages ---------- */

.page {
  padding: 34px 0 72px;
}

.page-header {
  margin-bottom: 30px;
}

.page-header .eyebrow {
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.page-header h1 {
  margin: 8px 0 10px;
  font-family: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-size: clamp(34px, 6vw, 48px);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.meta {
  color: var(--muted);
  font-size: 14px;
}

.summary {
  margin: 26px 0 34px;
  padding: 22px 24px;
  background: var(--accent-soft);
  border-radius: var(--radius-md);
  font-size: 15px;
  line-height: 1.7;
}

.summary strong { color: var(--text); }

.summary p { margin: 0 0 10px; }
.summary p:last-child { margin-bottom: 0; }

.summary .zh {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(128, 80, 60, 0.18);
  color: var(--text);
  opacity: 0.9;
}

.prose h2 {
  margin: 42px 0 12px;
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.prose h3 {
  margin: 28px 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

.prose p { margin: 12px 0; }

.prose ul {
  margin: 12px 0;
  padding-left: 22px;
}

.prose li { margin: 7px 0; }

.prose li::marker { color: var(--accent-strong); }

.prose .callout {
  margin: 18px 0;
  padding: 16px 18px;
  border-left: 3px solid var(--accent);
  background: var(--surface);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--muted);
  font-size: 15px;
}

.table-wrap {
  margin: 18px 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

th, td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

th {
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(128, 80, 60, 0.04);
}

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

.contact-box {
  margin-top: 18px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.contact-box p { margin: 4px 0; }

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 46px;
  color: var(--muted);
  font-size: 14px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

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

.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }

/* ---------- Responsive ---------- */

@media (max-width: 760px) {
  .features { grid-template-columns: 1fr; }
  .hero { padding-top: 44px; }
  .nav-links { gap: 14px; font-size: 14px; }
  .brand span { display: none; }
}

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