/* ==========================================================================
   ONGCHU POS — MASTER DESIGN SYSTEM V2 (ONGCHU_WEBSITE_V2_SPEC.md)
   Aesthetic: Modern, Trustworthy, Premium, Fast, F&B Engineering Craft
   Canvas: Warm Indochine Paper (#FAF8F5) / Ceramic White (#FFFFFF)
   Action: Cam Apple Warm Action Thread (#B45309 / #D97706)
   ========================================================================== */

:root {
  /* ----------------------------------------------------
     1. COLOR PALETTE
  ---------------------------------------------------- */
  /* Surfaces & Backgrounds */
  --bg-page: #FAF8F5;          /* Ngà Giấy Dó Ấm Áp (Anti-glare) */
  --bg-subtle: #F3EFEA;        /* Nền phụ ấm / Pill nền */
  --bg-card: #FFFFFF;          /* Trắng Men Gốm */
  --bg-card-hover: #FCFBF9;    /* Trắng Men Gốm hover */
  --bg-badge: #FEF3C7;         /* Vàng Hổ Phách Nhạt */
  --bg-header: rgba(250, 248, 245, 0.92);
  --bg-dark: #1C1917;          /* Nền tối điểm nhấn / Gỗ mun */

  /* Text & Typography */
  --text-primary: #1C1917;     /* Mực Mun Sắc Nét 15.8:1 */
  --text-secondary: #44403C;   /* Xám Đá Ấm 8.5:1 */
  --text-muted: #78716C;       /* Xám Mộc */
  --text-dim: #A8A29E;         /* Gợi ý mờ */
  --text-on-dark: #F9F6F0;     /* Chữ trên nền tối */

  /* Brand & Accent Action Thread (Cam Apple) */
  --brand-primary: #1C1917;    /* Đen Gỗ Mun Thương Hiệu */
  --brand-accent: #B45309;     /* Vàng Đồng Thau / Cam Apple */
  --brand-accent-hover: #92400E;/* Hổ Phách Đậm */
  --brand-accent-light: #FEF3C7;/* Nền nhấn hổ phách nhạt */
  --brand-accent-bright: #D97706;/* Cam Hổ Phách Rực */
  --brand-success: #15803D;    /* Xanh Lá Mộc (Status) */
  --brand-success-bg: #DCFCE7; /* Nền Xanh Lá Mộc */

  /* Borders & Hairlines */
  --border-subtle: #EAE6DF;    /* Kẻ mảnh chuẩn hairline */
  --border-default: #E2DDD5;   /* Viền card chuẩn */
  --border-hover: #D4CDC2;     /* Viền khi hover */
  --border-accent: rgba(180, 83, 9, 0.28);

  /* ----------------------------------------------------
     2. SPACING SYSTEM (8pt Multiples)
  ---------------------------------------------------- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* ----------------------------------------------------
     3. RADIUS TOKENS
  ---------------------------------------------------- */
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* ----------------------------------------------------
     4. SHADOWS (Warm Ceramic Elevation)
  ---------------------------------------------------- */
  --shadow-sm: 0 1px 2px 0 rgba(28, 25, 23, 0.04);
  --shadow-card: 0 2px 6px -1px rgba(28, 25, 23, 0.06), 0 1px 3px -1px rgba(28, 25, 23, 0.04);
  --shadow-card-hover: 0 16px 32px -8px rgba(180, 83, 9, 0.12), 0 4px 12px -2px rgba(28, 25, 23, 0.05);
  --shadow-accent: 0 6px 20px rgba(180, 83, 9, 0.25);
  --shadow-mockup: 0 24px 48px -12px rgba(28, 25, 23, 0.16), 0 8px 16px -4px rgba(28, 25, 23, 0.08);

  /* ----------------------------------------------------
     5. MOTION TOKENS
  ---------------------------------------------------- */
  --transition-fast: 150ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 250ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 350ms cubic-bezier(0.16, 1, 0.3, 1);

  /* ----------------------------------------------------
     6. Z-INDEX & LAYOUT CONTAINERS
  ---------------------------------------------------- */
  --z-base: 1;
  --z-sticky: 100;
  --z-drawer-backdrop: 200;
  --z-drawer: 210;
  --z-modal-backdrop: 300;
  --z-modal: 310;

  --container-max: 1120px;
  --container-pad: 20px;
}

/* ----------------------------------------------------
   BASE STYLES & RESET
---------------------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  line-height: 1.65;
  font-size: 17px;
  background: var(--bg-page);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: transparent;
}

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

:focus-visible {
  outline: 2px solid var(--brand-accent);
  outline-offset: 3px;
}

/* ----------------------------------------------------
   TYPOGRAPHY HIERARCHY
---------------------------------------------------- */
.font-display {
  font-size: clamp(34px, 5.5vw, 54px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.font-h1 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

.font-h2 {
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.font-h3 {
  font-size: 20px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.font-body {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-secondary);
}

.font-small {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--text-muted);
}

.font-caption {
  font-size: 12.5px;
  line-height: 1.4;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-muted);
}

/* ----------------------------------------------------
   LAYOUT CONTAINERS & SECTION WRAPPERS
---------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.section-block {
  padding: var(--space-20) 0;
  position: relative;
}

.section-block.alt-bg {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-block.dark-bg {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.section-header {
  text-align: center;
  max-width: 740px;
  margin: 0 auto var(--space-12);
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 4px 12px;
  background: var(--bg-badge);
  border: 1px solid #FDE68A;
  border-radius: var(--radius-full);
  color: #92400E;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: var(--space-3);
}

.section-title {
  margin-bottom: var(--space-3);
}

.section-desc {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.section-block.dark-bg .section-desc {
  color: var(--text-dim);
}

.section-block.dark-bg .section-title {
  color: var(--text-on-dark);
}

/* ----------------------------------------------------
   BUTTONS & ACTION CALLOUTS (44x44pt Touch Targets)
---------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: 0 24px;
  border-radius: var(--radius-md);
  font-size: 16.5px;
  font-weight: 600;
  transition: all var(--transition-fast);
  white-space: nowrap;
  user-select: none;
}

.btn-primary {
  background: var(--brand-accent);
  color: #FFFFFF;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--brand-accent-hover);
  box-shadow: var(--shadow-accent);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-default);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--border-hover);
  background: var(--bg-subtle);
  transform: translateY(-1px);
}

.btn-ghost {
  color: var(--text-secondary);
  padding: 0 16px;
}

.btn-ghost:hover {
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.04);
}

.btn-lg {
  min-height: 52px;
  padding: 0 28px;
  font-size: 17.5px;
  border-radius: var(--radius-md);
}

/* ----------------------------------------------------
   GLOBAL HEADER (Sticky, Accessible, Crisp)
---------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--bg-header);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: var(--z-sticky);
  transition: all var(--transition-normal);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-weight: 700;
  font-size: 20px;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.nav-link {
  font-size: 15.5px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 4px;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--brand-accent);
}

.nav-link.active {
  color: var(--brand-accent);
  font-weight: 600;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--brand-accent);
  border-radius: 1px;
}

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

.nav-hamburger-btn {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 24px;
}

/* ----------------------------------------------------
   MOBILE NAVIGATION DRAWER
---------------------------------------------------- */
.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(28, 25, 23, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: var(--z-drawer-backdrop);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.mobile-drawer-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 82%;
  max-width: 340px;
  background: var(--bg-card);
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.12);
  z-index: var(--z-drawer);
  transform: translateX(100%);
  transition: transform var(--transition-normal);
  display: flex;
  flex-direction: column;
  padding: var(--space-6);
  overflow-y: auto;
}

.mobile-drawer.active {
  transform: translateX(0);
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border-subtle);
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
}

.drawer-link {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 var(--space-3);
  border-radius: var(--radius-sm);
  font-size: 17px;
  font-weight: 500;
  color: var(--text-primary);
}

.drawer-link:hover {
  background: var(--bg-subtle);
  color: var(--brand-accent);
}

.drawer-footer {
  margin-top: auto;
  padding-top: var(--space-6);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

/* ----------------------------------------------------
   HERO SECTION (Product First, Showroom Quality)
---------------------------------------------------- */
.hero-section {
  padding: var(--space-16) 0 var(--space-12);
  text-align: center;
  position: relative;
}

.hero-content {
  max-width: 820px;
  margin: 0 auto var(--space-10);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 14px;
  background: var(--bg-badge);
  border: 1px solid #FDE68A;
  border-radius: var(--radius-full);
  color: #92400E;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: var(--space-4);
}

.hero-headline {
  margin-bottom: var(--space-4);
}

.hero-headline span {
  color: var(--brand-accent);
}

.hero-subtext {
  font-size: clamp(17px, 2.2vw, 20px);
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: var(--space-8);
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hero-visual-wrapper {
  max-width: 1040px;
  margin: 0 auto;
  position: relative;
}

.hero-mockup-frame {
  background: #FFFFFF;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: 10px;
  box-shadow: var(--shadow-mockup);
  position: relative;
  overflow: hidden;
}

.hero-mockup-frame img {
  border-radius: var(--radius-lg);
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--bg-subtle);
}

/* ----------------------------------------------------
   TRUST BAR (Clear Capabilities, Connected to Product)
---------------------------------------------------- */
.trust-bar {
  padding: var(--space-6) 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.trust-bar-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-4);
  align-items: center;
  justify-items: center;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--text-secondary);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.trust-item svg {
  color: var(--brand-accent);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ----------------------------------------------------
   PROBLEM → SOLUTION (3 Trụ Cột Vị Chủ Quán)
---------------------------------------------------- */
.problems-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: var(--space-6);
}

.problem-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-card);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.problem-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--border-hover);
}

.problem-num {
  font-size: 14px;
  font-weight: 700;
  color: var(--brand-accent);
  letter-spacing: 0.05em;
  margin-bottom: var(--space-3);
  text-transform: uppercase;
}

.problem-box {
  background: #FFFBEB;
  border-left: 3px solid #D97706;
  padding: var(--space-3) var(--space-4);
  border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
  margin-bottom: var(--space-6);
}

.problem-box-title {
  font-size: 13px;
  font-weight: 700;
  color: #B45309;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.problem-box-desc {
  font-size: 15px;
  color: #78350F;
  line-height: 1.5;
}

.solution-box-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-success);
  text-transform: uppercase;
  margin-bottom: var(--space-2);
  display: flex;
  align-items: center;
  gap: 6px;
}

.solution-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.solution-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: 15.5px;
  color: var(--text-primary);
  line-height: 1.45;
}

.solution-list li svg {
  color: var(--brand-success);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ----------------------------------------------------
   WORKFLOW 8-STEP PIPELINE
---------------------------------------------------- */
.workflow-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  position: relative;
}

.workflow-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  position: relative;
  transition: all var(--transition-fast);
}

.workflow-card:hover {
  border-color: var(--brand-accent);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.workflow-step-num {
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-accent);
  letter-spacing: 0.05em;
}

.workflow-step-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
}

.workflow-step-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ----------------------------------------------------
   SIGNATURE METRICS (3 Con Số Vàng)
---------------------------------------------------- */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-8);
}

.metric-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  text-align: center;
  backdrop-filter: blur(8px);
}

.metric-number {
  font-size: clamp(38px, 4.5vw, 56px);
  font-weight: 800;
  color: #FBBF24;
  line-height: 1;
  margin-bottom: var(--space-2);
}

.metric-title {
  font-size: 18px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: var(--space-2);
}

.metric-desc {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.5;
}

/* ----------------------------------------------------
   FEATURE BENTO GRID (Real Product Showroom)
---------------------------------------------------- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-6);
}

.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}

.bento-card:hover {
  box-shadow: var(--shadow-card-hover);
  border-color: var(--border-hover);
}

.bento-span-8 {
  grid-column: span 8;
}

.bento-span-4 {
  grid-column: span 4;
}

.bento-span-6 {
  grid-column: span 6;
}

.bento-span-12 {
  grid-column: span 12;
}

.bento-content {
  padding: var(--space-6);
}

.bento-tag {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--brand-accent);
  letter-spacing: 0.04em;
  margin-bottom: var(--space-2);
}

.bento-title {
  font-size: 21px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.bento-desc {
  font-size: 15.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.bento-media {
  margin-top: auto;
  background: #FAF8F5;
  overflow: hidden;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
}

.bento-media img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  transition: transform var(--transition-smooth);
}

.bento-card:hover .bento-media img {
  transform: scale(1.015);
}

/* ----------------------------------------------------
   OFFLINE-FIRST ARCHITECTURE COMPARISON
---------------------------------------------------- */
.offline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-8);
  margin-top: var(--space-6);
}

.offline-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-card);
  position: relative;
}

.offline-card.is-offline {
  border-color: #FBBF24;
  background: #FFFDF9;
}

.offline-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}

.badge-online {
  background: var(--brand-success-bg);
  color: var(--brand-success);
}

.badge-offline {
  background: #FEF3C7;
  color: #B45309;
}

.offline-flow-step {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px dashed var(--border-subtle);
  font-size: 15px;
  color: var(--text-primary);
}

.offline-flow-step:last-child {
  border-bottom: none;
}

.offline-flow-step svg {
  color: var(--brand-accent);
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ----------------------------------------------------
   DEVICE SHOWCASE TABS
---------------------------------------------------- */
.device-tabs-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
  flex-wrap: wrap;
}

.tab-btn {
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.tab-btn:hover {
  border-color: var(--brand-accent);
  color: var(--brand-accent);
}

.tab-btn.active {
  background: var(--brand-accent);
  border-color: var(--brand-accent);
  color: #FFFFFF;
  box-shadow: var(--shadow-sm);
}

.tab-pane {
  display: none;
  animation: fadeIn 300ms ease;
}

.tab-pane.active {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: center;
}

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

.tab-info h3 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: var(--space-3);
}

.tab-info p {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-6);
}

.tab-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.tab-features-list li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 15.5px;
  color: var(--text-primary);
}

.tab-features-list li svg {
  color: var(--brand-accent);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.tab-mockup {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: 8px;
  box-shadow: var(--shadow-mockup);
}

.tab-mockup img {
  border-radius: var(--radius-lg);
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  background: #FAF8F5;
}

/* ----------------------------------------------------
   SOLUTIONS MATRIX (Cafe, Trà Sữa, Quán Ăn, Nhà Hàng)
---------------------------------------------------- */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-6);
}

.solution-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}

.solution-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--border-hover);
}

.solution-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  color: var(--brand-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: var(--space-4);
}

.solution-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.solution-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: var(--space-4);
  flex: 1;
}

.solution-link {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--brand-accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

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

/* ----------------------------------------------------
   ACCESSIBLE FAQ ACCORDION
---------------------------------------------------- */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-fast);
}

.faq-item:hover {
  border-color: var(--border-hover);
}

.faq-trigger {
  width: 100%;
  text-align: left;
  min-height: 56px;
  padding: var(--space-4) var(--space-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  font-size: 17.5px;
  font-weight: 600;
  color: var(--text-primary);
  background: transparent;
}

.faq-trigger svg {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform var(--transition-normal);
}

.faq-item.active .faq-trigger svg {
  transform: rotate(180deg);
  color: var(--brand-accent);
}

.faq-panel {
  display: none;
  padding: 0 var(--space-5) var(--space-5);
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.faq-item.active .faq-panel {
  display: block;
}

/* ----------------------------------------------------
   FINAL CALL TO ACTION
---------------------------------------------------- */
.final-cta-section {
  padding: var(--space-20) 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}

.final-cta-inner {
  max-width: 720px;
  margin: 0 auto;
}

.final-cta-title {
  margin-bottom: var(--space-3);
}

.final-cta-desc {
  font-size: 19px;
  color: var(--text-secondary);
  margin-bottom: var(--space-8);
}

/* ----------------------------------------------------
   GLOBAL FOOTER
---------------------------------------------------- */
.site-footer {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding: var(--space-16) 0 var(--space-8);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}

.footer-brand h4 {
  font-size: 20px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: var(--space-3);
}

.footer-brand p {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.6;
  max-width: 320px;
  margin-bottom: var(--space-4);
}

.footer-col h5 {
  font-size: 14.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: #FFFFFF;
  letter-spacing: 0.04em;
  margin-bottom: var(--space-4);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-links a {
  font-size: 15px;
  color: var(--text-dim);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: #FFFFFF;
}

.footer-bottom {
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
  font-size: 14px;
  color: var(--text-dim);
}

/* ----------------------------------------------------
   MODAL COMPONENT
---------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(28, 25, 23, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: var(--z-modal-backdrop);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-mockup);
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  padding: var(--space-8);
  position: relative;
  transform: translateY(16px);
  transition: transform var(--transition-normal);
}

.modal-backdrop.active .modal-card {
  transform: translateY(0);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border-subtle);
}

.modal-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
}

.modal-close-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 20px;
}

.modal-close-btn:hover {
  background: var(--bg-subtle);
  color: var(--text-primary);
}

/* ----------------------------------------------------
   DOWNLOAD HUB SPECIFIC COMPONENTS (tai-app.html)
---------------------------------------------------- */
.dl-platforms-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-4);
}

.dl-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.dl-card:hover {
  box-shadow: var(--shadow-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.dl-card.highlight {
  border: 2px solid var(--brand-accent);
  background: #FFFDF9;
}

.dl-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dl-icon-circle.win {
  background: rgba(0, 120, 212, 0.1);
  color: #0078D4;
}

.dl-icon-circle.android {
  background: rgba(21, 128, 61, 0.12);
  color: #15803D;
}

.dl-icon-circle.apple {
  background: rgba(28, 25, 23, 0.08);
  color: #1C1917;
}

.dl-icon-circle.web {
  background: rgba(180, 83, 9, 0.1);
  color: #B45309;
}

.dl-icon-circle.hardware {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-lg);
  background: rgba(180, 83, 9, 0.08);
  color: #B45309;
  margin-bottom: 14px;
}

.dl-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.dl-card-badge.gold {
  background: rgba(180, 83, 9, 0.12);
  color: var(--brand-accent);
}

.dl-card-badge.green {
  background: rgba(21, 128, 61, 0.12);
  color: #15803D;
}

.dl-card-badge.subtle {
  background: var(--bg-subtle);
  color: var(--text-secondary);
}

.dl-card-preview {
  margin: var(--space-4) 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 220px;
}

.dl-card-preview img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.dl-card:hover .dl-card-preview img {
  transform: scale(1.02);
}

.dl-specs-box {
  background: rgba(0, 0, 0, 0.025);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin: var(--space-4) 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}

.dl-spec-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dl-spec-row .spec-label {
  color: var(--text-muted);
}

.dl-spec-row .spec-val {
  font-weight: 600;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.dl-step-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 14.5px;
}

.dl-step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--brand-accent);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.platform-pill-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: var(--space-6);
}

.platform-pill {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-default);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.platform-pill:hover {
  border-color: var(--brand-accent);
  color: var(--brand-accent);
  background: #FFFDF9;
  transform: translateY(-1px);
}

.platform-pill svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.btn-icon-svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

/* ----------------------------------------------------
   RESPONSIVE BREAKPOINTS
---------------------------------------------------- */
@media (max-width: 1024px) {
  .nav-desktop {
    display: none;
  }
  .nav-hamburger-btn {
    display: inline-flex;
  }
  .workflow-track {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento-span-8,
  .bento-span-4,
  .bento-span-6 {
    grid-column: span 12;
  }
  .tab-pane.active {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .dl-platforms-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --space-20: 56px;
    --space-16: 48px;
    --space-12: 36px;
  }
  .metrics-grid {
    grid-template-columns: 1fr;
  }
  .workflow-track {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-actions .btn {
    width: 100%;
  }
}

@media (max-width: 375px) {
  body {
    font-size: 16px;
  }
  .container {
    padding: 0 16px;
  }
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
