:root {
  --page: #f5f7fb;
  --surface: #ffffff;
  --subtle: #e8edf6;
  --accent: #2f62f0;
  --accent-hover: #2454d6;
  --ink: #0b1b3a;
  --muted: #3a4f78;
  --line: #d7deeb;
  --inverse: #0b1b3a;
  --sans: "Noto Sans TC", "PingFang HK", "Microsoft JhengHei", sans-serif;
  --serif-zh: "Noto Serif TC", "Songti TC", "PMingLiU", serif;
  --serif-en: "Source Serif 4", "Source Serif Pro", Georgia, serif;
  --pad: 64px;
  --header: 80px;
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
}

html[data-lang="zh-HK"] .en,
html[data-lang="en"] .zh {
  display: none !important;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  line-break: strict;
}

p,
h1,
h2,
h3 {
  margin: 0;
}

img {
  max-width: 100%;
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

::selection {
  background: #d9e4ff;
  color: var(--ink);
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 50;
  background: var(--surface);
  color: var(--ink);
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: min(1440px, 100%);
  margin-inline: auto;
  padding-inline: 20px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "brand lang"
    "nav nav";
  align-items: center;
  gap: 10px 16px;
  min-height: 72px;
  padding-block: 14px;
}

.brand {
  grid-area: brand;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  color: var(--ink);
  text-decoration: none;
}

.logo-cube {
  width: 40px;
  height: 40px;
  display: block;
  object-fit: contain;
}

.wordmark {
  font-size: 18px;
  font-weight: 700;
  line-height: 22px;
  letter-spacing: 0.01em;
}

.nav {
  grid-area: nav;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
}

.nav a:hover {
  color: var(--accent);
}

.lang {
  grid-area: lang;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: max-content;
  padding: 4px;
  background: var(--subtle);
  border-radius: 999px;
}

.lang button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: 500 13px/1 var(--sans);
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
}

.lang button[aria-pressed="true"] {
  background: var(--surface);
  color: var(--ink);
}

.hero {
  background: var(--surface);
  padding: 48px 0 56px;
}

.hero-grid {
  display: grid;
  gap: 28px;
}

.kicker {
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.3;
}

html[data-lang="en"] .kicker {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  margin-top: 16px;
  font-family: var(--serif-zh);
  font-weight: 700;
  font-size: clamp(2rem, 8vw, 3.25rem);
  line-height: 1.28;
  letter-spacing: -0.01em;
  color: var(--ink);
}

html[data-lang="en"] .hero h1 {
  font-family: var(--serif-en);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

@media (min-width: 800px) {
  .hero h1 br {
    display: none;
  }
}

.lede {
  margin-top: 16px;
  color: var(--muted);
  font-size: 17px;
  font-weight: 400;
  line-height: 30px;
}

.actions {
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 22px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
}

.hero .button {
  width: 100%;
}

.button:hover {
  background: var(--accent-hover);
}

.button-quiet {
  background: var(--subtle);
  color: var(--ink);
}

.button-quiet:hover {
  background: #dbe3f2;
}

.plate {
  background: var(--subtle);
  border-radius: 24px;
  padding: 28px;
}

.plate-kicker {
  color: var(--accent);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.2;
}

html[data-lang="en"] .plate-kicker {
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.plate-name {
  margin-top: 12px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}

.plate-name-en {
  margin-top: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
}

.plate-rule {
  height: 1px;
  margin: 16px 0;
  background: var(--line);
  border: 0;
}

.address {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 22px;
}

.band {
  padding: 56px 0;
}

.section-kicker {
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.2;
}

html[data-lang="en"] .section-kicker {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-title {
  margin-top: 12px;
  font-family: var(--serif-zh);
  font-weight: 600;
  font-size: clamp(1.75rem, 4vw, 2rem);
  line-height: 1.35;
  color: var(--ink);
}

html[data-lang="en"] .section-title {
  font-family: var(--serif-en);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.services {
  background: var(--page);
}

.card-grid,
.step-grid {
  display: grid;
  gap: 20px;
  margin-top: 32px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
}

.accent-bar {
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background: var(--accent);
}

.card h3,
.step h3 {
  margin-top: 16px;
  font-family: var(--serif-zh);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.35;
  color: var(--ink);
}

html[data-lang="en"] .card h3,
html[data-lang="en"] .step h3 {
  font-family: var(--serif-en);
  font-weight: 600;
  letter-spacing: -0.015em;
}

.card p,
.step p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 15px;
  line-height: 24px;
}

.approach {
  background: var(--surface);
}

.step-no {
  font-family: var(--serif-en);
  font-weight: 600;
  font-size: 18px;
  line-height: 1;
  color: var(--accent);
}

.step h3 {
  margin-top: 12px;
  font-size: 20px;
}

.company {
  background: var(--page);
}

.record {
  margin-top: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
}

.pair {
  display: grid;
  gap: 20px;
}

.field-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.3;
}

.field-value {
  margin-top: 6px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
}

.record .address {
  margin-top: 6px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  line-height: 24px;
}

.record-rule {
  height: 1px;
  margin: 20px 0;
  background: var(--line);
  border: 0;
}

.copy-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.copy {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--accent);
  font: 500 13px/1 var(--sans);
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  cursor: pointer;
}

.copy:hover {
  border-color: var(--accent);
}

.copy-status {
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
}

.site-footer {
  background: var(--inverse);
  color: #fff;
  padding: 36px 0 32px;
}

.footer-names {
  display: grid;
  gap: 8px;
}

.footer-zh {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
}

.footer-en {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
  opacity: 0.72;
}

.site-footer .address {
  margin-top: 16px;
  color: #fff;
  font-size: 13px;
  line-height: 20px;
  opacity: 0.72;
}

.copyright {
  margin-top: 20px;
  color: #fff;
  font-size: 12px;
  opacity: 0.5;
}

.missing {
  background: var(--surface);
  padding: 64px 0 48px;
}

.missing h1 {
  margin-top: 12px;
  font-family: var(--serif-zh);
  font-weight: 700;
  font-size: clamp(2rem, 6vw, 2.75rem);
  line-height: 1.25;
}

.missing .alt {
  margin-top: 8px;
  font-family: var(--serif-en);
  font-size: clamp(1.4rem, 3vw, 1.75rem);
  font-weight: 600;
  color: var(--muted);
}

.missing .home-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin: 24px 0 32px;
}

.missing .plate {
  max-width: 640px;
}

section[id] {
  scroll-margin-top: 96px;
}

@media (min-width: 800px) {
  .wrap {
    padding-inline: 40px;
  }

  .hero .button {
    width: auto;
  }

  .card-grid,
  .step-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }

  .pair {
    grid-template-columns: 1fr 1fr;
    gap: 20px 48px;
  }
}

@media (min-width: 980px) {
  .wrap {
    padding-inline: var(--pad);
  }

  .header-inner {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "brand nav lang";
    min-height: var(--header);
    padding-block: 0;
    gap: 28px;
  }

  .nav {
    justify-self: end;
    align-items: center;
    gap: 28px;
  }

  .hero {
    padding: 80px 0;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 0 32px;
    align-items: start;
  }

  .hero h1 {
    margin-top: 24px;
    font-size: 52px;
    line-height: 68px;
  }

  html[data-lang="en"] .hero h1 {
    font-size: 48px;
    line-height: 62px;
  }

  .lede {
    margin-top: 24px;
  }

  .band {
    padding: 80px 0;
  }

  .section-title {
    margin-top: 12px;
    font-size: 32px;
    line-height: 44px;
  }

  .card-grid,
  .step-grid {
    margin-top: 40px;
  }

  .record {
    margin-top: 32px;
    padding: 36px;
  }

  .site-footer {
    padding: 48px 0;
  }

  .footer-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
  }

  .site-footer .address {
    margin-top: 0;
  }

  .copyright {
    margin-top: 24px;
  }

  section[id] {
    scroll-margin-top: 96px;
  }
}

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

@media print {
  .site-header,
  .skip,
  .actions,
  .lang,
  .copy-row {
    display: none !important;
  }

  body,
  .hero,
  .approach,
  .services,
  .company,
  .site-footer,
  .card,
  .record,
  .plate {
    background: #fff;
    color: #000;
  }

  html[data-lang="zh-HK"] .zh,
  html[data-lang="zh-HK"] .en,
  html[data-lang="en"] .zh,
  html[data-lang="en"] .en {
    display: block !important;
  }
}
