/* =========================================================
   HQ Group B2B — stylesheet
   Palette tối + đỏ (theo logo HQStore). Tương phản đã kiểm (WCAG 2.x AA):
   text #f0ede6 / bg ≈ 17:1, muted #9a958e / surface ≈ 6.2:1,
   accent #ef5350 / nền tối ≥ 5:1, chữ trắng trên nút #a40000 ≈ 8.1:1,
   viền ô nhập #5f6168 ≥ 3:1 (thành phần UI).
   ========================================================= */

/* ---------- Fonts (tự host, bỏ request chặn hiển thị tới Google Fonts) ----------
   Font biến thiên: 1 file/subset phủ mọi độ đậm. unicode-range giúp trình duyệt chỉ tải subset cần dùng. */
/* JetBrains Mono — vietnamese */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('/assets/fonts/jetbrains-mono-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;
}

/* JetBrains Mono — latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('/assets/fonts/jetbrains-mono-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* JetBrains Mono — latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('/assets/fonts/jetbrains-mono-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;
}

/* Lexend — vietnamese */
@font-face {
  font-family: 'Lexend';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url('/assets/fonts/lexend-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;
}

/* Lexend — latin-ext */
@font-face {
  font-family: 'Lexend';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url('/assets/fonts/lexend-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Lexend — latin */
@font-face {
  font-family: 'Lexend';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url('/assets/fonts/lexend-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;
}

/* Manrope — vietnamese */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/manrope-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;
}

/* Manrope — latin-ext */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/manrope-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Manrope — latin */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/manrope-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;
}

:root {
  --color-bg: #09090b;
  --color-bg-alt: #0f0f12;
  --color-surface: #141418;
  --color-surface-raised: #1a1a20;
  --color-brand: #a40000; /* đỏ logo — nền nút chính */
  --color-brand-hover: #bf1111;
  --color-accent: #ef5350; /* chữ nhấn, nhãn, số liệu, hover */
  --color-accent-light: #ef5350;
  --color-accent-dark: #c62828;
  --color-accent-glow: rgb(239 83 80 / 0.15);
  --color-accent-glow-soft: rgb(239 83 80 / 0.08);
  --color-text: #f0ede6;
  --color-text-muted: #9a958e;
  --color-border: rgb(239 83 80 / 0.12);
  --color-border-strong: #5f6168;
  --color-success: #7dba8a;
  --color-error: #e08a78;
  --color-focus: #ef5350;

  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  /* Nhịp dọc (thang 8px): khoảng cách khối co giãn 64px (mobile) -> 96px (desktop) */
  --space-section: clamp(64px, 8vw, 96px);
  --space-head: clamp(32px, 4vw, 48px);
  --color-divider: #2a2c30;

  --container: 1200px;
  --gutter: 24px;
  --header-height: 64px;

  --font-heading: 'Lexend', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --ease-out: cubic-bezier(0.4, 0, 0.2, 1);
}

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

* {
  margin: 0;
}

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

body {
  min-height: 100vh;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

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

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

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

ul[role='list'],
ol[role='list'] {
  list-style: none;
  padding: 0;
}

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

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

.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;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1000;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  background: var(--color-brand);
  color: #fff;
  font-weight: 600;
  transform: translateY(-200%);
  transition: transform 0.2s;
}

.skip-link:focus {
  transform: translateY(0);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 14px 36px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition:
    background-color 0.3s var(--ease-out),
    border-color 0.3s var(--ease-out),
    box-shadow 0.3s var(--ease-out),
    transform 0.3s var(--ease-out);
}

.btn--primary,
.btn--small {
  background: var(--color-brand);
  border-color: var(--color-brand);
  color: #fff;
  box-shadow: 0 6px 24px rgb(164 0 0 / 0.12);
}

.btn--primary:hover,
.btn--small:hover {
  background: var(--color-brand-hover);
  border-color: var(--color-brand-hover);
  box-shadow: 0 10px 40px rgb(164 0 0 / 0.3);
  transform: translateY(-2px);
}

.btn--secondary {
  background: transparent;
  border-color: rgb(239 83 80 / 0.45);
  color: var(--color-text);
}

.btn--secondary:hover {
  border-color: var(--color-accent);
  background: var(--color-accent-glow-soft);
}

.btn--small {
  min-height: 40px;
  padding: 10px 22px;
  font-size: 0.875rem;
}

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

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ---------- Logo ---------- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  border-radius: 6px;
}

.logo__img {
  display: block;
  width: auto;
  height: 46px;
  border-radius: 5px;
}

.logo--small .logo__img {
  height: 40px;
}

.logo__b2b {
  padding-left: 13px;
  border-left: 1px solid #44464b;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
}

/* ---------- Header & navigation ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  background: rgb(9 9 11 / 0.82);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(20px) saturate(1.2);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--container);
  min-height: var(--header-height);
  margin-inline: auto;
  padding: 10px var(--gutter);
}

.site-nav {
  display: flex;
  align-items: center;
}

.site-nav__menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color 0.25s;
}

.site-nav__link:hover {
  color: var(--color-accent-light);
}

.site-nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  border-radius: var(--radius-md);
  background: none;
  cursor: pointer;
}

.site-nav__toggle span {
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--color-text);
  transition: transform 0.3s, opacity 0.3s;
}

.site-nav__toggle[aria-expanded='true'] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-nav__toggle[aria-expanded='true'] span:nth-child(2) {
  opacity: 0;
}

.site-nav__toggle[aria-expanded='true'] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: calc(var(--header-height) + 72px) var(--gutter) 120px;
  overflow: hidden;
}

.hero__backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgb(239 83 80 / 0.1), transparent 60%),
    radial-gradient(ellipse 50% 40% at 82% 82%, rgb(239 83 80 / 0.05), transparent 50%),
    radial-gradient(ellipse 30% 30% at 12% 50%, rgb(239 83 80 / 0.04), transparent 50%);
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(239 83 80 / 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgb(239 83 80 / 0.035) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 0%, transparent 80%);
}

.hero__content {
  position: relative;
  max-width: 840px;
  text-align: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  padding: 8px 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-accent-glow-soft);
  font-size: 0.82rem;
  color: var(--color-accent-light);
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}

.hero__title {
  margin-bottom: 24px;
  font-size: clamp(2.3rem, 5.6vw, 4.1rem);
  font-weight: 800;
  line-height: 1.1;
}

.hero__highlight {
  color: var(--color-accent-light);
}

.hero__subtitle {
  max-width: 600px;
  margin: 0 auto 40px;
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--color-text-muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.hero__note {
  margin-top: 22px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* ---------- Stats ---------- */
.stats {
  position: relative;
  z-index: 2;
  margin-top: -56px;
  margin-bottom: 20px;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--color-border);
  box-shadow: 0 4px 40px rgb(239 83 80 / 0.08);
}

.stats__item {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 4px;
  padding: 32px 24px;
  background: var(--color-surface);
  text-align: center;
}

.stats__value {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-accent-light);
}

.stats__label {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* ---------- Sections ---------- */
.section {
  padding-block: var(--space-section);
}

/* Mọi khối cùng nền, ngăn nhau bằng một đường kẻ mảnh */
.section + .section {
  border-top: 1px solid var(--color-divider);
}

.section-heading {
  margin-bottom: 56px;
}

.section-heading__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.section-heading__tag::before {
  content: '';
  width: 20px;
  height: 1px;
  background: currentColor;
}

.section-heading__title {
  max-width: 18ch;
  margin-bottom: 16px;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.12;
}

.section-heading__desc {
  max-width: 560px;
  font-size: 1.05rem;
  color: var(--color-text-muted);
}

/* ---------- Products ---------- */
.products__head,
.channels__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 48px;
  margin-bottom: var(--space-head);
}

.products__tag,
.channels__tag {
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.products__title,
.channels__title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.12;
}

.products__intro,
.channels__intro {
  max-width: 300px;
  margin-bottom: 4px;
  font-size: 0.85rem;
  line-height: 1.8;
  color: var(--color-text-muted);
}

.product-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.product-filter[hidden] {
  display: none;
}

.product-filter__btn {
  min-height: 34px;
  padding: 7px 15px;
  border: 1px solid #3a3c40;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--color-text-muted);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.25s, background-color 0.25s, border-color 0.25s;
}

.product-filter__btn:hover {
  border-color: var(--color-accent);
  color: var(--color-text);
}

.product-filter__btn[aria-pressed='true'] {
  border-color: var(--color-brand);
  background: var(--color-brand);
  color: #fff;
}

.product-card[hidden] {
  display: none;
}

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

.product-card {
  position: relative;
  min-height: 218px;
  padding: 26px;
  border: 1px solid #303235;
  border-radius: 9px;
  background: #1a1c1e;
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.04);
  transition:
    transform 0.2s var(--ease-out),
    border-color 0.2s var(--ease-out);
}

.product-card:hover,
.product-card:focus-within {
  border-color: var(--color-accent);
  transform: translateY(-3px);
}

.product-card__icon {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  margin-bottom: 23px;
  border: 1px solid rgb(239 83 80 / 0.15);
  border-radius: 9px;
  background: rgb(239 83 80 / 0.035);
  color: var(--color-accent);
}

.product-card__icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.product-card__arrow {
  position: absolute;
  top: 29px;
  right: 24px;
  font-size: 1.05rem;
  line-height: 1;
  color: #777;
  transition: color 0.2s, transform 0.2s;
}

.product-card:hover .product-card__arrow,
.product-card:focus-within .product-card__arrow {
  color: var(--color-accent);
  transform: translate(2px, -2px);
}

.product-card__title {
  margin-bottom: 10px;
  font-size: 1.06rem;
  letter-spacing: -0.02em;
}

/* Cả thẻ bấm được: link ở tiêu đề phủ toàn thẻ (tên link ngắn gọn cho screen reader). */
.product-card__link::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 9px;
}

.product-card__link:focus-visible {
  outline: none;
}

.product-card:has(.product-card__link:focus-visible) {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
}

.product-card__body {
  max-width: 260px;
  font-size: 0.78rem;
  line-height: 1.8;
  color: var(--color-text-muted);
}

/* ---------- Sales channels ---------- */
/* Cuộn ngang + scroll-snap: vuốt được cả khi không có JS; JS chỉ thêm nút ←/→ và bộ đếm. */
.channels-slider__track {
  --channels-gap: 16px;
  --channels-per-view: 4;
  display: flex;
  gap: var(--channels-gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

/* Chừa chỗ cho ô nhấc lên khi hover (khung cuộn cắt mọi thứ tràn ra ngoài).
   Selector có thẻ "ul" để thắng rule reset ul[role='list'] { padding: 0 }. */
ul.channels-slider__track {
  padding: 6px 1px 9px;
}

.channels-slider__track::-webkit-scrollbar {
  display: none;
}

.channels-slider__track:focus-visible {
  outline-offset: 6px;
}

.channel-tile {
  position: relative;
  flex: 0 0 calc((100% - (var(--channels-per-view) - 1) * var(--channels-gap)) / var(--channels-per-view));
  scroll-snap-align: start;
  border: 1px solid #303235;
  border-radius: 11px;
  background: #1a1c1e;
  transition:
    transform 0.2s var(--ease-out),
    border-color 0.2s var(--ease-out);
}

.channel-tile--featured {
  border-color: rgb(239 83 80 / 0.44);
  background: linear-gradient(145deg, rgb(164 0 0 / 0.11), #1a1c1e);
}

.channel-tile:hover,
.channel-tile:focus-within {
  border-color: var(--color-accent);
  transform: translateY(-3px);
}

.channel-tile__link,
.channel-tile__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 150px;
  padding: 28px 20px;
  border-radius: inherit;
  text-align: center;
  color: var(--color-text);
}

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

.channel-tile__name {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.04em;
}

/* Màu chữ theo nhận diện từng sàn */
.channel-tile__name--ritokey {
  font-size: 1.75rem;
  color: var(--color-accent);
}

.channel-tile__name--g2g {
  font-size: 2.1rem;
  color: #f27b32;
}

.channel-tile__name--eldorado {
  font-size: 1.6rem;
  color: #e5b846;
}

.channel-tile__name--playerok {
  font-size: 1.65rem;
  color: #8d77f5;
}

.channel-tile__tld {
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0;
}

.channel-tile__type {
  font-size: 0.7rem;
  color: var(--color-text-muted);
}

.channels-slider__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 14px;
}

.channels-slider__caption {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  line-height: 1.8;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.channels-slider__controls {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 9px;
}

.channels-slider__controls[hidden] {
  display: none;
}

.channels-slider__count {
  margin-right: 9px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--color-text-muted);
}

/* Dùng lại kiểu nút của slider "Our people", chỉ đổi sang bo góc vuông như thiết kế */
.channels-slider__controls .channels-slider__btn {
  border-radius: 7px;
}

@media (max-width: 800px) {
  .channels-slider__track {
    --channels-per-view: 2;
  }
}

@media (max-width: 640px) {
  /* Lộ một phần ô kế tiếp để gợi ý vuốt ngang */
  .channel-tile {
    flex-basis: 80%;
  }
  .channel-tile__link,
  .channel-tile__body {
    min-height: 130px;
    padding: 22px 12px;
  }
  .channels-slider__bar {
    align-items: flex-start;
  }
  .channels-slider__caption {
    max-width: 170px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .channel-tile {
    transition: none;
  }
}

/* ---------- Ecosystem ---------- */
.ecosystem__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px 48px;
  margin-bottom: var(--space-head);
}

.ecosystem__tag {
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.ecosystem__title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.12;
}

.ecosystem__highlight {
  color: var(--color-accent);
}

.ecosystem__intro {
  max-width: 330px;
  font-size: 0.85rem;
  line-height: 1.8;
  color: var(--color-text-muted);
}

.eco-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.eco-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #303235;
  border-radius: 12px;
  background: #1a1c1e;
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.04);
  transition: transform 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}

.eco-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-5px);
}

.eco-card__media {
  position: relative;
  height: 184px;
  overflow: hidden;
  border-bottom: 1px solid #303235;
  background: #202324;
}

.eco-card__media picture,
.eco-card__media > picture img {
  display: block;
  width: 100%;
  height: 100%;
}

.eco-card__media > picture img {
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}

.eco-card:hover .eco-card__media > picture img {
  transform: scale(1.04);
}

.eco-card__media--esports > picture img {
  object-position: 50% 44%;
}

.eco-card__media--creators > picture img {
  object-position: 49% 50%;
}

.eco-card__badge {
  position: absolute;
  left: 14px;
  bottom: 13px;
  z-index: 2;
  padding: 6px 8px;
  border: 1px solid rgb(255 255 255 / 0.19);
  border-radius: 4px;
  background: rgb(16 17 18 / 0.87);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #f4f1ec;
}

/* HQ Pay: logo trong khung nghiêng */
.eco-card__media--pay {
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at center, rgb(239 83 80 / 0.08), #1a1c1e);
}

.pay-frame {
  width: 164px;
  padding: 20px 18px 14px;
  border: 1px solid #4b3c3c;
  border-radius: 12px;
  background: #242628;
  box-shadow: 0 12px 30px rgb(0 0 0 / 0.25);
  transform: rotate(-6deg);
}

.pay-frame picture img {
  display: block;
  width: 100%;
  height: auto;
  padding: 10px;
  border-radius: 5px;
  background: #fff;
}

.pay-frame__lines {
  display: flex;
  gap: 5px;
  margin-top: 17px;
}

.pay-frame__lines i {
  width: 28px;
  height: 4px;
  border-radius: 2px;
  background: rgb(239 83 80 / 0.53);
}

.pay-frame__lines i:last-child {
  width: 45px;
  background: rgb(255 255 255 / 0.14);
}

/* Sơ đồ phân phối (SVG) */
.eco-card__media--network {
  background: radial-gradient(ellipse at center, rgb(239 83 80 / 0.08), #1a1c1e);
}

.network {
  display: block;
  width: 100%;
  height: 100%;
}

.network__links {
  fill: none;
  stroke: var(--color-accent);
  stroke-opacity: 0.35;
}

.network__ring {
  stroke-dasharray: 3 7;
  stroke-opacity: 0.5;
}

.network__nodes {
  fill: #202324;
  stroke: #4a4d4c;
}

.network__hub {
  fill: var(--color-accent);
}

.network__hub-text {
  fill: #fff;
  font-family: Arial, sans-serif;
  font-size: 22px;
  font-weight: 700;
}

.network__labels {
  fill: #c6c9c5;
  font-family: Arial, sans-serif;
  font-size: 8px;
}

.eco-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 23px 20px 25px;
}

.eco-card__tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.eco-card__title {
  margin: 13px 0 12px;
  font-size: 1.25rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.eco-card__text {
  font-size: 0.78rem;
  line-height: 1.8;
  color: var(--color-text-muted);
}

.eco-card__meta {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #303235;
  font-size: 0.66rem;
  line-height: 1.7;
  color: #bfc0c6;
}

.eco-card__text + .eco-card__meta {
  margin-top: 21px;
}

.ecosystem__note {
  margin-top: 23px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  line-height: 1.8;
  letter-spacing: 0.02em;
  color: #9b9da5;
}

@media (prefers-reduced-motion: reduce) {
  .eco-card,
  .eco-card__media > picture img {
    transition: none;
  }
}

/* ---------- Advantages ---------- */
.why__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px 80px;
  align-items: start;
}

.why__tag {
  margin-bottom: 20px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.why__title {
  margin-bottom: 28px;
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  line-height: 1.08;
}

.why__text {
  max-width: 400px;
  margin-bottom: 40px;
  font-size: 0.98rem;
  line-height: 1.75;
  color: var(--color-text-muted);
}

.why__origin {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.why__list {
  display: flex;
  flex-direction: column;
}

.why__item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 0 4px;
  padding-block: 28px;
  border-bottom: 1px solid var(--color-border);
}

.why__item:first-child {
  padding-top: 0;
}

.why__item:last-child {
  border-bottom: 0;
}

.why__num {
  padding-top: 4px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-accent);
}

.why__item-title {
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.why__item-text {
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--color-text-muted);
}

/* ---------- Getting started (journey) ---------- */
.journey__tag {
  margin-bottom: 20px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.journey__heading {
  margin-bottom: var(--space-head);
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  line-height: 1.08;
}

.journey__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.journey__step {
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
}

.journey__label {
  margin-bottom: 28px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.journey__title {
  margin-bottom: 14px;
  font-size: 1.15rem;
}

.journey__text {
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--color-text-muted);
}

/* ---------- Our people ---------- */
.people__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 48px;
  margin-bottom: var(--space-head);
}

.people__tag {
  margin-bottom: 20px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.people__title {
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  line-height: 1.08;
}

.people__highlight {
  color: var(--color-accent-light);
}

.people__intro {
  max-width: 300px;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.people__figure {
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
}

.people__photo {
  width: 100%;
  height: auto;
  aspect-ratio: 2400 / 873;
  object-fit: cover;
}

/* Slider: cuộn ngang + scroll-snap (vuốt được cả khi không có JS). */
.people-slider__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.people-slider__track::-webkit-scrollbar {
  display: none;
}

.people-slider__track:focus-visible {
  outline-offset: -3px;
}

.people-slide {
  position: relative;
  flex: 0 0 100%;
  scroll-snap-align: start;
}

.people-slide__zoom {
  display: block;
  cursor: zoom-in;
}

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

.people-slide__hint {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgb(9 9 11 / 0.7);
  color: var(--color-text);
  font-size: 1rem;
  opacity: 0;
  transition: opacity 0.25s;
}

.people-slide__zoom:hover .people-slide__hint,
.people-slide__zoom:focus-visible .people-slide__hint {
  opacity: 1;
}

.people-slider__controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.people-slider__controls[hidden] {
  display: none;
}

.people-slider__btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--color-border-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--color-text);
  cursor: pointer;
  transition: border-color 0.25s, color 0.25s;
}

.people-slider__btn:hover:not(:disabled) {
  border-color: var(--color-accent);
  color: var(--color-accent-light);
}

.people-slider__btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.people-slider__count {
  min-width: 3.5em;
  text-align: center;
  color: var(--color-text);
}

/* Lightbox: xem ảnh lớn bằng <dialog> gốc (tự giữ focus, Esc để đóng). */
.lightbox {
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  max-height: 100vh;
  margin: 0;
  padding: 56px 72px 24px;
  border: 0;
  background: rgb(9 9 11 / 0.96);
  color: var(--color-text);
}

.lightbox[open] {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
}

.lightbox::backdrop {
  background: rgb(0 0 0 / 0.6);
}

.lightbox__figure {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-width: 0;
  height: 100%;
  justify-content: center;
}

.lightbox__img {
  max-width: 100%;
  max-height: calc(100vh - 140px);
  width: auto;
  height: auto;
  border-radius: var(--radius-md);
  object-fit: contain;
}

.lightbox__caption {
  max-width: 720px;
  font-size: 0.85rem;
  text-align: center;
  color: var(--color-text-muted);
}

.lightbox__close {
  position: absolute;
  top: 12px;
  right: 16px;
}

.lightbox__close,
.lightbox__nav {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border-strong);
  border-radius: 50%;
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 1.1rem;
  cursor: pointer;
}

.lightbox__nav[hidden] {
  display: none;
}

.lightbox__nav--prev {
  grid-column: 1;
}

.lightbox__nav--next {
  grid-column: 3;
}

.lightbox__close:hover,
.lightbox__nav:hover {
  border-color: var(--color-accent);
  color: var(--color-accent-light);
}

@media (max-width: 768px) {
  .lightbox {
    padding: 64px 12px 16px;
  }
  .lightbox[open] {
    grid-template-columns: 1fr;
  }
  .lightbox__figure {
    grid-column: 1;
    grid-row: 1;
  }
  .lightbox__nav {
    position: absolute;
    bottom: 16px;
  }
  .lightbox__nav--prev {
    left: calc(50% - 56px);
  }
  .lightbox__nav--next {
    right: calc(50% - 56px);
  }
}

.people__caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 18px 20px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

.people__origin {
  text-transform: uppercase;
  color: var(--color-text);
}

.people__motto {
  color: var(--color-text-muted);
}

/* ---------- Community ---------- */
.community__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  gap: 32px 48px;
  align-items: center;
}

.community__tag {
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.community__title {
  margin-bottom: 24px;
  font-size: clamp(1.8rem, 3.5vw, 2.7rem);
  line-height: 1.12;
}

.community__highlight {
  color: var(--color-accent);
}

.community__text {
  max-width: 430px;
  font-size: 0.85rem;
  line-height: 1.9;
  color: var(--color-text-muted);
}

.community__kicker {
  margin-top: 28px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.discord-card {
  position: relative;
  overflow: hidden;
  padding: 32px;
  border: 1px solid #303235;
  border-radius: 14px;
  background: #1a1c1e;
}

/* Quầng đỏ mờ góc trên phải */
.discord-card::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -100px;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: var(--color-accent);
  opacity: 0.07;
  pointer-events: none;
}

.discord-card__title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  font-size: 1.45rem;
}

.discord-card__icon {
  flex-shrink: 0;
  color: var(--color-accent);
}

.discord-card__text {
  margin-bottom: 24px;
  font-size: 0.85rem;
  line-height: 1.9;
  color: var(--color-text-muted);
}

.discord-card__topics {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 24px;
}

.discord-card__topics li {
  padding: 7px 9px;
  border: 1px solid #303235;
  border-radius: 5px;
  font-size: 0.7rem;
  color: var(--color-text-muted);
}

/* Nút chữ nhật, chữ trái – mũi tên phải như thiết kế */
.btn.discord-card__cta {
  position: relative;
  justify-content: space-between;
  padding-inline: 24px;
  border-radius: 7px;
  font-size: 0.9rem;
}

.community__socials {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 13px;
}

.social-link {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 8px;
  border: 1px solid #303235;
  border-radius: 7px;
  background: #1a1c1e;
  font-size: 0.75rem;
  color: var(--color-text);
  transition: border-color 0.2s var(--ease-out);
}

.social-link:hover,
.social-link:focus-visible {
  border-color: var(--color-accent);
}

button.social-link {
  font-family: inherit;
  cursor: pointer;
}

.social-link svg {
  flex-shrink: 0;
}

@media (max-width: 800px) {
  .community__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 420px) {
  .discord-card {
    padding: 24px;
  }
  .discord-card__title {
    font-size: 1.25rem;
  }
}

/* Hộp thông báo (dialog gốc: tự giữ focus, Esc để đóng) */
.notice-dialog {
  width: 600px;
  max-width: calc(100% - 32px);
  margin: auto;
  padding: 36px;
  border: 1px solid #434749;
  border-radius: 14px;
  background: #1a1d1e;
  color: var(--color-text);
  box-shadow: 0 35px 120px rgb(0 0 0 / 0.55);
}

.notice-dialog::backdrop {
  background: rgb(0 0 0 / 0.72);
  backdrop-filter: blur(8px);
}

.notice-dialog__close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--color-text);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.notice-dialog__close:hover {
  color: var(--color-accent);
}

.notice-dialog__tag {
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.notice-dialog__title {
  margin-bottom: 16px;
  font-size: clamp(1.6rem, 4vw, 2rem);
  line-height: 1.15;
}

.notice-dialog__text {
  margin-bottom: 28px;
  font-size: 0.85rem;
  line-height: 1.9;
  color: var(--color-text-muted);
}

.btn.notice-dialog__action {
  padding-inline: 24px;
  border-radius: 7px;
  font-size: 0.9rem;
}

@media (max-width: 420px) {
  .notice-dialog {
    padding: 28px 22px;
  }
  .community__socials {
    gap: 7px;
  }
  .social-link {
    gap: 5px;
    font-size: 0.7rem;
  }
}

/* ---------- Contact & form ---------- */
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px 80px;
  align-items: start;
}

.contact__tag {
  margin-bottom: 20px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.contact__title {
  margin-bottom: 28px;
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  line-height: 1.08;
}

.contact__text {
  max-width: 380px;
  font-size: 0.98rem;
  line-height: 1.75;
  color: var(--color-text-muted);
}

.contact__arrow {
  margin-top: 64px;
  color: var(--color-accent);
}

.lead-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 16px;
}

.field__req {
  color: var(--color-accent);
}

.field__input::placeholder {
  color: var(--color-text-muted);
  opacity: 1;
}

.lead-form__submit {
  min-height: 52px;
  border-radius: var(--radius-md);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.field--full {
  grid-column: 1 / -1;
}

.field__label {
  font-size: 0.875rem;
  font-weight: 600;
}

.field__mark {
  font-weight: 400;
  color: var(--color-text-muted);
}

.field__hint {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.field__input {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  background: rgb(9 9 11 / 0.7);
  color: var(--color-text);
  font-size: 0.95rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.field__input:hover {
  border-color: var(--color-accent-dark);
}

.field__input:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 1px;
  border-color: var(--color-accent);
  box-shadow: 0 0 20px rgb(239 83 80 / 0.12);
}

.field__input[aria-invalid='true'] {
  border-color: var(--color-error);
}

.field__select {
  appearance: none;
  padding-right: 44px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--color-accent) 50%),
    linear-gradient(135deg, var(--color-accent) 50%, transparent 50%);
  background-position:
    calc(100% - 22px) 50%,
    calc(100% - 16px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  cursor: pointer;
}

.field__select option {
  background: var(--color-surface);
}

/* ---------- Custom select (thay giao diện <select> gốc, kiểu Select2) ---------- */
/* <select> gốc vẫn nằm trong form để gửi dữ liệu; JS chỉ thêm lớp giao diện bên trên. */
.cselect {
  position: relative;
}

.cselect__native {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.cselect__combo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.cselect__combo::after {
  content: '';
  flex-shrink: 0;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--color-accent);
  transition: transform 0.2s;
}

.cselect__combo[aria-expanded='true'] {
  border-color: var(--color-accent);
}

.cselect__combo[aria-expanded='true']::after {
  transform: rotate(180deg);
}

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

.cselect__listbox {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 50;
  max-height: 344px; /* đủ hiện hết 7 mục, không cần cuộn */
  margin: 0;
  padding: 6px;
  overflow-y: auto;
  overscroll-behavior: contain;
  list-style: none;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  background: var(--color-surface-raised);
  box-shadow: 0 18px 40px rgb(0 0 0 / 0.5);
  /* Thanh cuộn mảnh, tông tối–vàng (chuẩn mới: Chrome 121+, Edge, Firefox). */
  scrollbar-width: thin;
  scrollbar-color: rgb(239 83 80 / 0.55) transparent;
}

/* Safari / trình duyệt chưa hỗ trợ scrollbar-color. */
.cselect__listbox::-webkit-scrollbar {
  width: 8px;
}

.cselect__listbox::-webkit-scrollbar-track {
  margin-block: 8px;
  background: transparent;
}

.cselect__listbox::-webkit-scrollbar-thumb {
  border: 2px solid var(--color-surface-raised);
  border-radius: 999px;
  background: rgb(239 83 80 / 0.55);
}

.cselect__listbox::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent);
}

.cselect__listbox[hidden] {
  display: none;
}

.cselect__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.95rem;
  color: var(--color-text);
  cursor: pointer;
}

.cselect__option:hover,
.cselect__option[data-active='true'] {
  background: var(--color-accent-glow);
}

.cselect__option[aria-selected='true'] {
  color: var(--color-accent-light);
  font-weight: 600;
}

.cselect__option[aria-selected='true']::after {
  content: '✓';
  color: var(--color-accent);
}

.field__textarea {
  min-height: 110px;
  resize: vertical;
}

.field__error {
  font-size: 0.85rem;
  color: var(--color-error);
}

.field__error::before {
  content: '✗ ';
}

.lead-form__hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.lead-form__consent {
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.lead-form__consent a {
  color: var(--color-accent-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lead-form__status {
  min-height: 1.5em;
  margin-top: 8px;
  font-size: 0.92rem;
}

.lead-form__status[data-state='success'] {
  color: var(--color-success);
}

.lead-form__status[data-state='success']::before {
  content: '✓ ';
}

.lead-form__status[data-state='error'] {
  color: var(--color-error);
}

.lead-form__status[data-state='error']::before {
  content: '✗ ';
}

/* ---------- Footer ---------- */
.site-footer {
  padding-block: 40px;
  border-top: 1px solid var(--color-divider);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.site-footer__links a {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  transition: color 0.2s;
}

.site-footer__links a:hover {
  color: var(--color-accent-light);
}

.site-footer__copy {
  width: 100%;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.site-footer__legal {
  width: 100%;
  padding-top: 24px;
  border-top: 1px solid rgb(239 83 80 / 0.08);
}

.site-footer__legal p {
  margin-bottom: 8px;
  font-size: 0.78rem;
  line-height: 1.7;
  color: var(--color-text-muted);
}

/* ---------- Simple content page (privacy) ---------- */
.page {
  max-width: 760px;
  padding-top: calc(var(--header-height) + 64px);
  padding-bottom: 96px;
}

.page h1 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 2.6rem);
}

.page h2 {
  margin: 32px 0 8px;
  font-size: 1.25rem;
}

.page p {
  color: var(--color-text-muted);
}

.page__back {
  display: inline-block;
  margin-top: 40px;
  color: var(--color-accent-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero__badge,
  .hero__title,
  .hero__subtitle,
  .hero__actions,
  .hero__note {
    animation: fade-up 0.8s ease both;
  }
  .hero__note {
    animation-delay: 0.48s;
  }
  .hero__title {
    animation-delay: 0.12s;
  }
  .hero__subtitle {
    animation-delay: 0.24s;
  }
  .hero__actions {
    animation-delay: 0.36s;
  }
  .hero__badge-dot {
    animation: pulse 2s ease-in-out infinite;
  }

  /* Hiện dần khi cuộn bằng CSS scroll-driven animation — không cần JS.
     Trình duyệt chưa hỗ trợ -> nội dung vẫn hiện bình thường. */
  @supports (animation-timeline: view()) {
    .reveal {
      animation: fade-up linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 40%;
    }
  }
}

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

@keyframes pulse {
  50% {
    opacity: 0.3;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

/* In ấn: hiện đủ nội dung, bỏ hiệu ứng và thanh điều hướng cố định. */
@media print {
  .reveal,
  .hero__badge,
  .hero__title,
  .hero__subtitle,
  .hero__actions,
  .hero__note {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .site-header {
    position: static;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .product-grid,
  .eco-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .eco-card__media {
    height: 220px;
  }
  .journey__steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 32px;
  }
}

@media (max-width: 900px) {
  .site-nav__toggle {
    display: flex;
  }

  .site-nav__menu {
    display: none;
    position: absolute;
    inset: 100% 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    padding: 24px var(--gutter);
    border-bottom: 1px solid var(--color-border);
    /* Nền đặc: menu nằm đè lên hero nên không để chữ phía sau lộ ra. */
    background: var(--color-bg);
    box-shadow: 0 24px 48px rgb(0 0 0 / 0.5);
  }

  .site-nav__menu[data-open='true'] {
    display: flex;
  }

  .site-nav__links {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .site-nav__link {
    display: block;
    padding: 10px 0;
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .stats__grid,
  .eco-grid,
  .why__grid,
  .journey__steps,
  .lead-form {
    grid-template-columns: 1fr;
  }
  .contact__grid {
    grid-template-columns: 1fr;
  }
  .contact__arrow {
    display: none;
  }
  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .products__head,
  .channels__head {
    display: block;
  }
  .products__intro,
  .channels__intro {
    max-width: none;
    margin-top: 20px;
  }
  .product-card {
    min-height: 0;
    padding: 20px 16px;
  }
  .product-card__arrow {
    top: 23px;
    right: 14px;
  }
}

@media (max-width: 420px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .ecosystem__head {
    display: block;
  }
  .ecosystem__intro {
    max-width: none;
    margin-top: 20px;
  }
  .eco-card__body {
    padding: 23px;
  }
  .eco-card__title {
    font-size: 1.45rem;
  }
  .eco-card__text {
    font-size: 0.82rem;
  }
  .eco-card__media--creators > picture img {
    object-fit: contain;
    background: #17191a;
  }
}
