:root {
  --ink: #17212b;
  --muted: #586775;
  --paper: #fffdf8;
  --jade: #31795b;
  --jade-dark: #205640;
  --gold: #c5933d;
  --line: rgba(34, 75, 58, 0.15);
  --shadow: 0 24px 70px rgba(18, 47, 36, 0.14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Noto Sans TC", "PingFang TC", sans-serif;
  line-height: 1.75;
}

a { color: var(--jade-dark); }

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.9);
  backdrop-filter: blur(16px);
}

.nav {
  width: min(1100px, calc(100% - 32px));
  min-height: 68px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-weight: 760;
  text-decoration: none;
}

.brand img { width: 38px; height: 38px; border-radius: 10px; box-shadow: 0 5px 16px rgba(0, 0, 0, 0.12); }

.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: var(--muted); font-size: 0.94rem; text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--jade-dark); }

.hero {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background: url("assets/scorekeeper-background.jpg") center 44% / cover;
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, rgba(251, 248, 239, 0.98) 0%, rgba(251, 248, 239, 0.86) 50%, rgba(251, 248, 239, 0.38) 100%);
}

.hero-inner {
  width: min(1100px, calc(100% - 40px));
  padding: 80px 0;
}

.hero-copy { max-width: 620px; }
.eyebrow { color: var(--jade); font-weight: 780; letter-spacing: 0.12em; text-transform: uppercase; }
h1 { margin: 14px 0 18px; font-size: clamp(2.7rem, 7vw, 5.6rem); line-height: 1.04; letter-spacing: -0.045em; }
.lead { max-width: 570px; color: #3f4e58; font-size: clamp(1.08rem, 2vw, 1.3rem); }
.hero-actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }

.button {
  display: inline-flex;
  min-height: 48px;
  padding: 10px 20px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--jade);
  border-radius: 999px;
  background: var(--jade);
  color: white;
  font-weight: 720;
  text-decoration: none;
}

.button.secondary { background: rgba(255, 255, 255, 0.68); color: var(--jade-dark); }

.section { width: min(1100px, calc(100% - 40px)); margin: auto; padding: 88px 0; }
.section-heading { max-width: 680px; margin-bottom: 34px; }
.section-heading h2, .document h1 { margin: 0 0 12px; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.15; }
.section-heading p { color: var(--muted); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 12px 36px rgba(31, 72, 55, 0.07);
}
.card h3 { margin: 10px 0 8px; }
.card p { margin: 0; color: var(--muted); }
.card-icon { font-size: 1.6rem; }

.privacy-band { background: #e9f0e9; }
.privacy-band .section { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 60px; }
.privacy-list { padding: 28px; border-radius: 24px; background: rgba(255, 255, 255, 0.64); }
.privacy-list li + li { margin-top: 8px; }

.document { width: min(820px, calc(100% - 40px)); margin: auto; padding: 72px 0 100px; }
.document .meta { margin-bottom: 40px; color: var(--muted); }
.document h2 { margin-top: 42px; font-size: 1.45rem; color: var(--jade-dark); }
.document h3 { margin-top: 26px; }
.document li + li { margin-top: 7px; }
.notice { padding: 18px 22px; border-left: 4px solid var(--gold); border-radius: 4px 14px 14px 4px; background: #fbf3df; }
.language-jump { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 42px; }
.language-jump a { padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; }

.site-footer { border-top: 1px solid var(--line); background: #f5f1e8; }
.footer-inner { width: min(1100px, calc(100% - 40px)); margin: auto; padding: 32px 0; display: flex; justify-content: space-between; gap: 24px; color: var(--muted); font-size: 0.9rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }

@media (max-width: 760px) {
  .nav { min-height: 62px; }
  .brand span { display: none; }
  .nav-links { gap: 14px; }
  .hero { min-height: 570px; }
  .hero::after { background: rgba(251, 248, 239, 0.82); }
  .cards, .privacy-band .section { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .footer-inner { flex-direction: column; }
}

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