/* ==========================================================================
   Kithos.vn — main.css (dùng token trong tokens.css)
   ========================================================================== */

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg-base);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--link); text-decoration: none; }
h1, h2, h3, h4 {
  margin: 0;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  letter-spacing: var(--ls-tight);
  line-height: var(--lh-tight);
  text-wrap: balance;
}
h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-lg); font-weight: var(--fw-bold); line-height: var(--lh-snug); letter-spacing: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 3px; border-radius: var(--radius-xs); }
::selection { background: rgba(116, 234, 182, .3); color: var(--text-primary); }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.ic { width: 20px; height: 20px; flex: none; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 999; padding: 10px 16px; background: var(--mint-300); color: var(--text-on-brand); border-radius: var(--radius-pill); font-weight: 600; }
.skip-link:focus { top: 12px; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: var(--space-4);
  color: var(--accent-strong);
  font-size: var(--fs-xs); font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-eyebrow); text-transform: uppercase;
}
.eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--mint-300); box-shadow: var(--glow-sm);
}
.lead { font-size: var(--fs-md); color: var(--text-secondary); max-width: 60ch; }
.text-grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px;
  border: 1px solid transparent; border-radius: var(--radius-pill);
  font-weight: var(--fw-semibold); font-size: var(--fs-base); line-height: 1;
  white-space: nowrap;
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), background-color var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast);
}
.btn .ic { width: 18px; height: 18px; transition: transform var(--dur-base) var(--ease-out); }
.btn:hover .ic { transform: translateX(3px); }
.btn--primary { background: var(--grad-care); color: var(--text-on-brand); box-shadow: 0 6px 20px -8px rgba(38, 185, 201, .7); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: var(--glow-md), 0 10px 28px -10px rgba(38, 185, 201, .8); }
.btn--ghost { background: var(--surface-1); border-color: var(--border-strong); color: var(--text-primary); }
.btn--ghost:hover { border-color: var(--mint-300); background: var(--surface-2); transform: translateY(-2px); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: var(--fs-sm); }
.btn--block { width: 100%; }

.icon-btn {
  display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: 50%; border: 1px solid var(--border-strong); background: var(--surface-1);
  transition: border-color var(--dur-fast), background-color var(--dur-fast), box-shadow var(--dur-base);
}
.icon-btn:hover { border-color: var(--mint-300); box-shadow: var(--glow-sm); }

/* ---------- Badges, chips ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: var(--radius-pill);
  background: rgba(38, 185, 201, .14); color: var(--teal-400);
  font-size: var(--fs-xs); font-weight: var(--fw-semibold);
}
.badge--success { background: rgba(61, 220, 151, .14); color: var(--success); }
.chip { padding: 3px 10px; border-radius: var(--radius-pill); font-size: 11px; color: var(--text-muted); }
.chip.is-on { background: var(--surface-2); color: var(--text-primary); }
.chip-row { display: flex; gap: 4px; }

/* ---------- Icon tile ---------- */
.icon-tile {
  display: grid; place-items: center; width: 48px; height: 48px; flex: none;
  border-radius: var(--radius-md); background: var(--surface-2);
  color: var(--blue-400);
  box-shadow: inset 0 0 0 1px var(--border-subtle);
  transition: box-shadow var(--dur-base), color var(--dur-base), background var(--dur-base);
}
.icon-tile .ic { width: 24px; height: 24px; }
.icon-tile.care { color: var(--mint-300); }
.icon-tile--sm { width: 40px; height: 40px; border-radius: 12px; }
.icon-tile--sm .ic { width: 20px; height: 20px; }

/* ---------- Ngôi sao Khuê ---------- */
.k-star { position: relative; display: inline-grid; place-items: center; color: var(--star); pointer-events: none; }
.k-star svg { position: relative; z-index: 1; width: 100%; height: 100%; filter: drop-shadow(0 0 3px #fff) drop-shadow(0 0 10px rgba(116, 234, 182, .8)); }
.k-star::before {
  content: ""; position: absolute; inset: -120%;
  background: var(--grad-star-halo); border-radius: 50%;
  animation: star-breathe 4s var(--ease-in-out) infinite;
}
.k-star--inline { width: 16px; height: 16px; margin-right: 12px; vertical-align: -2px; }
.k-star--inline::before { inset: -80%; }
@keyframes star-breathe {
  0%, 100% { transform: scale(.92); opacity: .7; }
  50% { transform: scale(1); opacity: 1; }
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: var(--z-header);
  transition: background-color var(--dur-base), box-shadow var(--dur-base), backdrop-filter var(--dur-base);
}
.site-header.is-scrolled {
  background: rgba(4, 20, 46, .78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 var(--border-subtle);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); height: 76px; }
.brand img { width: auto; height: 56px; }
.nav { display: flex; align-items: center; gap: var(--space-6); }
.nav-list { display: flex; gap: var(--space-1); }
.nav-list a {
  display: block; padding: 8px 14px; border-radius: var(--radius-pill);
  color: var(--text-secondary); font-size: var(--fs-sm); font-weight: var(--fw-medium);
  transition: color var(--dur-fast), background-color var(--dur-fast);
}
.nav-list a:hover, .nav-list a.is-current { color: var(--text-primary); background: var(--surface-2); }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--border-strong); background: var(--surface-1); border-radius: 50%; padding: 0; position: relative; }
.menu-toggle span { position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: var(--text-primary); transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-fast); }
.menu-toggle span:nth-child(1) { top: 15px; }
.menu-toggle span:nth-child(2) { top: 21px; }
.menu-toggle span:nth-child(3) { top: 27px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Sections ---------- */
.section { position: relative; padding: var(--section-y) 0; }
.section--tight { padding: calc(var(--section-y) * .6) 0; }
/* [T] công nghệ: nền đậm + lưới chấm */
.section--tech {
  background:
    radial-gradient(rgba(166, 182, 211, .09) 1px, transparent 1.2px) 0 0 / 28px 28px,
    var(--bg-base);
}
/* [E] trải nghiệm: nền sáng hơn một bậc + quầng mint */
.section--care {
  background:
    radial-gradient(60% 50% at 100% 0%, rgba(116, 234, 182, .08), transparent 70%),
    radial-gradient(50% 50% at 0% 100%, rgba(38, 185, 201, .07), transparent 70%),
    var(--bg-raised);
  overflow: hidden;
}
.section-head { margin-bottom: var(--space-12); display: grid; gap: var(--space-4); max-width: 720px; }
.section-head .eyebrow { margin-bottom: 0; }
.section-head--center { margin-inline: auto; text-align: center; justify-items: center; }

.grid { display: grid; gap: var(--space-6); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Card ---------- */
.card {
  position: relative; display: flex; flex-direction: column; gap: var(--space-4);
  padding: 28px;
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  color: var(--text-secondary);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), background-color var(--dur-base), border-color var(--dur-base);
}
.card::after { /* viền gradient khi hover */
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
  background: var(--grad-border);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity var(--dur-base); pointer-events: none;
}
.card:hover, .card:focus-within { transform: translateY(var(--hover-lift)); background: var(--surface-2); box-shadow: var(--shadow-lg), 0 0 40px -12px rgba(38, 185, 201, .35); }
.card:hover::after, .card:focus-within::after { opacity: 1; }
.card:hover .icon-tile { box-shadow: inset 0 0 0 1px rgba(116, 234, 182, .4), var(--glow-sm); }
.card h3 { margin-top: var(--space-2); }
.card p { font-size: var(--fs-sm); line-height: 1.6; }
.card--care { border-radius: var(--radius-xl); }
.card--xl { border-radius: var(--radius-xl); }
.card--link { color: var(--text-secondary); }
.card-more { margin-top: auto; padding-top: var(--space-2); display: inline-flex; align-items: center; gap: 6px; color: var(--mint-300); font-size: var(--fs-sm); font-weight: var(--fw-semibold); }
.card-more .ic { width: 16px; height: 16px; transition: transform var(--dur-base) var(--ease-out); }
.card--link:hover .card-more .ic { transform: translateX(4px); }
.card.is-hidden { display: none; }

.bridge { margin-top: var(--space-10); text-align: center; color: var(--text-primary); font-weight: var(--fw-medium); }
.bridge--left { text-align: left; margin: var(--space-6) 0; }

/* ---------- 1. Hero ---------- */
.hero { position: relative; padding: calc(76px + clamp(40px, 7vw, 96px)) 0 clamp(56px, 8vw, 110px); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-bg::before { content: ""; position: absolute; width: 900px; height: 900px; right: -260px; top: -320px; background: radial-gradient(circle, rgba(38, 185, 201, .18), transparent 60%); }
.dot-grid { position: absolute; inset: 0; background: radial-gradient(rgba(166, 182, 211, .1) 1px, transparent 1.2px) 0 0 / 28px 28px; -webkit-mask: linear-gradient(to bottom, #000, transparent 85%); mask: linear-gradient(to bottom, #000, transparent 85%); }
.streak { position: absolute; height: 10px; border-radius: 10px; background: var(--grad-brand); opacity: .14; transform: rotate(-40deg); }
.streak.s1 { width: 340px; left: -80px; bottom: 120px; }
.streak.s2 { width: 220px; left: 40px; bottom: 60px; opacity: .09; }
.streak.s3 { width: 160px; right: 8%; top: 140px; opacity: .1; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy { display: grid; gap: var(--space-6); }
.hero-copy .eyebrow { margin-bottom: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-2); }
.hero-checks { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); font-size: var(--fs-sm); color: var(--text-muted); }
.hero-checks li { display: inline-flex; align-items: center; gap: 8px; }
.hero-checks .ic { width: 16px; height: 16px; color: var(--mint-300); }

.hero-visual { position: relative; padding: 76px 0 40px 24px; }
.k-star--hero { position: absolute; z-index: 3; top: 14px; left: 34%; width: 44px; height: 44px; }

/* Mock UI */
.mock {
  position: relative; z-index: 1;
  padding: 20px;
  background: linear-gradient(180deg, rgba(22, 63, 122, .55), rgba(10, 39, 82, .75));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg), var(--glow-lg);
  backdrop-filter: blur(8px);
  font-variant-numeric: tabular-nums;
}
.mock-top { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.mock-dots { display: flex; gap: 6px; }
.mock-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--navy-600); }
.mock-title { flex: 1; color: var(--text-primary); font-size: var(--fs-sm); font-weight: var(--fw-semibold); }
.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.mock-kpis--4 { grid-template-columns: repeat(4, 1fr); }
.mock-kpis > div { display: grid; gap: 2px; padding: 12px; border-radius: var(--radius-md); background: rgba(4, 20, 46, .45); }
.k-label { font-size: 11px; color: var(--text-muted); }
.k-val { font-family: var(--font-display); font-size: 22px; font-weight: 800; color: var(--text-primary); line-height: 1.2; }
.k-delta { font-size: 11px; color: var(--text-muted); }
.k-delta.up { color: var(--success); }
.k-delta.down { color: var(--mint-300); }
.mock-chart { display: flex; align-items: flex-end; gap: 8px; height: 120px; padding: 12px; border-radius: var(--radius-md); background: rgba(4, 20, 46, .45); margin-bottom: 14px; }
.mock-chart span { flex: 1; height: var(--h); border-radius: 6px 6px 3px 3px; background: linear-gradient(to top, rgba(34, 117, 219, .5), rgba(38, 185, 201, .8)); transform-origin: bottom; animation: bar-grow 1.2s var(--ease-out) both; }
.mock-chart span:nth-child(2n) { animation-delay: .08s; }
.mock-chart span:nth-child(3n) { animation-delay: .16s; }
.mock-chart span.hi { background: var(--grad-care); box-shadow: var(--glow-sm); }
@keyframes bar-grow { from { transform: scaleY(.1); } }
.mock-rows { display: grid; gap: 10px; font-size: 12px; color: var(--text-secondary); }
.mock-rows > div { display: grid; grid-template-columns: 10px 72px 1fr 34px; align-items: center; gap: 8px; }
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.bar { height: 6px; border-radius: 6px; background: rgba(4, 20, 46, .6); overflow: hidden; }
.bar i { display: block; height: 100%; width: var(--w); background: var(--c); border-radius: inherit; }

.float-card {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px;
  padding: 12px 16px 12px 12px;
  background: rgba(14, 48, 97, .88); backdrop-filter: blur(12px);
  border: 1px solid var(--border-strong); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  animation: floaty 6s var(--ease-in-out) infinite;
}
.float-card strong { display: block; color: var(--text-primary); font-size: var(--fs-sm); }
.float-card small { color: var(--text-muted); font-size: 12px; }
.fc-1 { left: -8px; bottom: 4px; }
.fc-2 { right: -12px; top: 0; animation-delay: -3s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- 2. Trust ---------- */
.trust { background: var(--bg-base); border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
.trust-title { text-align: center; color: var(--text-muted); font-size: var(--fs-sm); margin-bottom: var(--space-6); }
.logo-row { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3) var(--space-10); margin-bottom: var(--space-12); }
.logo-row li { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-md); color: var(--ink-500); letter-spacing: .02em; transition: color var(--dur-base), text-shadow var(--dur-base); }
.logo-row li:hover { color: var(--text-primary); text-shadow: var(--glow-sm); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }
.stat { display: grid; justify-items: center; gap: 4px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--border-subtle); }
.stat-num { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-stat); line-height: 1; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.stat-num.sm { font-size: var(--fs-xl); }
.stat-label { font-size: var(--fs-sm); color: var(--text-muted); }

/* ---------- 5. Journey ---------- */
.glow-blob { position: absolute; width: 600px; height: 600px; left: 50%; top: 40%; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(116, 234, 182, .08), transparent 65%); pointer-events: none; }
.journey { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--space-6); counter-reset: j; }
.journey::before { content: ""; position: absolute; left: 10%; right: 10%; top: 31px; height: 2px; border-radius: 2px; background: var(--grad-brand); opacity: .55; }
.journey-step { position: relative; display: grid; justify-items: center; gap: var(--space-3); text-align: center; }
.journey-dot {
  position: relative; display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: var(--space-2);
  border-radius: 50%; background: var(--navy-800); color: var(--mint-300);
  border: 1px solid var(--border-strong);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base), border-color var(--dur-base);
}
.journey-dot .ic { width: 26px; height: 26px; }
.journey-step:hover .journey-dot, .journey-step.is-highlight .journey-dot { border-color: rgba(116, 234, 182, .7); box-shadow: var(--glow-md); }
.journey-step:hover .journey-dot { transform: scale(1.06); }
.journey-step.is-highlight .journey-dot { background: var(--grad-care); color: var(--text-on-brand); }
.journey-step h3 { font-size: var(--fs-md); }
.journey-step p { font-size: var(--fs-sm); line-height: 1.6; max-width: 24ch; }
.journey-step strong { color: var(--mint-300); }

/* ---------- 6. Data split ---------- */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split-copy { display: grid; gap: var(--space-5); justify-items: start; }
.split-copy .eyebrow { margin-bottom: 0; }
.check-list { display: grid; gap: var(--space-4); }
.check-list li { display: flex; gap: 12px; }
.check-list .ic { width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: rgba(116, 234, 182, .14); color: var(--mint-300); margin-top: 2px; }
.check-list strong { color: var(--text-primary); font-weight: var(--fw-semibold); }
.mock--dash { box-shadow: var(--shadow-lg), 0 0 80px -20px rgba(38, 185, 201, .45); }
.line-chart { width: 100%; height: 150px; margin-bottom: 14px; padding: 8px 0; border-radius: var(--radius-md); background: rgba(4, 20, 46, .45); }
.grid-lines path { stroke: rgba(166, 182, 211, .12); stroke-width: 1; }
.lc-line { stroke-dasharray: 600; stroke-dashoffset: 600; transition: stroke-dashoffset 1.8s var(--ease-out); }
.is-visible .lc-line { stroke-dashoffset: 0; }
.lc-point { filter: drop-shadow(0 0 6px #74EAB6); }
.donut-row { display: flex; align-items: center; gap: 20px; padding: 14px; border-radius: var(--radius-md); background: rgba(4, 20, 46, .45); }
.donut { --p: 50; position: relative; width: 76px; height: 76px; flex: none; border-radius: 50%; background: conic-gradient(var(--blue-400) calc(var(--p) * 1%), var(--mint-300) 0 90%, var(--navy-600) 0); display: grid; place-items: center; }
.donut::before { content: ""; position: absolute; inset: 11px; border-radius: 50%; background: var(--navy-850); }
.donut span { position: relative; color: var(--text-primary); font-weight: 700; font-size: 14px; }
.legend { display: grid; gap: 6px; font-size: 12px; }
.legend li { display: flex; align-items: center; gap: 8px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); }

/* ---------- 7. Case ---------- */
.case-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--space-6); }
.case { padding: 0; overflow: hidden; gap: 0; }
.case-media {
  position: relative; min-height: 220px;
  /* Thay bằng ảnh thật: background-image: url(...) */
  background:
    linear-gradient(to top, var(--navy-850) 0%, transparent 70%),
    radial-gradient(120% 90% at 80% 10%, rgba(116, 234, 182, .35), transparent 50%),
    linear-gradient(160deg, #1a5fc0 0%, #1fa8b9 45%, #0e3061 100%);
}
.case-media::after { /* vệt sóng biển cách điệu */
  content: ""; position: absolute; left: -10%; right: -10%; bottom: 30px; height: 60px;
  background: radial-gradient(60% 100% at 50% 100%, rgba(242, 255, 250, .14), transparent 70%);
}
.k-star--case { position: absolute; top: 34px; right: 22%; width: 26px; height: 26px; }
.case-tag { position: absolute; left: 20px; top: 20px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--radius-pill); background: rgba(4, 20, 46, .55); backdrop-filter: blur(8px); color: var(--text-primary); font-size: var(--fs-xs); font-weight: 600; }
.case-tag .ic { width: 14px; height: 14px; color: var(--mint-300); }
.case-body { display: grid; gap: var(--space-4); padding: 8px 28px 28px; }
.case-type { color: var(--text-muted); font-size: var(--fs-sm); }
.case-body h3 { font-size: var(--fs-xl); margin: 0; }
.case-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); padding: var(--space-4) 0; border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
.case-stats > div { display: grid; gap: 4px; font-size: var(--fs-sm); }
.link-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: var(--fs-sm); }
.link-more .ic { width: 16px; height: 16px; transition: transform var(--dur-base); }
.link-more:hover .ic { transform: translateX(4px); }

.testimonials { justify-content: space-between; padding: 32px; }
.testimonials:hover { transform: none; }
.t-track { position: relative; display: grid; }
.t-item { grid-area: 1 / 1; margin: 0; display: grid; gap: var(--space-6); align-content: start; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out), visibility var(--dur-slow); }
.t-item.is-active { opacity: 1; visibility: visible; transform: none; }
.t-item blockquote { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: var(--fs-lg); line-height: 1.45; color: var(--text-primary); }
.t-item blockquote::before { content: "“"; display: block; height: 36px; font-size: 64px; line-height: 1; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.t-item figcaption { display: flex; align-items: center; gap: 12px; }
.t-item figcaption strong { display: block; color: var(--text-primary); font-size: var(--fs-sm); }
.t-item figcaption small { color: var(--text-muted); font-size: 13px; }
.avatar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--grad-care); color: var(--text-on-brand); font-weight: 700; font-size: 14px; flex: none; }
.t-controls { display: flex; align-items: center; gap: 14px; margin-top: var(--space-8); }
.t-count { font-size: var(--fs-sm); color: var(--text-muted); font-variant-numeric: tabular-nums; }
.t-count b { color: var(--text-primary); }

/* ---------- 8. Process ---------- */
.process { counter-reset: none; }
.process-step { padding-top: 32px; }
.step-no { position: absolute; top: 22px; right: 24px; font-family: var(--font-display); font-weight: 800; font-size: 40px; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(166, 182, 211, .25); transition: -webkit-text-stroke-color var(--dur-base); }
.process-step:hover .step-no { -webkit-text-stroke-color: rgba(116, 234, 182, .7); }
.process-step .badge { align-self: flex-start; margin-top: auto; }

/* ---------- Tabs ---------- */
.tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; margin-bottom: var(--space-8); border-radius: var(--radius-pill); background: var(--surface-1); border: 1px solid var(--border-subtle); }
.tab { padding: 8px 18px; border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--text-muted); font-size: var(--fs-sm); font-weight: 600; transition: background-color var(--dur-fast), color var(--dur-fast), box-shadow var(--dur-base); }
.tab:hover { color: var(--text-primary); }
.tab.is-active { background: var(--surface-2); color: var(--text-primary); box-shadow: inset 0 0 0 1px rgba(116, 234, 182, .35); }

/* ---------- 9. Star story ---------- */
.star-story {
  background:
    radial-gradient(50% 40% at 50% 0%, rgba(38, 185, 201, .16), transparent 70%),
    linear-gradient(to bottom, var(--bg-base), var(--bg-deep));
  overflow: hidden;
}
.star-hero { display: grid; place-items: center; height: 120px; margin-bottom: var(--space-6); }
.k-star--xl { width: 72px; height: 72px; }
.k-star--xl::after { /* tia sáng dài */
  content: ""; position: absolute; width: 260px; height: 1px; left: 50%; top: 50%; transform: translate(-50%, -50%);
  background: linear-gradient(90deg, transparent, rgba(242, 255, 250, .7), transparent);
}
.value { display: grid; gap: var(--space-3); justify-items: center; text-align: center; padding: var(--space-6); }
.value p { font-size: var(--fs-sm); max-width: 34ch; }

/* ---------- 10. CTA panel ---------- */
.cta-panel {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px);
  padding: clamp(28px, 5vw, 56px);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(60% 70% at 100% 0%, rgba(116, 234, 182, .16), transparent 60%),
    radial-gradient(60% 70% at 0% 100%, rgba(34, 117, 219, .2), transparent 60%),
    var(--navy-850);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.cta-panel::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: var(--grad-border); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.cta-copy { display: grid; gap: var(--space-5); align-content: start; }
.cta-copy .eyebrow { margin-bottom: 0; }
.contact-list { display: grid; gap: var(--space-3); margin-top: var(--space-2); }
.contact-list li { display: flex; align-items: center; gap: 12px; color: var(--text-primary); }
.contact-list .ic { color: var(--mint-300); }
.contact-list a { color: var(--text-primary); }
.contact-list a:hover { color: var(--mint-300); }

.form { position: relative; display: grid; gap: var(--space-4); }
.field { display: grid; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.field label { color: var(--text-primary); font-size: var(--fs-sm); font-weight: 500; }
.field input, .field select {
  width: 100%; min-height: 48px; padding: 0 16px;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: rgba(4, 20, 46, .5); color: var(--text-primary);
  font: inherit; font-size: var(--fs-base);
  transition: border-color var(--dur-fast), box-shadow var(--dur-base);
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2374EAB6' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 40px; }
.field select option { background: var(--navy-900); }
.field input::placeholder { color: var(--ink-500); }
.field input:hover, .field select:hover { border-color: rgba(166, 182, 211, .45); }
.field input:focus, .field select:focus { outline: none; border-color: var(--focus-ring); box-shadow: var(--glow-sm); }
.field.has-error input { border-color: var(--danger); }
.form-note { font-size: 13px; color: var(--text-muted); text-align: center; }
.form-note.is-success { color: var(--success); }
.form-note.is-error { color: var(--danger); }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-deep); border-top: 1px solid var(--border-subtle); padding-top: var(--space-16); font-size: var(--fs-sm); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: var(--space-8); padding-bottom: var(--space-12); }
.footer-brand img { height: 52px; width: auto; margin-bottom: var(--space-4); }
.footer-brand p { color: var(--text-muted); max-width: 32ch; }
.site-footer h4 { font-family: var(--font-body); font-size: var(--fs-sm); font-weight: 600; letter-spacing: 0; margin-bottom: var(--space-4); }
.site-footer ul { display: grid; gap: 10px; color: var(--text-muted); }
.site-footer a { color: var(--text-muted); transition: color var(--dur-fast); }
.site-footer a:hover { color: var(--mint-300); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3); padding-top: var(--space-6); padding-bottom: var(--space-8); background: linear-gradient(var(--border-subtle), var(--border-subtle)) var(--gutter) 0 / calc(100% - 2 * var(--gutter)) 1px no-repeat; color: var(--ink-500); font-size: 13px; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Placeholder highlight (?draft) ---------- */
.show-ph [data-ph] { outline: 1.5px dashed var(--warning); outline-offset: 4px; position: relative; }
.show-ph [data-ph]::before { content: "PLACEHOLDER"; position: absolute; z-index: 5; top: -10px; left: 8px; padding: 1px 6px; border-radius: 4px; background: var(--warning); color: #3a2a00; font: 700 9px/1.4 var(--font-body); letter-spacing: .08em; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .nav-list a { padding: 8px 10px; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  .menu-toggle { display: block; z-index: calc(var(--z-menu) + 1); }
  .nav {
    position: fixed; inset: 0 0 0 auto; z-index: var(--z-menu);
    width: min(360px, 86vw);
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: var(--space-6);
    padding: 96px var(--space-6) var(--space-8);
    background: var(--navy-800);
    border-left: 1px solid var(--border-strong);
    box-shadow: var(--shadow-lg);
    transform: translateX(105%);
    visibility: hidden;
    transition: transform var(--dur-slow) var(--ease-out), visibility var(--dur-slow);
  }
  .nav.is-open { transform: none; visibility: visible; }
  .nav-list { flex-direction: column; gap: 4px; }
  .nav-list a { padding: 14px 16px; font-size: var(--fs-md); border-radius: var(--radius-md); }
  .nav-cta { min-height: 48px; font-size: var(--fs-base); }
  body.menu-open { overflow: hidden; }
  body.menu-open::after { content: ""; position: fixed; inset: 0; z-index: calc(var(--z-menu) - 1); background: rgba(2, 11, 28, .6); backdrop-filter: blur(2px); }

  .hero-grid, .split, .case-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; width: 100%; margin: 0 auto; padding-left: 0; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: var(--space-8); }
  .stat:nth-child(3) { border-left: 0; }

  .journey { grid-template-columns: 1fr; gap: var(--space-8); max-width: 520px; margin: 0 auto; }
  .journey::before { left: 31px; right: auto; top: 32px; bottom: 32px; width: 2px; height: auto; background: linear-gradient(to bottom, var(--blue-500), var(--teal-400), var(--mint-300)); }
  .journey-step { grid-template-columns: 64px 1fr; justify-items: start; text-align: left; column-gap: var(--space-5); row-gap: 4px; }
  .journey-dot { grid-row: span 2; margin: 0; }
  .journey-step h3 { align-self: end; }
  .journey-step p { max-width: none; }

  .cta-panel { grid-template-columns: 1fr; }
  .split-copy { order: -1; }
}

@media (max-width: 640px) {
  :root { scroll-padding-top: 72px; }
  .header-inner { height: 68px; }
  .brand img { height: 46px; }
  .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-visual { padding: 72px 0 36px; }
  .k-star--hero { left: 24%; width: 36px; height: 36px; }
  .fc-1 { left: 4px; bottom: 0; }
  .fc-2 { right: 4px; top: 0; }
  .mock { padding: 14px; border-radius: var(--radius-lg); }
  .mock-kpis--4 { grid-template-columns: repeat(2, 1fr); }
  .k-val { font-size: 18px; }
  .stats { gap: var(--space-6) var(--space-3); }
  .logo-row { gap: var(--space-2) var(--space-6); }
  .logo-row li { font-size: var(--fs-sm); }
  .case-stats { grid-template-columns: 1fr 1fr 1fr; gap: var(--space-2); font-size: 12px; }
  .case-body { padding: 4px 20px 24px; }
  .testimonials { padding: 24px; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .tabs { display: flex; }
  .tab { flex: 1; padding: 8px 10px; }
  .k-star--xl::after { width: 180px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .lc-line { stroke-dashoffset: 0; }
}

/* ==========================================================================
   v1.1 — Sản phẩm (ITAM, KPOS) & Lộ trình
   ========================================================================== */
.badge--warn { background: rgba(255, 200, 87, .14); color: var(--warning); }
.badge--muted { background: var(--surface-2); color: var(--text-muted); }
.icon-tile--lg { width: 60px; height: 60px; border-radius: 18px; }
.icon-tile--lg .ic { width: 30px; height: 30px; }

.products { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); }
.product { padding: 32px; gap: var(--space-5); }
.product::before { /* quầng sáng góc trên */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(70% 50% at 100% 0%, rgba(34, 117, 219, .16), transparent 70%);
}
.product--care::before { background: radial-gradient(70% 50% at 100% 0%, rgba(116, 234, 182, .13), transparent 70%); }
.product > * { position: relative; }
.product-head { display: flex; align-items: center; gap: var(--space-4); }
.product-kicker { font-size: var(--fs-xs); font-weight: 600; letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--blue-400); }
.product--care .product-kicker { color: var(--mint-300); }
.product h3 { margin: 2px 0 0; font-size: var(--fs-xl); font-weight: 800; letter-spacing: var(--ls-tight); }
.product .product-lead { font-size: var(--fs-base); color: var(--text-secondary); }
.check-list--sm { gap: var(--space-3); font-size: var(--fs-sm); }
.check-list--sm .ic { width: 20px; height: 20px; }
.product .link-more { margin-top: auto; }

.mini-mock { display: grid; gap: 2px; padding: 8px; border-radius: var(--radius-md); background: rgba(4, 20, 46, .5); border: 1px solid var(--border-subtle); font-size: 13px; font-variant-numeric: tabular-nums; }
.mm-row { display: grid; grid-template-columns: 1.6fr 1fr auto; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; color: var(--text-primary); }
.mm-row > span:last-child { justify-self: end; }
.mm-row:not(.mm-head):hover { background: var(--surface-1); }
.mm-head { color: var(--text-muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }

.roadmap { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); margin-top: var(--space-4); }
.roadmap::before { content: ""; position: absolute; left: 16%; right: 16%; top: 31px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--mint-300), var(--teal-400) 45%, rgba(38, 185, 201, .15)); }
.roadmap-step { position: relative; display: grid; justify-items: center; gap: var(--space-3); text-align: center; padding: 0 var(--space-4); }
.roadmap-dot { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: var(--space-2); border-radius: 50%; background: var(--navy-800); color: var(--mint-300); border: 1px solid var(--border-strong); transition: box-shadow var(--dur-base), transform var(--dur-base) var(--ease-out); }
.roadmap-dot .ic { width: 26px; height: 26px; }
.roadmap-step:hover .roadmap-dot { transform: scale(1.06); box-shadow: var(--glow-sm); }
.roadmap-step.is-now .roadmap-dot { background: var(--grad-care); color: var(--text-on-brand); box-shadow: var(--glow-md); border-color: transparent; }
.roadmap-step p { font-size: var(--fs-sm); max-width: 32ch; }
.roadmap-step:last-child { opacity: .8; }

@media (max-width: 960px) {
  .products { grid-template-columns: 1fr; }
  .roadmap { grid-template-columns: 1fr; gap: var(--space-8); max-width: 520px; margin-inline: auto; }
  .roadmap::before { left: 31px; right: auto; top: 32px; bottom: 32px; width: 2px; height: auto; background: linear-gradient(to bottom, var(--mint-300), var(--teal-400), rgba(38, 185, 201, .15)); }
  .roadmap-step { grid-template-columns: 64px 1fr; justify-items: start; text-align: left; column-gap: var(--space-5); row-gap: 6px; padding: 0; }
  .roadmap-dot { grid-row: span 3; margin: 0; }
  .roadmap-step p { max-width: none; }
}
@media (max-width: 640px) {
  .product { padding: 24px 20px; }
  .mm-row { grid-template-columns: 1.4fr .8fr auto; gap: 8px; padding: 8px 6px; font-size: 12px; }
}
.float-card { max-width: 270px; }

/* ==========================================================================
   Trang Tải về (download.html)
   ========================================================================== */
.dl-hero { padding-bottom: clamp(48px, 7vw, 96px); }
.dl-grid { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.dl-title { font-size: var(--fs-3xl); line-height: 1.1; }
.dl-sub { display: block; margin-top: 6px; font-size: var(--fs-lg); font-weight: 600; color: var(--mint-300); }
.dl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; color: var(--text-muted); font-size: var(--fs-sm); }
.dl-meta:empty { display: none; }
.ic--lead { margin-right: 2px; }
.btn:hover .ic--lead { transform: none; }
.dl-note { font-size: var(--fs-sm); color: var(--text-muted); max-width: 60ch; }
.dl-note a { color: var(--link); }
.dl-card { display: grid; gap: var(--space-5); }
.dl-card .check-list li span { color: var(--text-secondary); }
.dl-split { align-items: start; }
.dl-steps { counter-reset: none; }
.dl-help { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-6); }
.dl-help h2 { margin-bottom: var(--space-3); }
.product-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
@media (max-width: 900px) {
  .dl-grid { grid-template-columns: 1fr; }
}
