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

:root {
  --bg:    #f8f8f6;
  --white: #ffffff;
  --ink:   #0f0f0e;
  --ink2:  #1c1c1a;
  --sub:   #6b6b67;
  --line:  #e3e3df;
  --hov:   #f0f0ec;
  --r:     9px;
  --fd:    'Syne', sans-serif;
  --fb:    'Inter', sans-serif;
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--fb);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
/* prevent any child from causing horizontal overflow */
* { min-width: 0; }
a { text-decoration: none; color: inherit; }

/* centered button wrapper used across all pages */
.btn-wrap { display: flex; justify-content: center; margin-top: 2rem; }
.btn-wrap .btn { flex-shrink: 0; }

/* ── UTILITY ── */
.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 5%; }
.label { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--sub); font-weight: 500; display: block; margin-bottom: .6rem; }
h2 { font-family: var(--fd); font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 800; line-height: 1.1; letter-spacing: -.025em; overflow-wrap: break-word; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--fb); font-size: .875rem; font-weight: 500;
  padding: .6rem 1.25rem; border-radius: var(--r);
  cursor: pointer; border: none; transition: background .2s, color .2s, opacity .2s;
  white-space: nowrap; text-decoration: none;
}
.btn-dk { background: var(--ink); color: #fff; }
.btn-dk:hover { background: var(--ink2); }
.btn-ol { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ol:hover { background: var(--hov); }
.btn-lg { padding: .75rem 1.6rem; font-size: .925rem; }
.btn-wh { background: #fff; color: var(--ink); }
.btn-wh:hover { background: #f0f0ec; }
.btn-gw { background: transparent; color: rgba(255,255,255,.65); border: 1px solid rgba(255,255,255,.15); }
.btn-gw:hover { background: rgba(255,255,255,.07); color: #fff; }

/* ── REVEAL ── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .55s ease, transform .55s ease; }
.reveal.up { opacity: 1; transform: none; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 300;
  height: 60px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 5%;
  background: rgba(248,248,246,.9); backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
nav.sc { border-color: var(--line); }

.logo { display: flex; align-items: center; gap: 8px; }
.logo svg { width: 26px; height: 26px; flex-shrink: 0; }
.logo-name { font-family: var(--fd); font-weight: 800; font-size: 1.1rem; letter-spacing: -.03em; }

/* nav links — center column */
.nav-links { display: flex; align-items: center; gap: 1.8rem; list-style: none; justify-content: center; }
.nav-links a { font-size: .855rem; color: var(--sub); font-weight: 400; transition: color .2s; }
.nav-links a:hover, .nav-links a.nav-active { color: var(--ink); }

/* lang toggle */
.lang-toggle {
  display: flex; align-items: center;
  background: var(--white); border: 1px solid var(--line);
  border-radius: 100px; padding: 3px; gap: 2px;
  flex-shrink: 0;
}
.lang-btn {
  font-family: var(--fb); font-size: .75rem; font-weight: 500;
  padding: 4px 10px; border-radius: 100px; border: none; cursor: pointer;
  background: transparent; color: var(--sub);
  transition: background .18s, color .18s;
  letter-spacing: .02em; white-space: nowrap;
}
.lang-btn.lang-zh { font-size: .68rem; padding: 4px 8px; }
.lang-btn.lang-active { background: var(--ink); color: #fff; }

/* nav right cluster */
.nav-right { display: flex; align-items: center; gap: .75rem; justify-content: flex-end; }
/* reserve space for navCta so logo doesn't shift when it appears */
.nav-login {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line); color: var(--sub);
  transition: background .2s, color .2s, border-color .2s;
  flex-shrink: 0;
}
.nav-login:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

#navCta { visibility: hidden; pointer-events: none; min-width: 148px; text-align: center; justify-content: center; }
nav.sc #navCta { visibility: visible; pointer-events: auto; display: inline-flex; }

/* hamburger */
.ham {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: 7px; width: 38px; height: 38px;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 5px; cursor: pointer; flex-shrink: 0;
  transition: background .2s;
}
.ham:hover { background: var(--hov); }
.ham span { display: block; width: 16px; height: 1.5px; background: var(--ink); border-radius: 2px; transition: all .3s; }

/* mobile menu */
.mob {
  display: none; position: fixed; inset: 0; z-index: 310;
  background: var(--bg);
  flex-direction: column; padding: 0;
}
.mob.open { display: flex; }
.mob-links { list-style: none; display: flex; flex-direction: column; flex: 1; margin-bottom: 0; }
.mob-links li { border-bottom: 1px solid var(--line); }
.mob-links a {
  display: block; padding: 1.2rem 0;
  font-family: var(--fd); font-size: 1.6rem; font-weight: 800;
  letter-spacing: -.025em; color: var(--ink); transition: color .2s;
}
.mob-links a.nav-active { color: var(--sub); }
.mob-links a:hover { color: var(--sub); }
.mob-bottom { padding-top: 2rem; display: flex; flex-direction: column; gap: 1rem; }
.mob-lang { display: inline-flex; width: auto; }
.mob-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%; height: 60px; flex-shrink: 0;
  border-bottom: 1px solid var(--line);
}
.mob-x {
  background: none; border: 1px solid var(--line);
  border-radius: 7px; width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1rem; color: var(--sub);
  transition: background .2s; flex-shrink: 0;
}
.mob-x:hover { background: var(--hov); }
.mob-body {
  flex: 1; overflow-y: auto;
  padding: 2rem 5% 3rem;
  display: flex; flex-direction: column;
}

/* mobile menu backdrop */
.mob-backdrop {
  display: none;
  position: fixed; inset: 0; z-index: 280;
  background: rgba(15,15,14,.35);
  backdrop-filter: blur(2px);
}
.mob-backdrop.open { display: block; }


/* ── SECTIONS ── */
section { border-top: 1px solid var(--line); }
.sec { padding: 9rem 0; }

/* ── MARQUEE ── */
.mq-wrap {
  overflow: hidden;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 1rem 0; background: var(--white);
  width: 100vw; position: relative; left: 50%; margin-left: -50vw;
}
.mq-track { display: flex; gap: 2.5rem; width: max-content; animation: mq 28s linear infinite; }
.mq-item { display: flex; align-items: center; gap: .5rem; font-size: .8rem; color: var(--sub); white-space: nowrap; }
.mq-item::before { content: '·'; font-size: 1.1rem; color: var(--line); }
@keyframes mq { from { transform: translateX(0); } to { transform: translateX(-25%); } }

/* ── NUMBERS BAND ── */
.num-band { background: var(--ink); }
.num-band .label { color: rgba(255,255,255,.3); }
.num-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 10px; overflow: hidden; margin-top: 2.5rem;
}
.num-cell { background: var(--ink); padding: 2.5rem 1.8rem; transition: background .2s; }
.num-cell:hover { background: var(--ink2); }
.num-val { font-family: var(--fd); font-size: 3rem; font-weight: 800; line-height: 1; color: #fff; letter-spacing: -.03em; }
.num-lbl { font-size: .8rem; color: rgba(255,255,255,.35); margin-top: .5rem; }

/* ── SERVICES LIST ── */
.svc-top { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 4rem; gap: 2rem; flex-wrap: wrap; }
.svc-top h2 { max-width: 500px; margin-top: .5rem; }
.svc-top p { max-width: 320px; color: var(--sub); font-size: .92rem; }
.svc-list { display: flex; flex-direction: column; }
.svc-row {
  display: grid; grid-template-columns: 1fr 1.4fr;
  align-items: start; padding: 2.8rem 0;
  border-top: 1px solid var(--line); gap: 3rem; cursor: default;
}
.svc-row:last-child { border-bottom: 1px solid var(--line); }
.svc-row:hover .svc-num { color: var(--ink); }
.svc-num { font-family: var(--fd); font-size: .72rem; color: var(--line); font-weight: 700; letter-spacing: .05em; transition: color .3s; margin-top: 3px; }
.svc-tc { display: flex; flex-direction: column; gap: .5rem; }
.svc-name { font-family: var(--fd); font-size: 1.25rem; font-weight: 700; letter-spacing: -.018em; }
.svc-tag { display: inline-block; font-size: .7rem; color: var(--sub); border: 1px solid var(--line); padding: 2px 8px; border-radius: 100px; width: fit-content; }
.svc-desc { color: var(--sub); font-size: .92rem; line-height: 1.75; }
.svc-feat { grid-column: 1/-1; display: flex; gap: 1.5rem; flex-wrap: wrap; padding-top: .8rem; }
.sf { font-size: .8rem; color: var(--sub); display: flex; align-items: center; gap: 5px; }
.sf::before { content: '→'; font-size: .68rem; }

/* ── STEPS ── */
.step-item {
  padding: 2rem 0; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 44px 1fr; gap: 1.5rem;
}
.step-item:last-child { border-bottom: 1px solid var(--line); }
.step-n { font-family: var(--fd); font-size: .72rem; font-weight: 700; color: var(--line); padding-top: 2px; }
.step-b h3 { font-family: var(--fd); font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em; margin-bottom: .3rem; }
.step-b p { font-size: .87rem; color: var(--sub); line-height: 1.65; }

/* ── FAQ ── */
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-btn {
  width: 100%; background: none; border: none;
  padding: 1.2rem 0; display: flex; justify-content: space-between;
  align-items: center; gap: 1rem; cursor: pointer;
  font-family: var(--fb); font-size: .92rem; font-weight: 500;
  color: var(--ink); text-align: left; transition: color .2s;
}
.faq-btn:hover { color: var(--sub); }
.faq-ico {
  width: 22px; height: 22px; border: 1px solid var(--line);
  border-radius: 50%; display: flex; align-items: center;
  justify-content: center; flex-shrink: 0;
  font-size: .75rem; color: var(--sub);
  transition: transform .3s, background .3s, border-color .3s, color .3s;
}
.faq-item.open .faq-ico { transform: rotate(45deg); background: var(--ink); border-color: var(--ink); color: #fff; }
.faq-body { max-height: 0; overflow: hidden; font-size: .87rem; color: var(--sub); line-height: 1.75; transition: max-height .4s ease, padding .3s; }
.faq-item.open .faq-body { max-height: 320px; padding-bottom: 1.2rem; }

/* ── CTA BAND ── */
.cta-band { background: var(--ink); border-top: none !important; }
.cta-band .sec { display: flex; align-items: center; justify-content: space-between; gap: 3rem; flex-wrap: wrap; }
.cta-t .label { color: rgba(255,255,255,.3); display: block; }
.cta-t h2 { color: #fff; margin-top: .5rem; max-width: 600px; }
.cta-t p { color: rgba(255,255,255,.4); font-size: .88rem; margin-top: .7rem; max-width: 360px; line-height: 1.65; }
.cta-btns { display: flex; gap: .75rem; flex-wrap: wrap; flex-shrink: 0; }

/* ── FOOTER ── */
footer { background: var(--ink); border-top: 1px solid rgba(255,255,255,.06); padding: 2.5rem 0; }
.foot-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.2rem; }
.foot-logo .logo-name { color: rgba(255,255,255,.45); }
.foot-links { display: flex; gap: 1.8rem; list-style: none; flex-wrap: wrap; }
.foot-links a { font-size: .8rem; color: rgba(255,255,255,.25); transition: color .2s; }
.foot-links a:hover { color: rgba(255,255,255,.6); }
.foot-copy { font-size: .76rem; color: rgba(255,255,255,.18); }


/* ── PAGE HERO (inner pages) ── */
.page-hero { padding: 9rem 0 6rem; border-top: none; }
.page-hero h1 {
  font-family: var(--fd); font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800; line-height: 1.05; letter-spacing: -.035em;
  margin-top: .6rem; overflow-wrap: break-word; word-break: break-word;
}
.page-hero p {
  max-width: 480px; color: var(--sub); font-size: 1rem;
  font-weight: 300; line-height: 1.7; margin-top: 1.2rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 860px) {
  nav { display: flex; justify-content: space-between; }
  .nav-links { display: none; }
  #navCta { display: none !important; visibility: hidden; }
  .ham { display: flex; }
  .sec { padding: 5rem 0; }
  .num-grid { grid-template-columns: repeat(2, 1fr); }

  /* service rows: ditch the 3-col grid, go full flex stack */
  .svc-row {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    padding: 1.8rem 0;
  }
  .svc-top { flex-direction: column; align-items: flex-start; gap: .8rem; margin-bottom: 2.5rem; }
  .svc-top p { max-width: 100%; }
}

@media (max-width: 600px) {
  nav { padding: 0 5%; }
  .logo-name { font-size: 1rem; }
  .sec { padding: 5rem 0; }
  .container { padding: 0 5%; }
  .page-hero { padding: 6rem 0 4rem; text-align: center; }
  .page-hero p { max-width: 100%; }
  .page-hero .filters { justify-content: center; }

  h2 { font-size: clamp(1.5rem, 8vw, 2.1rem); }

  /* ── services list (index) ── */
  .svc-top { gap: .6rem; margin-bottom: 3rem; }
  .svc-top p { font-size: .88rem; }
  .svc-row { padding: 1.5rem 0; gap: .5rem; }
  .svc-tc { flex-direction: row; align-items: center; flex-wrap: wrap; gap: .5rem; }
  .svc-num { margin-top: 0; }
  .svc-name { font-size: 1.05rem; }
  .svc-desc { font-size: .86rem; }
  .svc-feat { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .2rem; }
  .sf { font-size: .76rem; background: var(--bg); border: 1px solid var(--line); border-radius: 100px; padding: 3px 10px; }
  .sf::before { content: none; }

  /* ── global: center lone buttons ── */
  .btn-center-mobile { display: flex; justify-content: center; }
  .btn-center-mobile .btn { width: auto; }

  /* ── steps ── */
  .step-item { grid-template-columns: 28px 1fr; gap: 1rem; padding: 1.4rem 0; }
  .step-b h3 { font-size: .95rem; }

  /* ── numbers ── */
  .num-grid { grid-template-columns: 1fr 1fr; }
  .num-val { font-size: 2rem; }
  .num-band .sec { padding-top: 4rem; padding-bottom: 4rem; }
  .num-cell { padding: 1.6rem 1.1rem; }
  .num-lbl { font-size: .74rem; }

  /* ── cta band: keep buttons inline, just smaller ── */
  .cta-band .sec { flex-direction: column; align-items: center; text-align: center; gap: 1.8rem; padding-top: 4rem; padding-bottom: 4rem; }
  .cta-t p { max-width: 100%; }
  .cta-btns { justify-content: center; }
  .cta-btns { width: auto; flex-direction: row; flex-wrap: wrap; gap: .6rem; }
  .cta-btns .btn { width: auto; font-size: .82rem; padding: .6rem 1.1rem; }

  /* ── footer ── */
  footer { padding: 2rem 0; }
  .foot-inner { flex-direction: column; align-items: flex-start; gap: 1.3rem; }
  .foot-links { gap: 1rem; flex-wrap: wrap; }

  /* ── mobile menu ── */
  .mob-links a { font-size: 1.35rem; padding: .9rem 0; }

  /* ── misc ── */
  .mq-item { font-size: .73rem; }
  .faq-btn { font-size: .87rem; }
}
