/* ==========================================================================
   Aetervie — Landing page phần mềm giải pháp doanh nghiệp
   Design system: MINIMALIST MODERN — ELECTRIC BLUE
   Một mặt chữ duy nhất: Inter
   ---------------------------------------------------------------------------
   BỐ CỤC: theo ngôn ngữ trình bày của apple.com/vn/iphone/
     · dòng promo mảnh trên cùng
     · H1 khổng lồ đặt giữa, CTA ngay dưới
     · dải chapter-nav dính, cuộn ngang
     · các BAND full-bleed đổi nền luân phiên (sáng / muted / đảo màu)
     · lưới tile 2-up và 3-up, nội dung canh giữa
     · carousel cuộn ngang có snap
     · số liệu cỡ lớn đặt giữa
   KHÔNG đổi style: token màu, Inter, gradient, bo góc, bóng, pill, nút, form
   và footer đều giữ nguyên như trước.
   ========================================================================== */

/* ------------------------------------------------------------- FONT ----- */
/* Self-host, chỉ subset latin + vietnamese. Một mặt chữ duy nhất. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/inter-vietnamese.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1,
    U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329,
    U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ------------------------------------------------------ DESIGN TOKENS --- */
:root {
  /* Color — theo đúng bảng token của design system */
  --background: #fafafa;
  --foreground: #0f172a;
  --muted: #f1f5f9;
  --muted-foreground: #64748b;
  --muted-foreground-strong: #5a6577; /* dùng trên nền --muted */
  --accent: #0052ff;
  --accent-secondary: #4d7cff;
  --accent-secondary-strong: #3563ff;
  --accent-foreground: #ffffff;
  --border: #e2e8f0;
  --card: #ffffff;
  --ring: #0052ff;

  /* Signature gradient.
     --gradient dùng cho MẶT NỀN có chữ trắng nằm trên -> đầu cuối đủ đậm
     (trắng trên #4D7CFF chỉ 3.72:1, trượt AA).
     --gradient-text giữ tông nhạt của spec, CHỈ dùng cho tiêu đề cỡ lớn. */
  --gradient: linear-gradient(135deg, var(--accent), var(--accent-secondary-strong));
  --gradient-text: linear-gradient(to right, var(--accent), var(--accent-secondary));

  /* Typography */
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Radii */
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;
  --r-full: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
  --shadow-accent: 0 4px 14px rgba(0, 82, 255, 0.25);
  --shadow-accent-lg: 0 8px 24px rgba(0, 82, 255, 0.35);

  /* Layout */
  --maxw: 72rem; /* max-w-6xl */
  --gut: 20px;
  --band-y: 84px;
  --nav-h: 64px;
}

@media (min-width: 768px) {
  :root {
    --gut: 32px;
    --band-y: 132px;
    --nav-h: 72px;
  }
}

/* ------------------------------------------------------------- RESET ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* Focus/anchor không bị thanh nav dính che (WCAG 2.4.11) */
  scroll-padding-top: calc(var(--nav-h) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1,
h2,
h3,
p,
ul,
figure {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

section[id] {
  scroll-margin-top: calc(var(--nav-h) + 20px);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--foreground);
  color: var(--background);
  padding: 14px 20px;
  font-weight: 600;
  border-radius: 0 0 var(--r-sm) 0;
}

.skip-link:focus {
  left: 0;
}

/* -------------------------------------------------------- TYPOGRAPHY ---- */
/* Canh giữa và cỡ lớn — đặc trưng bố cục Apple */
h1 {
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(2.75rem, 1.55rem + 4.8vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

h2 {
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(1.875rem, 1.28rem + 2.4vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

h3 {
  font-family: var(--font);
  font-weight: 600;
  font-size: clamp(1.125rem, 1.03rem + 0.4vw, 1.5rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.lead {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--muted-foreground);
}

@media (min-width: 768px) {
  .lead {
    font-size: 1.1875rem;
    line-height: 1.75;
  }
}

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

/* ------------------------------------------------------ SECTION LABEL --- */
.label-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(0, 82, 255, 0.3);
  background: rgba(0, 82, 255, 0.05);
  border-radius: var(--r-full);
  padding: 8px 18px;
  margin-bottom: 26px;
}

.label-pill__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
  animation: pulse-dot 2s ease-in-out infinite;
}

.label-pill__text {
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
}

@keyframes pulse-dot {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.3);
    opacity: 0.7;
  }
}

/* Khối tiêu đề section — canh giữa, như Apple */
.band-head {
  max-width: 44rem;
  margin-inline: auto;
  text-align: center;
  margin-bottom: 56px;
}

.band-head h2 {
  margin-bottom: 18px;
}

/* ------------------------------------------------------------ BUTTON ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: var(--r);
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease-out;
}

.btn--primary {
  background: var(--gradient);
  color: var(--accent-foreground);
  box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent-lg);
  filter: brightness(1.1);
}

.btn--primary:active {
  transform: scale(0.98);
}

.btn--sm {
  min-height: 42px;
  padding: 11px 18px;
  font-size: 0.875rem;
}

.btn--block {
  width: 100%;
}

.btn[disabled] {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  filter: none;
}

.btn__icon {
  width: 18px;
  height: 18px;
  flex: none;
  transition: transform 0.2s ease-out;
}

.btn:hover .btn__icon {
  transform: translateX(4px);
}

/* Link chữ kèm mũi tên — kiểu "Tìm hiểu thêm >" của Apple */
.link-chevron {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--accent);
  transition: gap 0.2s ease-out;
}

.link-chevron svg {
  width: 15px;
  height: 15px;
  flex: none;
  stroke: currentColor;
  transition: transform 0.2s ease-out;
}

.link-chevron:hover {
  text-decoration: underline;
}

.link-chevron:hover svg {
  transform: translateX(3px);
}

/* ------------------------------------------------- NAV (thanh toàn cục) - */
/* MỘT tầng nav duy nhất, theo bố cục global nav của Apple:
     thương hiệu bên trái — 4 link mục lục ở giữa — nút CTA bên phải.
   Trước đây có thêm dải "chapternav" thứ hai ngay dưới, gây trùng nội dung. */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(250, 250, 250, 0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  flex: 1;
}

.brand__mark {
  width: 34px;
  height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--gradient);
  box-shadow: var(--shadow-accent);
}

.brand__mark svg {
  width: 19px;
  height: 19px;
  stroke: var(--accent-foreground);
}

.nav__links {
  display: none;
  align-items: center;
  gap: 2px;
}

.nav__links a {
  padding: 10px 14px;
  border-radius: var(--r-sm);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: all 0.2s ease-out;
}

.nav__links a:hover {
  color: var(--foreground);
  background: var(--muted);
}

.nav__links a.is-active {
  color: var(--accent);
  background: rgba(0, 82, 255, 0.08);
}

.nav__actions {
  display: flex;
  flex: 1;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.nav__toggle {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--card);
  cursor: pointer;
}

.nav__toggle svg {
  width: 20px;
  height: 20px;
  stroke: var(--foreground);
}

.nav__toggle .icon-close {
  display: none;
}

.nav__toggle[aria-expanded="true"] .icon-burger {
  display: none;
}

.nav__toggle[aria-expanded="true"] .icon-close {
  display: block;
}

.nav__burger {
  flex: 0 0 auto;
}

@media (min-width: 920px) {
  .nav__links {
    display: flex;
  }

  .nav__burger {
    display: none;
  }
}

@media (max-width: 919px) {
  .nav__links.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    left: 12px;
    right: 12px;
    top: calc(100% + 8px);
    gap: 2px;
    padding: 8px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-xl);
  }

  .nav__links.is-open a {
    padding: 14px;
  }
}

/* --------------------------------------------------------------- HERO --- */
.promo {
  border-bottom: 1px solid var(--border);
}

.promo p {
  padding-block: 16px;
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  max-width: 62rem;
  margin-inline: auto;
}

.promo a {
  color: var(--accent);
  font-weight: 500;
  text-decoration: underline;
}

.hero {
  position: relative;
  padding-top: 64px;
  padding-bottom: 72px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -300px;
  left: 50%;
  transform: translateX(-50%);
  width: 720px;
  height: 720px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.07;
  filter: blur(150px);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  text-align: center;
}

.hero h1 {
  margin-bottom: 22px;
}

.hero .lead {
  max-width: 44rem;
  margin-inline: auto;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px 28px;
  margin-top: 34px;
}

.hero__underline {
  position: relative;
  display: inline-block;
  isolation: isolate;
}

.hero__underline::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.06em;
  height: 0.16em;
  border-radius: 3px;
  background: linear-gradient(
    to right,
    rgba(0, 82, 255, 0.18),
    rgba(77, 124, 255, 0.1)
  );
  z-index: -1;
}

@media (min-width: 992px) {
  .hero {
    padding-top: 88px;
    padding-bottom: 84px;
  }
}

/* ------------------------------------------- HERO GRAPHIC (động) -------- */
.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  margin-top: 64px;
  min-height: 300px;
}

.hero-art__ring {
  position: absolute;
  width: min(112%, 620px);
  aspect-ratio: 1;
  border: 1px dashed rgba(0, 82, 255, 0.26);
  border-radius: 50%;
  animation: spin-slow 60s linear infinite;
  pointer-events: none;
}

.hero-art__ring--inner {
  width: min(86%, 470px);
  border-style: dotted;
  border-color: rgba(77, 124, 255, 0.2);
  animation-duration: 44s;
  animation-direction: reverse;
}

.hero-art__dots {
  position: absolute;
  top: 2%;
  right: 6%;
  width: 54px;
  height: 54px;
  background-image: radial-gradient(
    circle,
    var(--accent) 2.5px,
    transparent 2.5px
  );
  background-size: 20px 20px;
  opacity: 0.32;
  pointer-events: none;
}

.hero-art__block {
  position: absolute;
  left: 4%;
  bottom: 6%;
  width: 64px;
  height: 64px;
  border-radius: var(--r);
  background: var(--accent);
  box-shadow: var(--shadow-accent-lg);
  pointer-events: none;
}

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 11px 16px;
  font-size: 0.8125rem;
  font-weight: 500;
  box-shadow: var(--shadow-xl);
  z-index: 2;
}

.float-card svg {
  width: 15px;
  height: 15px;
  flex: none;
  stroke: var(--accent);
}

.float-card--tl {
  top: 0;
  left: 0;
  animation: float-a 5s ease-in-out infinite;
}

.float-card--br {
  bottom: 2%;
  right: 0;
  animation: float-b 4s ease-in-out infinite;
}

/* Mockup rộng 720px nên trên màn nhỏ (<700px) thẻ trôi sẽ đè lên nội dung — ẩn đi */
@media (max-width: 700px) {
  .float-card {
    display: none;
  }

  .hero-art__ring {
    width: min(104%, 420px);
  }

  .hero-art__block {
    width: 48px;
    height: 48px;
  }
}

@keyframes float-a {
  0%,
  100% {
    transform: translateY(-10px);
  }
  50% {
    transform: translateY(10px);
  }
}

@keyframes float-b {
  0%,
  100% {
    transform: translateY(10px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes spin-slow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* ------------------------------------------- DASHBOARD MOCKUP ----------- */
.mock {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 720px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
  box-shadow: var(--shadow-xl);
  text-align: left;
}

.mock__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.mock__dots {
  display: flex;
  gap: 5px;
}

.mock__dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
}

.mock__title {
  font-family: var(--font);
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--muted-foreground);
}

.mock__badge {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--accent);
  background: rgba(0, 82, 255, 0.07);
  border-radius: var(--r-full);
  padding: 4px 10px;
}

.mock__badge i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 3s ease-in-out infinite;
}

.mock__kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.kpi {
  background: var(--muted);
  border-radius: var(--r-sm);
  padding: 11px;
}

.kpi__label {
  font-family: var(--font);
  font-size: 0.625rem;
  font-weight: 500;
  color: var(--muted-foreground-strong);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kpi__value {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-top: 2px;
}

.kpi__delta {
  font-size: 0.625rem;
  font-weight: 600;
  color: #15803d;
}

.kpi__delta--down {
  color: #b45309;
}

.mock__chart {
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 13px 12px 11px;
}

.mock__chart-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
  font-size: 0.625rem;
  font-weight: 500;
  color: var(--muted-foreground);
}

.mock__bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 92px;
}

.mock__bars i {
  flex: 1;
  min-height: 6px;
  border-radius: 3px 3px 1px 1px;
  background: var(--muted);
}

.mock__bars i:nth-child(n + 9) {
  background: var(--gradient);
}

.mock__rows {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}

.mock__row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--muted);
  border-radius: var(--r-sm);
  padding: 10px 12px;
  font-size: 0.8125rem;
}

.mock__row strong {
  font-weight: 500;
}

.mock__row span {
  margin-left: auto;
  font-size: 0.625rem;
  font-weight: 500;
  color: var(--muted-foreground-strong);
}

.mock__row i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  flex: none;
}

.mock__row i.warn {
  background: #f59e0b;
}

@media (max-width: 480px) {
  .mock {
    padding: 14px 12px;
  }

  .mock__title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mock__kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .kpi {
    padding: 8px 6px;
  }

  .kpi__label {
    font-size: 0.5625rem;
  }

  .kpi__value {
    font-size: 0.875rem;
  }

  .kpi__delta {
    font-size: 0.5625rem;
  }

  .mock__rows {
    gap: 6px;
  }

  .mock__row {
    padding: 8px 10px;
    font-size: 0.75rem;
  }

  .mock__row span {
    font-size: 0.5625rem;
  }
}

/* -------------------------------------------------------------- BAND ---- */
/* Band full-bleed, đổi nền luân phiên để tạo nhịp như Apple */
.band {
  padding-block: var(--band-y);
}

.band--muted {
  background: var(--muted);
}

.band--inverted {
  position: relative;
  background-color: var(--foreground);
  color: var(--background);
  background-image: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.03) 1px,
    transparent 1px
  );
  background-size: 32px 32px;
  overflow: hidden;
}

.band--inverted::before,
.band--inverted::after {
  content: "";
  position: absolute;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: var(--accent);
  filter: blur(150px);
  pointer-events: none;
}

.band--inverted::before {
  top: -240px;
  left: -180px;
  opacity: 0.06;
}

.band--inverted::after {
  bottom: -280px;
  right: -160px;
  opacity: 0.05;
}

.band--inverted > .container {
  position: relative;
  z-index: 1;
}

.band--inverted h2,
.band--inverted h3 {
  color: var(--background);
}

.band--inverted .lead {
  color: rgba(255, 255, 255, 0.85);
}

.band--inverted .label-pill {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
}

.band--inverted .label-pill__text {
  color: #9db6ff;
}

.band--inverted .label-pill__dot {
  background: #9db6ff;
}

.band--inverted :focus-visible {
  outline-color: #9db6ff;
}

/* ---------------------------------------------------------- STAT ROW ---- */
.statrow {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .statrow {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .statrow {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-card {
  position: relative;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-lg);
  padding: 36px 22px;
  text-align: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.8), transparent);
  pointer-events: none;
}

.stat-card:hover {
  transform: translateY(-6px);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 24px 48px rgba(0, 82, 255, 0.28), 0 0 24px rgba(56, 189, 248, 0.2);
}

.stat-card__icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: #38BDF8;
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover .stat-card__icon {
  transform: scale(1.1);
  background: rgba(56, 189, 248, 0.2);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.35);
}

.stat-card__icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
}

.stat__num {
  font-family: var(--font);
  font-weight: 800;
  font-size: clamp(2.4rem, 1.8rem + 2vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #FFFFFF 30%, #7DD3FC 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 4px 20px rgba(0, 82, 255, 0.3);
  font-variant-numeric: tabular-nums;
  margin-bottom: 8px;
}

.stat__label {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

.stat__badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #38BDF8;
  background: rgba(56, 189, 248, 0.12);
  border-radius: var(--r-full);
  padding: 3px 10px;
  margin-top: 10px;
}

/* ----------------------------------------------------- TRUST LOGO BAR ---- */
.trust-bar {
  padding-block: 44px 16px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.trust-bar__lead {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  margin-bottom: 24px;
}

.trust-bar__logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px 40px;
}

.trust-logo-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted-foreground-strong);
  padding: 8px 16px;
  border-radius: var(--r-full);
  background: var(--muted);
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}

.trust-logo-item:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.trust-logo-item svg {
  width: 18px;
  height: 18px;
  stroke: var(--accent);
}

/* -------------------------------------------------- COMPARISON TABLE ---- */
.compare-wrap {
  margin-top: 40px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow-xl);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  text-align: left;
}

.compare-table th,
.compare-table td {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  font-size: 0.9375rem;
  vertical-align: middle;
}

.compare-table thead th {
  background: var(--muted);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  color: var(--foreground);
}

.compare-table thead th.highlight {
  background: linear-gradient(180deg, rgba(0, 82, 255, 0.1) 0%, rgba(0, 82, 255, 0.04) 100%);
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
}

.compare-table tbody tr:last-child td {
  border-bottom: none;
}

.compare-table tbody tr:hover td {
  background: rgba(0, 82, 255, 0.015);
}

.compare-table tbody td.highlight {
  background: rgba(0, 82, 255, 0.035);
  font-weight: 600;
  color: var(--foreground);
}

.compare-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--r-full);
  white-space: nowrap;
}

.compare-badge--good {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.compare-badge--bad {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.compare-badge--mid {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

/* ---------------------------------------------------- ROI IMPACT GRID ---- */
.roi-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 40px;
}

@media (min-width: 600px) {
  .roi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .roi-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.roi-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.roi-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow-xl);
}

.band--inverted .roi-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}

.band--inverted .roi-card:hover {
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 20px 45px rgba(0, 82, 255, 0.25), 0 0 20px rgba(56, 189, 248, 0.15);
}

.band--inverted .roi-card__title {
  color: #FFFFFF;
}

.band--inverted .roi-card__desc {
  color: rgba(255, 255, 255, 0.82);
}

.band--inverted .roi-card__value {
  background: linear-gradient(135deg, #FFFFFF 30%, #38BDF8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.roi-card__value {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--accent);
  line-height: 1.1;
  margin-bottom: 8px;
}

.roi-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 8px;
}

.roi-card__desc {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.5;
}

/* -------------------------------------------------------------- TILE ---- */
/* Lưới tile canh giữa — dùng lại bề mặt (nền, viền, bo góc, bóng) của design system */
.tiles {
  display: grid;
  gap: 20px;
}

.tile {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 40px 32px;
  box-shadow: var(--shadow-md);
  text-align: center;
  overflow: hidden;
  transition: box-shadow 0.3s ease-out, transform 0.3s ease-out;
}

.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom right,
    rgba(0, 82, 255, 0.04),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.3s ease-out;
  pointer-events: none;
}

.tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

/* Chỉ tile CÓ link mới đổi viền khi hover/focus. Tile tĩnh (vấn đề, lợi ích)
   không có phản hồi — tránh báo hiệu "bấm được" cho thứ không bấm được. */
.tile--link {
  cursor: pointer;
}

.tile--link:hover,
.tile--link:focus-within {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow-xl), 0 0 0 3px rgba(0, 82, 255, 0.14);
}

.tile--link:hover::before,
.tile--link:focus-within::before {
  opacity: 1;
}

/* Link trải kín thẻ: bấm được cả card, nhưng tên đọc được vẫn là tiêu đề */
.tile--link h3 {
  position: static;
}

.tile__link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: 1;
}

.tile__link:focus-visible {
  outline-offset: 4px;
}

.tile:hover::before {
  opacity: 1;
}

.tile > * {
  position: relative;
}

.tile__icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: var(--r);
  background: var(--gradient);
  box-shadow: var(--shadow-accent);
  margin: 0 auto 22px;
  transition: transform 0.3s ease-out;
}

.tile:hover .tile__icon {
  transform: scale(1.1);
}

.tile__icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--accent-foreground);
}

.tile__idx {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  display: block;
  margin-bottom: 14px;
}

.tile h3 {
  margin-bottom: 12px;
}

.tile p {
  font-size: 0.9375rem;
  color: var(--muted-foreground);
  max-width: 40ch;
  margin-inline: auto;
}

.tile__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin-top: 22px;
}

.tag {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--muted-foreground-strong);
  background: var(--muted);
  border-radius: var(--r-full);
  padding: 5px 11px;
  white-space: nowrap;
}

/* Nhãn "nổi bật" — thay cho viền gradient đã bỏ.
   Viền gradient 2px trước đây dùng kỹ thuật lồng 2 lớp (padding 2px + nền
   gradient), nhưng bị `.carousel .tile { padding: 34px 26px }` ghi đè vì
   selector đó có độ ưu tiên cao hơn (0,2,0 so với 0,1,0) -> nền gradient tràn
   ra thành khung xanh dày 26px. Đã bỏ hẳn kỹ thuật đó. */
.tile__flag {
  display: inline-flex;
  align-items: center;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-foreground);
  background: var(--gradient);
  border-radius: var(--r-full);
  padding: 5px 11px;
  margin-bottom: 18px;
}

/* Tile nằm trong band đảo màu: bề mặt tối, không dùng nền trắng */
.tile--on-dark {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: none;
}

.tile--on-dark::before {
  background: linear-gradient(
    to bottom right,
    rgba(0, 82, 255, 0.22),
    transparent 60%
  );
}

.tile--on-dark:hover {
  box-shadow: 0 20px 25px rgba(0, 0, 0, 0.45);
}

.tile--on-dark.tile--link:hover,
.tile--on-dark.tile--link:focus-within {
  border-color: var(--accent);
  box-shadow: 0 20px 25px rgba(0, 0, 0, 0.45), 0 0 0 3px rgba(0, 82, 255, 0.28);
}

.tile--on-dark h3 {
  color: var(--background);
}

.tile--on-dark p {
  color: rgba(255, 255, 255, 0.82);
}

/* 2-up: 1 cột mobile -> 2 cột từ 700px */
.tiles--2 {
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .tiles--2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------------------------------------------------------- CAROUSEL ---- */
/* Carousel thật: track cuộn ngang + snap, ẩn scrollbar, có nút mũi tên.
   Kiểu "Explore the lineup" của Apple. Track vẫn cuộn/vuốt được nếu JS lỗi. */
.carousel {
  position: relative;
}

.carousel__track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  /* Track là VÙNG CUỘN: overflow-x:auto kéo theo overflow-y cũng thành auto,
     nên mọi thứ tràn ra ngoài padding đều BỊ CẮT. Padding dọc phải đủ chứa
     hiệu ứng hover: nhấc lên 4px + quầng 3px = 7px, cộng bóng đổ.
     Trước đây chỉ có 4px nên bóng và quầng hover bị cắt cụt. */
  padding: 16px 4px 20px;
  margin-inline: -4px;
  /* Ẩn scrollbar: nút mũi tên thay cho nó. Vẫn cuộn được bằng bàn phím,
     con lăn chuột và thao tác vuốt. */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.carousel__track::-webkit-scrollbar {
  display: none;
}

.carousel__track > * {
  flex: 0 0 min(78%, 320px);
  /* snap-align: start để card đầu thẳng hàng container và card cuối
     không bị cắt cụt như khi dùng center */
  scroll-snap-align: start;
}

.carousel .tile {
  height: 100%;
  padding: 34px 26px;
}

.carousel__controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.carousel__dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 0 4px;
}

.carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: var(--r-full);
  background: var(--border);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.25s ease-out;
}

.carousel__dot.is-active {
  width: 22px;
  background: var(--accent);
  box-shadow: var(--shadow-accent);
}

.carousel__btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--card);
  color: var(--foreground);
  cursor: pointer;
  transition: all 0.2s ease-out;
}

.carousel__btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

.carousel__btn:hover:not([disabled]) {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: var(--shadow-accent);
  transform: translateY(-2px);
}

.carousel__btn:active:not([disabled]) {
  transform: scale(0.96);
}

.carousel__btn[disabled] {
  opacity: 0.35;
  cursor: not-allowed;
}

/* Nút tạm dừng / tiếp tục: đổi icon theo aria-pressed.
   Phải display:none một icon, nếu không grid sẽ xếp cả hai thành 2 hàng. */
.carousel__btn--toggle .icon-play {
  display: none;
}

.carousel__btn--toggle[aria-pressed="true"] .icon-pause {
  display: none;
}

.carousel__btn--toggle[aria-pressed="true"] .icon-play {
  display: block;
}

@media (min-width: 768px) {
  .carousel__track > * {
    flex: 0 0 300px;
  }
}

/* --------------------------------------------------------- STEP ROW ----- */
/* 4 bước trên một hàng ngang, có mũi tên nối — như timeline Apple */
.steprow {
  display: grid;
  gap: 44px;
}

.step {
  position: relative;
  text-align: center;
}

.step__num {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
  border-radius: var(--r);
  background: var(--gradient);
  color: var(--accent-foreground);
  font-size: 0.9375rem;
  font-weight: 600;
  box-shadow: var(--shadow-accent);
}

.step h3 {
  margin-bottom: 10px;
  text-wrap: balance;
  word-break: normal;
}

.step p {
  font-size: 0.9375rem;
  color: var(--muted-foreground);
  max-width: 34ch;
  margin-inline: auto;
}

.step__time {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(0, 82, 255, 0.07);
  border-radius: var(--r-full);
  padding: 5px 12px;
}

.step__arrow {
  display: none;
  position: absolute;
  top: 16px;
  right: -34px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  place-items: center;
  z-index: 2;
}

.step__arrow svg {
  width: 15px;
  height: 15px;
  stroke: var(--accent);
}

@media (min-width: 1024px) {
  .steprow {
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
  }

  .step__arrow {
    display: grid;
  }
}

/* --------------------------------------------------------------- CTA ---- */
.cta-head {
  max-width: 44rem;
  margin-inline: auto;
  text-align: center;
}

.cta-head h2 {
  margin-bottom: 20px;
}

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

.cta-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.9);
}

.cta-points svg {
  width: 18px;
  height: 18px;
  flex: none;
  stroke: #9db6ff;
}

.cta-form {
  max-width: 34rem;
  margin: 64px auto 0;
}

.cta-direct {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  text-align: center;
}

.cta-direct > p {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 18px;
}

.cta-direct-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.cta-direct-links a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 11px 18px;
  border-radius: var(--r);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.875rem;
  font-weight: 500;
  color: #ffffff;
  transition: all 0.2s ease-out;
}

.cta-direct-links a:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

.cta-direct-links svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}

/* -------------------------------------------------------------- FORM ---- */
.form-card {
  background: var(--card);
  /* BẮT BUỘC: band cha (.band--inverted) đặt color: var(--background) là màu
     gần trắng. Không reset ở đây thì mọi chữ trong form — kể cả chữ khách gõ
     vào ô nhập — thành trắng trên nền trắng, tương phản 1.04:1. */
  color: var(--foreground);
  border-radius: var(--r-lg);
  padding: 30px 26px 26px;
  box-shadow: var(--shadow-xl);
}

.form-card__head {
  margin-bottom: 26px;
  text-align: center;
}

.form-card__head h3 {
  font-size: 1.375rem;
  margin-bottom: 7px;
  /* Quy tắc .band--inverted h3 trỏ TRỰC TIẾP vào h3 nên thắng cả kế thừa
     từ .form-card. Phải ghi đè tại đây, nếu không tiêu đề form thành
     trắng trên nền trắng (1.04:1). */
  color: var(--foreground);
}

.form-card__head p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.field .req {
  color: var(--accent);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 15px;
  background: var(--card);
  color: var(--foreground);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 0.9375rem;
  transition: border-color 0.2s ease-out, box-shadow 0.2s ease-out;
}

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

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(100, 116, 139, 0.62);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--background), 0 0 0 4px var(--accent);
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"] {
  border-color: #dc2626;
}

.field__error {
  display: none;
  margin-top: 8px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #b91c1c;
}

.field__error.is-shown {
  display: block;
}

.field--row {
  display: grid;
  gap: 0;
}

@media (min-width: 560px) {
  .field--row {
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
  }
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-foot {
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--muted-foreground);
  text-align: center;
  margin-top: 16px;
}

.alert {
  display: none;
  gap: 11px;
  align-items: flex-start;
  padding: 15px 17px;
  border-radius: var(--r-sm);
  font-size: 0.875rem;
  line-height: 1.55;
  margin-bottom: 20px;
}

.alert.is-shown {
  display: flex;
}

.alert svg {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 2px;
}

.alert--ok {
  background: #ecfdf5;
  color: #065f46;
}

.alert--ok svg {
  stroke: #047857;
}

.alert--err {
  background: #fef2f2;
  color: #991b1b;
}

.alert--err svg {
  stroke: #dc2626;
}

.alert a {
  text-decoration: underline;
  font-weight: 600;
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ------------------------------------------------------------ FOOTER ---- */
/* Giữ nguyên — không đổi theo yêu cầu */
.footer {
  background: var(--foreground);
  color: rgba(255, 255, 255, 0.7);
  padding-block: 60px 34px;
  font-size: 0.875rem;
}

.footer__grid {
  display: grid;
  gap: 36px;
}

.footer .brand {
  color: #ffffff;
  margin-bottom: 16px;
  flex: none;
}

.footer__about {
  max-width: 42ch;
  line-height: 1.7;
}

.footer h3 {
  font-family: var(--font);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 16px;
}

.footer__col ul {
  display: grid;
  gap: 11px;
}

.footer__col a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer__bottom {
  margin-top: 46px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: grid;
  gap: 14px;
  font-size: 0.8125rem;
}

.footer__disclaimer {
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
}

.footer :focus-visible {
  outline-color: #9db6ff;
}

@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: 1.7fr 1fr 1fr;
    gap: 48px;
  }

  .footer__bottom {
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 28px;
  }

  .footer__disclaimer {
    text-align: right;
  }
}

/* --------------------------------------------------------- ANIMATION ---- */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero__inner > * {
  animation: fade-up 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero__inner > *:nth-child(1) {
  animation-delay: 0.05s;
}
.hero__inner > *:nth-child(2) {
  animation-delay: 0.15s;
}
.hero__inner > *:nth-child(3) {
  animation-delay: 0.25s;
}
.hero__inner > *:nth-child(4) {
  animation-delay: 0.35s;
}

.hero-art {
  animation: fade-up 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

/* Mặc định LUÔN hiện; chỉ ẩn khi JS chạy được, để JS lỗi thì trang không trắng */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--i, 0) * 0.1s);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .carousel__track {
    scroll-behavior: auto;
  }

  .hero__inner > *,
  .hero-art {
    animation: none;
  }

  .hero-art__ring,
  .float-card,
  .label-pill__dot,
  .mock__badge i {
    animation: none;
  }

  .js .reveal,
  .js .reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (prefers-reduced-motion: no-preference) and (max-width: 640px) {
  .hero-art__ring--inner {
    display: none;
  }
}
