:root {
  color-scheme: light;
  --paper: #f6f5ef;
  --ink: #10191b;
  --body: #364744;
  --line: #c9cebf;
  --teal: #2f5d57;
  --teal-deep: #1f423e;
  --teal-soft: #e1ece7;
  --amber: #f8c073;
  --amber-deep: #7a4a12;
  --amber-soft: #fff1d8;
  --muted: #5b6862;
  --white: #ffffff;
  --max: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.65 'Instrument Sans', 'Helvetica Neue', Arial, 'PingFang HK', 'Microsoft JhengHei', sans-serif;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--amber-deep); outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
html:lang(zh-Hant-HK) h1, html:lang(zh) h1 { letter-spacing: 0; line-height: 1.16; }
.wrap { width: min(90%, var(--max)); margin-inline: auto; }
.skip {
  position: absolute; left: 1rem; top: -8rem; z-index: 40;
  padding: .6rem 1rem; background: var(--white); color: var(--ink);
  border: 1px solid var(--ink);
}
.skip:focus { top: 1rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.top { background: var(--ink); color: #f4f4e9; }
.site-header {
  position: relative; display: flex; align-items: center; gap: 18px;
  min-height: 68px; border-bottom: 1px solid #4b5550;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0;
  font: 650 24px/1 'Instrument Sans', Arial, sans-serif; letter-spacing: -.055em;
  white-space: nowrap;
}
html:lang(zh) .brand { letter-spacing: .03em; }
.mark {
  display: inline-block; flex: 0 0 26px; width: 26px; height: 26px;
  background: linear-gradient(116deg,transparent 0 15%,var(--amber) 16% 31%,transparent 32% 41%,var(--amber) 42% 56%,transparent 57% 64%,var(--amber) 65% 78%,transparent 79%);
  clip-path: polygon(0 0,100% 0,83% 100%,0 100%);
}
.site-nav { margin-left: auto; display: flex; align-items: center; gap: clamp(10px, 2vw, 24px); }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px;
  color: #e9ebdf; font-size: 14px; border-bottom: 2px solid transparent;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--amber); border-color: var(--amber); }
.site-nav .nav-cta { display: none; }
.header-tools { display: flex; align-items: center; gap: 12px; }
.languages { display: flex; align-items: center; gap: 5px; font-size: 14px; }
.languages a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 3px; color: #e9ebdf; }
.languages a[aria-current="page"] { color: var(--amber); text-decoration: underline; text-underline-offset: 4px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 16px; border-radius: 4px;
  border: 1px solid var(--amber); background: var(--amber); color: var(--ink);
  font-weight: 650; line-height: 1.2; cursor: pointer;
}
.button:hover { background: #ffd59a; border-color: #ffd59a; }
.button--amber { background: var(--amber); color: var(--ink); border-color: var(--amber); }
.button--ghost { background: transparent; color: #f4f4e9; border-color: #77847d; }
.button--ghost:hover { background: #22312f; border-color: #9aa79f; }
.button--header { font-size: 14px; padding-inline: 13px; }
.menu-toggle {
  display: none; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; padding: 0 10px;
  color: #f4f4e9; background: transparent; border: 1px solid #77847d;
  border-radius: 4px; cursor: pointer;
}
.breadcrumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding-top: 18px; color: var(--muted); font: 12px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
}
.breadcrumbs a { min-height: 44px; display: inline-flex; align-items: center; text-decoration: underline; text-underline-offset: 3px; }
.hero {
  display: grid; align-items: center; gap: clamp(28px, 5vw, 72px);
  padding-block: clamp(34px, 6vw, 74px);
}
.hero--products { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
.hero--services { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.hero--cyber { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); }
.hero-copy { min-width: 0; }
.eyebrow {
  margin-bottom: 12px; color: var(--teal); font: 700 12px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .09em; text-transform: uppercase;
}
h1 {
  max-width: 12em; font-size: clamp(38px, 5vw, 68px); line-height: 1.04;
  font-weight: 600; letter-spacing: -.045em;
}
.lede {
  max-width: 36em; margin-top: 18px; color: var(--body);
  font-size: clamp(17px, 1.4vw, 20px); line-height: 1.6;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.meta-line { margin-top: 18px; color: var(--muted); font-size: 13px; }
.diagram-card {
  min-width: 0; padding: clamp(18px, 3vw, 28px);
  border: 1px solid #aebbb1; border-radius: 8px; background: var(--teal-soft);
}
.diagram-label {
  margin-bottom: 14px; color: var(--teal-deep);
  font: 700 11px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .08em; text-transform: uppercase;
}
.diagram-caption { margin-top: 12px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.arch { display: grid; gap: 10px; }
.arch__lane {
  display: grid; grid-template-columns: 1fr 22px 1fr 22px 1fr;
  align-items: center; gap: 5px;
}
.arch__node {
  display: flex; align-items: center; justify-content: center; min-height: 54px;
  padding: 9px 8px; border: 1px solid #9fb0a5; border-radius: 4px;
  background: var(--paper); color: var(--ink); text-align: center;
  font-size: 13px; font-weight: 650; line-height: 1.3;
}
.arch__node--teal { background: var(--teal); color: var(--white); border-color: var(--teal); }
.arch__node--amber { background: var(--amber); color: var(--ink); border-color: var(--amber); }
.arch__arrow { color: var(--teal-deep); text-align: center; font-weight: 800; }
.arch__note { margin-top: 4px; color: var(--body); font-size: 12px; line-height: 1.5; }
.section { padding-block: clamp(44px, 6vw, 80px); border-top: 1px solid var(--line); }
.section-head { max-width: 60ch; }
h2 { font-size: clamp(28px, 3.2vw, 44px); line-height: 1.15; font-weight: 580; letter-spacing: -.035em; }
.section-head p { margin-top: 10px; color: var(--body); font-size: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.6vw, 28px); margin-top: 28px; }
.card {
  min-width: 0; padding: clamp(17px, 2.5vw, 24px);
  border: 1px solid var(--line); border-top: 3px solid var(--teal);
  border-radius: 6px; background: var(--white);
}
.card:nth-child(2) { border-top-color: var(--amber); }
.card:nth-child(3) { border-top-color: var(--ink); }
.card h3 { margin-bottom: 8px; font-size: clamp(19px, 1.8vw, 23px); line-height: 1.25; }
.card p, .card li { color: var(--body); font-size: 14px; line-height: 1.6; }
.card p + p { margin-top: 8px; }
.card ul { margin: 10px 0 0; padding-left: 18px; }
.card li + li { margin-top: 5px; }
.io-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 3vw, 30px); margin-top: 28px; }
.io {
  min-width: 0; padding: clamp(17px, 2.8vw, 26px);
  border: 1px solid var(--line); border-radius: 6px; background: var(--white);
}
.io h3 { margin-bottom: 10px; font-size: 20px; }
.io ul { margin: 0; padding-left: 19px; color: var(--body); }
.io li + li { margin-top: 7px; }
.sample {
  margin-top: 28px; padding: clamp(18px, 3vw, 28px);
  border-radius: 8px; background: var(--ink); color: #f4f4e9;
}
.sample__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 18px; }
.sample__label {
  color: var(--amber); font: 700 11px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .07em; text-transform: uppercase;
}
.sample__title { color: #f4f4e9; font-size: clamp(21px, 2.4vw, 28px); line-height: 1.25; }
.sample__row {
  display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 14px;
  padding: 13px 0; border-top: 1px solid #4b5550;
}
.sample__row:first-of-type { margin-top: 16px; }
.sample__key { color: #b7c5bd; font: 700 11px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em; text-transform: uppercase; }
.sample__value { color: #f4f4e9; font-size: 14px; line-height: 1.6; }
.sample__tag {
  display: inline-block; margin: 0 5px 4px 0; padding: 2px 6px;
  border: 1px solid #77847d; border-radius: 3px;
  font: 700 10px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .04em; text-transform: uppercase;
}
.sample__tag--ai { color: var(--amber); border-color: var(--amber); }
.sample__tag--verified { color: #9fd3c7; border-color: #9fd3c7; }
.sample__redact { display: block; width: min(86%, 460px); height: 10px; margin-top: 8px; border-radius: 2px; background: #4b5550; }
.sample__note { margin-top: 14px; color: #b7c5bd; font-size: 12px; line-height: 1.5; }
.review {
  list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px; margin: 0; padding: 0;
}
.review__step { min-width: 0; padding-top: 24px; border-top: 2px solid #9fb0a5; position: relative; }
.review__step::before {
  content: ''; position: absolute; top: -7px; left: 0; width: 12px; height: 12px;
  border-radius: 50%; background: var(--paper); border: 2px solid var(--teal);
}
.review__step--ai { border-color: var(--amber); }
.review__step--ai::before { border-color: var(--amber); background: var(--amber); }
.review__step--human { border-color: var(--teal); }
.review__step--human::before { background: var(--teal); }
.review__num { display: block; margin-bottom: 5px; color: var(--muted); font: 700 11px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; }
.review__step h3 { font-size: 15px; line-height: 1.3; }
.review__step p { margin-top: 4px; color: var(--body); font-size: 12px; line-height: 1.5; }
.model-card {
  padding: clamp(18px, 3vw, 28px); border-radius: 8px;
  background: var(--ink); color: #f4f4e9;
}
.model-card__badge {
  display: inline-block; margin-bottom: 14px; padding: 3px 7px;
  color: var(--ink); background: var(--amber); border-radius: 3px;
  font: 700 10px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .05em; text-transform: uppercase;
}
.model-card h3 { color: #f4f4e9; font-size: clamp(21px, 2.2vw, 27px); line-height: 1.25; }
.model-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; margin-top: 16px; }
.model-cell { padding: 11px 0; border-top: 1px solid #4b5550; }
.model-cell strong { display: block; color: #f4f4e9; font-size: 13px; }
.model-cell span { display: block; margin-top: 3px; color: #b7c5bd; font-size: 12px; line-height: 1.5; }
.model-guard {
  margin-top: 14px; padding: 10px 12px; border-radius: 4px;
  background: var(--amber); color: var(--ink); font-size: 12px; font-weight: 650; line-height: 1.5;
}
.checklist {
  padding: clamp(18px, 3vw, 28px); border: 1px solid #aebbb1;
  border-radius: 8px; background: var(--teal-soft);
}
.checklist h3 { margin-bottom: 10px; font-size: 21px; }
.checklist ul { list-style: none; margin: 0; padding: 0; }
.checklist li { position: relative; padding-left: 20px; color: var(--body); font-size: 14px; line-height: 1.6; }
.checklist li + li { margin-top: 7px; }
.checklist li::before {
  content: ''; position: absolute; left: 0; top: .42em; width: 8px; height: 8px;
  border: 2px solid var(--teal); background: var(--white);
}
.related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 22px; }
.related-card { padding: 18px 0 0; border-top: 2px solid var(--teal); }
.related-card h3 { font-size: 20px; line-height: 1.3; }
.related-card p { margin-top: 6px; color: var(--body); font-size: 14px; }
.related-card a { display: inline-flex; align-items: center; min-height: 44px; margin-top: 6px; color: var(--teal-deep); font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
.note { margin-top: 14px; color: var(--muted); font-size: 12px; line-height: 1.55; }
footer { margin-top: 12px; background: var(--ink); color: #e9ebdf; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 22px; padding-block: 28px; }
.footer-brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 650; }
.footer-copy { max-width: 34ch; margin-top: 8px; color: #b7c5bd; font-size: 13px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 44px; color: #e9ebdf; font-size: 13px; }
.footer-nav a:hover { color: var(--amber); }
.footer-small { width: 100%; margin-top: 2px; color: #b7c5bd; font-size: 12px; }
@media (max-width: 900px) {
  .site-header { gap: 10px; }
  .site-nav {
    position: absolute; z-index: 30; top: 100%; left: 0; right: 0;
    display: none; flex-direction: column; align-items: stretch;
    gap: 0; padding: 10px 5%; background: var(--ink);
    border-bottom: 1px solid #4b5550;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { min-height: 44px; padding: 0 4px; border-bottom: 1px solid #3b4842; border-left: 0; }
  .site-nav a:last-child { border-bottom: 0; }
  .site-nav .nav-cta { display: inline-flex; color: var(--amber); }
  .menu-toggle { display: inline-flex; }
  .button--header { display: none; }
  .hero, .hero--products, .hero--services, .hero--cyber { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  h1 { max-width: 100%; }
  .grid-3, .io-grid, .related-grid { grid-template-columns: 1fr; }
  .review { grid-template-columns: 1fr; gap: 0; }
  .review__step { padding: 0 0 18px 20px; border-top: 0; border-left: 2px solid #9fb0a5; }
  .review__step::before { top: 3px; left: -7px; }
  .review__step--ai { border-color: var(--amber); }
  .review__step--human { border-color: var(--teal); }
  .model-grid { grid-template-columns: 1fr; }
  .arch__lane { grid-template-columns: 1fr; gap: 4px; }
  .arch__arrow { height: 18px; transform: rotate(90deg); }
}
@media (max-width: 520px) {
  .wrap { width: min(92%, var(--max)); }
  .brand { font-size: 22px; }
  .languages { font-size: 13px; }
  .hero { padding-block: 28px 36px; }
  .section { padding-block: 38px 46px; }
  .sample__row { grid-template-columns: 1fr; gap: 4px; }
  .sample__key { font-size: 10px; }
  .footer-nav { gap: 0 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
