/* E-Tech JSC landing page.
   Tokens chép từ E-Tech Design System (colors, typography, spacing, effects) - chỉ phần đang dùng.
   Phông chữ nạp qua <link> Google Fonts trong index.html. */

:root {
  /* Azure (chính) */
  --azure-400: #4F8EF8;
  --azure-500: #2C79F7;
  --azure-600: #1B62D8;
  --azure-700: #154EAC;
  --azure-900: #14366B;
  /* Spring green (nhấn) */
  --green-400: #34E68C;
  --green-500: #18C974;
  --green-700: #0D8A4F;
  --green-800: #0F6E41;
  /* Ink */
  --neutral-0:   #FFFFFF;
  --neutral-50:  #F5F7FA;
  --neutral-100: #E8ECF2;
  --neutral-200: #D4DAE3;
  --neutral-300: #AAB4C2;
  --neutral-400: #7E8A9C;
  --neutral-500: #5A6678;
  --neutral-600: #3F4858;
  --neutral-700: #2A323F;
  --neutral-800: #1B212B;
  --neutral-850: #141A22;
  --neutral-900: #0E131A;
  --neutral-950: #080B10;
  --bg-inset: #05070B;

  --gradient-brand: linear-gradient(120deg, var(--azure-500) 0%, var(--green-400) 100%);

  --font-display: 'Space Grotesk', 'Hanken Grotesk', system-ui, sans-serif;
  --font-sans: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;

  --shadow-lg: 0 16px 40px rgba(0,0,0,0.55), 0 4px 10px rgba(0,0,0,0.40);
  --shadow-light: 0 12px 32px rgba(14,19,26,0.14), 0 2px 6px rgba(14,19,26,0.08);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 120ms;
  --dur-base: 200ms;

  --header-h: 64px;
  --gutter: 16px;
  --container: 1200px;
}

/* ---- Chủ đề theo section ---- */
.sec--dark {
  --s-bg: var(--neutral-950);
  --s-text: var(--neutral-50);
  --s-muted: var(--neutral-300);
  --s-border: rgba(255,255,255,0.12);
  --s-border-soft: rgba(255,255,255,0.07);
  --s-card: var(--neutral-900);
  --s-card-hover: var(--neutral-850);
  --s-eyebrow: var(--green-400);
  --s-link: var(--azure-400);
  --s-focus: var(--azure-400);
  --s-chip-bg: rgba(255,255,255,0.05);
  --s-icon-bg: rgba(44,121,247,0.16);
  --s-icon: var(--azure-400);
  --s-btn2-border: rgba(255,255,255,0.28);
  --s-btn2-text: var(--neutral-50);
  --s-btn2-hover: rgba(255,255,255,0.07);
}
.sec--light {
  --s-bg: var(--neutral-50);
  --s-text: var(--neutral-900);
  --s-muted: var(--neutral-600);
  --s-border: rgba(14,19,26,0.14);
  --s-border-soft: rgba(14,19,26,0.08);
  --s-card: var(--neutral-0);
  --s-card-hover: var(--neutral-0);
  --s-eyebrow: var(--azure-600);
  --s-link: var(--azure-600);
  --s-focus: var(--azure-600);
  --s-chip-bg: var(--neutral-100);
  --s-icon-bg: rgba(44,121,247,0.10);
  --s-icon: var(--azure-600);
  --s-btn2-border: rgba(14,19,26,0.30);
  --s-btn2-text: var(--neutral-900);
  --s-btn2-hover: rgba(14,19,26,0.05);
}

/* ---- Reset nhẹ ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--neutral-950);
  color: var(--neutral-50);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--s-focus, var(--azure-400)); outline-offset: 3px; border-radius: 2px; }
.site-header :focus-visible, .site-footer :focus-visible { outline-color: var(--azure-400); }

.skip-link {
  position: absolute; left: var(--gutter); top: -100px; z-index: 5000;
  background: var(--azure-600); color: #fff; padding: 10px 16px; border-radius: var(--radius-md);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 8px; }

.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ic--sm { width: 16px; height: 16px; }
.ic--lg { width: 24px; height: 24px; }

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

/* ---- Type ---- */
h1, h2, h3, h4 { font-family: var(--font-display); color: inherit; }
h1, h2 { text-wrap: balance; }
h1 { font-weight: 700; font-size: clamp(2.125rem, 1.2rem + 4.4vw, 3.75rem); line-height: 1.06; letter-spacing: -0.03em; }
h2 { font-weight: 600; font-size: clamp(1.75rem, 1.1rem + 2.6vw, 2.5rem); line-height: 1.15; letter-spacing: -0.02em; }
h3 { font-weight: 600; font-size: 1.25rem; line-height: 1.3; letter-spacing: -0.015em; }
h4 { font-weight: 600; font-size: 1.0625rem; line-height: 1.35; letter-spacing: -0.01em; }
.eyebrow {
  font-family: var(--font-mono); font-size: 0.8125rem; font-weight: 500; line-height: 1.4;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--s-eyebrow);
}
.lead { font-size: 1.125rem; line-height: 1.65; color: var(--s-muted); max-width: 62ch; }
.muted { color: var(--s-muted); }
.mono { font-family: var(--font-mono); }
.grad { background: var(--gradient-brand); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: 0.08em; }

/* ---- Section ---- */
.sec { background: var(--s-bg); color: var(--s-text); padding-block: 64px; position: relative; }
.sec-head { display: grid; gap: 12px; margin-bottom: 40px; max-width: 760px; }
.sec-head .lead { margin-top: 4px; }
section[id], .anchor[id] { scroll-margin-top: calc(var(--header-h) + 8px); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: var(--radius-md);
  font-family: var(--font-display); font-weight: 600; font-size: 1rem; line-height: 1.2; text-align: center;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.btn:active { transform: scale(0.985); }
.btn--primary { background: var(--azure-600); color: #fff; box-shadow: 0 0 0 1px rgba(44,121,247,0.45), 0 8px 28px rgba(44,121,247,0.22); }
.btn--primary:hover { background: var(--azure-700); }
.btn--ghost { background: transparent; color: var(--s-btn2-text); border-color: var(--s-btn2-border); }
.btn--ghost:hover { background: var(--s-btn2-hover); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 0.9375rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: rgba(8,11,16,0.94); border-bottom: 1px solid rgba(255,255,255,0.09);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: var(--neutral-50);
}
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; border-radius: var(--radius-sm); }
.brand img { height: 36px; width: auto; }
.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-list a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px;
  font-weight: 500; font-size: 0.9375rem; text-decoration: none; color: var(--neutral-300);
  border-radius: var(--radius-sm); transition: color var(--dur-fast), background var(--dur-fast);
}
.nav-list a:hover { color: #fff; background: rgba(255,255,255,0.06); }
.nav-cta { display: none; }
.nav-toggle {
  display: none; align-items: center; justify-content: center; width: 44px; height: 44px;
  background: transparent; border: 1px solid rgba(255,255,255,0.2); border-radius: var(--radius-md); cursor: pointer; color: #fff;
}
.nav-toggle .ic-close { display: none; }
.nav-toggle[aria-expanded="true"] .ic-open { display: none; }
.nav-toggle[aria-expanded="true"] .ic-close { display: block; }
.nav-wrap { display: flex; align-items: center; gap: 12px; }

@media (max-width: 859px) {
  .nav-wrap { gap: 8px; }
  .nav-wrap > .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav { position: absolute; left: 0; right: 0; top: var(--header-h); background: var(--neutral-900); border-bottom: 1px solid rgba(255,255,255,0.12); padding: 8px var(--gutter) 16px; display: none; }
  .nav.open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list a { min-height: 48px; padding: 0 4px; border-bottom: 1px solid rgba(255,255,255,0.07); border-radius: 0; font-size: 1rem; color: var(--neutral-100); }
  .nav-cta { display: flex; margin-top: 16px; }
  /* Không có JS: hiện nav xếp dọc, không cần nút */
  html:not(.js) .nav-toggle { display: none; }
  html:not(.js) .nav { position: static; display: block; }
  html:not(.js) .site-header { position: static; height: auto; padding-block: 8px; }
  html:not(.js) .site-header .container { flex-wrap: wrap; }
}
@media (min-width: 860px) {
  .nav-cta { display: none; }
  .nav-wrap > .btn { display: inline-flex; }
}

/* ---- Hero ---- */
.hero { padding-block: 56px 64px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,0.10) 1px, transparent 1.2px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 20%, transparent 75%);
}
.hero::after {
  content: ""; position: absolute; width: 640px; height: 640px; right: -220px; top: -260px; pointer-events: none;
  background: radial-gradient(circle, rgba(44,121,247,0.18), transparent 65%);
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero h1 { margin-top: 16px; }
.hero .lead { margin-top: 20px; font-size: 1.1875rem; }
.hero .btn-row { margin-top: 32px; }
.pillars { display: grid; gap: 12px; margin-top: 56px; position: relative; z-index: 1; }
.pillar { display: flex; gap: 14px; align-items: flex-start; padding: 18px; background: var(--neutral-900); border: 1px solid rgba(255,255,255,0.09); border-radius: var(--radius-lg); }
.pillar .icon-tile { margin: 0; }
.pillar h3 { font-size: 1.0625rem; }
.pillar p { margin-top: 4px; font-size: 0.9375rem; color: var(--neutral-300); line-height: 1.5; }

.icon-tile {
  width: 44px; height: 44px; border-radius: var(--radius-md); display: inline-flex; align-items: center; justify-content: center;
  background: var(--s-icon-bg); color: var(--s-icon); flex: none;
}
.sec--dark .icon-tile--g, .icon-tile--g { background: rgba(52,230,140,0.14); color: var(--green-400); }
.sec--light .icon-tile--g { background: rgba(24,201,116,0.14); color: var(--green-800); }
.hero .icon-tile { background: rgba(44,121,247,0.16); color: var(--azure-400); }

/* ---- Lĩnh vực ---- */
.card-grid { display: grid; gap: 16px; }
.card {
  position: relative; background: var(--s-card); border: 1px solid var(--s-border); border-radius: var(--radius-lg);
  padding: 24px; display: flex; flex-direction: column; gap: 12px;
  transition: border-color var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.card:hover { transform: translateY(-2px); border-color: var(--s-link); }
.sec--light .card:hover { box-shadow: 0 10px 24px rgba(14,19,26,0.08); }
.card h3 { margin-top: 4px; }
.card p { color: var(--s-muted); font-size: 0.9375rem; line-height: 1.6; }
.card .codes { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: var(--radius-sm);
  background: var(--s-chip-bg); border: 1px solid var(--s-border-soft);
  font-family: var(--font-mono); font-size: 0.75rem; line-height: 1.4; color: var(--s-muted); white-space: nowrap;
}
.card.featured::before, .featured-bar::before {
  content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 2px; background: var(--gradient-brand);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.footnote { margin-top: 24px; font-size: 0.875rem; color: var(--s-muted); }
.footnote .mono { color: var(--s-text); }

/* ---- Chú thích ảnh ---- */
.shot-cap { margin-top: 10px; font-size: 0.8125rem; color: var(--s-muted); }

/* ---- Sản phẩm DMS ---- */
.product-intro { display: grid; gap: 28px; margin-bottom: 40px; }
.product-name { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.tagline { font-family: var(--font-mono); font-size: 0.9375rem; color: var(--green-400); letter-spacing: 0.01em; margin-top: 12px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: var(--radius-sm);
  font-family: var(--font-mono); font-size: 0.6875rem; line-height: 1.4; text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap;
  background: rgba(52,230,140,0.14); color: var(--green-400); border: 1px solid rgba(52,230,140,0.3);
}
.sec--light .badge { background: rgba(24,201,116,0.12); color: var(--green-800); border-color: rgba(15,110,65,0.35); }
.badge--blue { background: rgba(79,142,248,0.14); color: var(--azure-400); border-color: rgba(79,142,248,0.35); }
.sec--light .badge--blue { background: rgba(44,121,247,0.10); color: var(--azure-600); border-color: rgba(27,98,216,0.35); }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.pillars-mini { display: grid; gap: 8px; }
.pillars-mini li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--s-card); border: 1px solid var(--s-border); border-radius: var(--radius-md); font-weight: 500; }
.pillars-mini .ic { color: var(--azure-400); }

.modules { display: grid; gap: 16px; margin-top: 56px; }
.module { position: relative; }
.module .top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.module ul { margin-top: 4px; display: grid; gap: 8px; }
.module li { display: flex; gap: 8px; align-items: flex-start; font-size: 0.9375rem; color: var(--s-muted); line-height: 1.5; }
.module li .ic { margin-top: 3px; color: var(--green-400); width: 16px; height: 16px; stroke-width: 2.5; }
.sec--light .module li .ic { color: var(--green-800); }
.modules-title { margin-top: 56px; margin-bottom: 20px; }

.tenant-strip {
  margin-top: 16px; display: grid; gap: 12px; padding: 20px; border-radius: var(--radius-lg);
  background: var(--s-card); border: 1px solid var(--s-border); position: relative;
}
.tenant-strip h3 { font-size: 1.125rem; }
.tenant-strip p { color: var(--s-muted); font-size: 0.9375rem; }
.tenant-strip .t-items { display: grid; gap: 12px; }
.tenant-strip .t-items div { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9375rem; color: var(--s-muted); }
.tenant-strip .t-items .ic { margin-top: 2px; color: var(--azure-400); }
.tenant-strip .t-items strong { color: var(--s-text); display: block; font-weight: 600; }

@media (min-width: 640px) { .module--wide { grid-column: 1 / -1; } .module--wide ul { grid-template-columns: repeat(2, 1fr); column-gap: 32px; } }
@media (min-width: 960px) { .module--wide ul { grid-template-columns: repeat(3, 1fr); } }

/* ---- Chi tiết DMS (sáng) ---- */
.feature-row { display: grid; gap: 28px; align-items: center; }
.feature-row + .feature-row, .feature-row + .flow-block, .flow-block + .feature-row { margin-top: 72px; }
.feature-copy { display: grid; gap: 14px; }
.feature-copy ul { display: grid; gap: 14px; margin-top: 6px; }
.feature-copy li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; }
.feature-copy li .ic { margin-top: 3px; color: var(--green-800); stroke-width: 2.5; }
.feature-copy li strong { font-weight: 600; color: var(--s-text); }
.feature-copy li span { color: var(--s-muted); }

.flow-block { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.flow-head { display: grid; gap: 10px; max-width: 760px; }
.steps { display: grid; gap: 12px; counter-reset: s; }
.step {
  background: var(--s-card); border: 1px solid var(--s-border); border-radius: var(--radius-lg); padding: 18px; position: relative;
  display: grid; gap: 6px; align-content: start;
}
.step .n { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; color: var(--s-eyebrow); text-transform: uppercase; }
.step h4 { font-size: 1.0625rem; }
.step p { font-size: 0.9375rem; color: var(--s-muted); line-height: 1.55; }
.step--g .n { color: var(--green-800); }
.flow-note { font-size: 0.9375rem; color: var(--s-muted); max-width: 760px; }
.flow-note strong { color: var(--s-text); }
.sign-panel { background: var(--neutral-900); color: var(--neutral-50); border-radius: var(--radius-xl); padding: 24px 16px; position: relative; overflow: hidden; }
.sign-panel::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--gradient-brand); }
.sign-panel .step { background: var(--neutral-850); border-color: rgba(255,255,255,0.1); }
.sign-panel .step .n { color: var(--green-400); }
.sign-panel .step p { color: var(--neutral-300); }
.sign-panel .flow-head h3 { color: #fff; }
.sign-panel .lead, .sign-panel .flow-note { color: var(--neutral-300); }
.sign-panel .flow-note strong { color: #fff; }
.sign-panel .badge { background: rgba(52,230,140,0.14); color: var(--green-400); border-color: rgba(52,230,140,0.3); }
.sign-panel :focus-visible { outline-color: var(--azure-400); }
.sign-panel .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sign-panel .chip { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.1); color: var(--neutral-300); }

/* ---- So sánh ---- */
.compare { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--s-border); border-radius: var(--radius-lg); overflow: hidden; background: var(--s-card); }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 18px 20px; }
.compare thead th { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; color: var(--s-muted); background: var(--neutral-850); border-bottom: 1px solid var(--s-border); }
.compare thead th:last-child { color: var(--green-400); }
.compare tbody td { border-top: 1px solid var(--s-border-soft); font-size: 1rem; line-height: 1.55; }
.compare tbody tr:first-child td { border-top: 0; }
.compare td:first-child { color: var(--s-muted); }
.compare td:last-child { color: var(--s-text); background: rgba(52,230,140,0.04); }
.compare td .cell { display: grid; grid-template-columns: 20px 1fr; gap: 10px; }
.compare td:first-child .ic { color: var(--neutral-400); margin-top: 3px; }
.compare td:last-child .ic { color: var(--green-400); margin-top: 3px; stroke-width: 2.5; }
@media (max-width: 719px) {
  .compare, .compare tbody, .compare tr, .compare td { display: block; }
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .compare tbody tr { border-top: 1px solid var(--s-border); }
  .compare tbody tr:first-child { border-top: 0; }
  .compare tbody td { border: 0 !important; padding: 14px 16px; }
  .compare tbody td::before {
    content: attr(data-label); display: block; margin-bottom: 6px; font-family: var(--font-mono); font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--neutral-400);
  }
  .compare tbody td:last-child::before { color: var(--green-400); }
}

/* ---- Quy trình ---- */
.timeline { display: grid; gap: 0; counter-reset: t; position: relative; }
.t-step { position: relative; padding: 0 0 28px 56px; }
.t-step::before { content: ""; position: absolute; left: 19px; top: 40px; bottom: 0; width: 1px; background: var(--s-border); }
.t-step:last-child { padding-bottom: 0; }
.t-step:last-child::before { display: none; }
.t-num {
  position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: var(--radius-md); display: inline-flex; align-items: center; justify-content: center;
  background: var(--s-card); border: 1px solid var(--s-border); font-family: var(--font-mono); font-weight: 600; font-size: 0.875rem; color: var(--s-eyebrow);
}
.t-step h3 { font-size: 1.125rem; padding-top: 8px; }
.t-step p { margin-top: 6px; color: var(--s-muted); font-size: 0.9375rem; }

/* ---- Công nghệ ---- */
.tech-grid { display: grid; gap: 16px; }
.tech-card { background: var(--s-card); border: 1px solid var(--s-border); border-radius: var(--radius-lg); padding: 24px; display: grid; gap: 14px; align-content: start; }
.tech-card .label { font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--s-eyebrow); }
.tech-card ul { display: flex; flex-wrap: wrap; gap: 8px; }
.tech-card li {
  font-family: var(--font-mono); font-size: 0.9375rem; font-weight: 500; padding: 7px 12px; border-radius: var(--radius-sm);
  background: var(--s-chip-bg); border: 1px solid var(--s-border); color: var(--s-text);
}
.tech-card p { font-size: 0.875rem; color: var(--s-muted); line-height: 1.55; }

/* ---- Vì sao chọn ---- */
.why-grid { display: grid; gap: 16px; }
.why { display: grid; gap: 10px; align-content: start; }
.why p { color: var(--s-muted); font-size: 0.9375rem; }

/* ---- Liên hệ ---- */
.contact-grid { display: grid; gap: 24px; }
.contact-card { background: var(--s-card); border: 1px solid var(--s-border); border-radius: var(--radius-lg); padding: 24px; position: relative; }
.contact-card dl { display: grid; gap: 0; margin-top: 8px; }
.contact-card .row { display: grid; gap: 2px; padding: 14px 0; border-top: 1px solid var(--s-border-soft); }
.contact-card .row:first-child { border-top: 0; }
.contact-card dt { font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--neutral-400); }
.contact-card dd { color: var(--s-text); }
.contact-card dd .sub { display: block; color: var(--s-muted); font-size: 0.9375rem; }
.link { color: var(--s-link); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; display: inline-flex; align-items: center; gap: 6px; }
.link:hover { text-decoration-thickness: 2px; }
.cta-panel { display: grid; gap: 18px; align-content: start; padding: 28px 24px; border-radius: var(--radius-xl); border: 1px solid var(--s-border); background: var(--neutral-900); position: relative; overflow: hidden; }
.cta-panel::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--gradient-brand); }
.cta-panel p { color: var(--s-muted); }

/* ---- Footer ---- */
.site-footer { background: var(--bg-inset); color: var(--neutral-300); border-top: 1px solid rgba(255,255,255,0.08); padding-block: 48px 32px; font-size: 0.9375rem; }
.foot-grid { display: grid; gap: 32px; }
.site-footer img { height: 40px; width: auto; }
.site-footer h2 { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; color: var(--neutral-400); margin-bottom: 12px; }
.site-footer .legal strong { display: block; color: var(--neutral-50); font-family: var(--font-display); font-weight: 600; font-size: 1rem; margin-top: 16px; }
.site-footer ul { display: grid; gap: 4px; }
.site-footer ul a { display: inline-block; padding: 4px 0; text-decoration: none; color: var(--neutral-300); }
.site-footer ul a:hover, .site-footer .legal a:hover { color: #fff; text-decoration: underline; }
.site-footer a { color: var(--azure-400); }
.site-footer ul a { color: var(--neutral-300); }
.copyright { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.08); font-size: 0.8125rem; color: var(--neutral-400); }

/* ---- Breakpoints ---- */
@media (min-width: 640px) {
  :root { --gutter: 24px; }
  .card-grid, .modules, .tech-grid, .why-grid { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: repeat(3, 1fr); }
  .pillar { flex-direction: column; }
  .sec { padding-block: 80px; }
  .steps--4 { grid-template-columns: repeat(2, 1fr); }
  .steps--5 { grid-template-columns: repeat(2, 1fr); }
  .pillars-mini { grid-template-columns: repeat(2, 1fr); }
  .tenant-strip .t-items { grid-template-columns: repeat(3, 1fr); }
  .sign-panel { padding: 32px 28px; }
}
@media (min-width: 960px) {
  :root { --gutter: 32px; }
  .hero { padding-block: 88px 80px; }
  .hero-grid { grid-template-columns: 0.92fr 1.08fr; gap: 48px; }
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .modules { grid-template-columns: repeat(3, 1fr); }
  .product-intro { grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: end; }
  .feature-row { grid-template-columns: 0.9fr 1.1fr; gap: 56px; }
  .feature-row--rev { grid-template-columns: 1.1fr 0.9fr; }
  .feature-row--rev .feature-copy { order: 2; }
  .steps--4 { grid-template-columns: repeat(4, 1fr); }
  .steps--5 { grid-template-columns: repeat(5, 1fr); }
  .sign-panel { padding: 40px; }
  .timeline { grid-template-columns: repeat(5, 1fr); gap: 20px; }
  .t-step { padding: 56px 0 0; }
  .t-step::before { left: 40px; right: -20px; top: 20px; bottom: auto; width: auto; height: 1px; }
  .t-step:last-child::before { display: none; }
  .t-step h3 { padding-top: 0; }
  .tech-grid { grid-template-columns: repeat(4, 1fr); }
  .tech-grid .tech-card { padding: 20px; }
  .why-grid { grid-template-columns: repeat(4, 1fr); }
  .contact-grid { grid-template-columns: 1.1fr 0.9fr; gap: 32px; }
  .contact-card .row { grid-template-columns: 180px 1fr; gap: 16px; align-items: baseline; }
  .foot-grid { grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .card:hover { transform: none; }
  .laptop--tilt, .showcase .laptop--tilt { transform: none !important; }
  .fan figure { transform: none !important; }
  .btn:active { transform: none; }
}

/* ================= Mockup thiết bị (HTML/CSS thuần) ================= */
.laptop { position: relative; width: 100%; }
.laptop-lid {
  position: relative; background: linear-gradient(180deg, #151b25, #0b0f16); border: 1px solid rgba(255,255,255,0.16);
  border-radius: 16px 16px 6px 6px; padding: 10px 10px 12px;
  box-shadow: 0 50px 80px -30px rgba(0,0,0,0.75), 0 18px 36px -12px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.1);
}
.laptop-lid::before { content: ""; position: absolute; top: 4px; left: 50%; width: 5px; height: 5px; border-radius: 50%; background: #2b3444; box-shadow: 0 0 0 1px #0b0f16; transform: translateX(-50%); }
.laptop-screen { position: relative; border-radius: 6px; overflow: hidden; background: #fff; aspect-ratio: 16 / 10; }
.laptop-screen > img { width: 100%; height: 100%; object-fit: cover; }
.laptop-base {
  position: relative; height: 14px; width: 108%; margin: 0 -4%;
  background: linear-gradient(180deg, #d3d9e2 0%, #98a1af 55%, #5d6573 100%); border-radius: 0 0 20px 20px;
  box-shadow: 0 34px 46px -14px rgba(0,0,0,0.65);
}
.laptop-base::after { content: ""; position: absolute; left: 50%; top: 0; width: 16%; height: 5px; transform: translateX(-50%); background: linear-gradient(180deg, #747d8c, #a9b1be); border-radius: 0 0 8px 8px; }
@media (min-width: 960px) {
  .laptop--tilt { transform: perspective(2200px) rotateY(-4deg) rotateX(2deg); transform-origin: 50% 55%; }
}

.phone {
  --w: var(--pw, 150px); position: relative; width: var(--w); padding: calc(var(--w) * 0.035); border-radius: calc(var(--w) * 0.15); background: #05070a;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.15),
    inset 0 0 0 calc(var(--w) * 0.007) #222a37,
    0 calc(var(--w) * 0.2) calc(var(--w) * 0.3) calc(var(--w) * -0.06) rgba(0,0,0,0.6),
    0 calc(var(--w) * 0.05) calc(var(--w) * 0.12) rgba(0,0,0,0.35);
}
.phone::before { content: ""; position: absolute; left: calc(var(--w) * -0.016); top: calc(var(--w) * 0.4); width: calc(var(--w) * 0.016); height: calc(var(--w) * 0.11); border-radius: 2px 0 0 2px; background: #2b3240; box-shadow: 0 calc(var(--w) * 0.14) 0 #2b3240; }
.phone::after { content: ""; position: absolute; right: calc(var(--w) * -0.016); top: calc(var(--w) * 0.5); width: calc(var(--w) * 0.016); height: calc(var(--w) * 0.17); border-radius: 0 2px 2px 0; background: #2b3240; }
.phone-screen { position: relative; aspect-ratio: 390 / 844; border-radius: calc(var(--w) * 0.118); overflow: hidden; background: #fff; }
.phone-screen::before { content: ""; position: absolute; z-index: 3; top: calc(var(--w) * 0.026); left: 50%; width: calc(var(--w) * 0.29); height: calc(var(--w) * 0.085); transform: translateX(-50%); background: #000; border-radius: 99px; }
.phone-screen img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.design-chip {
  display: inline-flex; align-items: center; white-space: nowrap; font-family: var(--font-mono); font-size: 0.6875rem; line-height: 1.3; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 500;
  padding: 3px 10px; border-radius: 99px; background: rgba(52,230,140,0.12); color: var(--green-400); border: 1px solid rgba(52,230,140,0.35);
}

/* ---- Hero visual ---- */
.hero-visual { position: relative; padding: 8px 0 8px; }
.hero-visual::before {
  content: ""; position: absolute; inset: -12% -10% -4%; z-index: 0; pointer-events: none; filter: blur(8px);
  background: radial-gradient(closest-side at 32% 42%, rgba(44,121,247,0.5), transparent 72%), radial-gradient(closest-side at 78% 72%, rgba(52,230,140,0.32), transparent 72%);
}
.hero-visual { container-type: inline-size; }
.stage { position: relative; z-index: 1; padding-bottom: 44px; }
.hero-visual .laptop { z-index: 1; }
.phone-wrap { --pw: 150px; position: absolute; z-index: 2; right: -2%; bottom: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; }
@supports (width: 1cqw) { .phone-wrap { --pw: 28cqw; } }
@media (min-width: 640px) { @supports (width: 1cqw) { .phone-wrap { --pw: 26cqw; } } }
.visual-cap { position: relative; z-index: 1; margin-top: 10px; font-size: 0.8125rem; color: var(--neutral-400); max-width: 62%; }
.hero-ctrl { position: relative; z-index: 2; display: flex; align-items: center; gap: 6px; margin-top: 22px; }
.hero-ctrl .dots { margin-top: 0; justify-content: flex-start; }
.hero-pause { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.18); color: var(--neutral-300); cursor: pointer; }
.hero-pause[hidden] { display: none; }
.hero-pause:hover { color: #fff; background: rgba(255,255,255,0.12); }
.hero-pause .ic { fill: currentColor; stroke: none; }
html:not(.js) .hero-ctrl { display: none; }

/* ---- Slider màn hình DMS ---- */
.showcase { margin-top: 8px; position: relative; }
.showcase::before {
  content: ""; position: absolute; inset: 6% 4% 0; z-index: 0; pointer-events: none; filter: blur(30px);
  background: radial-gradient(closest-side at 28% 40%, rgba(44,121,247,0.28), transparent 72%), radial-gradient(closest-side at 76% 66%, rgba(52,230,140,0.16), transparent 72%);
}
.showcase > * { position: relative; z-index: 1; }
.tabs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 8px; margin-bottom: 20px; scrollbar-width: none; position: relative; }
.tabs::-webkit-scrollbar { display: none; }
.tabs > :first-child { margin-left: auto; } .tabs > :last-child { margin-right: auto; }
.tab {
  flex: none; min-height: 44px; padding: 0 16px; border-radius: 99px; cursor: pointer; white-space: nowrap;
  font-family: var(--font-display); font-weight: 500; font-size: 0.9375rem; color: var(--neutral-300);
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12);
  transition: background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
}
.tab:hover { color: #fff; background: rgba(255,255,255,0.1); }
.tab[aria-selected="true"] { color: #fff; background: var(--azure-600); border-color: var(--azure-500); box-shadow: 0 0 0 1px rgba(44,121,247,0.45), 0 8px 24px rgba(44,121,247,0.3); }
.showcase .laptop-screen { touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.slides { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; transition: opacity 320ms var(--ease-out), visibility 0s linear 320ms; }
.slide.is-active, html:not(.js) .slide:first-child { opacity: 1; visibility: visible; transition-delay: 0s; }
.slide img { width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; pointer-events: none; }
.s-btn {
  position: absolute; top: 50%; z-index: 3; width: 44px; height: 44px; margin-top: -22px; border-radius: 50%; display: none; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.94); color: var(--neutral-900); border: 1px solid rgba(14,19,26,0.12); cursor: pointer;
  box-shadow: 0 8px 22px rgba(0,0,0,0.3); transition: transform var(--dur-fast) var(--ease-out), background var(--dur-fast);
}
.js .s-btn { display: inline-flex; }
.s-btn:hover { background: #fff; transform: scale(1.06); }
.s-btn--prev { left: 12px; } .s-btn--next { right: 12px; }
.dots { display: none; justify-content: center; gap: 4px; margin-top: 26px; }
.js .dots { display: flex; }
.dots span { display: block; padding: 8px 4px; cursor: pointer; }
.dots span::before { content: ""; display: block; width: 8px; height: 8px; border-radius: 99px; background: rgba(255,255,255,0.28); transition: width var(--dur-base) var(--ease-out), background var(--dur-base); }
.dots span.is-active::before { width: 28px; background: var(--gradient-brand); }
html:not(.js) .tabs { display: none; }
.showcase-cap { margin-top: 12px; text-align: center; max-width: 62ch; margin-inline: auto; }
.showcase-cap strong { color: var(--s-text); font-weight: 600; }

/* ---- Cửa sổ trình duyệt bóng bẩy ---- */
.win-wrap { position: relative; padding-bottom: 20px; }
.win-wrap::before { content: ""; position: absolute; inset: 8% -4% 0; z-index: 0; filter: blur(34px); pointer-events: none; background: radial-gradient(closest-side at 30% 50%, rgba(44,121,247,0.26), transparent 72%), radial-gradient(closest-side at 78% 60%, rgba(24,201,116,0.2), transparent 72%); }
.win { position: relative; z-index: 1; border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid rgba(14,19,26,0.12); box-shadow: 0 44px 70px -28px rgba(14,19,26,0.42), 0 14px 26px -14px rgba(14,19,26,0.25); }
.win-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: linear-gradient(180deg, #f6f8fb, #e9edf3); border-bottom: 1px solid rgba(14,19,26,0.1); }
.win-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--neutral-300); display: block; }
.win-bar i:nth-child(3) { background: var(--green-500); }
.win-bar span { min-width: 0; margin-left: 10px; flex: 1; max-width: 320px; padding: 3px 12px; border-radius: 99px; background: rgba(255,255,255,0.85); border: 1px solid rgba(14,19,26,0.08); font-family: var(--font-mono); font-size: 0.6875rem; color: var(--neutral-600); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win img { width: 100%; height: auto; background: #fff; }
.float-chip {
  position: absolute; z-index: 2; left: 14px; bottom: 0; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px 9px 10px; border-radius: 99px;
  background: #fff; color: var(--neutral-900); border: 1px solid rgba(14,19,26,0.1); box-shadow: 0 14px 30px -8px rgba(14,19,26,0.32);
  font-family: var(--font-display); font-weight: 600; font-size: 0.875rem; line-height: 1.2;
}
.float-chip .ic { width: 28px; height: 28px; padding: 5px; border-radius: 50%; background: rgba(24,201,116,0.16); color: var(--green-800); stroke-width: 2.4; }
.float-chip--r { left: auto; right: 14px; }
.float-chip--r .ic { background: rgba(44,121,247,0.12); color: var(--azure-600); }

/* ---- Màn hình rời (monitor) ---- */
.monitor { position: relative; display: grid; justify-items: center; padding-bottom: 20px; }
.monitor::before { content: ""; position: absolute; inset: 6% -4% 4%; z-index: 0; filter: blur(34px); pointer-events: none; background: radial-gradient(closest-side at 70% 45%, rgba(44,121,247,0.24), transparent 72%), radial-gradient(closest-side at 24% 70%, rgba(24,201,116,0.18), transparent 72%); }
.monitor-screen { position: relative; z-index: 1; width: 100%; padding: 9px 9px 20px; border-radius: 14px; background: linear-gradient(180deg, #161c27, #0a0d13); border: 1px solid rgba(255,255,255,0.14); box-shadow: 0 40px 70px -26px rgba(14,19,26,0.55), 0 14px 26px -12px rgba(14,19,26,0.35), inset 0 1px 0 rgba(255,255,255,0.1); }
.monitor-screen::after { content: ""; position: absolute; left: 50%; bottom: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--gradient-brand); transform: translateX(-50%); opacity: 0.85; }
.monitor .laptop-screen { border-radius: 5px; }
.monitor-neck { position: relative; z-index: 1; width: 13%; height: 34px; background: linear-gradient(90deg, #8a93a1, #dfe4eb 50%, #8a93a1); }
.monitor-foot { position: relative; z-index: 1; width: 32%; height: 10px; border-radius: 8px 8px 14px 14px; background: linear-gradient(180deg, #d3d9e2, #7b8493); box-shadow: 0 16px 24px -8px rgba(14,19,26,0.4); }
.feature-row .float-chip { bottom: 6px; }

/* ---- Ảnh trong khối phát hành công văn ---- */
.flow-shot { margin-top: 8px; max-width: 880px; margin-inline: auto; width: 100%; }

/* ---- Ứng dụng di động (bản thiết kế) ---- */
.mobile-next { margin-top: 72px; position: relative; overflow: hidden; border-radius: var(--radius-xl); background: var(--neutral-900); color: var(--neutral-50); padding: 32px 16px 28px; display: grid; gap: 28px; align-items: center; }
.mobile-next::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--gradient-brand); }
.mobile-next::after { content: ""; position: absolute; inset: auto -10% -30% 25%; height: 70%; pointer-events: none; background: radial-gradient(closest-side, rgba(44,121,247,0.3), transparent 70%), radial-gradient(closest-side at 80% 60%, rgba(52,230,140,0.16), transparent 70%); }
.mobile-copy { position: relative; z-index: 1; display: grid; gap: 14px; justify-items: start; }
.mobile-copy p { color: var(--neutral-300); font-size: 1rem; max-width: 52ch; }
.mobile-copy .more { color: var(--neutral-50); font-weight: 500; }
.mobile-copy .badge--blue { background: rgba(79,142,248,0.14); color: var(--azure-400); border-color: rgba(79,142,248,0.35); }
.fan { position: relative; z-index: 1; min-width: 0; container-type: inline-size; display: flex; justify-content: center; align-items: flex-start; gap: 2%; padding: 4px 0 36px; }
.fan figure { --pw: 150px; flex: none; margin: 0; text-align: center; transform-origin: 50% 0; }
@supports (width: 1cqw) { .fan figure { --pw: 27cqw; } .fan figure:nth-child(2) { --pw: 32cqw; } }
.fan figure:nth-child(1), .fan figure:nth-child(3) { transform: translateY(26px) scale(0.92); }
.fan .phone { margin-inline: auto; }
.fan figcaption { margin-top: 14px; display: grid; justify-items: center; gap: 7px; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.04em; color: var(--neutral-300); }
@media (max-width: 719px) {
  .fan { container-type: normal; justify-content: flex-start; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 20px 16px; margin-inline: -16px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.3) transparent; }
  .fan figure, .fan figure:nth-child(1), .fan figure:nth-child(3) { transform: none; --pw: 158px; scroll-snap-align: center; }
  .fan figure:nth-child(2) { --pw: 170px; }
}
.mobile-note { position: relative; z-index: 1; grid-column: 1 / -1; font-size: 0.8125rem; color: var(--neutral-400); }
@media (min-width: 720px) { .mobile-next { padding: 40px 36px 36px; } .fan { padding-inline: 12px; } }
@media (min-width: 960px) { .mobile-next { grid-template-columns: 0.9fr 1.1fr; gap: 40px; padding: 48px 48px 40px; } }


@media (max-width: 479px) { .hero .btn-row .btn { flex: 1 1 100%; } }

/* Liên hệ: link email/SĐT */
.contact-card dd a, .site-footer p a { color: inherit; text-decoration: underline; text-decoration-color: rgba(44,121,247,.6); text-underline-offset: 3px; }
.contact-card dd a:hover, .site-footer p a:hover { color: var(--azure-300, #8DB7FB); }
.cta-panel .btn-row { flex-wrap: wrap; }
