:root {
  color-scheme: light dark;
  --bg: #071633;
  --surface: #10264d;
  --surface-2: #17345f;
  --text: #f7fbff;
  --muted: #b9c9df;
  --accent: #4fcde1;
  --accent-2: #ffad2f;
  --line: rgba(255, 255, 255, 0.13);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 85% 0%, #123e7d 0, var(--bg) 38rem);
  color: var(--text);
  font: 16px/1.7 -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang HK", "Noto Sans TC", sans-serif;
}

a { color: #83e9f6; }
a:hover { color: #fff; }

.shell {
  width: min(960px, calc(100% - 32px));
  margin: 0 auto;
}

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

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

.brand img {
  width: 46px;
  height: 46px;
  border-radius: 12px;
}

nav { display: flex; gap: 18px; flex-wrap: wrap; }
nav a { color: var(--muted); text-decoration: none; font-weight: 650; }

.hero { padding: 74px 0 44px; max-width: 760px; }
.eyebrow { color: var(--accent); font-weight: 750; }
h1 { margin: 8px 0 16px; font-size: clamp(2.5rem, 8vw, 5.2rem); line-height: .98; letter-spacing: -.055em; }
h2 { margin: 0 0 14px; font-size: clamp(1.5rem, 4vw, 2.2rem); letter-spacing: -.025em; }
h3 { margin: 28px 0 8px; font-size: 1.12rem; }
p, li { color: var(--muted); }
.lead { font-size: 1.16rem; max-width: 680px; }

.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 18px;
  border-radius: 14px;
  background: var(--accent);
  color: #04233b;
  text-decoration: none;
  font-weight: 780;
}
.button.secondary { background: var(--surface-2); color: var(--text); border: 1px solid var(--line); }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding: 20px 0 72px; }
.card, .document {
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(22px, 4vw, 34px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .16);
}
.card p:last-child { margin-bottom: 0; }
.document { margin: 34px 0 72px; }
.document ul { padding-left: 1.25rem; }
.document section + section { border-top: 1px solid var(--line); margin-top: 30px; padding-top: 18px; }

.language-switcher { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 8px; }
.language-switcher button {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  border-radius: 999px;
  padding: 9px 14px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.language-switcher button[aria-pressed="true"] { background: var(--accent); color: #04233b; border-color: transparent; }
[data-language] { display: none; }
[data-language].active { display: block; }

.notice { border-left: 4px solid var(--accent-2); padding-left: 16px; }
footer { border-top: 1px solid var(--line); padding: 26px 0 46px; color: var(--muted); }

@media (max-width: 680px) {
  header { align-items: flex-start; }
  nav { justify-content: flex-end; }
  .grid { grid-template-columns: 1fr; }
  .hero { padding-top: 48px; }
}

@media (prefers-color-scheme: light) {
  :root { --bg: #eef5ff; --surface: #fff; --surface-2: #e4eefc; --text: #0b1932; --muted: #40516b; --line: rgba(10, 31, 66, .14); }
  body { background: radial-gradient(circle at 85% 0%, #cae5ff 0, var(--bg) 38rem); }
  .card, .document { box-shadow: 0 18px 50px rgba(30, 64, 110, .10); }
  a { color: #075fae; }
  a:hover { color: #063f76; }
}
