:root {
  --navy: #0b2a4a;
  --navy-soft: #3b5370;
  --teal: #0f9488;
  --teal-bright: #14b8a6;
  --teal-tint: #e8f7f5;
  --line: #e3e8ee;
  --bg: #ffffff;
  --bg-soft: #f6f8fa;
  --radius: 14px;
  --max: 1080px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang HK", "Noto Sans HK",
    "Microsoft JhengHei", "Heiti TC", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--navy);
  font-size: 1.0625rem;
  line-height: 1.75;
}

a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--teal-bright); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--navy); color: #fff; padding: .6rem 1rem; border-radius: 8px; z-index: 10;
}
.skip-link:focus { top: 1rem; color: #fff; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: #fff; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; flex-wrap: wrap; padding-block: .75rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--navy); }
.brand:hover { color: var(--navy); }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand-name { font-weight: 700; font-size: 1.25rem; letter-spacing: .08em; }
.brand-sub { display: block; font-size: .72rem; letter-spacing: .18em; color: var(--navy-soft); font-weight: 500; line-height: 1.2; }
.nav ul { list-style: none; display: flex; gap: .25rem 1.25rem; margin: 0; padding: 0; flex-wrap: wrap; }
.nav a { color: var(--navy-soft); text-decoration: none; font-size: .95rem; padding: .25rem 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--navy); box-shadow: inset 0 -2px 0 var(--teal-bright); }

/* Hero */
.hero { padding: 5.5rem 0 4.5rem; }
.badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--teal-tint); color: #0b6b62; border: 1px solid #bfe7e1;
  font-size: .9rem; font-weight: 600; padding: .3rem .85rem; border-radius: 999px;
}
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
h1, h2, h3 { line-height: 1.35; margin: 0; }
.hero h1 { font-size: clamp(2rem, 5.2vw, 3.25rem); margin: 1.25rem 0 1.25rem; letter-spacing: .02em; max-width: 16em; }
.hero h1 .accent { color: var(--teal); }
.lead { font-size: 1.15rem; color: var(--navy-soft); max-width: 40em; margin: 0 0 2rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--navy); color: #fff; text-decoration: none; font-weight: 600;
  padding: .85rem 1.5rem; border-radius: 10px; min-height: 48px; transition: background .15s;
}
.btn:hover { background: #12406d; color: #fff; }
.btn svg { width: 18px; height: 18px; }
.text-link { font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* Sections */
section { padding: 4.5rem 0; }
.section-soft { background: var(--bg-soft); border-block: 1px solid var(--line); }
.eyebrow { color: var(--teal); font-weight: 700; font-size: .85rem; letter-spacing: .14em; margin: 0 0 .5rem; }
.section-title { font-size: clamp(1.5rem, 3.4vw, 2.1rem); margin-bottom: 1rem; }
.section-intro { color: var(--navy-soft); max-width: 42em; margin: 0 0 2.5rem; }

.grid { display: grid; gap: 1.25rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; }
.card h3 { font-size: 1.15rem; margin: 1rem 0 .5rem; }
.card p { margin: 0; color: var(--navy-soft); font-size: 1rem; }
.icon { width: 48px; height: 48px; border-radius: 12px; background: var(--teal-tint); color: var(--teal); display: grid; place-items: center; }
.icon svg { width: 26px; height: 26px; }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.steps li { counter-increment: step; position: relative; padding: 1.75rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.steps li::before {
  content: counter(step); display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; margin-bottom: 1rem;
}
.steps h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.steps p { margin: 0; color: var(--navy-soft); font-size: 1rem; }

.note {
  margin-top: 2rem; padding: 1rem 1.25rem; border-left: 4px solid var(--teal-bright);
  background: var(--teal-tint); border-radius: 0 10px 10px 0; color: var(--navy); font-size: .98rem;
}

.about { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: start; }
.about p { color: var(--navy-soft); margin: 0 0 1rem; }

.info { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.info div { display: grid; grid-template-columns: 7.5em 1fr; gap: 1rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); }
.info div:last-child { border-bottom: 0; }
.info dt { color: var(--navy-soft); font-size: .95rem; }
.info dd { margin: 0; font-weight: 600; word-break: break-word; }

/* Prose (privacy page) */
.prose { max-width: 44em; }
.prose h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin: 1rem 0 1.5rem; }
.prose h2 { font-size: 1.25rem; margin: 2.25rem 0 .6rem; }
.prose p, .prose li { color: var(--navy-soft); }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: .4rem; }
.page { padding: 4rem 0 5rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 2rem 0; font-size: .92rem; color: var(--navy-soft); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 1.5rem; }
.site-footer ul { list-style: none; display: flex; gap: 1.25rem; margin: 0; padding: 0; flex-wrap: wrap; }
.site-footer a { color: var(--navy-soft); }
.site-footer p { margin: 0; }

@media (max-width: 640px) {
  .hero { padding: 3.5rem 0 3rem; }
  section { padding: 3.25rem 0; }
  .header-inner { justify-content: center; }
  .nav ul { justify-content: center; }
  .info div { grid-template-columns: 1fr; gap: .15rem; }
  .btn { width: 100%; justify-content: center; }
}
