:root {
  color-scheme: light;
  --ink: #17211f;
  --muted: #64726f;
  --line: #d7e1de;
  --surface: #f3f7f6;
  --paper: #ffffff;
  --brand: #0aa88a;
  --brand-dark: #087663;
  --accent: #d98531;
  --danger: #b7463c;
  --shadow: 0 18px 60px rgba(20, 50, 43, 0.12);
  --page: min(1180px, calc(100vw - 48px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Avenir Next", "Be Vietnam Pro", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; letter-spacing: 0; }
.copy-zh, .copy-en { display: none; }
html[data-locale="zh"] .copy-vi,
html[data-locale="en"] .copy-vi { display: none; }
html[data-locale="zh"] .copy-zh { display: revert; }
html[data-locale="en"] .copy-en { display: revert; }
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000;
  transform: translateY(-160%);
  padding: 8px 12px;
  background: var(--ink);
  color: #fff;
}
.skip-link:focus { transform: translateY(0); }
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 72px;
  border-bottom: 1px solid rgba(215, 225, 222, 0.9);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}
.header-inner {
  width: var(--page);
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand-link { display: inline-flex; align-items: center; text-decoration: none; }
.brand-link img { width: 132px; height: 48px; object-fit: contain; }
.primary-nav { display: flex; align-items: center; gap: 28px; }
.primary-nav a {
  color: #34413e;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}
.primary-nav a:hover, .primary-nav a:focus-visible { color: var(--brand-dark); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.language-switch { display: inline-flex; gap: 6px; }
.language-switch button { min-height: 38px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.language-picker { position: relative; }
.language-trigger {
  display: grid;
  grid-template-columns: 18px minmax(82px, 1fr) 14px;
  width: 158px;
  min-height: 40px;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
  text-align: left;
}
.language-trigger:hover, .language-trigger:focus-visible, .language-picker.is-open .language-trigger {
  border-color: #8fc9bd;
  box-shadow: 0 0 0 3px rgba(10, 168, 138, 0.1);
}
.language-icon { width: 18px; height: 18px; color: var(--brand-dark); }
.language-chevron { width: 14px; height: 14px; color: var(--muted); transition: transform 160ms ease; }
.language-picker.is-open .language-chevron { transform: rotate(180deg); }
.language-menu {
  position: absolute;
  z-index: 220;
  top: calc(100% + 8px);
  right: 0;
  width: 224px;
  margin: 0;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(20, 50, 43, 0.16);
}
.language-menu[hidden] { display: none; }
.language-option {
  display: grid;
  grid-template-columns: 34px 1fr 18px;
  width: 100%;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  padding: 7px 9px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  text-align: left;
}
.language-option:hover, .language-option:focus-visible { outline: 0; background: var(--surface); }
.language-option.is-active { color: var(--brand-dark); background: #edf8f5; }
.language-code { color: var(--muted); font-size: 11px; font-weight: 850; }
.language-name { color: var(--ink); font-weight: 700; }
.language-check { color: var(--brand-dark); font-weight: 900; opacity: 0; }
.language-option.is-active .language-check { opacity: 1; }
.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}
.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 18px;
  border: 1px solid var(--brand-dark);
  border-radius: 6px;
  color: #fff;
  background: var(--brand-dark);
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease;
}
.button:hover { transform: translateY(-1px); background: #065f50; }
.button.secondary { color: var(--ink); background: rgba(255, 255, 255, 0.86); border-color: var(--line); }
.button.secondary:hover { background: #fff; }
.hero {
  position: relative;
  min-height: min(720px, calc(100svh - 104px));
  display: flex;
  align-items: stretch;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background-image: url("/assets/admin-dashboard.png");
  background-size: cover;
  background-position: center 24%;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(247, 251, 250, 0.91);
}
.hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 36%;
  height: 10px;
  background: var(--accent);
}
.hero-inner {
  position: relative;
  z-index: 1;
  width: var(--page);
  margin: 0 auto;
  padding: 90px 0 46px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.hero-copy { max-width: 760px; }
.eyebrow {
  margin: 0 0 16px;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}
h1, h2, h3 { margin-top: 0; line-height: 1.14; letter-spacing: 0; }
h1 { margin-bottom: 22px; font-size: clamp(46px, 6.5vw, 84px); font-weight: 780; }
.hero-lead { max-width: 680px; margin: 0 0 30px; color: #364440; font-size: clamp(18px, 2vw, 23px); line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 840px;
  margin-top: 64px;
  border-top: 1px solid rgba(23, 33, 31, 0.24);
}
.flow-item { position: relative; padding: 15px 24px 0 0; }
.flow-item::before { content: ""; position: absolute; top: -4px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.flow-item span { display: block; color: var(--muted); font-size: 12px; font-weight: 800; }
.flow-item strong { display: block; margin-top: 4px; font-size: 15px; }
.section { padding: 96px 0; }
.section.muted { background: var(--surface); }
.section-inner { width: var(--page); margin: 0 auto; }
.section-heading { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1.2fr); gap: 64px; margin-bottom: 56px; align-items: end; }
.section-heading h2 { margin-bottom: 0; font-size: clamp(32px, 4vw, 52px); }
.section-heading p { margin: 0; color: var(--muted); font-size: 18px; }
.capability-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.capability { min-height: 240px; padding: 28px 26px 30px 0; border-right: 1px solid var(--line); }
.capability + .capability { padding-left: 26px; }
.capability:last-child { border-right: 0; }
.capability-index { color: var(--accent); font-size: 13px; font-weight: 850; }
.capability h3 { margin: 34px 0 12px; font-size: 22px; }
.capability p { margin: 0; color: var(--muted); }
.product-stage { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 30px; align-items: stretch; }
.phone-strip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: end; }
.product-figure { margin: 0; }
.product-figure img { width: 100%; border: 1px solid var(--line); border-radius: 6px; background: #fff; box-shadow: var(--shadow); }
.phone-strip img { aspect-ratio: 390 / 844; object-fit: cover; object-position: top; }
.admin-figure img { height: 100%; min-height: 520px; object-fit: cover; object-position: top left; }
.product-figure figcaption { padding-top: 12px; color: var(--muted); font-size: 13px; font-weight: 700; }
.workflow { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); }
.workflow-step { padding: 28px 20px 0 0; }
.workflow-step .step-number { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border: 1px solid var(--brand); border-radius: 50%; color: var(--brand-dark); font-weight: 850; }
.workflow-step h3 { margin: 20px 0 8px; font-size: 18px; }
.workflow-step p { margin: 0; color: var(--muted); font-size: 14px; }
.company-band { padding: 86px 0; color: #fff; background: var(--ink); }
.company-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 80px; }
.company-layout h2 { font-size: clamp(32px, 4vw, 50px); }
.company-layout .lead { color: #b9c7c3; font-size: 18px; }
.company-facts { margin: 0; border-top: 1px solid #43504d; }
.company-facts div { display: grid; grid-template-columns: 165px 1fr; gap: 24px; padding: 17px 0; border-bottom: 1px solid #43504d; }
.company-facts dt { color: #9cb0aa; font-size: 13px; font-weight: 800; }
.company-facts dd { margin: 0; font-size: 15px; }
.support-band { padding: 72px 0; border-bottom: 1px solid var(--line); }
.support-layout { display: flex; align-items: center; justify-content: space-between; gap: 36px; }
.support-layout h2 { margin-bottom: 10px; font-size: clamp(30px, 4vw, 46px); }
.support-layout p { margin: 0; color: var(--muted); }
.site-footer { padding: 44px 0 32px; background: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.3fr repeat(2, 0.7fr); gap: 60px; }
.footer-brand img { width: 120px; }
.footer-brand p { max-width: 420px; color: var(--muted); font-size: 14px; }
.footer-links h3 { margin-bottom: 12px; font-size: 14px; }
.footer-links a { display: block; width: fit-content; margin: 7px 0; color: var(--muted); font-size: 14px; text-decoration: none; }
.footer-links a:hover { color: var(--brand-dark); }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.page-hero { padding: 82px 0 64px; border-bottom: 1px solid var(--line); background: var(--surface); }
.page-hero .section-inner { max-width: 920px; margin-left: max(24px, calc((100vw - min(1180px, calc(100vw - 48px))) / 2)); }
.page-hero h1 { font-size: clamp(38px, 5vw, 64px); }
.page-hero p { max-width: 740px; margin: 0; color: var(--muted); font-size: 18px; }
.legal-language-links { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.legal-language-links a {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
  background: #fff;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}
.legal-language-links a:hover, .legal-language-links a:focus-visible { border-color: #8fc9bd; color: var(--brand-dark); }
html[data-locale="vi"] [data-policy-locale-link="vi"],
html[data-locale="zh"] [data-policy-locale-link="zh"],
html[data-locale="en"] [data-policy-locale-link="en"] { border-color: var(--brand); color: var(--brand-dark); background: #edf8f5; }
.content-page { width: min(920px, calc(100vw - 48px)); margin: 0 auto; padding: 72px 0 100px; }
.content-page h2 { margin: 58px 0 16px; padding-top: 8px; font-size: 28px; }
.content-page h3 { margin: 34px 0 10px; font-size: 20px; }
.content-page p, .content-page li { color: #3e4b48; }
.content-page ul { padding-left: 22px; }
.legal-note { padding: 18px 20px; border-left: 3px solid var(--brand); background: var(--surface); }
.fact-table { width: 100%; border-collapse: collapse; }
.fact-table th, .fact-table td { padding: 15px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.fact-table th { width: 220px; color: var(--muted); font-size: 13px; }
.contact-list { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
.contact-list div { padding: 24px 28px 24px 0; border-bottom: 1px solid var(--line); }
.contact-list div:nth-child(even) { padding-left: 28px; border-left: 1px solid var(--line); }
.contact-list span { display: block; color: var(--muted); font-size: 13px; font-weight: 800; }
.contact-list strong { display: block; margin-top: 6px; font-size: 18px; overflow-wrap: anywhere; }
.reveal { opacity: 1; transform: none; }

@media (max-width: 960px) {
  :root { --page: min(100% - 36px, 760px); }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .primary-nav { display: none; position: absolute; top: 72px; left: 0; right: 0; padding: 18px; flex-direction: column; align-items: stretch; gap: 0; border-bottom: 1px solid var(--line); background: #fff; }
  .primary-nav.is-open { display: flex; }
  .primary-nav a { padding: 12px; }
  .hero { min-height: calc(100svh - 92px); }
  .hero-inner { padding-top: 70px; }
  .section-heading, .company-layout { grid-template-columns: 1fr; gap: 28px; }
  .capability-grid { grid-template-columns: repeat(2, 1fr); }
  .capability:nth-child(2) { border-right: 0; }
  .capability:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .product-stage { grid-template-columns: 1fr; }
  .admin-figure img { min-height: 0; }
  .workflow { grid-template-columns: repeat(3, 1fr); row-gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  :root { --page: calc(100vw - 28px); }
  .site-header { height: 64px; }
  .header-inner, .header-actions { gap: 8px; }
  .brand-link img { width: 90px; height: 40px; }
  .language-trigger { width: 126px; grid-template-columns: 16px minmax(64px, 1fr) 12px; gap: 6px; padding-inline: 8px; }
  .language-icon { width: 16px; height: 16px; }
  .language-chevron { width: 12px; height: 12px; }
  .menu-toggle { width: 36px; height: 36px; }
  .primary-nav { top: 64px; }
  .hero { min-height: calc(100svh - 78px); background-position: 28% top; }
  .hero-inner { padding: 50px 0 34px; }
  h1 { font-size: clamp(42px, 16vw, 66px); }
  .hero-lead { font-size: 17px; }
  .hero-flow { grid-template-columns: repeat(2, 1fr); row-gap: 18px; margin-top: 42px; }
  .section { padding: 70px 0; }
  .section-heading { margin-bottom: 38px; }
  .capability-grid { grid-template-columns: 1fr; }
  .capability, .capability + .capability { min-height: 0; padding: 24px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .capability:last-child { border-bottom: 0; }
  .capability h3 { margin-top: 18px; }
  .phone-strip { gap: 10px; }
  .workflow { grid-template-columns: 1fr; }
  .workflow-step { display: grid; grid-template-columns: 42px 1fr; gap: 0 14px; padding-top: 20px; }
  .workflow-step h3 { margin: 5px 0 5px; }
  .workflow-step p { grid-column: 2; }
  .company-band { padding: 64px 0; }
  .company-facts div { grid-template-columns: 1fr; gap: 3px; }
  .support-layout { align-items: flex-start; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-brand { grid-column: auto; }
  .page-hero { padding: 58px 0 48px; }
  .content-page { width: calc(100vw - 32px); padding-top: 50px; }
  .fact-table, .fact-table tbody, .fact-table tr, .fact-table th, .fact-table td { display: block; width: 100%; }
  .fact-table th { padding-bottom: 0; border-bottom: 0; }
  .fact-table td { padding-top: 5px; }
  .contact-list { grid-template-columns: 1fr; }
  .contact-list div:nth-child(even) { padding-left: 0; border-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
