:root {
  color-scheme: light;
  --ink: #10234d;
  --muted: #607091;
  --accent: #2864e8;
  --accent-soft: #dfe9ff;
  --paper: #f7f9fe;
  --white: #ffffff;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 84% 17%, rgba(40, 100, 232, 0.12), transparent 27rem),
    radial-gradient(circle at 8% 84%, rgba(70, 191, 178, 0.10), transparent 24rem),
    var(--paper);
  font-family: Inter, "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.34;
  background-image: linear-gradient(rgba(16, 35, 77, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(16, 35, 77, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

.page-shell {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(100% - 48px, 1180px);
  min-height: 100svh;
  margin: 0 auto;
  padding: 34px 0 28px;
}

.nav, footer { display: flex; align-items: center; justify-content: space-between; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  color: var(--white);
  background: var(--ink);
  font-family: Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
}

.language-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px;
  border: 1px solid rgba(16, 35, 77, 0.09);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 8px 30px rgba(23, 49, 105, 0.06);
  backdrop-filter: blur(12px);
}

.language-switcher span { width: 1px; height: 18px; background: rgba(16, 35, 77, 0.12); }

.language-switcher button {
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 0.875rem;
  transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.language-switcher button:hover { color: var(--ink); }
.language-switcher button[aria-pressed="true"] { color: var(--ink); background: var(--white); box-shadow: 0 3px 10px rgba(16, 35, 77, 0.09); }
.language-switcher button:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 2px; }

.hero { align-self: center; max-width: 850px; padding: 70px 0 84px; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow-line { width: 38px; height: 2px; background: var(--accent); }

h1 {
  max-width: 800px;
  margin: 0;
  font-family: Georgia, "Noto Serif TC", "Songti TC", serif;
  font-size: clamp(3.5rem, 8vw, 7.2rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.lead {
  max-width: 630px;
  margin: 34px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.85;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 34px;
  padding: 10px 15px;
  border: 1px solid rgba(40, 100, 232, 0.14);
  border-radius: 999px;
  color: #31507f;
  background: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }

footer {
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(16, 35, 77, 0.1);
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.025em;
}

footer span:first-child { color: var(--ink); font-weight: 700; }

@media (max-width: 620px) {
  .page-shell { width: min(100% - 32px, 1180px); padding: 22px 0 20px; }
  .brand > span:last-child { font-size: 0.92rem; }
  .language-switcher { gap: 2px; }
  .language-switcher span { display: none; }
  .language-switcher button { padding: 0 9px; font-size: 0.78rem; }
  .hero { padding: 72px 0 78px; }
  h1 { font-size: clamp(3rem, 15vw, 4.5rem); line-height: 1.02; }
  .lead { margin-top: 26px; line-height: 1.7; }
  footer { align-items: flex-start; flex-direction: column; gap: 7px; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero > * { animation: rise 650ms both; }
  .hero > :nth-child(2) { animation-delay: 80ms; }
  .hero > :nth-child(3) { animation-delay: 160ms; }
  .hero > :nth-child(4) { animation-delay: 240ms; }
  @keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
}
