/* ============ DESIGN TOKENS — edit these, not scattered values ============ */
:root{
  --ink:      #0A2540;   /* deep navy — headings, footer */
  --blue:     #000080;   /* royal blue — primary actions, active states */
  --signal:   #33A1FF;   /* signal blue — RESERVED for the live packet + live accents only */
  --ice:      #EEF3FC;   /* ice tint — section backgrounds, chips */
  --hairline: #D7E1F2;   /* hairline borders */
  --slate:    #46566E;   /* secondary text */
  --white:    #FFFFFF;
  --gold:     #d19021;

  --font-display: "Newsreader", Georgia, serif;
  --font-body:    "Inter", -apple-system, sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, monospace;

  --max: 1120px;
  --radius: 10px;
}
*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{font-family:var(--font-body);color:var(--ink);background:var(--white);line-height:1.6;font-size:16px;-webkit-font-smoothing:antialiased}
.wrap{max-width:var(--max);margin:0 auto;padding:0 24px}
h1,h2,h3{font-family:var(--font-display);font-weight:500;line-height:1.15;letter-spacing:-0.01em}
a{color:var(--blue)}
:focus-visible{outline:3px solid var(--signal);outline-offset:2px;border-radius:4px}
.eyebrow{font-family:var(--font-mono);font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--blue)}
.btn{display:inline-block;padding:13px 26px;border-radius:var(--radius);font-weight:600;font-size:15px;text-decoration:none;border:1.5px solid transparent;cursor:pointer;transition:background .15s,color .15s,border-color .15s}
.btn-primary{background:var(--blue);color:var(--white) !important;}
.btn-primary:hover{background:#1640B0}
.btn-ghost{border-color:var(--hairline);color:var(--ink);background:var(--white)}
.btn-ghost:hover{border-color:var(--blue);color:var(--blue)}
.mono-chip{font-family:var(--font-mono);font-size:12.5px;background:var(--ice);border:1px solid var(--hairline);border-radius:6px;padding:3px 9px;color:var(--ink);white-space:nowrap}

/* ============ HEADER ============ */
header{position:sticky;top:0;background:rgba(255,255,255,.92);backdrop-filter:blur(8px);border-bottom:1px solid var(--hairline);z-index:50}
.nav{display:flex;align-items:center;justify-content:space-between;height:64px}
.logo{display:inline-flex;flex-direction:row;align-items:center;gap:10px;line-height:1.06;font-family:var(--font-display);font-weight:600;font-size:22px;color:var(--ink);text-decoration:none;letter-spacing:-.01em}
.logo-img{display:flex;align-items:center;flex:none}
.logo-img img{display:block;height:auto}
.logo-word span{color:var(--blue)}
.logo .logo-by{font-size:12px;font-weight:500;color:var(--slate);letter-spacing:.02em}
.logo-word-container{display:inline-flex;flex-direction:column;justify-content:center;line-height:1.06}
.nav-links{display:flex;gap:28px;align-items:center}
.nav-links a{color:var(--slate);text-decoration:none;font-size:14.5px;font-weight:500}
.nav-links a:hover{color:var(--blue)}
.nav-links .btn{padding:9px 18px}
.nav-toggle{display:none;align-items:center;justify-content:center;width:42px;height:42px;border:1.5px solid var(--hairline);border-radius:8px;background:var(--white);color:var(--ink);cursor:pointer}
.nav-toggle:hover{border-color:var(--blue);color:var(--blue)}
/* No-JS mobile: links simply wrap. With JS they collapse behind the toggle. */
@media(max-width:880px){
  /* Vertical only — .wrap owns the 24px side padding and must keep it. */
  .nav{height:auto;padding-top:10px;padding-bottom:10px;flex-wrap:wrap}
  .nav-links{flex-wrap:wrap;gap:14px 20px;padding:6px 0}
  .js .nav{height:64px;flex-wrap:nowrap;padding-top:0;padding-bottom:0}
  .js .nav-toggle{display:inline-flex}
  .js .nav-links{position:absolute;top:100%;left:0;right:0;display:none;flex-direction:column;align-items:stretch;gap:0;
    background:var(--white);border-bottom:1px solid var(--hairline);padding:6px 24px 18px;box-shadow:0 12px 24px rgba(10,37,64,.07)}
  .js .nav-links[data-open="true"]{display:flex}
  .js .nav-links a{padding:13px 2px;font-size:16px;border-bottom:1px solid var(--hairline)}
  .js .nav-links .btn{margin-top:16px;text-align:center;padding:12px 18px;border-bottom:none;font-size:15px}
}

/* ============ SKIP LINK ============ */
.skip-link{position:absolute;left:-9999px;top:0;z-index:100;background:var(--blue);color:var(--white);
  padding:12px 22px;border-radius:0 0 var(--radius) 0;font-weight:600;font-size:14.5px;text-decoration:none}
.skip-link:focus{left:0}

/* ============ SECTIONS ============ */
section{padding:78px 0}
.section-head{max-width:62ch;margin-bottom:44px}
.section-head h2{font-size:clamp(28px,3.6vw,40px);margin:14px 0 14px}
.section-head p{color:var(--slate);font-size:17px}
.tinted{background:var(--ice)}

/* ============ FAQ (each item collapses independently) ============ */
.faq{display:grid;grid-template-columns:1fr 1fr;gap:0 44px;align-items:start}
.faq-item{border-top:1px solid var(--hairline)}
.faq-item>summary{cursor:pointer;list-style:none;display:flex;align-items:flex-start;gap:14px;padding:16px 0}
.faq-item>summary::-webkit-details-marker{display:none}
.faq-item>summary::after{content:"+";margin-left:auto;flex:none;font:500 16px var(--font-mono);line-height:1.35;color:var(--blue)}
.faq-item[open]>summary::after{content:"–"}
.faq-item>summary h3{font-family:var(--font-body);font-size:16px;font-weight:600;line-height:1.4;margin:0;transition:color .15s}
.faq-item>summary:hover h3{color:var(--blue)}
.faq-item p{color:var(--slate);font-size:14.5px;padding:0 34px 18px 0;margin-top:-4px}
@media(max-width:820px){.faq{grid-template-columns:1fr}}

/* ============ SERVICES ============ */
.svc-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.svc{background:var(--white);border:1px solid var(--hairline);border-radius:12px;padding:26px}
.svc h3{font-family:var(--font-body);font-size:16.5px;font-weight:600;margin:0 0 8px}
.svc p{color:var(--slate);font-size:14.5px}
.svc .svc-k{font:500 11.5px var(--font-mono);color:var(--blue);letter-spacing:.05em;text-transform:uppercase;display:block;margin-bottom:12px}
@media(max-width:900px){.svc-grid{grid-template-columns:1fr 1fr}}
@media(max-width:600px){.svc-grid{grid-template-columns:1fr}}

/* ============ STANDARDS BAND ============ */
.standards{display:flex;gap:14px;flex-wrap:wrap;align-items:center}
.standards .mono-chip{font-size:13px;padding:7px 14px;background:var(--white)}

/* ============ STEPS ============ */
.steps{counter-reset:step;display:grid;grid-template-columns:repeat(4,1fr);gap:22px}
.step{position:relative;padding-top:14px;border-top:2px solid var(--hairline)}
.step::before{counter-increment:step;content:counter(step,decimal-leading-zero);font:600 13px var(--font-mono);color:var(--blue);position:absolute;top:-11px;background:var(--white);padding-right:10px}
.tinted .step::before{background:var(--ice)}
.step h3{font-family:var(--font-body);font-size:15.5px;font-weight:600;margin-bottom:6px}
.step p{font-size:14px;color:var(--slate)}
.steps-3{grid-template-columns:repeat(3,1fr)}
@media(max-width:860px){.steps,.steps-3{grid-template-columns:1fr 1fr}}
@media(max-width:560px){.steps,.steps-3{grid-template-columns:1fr}}

/* ============ CTA + FOOTER ============ */
.cta-final{background:var(--ink);color:var(--white);text-align:center;padding:86px 24px;border-radius:0}
.cta-final h2{font-size:clamp(28px,3.6vw,42px);color:var(--white);max-width:24ch;margin:0 auto 16px}
.cta-final p{color:#B9C6DD;max-width:52ch;margin:0 auto 32px}
footer{background:var(--ink);color:#8FA1C0;padding:30px 0;border-top:1px solid #1E3A5F;font-size:13.5px}
/* One row: ownership note, then the legal links. */
.foot{display:flex;justify-content:space-between;align-items:baseline;gap:12px 26px;flex-wrap:wrap}
.foot-legal{display:flex;gap:8px 22px;flex-wrap:wrap}
.foot-legal .ext{margin-left:4px;font-size:11px}
@media(max-width:640px){.foot{flex-direction:column;align-items:flex-start}}
footer a{color:#B9C6DD;text-decoration:none}
footer a:hover{color:var(--white)}

/* ============ LEAD FORM (sits on the dark CTA) ============ */
.lead-form{max-width:720px;margin:38px auto 0;text-align:left;display:grid;grid-template-columns:1fr 1fr;gap:20px}
.lead-form .fld-full{grid-column:1 / -1}
.lead-form .hp{display:none}
.lead-form label{display:block;font:500 11.5px var(--font-mono);letter-spacing:.07em;text-transform:uppercase;color:#B9C6DD;margin-bottom:8px}
.lead-form .req{color:var(--signal);font-weight:600}
.lead-form input,.lead-form select,.lead-form textarea{
  width:100%;font-family:var(--font-body);font-size:15px;color:var(--white);
  background-color:#19324B;border:1.5px solid #1E3A5F;border-radius:var(--radius);
  padding:12px 14px;transition:border-color .15s,background-color .15s}
.lead-form input::placeholder,.lead-form textarea::placeholder{color:#8FA1C0}
.lead-form input:hover,.lead-form select:hover,.lead-form textarea:hover{border-color:#2F5480}
.lead-form input:focus,.lead-form select:focus,.lead-form textarea:focus{border-color:var(--signal);background-color:#1E3A57}
.lead-form textarea{min-height:104px;resize:vertical;line-height:1.55}
.lead-form select{
  appearance:none;-webkit-appearance:none;padding-right:40px;cursor:pointer;
  background-image:url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%238FA1C0' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 14px center}
.lead-form select:invalid{color:#8FA1C0}
.lead-form select:has(option[value=""]:checked){color:#8FA1C0}
.lead-form option,.lead-form optgroup{background:#19324B;color:var(--white)}
.lead-form optgroup{font-style:normal;font-weight:600}
.lead-form .fld-hint{font-size:12.5px;color:#8FA1C0;margin:8px 0 0;max-width:none;line-height:1.5}
.lead-actions{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap;margin-top:4px}
.lead-actions .lead-note{font:400 12.5px var(--font-mono);color:#8FA1C0;margin:0;max-width:none}
@media(max-width:640px){
  .lead-form{grid-template-columns:1fr}
  .lead-actions{flex-direction:column;align-items:stretch;text-align:center}
  .lead-actions .btn{width:100%}
}

@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  *{transition:none!important;animation:none!important}
}

/* ============ CONFIRMATION BADGE (success pages) ============ */
.badge{display:inline-flex;align-items:center;gap:10px;background:var(--ice);border:1px solid var(--hairline);
  border-radius:999px;padding:7px 16px 7px 10px;font:500 12.5px var(--font-mono);letter-spacing:.06em;
  text-transform:uppercase;color:var(--blue);margin-bottom:20px}
.badge .tick{width:20px;height:20px;border-radius:50%;background:var(--blue);display:grid;place-items:center;flex:none}
.badge .tick svg{display:block}

/* ============ PAGE HEAD (product page and confirmation pages) ============ */
.page-head{padding:64px 0 40px;border-bottom:1px solid var(--hairline)}
.page-head h1{font-size:clamp(34px,4.6vw,52px);max-width:18ch;margin:16px 0 18px}
.page-head p.lead{font-size:18px;color:var(--slate);max-width:60ch}

/* ============ VISUALLY HIDDEN (read by screen readers only) ============ */
.vh{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}


/* ============ CHINESE TRANSLATIONS ============
   The webfonts carry no CJK glyphs, so each stack names the system CJK faces
   after them: Latin text, numbers and citations still render in Newsreader,
   Inter and Plex; Chinese falls through to PingFang / Microsoft YaHei (sans) and
   Songti (serif, with YaHei as the Windows fallback rather than SimSun). */
:root:lang(zh-Hans){
  --font-display: "Newsreader", "Songti SC", "Noto Serif SC", "Source Han Serif SC", "Noto Serif CJK SC", "Microsoft YaHei", serif;
  --font-body:    "Inter", -apple-system, "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", monospace;
}
:root:lang(zh-Hant){
  --font-display: "Newsreader", "Songti TC", "Noto Serif TC", "Source Han Serif TC", "Noto Serif CJK TC", "Microsoft JhengHei", serif;
  --font-body:    "Inter", -apple-system, "PingFang HK", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, "PingFang HK", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", monospace;
}
/* Chinese wants more leading, no negative tracking, and a measure set in em:
   one CJK character is ~1em wide, so the ch-based limits above (written for
   Latin text) would halve the line length. */
:lang(zh) body{line-height:1.75}
:lang(zh) h1,:lang(zh) h2,:lang(zh) h3{letter-spacing:0;line-height:1.3}
:lang(zh) .eyebrow{letter-spacing:.04em}
:lang(zh) em{font-style:normal;font-weight:600}
:lang(zh) .cta-final h2{max-width:20em}
:lang(zh) .section-head{max-width:46em}
:lang(zh) .section-head p{max-width:40em}
:lang(zh) .page-head h1{max-width:14em}
:lang(zh) .lg-consent__t{font-family:var(--font-display)}

/* ---- 简体 / 繁體 switch (translations only) ----
   Desktop: after the nav links. Mobile, where the links collapse behind the
   toggle: next to the toggle, so it stays one tap away. */
.nav-i18n{justify-content:flex-start}
.nav-i18n .nav-links{margin-left:auto}
.lang-switch{order:3;display:inline-flex;flex:none;margin-left:22px;border:1.5px solid var(--hairline);border-radius:8px;overflow:hidden}
.lang-switch a{padding:6px 10px;font-size:13.5px;font-weight:500;line-height:1.2;color:var(--slate);text-decoration:none;background:var(--white)}
.lang-switch a + a{border-left:1.5px solid var(--hairline)}
.lang-switch a:hover{color:var(--blue)}
.lang-switch a[aria-current="true"]{background:var(--ice);color:var(--ink);font-weight:600}
@media(max-width:880px){
  .lang-switch{order:0;margin-left:auto;margin-right:12px}
  .nav-i18n .nav-links{margin-left:0}
}
