:root {
  color-scheme: light;
  --paper: #f5f2eb;
  --surface: #ffffff;
  --ink: #181a18;
  --muted: #686b66;
  --line: #d8d6ce;
  --green: #176b5b;
  --green-soft: #dcebe6;
  --gold: #a86518;
  --shadow: 0 24px 70px rgb(24 26 24 / 8%);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 78% 5%, rgb(23 107 91 / 8%), transparent 28rem),
    var(--paper);
  color: var(--ink);
  font: 16px/1.7 -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Segoe UI", sans-serif;
}

a { color: var(--green); }

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

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0;
}

.brand {
  color: var(--ink);
  font-family: ui-serif, "New York", Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.02em;
  text-decoration: none;
}

nav, .language-switch {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.language-switch {
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgb(255 255 255 / 68%);
}

.language-switch button {
  border: 0;
  border-radius: 999px;
  padding: 6px 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
}

body[data-language="zh"] .language-switch [data-set-language="zh"],
body[data-language="en"] .language-switch [data-set-language="en"] {
  background: var(--green);
  color: white;
}

.js body[data-language="zh"] [data-language-content="en"],
.js body[data-language="en"] [data-language-content="zh"] { display: none; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr);
  align-items: center;
  gap: clamp(40px, 8vw, 96px);
  min-height: 680px;
  padding: 72px 0 96px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1, h2 {
  font-family: ui-serif, "New York", Georgia, "Songti SC", serif;
  letter-spacing: -.035em;
}

h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(44px, 7vw, 78px);
  line-height: 1.03;
}

h2 {
  margin: 48px 0 12px;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.2;
}

h3 { margin: 0 0 8px; font-size: 17px; }

.lede {
  max-width: 650px;
  margin: 24px 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 28px;
}

.badge {
  padding: 7px 12px;
  border: 1px solid rgb(23 107 91 / 18%);
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
}

.measurement-card {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.measurement-card::before,
.measurement-card::after {
  position: absolute;
  content: "";
  background: var(--line);
  opacity: .55;
}

.measurement-card::before { width: 100%; height: 1px; }
.measurement-card::after { width: 1px; height: 100%; }

.ring {
  position: relative;
  z-index: 1;
  width: 42%;
  aspect-ratio: 1;
  border: 2px dashed var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 8px rgb(23 107 91 / 9%);
}

.metric {
  position: absolute;
  z-index: 2;
  right: 22px;
  bottom: 20px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgb(255 255 255 / 92%);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.section {
  padding: 88px 0;
  border-top: 1px solid var(--line);
}

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

.feature, .note, .legal-main {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgb(255 255 255 / 78%);
}

.feature { padding: 24px; }
.feature p { margin: 0; color: var(--muted); }

.note {
  margin-top: 32px;
  padding: 22px 24px;
  border-color: rgb(23 107 91 / 20%);
  background: var(--green-soft);
}

.legal-main {
  max-width: 820px;
  min-height: 65vh;
  margin: 42px auto 80px;
  padding: clamp(28px, 6vw, 64px);
  box-shadow: var(--shadow);
}

.legal-main h1 { font-size: clamp(38px, 7vw, 62px); }
.legal-main h2 { margin-top: 42px; font-size: 26px; }
.legal-main p, .legal-main li { color: #3f423e; }
.legal-main .lede { color: var(--muted); }

.button {
  display: inline-block;
  margin-top: 12px;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--green);
  color: white;
  font-weight: 750;
  text-decoration: none;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 36px 0 50px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

footer div { display: flex; flex-wrap: wrap; gap: 14px; }

@media (max-width: 760px) {
  header { align-items: flex-start; flex-direction: column; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 54px; }
  .measurement-card { width: min(100%, 460px); }
  .feature-grid { grid-template-columns: 1fr; }
  footer { flex-direction: column; }
}

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