/* =====================================================
   fisk.vn — BESfarm Design System
   Powered by VAQ — Việt Anh Aquaculture
   ===================================================== */

/* === GOOGLE FONTS === */
@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

/* === DESIGN TOKENS ===
   Bảng màu v2 (21/08/2026) — phong cách Agrinex: xanh lá tươi + vàng hotline.
   Hỗ trợ sáng/tối: mặc định theo prefers-color-scheme hệ điều hành, khách có thể
   chọn tay qua nút toggle (js/main.js ghi data-theme + localStorage, ưu tiên hơn
   prefers-color-scheme khi đã chọn). Mọi màu tham chiếu qua biến bên dưới — không
   viết hex thẳng vào component để đổi theme không bị bỏ sót chỗ nào. */
:root {
  /* Colors — light (mặc định) */
  --emerald:        #2F9E44;
  --emerald-dark:   #1E6B2E;
  --emerald-light:  #EEF7EC;
  --emerald-mid:    #BFE6C8;
  --forest:         #1E6B2E;
  --hotline:        #F5A623;
  --hotline-dark:   #C97F0A;
  --hotline-light:  #FFF6E5;
  --hotline-ink:    #3D2500;
  --ocean:          #0E4D6C;
  --ocean-light:    #EBF4FA;
  --near-black:     #14201A;
  --ink:            #14201A;
  --white:          #FFFFFF;
  --surface:        #FFFFFF;
  --surface-alt:    #F9FAFB;
  --gray-50:        #F9FAFB;
  --gray-100:       #F3F4F6;
  --gray-200:       #E5E7EB;
  --gray-400:       #9CA3AF;
  --gray-500:       #6B7280;
  --gray-700:       #374151;
  --gray-900:       #111827;
  --text-primary:   var(--gray-900);
  --text-body:      var(--gray-700);

  /* Typography */
  --font-display:   'Be Vietnam Pro', sans-serif;
  --font-body:      'Inter', sans-serif;

  /* Spacing scale */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Shadows */
  --shadow-sm:      0 1px 2px rgba(0,0,0,0.05);
  --shadow-md:      0 4px 6px rgba(0,0,0,0.07), 0 1px 3px rgba(0,0,0,0.06);
  --shadow-lg:      0 10px 25px rgba(0,0,0,0.08), 0 4px 10px rgba(0,0,0,0.05);
  --shadow-emerald: 0 8px 24px rgba(47,158,68,0.18);

  /* Radius */
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  24px;
  --radius-xl:  32px;

  /* Transitions */
  --transition: 0.25s ease;
  --transition-slow: 0.4s ease;

  /* Container */
  --max-width: 1200px;
  --nav-height: 64px;
}

/* === DARK MODE ===
   Kích hoạt khi: (a) hệ điều hành báo dark VÀ khách chưa tự chọn (không có
   [data-theme] trên <html>), HOẶC (b) khách bấm nút toggle → js/main.js gán
   <html data-theme="dark">. Toggle tay luôn thắng prefers-color-scheme. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --emerald:        #4CC463;
    --emerald-dark:   #2F9E44;
    --emerald-light:  #16261A;
    --emerald-mid:    #1F3A26;
    --forest:         #4CC463;
    --hotline:        #FFC24D;
    --hotline-dark:   #F5A623;
    --hotline-light:  #2E230D;
    --hotline-ink:    #FFE8B8;
    --ocean:          #5BA9D6;
    --ocean-light:    #17242E;
    --near-black:     #0B120E;
    --white:          #101815;
    --surface:        #101815;
    --surface-alt:    #172019;
    --gray-50:        #172019;
    --gray-100:       #1E2822;
    --gray-200:       #2B362F;
    --gray-400:       #7C8880;
    --gray-500:       #9AA69D;
    --gray-700:       #D3DBD5;
    --gray-900:       #F2F5F1;
    --text-primary:   var(--gray-900);
    --text-body:      var(--gray-700);
    --shadow-emerald: 0 8px 24px rgba(76,196,99,0.22);
  }
}
:root[data-theme="dark"] {
  --emerald:        #4CC463;
  --emerald-dark:   #2F9E44;
  --emerald-light:  #16261A;
  --emerald-mid:    #1F3A26;
  --forest:         #4CC463;
  --hotline:        #FFC24D;
  --hotline-dark:   #F5A623;
  --hotline-light:  #2E230D;
  --hotline-ink:    #FFE8B8;
  --ocean:          #5BA9D6;
  --ocean-light:    #17242E;
  --near-black:     #0B120E;
  --white:          #101815;
  --surface:        #101815;
  --surface-alt:    #172019;
  --gray-50:        #172019;
  --gray-100:       #1E2822;
  --gray-200:       #2B362F;
  --gray-400:       #7C8880;
  --gray-500:       #9AA69D;
  --gray-700:       #D3DBD5;
  --gray-900:       #F2F5F1;
  --text-primary:   var(--gray-900);
  --text-body:      var(--gray-700);
  --shadow-emerald: 0 8px 24px rgba(76,196,99,0.22);
}
html { color-scheme: light dark; }
:root[data-theme="dark"] { color-scheme: dark; }
:root[data-theme="light"] { color-scheme: light; }
* { transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease; }

/* === HUY HIỆU FANPAGE (Tâm 13/09/2026) ===
   Dựng bằng CSS thay vì nhúng PNG: sắc nét ở mọi mật độ màn hình, không tốn thêm
   một lượt tải ảnh. Giữ NGUYÊN #1877F2 của Facebook, không nhuộm theo emerald của
   BESfarm — người dùng nhận ra nền tảng bằng màu trước khi kịp đọc chữ.
   Màu này cố định cho cả nền sáng lẫn nền tối, không đổi theo data-theme. */
.foot-fb{ display:inline-flex; align-items:center; gap:7px; }
.foot-fb__mark{
  display:inline-flex; align-items:center; justify-content:center;
  width:20px; height:20px; flex:0 0 auto; border-radius:5px;
  background:#1877F2; color:#fff;
  font-family:var(--font-display); font-weight:800; font-size:13px; line-height:1;
  box-shadow:0 1px 3px rgba(24,119,242,.45);
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5 { font-family: var(--font-display); line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.125rem; font-weight: 600; }
p  { color: var(--gray-700); }

/* === LAYOUT === */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
}
.section { padding: var(--space-24) 0; }
.section--lg { padding: var(--space-32) 0; }
.section--sm { padding: var(--space-16) 0; }

/* Section headings */
.section-label {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--emerald);
  margin-bottom: var(--space-3);
}
.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: var(--space-4);
}
.section-sub {
  font-size: 1.125rem;
  color: var(--gray-500);
  max-width: 560px;
  line-height: 1.7;
}
.section-header { margin-bottom: var(--space-12); }
.section-header--center { text-align: center; }
.section-header--center .section-sub { margin: 0 auto; }

/* Pill badge (Giải pháp B2B / Nền tảng khoa học...) */
.pill-badge {
  display: inline-block;
  background: var(--emerald-light);
  color: var(--emerald);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  margin-bottom: var(--space-5);
}

/* === NAVIGATION === */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  text-decoration: none;
}
.nav__logo-mark {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--emerald);
}
.nav__logo-mark svg { width: 40px; height: 40px; }
.nav__logo-labels {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 1px;
}
.nav__logo-parent {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ocean);
  opacity: 0.75;
}
.nav__logo-sub {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -0.02em;
}
.nav__logo-sub em {
  font-style: normal;
  color: var(--emerald);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}
.nav__links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-700);
  transition: color var(--transition);
}
.nav__links a:hover, .nav__links a.active { color: var(--emerald); }

.nav__cta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* Nút đổi sáng/tối — mặc định theo prefers-color-scheme, khách bấm để ghi đè
   (js/main.js gán data-theme + lưu localStorage). Hai icon mặt trời/mặt trăng
   xếp chồng, chỉ 1 icon hiện tại 1 thời điểm tuỳ theme đang active. */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--gray-200);
  background: var(--surface-alt);
  color: var(--gray-700);
  flex-shrink: 0;
  position: relative;
}
.theme-toggle:hover { border-color: var(--emerald); color: var(--emerald); }
.theme-toggle svg { width: 18px; height: 18px; position: absolute; }
.theme-toggle__sun { opacity: 1; transform: scale(1) rotate(0deg); transition: opacity 0.25s ease, transform 0.35s ease; }
.theme-toggle__moon { opacity: 0; transform: scale(0.5) rotate(-90deg); transition: opacity 0.25s ease, transform 0.35s ease; }
:root[data-theme="dark"] .theme-toggle__sun { opacity: 0; transform: scale(0.5) rotate(90deg); }
:root[data-theme="dark"] .theme-toggle__moon { opacity: 1; transform: scale(1) rotate(0deg); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle__sun { opacity: 0; transform: scale(0.5) rotate(90deg); }
  :root:not([data-theme="light"]) .theme-toggle__moon { opacity: 1; transform: scale(1) rotate(0deg); }
}
.theme-toggle--mobile {
  width: auto;
  height: auto;
  border-radius: var(--radius-md);
  border: none;
  background: none;
  padding: var(--space-3) 0;
  justify-content: flex-start;
  gap: var(--space-3);
  position: relative;
}
.theme-toggle--mobile svg { position: static; width: 20px; height: 20px; }
.theme-toggle--mobile .theme-toggle__moon { position: absolute; }
.theme-toggle--mobile span { font-size: 1rem; margin-left: 28px; }

/* Hamburger */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  background: none;
  border: none;
  cursor: pointer;
}
.nav__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.nav__mobile {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: var(--space-6);
  z-index: 99;
  flex-direction: column;
  gap: var(--space-4);
  box-shadow: var(--shadow-lg);
  max-height: calc(100vh - var(--nav-height));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.nav__mobile.open { display: flex; }
.nav__mobile a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--gray-700);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--gray-100);
  min-height: 44px;
  display: flex;
  align-items: center;
}
.nav__mobile a:last-child { border-bottom: none; }
.theme-toggle--mobile { min-height: 44px; }
.nav__mobile-eco-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-top: var(--space-2);
}
.nav__mobile-eco-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}
.nav__mobile-eco-grid a {
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: var(--space-3);
  min-height: 96px;
  justify-content: center;
}
.nav__mobile-eco-grid a .ico-inline { width: 26px; height: 26px; }
.nav__mobile-eco-grid a .eco-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1.25;
}
@media (max-width: 380px) {
  .nav__mobile-eco-grid { grid-template-columns: 1fr; }
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
  cursor: pointer;
}

/* === ACCESSIBILITY: visible keyboard focus (WCAG) === */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.nav__item--dropdown a:focus-visible {
  outline: 2px solid var(--emerald);
  outline-offset: 2px;
  border-radius: 4px;
}
a, button, .btn { cursor: pointer; }
.btn--primary {
  background: var(--emerald);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(47,158,68,0.25);
}
.btn--primary:hover {
  background: var(--emerald-dark);
  box-shadow: 0 4px 14px rgba(47,158,68,0.35);
  transform: translateY(-1px);
}
.btn--outline {
  border: 1.5px solid var(--gray-200);
  color: var(--gray-700);
}
.btn--outline:hover {
  border-color: var(--emerald);
  color: var(--emerald);
  background: var(--emerald-light);
}
.btn--white {
  background: var(--white);
  color: var(--emerald);
  font-weight: 700;
}
.btn--white:hover {
  background: var(--emerald-light);
  transform: translateY(-1px);
}
.btn--ghost-white {
  border: 1.5px solid rgba(255,255,255,0.5);
  color: var(--white);
}
.btn--ghost-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: white;
}
.btn--lg {
  padding: 0.85rem 1.8rem;
  font-size: 1rem;
  border-radius: var(--radius-md);
}

/* === SCROLL REVEAL ===
   Tuned per UX motion guidance: small Y-offset (reads as fade, not slide),
   350ms duration, power1.out-style easing (cubic-bezier approximation). */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 { transition-delay: 0.06s; }
.reveal-delay-2 { transition-delay: 0.12s; }
.reveal-delay-3 { transition-delay: 0.18s; }
.reveal-delay-4 { transition-delay: 0.24s; }
.reveal-delay-5 { transition-delay: 0.3s; }

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

/* === HERO SHRIMP (ảnh AI gốc + vòng sóng đồng tâm lan tỏa quanh) ===
   Bỏ point-cloud/canvas (kết quả nhìn rối, không rõ hình con tôm) — dùng
   thẳng ảnh gốc đẹp sẵn, chuyển động chỉ đến từ 3 vòng tròn nở-ra-mờ-dần
   giống gợn sóng, đồng tâm với chính khung ảnh (không lệch tâm như trước). */
.hero__shrimp-scene {
  position: absolute;
  top: 50%;
  /* 11/10/2026 (Tâm): kéo tôm vào gần khối chữ — neo theo mép phải khung nội dung 1200px thay vì
     mép màn hình, màn rộng không còn khoảng trống lớn giữa chữ và tôm. */
  right: max(4%, calc((100% - var(--max-width)) / 2));
  width: 560px;
  height: 373px; /* tỉ lệ ~3:2 khớp ảnh nguồn 1024x683 */
  transform: translateY(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__shrimp-img {
  position: relative;
  z-index: 1;
  width: 92%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 18px 32px rgba(20, 60, 30, 0.18));
  /* Xoay theo bản nháp của Tâm 11/10/2026: đầu hướng lên trái, đuôi chúc xuống phải. */
  transform: rotate(28deg);
}
.hero__shrimp-wave {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 55%;
  height: 55%;
  border-radius: 50%;
  border: 1.5px solid rgba(47,158,68,0.4);
  transform: translate(-50%, -50%) scale(0.7);
  opacity: 0;
  pointer-events: none;
  animation: hero-shrimp-wave 3.3s ease-out infinite;
}
@keyframes hero-shrimp-wave {
  0%   { transform: translate(-50%, -50%) scale(0.7); opacity: 0.55; }
  100% { transform: translate(-50%, -50%) scale(1.9); opacity: 0; }
}

@media (max-width: 1024px) {
  .hero__shrimp-scene { width: 420px; height: 280px; right: 2%; }
}
@media (max-width: 768px) {
  .hero__shrimp-scene { position: static; width: 100%; height: 240px; transform: none; margin: var(--space-6) 0 0; }
  .hero__shrimp-img { width: 80%; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__shrimp-wave { animation: none !important; opacity: 0 !important; }
}

/* === HERO === */
.hero {
  position: relative;
  overflow: hidden;
  padding: var(--space-32) 0 var(--space-24);
  background: linear-gradient(180deg, var(--emerald-light) 0%, var(--white) 65%);
}
.hero__content { position: relative; z-index: 1; max-width: 640px; }
.hero__eyebrow {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--emerald);
  margin-bottom: var(--space-4);
}
.hero h1 { margin-bottom: var(--space-5); }
.hero h1 em { font-style: normal; color: var(--emerald); }
.hero__sub {
  font-size: 1.15rem;
  color: var(--gray-700);
  max-width: 520px;
  margin-bottom: var(--space-8);
  line-height: 1.7;
}
.hero__cta { display: flex; gap: var(--space-4); flex-wrap: wrap; }

/* Generic card grid */
.grid { display: grid; gap: var(--space-6); }
.grid--2 { grid-template-columns: 1fr 1fr; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
}
.cert-grid { grid-template-columns: repeat(5, 1fr); }
.cert-card { text-align: center; }
.cert-card__logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin: 0 auto var(--space-4);
  display: block;
}
.cert-card__logo--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--emerald-light);
  color: var(--emerald-dark);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}
.cert-card h4 { margin-bottom: var(--space-1); }
.cert-card p { font-size: 0.85rem; color: var(--gray-500); margin: 0; }
.cert-note {
  text-align: center;
  margin-top: var(--space-6);
  font-size: 0.85rem;
  color: var(--gray-500);
}
.cert-note em { color: var(--emerald-dark); font-style: normal; font-weight: 600; }
@media (max-width: 1024px) { .cert-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .cert-grid { grid-template-columns: repeat(2, 1fr); } }
.card--stat { text-align: center; }
.card--stat .num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  color: var(--emerald);
  margin-bottom: var(--space-2);
}
.card--stat .lbl { font-size: 0.85rem; color: var(--gray-500); }

.icon-badge {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  background: var(--emerald-light);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
}

/* BES letter tiles */
.bes-tile {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}
.bes-tile .letter {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--emerald);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
}

/* CTA band */
.cta-band {
  background: #1E6B2E;
  color: #FFFFFF;
  text-align: center;
  border-radius: var(--radius-xl);
  padding: var(--space-16) var(--space-8);
}
.cta-band h2 { color: #FFFFFF; }
.cta-band p { color: rgba(255,255,255,0.85); max-width: 560px; margin: 0 auto var(--space-8); }
.cta-band .hero__cta { justify-content: center; }

/* Comparison table */
.table-wrap { overflow-x: auto; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); }
table.compare { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
table.compare th, table.compare td {
  padding: var(--space-4) var(--space-5);
  text-align: center;
  border-bottom: 1px solid var(--gray-200);
}
table.compare th:first-child, table.compare td:first-child { text-align: left; }
table.compare thead th {
  background: var(--gray-50);
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--gray-900);
}
table.compare tbody tr:last-child td { border-bottom: none; }

/* === FOOTER ===
   Vùng tối CỐ ĐỊNH, không đổi theo theme sáng/tối của trang (giống nhiều site
   có footer luôn tối). Ghi đè cục bộ các biến theme-adaptive về giá trị cố
   định bên trong .footer, để không phải sửa tay từng dòng con — mọi rule con
   dùng var(--white)/var(--gray-400)/var(--gray-500) vẫn đọc đúng vì các biến
   này bị khoá lại ở đây, bất kể :root hay [data-theme="dark"] đang set gì. */
.footer {
  --white:   #FFFFFF;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  background: var(--ink);
  color: #9CA3AF;
  padding: var(--space-16) 0 var(--space-8);
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr; /* 6 cột từ 14/10/2026: thêm cột Nhà phát triển */
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}
.footer__brand-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.footer__brand-mark {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--emerald);
}
.footer__brand-mark svg { width: 40px; height: 40px; }
.footer__brand-labels {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 2px;
}
.footer__brand-parent {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}
.footer__brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--white);
  letter-spacing: -0.02em;
}
.footer__brand-name span { color: var(--emerald-mid); }
.footer__tagline {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--gray-500);
  margin-bottom: var(--space-6);
}
.footer__hotline {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
}
.footer__hotline small { font-size: 0.75rem; font-weight: 400; color: var(--gray-400); display: block; margin-bottom: 2px; }

.footer__col-title {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: var(--space-5);
}
.footer__col ul li { margin-bottom: var(--space-3); }
.footer__col ul li a {
  font-size: 0.875rem;
  color: var(--gray-500);
  transition: color var(--transition);
}
.footer__col ul li a:hover { color: var(--emerald-mid); }

.footer__bottom {
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.footer__copy { font-size: 0.8rem; color: var(--gray-500); }
.footer__legal {
  font-size: 0.7rem;
  color: var(--gray-500);
  max-width: 520px;
  line-height: 1.6;
}

/* === FLOATING CONTACT BUTTON === */
.float-cta {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}
.float-cta__btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--emerald);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(47,158,68,0.4);
  transition: all var(--transition);
  position: relative;
}
.float-cta__btn:hover {
  background: var(--emerald-dark);
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(47,158,68,0.5);
}
.float-cta__btn svg { width: 24px; height: 24px; fill: white; }
.float-cta__tooltip {
  background: var(--ink);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}
.float-cta:hover .float-cta__tooltip { opacity: 1; }

/* Problem / Solution lists (giai-phap.html) */
.ps-block { border: 1px solid var(--gray-200); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: var(--space-12); }
.ps-block__head { padding: var(--space-8) var(--space-8) 0; }
.ps-block__body { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.ps-col { padding: var(--space-8); }
.ps-col--problem { background: var(--hotline-light); }
.ps-col--solution { background: var(--emerald-light); }
.ps-col h4 { margin-bottom: var(--space-5); }
.ps-col ul li { padding: var(--space-2) 0; color: var(--gray-700); font-size: 0.95rem; line-height: 1.6; }
.ps-tags { padding: 0 var(--space-8) var(--space-8); font-size: 0.9rem; color: var(--gray-500); }

/* Mechanism numbered steps (cong-nghe.html) */
.mech-step { display: flex; gap: var(--space-5); margin-bottom: var(--space-6); }
.mech-step__num {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--emerald); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; flex-shrink: 0;
}
.mech-step p { color: var(--gray-700); }

/* === ECOSYSTEM NAV DROPDOWN === */
.nav__item--dropdown { position: relative; }
.nav__item--dropdown > a { display: flex; align-items: center; gap: 4px; cursor: pointer; }
.nav__item--dropdown .caret { font-size: 0.6rem; transition: transform var(--transition); }
.nav__item--dropdown:hover .caret { transform: rotate(180deg); }
.nav__dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: var(--space-3);
  width: 520px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(8px);
  transition: all var(--transition);
  z-index: 50;
}
.nav__item--dropdown:hover .nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav__dropdown a {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  align-items: flex-start;
  padding: var(--space-4) var(--space-3);
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-100);
  color: var(--gray-900) !important;
}
.nav__dropdown a:hover { background: var(--emerald-light); border-color: var(--emerald-mid); }
.nav__dropdown .ico { font-size: 1.2rem; flex-shrink: 0; }
.nav__dropdown .lbl-title { font-family: var(--font-display); font-weight: 700; font-size: 0.85rem; display: flex; align-items: center; gap: 6px; }
.nav__dropdown .lbl-desc { font-size: 0.75rem; color: var(--gray-500); margin-top: 2px; line-height: 1.4; }
@media (max-width: 1100px) {
  .nav__dropdown { width: 420px; }
}
.badge-soon { font-size: 0.6rem; font-weight: 700; color: var(--ocean); background: var(--ocean-light); padding: 1px 6px; border-radius: 999px; text-transform: uppercase; }

/* Ecosystem section (homepage) */
.eco-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              border-color 0.25s ease;
}
.eco-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--emerald);
}
.eco-card .ico {
  width: 48px; height: 48px; border-radius: var(--radius-md); background: var(--emerald-light);
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: var(--space-4);
  transition: transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.eco-card:hover .ico { transform: scale(1.08); }
.eco-card h4 { margin-bottom: var(--space-2); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.eco-card p { font-size: 0.9rem; flex: 1; margin-bottom: var(--space-5); }
.eco-card .domain { font-family: var(--font-display); font-size: 0.75rem; font-weight: 700; color: var(--emerald); letter-spacing: 0.02em; }

/* === RESPONSIVE ===
   4 mốc: desktop (mặc định) → 1024px tablet ngang → 768px tablet dọc/mobile lớn
   → 600px mobile → 380px mobile nhỏ. Nguyên tắc (21/08/2026, theo yêu cầu Tâm):
   nút HOTLINE và nút đổi giao diện PHẢI luôn hiển thị ở mọi kích thước — khách
   trên điện thoại không được phải mở menu hamburger mới gọi được. Chỉ ẩn
   .nav__links (menu điều hướng chính) khi màn hẹp, không ẩn .nav__cta.
   Mọi nút chạm (button/a trong nav, toggle) giữ tối thiểu 44px theo chuẩn
   touch target — xem .nav__cta .btn, .theme-toggle, .nav__burger bên dưới. */
@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: 1fr 1fr; }
  .ps-block__body { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .nav__cta .btn span,
  .nav__cta .btn { white-space: nowrap; }
  .nav__cta .btn { padding: 0.65rem 1rem; font-size: 0.85rem; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: var(--space-8); }
  .hero { padding: var(--space-20) 0 var(--space-16); }
  .cta-band { padding: var(--space-10) var(--space-5); }
}
@media (max-width: 600px) {
  .container { padding: 0 var(--space-4); }
  .nav__cta { gap: var(--space-2); }
  .nav__logo-sub { font-size: 1.05rem; }
  .nav__logo-parent { font-size: 0.55rem; }
  .nav__logo-mark, .nav__logo-mark svg { width: 32px; height: 32px; }
  .nav__cta .btn { padding: 0.6rem 0.85rem; font-size: 0.8rem; gap: 6px; }
  .nav__cta .btn svg { width: 14px; height: 14px; }
  .theme-toggle { width: 40px; height: 40px; }
}
@media (max-width: 480px) {
  .btn { width: 100%; justify-content: center; }
  .hero__cta { flex-direction: column; }
}
@media (max-width: 380px) {
  .nav__cta .btn .btn__label { display: none; }
  .nav__cta .btn { padding: 0.6rem; width: 40px; height: 40px; justify-content: center; }
  .nav__cta .btn svg { width: 16px; height: 16px; margin: 0; }
  .nav__logo-parent { display: none; }
}
/* Đảm bảo vùng chạm tối thiểu 44px trên các nút quan trọng, kể cả khi CSS trên
   thu nhỏ padding — theo chuẩn accessibility, không phụ thuộc kích thước chữ. */
.theme-toggle, .nav__burger { min-width: 40px; min-height: 40px; }
@media (hover: none) and (pointer: coarse) {
  .theme-toggle, .nav__burger, .nav__cta .btn { min-width: 44px; min-height: 44px; }
}

/* ---- Hình vẽ hệ sinh thái (thay emoji) — anh Tâm chốt 07/08/2026 ----
   Emoji mỗi máy vẽ một kiểu; bộ hình SVG này ăn theo màu chữ của thẻ cha
   (currentColor) nên tự đúng màu ở cả dropdown, thẻ eco và menu di động. */
.nav__dropdown .ico svg { width: 26px; height: 26px; display: block; color: var(--ocean); }
.eco-card .ico svg      { width: 46px; height: 46px; display: block; color: var(--ocean); }
.eco-card:hover .ico svg{ transform: none; }
.ico-inline             { width: 18px; height: 18px; vertical-align: -3px; color: currentColor; }
.icon-badge svg { width: 30px; height: 30px; display: block; color: var(--ocean); margin: 0 auto; }
