:root {
  --bg: #09090b;
  --surface: #17171a;
  --raised: #232327;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f5f5f4;
  --muted: #a3a3a8;
  --gold: #f6cc5c;
  --gold-deep: #e9b445;
  --serif: "New York", "Iowan Old Style", Georgia, "Songti SC", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
}

/* Two languages live in the same page; only the active one is shown. */
html[data-lang="en"] .zh,
html[data-lang="zh"] .en { display: none !important; }

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* Header */
.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; margin-right: auto; }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.nav a.link { color: var(--muted); font-size: 14px; }
.nav a.link:hover, .nav a.link[aria-current="page"] { color: var(--text); text-decoration: none; }
.lang {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
}

/* Hero */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; padding: 48px 0 72px; }
.eyebrow { color: var(--gold); font-size: 13px; letter-spacing: 0.28em; text-transform: uppercase; margin: 0 0 14px; }
h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 6vw, 60px); line-height: 1.08; margin: 0 0 18px; }
h1 .star { display: inline-block; width: 0.5em; vertical-align: 0.55em; margin-left: 0.08em; }
.lede { color: var(--muted); font-size: 18px; max-width: 30em; margin: 0 0 28px; }
.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #ffe08f, var(--gold) 45%, var(--gold-deep));
  color: #111;
  font-weight: 600;
  padding: 14px 26px;
  border-radius: 999px;
}
.cta:hover { text-decoration: none; filter: brightness(1.05); }
.note { color: var(--muted); font-size: 13px; margin-top: 14px; }
.hero-art { border-radius: 28px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 5; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 62% center; }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-bottom: 72px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card .body { padding: 20px; }
.card h3 { margin: 0 0 8px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card ul { margin: 12px 0 0; padding-left: 18px; color: var(--muted); font-size: 14px; }

h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 4vw, 38px); margin: 0 0 10px; }
.sub { color: var(--muted); margin: 0 0 28px; }

/* Plans */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-bottom: 72px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 24px; }
.plan.pro { border-color: rgba(246, 204, 92, 0.5); background: linear-gradient(160deg, rgba(246, 204, 92, 0.16), var(--surface) 55%); }
.plan h3 { margin: 0 0 4px; font-size: 20px; }
.plan .tag { color: var(--muted); font-size: 14px; margin: 0 0 14px; }
.plan ul { margin: 0; padding-left: 18px; }
.plan li { margin: 6px 0; }

/* Legal pages */
.doc { padding-top: 28px; padding-bottom: 72px; }
.doc h1 { font-size: clamp(32px, 5vw, 44px); margin-bottom: 6px; }
.doc .updated { color: var(--muted); font-size: 14px; margin: 0 0 30px; }
.doc h2 { font-family: var(--sans); font-weight: 600; font-size: 20px; margin: 34px 0 8px; }
.doc p, .doc li { color: #d4d4d8; }
.doc ul { padding-left: 20px; }
.doc li { margin: 6px 0; }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; margin: 18px 0; }
.box.gold { border-color: rgba(246, 204, 92, 0.45); }
.mail { font-size: 20px; font-weight: 600; word-break: break-all; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 26px 0 40px; color: var(--muted); font-size: 13px; }
footer .links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 10px; }
footer a { color: var(--muted); }
footer a:hover { color: var(--text); }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding: 24px 0 48px; gap: 28px; }
  .hero-art { aspect-ratio: 16 / 11; }
  .features, .plans { grid-template-columns: 1fr; }
  .nav { gap: 12px; flex-wrap: wrap; }
}
