/* WT-MKT AI demo portal. Màu và font theo watatech.com.vn (theme watatech-acf). */
:root {
  --blue: #155eef;
  --blue-hover: #0f4fd6;
  --blue-press: #0b43b8;
  --blue-050: #eff5ff;
  --blue-100: #dceaff;
  --navy: #102a43;
  --ink: #334155;
  --muted: #52657b;
  --line: #dbe5f1;
  --line-strong: #c8d8e9;
  --bg: #ffffff;
  --bg-soft: #f7faff;

  --ok: #0b6e44;
  --ok-bg: #e8f6ee;
  --ok-line: #b7e1c9;
  --soon: #7a4d00;
  --soon-bg: #fff4dd;
  --soon-line: #f0d494;
  --warn-ink: #5c3d00;
  --warn-bg: #fff8e8;
  --warn-line: #f0d494;
  --warn-ico: #b7791f;
  --err: #b42318;
  --err-bg: #fef1ef;
  --err-line: #f5c2bb;

  --radius: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(16, 42, 67, .05), 0 10px 28px -16px rgba(16, 42, 67, .18);
  --font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --gutter: 24px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; color: var(--navy); font-weight: 700; line-height: 1.28; letter-spacing: -.01em; }
p { margin: 0; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-hover); }
strong { font-weight: 600; color: var(--navy); }
code { font-family: var(--mono); font-size: .92em; color: var(--navy); background: var(--blue-050); padding: 1px 6px; border-radius: 6px; overflow-wrap: anywhere; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
section[id], article[id], h3[id] { scroll-margin-top: 88px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #fff; color: var(--navy); padding: 10px 14px; border-radius: 10px; box-shadow: var(--shadow); font-weight: 600; }
.skip:focus { left: 16px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }

/* Icons */
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ico-sm { width: 16px; height: 16px; }
.ico-xs { width: 14px; height: 14px; }
.ico-lg { width: 28px; height: 28px; }
.ico-circle {
  display: inline-grid; place-items: center; flex: none;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--blue-050); color: var(--blue); border: 1px solid var(--blue-100);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 11px 20px; border-radius: 12px; border: 1px solid transparent;
  font: inherit; font-size: 15px; font-weight: 600; line-height: 1.2; text-decoration: none;
  cursor: pointer; transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s;
}
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 6px 16px -8px rgba(21, 94, 239, .6); }
.btn-primary:hover { background: var(--blue-hover); color: #fff; }
.btn-primary:active { background: var(--blue-press); }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-ghost-dark { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .38); }
.btn-ghost-dark:hover { color: #fff; border-color: #fff; background: rgba(255, 255, 255, .06); }
.btn-link { background: none; border: 0; color: var(--blue); padding: 8px 6px; min-height: 40px; text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.btn-link:hover { color: var(--blue-hover); }
.btn-sm { min-height: 40px; padding: 8px 14px; font-size: 14px; border-radius: 10px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .6; cursor: not-allowed; box-shadow: none; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.actions-tight { margin-top: 14px; gap: 8px; align-items: center; }

/* Chips */
.chip {
  display: inline-flex; align-items: center; gap: 7px; flex: none;
  padding: 4px 11px; border-radius: 999px; border: 1px solid transparent;
  font-size: 12.5px; font-weight: 600; line-height: 1.35; white-space: nowrap; text-decoration: none;
}
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip-live { color: var(--ok); background: var(--ok-bg); border-color: var(--ok-line); }
.chip-soon { color: var(--soon); background: var(--soon-bg); border-color: var(--soon-line); }
.chip-soon::before { background: transparent; border: 1.5px solid currentColor; width: 8px; height: 8px; }
.chip-demo { color: var(--warn-ink); background: var(--warn-bg); border-color: var(--warn-line); }
a.chip-demo:hover { color: var(--warn-ink); border-color: var(--warn-ico); }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: 13.5px; font-weight: 600; color: var(--blue); }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); min-width: 0; }
.brand-img { height: 24px; width: auto; }
.brand-text { display: none; font-weight: 700; font-size: 18px; letter-spacing: .02em; color: var(--navy); }
.brand.logo-failed .brand-img { display: none; }
.brand.logo-failed .brand-text { display: inline; }
.brand-sep { width: 1px; height: 22px; background: var(--line-strong); }
.brand-product { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; white-space: nowrap; }
.tag-demo { font-size: 11.5px; font-weight: 600; color: var(--blue); background: var(--blue-050); border: 1px solid var(--blue-100); border-radius: 999px; padding: 1px 8px; }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.site-nav a { display: block; padding: 8px 12px; border-radius: 999px; color: var(--navy); font-size: 15px; font-weight: 500; text-decoration: none; }
.site-nav a:hover { background: var(--blue-050); color: var(--blue); }
.header-cta { flex: none; }

/* Hero */
.hero {
  padding: 64px 0 72px;
  background:
    radial-gradient(900px 420px at 90% -8%, #e6efff 0%, rgba(230, 239, 255, 0) 65%),
    radial-gradient(600px 300px at -10% 110%, #f1f6ff 0%, rgba(241, 246, 255, 0) 70%),
    var(--bg);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(1.9rem, 1.15rem + 2.6vw, 3.05rem); line-height: 1.2; letter-spacing: -.02em; }
.lead { margin-top: 20px; font-size: 18px; color: var(--muted); max-width: 60ch; }
.demo-note {
  display: flex; align-items: flex-start; gap: 12px; margin-top: 22px; max-width: 62ch;
  padding: 12px 14px; border: 1px dashed var(--warn-line); border-radius: var(--radius-md); background: rgba(255, 248, 232, .6);
  font-size: 14.5px; color: var(--ink);
}
.demo-note .chip { margin-top: 1px; }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }

.flow { padding: 28px 28px 10px; }
.flow-title { font-size: 17px; margin-bottom: 20px; }
.flow-list { list-style: none; margin: 0; padding: 0; }
.flow-list li { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding-bottom: 20px; }
.flow-list li:not(:last-child)::before { content: ""; position: absolute; left: 21px; top: 48px; bottom: 4px; width: 2px; background: var(--blue-100); border-radius: 2px; }
.flow-list strong { display: block; font-size: 15.5px; margin-top: 2px; }
.flow-list p { font-size: 14.5px; color: var(--muted); margin-top: 2px; }

/* Sections */
.section { padding: 80px 0; }
.section-soft { background: var(--bg-soft); border-block: 1px solid #e7eef8; }
.section-head { max-width: 780px; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(1.55rem, 1.2rem + 1.3vw, 2.15rem); line-height: 1.25; }
.section-head p:not(.eyebrow) { margin-top: 12px; font-size: 17px; color: var(--muted); }

/* Notices */
.notice { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 12px; font-size: 14.5px; line-height: 1.55; }
.notice .ico { margin-top: 1px; }
.notice-warn { background: var(--warn-bg); border: 1px solid var(--warn-line); color: var(--warn-ink); }
.notice-warn .ico { color: var(--warn-ico); }
.notice-warn strong { color: var(--warn-ink); }
.notice-sm { font-size: 13.5px; margin-top: 12px; }
#file-notice { margin-bottom: 20px; }

/* Try-it widgets */
.try-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.try-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.try-head h3 { font-size: 20px; }
.try > p, .dash-grid .card > p { color: var(--muted); }
.kv { margin: 18px 0 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-soft); overflow: hidden; }
.kv > div { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 12px; padding: 10px 14px; }
.kv > div + div { border-top: 1px solid var(--line); }
.kv dt { font-size: 13.5px; color: var(--muted); }
.kv dd { margin: 0; font-size: 14px; font-weight: 500; color: var(--navy); overflow-wrap: anywhere; }
.status { margin-top: 12px; font-size: 14px; font-weight: 500; }
.status:empty { display: none; }
.status.is-ok { color: var(--ok); }
.status.is-err { color: var(--err); }
.fineprint { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }

#form-warning { margin-top: 16px; }
.field { margin-top: 16px; }
.field label { display: block; margin-bottom: 6px; font-size: 14.5px; font-weight: 600; color: var(--navy); }
.field input, .field select {
  width: 100%; min-height: 46px; padding: 10px 14px;
  font: inherit; font-size: 16px; color: var(--navy); background: #fff;
  border: 1px solid var(--line-strong); border-radius: 12px;
  transition: border-color .15s, box-shadow .15s;
}
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2352657b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
.field input:hover, .field select:hover { border-color: #a9bfd8; }
.field input:focus, .field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(21, 94, 239, .25); }
.field input[aria-invalid="true"] { border-color: var(--err); }
.field input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(180, 35, 24, .2); }
.field-hint { margin-top: 6px; font-size: 13px; color: var(--muted); }
.field-err { margin-top: 6px; font-size: 13.5px; font-weight: 500; color: var(--err); }
#lead-form .btn[type="submit"] { margin-top: 22px; }
.form-error { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--err-bg); border: 1px solid var(--err-line); color: var(--err); font-size: 14.5px; }
.form-error .ico { margin-top: 1px; }
.result-ok { display: flex; gap: 14px; align-items: flex-start; margin-top: 18px; padding: 18px; border-radius: var(--radius-md); background: var(--ok-bg); border: 1px solid var(--ok-line); color: #164b33; }
.result-ok:focus { outline: none; }
.result-ok:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.result-ok .ico-lg { color: var(--ok); }
.result-title { font-weight: 700; color: var(--ok); margin-bottom: 4px; }
.result-ok strong, .result-ok span { color: inherit; }
#ok-name { font-weight: 600; }

/* Dashboard */
.dash-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.cred { display: grid; gap: 10px; margin: 20px 0 22px; }
.cred-row { display: grid; grid-template-columns: 88px minmax(0, 1fr); align-items: center; gap: 12px; padding: 10px 10px 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-soft); }
.cred-row dt { font-size: 13.5px; color: var(--muted); }
.cred-row dd { margin: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; }
.cred-row code { flex: 1; min-width: 0; background: none; padding: 0; font-size: 14.5px; font-weight: 600; }
.btn-copy {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  min-height: 38px; padding: 6px 12px; border-radius: 10px;
  border: 1px solid var(--line-strong); background: #fff; color: var(--navy);
  font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer;
  transition: border-color .15s, color .15s, background-color .15s;
}
.btn-copy:hover { border-color: var(--blue); color: var(--blue); }
.btn-copy.is-done { color: var(--ok); border-color: var(--ok-line); background: var(--ok-bg); }
.btn-copy.is-fail { color: var(--err); border-color: var(--err-line); background: var(--err-bg); }

.link-list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 12px; }
.link-list a {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) 16px; align-items: center; gap: 14px;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-md);
  color: var(--ink); text-decoration: none; transition: border-color .15s, background-color .15s;
}
.link-list a:hover { border-color: var(--blue); background: var(--blue-050); color: var(--ink); }
.link-list strong { display: block; font-size: 15.5px; }
.link-list small { display: block; font-size: 13.5px; color: var(--muted); line-height: 1.5; margin-top: 2px; }
.link-arrow { color: var(--blue); }

/* Modules */
.module-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 20px; }
.module { display: flex; flex-direction: column; padding: 24px; }
.module-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.module h3 { margin-top: 18px; font-size: 18px; }
.module p { margin-top: 8px; font-size: 15px; color: var(--muted); }
.module-soon { background: #fcfdff; box-shadow: none; }
.module-soon .ico-circle { background: #f3f6fa; color: #5b6f86; border-color: var(--line); }
.tags { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: 12.5px; font-weight: 500; color: var(--navy); background: var(--blue-050); border: 1px solid var(--blue-100); border-radius: 999px; padding: 2px 10px; }
.roles { margin: 14px 0 0; padding: 0; list-style: none; counter-reset: role; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; }
.roles li { counter-increment: role; display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink); }
.roles li::before { content: counter(role); display: inline-grid; place-items: center; width: 20px; height: 20px; flex: none; border-radius: 50%; background: #f3f6fa; border: 1px solid var(--line); font-size: 11.5px; font-weight: 600; color: #5b6f86; }

/* Steps */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.steps li { counter-increment: step; position: relative; display: flex; flex-direction: column; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 16px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; font-size: 16px; }
.step-time { position: absolute; top: 30px; right: 20px; display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px; border-radius: 999px; background: var(--blue-050); color: var(--blue); font-size: 12.5px; font-weight: 600; }
.steps h3 { font-size: 16.5px; }
.steps p { margin-top: 6px; font-size: 14.5px; color: var(--muted); }
.step-link { margin-top: auto; padding-top: 14px; font-size: 14px; font-weight: 600; }

/* Data */
.data-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.data-card h3 { margin-top: 16px; font-size: 18px; }
.data-card p { margin-top: 8px; font-size: 15px; color: var(--muted); }

/* CTA */
.section-cta { padding: 72px 0 80px; }
.cta {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center;
  padding: 48px; border-radius: 24px; background: var(--navy); color: #c3d3e6;
  background-image: radial-gradient(700px 300px at 100% 0%, rgba(21, 94, 239, .35) 0%, rgba(21, 94, 239, 0) 70%);
}
.cta h2 { color: #fff; font-size: clamp(1.45rem, 1.15rem + 1.1vw, 2rem); }
.cta p { margin-top: 10px; max-width: 58ch; font-size: 16.5px; }
.cta .actions { margin-top: 0; }
.cta :focus-visible { outline-color: #fff; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 14px; color: var(--muted); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }

/* Responsive */
@media (max-width: 1080px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .try-grid, .dash-grid { grid-template-columns: minmax(0, 1fr); }
  .data-grid { grid-template-columns: minmax(0, 1fr); }
  .cta { grid-template-columns: minmax(0, 1fr); padding: 36px 32px; }
}
@media (max-width: 860px) {
  .site-nav { display: none; }
  .header-cta { margin-left: auto; }
}
@media (max-width: 600px) {
  :root { --gutter: 16px; }
  body { font-size: 15.5px; }
  .header-row { min-height: 60px; gap: 12px; }
  .brand { gap: 10px; }
  .brand-img { height: 21px; }
  .brand-sep, .brand-product { display: none; }
  .header-cta { padding: 8px 12px; font-size: 13.5px; }
  .hero { padding: 36px 0 48px; }
  .lead { font-size: 16.5px; }
  .demo-note { flex-direction: column; gap: 8px; }
  .section { padding: 52px 0; }
  .section-head { margin-bottom: 26px; }
  .section-head p:not(.eyebrow) { font-size: 16px; }
  .card { padding: 20px; border-radius: 18px; }
  .flow { padding: 22px 20px 6px; }
  .module { padding: 20px; }
  .kv > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .cred-row { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 10px 12px; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .steps li { padding: 20px; }
  .step-time { top: 26px; }
  .btn-block-sm { width: 100%; }
  .actions .btn { flex: 1 1 auto; }
  .cta { padding: 28px 20px; border-radius: 20px; }
  .section-cta { padding: 44px 0 56px; }
  .roles { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 360px) {
  .header-cta { font-size: 13px; padding: 7px 10px; }
  .header-cta .ico { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
.btn-copy[disabled] { opacity: .55; cursor: not-allowed; }
.btn-copy[disabled]:hover { border-color: var(--line-strong); color: var(--navy); }
#cred-missing { margin: -8px 0 18px; }
