:root {
  --bg: #ffffff;
  --tint: #f2f7fd;
  --text: #0e1b2e;
  --muted: #5b6b82;
  --line: #e1e8f2;
  --brand: #1f6feb;
  --brand-dark: #0b3d91;
  --btn: #77a9db;       /* buttons; dark text, white would only reach 2.5:1 */
  --btn-hover: #6399d1;
  --radius: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.container { width: min(1140px, 100% - 32px); margin-inline: auto; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 40px; }
h3 { font-size: 20px; }

/* header */
.header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.header__inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo img { display: block; height: 44px; width: auto; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 500; color: var(--muted); transition: color .2s; }
.nav a:hover { color: var(--brand); }
.burger { display: none; width: 40px; height: 40px; border: 0; background: none; padding: 0; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 9px; right: 9px; height: 2px; background: var(--text); transition: transform .25s; }
.burger span:first-child { top: 15px; } .burger span:last-child { top: 23px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* language switch */
.lang { flex-shrink: 0; display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 600; }
.lang--end { margin-left: auto; }
.lang a { white-space: nowrap; padding: 5px 11px; border-radius: 999px; color: var(--muted); text-decoration: none; transition: color .2s, background .2s; }
.lang a:hover { color: var(--brand); }
.lang a[aria-current] { background: var(--btn); color: var(--text); }

/* Chinese typography */
html[lang^="zh"] body { font-family: "Manrope", "Noto Sans TC", "PingFang HK", "PingFang TC", "Microsoft JhengHei", sans-serif; line-height: 1.75; }
html[lang^="zh"] h1, html[lang^="zh"] h2, html[lang^="zh"] h3, html[lang^="zh"] h4 { letter-spacing: 0; line-height: 1.35; }
html[lang^="zh"] .hero h1 { font-size: clamp(30px, 5vw, 52px); font-weight: 700; }
html[lang^="zh"] .lead { max-width: 34em; }
.lang a[lang^="zh"] { font-family: "Noto Sans TC", "PingFang HK", "PingFang TC", "Microsoft JhengHei", sans-serif; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 28px; border: 0; border-radius: 999px; background: var(--btn); color: var(--text); font: 600 16px/1 inherit; font-family: inherit; text-decoration: none; cursor: pointer; transition: transform .15s, background .2s, box-shadow .2s; box-shadow: 0 6px 20px rgba(119,169,219,.35); }
.btn:hover { background: var(--btn-hover); transform: translateY(-1px); }
.btn--sm { padding: 10px 20px; font-size: 14px; }
/* moving border: a ring of light that runs around the main call-to-action buttons */
.btn { --mb-ring: rgba(14, 27, 46, .14); --mb-blob: #0b3d91; --mb-fill: var(--btn); --mb-fill-hover: var(--btn-hover); }
.btn--light { --mb-ring: rgba(255, 255, 255, .22); --mb-blob: #b9d6f2; --mb-fill: #fff; --mb-fill-hover: var(--tint); }
.btn.mb, .btn.mb:hover { position: relative; overflow: hidden; padding: 2px; background: var(--mb-ring); }
.mb__dot { position: absolute; top: 0; left: 0; width: var(--mb-size, 72px); height: var(--mb-size, 72px); border-radius: 50%; background: radial-gradient(var(--mb-blob) 40%, transparent 60%); opacity: 1; pointer-events: none; will-change: transform; }
.mb__in { position: relative; display: flex; flex: 1; align-items: center; justify-content: center; padding: 14px 28px; border-radius: 999px; background: var(--mb-fill); transition: background .2s; }
.btn--sm .mb__in { padding: 10px 20px; }
.btn.mb:hover .mb__in { background: var(--mb-fill-hover); }
.btn--ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--btn); }
.btn--ghost:hover { background: var(--btn); color: var(--text); }
.btn--light { background: #fff; color: var(--brand-dark); box-shadow: none; }
.btn--light:hover { background: var(--tint); }

/* hero */
.hero { position: relative; overflow: hidden; padding: clamp(72px, 12vw, 150px) 0; background: linear-gradient(180deg, #eaf3ff 0%, #fff 100%); }
.hero__inner { position: relative; z-index: 1; max-width: 860px; }
.eyebrow { display: inline-block; margin: 0 0 20px; padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--brand); }
.hero h1 { font-size: clamp(32px, 5.6vw, 60px); font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--brand); white-space: nowrap; }
.lead { max-width: 620px; margin: 24px 0 36px; font-size: 19px; color: var(--muted); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.grid-pulse { --grid-line: rgba(14, 27, 46, .07); --cell: 24px; position: absolute; inset: 0; overflow: hidden; pointer-events: none; background-image: linear-gradient(to right, var(--grid-line) 1px, transparent 1px), linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px); background-size: var(--cell) var(--cell); -webkit-mask-image: linear-gradient(to bottom, #000 92%, transparent); mask-image: linear-gradient(to bottom, #000 92%, transparent); }
.grid-pulse canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

/* sections */
.section { padding: clamp(56px, 8vw, 100px) 0; }
.section--tint { position: relative; overflow: hidden; background: linear-gradient(90deg, #fff 0%, var(--btn) 100%); }
.section--tint > .container { position: relative; z-index: 1; }
/* a soft sheen that drifts left to right across the gradient */
.section--tint::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .5) 50%, transparent 70%); transform: translateX(-100%); animation: sheen 8s ease-in-out infinite; pointer-events: none; }
@keyframes sheen { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--5 { grid-template-columns: repeat(5, 1fr); }
.grid--4 .card { padding: 28px 24px; }
.card { overflow: hidden; }
.card__img { display: block; height: auto; width: calc(100% + 48px); margin: -28px -24px 22px; aspect-ratio: 16 / 10; object-fit: cover; background: var(--tint); filter: saturate(.85); transition: transform .4s; }
.card:hover .card__img { transform: scale(1.03); }
.card { padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(14,27,46,.08); }
.card h3 { margin-top: 2px; }
.card ul { margin: 18px 0 0; padding: 0; list-style: none; }
.card li { position: relative; padding: 8px 0 8px 22px; color: var(--muted); border-top: 1px solid var(--line); }
.card li::before { content: ""; position: absolute; left: 0; top: 17px; width: 8px; height: 8px; border-radius: 50%; background: var(--btn); }
.adv { padding: 24px; background: #fff; border-radius: var(--radius); }
.adv h3 { font-size: 18px; margin-bottom: 10px; color: var(--brand-dark); }
.adv p { margin: 0; font-size: 15px; color: var(--muted); }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { position: relative; padding-top: 28px; border-top: 2px solid var(--line); }
.steps li::before { content: ""; position: absolute; top: -2px; left: 0; width: 48px; height: 2px; background: var(--btn); }
.steps span { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 16px; border-radius: 50%; background: var(--btn); color: var(--text); font-weight: 800; }
.steps p { color: var(--muted); margin: 10px 0 0; }

.cta { padding: clamp(56px, 8vw, 90px) 0; background: linear-gradient(135deg, var(--brand-dark), var(--brand)); position: relative; overflow: hidden; color: #fff; text-align: center; }
.cta__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.cta__inner { position: relative; }
.cta h2 { margin-bottom: 14px; }
.cta p { margin: 0 0 28px; opacity: .9; }

/* footer */
.footer { padding: 56px 0 24px; background: #111827; color: #cfd8e6; }
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer h3 { margin-bottom: 12px; font-size: 16px; color: #fff; }
.footer p { margin: 6px 0; }
.footer .logo img { height: 50px; margin-bottom: 12px; }
.footer address { margin: 6px 0; font-style: normal; }
.footer a { text-decoration: none; } .footer a:hover { color: #fff; text-decoration: underline; }
.muted { color: #8b9bb3; }
.footer__bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: 14px; color: #8b9bb3; }

/* modal */
.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(14,27,46,.55); }
.modal__box { position: relative; width: min(440px, 100%); padding: 32px; border-radius: 20px; background: #fff; display: grid; gap: 16px; }
.modal__box h3 { font-size: 24px; }
.modal__box label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.modal__box input:not([type=checkbox]), .modal__box textarea { padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font: inherit; }
.modal__box input:focus, .modal__box textarea:focus { outline: 2px solid var(--brand); border-color: transparent; }
.modal__box .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--muted); }
.modal__close { position: absolute; right: 14px; top: 10px; border: 0; background: none; font-size: 30px; line-height: 1; cursor: pointer; color: var(--muted); }
.form-ok { text-align: center; padding: 12px 0; }
.form-error { margin: 0; color: #b3261e; font-size: 14px; }
.form-error a { color: inherit; text-decoration: underline; }
/* spam trap: real visitors never see or reach it */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* privacy page */
.doc { max-width: 760px; padding: 56px 0 96px; }
.doc h1 { font-size: 36px; margin-bottom: 24px; }
.doc h2 { font-size: 22px; margin: 32px 0 10px; }

@media (max-width: 980px) {
  .grid--4, .grid--5 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .header__inner { gap: 12px; height: 68px; }
  .logo img { height: 30px; }
  .header__inner .lang { margin-left: auto; }
  .logo { min-width: 0; }
  .burger { display: block; }
  .header .btn--sm { display: none; }
  .nav { position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; margin: 0; background: #fff; border-bottom: 1px solid var(--line); display: none; }
  .nav.is-open { display: flex; }
  .nav a { padding: 16px; border-top: 1px solid var(--line); }
  .grid--3 { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .grid--5, .steps { grid-template-columns: 1fr; }
  h2 { margin-bottom: 28px; }

  /* Services: swipeable strip instead of four full-screen cards */
  .grid--4 { display: flex; gap: 12px; margin-inline: -16px; padding: 4px 16px 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .grid--4::-webkit-scrollbar { display: none; }
  .grid--4 .card { flex: 0 0 82%; scroll-snap-align: start; padding: 22px 20px; }
  .grid--4 .card:hover { transform: none; box-shadow: none; }
  .card__img { width: calc(100% + 40px); margin: -22px -20px 18px; aspect-ratio: 16 / 9; }
  .card li { padding-block: 6px; font-size: 15px; }
  .card li::before { top: 14px; }

  /* Advantages: tighter cards */
  .grid--5 { gap: 12px; }
  .adv { padding: 18px 20px; }
  .adv h3 { font-size: 17px; margin-bottom: 6px; }

  /* Process: number beside the text instead of above it */
  .steps { gap: 0; }
  .steps li { display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; padding: 20px 0; }
  .steps span { grid-row: 1 / 3; margin: 0; }
  .steps h3 { font-size: 18px; align-self: end; }
  .steps p { margin: 4px 0 0; }

  .footer address br { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .section--tint::before { animation: none; display: none; }
  .mb__dot { display: none; }
  * { transition: none !important; }
}
