:root {
  --bg: #fbfbfd;
  --bg-alt: #f2f3f7;
  --fg: #12141a;
  --muted: #5b6070;
  --line: #e2e4ec;
  --card: #ffffff;
  --accent: #4f46e5;
  --accent-fg: #ffffff;
  --sat: 70%;
  --lit: 45%;
  --tint: 96%;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0d12; --bg-alt: #11141b; --fg: #eceef4; --muted: #9aa0b2;
    --line: #232735; --card: #151925; --accent: #8b85ff; --accent-fg: #0b0d12;
    --lit: 68%; --tint: 18%; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b0d12; --bg-alt: #11141b; --fg: #eceef4; --muted: #9aa0b2;
  --line: #232735; --card: #151925; --accent: #8b85ff; --accent-fg: #0b0d12;
  --lit: 68%; --tint: 18%; color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 16px/1.65 Inter, "Noto Sans TC", system-ui, -apple-system, "PingFang TC", sans-serif;
}
:lang(zh-Hant) body, body:lang(zh-Hant) { font-family: Inter, "Noto Sans TC", "PingFang TC", system-ui, sans-serif; }
a { color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }

.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 24px; min-height: 60px; }
.logo { font-weight: 700; font-size: 18px; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.logo-mark { background: var(--accent); color: var(--accent-fg); border-radius: 7px; padding: 2px 6px; font-size: 14px; letter-spacing: -0.02em; }
.nav { display: flex; gap: 20px; margin-left: auto; }
.nav a, .lang { text-decoration: none; color: var(--muted); font-size: 15px; }
.nav a:hover, .lang:hover { color: var(--fg); }
.lang { border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; }

.hero { padding: 88px 0 64px; }
.eyebrow { color: var(--accent); font-weight: 600; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; margin: 0 0 16px; }
h1 { font-size: clamp(36px, 6vw, 64px); line-height: 1.08; letter-spacing: -0.03em; margin: 0 0 20px; max-width: 16ch; }
h1 em { font-style: normal; color: var(--accent); }
:lang(zh-Hant) h1 { letter-spacing: 0; line-height: 1.2; }
.lede { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 62ch; margin: 0 0 32px; }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-block; padding: 11px 20px; border-radius: 10px; border: 1px solid var(--line); text-decoration: none; font-weight: 600; background: var(--card); }
.btn.primary { background: var(--accent); color: var(--accent-fg); border-color: transparent; }
.btn:hover { filter: brightness(1.06); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 56px; border-top: 1px solid var(--line); padding-top: 28px; }
.stat b { display: block; font-size: 34px; letter-spacing: -0.02em; }
.stat span { color: var(--muted); font-size: 14px; }

.section { padding: 80px 0; }
.section.alt { background: var(--bg-alt); }
h2 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.02em; margin: 0 0 12px; }
.section-lede { color: var(--muted); font-size: 18px; max-width: 64ch; margin: 0 0 40px; }
.group { margin-top: 48px; }
.group-head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.group-head h3 { margin: 0; font-size: 20px; }
.group-head p { margin: 0; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.card {
  display: flex; flex-direction: column; gap: 6px; padding: 22px; text-decoration: none;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-2px); border-color: hsl(var(--h) var(--sat) var(--lit)); box-shadow: 0 8px 28px -12px hsl(var(--h) var(--sat) 40% / .35); }
.card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.mono { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; font-weight: 700; font-size: 19px; color: hsl(var(--h) var(--sat) var(--lit)); background: hsl(var(--h) var(--sat) var(--tint)); }
.badge { font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; }
.card h4 { margin: 0; font-size: 19px; }
.tag { margin: 0; font-weight: 500; }
.body { margin: 0; color: var(--muted); font-size: 15px; flex: 1; }
.visit { margin-top: 12px; font-size: 14px; color: hsl(var(--h) var(--sat) var(--lit)); display: inline-flex; align-items: center; gap: 6px; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.steps h4 { margin: 10px 0 4px; font-size: 18px; }
.steps p { margin: 0; color: var(--muted); }
.num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--accent-fg); font-weight: 700; font-size: 14px; }
abbr { text-decoration: underline dotted; }

#about p, #contact p { font-size: 17px; color: var(--muted); }
.foot { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.foot .bar { justify-content: space-between; }

@media (max-width: 720px) {
  .nav { display: none; }
  .lang { margin-left: auto; }
  .hero { padding: 56px 0 40px; }
  .stats { grid-template-columns: 1fr; gap: 12px; }
  .steps { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .wrap { padding: 0 16px; }
  .section { padding: 56px 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .card { transition: none; } }
