/* ==========================================================================
   MediPay — Hệ sinh thái y tế số thông minh
   Design system: red-orange linear · matched to reference UI
   ========================================================================== */

:root {
  --brand-700: #D42A12;
  --brand-600: #F5361F;
  --brand-500: #FF6A2E;
  --brand-400: #FF9A5A;
  --amber-500: #F59E0B;
  --grad-brand: linear-gradient(135deg, #FA2E1E 0%, #FF5A24 52%, #FF8C3E 100%);
  --grad-soft:  linear-gradient(135deg, #FFF3EC 0%, #FFE7DA 100%);

  --ink:   #221712;
  --body:  #574a43;
  --muted: #8b7d74;
  --line:  #F0E6DF;

  --bg:      #FFFFFF;
  --bg-soft: #fafafa;
  --bg-tint: #FCEBE1;

  --r-sm: 12px; --r-md: 16px; --r-lg: 22px; --r-xl: 28px; --r-pill: 60px;
  --sh-xs: 0 1px 2px rgba(34,23,18,.05), 0 2px 6px rgba(34,23,18,.04);
  --sh-sm: 0 2px 6px rgba(34,23,18,.05), 0 8px 20px -10px rgba(34,23,18,.12);
  --sh-md: 0 4px 12px rgba(34,23,18,.06), 0 20px 40px -18px rgba(34,23,18,.18);
  --sh-lg: 0 12px 28px rgba(34,23,18,.08), 0 40px 80px -30px rgba(34,23,18,.24);
  --sh-brand: 0 8px 20px -6px rgba(245,54,31,.5);

  --nav-font: 'Montserrat', sans-serif;
  --body-font: 'Plus Jakarta Sans', sans-serif;
  --content: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; scrollbar-width: thin; scrollbar-color: var(--brand-400) transparent; }

/* Custom scrollbar — page + all scroll areas */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background-color: var(--brand-400); border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: var(--brand-600); background-clip: padding-box; }
::-webkit-scrollbar-corner { background: transparent; }
body {
  margin: 0; font-family: var(--body-font); font-size: 17px; line-height: 1.65;
  color: var(--body); background: var(--bg); overflow-x: clip;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1,h2,h3,h4 { font-family: var(--body-font); color: var(--ink); margin: 0; line-height: 1.16; letter-spacing: -.02em; overflow-wrap: break-word; }
p { margin: 0; }
.container { width: 100%; max-width: var(--content); margin: 0 auto; padding: 0 28px; }
.tnum { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

/* ---------- Eyebrow / kicker ---------- */
.kicker { font: 700 12px/1 var(--nav-font); letter-spacing: .16em; text-transform: uppercase; color: var(--brand-600); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 700 12px/1 var(--nav-font); letter-spacing: .14em; text-transform: uppercase; color: var(--brand-600); padding: 9px 16px; border-radius: var(--r-pill); background: #fff; box-shadow: inset 0 0 0 1.5px var(--bg-tint); }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-600); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 700 14.5px/1 var(--nav-font); letter-spacing: .01em; padding: 15px 26px; border-radius: 14px; cursor: pointer; border: 0; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease; white-space: nowrap; }
.btn svg { width: 17px; height: 17px; }
.btn--primary { background: var(--grad-brand); color: #fff; box-shadow: var(--sh-brand); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -6px rgba(245,54,31,.6); }
.btn--outline { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.6px var(--line); }
.btn--outline:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1.6px var(--brand-400), var(--sh-sm); color: var(--brand-600); }
.btn--white { background: #fff; color: var(--brand-600); }
.btn--white:hover { transform: translateY(-2px); box-shadow: var(--sh-md); }
.btn--ghost-dark { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.6px rgba(255,255,255,.5); }
.btn--ghost-dark:hover { background: rgba(255,255,255,.12); }
.btn-lg { padding: 17px 30px; font-size: 15px; }
.link-more { display: inline-flex; align-items: center; gap: 7px; font: 700 14px/1 var(--body-font); color: var(--brand-600); }
.link-more svg { width: 15px; height: 15px; transition: transform .2s ease; }
.link-more:hover svg { transform: translateX(4px); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){ .reveal { opacity: 1; transform: none; } }

/* ==========================================================================
   HEADER
   ========================================================================== */
.header { position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.85); -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid transparent; transition: box-shadow .25s, border-color .25s; }
.header.is-stuck { border-color: var(--line); box-shadow: 0 6px 22px -18px rgba(34,23,18,.6); }
.header .container { display: flex; align-items: center; gap: 24px; height: 96px; }
.brand { display: inline-flex; align-items: center; gap: 10px; margin-right: auto; }
.brand .mark { width: 40px; height: 40px; border-radius: 12px; background: var(--grad-brand); display: grid; place-items: center; box-shadow: var(--sh-brand); }
.brand .mark svg { width: 23px; height: 23px; }
.brand .word { font: 800 23px/1 var(--nav-font); color: var(--ink); }
.brand .word b { color: var(--brand-600); font-weight: 800; }
.brand { gap: 13px; }
.brand-logo { height: 78px; width: auto; display: block; flex: none; }
.brand-sep { width: 1.5px; height: 48px; background: var(--line); flex: none; border-radius: 2px; }
.brand-tag { font: 600 13.5px/1.34 var(--body-font); color: var(--muted); white-space: nowrap; letter-spacing: -.01em; }
.footer .brand-logo { height: 52px; }
.footer .brand-sep { background: rgba(255,255,255,.18); }
.footer .brand-tag { color: #8794A5; }
@media (max-width: 520px){ .brand-sep, .brand-tag { display: none; } }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { font: 600 15px/1 var(--body-font); color: var(--body); position: relative; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: -3px; width: 0; height: 2px; background: var(--grad-brand); border-radius: 2px; transition: width .25s; }
.nav a:hover, .nav a.is-active { color: var(--ink); }
.nav a:hover::after, .nav a.is-active::after { width: 100%; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: var(--bg-soft); border-radius: 12px; cursor: pointer; }
.nav-toggle span { display: block; width: 20px; height: 2px; margin: 4px auto; background: var(--ink); border-radius: 2px; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { position: relative; overflow: hidden; padding: 70px 0 96px; background:
   linear-gradient(90deg, #fff 0%, rgba(255,255,255,.72) 32%, rgba(255,255,255,.15) 54%, rgba(255,255,255,0) 66%),
   url(../assets/bg/hero-bg.webp) right center / cover no-repeat,
   var(--bg); }
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,1fr); gap: 40px; align-items: center; }

.hero h1 { font-size: clamp(34px, 4.6vw, 54px); font-weight: 800; margin: 20px 0 0; letter-spacing: -.03em; }
.hero h1 .accent { color: var(--brand-600); display: block; }
.hero h1 .accent .dot { color: var(--brand-500); }
.hero .lead { margin-top: 20px; font-size: 18px; max-width: 480px; color: var(--body); }
.hero-cta { margin-top: 30px; display: flex; align-items: stretch; gap: 16px; flex-wrap: wrap; }
.hi-box { display: inline-flex; align-items: center; gap: 13px; padding: 12px 22px 12px 14px; background: #fff; border-radius: 14px; box-shadow: inset 0 0 0 1.5px var(--line); }
.hi-box .ic { width: 38px; height: 38px; border-radius: 10px; background: var(--bg-tint); color: var(--brand-600); display: grid; place-items: center; }
.hi-box .ic svg { width: 20px; height: 20px; }
.hi-box .n { font: 800 18px/1.05 var(--nav-font); color: var(--ink); }
.hi-box .t { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

.trust-row { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }
.trust-chip { display: inline-flex; align-items: center; gap: 10px; padding: 10px 15px; background: #fff; border-radius: 12px; box-shadow: inset 0 0 0 1.5px var(--line); }
.trust-chip .ic { width: 30px; height: 30px; border-radius: 8px; background: var(--bg-tint); color: var(--brand-600); display: grid; place-items: center; flex: none; }
.trust-chip .ic svg { width: 17px; height: 17px; }
.trust-chip .tx { font-size: 12px; color: var(--muted); line-height: 1.25; }
.trust-chip .tx b { display: block; font-size: 13px; color: var(--ink); font-weight: 700; }

/* ---- Hero visual: kiosk + phone ---- */
.stage { position: relative; min-height: 500px; }
.stage .halo { display: none; }
.hero-kiosk { position: absolute; left: 3%; bottom: -96px; z-index: 2; width: 62%; max-width: 340px; filter: brightness(1.09) saturate(1.06) drop-shadow(0 16px 28px rgba(34,23,18,.13)); }
.hero-phone { position: absolute; right: 0; bottom: -72px; z-index: 3; width: 48%; max-width: 258px; filter: drop-shadow(0 14px 26px rgba(23,60,120,.16)); }

.kiosk { position: absolute; left: 4%; top: 0; z-index: 2; width: 340px; max-width: 78%; background: linear-gradient(160deg,#FFFFFF,#F4F1EF); border-radius: 28px 28px 26px 26px; padding: 16px 16px 0; box-shadow: var(--sh-lg); border: 1px solid #fff; }
.kiosk::before { content: ""; position: absolute; right: -10px; top: 26px; bottom: 60px; width: 26px; border-radius: 14px; background: var(--grad-brand); z-index: -1; box-shadow: var(--sh-md); }
.kiosk .screen { border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); padding: 15px 14px; }
.kiosk .k-brand { display: flex; align-items: center; gap: 7px; }
.kiosk .k-brand .m { width: 20px; height: 20px; border-radius: 6px; background: var(--grad-brand); display: grid; place-items: center; }
.kiosk .k-brand .m svg { width: 12px; height: 12px; }
.kiosk .k-brand b { font: 800 14px/1 var(--nav-font); color: var(--ink); }
.kiosk .k-brand b i { color: var(--brand-600); font-style: normal; }
.kiosk .k-hi { margin: 14px 2px 12px; font-size: 15px; font-weight: 800; color: var(--ink); letter-spacing: -.01em; }
.k-item { display: flex; align-items: center; gap: 11px; padding: 11px 12px; border-radius: 12px; background: var(--bg-soft); margin-bottom: 8px; }
.k-item .ic { width: 30px; height: 30px; border-radius: 8px; background: var(--grad-brand); display: grid; place-items: center; flex: none; box-shadow: 0 5px 10px -4px rgba(245,54,31,.5); }
.k-item .ic svg { width: 16px; height: 16px; }
.k-item .lb { font-size: 12.5px; font-weight: 700; color: var(--ink); flex: 1; }
.k-item .ch { color: var(--brand-400); }
.k-item .ch svg { width: 13px; height: 13px; }
.kiosk .k-logo { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 0 12px; }
.kiosk .k-logo .m { width: 26px; height: 26px; border-radius: 8px; background: var(--grad-brand); display: grid; place-items: center; }
.kiosk .k-logo .m svg { width: 15px; height: 15px; }
.kiosk .k-logo b { font: 800 18px/1 var(--nav-font); color: var(--ink); }
.kiosk .k-logo b i { color: var(--brand-600); font-style: normal; }
.kiosk .k-slot { height: 34px; margin: 0 -16px; border-top: 1px solid var(--line); background: linear-gradient(180deg,#F0ECE9,#E7E2DE); border-radius: 0 0 26px 26px; position: relative; }
.kiosk .k-slot::before { content: ""; position: absolute; left: 50%; top: 13px; transform: translateX(-50%); width: 70px; height: 7px; border-radius: 6px; background: #cfc7c1; }

.phone { position: absolute; right: 2%; bottom: 4%; z-index: 3; width: 208px; max-width: 50%; background: #1a1512; border-radius: 30px; padding: 8px; box-shadow: var(--sh-lg); }
.phone .p-screen { background: #fff; border-radius: 24px; overflow: hidden; }
.phone .p-head { padding: 14px 14px 12px; display: flex; align-items: center; justify-content: space-between; }
.phone .p-head .hello { font-size: 10px; color: var(--muted); }
.phone .p-head .name { font: 800 14px/1.1 var(--nav-font); color: var(--ink); }
.phone .p-head .m { width: 22px; height: 22px; border-radius: 7px; background: var(--grad-brand); display: grid; place-items: center; }
.phone .p-head .m svg { width: 13px; height: 13px; }
.phone .p-hero { margin: 0 12px; background: var(--grad-brand); border-radius: 14px; padding: 12px; color: #fff; display: flex; align-items: center; gap: 10px; }
.phone .p-hero .av { width: 34px; height: 34px; border-radius: 9px; background: rgba(255,255,255,.22); display: grid; place-items: center; }
.phone .p-hero .av svg { width: 20px; height: 20px; }
.phone .p-hero .h b { font: 800 12px/1.1 var(--nav-font); display: block; }
.phone .p-hero .h span { font-size: 9.5px; opacity: .9; }
.phone .p-sec { font: 700 10px/1 var(--nav-font); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 12px 14px 8px; }
.phone .p-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 12px; }
.phone .p-grid .g { background: var(--bg-soft); border-radius: 11px; padding: 10px 9px; }
.phone .p-grid .g .ic { width: 26px; height: 26px; border-radius: 8px; background: #fff; box-shadow: var(--sh-xs); color: var(--brand-600); display: grid; place-items: center; margin-bottom: 7px; }
.phone .p-grid .g .ic svg { width: 15px; height: 15px; }
.phone .p-grid .g span { font-size: 9.5px; font-weight: 700; color: var(--ink); line-height: 1.2; display: block; }
.phone .p-nav { display: grid; grid-template-columns: repeat(3,1fr); gap: 4px; padding: 12px 12px 14px; margin-top: 10px; }
.phone .p-nav i { text-align: center; font-size: 8.5px; font-weight: 600; color: var(--muted); font-style: normal; }
.phone .p-nav i svg { width: 16px; height: 16px; display: block; margin: 0 auto 3px; }
.phone .p-nav i.on { color: var(--brand-600); }

/* ==========================================================================
   STATS BAND (overlapping card)
   ========================================================================== */
.stats-wrap { position: relative; z-index: 5; margin-top: -74px; }
.stats { background: #fff; border-radius: var(--r-xl); box-shadow: 0 8px 24px -12px rgba(34,23,18,.10), 0 26px 54px -30px rgba(34,23,18,.14); border: 1px solid var(--line); padding: 28px 18px; display: grid; grid-template-columns: repeat(4,1fr); }
.stat { display: flex; align-items: center; gap: 14px; padding: 6px 16px; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 12%; height: 76%; width: 1px; background: var(--line); }
.stat .ic { width: 46px; height: 46px; border-radius: 13px; background: var(--bg-tint); color: var(--brand-600); display: grid; place-items: center; flex: none; }
.stat .ic svg { width: 24px; height: 24px; }
.stat > span { min-width: 0; }
.stat .n { display: block; font: 800 29px/1.05 var(--nav-font); color: var(--ink); letter-spacing: -.02em; white-space: nowrap; }
.stat .n em { font-size: 15px; font-style: normal; font-weight: 700; color: var(--muted); }
.stat .l { display: block; font-size: 12.5px; color: var(--muted); margin-top: 5px; white-space: nowrap; }

/* ==========================================================================
   SECTIONS shared
   ========================================================================== */
.sec { padding: 96px 0; }
.sec.soft { background: var(--bg-soft); }
.intro .kicker { display: block; margin-bottom: 14px; }
.intro h2 { font-size: clamp(26px,3.2vw,36px); font-weight: 800; }
.intro p { margin-top: 16px; color: var(--muted); font-size: 16px; max-width: 420px; }

/* Centered section head (deploy, faq) */
.sec-head { max-width: 680px; margin: 0 auto 52px; text-align: center; }
.sec-head .kicker { display: block; margin-bottom: 14px; }
.sec-head h2 { font-size: clamp(26px,3.4vw,38px); font-weight: 800; }
.sec-head p { margin-top: 16px; color: var(--muted); font-size: 16px; }

/* ---- Solution: intro + 3 image cards ---- */
.solution .grid { display: grid; grid-template-columns: minmax(260px,0.92fr) repeat(3, 1fr); gap: 26px; align-items: stretch; }
.solution .intro { padding-top: 6px; align-self: center; }
.solution .intro .btn { margin-top: 26px; }
.pcard { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-xs); transition: transform .24s, box-shadow .24s, border-color .24s; display: flex; flex-direction: column; }
.pcard:hover { transform: translateY(-6px); box-shadow: var(--sh-md); border-color: transparent; }
.pcard .thumb { height: 160px; background: var(--grad-soft); display: grid; place-items: center; position: relative; overflow: hidden; }
.pcard .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pcard .thumb.contain { background: linear-gradient(135deg,#EAF1FB 0%,#FFF1E8 100%); }
.pcard .thumb.contain img { object-fit: contain; padding: 14px 14px 0; }
.pcard .thumb .mini { filter: drop-shadow(0 12px 20px rgba(34,23,18,.16)); }
.pcard .body { padding: 20px 20px 22px; flex: 1; display: flex; flex-direction: column; }
.pcard h3 { font-size: 18px; font-weight: 800; }
.pcard p { margin-top: 9px; font-size: 14px; color: var(--muted); line-height: 1.55; }
.pcard .link-more { margin-top: auto; padding-top: 16px; }
.pcard .thumb { flex: none; }

/* mini device illustrations for card thumbs */
.mini-kiosk { width: 62px; height: 92px; background: #fff; border-radius: 10px 10px 8px 8px; box-shadow: var(--sh-sm); border: 1px solid var(--line); padding: 6px; position: relative; }
.mini-kiosk::before { content: ""; position: absolute; right: -5px; top: 10px; bottom: 26px; width: 9px; border-radius: 6px; background: var(--grad-brand); }
.mini-kiosk .s { background: var(--bg-soft); border-radius: 6px; height: 52px; }
.mini-kiosk .b { height: 5px; width: 30px; margin: 8px auto 0; border-radius: 4px; background: var(--grad-brand); }
.mini-phone { width: 58px; height: 96px; background: #1a1512; border-radius: 13px; padding: 4px; box-shadow: var(--sh-sm); }
.mini-phone .s { background: #fff; border-radius: 10px; height: 100%; overflow: hidden; }
.mini-phone .s .t { height: 26px; background: var(--grad-brand); }
.mini-phone .s .r { height: 6px; margin: 7px; border-radius: 4px; background: var(--bg-tint); }
.mini-desk { width: 108px; }
.mini-desk .scr { height: 66px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--sh-sm); padding: 6px; display: flex; gap: 5px; }
.mini-desk .scr .side { width: 22px; background: var(--grad-brand); border-radius: 4px; opacity: .9; }
.mini-desk .scr .main { flex: 1; display: grid; gap: 4px; }
.mini-desk .scr .main span { height: 6px; border-radius: 3px; background: var(--bg-tint); }
.mini-desk .stand { width: 12px; height: 12px; margin: 0 auto; background: #e7ded8; }
.mini-desk .base { width: 46px; height: 5px; margin: 0 auto; border-radius: 4px; background: #ddd3cc; }

/* ---- Process: intro + 4 steps ---- */
.process .grid { display: grid; grid-template-columns: minmax(240px,0.85fr) 2fr; gap: 40px; align-items: center; }
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; }
.pstep { text-align: center; position: relative; padding: 0 4px; }
.pstep .circle { width: 92px; height: 92px; margin: 0 auto 16px; border-radius: 50%; background: var(--grad-brand); border: 0; display: grid; place-items: center; color: #fff; box-shadow: 0 12px 24px -8px rgba(245,54,31,.45); transition: transform .24s, box-shadow .24s; }
.pstep .circle svg { width: 38px; height: 38px; }
.pstep:hover .circle { transform: translateY(-4px); box-shadow: 0 18px 30px -10px rgba(245,54,31,.55); }
.pstep .num { font: 800 13px/1 var(--nav-font); color: var(--brand-600); }
.pstep h4 { font-size: 16px; font-weight: 800; margin: 7px 0 8px; }
.pstep p { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.pstep .arw { position: absolute; top: 40px; right: -14px; color: var(--brand-400); z-index: 1; }
.pstep .arw svg { width: 22px; height: 22px; }
.pstep:last-child .arw { display: none; }

/* ---- Partners carousel ---- */
.partners { padding: 72px 0; background: #fff; border-top: 1px solid var(--line); }
.partners h3 { text-align: center; font-size: clamp(19px,2.2vw,24px); font-weight: 800; margin-bottom: 32px; }
.carousel { display: flex; align-items: center; gap: 14px; }
.carousel .arrow { width: 44px; height: 44px; flex: none; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: .2s; }
.carousel .arrow:hover { background: var(--grad-brand); color: #fff; border-color: transparent; box-shadow: var(--sh-brand); }
.carousel .arrow svg { width: 18px; height: 18px; }
.track { flex: 1; display: flex; gap: 24px; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; padding: 6px 2px; }
.track::-webkit-scrollbar { display: none; }
.track .cell { flex: 0 0 auto; height: 82px; display: grid; place-items: center; }
.track .cell img { max-height: 82px; width: auto; max-width: 180px; object-fit: contain; opacity: .95; transition: transform .2s ease, opacity .2s ease; }
.track .cell:hover img { opacity: 1; transform: translateY(-3px) scale(1.05); }
.track .cell.more { min-width: 132px; height: 82px; flex-direction: column; gap: 2px; padding: 0 16px; border: 1.5px dashed var(--line); border-radius: 14px; background: #fff; }
.track .cell.more b { font: 800 13px/1.3 var(--nav-font); color: var(--brand-600); text-align: center; text-transform: uppercase; letter-spacing: .04em; }

/* ==========================================================================
   FINAL CTA
   ========================================================================== */
.cta { padding: 30px 0 70px; }
.cta-band { position: relative; overflow: hidden; background:
   linear-gradient(90deg, rgba(214,42,16,.72) 0%, rgba(230,60,27,.34) 46%, rgba(255,120,40,.06) 100%),
   url(../assets/bg/cta-bg.webp) center / cover no-repeat, var(--grad-brand);
   border-radius: var(--r-xl); padding: 46px 48px; color: #fff; display: grid; grid-template-columns: 1.2fr auto; gap: 30px; align-items: center; box-shadow: var(--sh-lg); }
.cta-band::after { content: ""; position: absolute; right: -60px; top: -80px; width: 340px; height: 340px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.22), transparent 62%); }
.cta-band::before { content: ""; position: absolute; left: -80px; bottom: -120px; width: 280px; height: 280px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.2); }
.cta-band .ct { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; font-size: clamp(24px,2.8vw,32px); font-weight: 800; }
.cta-band p { position: relative; z-index: 1; margin-top: 12px; color: #FFEAE0; font-size: 15.5px; max-width: 460px; }
.cta-actions { position: relative; z-index: 1; display: flex; gap: 14px; flex-wrap: wrap; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { background: #0F1622; color: #AEBAC9; padding: 58px 0 30px; }
.footer .top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer .brand .word { color: #fff; }
.footer .fdesc { margin-top: 14px; max-width: 340px; font-size: 14.5px; color: #8794A5; }
.footer .fnav { display: flex; gap: 54px; flex-wrap: wrap; }
.footer h5 { font: 700 12px/1 var(--nav-font); letter-spacing: .12em; text-transform: uppercase; color: #6B7789; margin: 0 0 15px; }
.footer .fcol a { display: block; font-size: 14.5px; color: #AEBAC9; margin-bottom: 11px; transition: color .2s; }
.footer .fcol a:hover { color: #fff; }
.footer .compliance-row { display: flex; gap: 10px 22px; flex-wrap: wrap; padding: 20px 0; }
.footer .cchip { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: #C4CEDA; }
.footer .cchip svg { width: 16px; height: 16px; color: var(--brand-400); }
.footer .legal { padding-top: 22px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 13px; color: #7B8798; }
.footer .legal b { color: #D3DBE6; }

/* ---------- Mobile fixed action bar ---------- */
.mobile-bar { display: none; }
@media (max-width: 768px) {
  .mobile-bar { display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    padding: 9px 12px calc(9px + env(safe-area-inset-bottom, 0px));
    background: rgba(255,255,255,.94); -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px);
    border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -16px rgba(34,23,18,.5); }
  .mb-btn { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    padding: 8px 4px; border-radius: 12px; font: 700 10.5px/1 var(--nav-font); letter-spacing: .02em;
    color: var(--ink); background: var(--bg-soft); }
  .mb-btn svg { width: 20px; height: 20px; color: var(--brand-600); }
  .mb-btn.mb-primary { flex: 2; flex-direction: row; gap: 8px; font-size: 13.5px; color: #fff; background: var(--grad-brand); box-shadow: var(--sh-brand); }
  .mb-btn.mb-primary svg { color: #fff; }
  body { padding-bottom: 74px; }
  /* nâng nút Zalo nổi / phần tử fixed khác nếu có, tránh che nav dropdown */
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px){
  .solution .grid { grid-template-columns: 1fr 1fr; }
  .solution .intro { grid-column: 1 / -1; }
  .process .grid { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 940px){
  .nav, .header > .container > .btn { display: none; }
  .nav-toggle { display: block; }
  .header .container { height: 80px; }
  .brand-logo { height: 60px; }
  .brand-sep { height: 38px; }
  .nav.is-open { display: flex; position: absolute; top: 80px; left: 0; right: 0; flex-direction: column; gap: 2px; padding: 12px 28px 20px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--sh-md); }
  .nav.is-open a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--bg-soft); }
  .hero .container { grid-template-columns: 1fr; gap: 16px; }
  .hero { padding: 46px 0 40px; }
  .stage { min-height: 430px; max-width: 440px; margin: 0 auto; display: flex; align-items: flex-end; justify-content: center; }
  .stage .halo { inset: 8% -6% 4% 4%; }
  .hero-kiosk { position: relative; left: auto; bottom: auto; width: 72%; max-width: 300px; }
  .hero-phone { position: absolute; right: 0; bottom: 0; width: 46%; max-width: 205px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 8px 0; }
  .stat:nth-child(3)::before { display: none; }
}
@media (max-width: 680px){
  .sec { padding: 64px 0; }
  .solution .grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; gap: 26px 8px; }
  .pstep .arw { display: none; }
  .cta-band { grid-template-columns: 1fr; padding: 34px 26px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 12px; }
  .stat:nth-child(odd)::before { display: none; }
  .footer .top { flex-direction: column; gap: 26px; }
}
@media (max-width: 420px){
  .stats { grid-template-columns: 1fr; }
  .stat::before { display: none !important; }
  .steps { grid-template-columns: 1fr; }
  .trust-row { flex-direction: column; }
  .hero h1 { font-size: 30px; }
}

/* ---------- Quick-consult modal ---------- */
.modal-overlay { position: fixed; inset: 0; z-index: 200; display: flex; align-items: flex-end; justify-content: center; background: rgba(20,14,10,.55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s; }
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal { width: 100%; max-width: 480px; max-height: 92vh; overflow-y: auto; background: #fff; border-radius: 24px 24px 0 0; padding: 26px 24px calc(26px + env(safe-area-inset-bottom, 0px)); transform: translateY(34px); transition: transform .3s cubic-bezier(.22,1,.36,1); box-shadow: var(--sh-lg); }
.modal-overlay.open .modal { transform: none; }
.modal .form { background: none; border: 0; box-shadow: none; padding: 0; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.modal-head h3 { font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.modal-head p { font-size: 13.5px; color: var(--muted); margin-top: 5px; }
.modal-close { flex: none; width: 38px; height: 38px; border: 0; border-radius: 10px; background: var(--bg-soft); cursor: pointer; display: grid; place-items: center; color: var(--ink); transition: background .15s; }
.modal-close:hover { background: var(--bg-tint); color: var(--brand-600); }
.modal-close svg { width: 18px; height: 18px; }
body.modal-lock { overflow: hidden; }
@media (min-width: 560px) { .modal-overlay { align-items: center; padding: 24px; } .modal { border-radius: 22px; } }
