/* ============================================================
   KPIS.EDU.VN — Phần mềm Quản trị KPI Trường học
   Landing page stylesheet
   ============================================================ */

:root {
  --blue:        #2563eb;
  --blue-bright: #3b82f6;
  --blue-dark:   #1e3a8a;
  --navy:        #15275e;
  --orange:      #f59e0b;
  --orange-deep: #f97316;
  --bg:          #f4f6fb;
  --bg-alt:      #ffffff;
  --text:        #1f2937;
  --muted:       #5b6b85;
  --line:        #e4e9f2;
  --card-shadow: 0 10px 30px rgba(21, 39, 94, .08);
  --card-shadow-hover: 0 18px 44px rgba(21, 39, 94, .16);
  --radius:      18px;
  --radius-sm:   12px;
  --maxw:        1180px;
  --ease:        cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  font-family: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

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

/* ---------- Section scaffolding ---------- */
.section { padding: 88px 0; position: relative; }
.section--alt { background: var(--bg-alt); }
.section--navy { background: linear-gradient(160deg, var(--navy) 0%, var(--blue-dark) 100%); color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue); background: #e8f0ff;
  padding: 7px 16px; border-radius: 999px; margin-bottom: 18px;
}
.section--navy .eyebrow { color: #cfe0ff; background: rgba(255,255,255,.1); }

.section-title {
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 800; line-height: 1.15; color: var(--navy);
  letter-spacing: -.01em;
}
.section--navy .section-title { color: #fff; }
.section-title .hl { color: var(--blue); }
.section-title .hl-o { color: var(--orange-deep); }
.section-sub {
  margin-top: 16px; font-size: 17px; color: var(--muted); max-width: 680px;
}
.section--navy .section-sub { color: #c7d2ec; }
.text-center { text-align: center; }
.text-center .section-sub { margin-inline: auto; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding: 16px 0; transition: padding .3s var(--ease);
}
.nav-pill {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  background: var(--blue); color: #fff;
  border-radius: 999px; padding: 10px 12px 10px 22px;
  box-shadow: 0 12px 30px rgba(37,99,235,.28);
  transition: all .3s var(--ease);
}
.site-header.scrolled .nav-pill {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  color: var(--navy);
  box-shadow: 0 10px 30px rgba(21,39,94,.12);
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 15px; letter-spacing: .02em; white-space: nowrap; }
.brand-logo {
  width: 34px; height: 34px; border-radius: 9px; flex: none;
  background: #fff; color: var(--blue);
  display: grid; place-items: center; font-weight: 900; font-size: 15px;
  box-shadow: inset 0 0 0 2px rgba(37,99,235,.15);
}
.site-header.scrolled .brand-logo { background: var(--blue); color: #fff; }

.nav-menu { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-menu a {
  font-size: 13.5px; font-weight: 600; letter-spacing: .02em;
  padding: 9px 14px; border-radius: 999px; white-space: nowrap;
  opacity: .92; transition: background .2s, opacity .2s;
}
.nav-menu a:hover { opacity: 1; background: rgba(255,255,255,.16); }
.site-header.scrolled .nav-menu a:hover { background: rgba(37,99,235,.1); }

.nav-cta {
  background: #fff; color: var(--blue) !important;
  font-weight: 800 !important; opacity: 1 !important;
  padding: 10px 22px !important; box-shadow: 0 6px 16px rgba(0,0,0,.12);
}
.site-header.scrolled .nav-cta { background: var(--blue); color: #fff !important; }
.nav-cta:hover { transform: translateY(-1px); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; color: inherit; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: currentColor; border-radius: 2px; margin: 5px 0; transition: .3s; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; padding: 150px 0 90px; overflow: hidden;
  background: linear-gradient(165deg, #15275e 0%, #1e3a8a 45%, #2563eb 100%);
  color: #fff;
}
.hero::before {
  content: ""; position: absolute; top: -20%; right: -10%;
  width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle, rgba(245,158,11,.22), transparent 62%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; bottom: -30%; left: -12%;
  width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,.35), transparent 60%);
  pointer-events: none;
}
.hero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
  padding: 8px 16px; border-radius: 999px; font-size: 13px; font-weight: 600;
  margin-bottom: 22px;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 4px rgba(74,222,128,.25); }
.hero h1 {
  font-size: clamp(32px, 4.6vw, 56px); font-weight: 800; line-height: 1.08;
  letter-spacing: -.02em;
}
.hero h1 .grad { color: #fbbf24; }
.hero-lead { margin-top: 22px; font-size: 18px; color: #d3def6; max-width: 520px; }
.hero-points { margin-top: 26px; display: grid; gap: 12px; }
.hero-point { display: flex; align-items: center; gap: 12px; font-weight: 500; font-size: 15.5px; }
.hero-point svg { flex: none; color: #fbbf24; }
.hero-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 15px; padding: 15px 28px; border-radius: 999px;
  cursor: pointer; border: 0; transition: transform .2s var(--ease), box-shadow .2s, background .2s;
}
.btn-primary { background: var(--orange); color: #1b1300; box-shadow: 0 12px 28px rgba(245,158,11,.4); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(245,158,11,.5); }
.btn-ghost { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.28); }
.btn-ghost:hover { background: rgba(255,255,255,.2); }
.btn-lg { padding: 17px 34px; font-size: 16px; }

/* hero stat strip */
.hero-stats { margin-top: 40px; display: flex; gap: 34px; flex-wrap: wrap; }
.hero-stat .n { font-size: 30px; font-weight: 800; color: #fbbf24; line-height: 1; }
.hero-stat .l { font-size: 13px; color: #c0cdec; margin-top: 6px; }

/* hero mockup */
.hero-visual { position: relative; }
.mockup {
  background: #fff; border-radius: 20px; padding: 16px;
  box-shadow: 0 30px 70px rgba(0,0,0,.35);
  transform: perspective(1200px) rotateY(-8deg) rotateX(3deg);
}
.mockup-bar { display: flex; gap: 6px; padding: 4px 4px 12px; }
.mockup-bar i { width: 11px; height: 11px; border-radius: 50%; background: #e2e8f0; }
.mockup-bar i:nth-child(1){ background:#ff5f57 } .mockup-bar i:nth-child(2){ background:#febc2e } .mockup-bar i:nth-child(3){ background:#28c840 }
.mockup-screen { background: linear-gradient(160deg,#eef3fb,#fff); border-radius: 12px; padding: 16px; }
.mk-row { display: flex; gap: 12px; margin-bottom: 12px; }
.mk-kpi { flex: 1; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.mk-kpi .t { font-size: 11px; color: var(--muted); }
.mk-kpi .v { font-size: 20px; font-weight: 800; color: var(--navy); }
.mk-kpi .v.up { color: #16a34a; }
.mk-chart { background:#fff; border:1px solid var(--line); border-radius:10px; padding:14px; }
.mk-bars { display:flex; align-items:flex-end; gap:10px; height:90px; margin-top:8px; }
.mk-bars span { flex:1; border-radius:6px 6px 0 0; background:linear-gradient(var(--blue-bright),var(--blue)); }
.float-card {
  position: absolute; background: #fff; border-radius: 14px; padding: 12px 16px;
  box-shadow: var(--card-shadow); display: flex; align-items: center; gap: 11px;
  font-size: 13px; font-weight: 600; color: var(--navy);
}
.float-card .ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: #fff; flex: none; }
.float-1 { top: -22px; left: -28px; animation: floaty 4s ease-in-out infinite; }
.float-2 { bottom: -20px; right: -22px; animation: floaty 4s ease-in-out infinite 1.5s; }
@keyframes floaty { 0%,100%{ transform: translateY(0) } 50%{ transform: translateY(-12px) } }

/* ============================================================
   PROBLEM SECTION
   ============================================================ */
.cards-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 48px; }
.icard {
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.icard:hover { transform: translateY(-6px); box-shadow: var(--card-shadow-hover); border-color: transparent; }
.icard .ic {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  color: #fff; margin-bottom: 18px;
}
.icard h3 { font-size: 19px; color: var(--navy); margin-bottom: 8px; }
.icard p { color: var(--muted); font-size: 15px; }
.icard .tag { margin-top: 14px; display: inline-block; font-weight: 800; color: var(--orange-deep); }

.bg-blue   { background: linear-gradient(135deg,#3b82f6,#2563eb); }
.bg-orange { background: linear-gradient(135deg,#fb923c,#f97316); }
.bg-violet { background: linear-gradient(135deg,#8b5cf6,#6d28d9); }
.bg-teal   { background: linear-gradient(135deg,#2dd4bf,#0d9488); }
.bg-rose   { background: linear-gradient(135deg,#fb7185,#e11d48); }
.bg-navy   { background: linear-gradient(135deg,#334155,#1e293b); }

/* stat band */
.stat-band {
  margin-top: 44px; display: grid; grid-template-columns: repeat(4,1fr); gap: 18px;
}
.stat-pill {
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 22px; text-align: center;
}
.stat-pill .n { font-size: 30px; font-weight: 800; color: var(--blue); }
.stat-pill .n.o { color: var(--orange-deep); }
.stat-pill .l { font-size: 13.5px; color: var(--muted); margin-top: 4px; }

/* ============================================================
   SOLUTION / FEATURES
   ============================================================ */
.feat-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 22px; margin-top: 48px; }
.feat {
  display: flex; gap: 18px; padding: 26px;
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.feat:hover { transform: translateY(-4px); box-shadow: var(--card-shadow-hover); }
.feat .ic { width: 52px; height: 52px; border-radius: 13px; flex: none; display: grid; place-items: center; color: #fff; }
.feat h3 { font-size: 18px; color: var(--navy); margin-bottom: 5px; }
.feat p { color: var(--muted); font-size: 14.5px; }
.section--navy .feat { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); }
.section--navy .feat h3 { color: #fff; }
.section--navy .feat p { color: #c7d2ec; }

/* ============================================================
   COMPARE TABLE (cấp học)
   ============================================================ */
.table-wrap { margin-top: 46px; overflow-x: auto; border-radius: var(--radius); box-shadow: var(--card-shadow); }
table.cmp { width: 100%; border-collapse: collapse; min-width: 720px; background: #fff; }
table.cmp th, table.cmp td { padding: 18px 22px; text-align: left; vertical-align: top; }
table.cmp thead th { color: #fff; font-size: 15.5px; font-weight: 700; }
table.cmp thead th:nth-child(1){ background: var(--navy); }
table.cmp thead th:nth-child(2){ background: var(--blue); }
table.cmp thead th:nth-child(3){ background: var(--orange-deep); }
table.cmp tbody tr { border-bottom: 1px solid var(--line); }
table.cmp tbody tr:last-child { border-bottom: 0; }
table.cmp tbody tr:nth-child(even){ background: #f8faff; }
table.cmp td:first-child { font-weight: 700; color: var(--navy); width: 180px; }
table.cmp td { font-size: 14.5px; color: var(--muted); }

/* ============================================================
   ROLES MATRIX
   ============================================================ */
.roles { display: grid; grid-template-columns: repeat(5,1fr); gap: 16px; margin-top: 46px; }
.role {
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 18px; text-align: center; transition: transform .3s var(--ease), box-shadow .3s;
}
.role:hover { transform: translateY(-6px); box-shadow: var(--card-shadow-hover); }
.role .ic { width: 54px; height: 54px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.role h4 { font-size: 16px; color: var(--navy); }
.role .sub { font-size: 12.5px; color: var(--blue); font-weight: 600; margin: 4px 0 10px; }
.role p { font-size: 13px; color: var(--muted); }

/* ============================================================
   PROCESS STEPS
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; margin-top: 50px; position: relative; }
.step {
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 24px; position: relative; transition: transform .3s var(--ease), box-shadow .3s;
}
.step:hover { transform: translateY(-6px); box-shadow: var(--card-shadow-hover); }
.step .num {
  position: absolute; top: -20px; left: 24px;
  width: 46px; height: 46px; border-radius: 12px; color: #fff; font-weight: 800; font-size: 19px;
  display: grid; place-items: center; box-shadow: 0 8px 18px rgba(0,0,0,.18);
}
.step:nth-child(1) .num{ background: linear-gradient(135deg,#3b82f6,#2563eb); }
.step:nth-child(2) .num{ background: linear-gradient(135deg,#34d399,#059669); }
.step:nth-child(3) .num{ background: linear-gradient(135deg,#fbbf24,#f59e0b); }
.step:nth-child(4) .num{ background: linear-gradient(135deg,#fb7185,#e11d48); }
.step h3 { margin: 18px 0 8px; font-size: 18px; color: var(--navy); }
.step p { font-size: 14px; color: var(--muted); }
.step ul { list-style: none; margin-top: 12px; display: grid; gap: 7px; }
.step ul li { position: relative; padding-left: 20px; font-size: 13.5px; color: var(--muted); }
.step ul li::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }

/* ============================================================
   UTILITIES / AI
   ============================================================ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; margin-top: 40px; }
.ai-list { display: grid; gap: 16px; margin-top: 26px; }
.ai-item { display: flex; gap: 16px; align-items: flex-start; }
.ai-item .ic { width: 46px; height: 46px; border-radius: 12px; flex: none; display: grid; place-items: center; color: #fff; }
.ai-item h4 { font-size: 16.5px; margin-bottom: 3px; }
.ai-item p { font-size: 14px; color: var(--muted); }
.section--navy .ai-item p { color: #c7d2ec; }

.ai-panel {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius); padding: 24px;
}
.ai-panel .head { display: flex; align-items: center; gap: 10px; font-weight: 700; margin-bottom: 16px; }
.ai-rank { display: grid; gap: 12px; }
.ai-rank .r { display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,.06); border-radius: 10px; padding: 10px 14px; }
.ai-rank .r .pos { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; font-weight: 800; font-size: 13px; background: var(--orange); color: #1b1300; flex: none; }
.ai-rank .r .nm { flex: 1; font-size: 14px; }
.ai-rank .r .pct { font-weight: 800; color: #4ade80; }
.ai-bar { height: 8px; border-radius: 5px; background: rgba(255,255,255,.12); overflow: hidden; margin-top: 6px; }
.ai-bar i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg,#34d399,#4ade80); }

/* ============================================================
   PERFORMANCE (before/after)
   ============================================================ */
.perf-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 48px; }
.perf {
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s;
}
.perf:hover { transform: translateY(-6px); box-shadow: var(--card-shadow-hover); }
.perf .ph { padding: 22px 24px; display: flex; align-items: center; gap: 12px; color: #fff; font-weight: 700; }
.perf .ic { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.2); display: grid; place-items: center; flex: none; }
.perf .row { padding: 18px 24px; }
.perf .row.before { background: #fff4f2; }
.perf .row .lbl { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.perf .row.before .lbl { color: #e11d48; }
.perf .row.after .lbl { color: #059669; }
.perf .row p { font-size: 14px; color: var(--muted); margin-top: 6px; }
.perf .row.after { background: #f0fdf6; }

/* ============================================================
   ROADMAP
   ============================================================ */
.road { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; margin-top: 50px; }
.phase {
  position: relative; background: var(--bg-alt); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 26px;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.phase:hover { transform: translateY(-6px); box-shadow: var(--card-shadow-hover); }
.phase .badge {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 13px;
  color: #fff; padding: 8px 16px; border-radius: 999px; margin-bottom: 16px;
}
.phase:nth-child(1) .badge{ background: linear-gradient(135deg,#3b82f6,#2563eb); }
.phase:nth-child(2) .badge{ background: linear-gradient(135deg,#fbbf24,#f59e0b); }
.phase:nth-child(3) .badge{ background: linear-gradient(135deg,#34d399,#059669); }
.phase h3 { font-size: 19px; color: var(--navy); margin-bottom: 10px; }
.phase ul { list-style: none; display: grid; gap: 9px; }
.phase ul li { position: relative; padding-left: 22px; font-size: 14px; color: var(--muted); }
.phase ul li::before { content: "✓"; position: absolute; left: 0; top: 0; color: #059669; font-weight: 800; }

/* ============================================================
   CTA / EXPERIENCE
   ============================================================ */
.cta-card {
  background: linear-gradient(150deg,#15275e,#2563eb);
  border-radius: 28px; padding: 56px; color: #fff; position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center;
}
.cta-card::before { content:""; position:absolute; top:-40%; right:-10%; width:480px; height:480px; border-radius:50%; background: radial-gradient(circle, rgba(245,158,11,.25), transparent 60%); }
.cta-card h2 { font-size: clamp(26px,3.2vw,38px); font-weight: 800; line-height: 1.15; position: relative; }
.cta-card h2 .o { color: #fbbf24; }
.cta-card p { margin-top: 16px; color: #d3def6; font-size: 16.5px; position: relative; }
.cta-contact { margin-top: 26px; display: grid; gap: 14px; position: relative; }
.cta-contact a { display: inline-flex; align-items: center; gap: 13px; font-weight: 600; }
.cta-contact .ic { width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,.14); display: grid; place-items: center; flex: none; }
.cta-contact .ic.hot { background: var(--orange); color: #1b1300; }
.cta-contact small { display: block; font-weight: 400; font-size: 12.5px; color: #b9c7e8; }

.cta-form { background: #fff; border-radius: 20px; padding: 30px; color: var(--text); position: relative; box-shadow: 0 24px 50px rgba(0,0,0,.3); }
.cta-form h3 { color: var(--navy); font-size: 20px; margin-bottom: 6px; }
.cta-form .small { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.cta-form .field { margin-bottom: 14px; }
.cta-form label { display: block; font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.cta-form input, .cta-form select {
  width: 100%; padding: 12px 15px; border: 1.5px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: 14.5px; transition: border-color .2s, box-shadow .2s;
}
.cta-form input:focus, .cta-form select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(37,99,235,.12); }
.cta-form .btn { width: 100%; justify-content: center; margin-top: 6px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: #0e1b40; color: #aeb9d6; padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-grid h4 { color: #fff; font-size: 15px; margin-bottom: 18px; letter-spacing: .02em; }
.footer-brand .brand { color: #fff; margin-bottom: 16px; }
.footer-brand p { font-size: 14px; max-width: 300px; }
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a { font-size: 14px; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; }

/* ============================================================
   LANDING PAGE (theo đối tượng)
   ============================================================ */
.breadcrumb { background: #fff; border-bottom: 1px solid var(--line); padding: 14px 0; margin-top: 70px; font-size: 13.5px; }
.breadcrumb .container { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.breadcrumb a { color: var(--blue); font-weight: 600; }
.breadcrumb .sep { color: #c2cbe0; }
.breadcrumb span[aria-current] { color: var(--muted); }

.hero.lhero { padding: 70px 0 80px; }
.lhero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 48px; align-items: center; position: relative; z-index: 2; }
.lhero-spec .spec-card {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius); padding: 26px;
}
.spec-card h3 { font-size: 18px; margin-bottom: 16px; color: #fff; }
.spec-card dl { display: grid; gap: 14px; }
.spec-card dl > div { display: grid; gap: 3px; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.12); }
.spec-card dl > div:last-child { border-bottom: 0; padding-bottom: 0; }
.spec-card dt { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: #aebbe0; font-weight: 600; }
.spec-card dd { font-size: 15px; color: #fff; font-weight: 500; }

.kpi-split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; margin-top: 44px; align-items: start; }
.kpi-list { list-style: none; display: grid; gap: 14px; }
.kpi-list li {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 16px 18px; font-size: 15px; font-weight: 500; color: var(--navy);
}
.kpi-list li svg { color: var(--blue); flex: none; margin-top: 2px; }
.norms-card { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--card-shadow); position: sticky; top: 96px; }
.norms-card h3 { font-size: 18px; color: var(--navy); margin-bottom: 14px; }
table.norms { width: 100%; border-collapse: collapse; }
table.norms th, table.norms td { text-align: left; padding: 11px 0; vertical-align: top; font-size: 14px; border-bottom: 1px solid var(--line); }
table.norms th { color: var(--muted); font-weight: 600; width: 110px; }
table.norms td { color: var(--navy); font-weight: 500; }
table.norms tr:last-child th, table.norms tr:last-child td { border-bottom: 0; }

/* FAQ accordion (native details) */
.faq-list { max-width: 820px; margin: 40px auto 0; display: grid; gap: 12px; }
.faq-item { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 600; font-size: 16px; color: var(--navy);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-ic { position: relative; width: 18px; height: 18px; flex: none; }
.faq-ic::before, .faq-ic::after { content: ""; position: absolute; background: var(--blue); border-radius: 2px; transition: transform .25s var(--ease); }
.faq-ic::before { top: 8px; left: 0; width: 18px; height: 2.4px; }
.faq-ic::after { top: 0; left: 8px; width: 2.4px; height: 18px; }
.faq-item[open] .faq-ic::after { transform: scaleY(0); }
.faq-a { padding: 0 22px 20px; }
.faq-a p { color: var(--muted); font-size: 15px; }

/* Related landings */
.related-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 44px; }
.related-card {
  display: flex; flex-direction: column; gap: 8px;
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.related-card:hover { transform: translateY(-5px); box-shadow: var(--card-shadow-hover); border-color: transparent; }
.rc-tag { font-size: 12.5px; font-weight: 700; color: var(--blue); letter-spacing: .03em; }
.rc-title { font-size: 17px; font-weight: 700; color: var(--navy); }
.rc-go { display: inline-flex; align-items: center; gap: 7px; color: var(--orange-deep); font-weight: 600; font-size: 14px; margin-top: 4px; }

.norms-ref { margin-top: 12px; font-size: 12px; color: var(--muted); line-height: 1.5; font-style: italic; }

.landing-intro { padding: 52px 0 0; }
.lead-prose { font-size: 18px; line-height: 1.85; color: #44516b; text-align: center; }
@media (max-width: 600px) { .landing-intro { padding-top: 36px; } .lead-prose { font-size: 16px; text-align: left; } }

/* ============================================================
   FORM ĐĂNG KÝ — thông báo & honeypot
   ============================================================ */
.form-note {
  border-radius: 10px; padding: 12px 15px; font-size: 14px; font-weight: 500; margin-bottom: 14px;
}
.form-note.ok { background: #ecfdf3; color: #067647; border: 1px solid #abefc6; }
.form-note.err { background: #fef3f2; color: #b42318; border: 1px solid #fecdca; }
/* Honeypot — ẩn hoàn toàn khỏi người dùng, vẫn nằm trong DOM cho bot. */
.kpis-hp { position: absolute; left: -5000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Skip link (chỉ hiện khi focus bằng bàn phím) */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--blue); color: #fff; padding: 12px 20px; border-radius: 0 0 12px 0;
  font-weight: 700; font-size: 14px;
}
.skip-link:focus { left: 0; }
#main-content { display: block; }

/* ============================================================
   AUDIENCE CHIPS (đối tượng)
   ============================================================ */
.hero-audience { margin-top: 26px; }
.hero-audience .lbl { font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: #aebbe0; font-weight: 600; margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  color: #fff; font-size: 13px; font-weight: 600; padding: 8px 14px; border-radius: 999px;
}
.chip svg { color: #fbbf24; flex: none; }

/* ============================================================
   MOBILE STICKY CTA BAR
   ============================================================ */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 99;
  display: none; align-items: center; gap: 12px;
  padding: 11px 16px calc(11px + env(safe-area-inset-bottom, 0px));
  background: rgba(255,255,255,.96); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(21,39,94,.12);
}
.mobile-cta .mc-text { flex: 1; min-width: 0; }
.mobile-cta .mc-text strong { display: block; font-size: 14px; color: var(--navy); line-height: 1.2; }
.mobile-cta .mc-text small { font-size: 11.5px; color: var(--muted); }
.mobile-cta .btn { padding: 13px 20px; font-size: 14.5px; white-space: nowrap; box-shadow: 0 8px 18px rgba(245,158,11,.4); }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-visual { max-width: 460px; }
  .feat-grid { grid-template-columns: 1fr; }
  .roles { grid-template-columns: repeat(2,1fr); }
  .steps { grid-template-columns: repeat(2,1fr); row-gap: 36px; }
  .perf-grid, .road { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .cta-card { grid-template-columns: 1fr; padding: 40px 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  /* Landing */
  .lhero-grid { grid-template-columns: 1fr; gap: 36px; }
  .kpi-split { grid-template-columns: 1fr; gap: 24px; }
  .norms-card { position: static; }
  .related-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 860px) {
  .nav-menu { display: none; }
  .nav-toggle { display: block; }
  .nav-menu.open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 78px; left: 0; right: 0;
    background: #fff; color: var(--navy); border-radius: 18px; padding: 14px;
    box-shadow: var(--card-shadow); gap: 4px;
  }
  .nav-menu.open a { color: var(--navy); padding: 12px 16px; }
  .nav-menu.open .nav-cta { background: var(--blue); color: #fff !important; text-align: center; justify-content: center; }
}
@media (max-width: 600px) {
  :root { --radius: 16px; }
  .section { padding: 52px 0; }
  .container { padding-inline: 18px; }

  /* Header gọn hơn */
  .site-header { padding: 12px 0; }
  .nav-pill { padding: 9px 10px 9px 16px; }
  .brand { font-size: 12.5px; gap: 9px; }
  .brand-logo { width: 30px; height: 30px; font-size: 14px; }

  /* Hero */
  .hero { padding: 116px 0 64px; }
  .hero-lead { font-size: 16px; }
  .hero-points { gap: 10px; }
  .hero-point { font-size: 14.5px; align-items: flex-start; }
  .hero-point svg { margin-top: 2px; }
  .hero-actions { gap: 12px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-stats { gap: 0; justify-content: space-between; margin-top: 32px; }
  .hero-stat { flex: 1; }
  .hero-stat .n { font-size: 24px; }
  .hero-stat .l { font-size: 11.5px; }
  .hero-visual { margin-top: 8px; }
  .float-1 { left: -6px; top: -14px; }
  .float-2 { right: -4px; bottom: -12px; }
  .float-card { padding: 9px 12px; font-size: 12px; }

  /* Sections */
  .cards-3 { grid-template-columns: 1fr; gap: 16px; }
  .icard { padding: 24px 22px; }
  .stat-band { grid-template-columns: repeat(2,1fr); gap: 12px; }
  .stat-pill { padding: 18px 14px; }
  .stat-pill .n { font-size: 26px; }
  .roles { grid-template-columns: 1fr; gap: 14px; }
  .role { display: flex; align-items: flex-start; text-align: left; gap: 16px; padding: 20px; }
  .role .ic { margin: 0; flex: none; }
  .steps { grid-template-columns: 1fr; row-gap: 30px; }
  .feat { padding: 22px; }

  /* Bảng so sánh: gợi ý vuốt ngang */
  .table-wrap { position: relative; }
  .table-wrap::after {
    content: "← vuốt để xem →"; display: block; text-align: center;
    font-size: 12px; color: var(--muted); padding: 8px; background: #f8faff;
  }
  table.cmp th, table.cmp td { padding: 14px 16px; }
  table.cmp td:first-child { width: 120px; }

  /* CTA */
  .cta-card { padding: 28px 20px; border-radius: 22px; }
  .cta-card h2 { font-size: 25px; }
  .cta-card p { font-size: 15px; }
  .cta-form { padding: 22px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-bottom { flex-direction: column; gap: 6px; }

  /* Thanh CTA cố định + chừa chỗ cuối trang */
  .mobile-cta { display: flex; }
  body { padding-bottom: 74px; }

  /* Landing mobile */
  .breadcrumb { margin-top: 64px; }
  .hero.lhero { padding: 40px 0 56px; }
  .related-grid { grid-template-columns: 1fr; }
  .kpi-list li { font-size: 14.5px; }
  .faq-item summary { font-size: 15px; padding: 16px 18px; }
  .faq-a { padding: 0 18px 18px; }
}

@media (max-width: 380px) {
  .stat-band { grid-template-columns: 1fr; }
  .hero h1 { font-size: 29px; }
  .mobile-cta .mc-text small { display: none; }
}

/* ============================================================
   TRANG ĐƠN / BÀI VIẾT (page.php · single.php)
   ============================================================ */
.container--narrow { max-width: 824px; }

.btn-outline {
  background: #fff; color: var(--blue);
  border: 1.5px solid var(--line); box-shadow: var(--card-shadow);
}
.btn-outline:hover { border-color: var(--blue); transform: translateY(-2px); }

.article { padding-bottom: 8px; }

.article-head { padding: 46px 0 26px; text-align: center; }
.article-head .eyebrow { margin-bottom: 16px; }
a.eyebrow { transition: background .2s; }
a.eyebrow:hover { background: #dce8ff; }
.article-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800; line-height: 1.18; color: var(--navy); letter-spacing: -.015em;
}
.article-meta {
  margin-top: 18px; display: inline-flex; flex-wrap: wrap;
  align-items: center; justify-content: center; gap: 9px 20px;
  font-size: 14px; color: var(--muted);
}
.article-meta .am-item { display: inline-flex; align-items: center; gap: 7px; }
.article-meta svg { width: 16px; height: 16px; opacity: .75; flex: none; }

.article-cover {
  margin: 14px 0 10px; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--card-shadow);
}
.article-cover img { width: 100%; height: auto; }

/* ---------- Prose typography ---------- */
.prose { padding: 30px 0 8px; font-size: 17px; line-height: 1.8; color: var(--text); }
.prose > :first-child { margin-top: 0; }
.prose p { margin-top: 1.15em; }
.prose h2 {
  margin-top: 1.9em; font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 800; line-height: 1.28; color: var(--navy); letter-spacing: -.01em;
}
.prose h3 { margin-top: 1.6em; font-size: 20px; font-weight: 700; color: var(--navy); }
.prose h4 { margin-top: 1.4em; font-size: 17px; font-weight: 700; color: var(--navy); }
.prose h2 + p, .prose h3 + p, .prose h4 + p { margin-top: .55em; }
.prose a {
  color: var(--blue); font-weight: 600;
  text-decoration: underline; text-underline-offset: 3px;
  text-decoration-thickness: 1.5px; text-decoration-color: rgba(37,99,235,.35);
  transition: text-decoration-color .2s;
}
.prose a:hover { text-decoration-color: var(--blue); }
.prose strong { font-weight: 700; color: var(--navy); }
.prose ul, .prose ol { margin-top: 1.1em; padding-left: 1.45em; }
.prose li { margin-top: .5em; }
.prose li::marker { color: var(--blue); font-weight: 700; }
.prose blockquote {
  margin: 1.7em 0; padding: 10px 6px 10px 22px;
  border-left: 4px solid var(--blue);
  background: linear-gradient(90deg, rgba(37,99,235,.06), transparent);
  color: var(--navy); font-size: 18px; font-style: italic;
  border-radius: 0 10px 10px 0;
}
.prose blockquote p { margin-top: .4em; }
.prose figure { margin: 1.8em 0; }
.prose img, .prose figure img { border-radius: var(--radius-sm); width: 100%; }
.prose figcaption, .prose .wp-caption-text {
  margin-top: 10px; font-size: 14px; color: var(--muted); text-align: center;
}
.prose hr { margin: 2.4em 0; border: 0; border-top: 1px solid var(--line); }
.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .9em; background: #eef2fb; color: var(--blue-dark);
  padding: 2px 7px; border-radius: 6px;
}
.prose pre {
  margin: 1.7em 0; padding: 18px 20px; overflow-x: auto;
  background: var(--navy); color: #e8eefc;
  border-radius: var(--radius-sm); font-size: 14.5px; line-height: 1.7;
}
.prose pre code { background: none; color: inherit; padding: 0; font-size: inherit; }
.prose table {
  width: 100%; border-collapse: collapse; margin: 1.8em 0; font-size: 15.5px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden;
}
.prose th, .prose td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.prose thead th { background: #eef2fb; color: var(--navy); font-weight: 700; }
.prose tbody tr:nth-child(even) { background: #fafbfe; }
.prose tbody tr:last-child td { border-bottom: 0; }
.prose .alignleft { float: left; margin: .4em 1.4em 1.2em 0; max-width: 50%; }
.prose .alignright { float: right; margin: .4em 0 1.2em 1.4em; max-width: 50%; }
.prose .aligncenter { margin-inline: auto; }

/* ---------- Page links pagination ---------- */
.page-links { margin-top: 2.2em; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-weight: 600; }
.page-links-title { color: var(--muted); margin-right: 4px; }
.page-links a, .page-links > span:not(.page-links-title) {
  padding: 6px 13px; border-radius: 9px; border: 1px solid var(--line);
}
.page-links a { color: var(--blue); }
.page-links > span:not(.page-links-title) { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ---------- Tags & post navigation ---------- */
.article-tags { margin-top: 38px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.article-tags .lbl { font-size: 14px; color: var(--muted); font-weight: 600; }
.article-tags a { font-size: 13.5px; padding: 6px 14px; background: #eef2fb; color: var(--blue); border-radius: 999px; font-weight: 600; transition: background .2s; }
.article-tags a:hover { background: #dce8ff; }

.post-nav { margin-top: 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.post-nav-link {
  display: flex; flex-direction: column; gap: 6px;
  padding: 18px 20px; background: var(--bg-alt); border: 1px solid var(--line);
  border-radius: var(--radius-sm); box-shadow: var(--card-shadow);
  transition: transform .2s var(--ease), box-shadow .2s, border-color .2s;
}
.post-nav-link:hover { transform: translateY(-3px); box-shadow: var(--card-shadow-hover); border-color: transparent; }
.post-nav-link.next { text-align: right; }
.post-nav .pn-dir { font-size: 13px; font-weight: 700; color: var(--blue); letter-spacing: .02em; }
.post-nav .pn-title { font-size: 15px; font-weight: 600; color: var(--navy); line-height: 1.4; }

/* ---------- Bottom CTA strip ---------- */
.article-cta { text-align: center; margin-top: 56px; }
.article-cta .eyebrow { margin-bottom: 14px; }
.article-cta h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; color: var(--navy); line-height: 1.2; }
.article-cta p { margin: 14px auto 26px; max-width: 580px; color: var(--muted); font-size: 16.5px; }
.article-cta-actions { display: inline-flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

@media (max-width: 640px) {
  .article-head { padding: 30px 0 18px; }
  .prose { font-size: 16px; padding-top: 24px; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav-link.next { text-align: left; }
  .article-cta-actions { width: 100%; flex-direction: column; }
  .article-cta-actions .btn { width: 100%; justify-content: center; }
  .prose .alignleft, .prose .alignright { float: none; max-width: 100%; margin: 1.4em 0; }
}
