/* ============================================================
   TuAI Vietnam — v2.css  (Art Direction Layer)
   Load order: tokens -> main -> sections -> refresh -> v2
   Nguyên tắc: nền tối sâu, tương phản bằng độ trắng (không bằng màu),
   1 màu nhấn vàng thương hiệu + 1 màu phụ cyan. Bo góc lớn, viền 1px
   rgba(255,255,255,.08), đổ bóng nhiều lớp có inset highlight.
   ============================================================ */

/* ---------------- 1. TOKENS V2 ---------------- */
:root {
  --bg-0: #04060d;
  --bg-1: #070b15;
  --surface: #0a1020;
  --surface-2: #0e1628;
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .16);
  --fg: #f2f5fa;
  --fg-2: rgba(226, 233, 244, .74);
  --fg-3: rgba(198, 210, 228, .52);
  --accent: #f8c008;
  --accent-2: #ffd75e;
  --cyan: #22c6ff;
  --radius-1: 12px;
  --radius-2: 18px;
  --radius-3: 26px;
  --shadow-1: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 18px 50px -24px rgba(0, 0, 0, .95);
  --shadow-2: 0 1px 0 rgba(255, 255, 255, .07) inset, 0 40px 90px -40px rgba(0, 80, 248, .55);
  --sh-accent: 0 12px 34px -12px rgba(248, 192, 8, .55);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --dur-2: 480ms;
  /* override token cũ */
  --container: 1180px;
  --container-wide: 1340px;
  --section-y: clamp(72px, 8.5vw, 132px);
}

/* ---------------- 2. CANVAS ---------------- */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg-0);
  color: var(--fg);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* lớp nền cố định: aurora + lưới mờ + nhiễu hạt */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(60% 40% at 78% -6%, rgba(0, 80, 248, .20), transparent 60%),
    radial-gradient(48% 36% at 6% 8%, rgba(34, 198, 255, .10), transparent 62%),
    radial-gradient(70% 50% at 50% 108%, rgba(0, 80, 248, .12), transparent 65%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .5;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .028) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .028) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(85% 60% at 50% 0%, #000 25%, transparent 78%);
  -webkit-mask-image: radial-gradient(85% 60% at 50% 0%, #000 25%, transparent 78%);
}

/* hạt nhiễu rất nhẹ để nền không bị "phẳng" */
.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* đốm sáng đi theo con trỏ */
.spot {
  position: fixed;
  width: 620px;
  height: 620px;
  left: 0;
  top: 0;
  z-index: 1;
  pointer-events: none;
  transform: translate3d(-50%, -50%, 0);
  background: radial-gradient(circle, rgba(0, 140, 248, .10), transparent 62%);
  opacity: 0;
  transition: opacity 600ms var(--ease);
  will-change: transform;
}
body.has-pointer .spot { opacity: 1; }

main, header, footer { position: relative; z-index: 2; }

/* thanh tiến trình cuộn */
.progress {
  position: fixed;
  left: 0;
  top: 0;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan), var(--accent));
  z-index: 300;
  pointer-events: none;
}

/* ---------------- 3. TYPE ---------------- */
h1, h2, h3, h4, .h1, .h2, .h3 {
  font-family: var(--font-display);
  color: var(--fg);
  text-wrap: balance;
}
.hero__title, .h1 {
  font-size: clamp(38px, 5.4vw, 74px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.038em;
}
h2, .h2 {
  font-size: clamp(28px, 3.3vw, 47px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.03em;
}
h3 { letter-spacing: -.018em; }
.hero__sub, .lead {
  color: var(--fg-2);
  font-size: clamp(16px, 1.22vw, 19px);
  line-height: 1.66;
  letter-spacing: -.005em;
}
.muted { color: var(--fg-3); }

.eyebrow {
  font-family: var(--font-mono, ui-monospace, "JetBrains Mono", monospace);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--cyan);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan));
}

.grad-text {
  background: linear-gradient(96deg, #ffffff 0%, #b9e6ff 42%, #22c6ff 78%, #0050f8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------------- 4. LAYOUT ---------------- */
.section {
  position: relative;
  padding-block: var(--section-y);
  background: transparent;
}
.section > .container { position: relative; z-index: 2; }

/* đường phân cách mảnh thay cho khối nền đổi màu */
.section + .section::before {
  content: "";
  position: absolute;
  inset-inline: 8%;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .12), transparent);
}

.section-head { max-width: 780px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head .lead { margin-top: 14px; max-width: 66ch; }

/* ---------------- 5. NAV ---------------- */
.nav {
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 400ms var(--ease), border-color 400ms var(--ease), backdrop-filter 400ms;
}
.nav.is-stuck {
  background: rgba(4, 6, 13, .72);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  border-bottom-color: var(--line);
  box-shadow: 0 18px 40px -30px rgba(0, 0, 0, .9);
}
.nav::after { opacity: 0; }
.nav__inner { height: 66px; }
.nav__links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-2);
  padding: 8px 12px;
  border-radius: 999px;
  transition: color 200ms, background 200ms;
}
.nav__links a:hover { color: var(--fg); background: rgba(255, 255, 255, .05); }
.nav__links a.is-active { color: var(--fg); }
.nav__links a.is-active::after {
  content: "";
  display: block;
  height: 2px;
  margin-top: 6px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--accent));
}
.brand__mark { filter: drop-shadow(0 4px 16px rgba(34, 198, 255, .4)); }

/* ---------------- 6. BUTTON ---------------- */
.btn {
  --btn-h: 46px;
  position: relative;
  height: var(--btn-h);
  padding-inline: 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: -.01em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  overflow: hidden;
  transition: transform 220ms var(--ease), box-shadow 260ms var(--ease), background 220ms, border-color 220ms, color 220ms;
  will-change: transform;
}
.btn--lg { --btn-h: 54px; padding-inline: 28px; font-size: 15.5px; }
.btn--sm { --btn-h: 38px; padding-inline: 16px; font-size: 13.5px; }

.btn--primary {
  background: linear-gradient(180deg, #ffd42a 0%, var(--accent) 55%, #e0a900 100%);
  color: #14100a;
  border: 1px solid rgba(255, 255, 255, .35);
  box-shadow: var(--sh-accent), 0 1px 0 rgba(255, 255, 255, .5) inset;
}
.btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .65) 48%, transparent 66%);
  transform: translateX(-120%);
  transition: transform 700ms var(--ease);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px -14px rgba(248, 192, 8, .68), 0 1px 0 rgba(255, 255, 255, .5) inset;
}
.btn--primary:hover::after { transform: translateX(120%); }

.btn--ghost {
  background: rgba(255, 255, 255, .04);
  color: var(--fg);
  border: 1px solid var(--line-strong);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, .09);
  border-color: rgba(255, 255, 255, .3);
  transform: translateY(-2px);
}
.btn--blue {
  background: linear-gradient(180deg, #2b73ff, #0050f8);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: 0 14px 34px -14px rgba(0, 80, 248, .8);
}

/* ---------------- 7. HERO ---------------- */
.hero, .night {
  background: transparent;
  padding-top: clamp(88px, 12vh, 132px);
}
.night::after { display: none; }
.hero .grain { display: none; }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: clamp(28px, 4.4vw, 56px);
  align-items: center;
}
.hero__title { margin-bottom: 20px; line-height: 1.06; }
.hero__title span { display: block; }
.hero__sub { max-width: 46ch; }

.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; }
.chip {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--fg-2);
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line);
}
.chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  display: inline-block;
  margin-right: 8px;
  vertical-align: middle;
}

/* sân khấu ảnh sản phẩm */
.hero__stage {
  position: relative;
  perspective: 1800px;
  isolation: isolate;
}
.stage__glow {
  position: absolute;
  inset: -14% -10% -18%;
  z-index: 0;
  background:
    radial-gradient(52% 46% at 62% 26%, rgba(0, 140, 248, .42), transparent 68%),
    radial-gradient(38% 34% at 22% 78%, rgba(248, 192, 8, .22), transparent 70%);
  filter: blur(34px);
  opacity: .95;
  animation: glowPulse 9s ease-in-out infinite alternate;
}
@keyframes glowPulse {
  from { opacity: .72; transform: scale(.98); }
  to { opacity: 1; transform: scale(1.04); }
}

.shot {
  position: relative;
  z-index: 1;
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: var(--shadow-2), 0 0 0 1px rgba(0, 0, 0, .6);
  transform: rotateY(-7deg) rotateX(2.2deg) translateZ(0);
  transform-origin: 60% 50%;
  transition: transform 900ms var(--ease), box-shadow 600ms var(--ease);
  will-change: transform;
}
.shot:hover { transform: rotateY(-2deg) rotateX(.8deg); }
.shot img { display: block; width: 100%; height: auto; }

.shot__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  background: rgba(10, 16, 32, .96);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.shot__bar .dot { width: 9px; height: 9px; border-radius: 50%; background: #2a3448; }
.shot__bar .dot:first-child { background: #ff5f57; }
.shot__bar .dot:nth-child(2) { background: #febc2e; }
.shot__bar .dot:nth-child(3) { background: #28c840; }
.shot__url {
  margin-left: 8px;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  color: var(--fg-3);
  padding: 3px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .05);
}
.shot__live {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #57e39b;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.shot__live i {
  width: 6px; height: 6px; border-radius: 50%; background: #57e39b;
  box-shadow: 0 0 0 0 rgba(87, 227, 155, .6);
  animation: pulseDot 2.4s ease-out infinite;
}
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(87, 227, 155, .55); }
  70% { box-shadow: 0 0 0 10px rgba(87, 227, 155, 0); }
  100% { box-shadow: 0 0 0 0 rgba(87, 227, 155, 0); }
}

/* thẻ nổi trên ảnh */
.float {
  position: absolute;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(10, 16, 32, .82);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 24px 50px -22px rgba(0, 0, 0, .95);
  animation: floatY 7s ease-in-out infinite;
}
.float b { font-size: 18px; letter-spacing: -.02em; color: var(--fg); }
.float span { font-size: 11.5px; color: var(--fg-3); }
.float--a { left: -6%; bottom: 16%; animation-delay: -1.4s; }
.float--b { right: -4%; top: 13%; animation-delay: -3.2s; }
.float--b b { color: var(--accent); }
.float--c {
  right: 4%;
  bottom: -5%;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--fg-2);
  animation-delay: -5s;
}
.float--c .pulse {
  width: 7px; height: 7px; border-radius: 50%; background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(34, 198, 255, .6);
  animation: pulseDot 2.4s ease-out infinite;
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* hero meta strip */
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: clamp(34px, 5vw, 62px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--fg-3);
}
.hero-meta b { color: var(--fg-2); font-weight: 600; }

/* ---------------- 8. NUMBERS ---------------- */
.numbers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: clamp(40px, 6vw, 72px);
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-2);
  overflow: hidden;
}
.numbers .stat {
  padding: 26px 22px;
  background: rgba(8, 13, 24, .72);
  transition: background 300ms;
}
.numbers .stat:hover { background: rgba(14, 22, 40, .9); }
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.1vw, 44px);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}
.stat--accent .stat__num {
  background: linear-gradient(180deg, #fff, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat__label { margin-top: 8px; font-size: 12.5px; color: var(--fg-3); }

/* ---------------- 9. CARD SURFACES ---------------- */
.card, .bcap, .case, .gov-item, .crow__stage, .layer, .contrast__card,
.flow-cards > *, .plan, .form-card, .closing-card, .faq__item, .deploy > * {
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015));
  border: 1px solid var(--line);
  border-radius: var(--radius-2);
  box-shadow: var(--shadow-1);
  transition: transform 380ms var(--ease), border-color 300ms, box-shadow 380ms var(--ease), background 300ms;
}
.card:hover, .bcap:hover, .case:hover, .gov-item:hover, .plan:hover, .closing-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, .2);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .1) inset, 0 34px 70px -34px rgba(0, 0, 0, .95), 0 0 60px -30px rgba(34, 198, 255, .5);
}
.card__ico, .bcap__ico, .gov-item .ring__no {
  color: var(--cyan);
}

/* ---------------- 10. PRODUCT TOUR ---------------- */
.tour {
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  gap: clamp(28px, 4.5vw, 60px);
  align-items: center;
}
.tour__media { position: relative; }
.tour__media .shot { transform: none; }
.tour__media .shot:hover { transform: translateY(-4px); }
.tour__frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 50px 90px -50px rgba(0, 0, 0, 1), 0 0 90px -40px rgba(0, 80, 248, .6);
  background: var(--surface);
}
.tour__frame img { display: block; width: 100%; height: auto; }

.tour__list { display: flex; flex-direction: column; gap: 10px; }
.tour__item {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  padding: 18px;
  border-radius: var(--radius-1);
  border: 1px solid transparent;
  transition: background 300ms, border-color 300ms;
}
.tour__item:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015));
  border-color: var(--line);
}
.tour__no {
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  padding-top: 3px;
  letter-spacing: .06em;
}
.tour__item h3 { font-size: 16.5px; font-weight: 700; margin-bottom: 4px; }
.tour__item p { font-size: 13.8px; line-height: 1.6; color: var(--fg-3); }

/* ---------------- 11. MARQUEE ---------------- */
.marquee {
  position: relative;
  overflow: hidden;
  padding: 18px 0;
  border-block: 1px solid var(--line);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track {
  display: flex;
  gap: 42px;
  width: max-content;
  animation: slideX 34s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--fg-3);
  display: inline-flex;
  align-items: center;
  gap: 42px;
  white-space: nowrap;
}
.marquee__item::after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .22);
}
@keyframes slideX {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------------- 12. MOTION UTILS ---------------- */
.motion-ready [data-anim] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.motion-ready [data-anim].is-in { opacity: 1; transform: none; }
[data-anim="fade"] { transform: none; }
[data-anim="left"] { transform: translateX(-26px); }
[data-anim="scale"] { transform: scale(.96); }

/* phần tử con của lưới: hiện so le */
.motion-ready .stagger > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 640ms var(--ease), transform 640ms var(--ease);
}
.stagger.is-in > * { opacity: 1; transform: none; }
.stagger.is-in > *:nth-child(1) { transition-delay: 40ms; }
.stagger.is-in > *:nth-child(2) { transition-delay: 110ms; }
.stagger.is-in > *:nth-child(3) { transition-delay: 180ms; }
.stagger.is-in > *:nth-child(4) { transition-delay: 250ms; }
.stagger.is-in > *:nth-child(5) { transition-delay: 320ms; }
.stagger.is-in > *:nth-child(6) { transition-delay: 390ms; }
.stagger.is-in > *:nth-child(7) { transition-delay: 460ms; }
.stagger.is-in > *:nth-child(8) { transition-delay: 530ms; }
.stagger.is-in > *:nth-child(n+9) { transition-delay: 580ms; }

.tilt { transition: transform 500ms var(--ease); will-change: transform; }

/* ---------------- 13. REFINEMENTS ---------------- */
.plans { grid-template-columns: repeat(3, 1fr); gap: 14px; }
.plans > .plan:nth-child(4),
.plans > .plan:nth-child(5) { grid-column: span 1; }
.plan--hot {
  background: linear-gradient(180deg, rgba(248, 192, 8, .10), rgba(255, 255, 255, .02));
  border-color: rgba(248, 192, 8, .45);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .1) inset, 0 40px 80px -40px rgba(248, 192, 8, .35);
}
.plan__name { font-family: var(--font-display); font-weight: 800; letter-spacing: -.02em; }

.faq__item { border-radius: var(--radius-1); margin-bottom: 10px; }
.faq__btn { font-weight: 600; }

.footer { border-top: 1px solid var(--line); background: rgba(4, 6, 13, .9); }

.field .inp, .inp {
  background: rgba(255, 255, 255, .035);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--fg);
  transition: border-color 200ms, background 200ms, box-shadow 200ms;
}
.inp:focus {
  border-color: rgba(34, 198, 255, .55);
  background: rgba(255, 255, 255, .06);
  box-shadow: 0 0 0 4px rgba(34, 198, 255, .12);
  outline: none;
}

/* ---------------- 14. RESPONSIVE ---------------- */
@media (max-width: 1100px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__stage { max-width: 720px; }
  .shot { transform: none; }
  .float--a { left: 2%; bottom: 8%; }
  .float--b { right: 2%; top: 6%; }
  .tour { grid-template-columns: 1fr; }
  .numbers { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .numbers { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: 1fr; }
  .float--a, .float--b { display: none; }
  .float--c { right: 3%; bottom: -3%; }
  .hero__title { letter-spacing: -.028em; }
  .section + .section::before { inset-inline: 4%; }
}

/* ---------------- 15. REDUCED MOTION ---------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-anim], .stagger > * { opacity: 1 !important; transform: none !important; }
  .spot { display: none; }
  .marquee__track { animation: none; }
  .shot, .shot--tilt { transform: none !important; }
}

/* ---------------- 16. EXPERTS GALLERY (chuyên gia & kết nối) ---------------- */
.xfig { margin: 0; }
.xfig__wrap { position: relative; perspective: 1600px; }

/* ảnh sản phẩm: nghiêng 3D như ảnh đầu trang, tương tác theo con trỏ */
.shot--tilt {
  transform-origin: 50% 100%;
  transition: transform 180ms cubic-bezier(.2, .7, .3, 1), box-shadow 300ms var(--ease);
  will-change: transform;
}
.shot--tilt:hover {
  z-index: 6;
  box-shadow: 0 56px 110px -40px rgba(0, 0, 0, .95), 0 0 0 1px rgba(255, 255, 255, .2);
}

.xstack { display: grid; gap: 112px; margin-top: 60px; }
.xrow { max-width: 1080px; margin-inline: auto; position: relative; }
.xrow .shot { width: 100%; }

.xcap {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  margin-top: 22px;
  padding-inline: 2px;
}
.xcap__no {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .02em;
  color: var(--accent-ink, #04060d);
  background: var(--accent, #f8c008);
}
.xcap h3 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--fg);
}
.xcap p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .82);
}

@media (max-width: 900px) {
  .xstack { gap: 32px; }
}


/* ---------------- 17. KHUNG ẢNH GỌN — HOVER PHÓNG TO ĐỌC ĐƯỢC ----------------
   Nguyên tắc: hộp .zb giữ kích thước NHỎ (không chiếm chỗ trong bố cục),
   ảnh bên trong có width = hộp / --k nên vẫn được render ở độ phân giải ĐẦY ĐỦ
   (nét), rồi thu nhỏ bằng transform. Khi hover: scale -> 1, ảnh bung ra đúng
   kích thước đọc được, kèm nghiêng 3D theo con trỏ. */
.zb {
  --k: .78;
  --zb-ar: 1.47;
  position: relative;
  width: var(--zb-w, 100%);
  aspect-ratio: var(--zb-ar);
  margin-inline: auto;
  overflow: visible;
}
.zb > .shot,
.zb > .tour__frame {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  width: calc(100% / var(--k));
  max-width: none;
  margin: 0;
  transform-origin: 50% 50%;
  transform: scale(var(--k));
  transition: transform 190ms cubic-bezier(.2, .7, .3, 1), box-shadow 300ms var(--ease);
  will-change: transform;
  z-index: 2;
}
.zb > .shot { transform: scale(var(--k)) rotateY(-7deg) rotateX(2.2deg); }
.zb:hover > .shot { transform: scale(1) rotateY(-2deg) rotateX(.8deg); }
.zb:hover > .tour__frame { transform: scale(1); }
.zb:hover > .shot,
.zb:hover > .tour__frame {
  z-index: 40;
  box-shadow: 0 60px 120px -40px rgba(0, 0, 0, .96), 0 0 0 1px rgba(255, 255, 255, .2),
              0 0 90px -30px rgba(0, 120, 248, .55);
}

/* gợi ý nhỏ, mờ dần khi hover */
.zeal {
  position: absolute;
  left: 50%;
  bottom: -26px;
  translate: -50% 0;
  z-index: 5;
  font-size: 11px;
  letter-spacing: .04em;
  color: rgba(255, 255, 255, .55);
  white-space: nowrap;
  pointer-events: none;
  transition: opacity 200ms ease;
}
.zb:hover .zeal { opacity: 0; }

/* kích thước gọn cho từng ngữ cảnh */
.zb--hero { --zb-w: min(100%, 468px); --k: .78; }
.zb--tour { --zb-w: min(100%, 470px); --k: .81; --zb-ar: 1.66; }
.zb--x    { --zb-w: min(100%, 764px); --k: .707; --zb-ar: 1.49; }

/* ảnh lớn (hero) đang che chữ -> hạ z-index của khối, hover mới nâng lên */
.hero__stage { z-index: 3; }
.hero__stage .zb:hover { z-index: 20; }

/* thẻ nổi: bám theo khung ảnh gọn, ẩn khi phóng to để không che ảnh */
.zb--hero .float { z-index: 6; }
.zb--hero:hover .float { opacity: 0; }
.float { transition: opacity 220ms ease; }
.zb--hero .float--a { left: -7%; bottom: 12%; }
.zb--hero .float--b { right: -6%; top: 10%; }
.zb--hero .float--c { right: 2%; bottom: -6%; }

/* experts: xếp gọn lại */
.xstack { gap: 72px; }
.xrow { width: 100%; max-width: 1080px; justify-self: center; }
.xrow .shot { width: calc(100% / var(--k)); }
.xcap { margin-top: 26px; }

/* tour: khung ảnh gọn, canh giữa cột */
.tour__media { display: flex; justify-content: center; }
.tour__frame { box-shadow: 0 40px 80px -50px rgba(0,0,0,1), 0 0 70px -40px rgba(0,80,248,.5); }

@media (max-width: 980px) {
  .zb { width: 100%; --k: 1; aspect-ratio: auto; }
  .zb > .shot,
  .zb > .tour__frame {
    position: relative;
    left: auto; top: auto;
    translate: none;
    width: 100%;
    transform: none;
  }
  .zeal { position: static; translate: none; display: block; margin-top: 10px; text-align: center; }
  .xstack { gap: 36px; }
  .zb--hero .float, .zb--tour .zeal { display: none; }
  .hero__stage .zb { max-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .zb > .shot, .zb > .tour__frame { transition: none; }
  .zb > .shot { transform: scale(var(--k)); }
  .zb:hover > .shot { transform: scale(1); }
}


/* ============================================================
   19. HỆ THỐNG ẢNH THỐNG NHẤT — một bộ số dùng cho MỌI ảnh
   ------------------------------------------------------------
   Trước đây mỗi khối tự đặt thông số riêng:
     hero  --k .78, ar 1.47 | tour --k .81, ar 1.66 | experts --k .707, ar 1.49
   => ảnh to nhỏ khác nhau, biên độ phóng khác nhau, khung lệch tỉ lệ
      so với ảnh thật (1.664) nên có khoảng trống thừa trên/dưới.
   Nay: một nguồn duy nhất.
     --shot-rest : bề rộng hiển thị lúc nghỉ (khung chiếm chỗ trong bố cục)
     --shot-k    : tỉ lệ thu nhỏ; hover -> scale(1) nên zoom = 1/--shot-k
     --shot-ar   : tỉ lệ khung = tỉ lệ THẬT của ảnh + thanh cửa sổ
   => cùng kích thước, cùng biên độ phóng (1.39x), cùng góc nghiêng,
      cùng thời lượng, cùng nhịp dọc.
   ============================================================ */
:root {
  --shot-rest: 460px;
  --shot-k: .5625;          /* hover = scale(1) => zoom 1/0.5625 = 1.78x  (biên độ cũ .72 = 1.39x) */
  --shot-ar: 1.481;
}

/* khung: MỘT kích thước cho mọi ngữ cảnh (hero / tour / experts) */
.zb,
.zb--hero,
.zb--tour,
.zb--x {
  --k: var(--shot-k);
  --zb-ar: var(--shot-ar);
  width: min(100%, var(--shot-rest));
  aspect-ratio: var(--shot-ar);
  margin-inline: auto;
  box-sizing: content-box;
}

/* ảnh bên trong: render ở cỡ ĐẦY ĐỦ rồi thu nhỏ -> hover vẫn nét */
.zb > .shot {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  width: calc(100% / var(--shot-k));
  max-width: none;
  margin: 0;
  transform-origin: 50% 50%;
  transform: scale(var(--shot-k)) rotateY(-7deg) rotateX(2.2deg);
  transition: transform 190ms cubic-bezier(.2, .7, .3, 1), box-shadow 300ms var(--ease);
  will-change: transform;
  z-index: 2;
}
.tour__media .shot {
  position: absolute;
  transform: scale(var(--shot-k)) rotateY(-7deg) rotateX(2.2deg);
  transition: transform 190ms cubic-bezier(.2, .7, .3, 1), box-shadow 300ms var(--ease);
}
.zb:hover > .shot,
.tour__media .zb:hover > .shot {
  transform: scale(1) rotateY(-2deg) rotateX(.8deg);
  z-index: 40;
  box-shadow: 0 56px 110px -40px rgba(0, 0, 0, .95),
              0 0 0 1px rgba(255, 255, 255, .2),
              0 0 80px -30px rgba(0, 120, 248, .5);
}

/* bỏ các lệnh cũ còn sót làm lệch ảnh */
.xrow .shot { width: calc(100% / var(--shot-k)); }

/* experts: ảnh trái — chú thích phải, cùng bề rộng ảnh với các khối khác */
.xstack { max-width: 100%; gap: 64px; margin-top: 52px; }
.xrow {
  display: grid;
  grid-template-columns: var(--shot-rest) minmax(0, 1fr);
  gap: 112px;                /* > biên độ nở 89.5px -> ảnh phóng to không đè chữ */
  align-items: center;
  max-width: 1000px;
  margin-inline: auto;
}
.xfig__wrap { width: var(--shot-rest); }
.xcap {
  max-width: 100%;
  margin: 0;
  align-self: center;
}

/* sân khấu hero: không cho khối ảnh nhỏ hơn phần cột */
.hero__stage { max-width: min(100%, 700px); }

@media (max-width: 980px) {
  .zb,
  .zb--hero,
  .zb--tour,
  .zb--x {
    --k: 1;
    width: 100%;
    aspect-ratio: auto;
  }
  .zb > .shot,
  .tour__media .shot {
    position: relative;
    left: auto;
    top: auto;
    translate: none;
    width: 100%;
    transform: none;
  }
  .xrow,
  .xcap { max-width: 100%; }
  .xrow { display: block; }
  .xfig__wrap { width: 100%; }
  .xcap { margin-top: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .zb > .shot,
  .tour__media .shot { transition: none; }
  .zb > .shot,
  .tour__media .shot { transform: scale(var(--shot-k)) rotateY(-7deg) rotateX(2.2deg); }
  .zb:hover > .shot { transform: scale(1); }
}


/* ============================================================
   20. HOVER ZOOM x2 — ảnh phóng to gấp đôi biên độ cũ (1.39x -> 1.78x)
   ------------------------------------------------------------
   Chỉ đổi --shot-k (một biến). Bố cục lúc nghỉ KHÔNG đổi.
   Vì ảnh phóng lớn hơn cột, khi hover:
     - ảnh được nâng lên lớp trên (z-index) để không bị chữ đè
     - chú thích bị ảnh che -> tự mờ đi (opacity .18) để không rối mắt
     - JS giữ ảnh nằm trong khung nhìn (không tạo thanh cuộn ngang)
   ============================================================ */
.xcap,
.tour__list {
  transition: opacity 220ms var(--ease);
}
.xrow.zooming .xcap,
.tour.zooming .tour__list {
  opacity: .18;
}

/* nâng khối ảnh lên trên chữ khi phóng to */
.tour__media { position: relative; }
.tour.zooming .tour__media { z-index: 5; }
.xrow.zooming .xfig__wrap { z-index: 5; }

/* ảnh phóng to: bóng đậm hơn để tách khỏi nền khi đè lên nội dung */
.zb:hover > .shot,
.zb:hover > .tour__frame {
  box-shadow: 0 70px 150px -50px rgba(0, 0, 0, .98),
              0 0 0 1px rgba(255, 255, 255, .24),
              0 0 110px -30px rgba(0, 120, 248, .55);
}

@media (max-width: 980px) {
  .xrow.zooming .xcap,
  .tour.zooming .tour__list { opacity: 1; }
}
