/* ============================================================
   MOS365.info — Redesign 2026
   Font: Be Vietnam Pro · Palette: Navy + Green (Office vibes)
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --navy-900: #081530;
  --navy-800: #0c2249;
  --navy-700: #123061;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-100: #dbeafe;
  --accent-600: #15803d;
  --accent-500: #22c55e;
  --accent-300: #4ade80;
  --red-500: #ef4444;
  --green-600: #059669;
  --green-100: #d1fae5;
  --ink: #0f172a;
  --muted: #5b6b84;
  --line: #e5ebf5;
  --bg: #ffffff;
  --bg-alt: #f4f7fc;
  --grad-brand: linear-gradient(115deg, #22c55e 0%, #16a34a 60%, #15803d 100%);
  --grad-text: linear-gradient(100deg, #22c55e 0%, #15803d 90%);
  --shadow-sm: 0 4px 14px -6px rgba(15, 42, 92, .16);
  --shadow-md: 0 18px 44px -20px rgba(15, 42, 92, .28);
  --shadow-lg: 0 32px 70px -30px rgba(15, 42, 92, .38);
  --radius: 20px;
  --radius-lg: 28px;
  --header-h: 72px;
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Be Vietnam Pro", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

svg { flex: none; }

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

section { scroll-margin-top: calc(var(--header-h) + 16px); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { line-height: 1.22; font-weight: 800; letter-spacing: -.015em; }

h1 { font-size: clamp(2rem, 4.6vw, 3.35rem); }
h2 { font-size: clamp(1.55rem, 3.2vw, 2.35rem); }
h3 { font-size: 1.12rem; font-weight: 700; }

.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead { font-size: 1.12rem; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font: inherit;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 13px 26px;
  white-space: nowrap;
  transition: transform .22s ease, box-shadow .22s ease, background-color .22s ease, border-color .22s ease, color .22s ease;
}

.btn svg { width: 19px; height: 19px; }

.btn-primary {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: 0 14px 30px -12px rgba(22, 163, 74, .5);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 38px -12px rgba(22, 163, 74, .58);
}

.btn-ghost {
  background: #fff;
  color: var(--ink);
  border: 1.5px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.btn-ghost:hover { border-color: var(--accent-500); color: var(--accent-600); transform: translateY(-2px); }

.btn-white { background: #fff; color: var(--navy-800); box-shadow: var(--shadow-md); }
.btn-white:hover { transform: translateY(-2px); }

.btn-zalo {
  background: linear-gradient(145deg, #3d92ff, #0068ff);
  color: #fff;
  box-shadow: 0 14px 30px -12px rgba(0, 104, 255, .7);
}

.btn-zalo:hover { transform: translateY(-2px); box-shadow: 0 20px 38px -12px rgba(0, 104, 255, .78); }

.btn-outline-light {
  background: transparent;
  color: #eaf1ff;
  border: 1.5px solid rgba(255, 255, 255, .35);
}

.btn-outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, .08); transform: translateY(-2px); }

.btn-lg { padding: 16px 32px; font-size: 1.02rem; }
.btn-sm { padding: 10px 20px; font-size: .92rem; }
.btn-block { width: 100%; }

/* ---------- Pills / Eyebrow ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent-600);
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.eyebrow-light { color: #bbf7d0; background: rgba(34, 197, 94, .16); border-color: rgba(34, 197, 94, .4); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: .84rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 999px;
}

.pill svg { width: 17px; height: 17px; }

.pill-green {
  color: #166534;
  background: linear-gradient(115deg, #f0fdf4, #dcfce7);
  border: 1px solid #bbf7d0;
  box-shadow: 0 6px 18px -10px rgba(34, 197, 94, .5);
}

/* ---------- Topbar ---------- */
.topbar {
  background: var(--navy-900);
  color: #c9d8f2;
  font-size: .84rem;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 40px;
}

.topbar-msg { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.topbar-msg svg { width: 15px; height: 15px; color: var(--accent-300); }

.topbar-contact { display: flex; align-items: center; gap: 22px; }

.topbar-contact a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  transition: color .2s;
}

.topbar-contact a:hover { color: #fff; }
.topbar-contact svg { width: 14px; height: 14px; color: var(--accent-500); }
.topbar-zalo svg { color: #5ca9ff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s ease, border-color .3s ease;
}

.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -18px rgba(15, 42, 92, .35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; }

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--grad-brand);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 800;
  box-shadow: 0 10px 22px -10px rgba(22, 163, 74, .55);
}

.brand-text { font-size: 1.28rem; letter-spacing: -.02em; line-height: 1; }
.brand-text b { color: var(--accent-600); }
.brand-text small { font-size: .82rem; color: var(--muted); font-weight: 700; }

.main-nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }

.main-nav > a:not(.btn) {
  position: relative;
  font-weight: 600;
  font-size: .95rem;
  color: #33415c;
  padding: 10px 13px;
  white-space: nowrap;
  transition: color .2s;
}

.main-nav > a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 4px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--grad-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}

.main-nav > a:not(.btn):hover { color: var(--accent-600); }
.main-nav > a:not(.btn):hover::after { transform: scaleX(1); }

.nav-cta { margin-left: 12px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  cursor: pointer;
  padding: 12px;
}

.nav-toggle span {
  display: block;
  height: 2.5px;
  border-radius: 3px;
  background: var(--navy-800);
  transition: transform .3s ease, opacity .2s ease;
}

body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(8, 21, 48, .5);
  backdrop-filter: blur(2px);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 72px 0 40px;
  background:
    radial-gradient(900px 480px at 88% -10%, rgba(59, 130, 246, .14), transparent 62%),
    radial-gradient(760px 460px at -8% 14%, rgba(34, 197, 94, .12), transparent 60%),
    linear-gradient(180deg, #f8faff 0%, #eef3fb 100%);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(18, 48, 97, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 48, 97, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 60% at 50% 0%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 0%, #000 0%, transparent 75%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  align-items: center;
  gap: 56px;
}

.hero-copy .pill-green { margin-bottom: 22px; }

.hero-copy h1 { margin-bottom: 18px; }

.hero-copy .lead { max-width: 54ch; margin-bottom: 26px; }

.check-list { list-style: none; display: grid; gap: 12px; margin-bottom: 30px; }

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-weight: 500;
  color: #2c3a55;
}

.check-list svg {
  width: 19px;
  height: 19px;
  margin-top: 3px;
  color: var(--green-600);
  background: var(--green-100);
  border-radius: 50%;
  padding: 3.5px;
}

.check-list b { color: var(--accent-600); }

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 20px; }

.hero-note { font-size: .92rem; color: var(--muted); }
.hero-note b { color: var(--navy-800); }

/* Hero media */
.hero-media { position: relative; }

.hero-photo-wrap { position: relative; }

.hero-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 6px solid #fff;
  transform: rotate(1.2deg);
}

.hero-photo img { width: 100%; height: 480px; object-fit: cover; }

.hero-photo-wrap::before {
  content: "";
  position: absolute;
  inset: auto -26px -26px auto;
  width: 62%;
  height: 62%;
  border-radius: var(--radius-lg);
  background: var(--grad-brand);
  opacity: .16;
  filter: blur(2px);
  z-index: -1;
}

.hero-photo-wrap::after {
  content: "";
  position: absolute;
  top: -26px;
  left: -26px;
  width: 55%;
  height: 55%;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at 30% 30%, rgba(37, 99, 235, .22), transparent 70%);
  z-index: -1;
}

/* Floating cards */
.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 11px;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .75);
  border-radius: 16px;
  padding: 12px 17px;
  font-size: .88rem;
  font-weight: 600;
  color: #22304d;
  box-shadow: var(--shadow-md);
  animation: floaty 6s ease-in-out infinite;
  z-index: 2;
}

.float-card b { color: var(--navy-800); }

.ico {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
}

.ico svg { width: 18px; height: 18px; }

.ico-green { background: var(--green-100); color: var(--green-600); }
.ico-blue { background: var(--blue-100); color: var(--blue-600); }
.ico-accent { background: #dcfce7; color: #16a34a; }

.float-1 { top: 26px; right: -18px; animation-delay: .4s; }
.float-2 { bottom: 92px; left: -30px; animation-delay: 1.4s; }
.float-3 { bottom: 18px; right: 22px; animation-delay: 2.2s; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* Stats strip */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 64px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 30px;
  box-shadow: var(--shadow-md);
}

.stat { text-align: center; padding: 6px 10px; }

.stat + .stat { border-left: 1px dashed var(--line); }

.stat-num {
  display: block;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -.02em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label { font-size: .88rem; color: var(--muted); font-weight: 500; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }

.section-alt {
  background:
    radial-gradient(760px 420px at 100% 0%, rgba(59, 130, 246, .08), transparent 60%),
    var(--bg-alt);
}

.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }

.section-head p { color: var(--muted); margin-top: 14px; }
.section-head p b { color: var(--navy-800); }

/* ---------- Courses ---------- */
.course-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 22px;
}

.course-card {
  grid-column: span 2;
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.course-card:nth-child(4) { grid-column: 2 / span 2; }

.course-card:hover {
  transform: translateY(-6px);
  border-color: #bbf7d0;
  box-shadow: var(--shadow-md);
}

.course-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 18px; }

.app-tile {
  position: relative;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 15px;
  color: #fff;
  font-size: 1.45rem;
  font-weight: 800;
  box-shadow: 0 10px 20px -10px rgba(15, 42, 92, .5);
}

.app-word { background: linear-gradient(145deg, #2b579a, #185abd); }
.app-excel { background: linear-gradient(145deg, #21a366, #107c41); }
.app-ppt { background: linear-gradient(145deg, #e35d3a, #c43e1c); }

.tile-star {
  position: absolute;
  top: -7px;
  right: -7px;
  width: 19px;
  height: 19px;
  color: #fbbf24;
  background: #fff;
  border-radius: 50%;
  padding: 2.5px;
  box-shadow: 0 4px 10px -3px rgba(0, 0, 0, .3);
}

.ribbon {
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #166534;
  background: linear-gradient(115deg, #dcfce7, #bbf7d0);
  border: 1px solid #86efac;
  padding: 5px 11px;
  border-radius: 999px;
}

.course-card h3 { margin-bottom: 8px; }

.course-card p { font-size: .92rem; color: var(--muted); margin-bottom: 20px; }

.course-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
}

.price { font-weight: 800; font-size: 1.12rem; color: var(--navy-800); }
.price small { font-size: .78rem; font-weight: 600; color: var(--muted); }

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: .92rem;
  color: var(--accent-600);
  transition: gap .2s ease;
}

.link-more svg { width: 16px; height: 16px; }
.link-more:hover { gap: 10px; }

/* ---------- About / overview ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

.about-copy { max-width: 840px; margin-inline: auto; }

.about-copy h2 { margin-bottom: 20px; }

.about-copy p { color: var(--muted); margin-bottom: 16px; }
.about-copy p b { color: var(--navy-800); }

.num-list { list-style: none; display: grid; gap: 14px; margin-top: 26px; }

.num-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 600;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 18px;
  box-shadow: var(--shadow-sm);
}

.num-list .num {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--grad-brand);
  color: #fff;
  font-weight: 800;
  font-size: .95rem;
}

.about-media { position: relative; }

.screen-frame {
  border-radius: 18px;
  overflow: hidden;
  background: #0e1c38;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, .08);
}

.screen-bar {
  display: flex;
  gap: 7px;
  padding: 12px 16px;
  background: #12224a;
}

.screen-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.screen-bar i:nth-child(2) { background: #febc2e; }
.screen-bar i:nth-child(3) { background: #28c840; }

.screen-frame img { width: 100%; }

.chip-1 { top: -20px; right: -14px; animation-delay: .6s; }
.chip-2 { bottom: -22px; left: -18px; animation-delay: 1.8s; }

/* ---------- Features ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-bottom: 56px;
}

.feature-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: #cfe0ff;
  box-shadow: var(--shadow-md);
}

.feat-ico {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  margin-bottom: 18px;
}

.feat-ico svg { width: 26px; height: 26px; }

.ico-morph { background: var(--blue-100); color: var(--blue-600); }
.ico-blue { background: #ede9fe; color: #7c3aed; }
.ico-green { background: var(--green-100); color: var(--green-600); }
.ico-accent { background: #dcfce7; color: #16a34a; }

.feature-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.feature-card p { font-size: .9rem; color: var(--muted); }

/* Screens / tabs */
.screens {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-md);
}

.screen-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.screen-tab {
  font: inherit;
  font-weight: 700;
  font-size: .95rem;
  color: #33415c;
  background: var(--bg-alt);
  border: 1.5px solid transparent;
  border-radius: 999px;
  padding: 10px 26px;
  cursor: pointer;
  transition: all .22s ease;
}

.screen-tab:hover { color: var(--accent-600); }

.screen-tab.active { color: #fff; }

/* Màu nút theo từng phần mềm khi được chọn */
.screen-tab[data-screen="word"].active {
  background: #2b579a;
  box-shadow: 0 12px 26px -12px rgba(43, 87, 154, .6);
}

.screen-tab[data-screen="excel"].active {
  background: var(--grad-brand);
  box-shadow: 0 12px 26px -12px rgba(22, 163, 74, .55);
}

.screen-tab[data-screen="powerpoint"].active {
  background: #c13b1b;
  box-shadow: 0 12px 26px -12px rgba(193, 59, 27, .6);
}

.screen-stage { position: relative; }

.screen {
  display: none;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  animation: fadeUp .45s ease;
}

.screen.active { display: block; }

.screen img { width: 100%; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.screen-caption {
  text-align: center;
  font-size: .92rem;
  color: var(--muted);
  margin-top: 18px;
}

/* ---------- Video giới thiệu ---------- */
.video-section {
  position: relative;
  padding: 110px 0 0;
  background:
    radial-gradient(900px 560px at 94% 12%, rgba(34, 197, 94, .16), transparent 60%),
    radial-gradient(860px 600px at 0% 108%, rgba(37, 99, 235, .26), transparent 64%),
    linear-gradient(165deg, #0a1c3d 0%, var(--navy-900) 100%);
  color: #e8efff;
  overflow: hidden;
}

/* Lưới mờ trang trí */
.video-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(75% 70% at 50% 40%, #000, transparent 90%);
  -webkit-mask-image: radial-gradient(75% 70% at 50% 40%, #000, transparent 90%);
  pointer-events: none;
}

.video-head {
  position: relative;
  z-index: 2;
  max-width: 840px;
  margin-inline: auto;
  text-align: center;
}

.video-head h2 { color: #fff; margin-bottom: 18px; }

.video-lead {
  color: #c9d8f2;
  font-size: 1.06rem;
  max-width: 62ch;
  margin-inline: auto;
}

/* Check-list dạng thẻ kính */
.check-list.video-points {
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 1040px;
  margin: 30px auto 0;
}

.check-list.video-points li {
  align-items: center;
  gap: 13px;
  font-weight: 600;
  color: #dfe9fb;
  text-align: left;
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 16px;
  padding: 15px 18px;
  transition: transform .2s ease, border-color .2s ease, background-color .2s ease;
}

.check-list.video-points li:hover {
  transform: translateX(5px);
  border-color: rgba(74, 222, 128, .5);
  background: rgba(255, 255, 255, .09);
}

.check-list.video-points li svg {
  width: 30px;
  height: 30px;
  margin-top: 0;
  padding: 7px;
  box-sizing: border-box;
  color: var(--accent-300);
  background: rgba(34, 197, 94, .16);
  border: 1px solid rgba(74, 222, 128, .38);
}

.check-list.video-points li b { color: #86efac; }

.video-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 34px; }

/* Hàng số liệu thực tế */
.video-facts {
  display: flex;
  justify-content: center;
  margin: 34px auto 0;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  max-width: 680px;
}

.vfact {
  flex: 1;
  min-width: 0;
  padding: 0 26px;
  border-left: 1px solid rgba(255, 255, 255, .12);
  text-align: center;
}

.vfact:first-child { padding-left: 0; border-left: 0; }

.vfact b {
  display: block;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -.01em;
  color: #fff;
  line-height: 1.25;
}

.vfact span {
  font-size: .8rem;
  font-weight: 600;
  color: #93a9cc;
  line-height: 1.45;
}

/* Sân khấu: hào quang phía sau điện thoại */
.video-media { position: relative; margin-top: 44px; }

.video-stage {
  position: relative;
  display: flex;
  justify-content: center;
  width: max-content;
  max-width: 100%;
  margin-inline: auto;
  padding: 46px 42px 54px;
}

.video-stage::before {
  content: "";
  position: absolute;
  inset: -54px -64px;
  background:
    radial-gradient(closest-side at 46% 42%, rgba(34, 197, 94, .3), transparent 72%),
    radial-gradient(closest-side at 74% 80%, rgba(59, 130, 246, .3), transparent 74%);
  filter: blur(34px);
  border-radius: 999px;
  animation: glowPulse 7s ease-in-out infinite alternate;
  pointer-events: none;
}

/* Vòng orbit mảnh đồng tâm quanh điện thoại */
.video-stage::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 132%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .09);
  box-shadow:
    0 0 0 30px rgba(255, 255, 255, .025),
    0 0 0 31px rgba(255, 255, 255, .06);
  pointer-events: none;
}

@keyframes glowPulse {
  from { opacity: .55; transform: scale(.96); }
  to { opacity: 1; transform: scale(1.03); }
}

/* Khung điện thoại dọc 9:16 */
.video-phone {
  position: relative;
  z-index: 1;
  width: clamp(300px, 52vw, 400px);
  margin-inline: auto;
  background: linear-gradient(180deg, #14213f 0%, #0a1224 100%);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 44px;
  padding: 11px;
  box-shadow:
    0 70px 130px -48px rgba(0, 0, 0, .85),
    0 0 0 9px rgba(255, 255, 255, .035),
    inset 0 1px 0 rgba(255, 255, 255, .16);
}

/* Nút bấm hai bên máy */
.phone-btn {
  position: absolute;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, #3a4d78, #1b2745);
}

.phone-btn-mute { top: 15%; height: 24px; right: -4px; }
.phone-btn-vol { top: 22%; height: 52px; right: -4px; }
.phone-btn-power { top: 24%; height: 72px; left: -4px; }

.video-phone::before {
  content: "";
  position: absolute;
  top: 23px;
  left: 50%;
  transform: translateX(-50%);
  width: 82px;
  height: 22px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 78% 50%, #2c4067 2.4px, transparent 3.4px),
    #050a14;
  z-index: 3;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, .12);
}

.video-wrap {
  position: relative;
  border-radius: 34px;
  overflow: hidden;
  background: #000;
}

.video-wrap video {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: #000;
}

/* Ánh sáng quét nhẹ trên video */
.video-wrap::after {
  content: "";
  position: absolute;
  top: -70%;
  left: -90%;
  width: 55%;
  height: 240%;
  transform: rotate(24deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .12), transparent);
  animation: shineSweep 7s ease-in-out infinite;
  pointer-events: none;
}

@keyframes shineSweep {
  0%, 10% { left: -90%; }
  46%, 100% { left: 175%; }
}

.video-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  border: 0;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(180deg, rgba(5, 12, 26, .44) 0%, rgba(5, 12, 26, .08) 32%, rgba(5, 12, 26, .12) 60%, rgba(5, 12, 26, .8) 100%);
  transition: background .3s ease;
}

.video-overlay:hover {
  background: linear-gradient(180deg, rgba(5, 12, 26, .52) 0%, rgba(5, 12, 26, .14) 32%, rgba(5, 12, 26, .18) 60%, rgba(5, 12, 26, .84) 100%);
}

/* Pill nhỏ góc trên overlay */
.overlay-pill {
  position: absolute;
  top: 14px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .05em;
  color: #dbe7ff;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(5, 12, 26, .55);
  border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(8px);
}

.overlay-pill svg { width: 13px; height: 13px; color: var(--accent-300); }

.overlay-dur { left: 14px; }
.overlay-water { right: 14px; }

.water-mark {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 5px;
  font-size: .62rem;
  font-weight: 800;
  color: #073719;
  background: linear-gradient(135deg, #4ade80, #16a34a);
}

.play-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: var(--grad-brand);
  box-shadow: 0 24px 52px -14px rgba(22, 163, 74, .72), inset 0 1.5px 0 rgba(255, 255, 255, .38);
  transition: transform .25s ease, box-shadow .25s ease;
}

.play-btn svg { width: 33px; height: 33px; margin-left: 4px; }

/* Vòng trắng ôm nút play */
.play-btn::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .8);
}

/* Nhịp lan nhẹ từ nút play */
.play-btn::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .55);
  animation: playPulse 2.6s ease-out infinite;
}

@keyframes playPulse {
  0% { transform: scale(.96); opacity: .9; }
  75%, 100% { transform: scale(1.45); opacity: 0; }
}

.video-overlay:hover .play-btn {
  transform: scale(1.07);
  box-shadow: 0 28px 60px -14px rgba(22, 163, 74, .85), inset 0 1.5px 0 rgba(255, 255, 255, .38);
}

.play-label {
  font-weight: 800;
  font-size: 1.06rem;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .6);
}

.play-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  font-weight: 600;
  padding: 7px 15px;
  border-radius: 999px;
  background: rgba(5, 12, 26, .52);
  border: 1px solid rgba(255, 255, 255, .2);
  backdrop-filter: blur(8px);
}

/* Thanh tiến trình trang trí dưới overlay */
.overlay-bar {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: .68rem;
  font-weight: 600;
  color: rgba(255, 255, 255, .8);
}

.ob-track {
  flex: 1;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .24);
  overflow: hidden;
}

.ob-track i {
  display: block;
  width: 28%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-500), #4ade80);
}

/* Chip nổi trên nền tối */
.chip-dark {
  background: rgba(13, 27, 54, .88);
  border: 1px solid rgba(255, 255, 255, .18);
  color: #e8efff;
  backdrop-filter: blur(10px);
  box-shadow: 0 24px 50px -22px rgba(0, 0, 0, .8);
}

.chip-dark b { color: #fff; }

.chip-video-1 { top: 36px; right: calc(100% - 74px); white-space: nowrap; animation-delay: .5s; }
.chip-video-2 { bottom: 132px; left: calc(100% - 74px); white-space: nowrap; animation-delay: 1.7s; }

/* Dải chữ chạy cuối section */
.video-marquee {
  position: relative;
  margin-top: 84px;
  padding: 17px 0;
  border-top: 1px solid rgba(255, 255, 255, .1);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 34s linear infinite;
}

.marquee-group {
  display: flex;
  align-items: center;
  gap: 30px;
  padding-right: 30px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #8fa5c9;
  white-space: nowrap;
}

.marquee-group i { color: var(--accent-500); font-style: normal; font-size: .72rem; }

@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Cert ---------- */
.cert-grid {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 64px;
  align-items: center;
}

.cert-media { position: relative; }

.cert-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 8px solid #fff;
  box-shadow: var(--shadow-lg);
  transform: rotate(-1.5deg);
}

.cert-badge {
  position: absolute;
  filter: drop-shadow(0 18px 26px rgba(15, 42, 92, .3));
  animation: floaty 7s ease-in-out infinite;
}

.cert-badge-1 { width: clamp(84px, 10vw, 118px); bottom: -26px; left: -20px; animation-delay: .8s; transform: rotate(-6deg); }
.cert-badge-2 { width: clamp(88px, 11vw, 126px); top: -30px; right: -16px; animation-delay: 2s; transform: rotate(5deg); }

.cert-copy h2 { margin-bottom: 16px; }
.cert-copy > p { color: var(--muted); margin-bottom: 26px; }

.feature-list { list-style: none; display: grid; gap: 15px; margin-bottom: 32px; }

.feature-list li { display: flex; gap: 12px; align-items: flex-start; }

.feature-list svg {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  color: var(--green-600);
}

.feature-list span { color: #33415c; }
.feature-list b { color: var(--navy-800); }

.cert-cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.gallery-item {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}

.gallery-item:hover img { transform: scale(1.07); }

.gallery-item figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 38px 18px 15px;
  font-size: .9rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(8, 21, 48, .88));
  transform: translateY(8px);
  opacity: .95;
  transition: transform .3s ease;
}

.gallery-item:hover figcaption { transform: translateY(0); }

/* ---------- Register ---------- */
.register {
  position: relative;
  padding: 100px 0;
  background:
    radial-gradient(820px 460px at 12% 0%, rgba(34, 197, 94, .16), transparent 58%),
    radial-gradient(760px 500px at 95% 100%, rgba(37, 99, 235, .22), transparent 60%),
    linear-gradient(160deg, var(--navy-800) 0%, var(--navy-900) 100%);
  color: #e8efff;
  overflow: hidden;
}

.register::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(75% 70% at 50% 40%, #000, transparent 90%);
  -webkit-mask-image: radial-gradient(75% 70% at 50% 40%, #000, transparent 90%);
  pointer-events: none;
}

.register-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.02fr;
  gap: 64px;
  align-items: center;
}

.register-copy h2 { color: #fff; margin-bottom: 22px; }

.price-callout { font-size: 1.05rem; color: #a7f3d0; font-weight: 600; }

.price-big {
  font-size: clamp(3rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.02em;
  background: linear-gradient(100deg, #4ade80, #22c55e 55%, #16a34a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 26px;
}

.price-big span { font-size: .38em; color: #9fb4dc; -webkit-text-fill-color: #9fb4dc; font-weight: 700; }

.check-list-light li { color: #c9d8f2; }
.check-list-light b { color: #86efac; }

.register-contact { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* Form */
.register-form {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 34px 32px;
  color: var(--ink);
  box-shadow: var(--shadow-lg);
}

.register-form h3 { font-size: 1.35rem; margin-bottom: 6px; }
.form-sub { font-size: .9rem; color: var(--muted); margin-bottom: 24px; }

.field { margin-bottom: 18px; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.field label,
.field legend {
  display: block;
  font-size: .88rem;
  font-weight: 700;
  margin-bottom: 7px;
  color: #22304d;
}

.field label em { color: var(--red-500); font-style: normal; }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field textarea {
  width: 100%;
  font: inherit;
  font-size: .95rem;
  color: var(--ink);
  background: var(--bg-alt);
  border: 1.5px solid var(--line);
  border-radius: 13px;
  padding: 12px 15px;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.field textarea { resize: vertical; min-height: 84px; }

.field input:focus,
.field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--accent-500);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, .16);
}

.field input.invalid,
.field textarea.invalid {
  border-color: var(--red-500);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, .12);
}

.field input::placeholder,
.field textarea::placeholder { color: #9aa8bf; }

.fieldset, fieldset.field { border: 0; }

.chip-group { display: flex; flex-wrap: wrap; gap: 9px; }

.chip input { position: absolute; opacity: 0; pointer-events: none; }

.chip span {
  display: inline-block;
  font-size: .86rem;
  font-weight: 600;
  color: #33415c;
  background: var(--bg-alt);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
  transition: all .2s ease;
  user-select: none;
}

.chip span:hover { border-color: #bbf7d0; color: var(--accent-600); }

.chip input:checked + span {
  background: var(--grad-brand);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 18px -8px rgba(22, 163, 74, .55);
}

.chip input:focus-visible + span { box-shadow: 0 0 0 4px rgba(34, 197, 94, .28); }

.form-note { font-size: .82rem; color: var(--muted); text-align: center; margin-top: 14px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: #9fb4dc;
  font-size: .93rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.25fr;
  gap: 44px;
  padding: 68px 0 48px;
}

.brand-footer .brand-text { color: #fff; }
.brand-footer .brand-text small { color: #7e93bb; }

.footer-brand p { margin-top: 18px; max-width: 34ch; line-height: 1.75; }

.footer-col h4 {
  color: #fff;
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 18px;
}

.footer-col ul { list-style: none; display: grid; gap: 11px; }

.footer-col ul a { transition: color .2s; }
.footer-col ul a:hover { color: #86efac; }

.footer-contact li { display: flex; align-items: flex-start; gap: 10px; }
.footer-contact svg { width: 16px; height: 16px; margin-top: 4px; color: var(--accent-500); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .09);
  padding: 20px 0;
  font-size: .84rem;
  color: #7e93bb;
  text-align: center;
}

/* ---------- Floating buttons ---------- */
.float-zalo {
  position: fixed;
  right: 24px;
  bottom: 94px;
  z-index: 60;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(145deg, #3d92ff, #0068ff);
  color: #fff;
  box-shadow: 0 16px 34px -12px rgba(0, 104, 255, .7);
  transition: transform .22s ease;
}

.float-zalo svg { width: 26px; height: 26px; }
.float-zalo:hover { transform: translateY(-3px) scale(1.04); }

.float-call {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(145deg, #22c55e, #059669);
  color: #fff;
  box-shadow: 0 16px 34px -12px rgba(5, 150, 105, .65);
  transition: transform .22s ease;
}

.float-call svg { width: 25px; height: 25px; }
.float-call:hover { transform: translateY(-3px) scale(1.04); }

.float-call::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2.5px solid rgba(34, 197, 94, .55);
  animation: pulse 2.2s ease-out infinite;
}

@keyframes pulse {
  0% { transform: scale(.85); opacity: 1; }
  75%, 100% { transform: scale(1.28); opacity: 0; }
}

.back-top {
  position: fixed;
  right: 25px;
  bottom: 164px;
  z-index: 60;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(8px);
  color: var(--navy-800);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: transform .22s ease, color .22s ease;
}

.back-top svg { width: 20px; height: 20px; }
.back-top:hover { transform: translateY(-3px); color: var(--accent-600); }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 70;
  display: flex;
  align-items: flex-start;
  gap: 13px;
  max-width: 380px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 20px;
  box-shadow: var(--shadow-lg);
  animation: toastIn .4s cubic-bezier(.2, .8, .3, 1.1);
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(18px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.toast-ico {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-600);
}

.toast-ico svg { width: 19px; height: 19px; }

.toast-body b { display: block; font-size: .97rem; }
.toast-body span { font-size: .87rem; color: var(--muted); }

/* ---------- Hidden state (must beat display rules) ---------- */
.toast[hidden],
.back-top[hidden],
.nav-overlay[hidden],
.video-overlay[hidden] { display: none !important; }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
  will-change: opacity, transform;
}

.reveal.in { opacity: 1; transform: none; }

/* ---------- Giao diện sáng / tối ---------- */
.theme-toggle {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--navy-800);
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease, background-color .2s ease, transform .35s ease;
}

.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle:hover { border-color: var(--accent-500); color: var(--accent-600); transform: rotate(18deg); }
.theme-toggle:focus-visible { outline: 3px solid rgba(34, 197, 94, .45); outline-offset: 2px; }
.theme-toggle .ico-moon { display: none; }

html[data-theme="dark"] {
  --bg: #0b1220;
  --bg-alt: #101b33;
  --ink: #e8efff;
  --muted: #9fb0cc;
  --line: #22304d;
  --green-100: rgba(34, 197, 94, .16);
  --blue-100: rgba(59, 130, 246, .2);
  --grad-text: linear-gradient(100deg, #4ade80 0%, #22c55e 90%);
  --shadow-sm: 0 4px 14px -6px rgba(0, 0, 0, .5);
  --shadow-md: 0 18px 44px -20px rgba(0, 0, 0, .6);
  --shadow-lg: 0 32px 70px -30px rgba(0, 0, 0, .72);
  color-scheme: dark;
}

html[data-theme="dark"] .site-header { background: rgba(11, 18, 32, .88); }
html[data-theme="dark"] .site-header.scrolled { box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .65); }

html[data-theme="dark"] .main-nav > a:not(.btn) { color: #c9d8f2; }
html[data-theme="dark"] .main-nav > a:not(.btn):hover,
html[data-theme="dark"] .brand-text b,
html[data-theme="dark"] .check-list b,
html[data-theme="dark"] .link-more,
html[data-theme="dark"] .screen-tab:hover { color: var(--accent-300); }

html[data-theme="dark"] .nav-toggle { background: #141f3a; border-color: var(--line); }
html[data-theme="dark"] .nav-toggle span { background: #dfe8ff; }

html[data-theme="dark"] .theme-toggle { background: #141f3a; color: #e8efff; }
html[data-theme="dark"] .theme-toggle:hover { color: var(--accent-300); }
html[data-theme="dark"] .theme-toggle .ico-sun { display: none; }
html[data-theme="dark"] .theme-toggle .ico-moon { display: block; }

html[data-theme="dark"] .hero {
  background:
    radial-gradient(900px 480px at 88% -10%, rgba(59, 130, 246, .16), transparent 62%),
    radial-gradient(760px 460px at -8% 14%, rgba(34, 197, 94, .12), transparent 60%),
    linear-gradient(180deg, #0c1528 0%, #0a1122 100%);
}

html[data-theme="dark"] .hero::before {
  background-image:
    linear-gradient(rgba(148, 178, 255, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 178, 255, .06) 1px, transparent 1px);
}

html[data-theme="dark"] .eyebrow {
  color: #86efac;
  background: rgba(34, 197, 94, .12);
  border-color: rgba(34, 197, 94, .35);
}

html[data-theme="dark"] .pill-green {
  color: #86efac;
  background: linear-gradient(115deg, rgba(34, 197, 94, .16), rgba(34, 197, 94, .08));
  border-color: rgba(34, 197, 94, .35);
}

html[data-theme="dark"] .btn-ghost { background: rgba(255, 255, 255, .04); border-color: var(--line); color: var(--ink); }
html[data-theme="dark"] .btn-ghost:hover { color: var(--accent-300); }

html[data-theme="dark"] .check-list li,
html[data-theme="dark"] .feature-list span,
html[data-theme="dark"] .screen-tab,
html[data-theme="dark"] .chip span { color: #c9d8f2; }

html[data-theme="dark"] .hero-photo,
html[data-theme="dark"] .cert-photo { border-color: #1c2b4d; }

html[data-theme="dark"] .float-card {
  background: rgba(16, 26, 48, .94);
  border-color: rgba(255, 255, 255, .09);
  color: #dfe8ff;
}

html[data-theme="dark"] .float-card b { color: #fff; }

html[data-theme="dark"] .hero-note b,
html[data-theme="dark"] .section-head p b,
html[data-theme="dark"] .price,
html[data-theme="dark"] .about-copy p b,
html[data-theme="dark"] .feature-list b { color: #eef4ff; }

html[data-theme="dark"] .stats-strip,
html[data-theme="dark"] .course-card,
html[data-theme="dark"] .feature-card,
html[data-theme="dark"] .num-list li,
html[data-theme="dark"] .screens,
html[data-theme="dark"] .toast { background: #0f1b33; }

html[data-theme="dark"] .course-card:hover { border-color: rgba(74, 222, 128, .5); }

html[data-theme="dark"] .ribbon {
  color: #86efac;
  background: rgba(34, 197, 94, .14);
  border-color: rgba(34, 197, 94, .35);
}

html[data-theme="dark"] .tile-star { background: #16233f; }
html[data-theme="dark"] .ico-accent { background: rgba(34, 197, 94, .16); }

html[data-theme="dark"] .check-list svg,
html[data-theme="dark"] .feature-list svg,
html[data-theme="dark"] .toast-ico { color: #34d399; }

html[data-theme="dark"] .register-form { background: #0f1b33; border: 1px solid var(--line); }

html[data-theme="dark"] .field label,
html[data-theme="dark"] .field legend { color: #dfe8ff; }

html[data-theme="dark"] .field input[type="text"],
html[data-theme="dark"] .field input[type="email"],
html[data-theme="dark"] .field input[type="tel"],
html[data-theme="dark"] .field textarea { background: #0b1528; }

html[data-theme="dark"] .field input:focus,
html[data-theme="dark"] .field textarea:focus { background: #0c1730; }

html[data-theme="dark"] .chip span:hover { border-color: rgba(74, 222, 128, .5); color: var(--accent-300); }

html[data-theme="dark"] .back-top { background: rgba(15, 27, 51, .95); color: #dfe8ff; }
html[data-theme="dark"] .back-top:hover { color: var(--accent-300); }

@media (max-width: 1024px) {
  .theme-toggle { margin-left: auto; }
  html[data-theme="dark"] .main-nav { background: #0d1830; box-shadow: -24px 0 60px -30px rgba(0, 0, 0, .75); }
}

/* ---------- Responsive ---------- */
@media (max-width: 1152px) {
  /* Màn hình hẹp: chip nằm trong video, sát mép (tránh bị cắt khỏi màn hình) */
  .chip-video-1 { right: auto; left: 50px; }
  .chip-video-2 { left: auto; right: 50px; }
}

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 64px; }
  .hero-photo img { height: 420px; }
  .float-2 { left: 8px; }
  .float-1 { right: 8px; }
  .about-grid,
  .cert-grid,
  .register-grid { grid-template-columns: 1fr; gap: 52px; }
  .main-nav > a:not(.btn) { padding: 10px 9px; font-size: .92rem; }
  .nav-cta { margin-left: 8px; }
  .check-list.video-points { grid-template-columns: 1fr; max-width: 560px; }
  .video-media { margin-top: 30px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .course-grid { grid-template-columns: repeat(4, 1fr); }
  .course-card { grid-column: span 2; }
  .course-card:nth-child(4) { grid-column: span 2; }
  .course-card:nth-child(5) { grid-column: 2 / span 2; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1024px) {
  :root { --header-h: 64px; }
  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 45;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    width: min(320px, 84vw);
    height: 100dvh;
    background: #fff;
    padding: 92px 22px 32px;
    transform: translateX(105%);
    transition: transform .35s cubic-bezier(.2, .8, .3, 1);
    box-shadow: -24px 0 60px -30px rgba(15, 42, 92, .5);
    overflow-y: auto;
  }
  .main-nav > a:not(.btn) { padding: 14px 10px; font-size: 1.02rem; border-bottom: 1px solid var(--line); }
  .main-nav > a:not(.btn)::after { display: none; }
  .nav-cta { margin: 18px 0 0; justify-content: center; }
  body.nav-open .main-nav { transform: translateX(0); }
  .nav-toggle { display: flex; position: relative; z-index: 46; }
  .topbar-contact .topbar-mail { display: none; }
  .section { padding: 72px 0; }
  .register { padding: 76px 0; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 20px; }
  .stat + .stat { border-left: 0; }
  .stat:nth-child(even) { border-left: 1px dashed var(--line); }
  .screen-frame { border-radius: 14px; }
}

@media (max-width: 620px) {
  .container { width: min(1200px, 100% - 36px); }
  .hero { padding: 52px 0 32px; }
  .hero-photo img { height: 320px; }
  .hero-photo { transform: none; }
  .float-card { font-size: .78rem; padding: 10px 13px; border-radius: 13px; }
  .float-3 { display: none; }
  .float-2 { bottom: 12px; left: 6px; }
  .float-1 { top: 12px; right: 6px; }
  .stats-strip { margin-top: 48px; }
  .course-grid { grid-template-columns: 1fr; }
  .course-card,
  .course-card:nth-child(4),
  .course-card:nth-child(5) { grid-column: auto; }
  .feature-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .screens { padding: 20px 14px; border-radius: 20px; }
  .register-form { padding: 26px 20px; border-radius: 22px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; padding: 52px 0 40px; }
  .cert-badge-1 { left: -6px; }
  .cert-badge-2 { right: -4px; }
  .topbar-msg svg { display: none; }
  .topbar-contact .topbar-zalo { display: none; }
  .float-zalo { right: 16px; bottom: 80px; width: 54px; height: 54px; }
  .float-call { right: 16px; bottom: 16px; width: 54px; height: 54px; }
  .back-top { right: 20px; bottom: 144px; }
  .toast { right: 14px; left: 14px; bottom: 84px; max-width: none; }
  .video-section { padding: 76px 0 0; }
  .video-stage { padding: 26px 12px 32px; }
  .chip-video-1 { top: 12px; left: -10px; }
  .chip-video-2 { bottom: 26px; right: -10px; }
  .chip-video-1,
  .chip-video-2 { font-size: .76rem; padding: 9px 12px; border-radius: 13px; }
  .check-list.video-points li { padding: 12px 14px; }
  .play-btn { width: 66px; height: 66px; }
  .play-btn svg { width: 27px; height: 27px; }
  .play-btn::before,
  .play-btn::after { inset: -9px; }
  .overlay-dur, .overlay-water { top: 12px; font-size: .66rem; }
  .overlay-dur { left: 12px; }
  .overlay-water { right: 12px; }
  .overlay-bar { bottom: 12px; left: 12px; right: 12px; }
  .video-facts { max-width: none; margin-top: 26px; padding-top: 20px; }
  .vfact { padding: 0 12px; }
  .vfact b { font-size: 1.1rem; }
  .vfact span { font-size: .74rem; }
  .video-marquee { margin-top: 56px; padding: 14px 0; }
  .marquee-group { gap: 22px; padding-right: 22px; font-size: .72rem; letter-spacing: .1em; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
