:root {
  --bg: #ffffff;
  --bg-2: #f2f4f7;
  --ink: #0f1d36;
  --ink-2: #1d3047;
  --muted: #586474;
  --line: #e1e5eb;
  --navy: #1b3975;      /* xanh thương hiệu (dải xanh trong ảnh logo) */
  --navy-deep: #13284f;
  --accent: #f48024;    /* cam phượng hoàng: chỉ dùng trang trí hoặc trên nền tối */
  --accent-2: #c2410c;  /* cam đậm cho chữ trên nền sáng (đạt 4.5:1) */
  --accent-strong: #ea580c; /* icon, số lớn trên nền sáng (đạt 3:1) */
  --brand-red: #c8161d;      /* đỏ phượng hoàng, nút hành động chính */
  --brand-red-dark: #a30d1d; /* đỏ chữ VIET HAI MON */
  --radius: 10px;
  --container: 1240px;
  --header-h: 76px;
  --shadow: 0 1px 2px rgba(12,27,43,.06), 0 12px 32px -12px rgba(12,27,43,.18);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font-head: "Barlow Condensed", "Barlow", system-ui, sans-serif;
  --font-body: "Barlow", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent-strong); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.1; margin: 0 0 .5em; }
h2 { font-size: clamp(34px, 4.6vw, 56px); font-weight: 700; letter-spacing: -.005em; }
h3 { font-size: 22px; font-weight: 700; letter-spacing: .005em; }
p { margin: 0 0 1em; }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head);
  font-size: 15px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 28px; height: 3px; background: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 28px;
  border-radius: 6px; border: 2px solid transparent;
  font-family: var(--font-head); font-weight: 700; font-size: 17px; line-height: 1;
  letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), background .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--sm { height: 42px; padding: 0 18px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--accent { background: var(--brand-red); color: #fff; }
.btn--accent:hover { background: var(--brand-red-dark); }
.btn--dark { background: var(--navy); color: #fff; }
.btn--dark:hover { background: var(--navy-deep); }
.btn--line { border-color: var(--ink); background: transparent; color: var(--ink); }
.btn--line:hover { background: var(--ink); color: #fff; }

/* ---------- Media: video local / nền YouTube / placeholder ---------- */
.media {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 50% at 50% 40%, rgba(242,140,27,.16), transparent 70%),
    linear-gradient(180deg, #e9edf2 0%, #dfe4ea 100%);
}
.media--cover { position: absolute; inset: 0; }
.media::before {
  content: "";
  position: absolute;
  left: -60%; right: -60%; top: 45%; bottom: -80%;
  background-image:
    linear-gradient(rgba(15,42,68,.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,42,68,.22) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(520px) rotateX(64deg);
  transform-origin: top center;
  mask-image: linear-gradient(180deg, transparent 0%, #000 35%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 35%);
  animation: floor 1.6s linear infinite;
}
.media::after {
  content: "▶ " attr(data-label);
  position: absolute; left: 16px; bottom: 16px;
  padding: 6px 12px;
  font: 500 12px/1.3 ui-monospace, Consolas, monospace;
  color: var(--ink-2);
  background: rgba(255,255,255,.8);
  border: 1px dashed var(--accent);
  border-radius: 6px;
  z-index: 2;
}
@keyframes floor { to { background-position: 0 64px; } }
.media--scrub::before { animation: none; background-position: 0 calc(var(--p, 0) * 1600px); }

.media video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .8s;
}
.media.is-ready video { opacity: 1; }
.media.is-ready::before, .media.is-ready::after { display: none; }
.media.is-yt { background: #0c1b2b; }
.media.is-yt video { display: none; }
.yt-bg {
  position: absolute; left: 50%; top: 50%;
  border: 0; pointer-events: none;
  transform: translate(-50%, -50%);
  opacity: 0; transition: opacity 1s;
}
.media.is-ready .yt-bg { opacity: 1; }

/* Mobile: ảnh HD của video, phóng chậm cho có chuyển động, bấm để xem video */
.media.is-still { cursor: pointer; }
.still {
  position: absolute; inset: 0;
  background: center / cover no-repeat;
  animation: kenburns 14s ease-in-out infinite alternate;
}
.still--crop { inset: -14% 0; } /* cắt viền đen của ảnh 4:3 */
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.14) translateX(-2%); } }
.still__play {
  position: absolute; left: 12px; bottom: 12px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px 7px 10px; border-radius: 999px;
  background: rgba(12,27,43,.78); color: #fff;
  font-family: var(--font-head); font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.still__play::before {
  content: ""; width: 0; height: 0;
  border-left: 10px solid var(--accent); border-top: 6px solid transparent; border-bottom: 6px solid transparent;
}

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(14px);
  transition: box-shadow .3s;
}
.header.is-solid { box-shadow: 0 1px 0 var(--line), 0 8px 24px -16px rgba(12,27,43,.25); }
.header__inner { height: 100%; display: flex; align-items: center; gap: 32px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo__img { display: block; width: auto; height: 50px; }
.logo__text { display: flex; flex-direction: column; line-height: 1.05; }
.logo__text strong { font-family: var(--font-head); font-size: 23px; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; color: var(--brand-red-dark); }
.logo__text small { font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-2); }
.nav { display: flex; gap: 30px; margin-left: auto; }
.nav a {
  position: relative; text-decoration: none;
  font-family: var(--font-head); font-size: 18px; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
  color: var(--ink-2); transition: color .2s;
}
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 2px; background: var(--accent); transition: right .25s var(--ease); }
.nav a:hover { color: var(--ink); }
.nav a:hover::after { right: 0; }
.burger { display: none; }

/* ---------- 1. Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  overflow: hidden;
  background: var(--bg);
}
.hero__shade {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,.95) 42%, rgba(255,255,255,.6) 60%, rgba(255,255,255,0) 80%);
}
.hero__content { position: relative; z-index: 3; padding-top: var(--header-h); }
.hero__title {
  font-size: clamp(44px, 6.4vw, 92px); font-weight: 800;
  line-height: 1.02; text-transform: uppercase; letter-spacing: -.005em;
  max-width: 11.5em; margin-bottom: 24px;
}
.hero__title span {
  color: var(--brand-red);
  background: linear-gradient(90deg, #e21e1f, #ee621b);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero__sub { font-size: clamp(17px, 1.5vw, 20px); max-width: 540px; color: var(--muted); margin-bottom: 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.scroll-hint {
  position: absolute; left: 50%; bottom: 28px; z-index: 3;
  width: 26px; height: 42px; margin-left: -13px;
  border: 2px solid rgba(12,27,43,.4); border-radius: 20px;
  background: rgba(255,255,255,.6);
}
.scroll-hint span {
  position: absolute; left: 50%; top: 8px;
  width: 4px; height: 8px; margin-left: -2px;
  border-radius: 2px; background: var(--ink);
  animation: wheel 1.6s infinite;
}
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- 2. Stats ---------- */
.stats { position: relative; z-index: 4; background: var(--navy); color: #fff; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 36px 28px; border-left: 1px solid rgba(255,255,255,.12); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat strong { display: block; font-family: var(--font-head); font-size: clamp(40px, 4.4vw, 60px); font-weight: 800; line-height: 1; color: var(--accent); margin-bottom: 8px; }
.stat span { font-size: 15px; font-weight: 500; color: rgba(255,255,255,.78); text-transform: uppercase; letter-spacing: .06em; }

/* ---------- 3. Process: video tự chạy qua từng bước, bấm/vuốt để chuyển ---------- */
.process { position: relative; background: var(--bg-2); padding: clamp(72px, 9vw, 110px) 0; }
.process__ui {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  grid-template-areas: "head head" "screen steps";
  gap: 28px 44px;
}
.process__head { grid-area: head; max-width: 720px; }
.process__head h2 { margin-bottom: 8px; }
.process__hint { color: var(--muted); font-size: 18px; margin: 0; }
.process__screen {
  grid-area: screen; position: relative; align-self: start;
  width: 100%; aspect-ratio: 16 / 9;
  border-radius: 12px; overflow: hidden;
  background: var(--ink); box-shadow: var(--shadow);
}
.pmedia { position: absolute; inset: 0; opacity: 0; transition: opacity .6s var(--ease); }
.pmedia.is-shown { opacity: 1; z-index: 1; }
.process__count {
  position: absolute; top: 14px; left: 14px; z-index: 3;
  padding: 6px 12px; border-radius: 6px;
  background: rgba(12,27,43,.75); color: rgba(255,255,255,.75);
  font-family: var(--font-head); font-size: 16px; font-weight: 600; letter-spacing: .06em;
}
.process__count b { color: var(--accent); font-weight: 800; }
.steps { grid-area: steps; align-self: center; list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.step {
  position: relative; overflow: hidden;
  display: flex; gap: 16px; cursor: pointer;
  padding: 14px 18px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); border-left: 4px solid transparent;
  color: var(--muted);
  transition: border-color .4s, box-shadow .4s, color .4s;
}
.step:hover { color: var(--ink); }
.step b { font-family: var(--font-head); font-size: 20px; font-weight: 800; color: var(--accent-strong); line-height: 1.2; }
.step h3 { margin: 0; font-size: 21px; }
.step p { margin: 0; font-size: 15px; color: var(--muted); max-height: 0; overflow: hidden; transition: max-height .4s, margin .4s; }
.step.is-active { color: var(--ink); border-left-color: var(--accent); box-shadow: var(--shadow); }
.step.is-active p { max-height: 80px; margin-top: 4px; }
.step__bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--accent); }
.step:not(.is-active) .step__bar { width: 0 !important; }

/* ---------- Section chung ---------- */
.section { padding: clamp(72px, 10vw, 120px) 0; }
.section__head { max-width: 680px; margin-bottom: 48px; }
.section__head p:last-child { color: var(--muted); font-size: 18px; }

/* ---------- 4. Catalog ---------- */
.catalog { background: var(--bg); }
.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.tab {
  height: 44px; padding: 0 20px; border-radius: 6px;
  border: 2px solid var(--line); background: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: 17px;
  letter-spacing: .04em; text-transform: uppercase;
  color: var(--ink-2); cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.tab:hover { border-color: var(--ink); }
.tab.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.tab small { color: var(--accent-2); margin-left: 6px; font-size: 15px; }
.tab.is-active small { color: #ffc48a; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 22px; }
.card {
  text-align: left; padding: 0; cursor: pointer;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  font-family: inherit; color: inherit;
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
  animation: cardIn .45s var(--ease) both;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card__thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-2); }
.card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__thumb img { transform: scale(1.07); }
.card__body { padding: 16px 18px 20px; border-top: 3px solid var(--accent); }
.card__cat { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-2); }
.card__body h3 { font-size: 21px; margin: 4px 0 4px; }
.card__body p { font-size: 15px; color: var(--muted); margin: 0; }
@keyframes cardIn { from { opacity: 0; transform: translateY(12px); } }

.play {
  position: absolute; left: 50%; top: 50%;
  width: 58px; height: 58px; margin: -29px 0 0 -29px;
  border-radius: 50%; background: var(--accent-strong);
  box-shadow: 0 0 0 6px rgba(255,255,255,.35);
  transition: transform .3s var(--ease);
}
.play::after {
  content: ""; position: absolute; left: 23px; top: 19px;
  border-left: 16px solid #fff; border-top: 10px solid transparent; border-bottom: 10px solid transparent;
}
.card:hover .play, .vid:hover .play { transform: scale(1.12); }

/* ---------- 5. Featured ---------- */
.featured { background: var(--bg-2); }
.feature { display: grid; grid-template-columns: 1.25fr 1fr; min-height: 78vh; }
.feature--rev { grid-template-columns: 1fr 1.25fr; }
.feature--rev .feature__media { order: 2; }
.feature__media { position: relative; inset: auto; min-height: 420px; }
.feature__body { align-self: center; padding: 64px clamp(24px, 6vw, 96px); max-width: 660px; }
.feature__body > p { color: var(--muted); font-size: 18px; }
.specs { list-style: none; margin: 28px 0 32px; padding: 0; border-top: 2px solid var(--ink); }
.specs li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.specs span { color: var(--muted); }
.specs b { font-family: var(--font-head); font-size: 19px; font-weight: 700; }

/* ---------- 6. Solutions ---------- */
.solutions { background: var(--bg); }
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.tier {
  position: relative; display: flex; flex-direction: column;
  padding: 34px 30px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line);
  border-top: 4px solid var(--line);
}
.tier--hot { border-top-color: var(--accent); box-shadow: var(--shadow); }
.tier__badge {
  position: absolute; top: -15px; right: 24px;
  padding: 4px 12px; border-radius: 4px;
  background: var(--brand-red); color: #fff;
  font-family: var(--font-head); font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.tier h3 { font-size: 28px; text-transform: uppercase; }
.tier__for { color: var(--muted); font-size: 15px; }
.tier ul { list-style: none; padding: 0; margin: 8px 0 28px; flex: 1; }
.tier li { position: relative; padding: 9px 0 9px 28px; font-size: 16px; border-bottom: 1px dashed var(--line); }
.tier li::before { content: ""; position: absolute; left: 2px; top: 16px; width: 14px; height: 8px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }

/* ---------- 7. Videos ---------- */
.videos { background: var(--bg-2); }
.videos__grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 22px; }
.vid {
  position: relative; display: block; padding: 0; border: 0; cursor: pointer;
  border-radius: var(--radius); overflow: hidden; background: var(--ink);
  color: #fff; font-family: inherit; text-align: left;
}
.vid img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 9; transition: transform .6s var(--ease); }
.vid:hover img { transform: scale(1.05); }
.vid__cap {
  position: absolute; inset: auto 0 0 0; padding: 48px 22px 18px;
  background: linear-gradient(0deg, rgba(12,27,43,.9), transparent);
  display: flex; justify-content: space-between; align-items: end; gap: 12px;
}
.vid__cap b { font-family: var(--font-head); font-size: 24px; font-weight: 700; line-height: 1.15; }
.vid__cap small { font-size: 14px; opacity: .8; }
.videos__list { display: grid; gap: 12px; align-content: start; }
.vrow {
  display: grid; grid-template-columns: 150px 1fr; gap: 16px; align-items: center;
  padding: 8px; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer;
  background: #fff; color: var(--ink); font-family: inherit; text-align: left;
  transition: box-shadow .2s, border-color .2s;
}
.vrow:hover { box-shadow: var(--shadow); border-color: transparent; }
.vrow img { width: 150px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; }
.vrow span { font-family: var(--font-head); font-size: 19px; font-weight: 700; line-height: 1.2; }
.vrow small { display: block; font-family: var(--font-body); font-size: 14px; font-weight: 400; color: var(--muted); margin-top: 4px; }
.videos__more { margin: 32px 0 0; }
.videos__more a { font-family: var(--font-head); font-size: 18px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent-2); text-decoration: none; }

/* ---------- 8. Flow ---------- */
.flow { background: var(--bg); }
.flow__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.flow__list li { position: relative; padding-top: 20px; }
.flow__list li::before { content: ""; position: absolute; top: 28px; left: 60px; right: -24px; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px); }
.flow__list li:last-child::before { display: none; }
.flow__list b {
  position: relative; display: grid; place-items: center;
  width: 52px; height: 52px; margin: -20px 0 20px; border-radius: 8px;
  background: var(--navy); color: #fff;
  font-family: var(--font-head); font-size: 24px; font-weight: 800;
  box-shadow: inset 0 -4px 0 var(--accent);
}
.flow__list h3 { text-transform: uppercase; }
.flow__list p { font-size: 15px; color: var(--muted); }

/* ---------- 9. Contact ---------- */
.contact { position: relative; padding: clamp(80px, 10vw, 130px) 0; overflow: hidden; background: var(--bg-2); }
.contact__shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(242,244,247,.97) 0%, rgba(242,244,247,.9) 50%, rgba(242,244,247,.75) 100%); }
.contact__inner { position: relative; z-index: 3; display: grid; grid-template-columns: 1fr 480px; gap: 64px; align-items: center; }
.contact__copy > p { color: var(--muted); font-size: 18px; max-width: 480px; }
.contact__person { display: flex; align-items: center; gap: 14px; margin: 28px 0; }
.avatar { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 8px; background: var(--navy); color: #fff; font-family: var(--font-head); font-size: 22px; font-weight: 800; box-shadow: inset 0 -4px 0 var(--accent); }
.contact__person b { display: block; font-size: 17px; }
.contact__person a { font-family: var(--font-head); color: var(--accent-2); font-size: 30px; font-weight: 800; text-decoration: none; letter-spacing: .02em; }
.contact__links { display: flex; flex-wrap: wrap; gap: 12px; }
.form {
  display: grid; gap: 16px; padding: 34px; border-radius: var(--radius);
  background: #fff; border-top: 4px solid var(--accent); box-shadow: var(--shadow);
}
.form label { display: grid; gap: 6px; font-size: 15px; font-weight: 600; }
.form input, .form select {
  height: 50px; padding: 0 14px; border-radius: 6px;
  border: 1.5px solid var(--line); background: #fff;
  font-family: inherit; font-size: 16px; color: var(--ink);
}
.form input:focus, .form select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(244,128,36,.25); }
.form__msg { margin: 0; font-size: 15px; color: #1d7a4c; min-height: 1.4em; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-deep); color: rgba(255,255,255,.7); padding: 44px 0 100px; font-size: 15px; }
.footer__inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer__brand { display: flex; align-items: center; gap: 12px; }
.footer__brand img { width: auto; height: 44px; }
.footer strong { font-family: var(--font-head); font-size: 20px; text-transform: uppercase; letter-spacing: .03em; color: #fff; }
.footer p { margin: 6px 0 0; max-width: 480px; }
.footer a { color: var(--accent); text-decoration: none; }

/* ---------- Floating buttons ---------- */
.float { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: grid; gap: 10px; }
.float__btn {
  display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%;
  text-decoration: none; font-weight: 700; font-size: 13px;
  box-shadow: 0 10px 24px -8px rgba(12,27,43,.45);
  transition: transform .2s;
}
.float__btn:hover { transform: scale(1.08); }
.float__btn--zalo { background: #0068ff; color: #fff; }
.float__btn--call { background: var(--brand-red); color: #fff; animation: ring 2.4s infinite; }
@keyframes ring { 0%, 100% { box-shadow: 0 0 0 0 rgba(200,22,29,.5); } 60% { box-shadow: 0 0 0 14px rgba(200,22,29,0); } }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center; padding: 16px;
  background: rgba(8,16,26,.92);
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__frame { width: min(100%, 1100px); aspect-ratio: 16 / 9; background: #000; border-radius: 10px; overflow: hidden; }
.lightbox__frame iframe { width: 100%; height: 100%; border: 0; }
.lightbox__close {
  position: absolute; top: 16px; right: 20px;
  width: 48px; height: 48px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.12); color: #fff; font-size: 30px; line-height: 1; cursor: pointer;
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav, .header__cta { display: none; }
  .burger {
    display: grid; gap: 6px; margin-left: auto; padding: 10px;
    background: none; border: 0; cursor: pointer;
  }
  .burger span { display: block; width: 26px; height: 2.5px; background: var(--ink); transition: transform .3s; }
  .header.is-open { background: #fff; }
  .header.is-open .burger span:first-child { transform: translateY(4px) rotate(45deg); }
  .header.is-open .burger span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .header.is-open .nav {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: var(--header-h); left: 0; right: 0;
    padding: 8px 16px 20px; background: #fff; box-shadow: 0 16px 24px -16px rgba(12,27,43,.3);
  }
  .header.is-open .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .header.is-open .nav a::after { display: none; }

  .hero { flex-direction: column; align-items: stretch; min-height: 0; }
  .hero__content { order: 1; padding: calc(var(--header-h) + 40px) 0 40px; }
  .hero .media--cover { position: relative; order: 2; inset: auto; aspect-ratio: 16 / 10; }
  .hero__shade, .scroll-hint { display: none; }

  /* Quy trình: các bước thành dải thẻ vuốt ngang dưới video */
  .process__ui { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "screen" "steps"; gap: 18px; }
  .steps {
    display: flex; gap: 10px; align-self: stretch;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin: 0 -16px; padding: 4px 16px 12px; scroll-padding: 0 16px;
  }
  .steps::-webkit-scrollbar { display: none; }
  .step { flex: 0 0 min(80%, 340px); scroll-snap-align: start; flex-direction: column; gap: 4px; padding: 14px 16px 16px; }
  .step p { max-height: none; margin-top: 2px; }
  .step.is-active p { margin-top: 2px; }

  .feature, .feature--rev { grid-template-columns: 1fr; min-height: 0; }
  .feature--rev .feature__media { order: 0; }
  .feature__media { min-height: 0; aspect-ratio: 16 / 10; }
  .feature__body { max-width: none; padding: 40px 16px 64px; width: min(100%, 720px); margin-inline: auto; }

  .tiers { grid-template-columns: 1fr; max-width: 560px; }
  .videos__grid { grid-template-columns: 1fr; }
  .flow__list { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .flow__list li::before { display: none; }
  .contact__inner { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .logo__text strong { font-size: 19px; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .stat { padding: 26px 14px; border-left: 0; border-top: 1px solid rgba(255,255,255,.12); }
  .stat:nth-child(odd) { padding-left: 0; }
  .stat:nth-child(-n+2) { border-top: 0; }
  .stat span { font-size: 13px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .media::after { left: 8px; bottom: 8px; font-size: 11px; max-width: calc(100% - 16px); }
  .vrow { grid-template-columns: 116px 1fr; }
  .vrow img { width: 116px; }
  .form { padding: 24px; }

  :root { --header-h: 64px; }
  .logo__img { height: 40px; }
  .section { padding: 64px 0; }
  .section__head { margin-bottom: 28px; }
  .process { padding: 64px 0; }
  .process__hint { font-size: 16px; }

  /* Danh mục: tab vuốt ngang một hàng, thẻ 2 cột gọn */
  .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 20px; padding: 0 16px; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: 0 0 auto; height: 44px; padding: 0 16px; font-size: 16px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card__body { padding: 10px 12px 14px; }
  .card__cat { font-size: 11px; }
  .card__body h3 { font-size: 17px; }
  .card__body p { font-size: 13px; line-height: 1.4; }
  .play { width: 42px; height: 42px; margin: -21px 0 0 -21px; box-shadow: 0 0 0 4px rgba(255,255,255,.35); }
  .play::after { left: 17px; top: 13px; border-left-width: 12px; border-top-width: 8px; border-bottom-width: 8px; }

  .feature__body { padding: 32px 16px 56px; }
  .tier { padding: 28px 22px; }
  .vid__cap b { font-size: 19px; }

  /* Quy trình hợp tác: hàng ngang gọn, số bên trái */
  .flow__list { grid-template-columns: 1fr; row-gap: 0; }
  .flow__list li { display: grid; grid-template-columns: 52px 1fr; column-gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .flow__list b { grid-row: span 2; margin: 0; }
  .flow__list h3 { margin: 2px 0 2px; font-size: 20px; }
  .flow__list p { margin: 0; }

  .contact__person a { font-size: 26px; }
  .contact__links .btn { flex: 1 1 0; }
  .float { right: 12px; bottom: 12px; }
  .float__btn { width: 48px; height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Nền section liên hệ chỉ để trang trí, không cần nút xem video */
.contact .still__play { display: none; }
