/*
 * Lynx FinTech & Audit Ecosystem — Prompt 44 Trustworthy Dark FinTech Design System
 * Fully Responsive & Anti-Wrap Edition
 * - Source: Prompt 44 (44-trustworthy-dark-fintech)
 * - Fluid Typography: clamp(), text-wrap: balance, overflow-wrap: break-word
 * - Responsive Breakpoints: 1280px, 1180px, 1024px, 768px, 640px
 * - Adaptive Grids: 4-col -> 2x2 grid -> 1-col
 * - Mobile Navigation: Clean slide-down drawer
 * - WCAG AAA Contrast & Vietnamese Diacritic Protection
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700;800&display=swap');

:root, html[data-theme="dark"] {
  /* Prompt 44: Trustworthy Dark FinTech Palette (Default) */
  --bg-canvas: #192625;
  --bg-surface: #233130;
  --bg-subtle: #1c2b2a;
  --bg-hover: #2a3c3a;
  --border-color: rgba(255, 255, 255, 0.1);
  --border-focus: #B3F05D;

  /* Typography */
  --text-main: #FFFFFF;
  --text-muted: #A0AAB2;
  --text-faint: #8E9CA4;

  /* Brand Accents */
  --accent-primary: #B3F05D;        /* Sharp Neon Lime (Prompt 44 signature) */
  --accent-primary-hover: #C4F575;
  --accent-primary-fg: #192625;     /* Dark text on lime button */
  --accent-secondary: #38BDF8;      /* Sky Cyan */
  --accent-success: #34D399;
  --accent-danger: #F87171;

  /* Badges & Pills */
  --badge-bg: rgba(179, 240, 93, 0.12);
  --badge-text: #B3F05D;
  --badge-border: rgba(179, 240, 93, 0.25);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.6);

  /* Tables */
  --table-header-bg: #1c2b2a;
  --table-row-zebra: #202e2d;
}

html[data-theme="light"] {
  /* Crisp Clean Light Fallback */
  --bg-canvas: #F8FAF9;
  --bg-surface: #FFFFFF;
  --bg-subtle: #EEF2F0;
  --bg-hover: #E5EBE8;
  --border-color: #DDE4E1;
  --border-focus: #15803D;

  --text-main: #141E1C;
  --text-muted: #4B5B57;
  --text-faint: #5A6B65;

  --accent-primary: #15803D;
  --accent-primary-hover: #166534;
  --accent-primary-fg: #FFFFFF;
  --accent-secondary: #0284C7;
  --accent-success: #059669;
  --accent-danger: #DC2626;

  --badge-bg: rgba(21, 128, 61, 0.08);
  --badge-text: #15803D;
  --badge-border: rgba(21, 128, 61, 0.2);

  --shadow-sm: 0 1px 3px rgba(20, 30, 28, 0.04);
  --shadow-md: 0 4px 16px rgba(20, 30, 28, 0.06);
  --shadow-lg: 0 12px 32px rgba(20, 30, 28, 0.08);

  --table-header-bg: #EEF2F0;
  --table-row-zebra: #F5F8F7;
}

/* Base Reset & Global Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-canvas);
  color: var(--text-main);
  overflow-x: hidden;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  background-color: var(--bg-canvas);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.2s ease, color 0.2s ease;
  overflow-x: hidden;
  width: 100%;
}

/* Typography Hierarchy & Fluid Scaling */
h1 {
  font-size: clamp(2.25rem, 3.5vw + 0.75rem, 3.25rem);
  font-weight: 800;
  line-height: 1.15 !important;
  letter-spacing: -0.025em;
  color: var(--text-main);
  text-wrap: balance;
  overflow-wrap: break-word;
}

h2 {
  font-size: clamp(1.75rem, 2.5vw + 0.5rem, 2.25rem);
  font-weight: 700;
  line-height: 1.25 !important;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 0.75rem;
  text-wrap: balance;
  overflow-wrap: break-word;
}

h3 {
  font-size: clamp(1.15rem, 1.5vw + 0.4rem, 1.35rem);
  font-weight: 600;
  line-height: 1.35 !important;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  overflow-wrap: break-word;
}

p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  overflow-wrap: break-word;
}

p.lead {
  font-size: clamp(1.05rem, 1.2vw + 0.35rem, 1.18rem);
  line-height: 1.75;
  color: var(--text-muted);
  text-wrap: pretty;
}

.mono {
  font-family: 'JetBrains Mono', Consolas, monospace;
}

/* Universal Form & Button Font Inheritance Guard */
button, input, select, textarea, .btn {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* Vietnamese Uppercase Diacritic Guard */
.badge, .btn, h1, h2, h3, h4, th, .featured-pill, .badge-recommended {
  line-height: 1.35 !important;
}

/* Responsive Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* Navigation Bar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(25, 38, 37, 0.92);
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.2s ease;
  width: 100%;
}

html[data-theme="light"] .navbar {
  background-color: rgba(248, 250, 249, 0.95);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 16px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.nav-brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--accent-primary);
  box-shadow: 0 0 10px var(--accent-primary);
  flex-shrink: 0;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
}

.nav-link {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.15s ease;
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-main);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Mobile Hamburger Toggle Button */
.nav-mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background-color: var(--bg-surface);
  color: var(--text-main);
  cursor: pointer;
}

/* Mobile Drawer Dropdown */
.nav-mobile-drawer {
  display: none;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  padding: 20px 24px;
}

.nav-mobile-drawer.active {
  display: block;
}

.nav-mobile-drawer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}

.nav-mobile-drawer .nav-link {
  font-size: 1.05rem;
  padding: 4px 0;
  display: block;
}

/* Theme Switcher Button */
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background-color: var(--bg-surface);
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.theme-toggle-btn:hover {
  background-color: var(--bg-hover);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.theme-toggle-btn .icon-moon {
  display: none;
}
.theme-toggle-btn .icon-sun {
  display: block;
}

/* Prompt 44 Buttons: Rounded-full & Anti-Overflow Guard */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 9999px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 44px;
  white-space: normal; /* Safe against card overflow */
  text-align: center;
  max-width: 100%;
}

.btn-primary {
  background-color: var(--accent-primary);
  color: var(--accent-primary-fg) !important;
  border: 1px solid var(--accent-primary);
  font-weight: 700;
}

.btn-primary:hover {
  background-color: var(--accent-primary-hover);
  border-color: var(--accent-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(179, 240, 93, 0.3);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.875rem;
  min-height: 38px;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1.05rem;
  min-height: 50px;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 9999px;
  background-color: var(--badge-bg);
  color: var(--badge-text);
  border: 1px solid var(--badge-border);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap !important;
  line-height: 1.35 !important;
  flex-shrink: 0;
}

.card-header-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.card-header-badge-row > * {
  white-space: nowrap !important;
  flex-shrink: 0;
}
/* Cards */
.card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
  overflow: hidden;
}

.card:hover {
  border-color: rgba(179, 240, 93, 0.3);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* Grids */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

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

/* Hero Section (Prompt 44: 2-Column Split) */
.hero {
  padding: 64px 0 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.hero-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Hero Feature List with Lime Checks */
.hero-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.hero-check-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-main);
  line-height: 1.5;
}

.hero-check-item svg {
  color: var(--accent-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

/* FinTech Live Dashboard Widget */
.fintech-preview-widget {
  background: linear-gradient(135deg, #233130 0%, #192625 100%);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  overflow: hidden;
}

.fintech-preview-widget::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(179, 240, 93, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.widget-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--accent-primary);
  font-weight: 600;
}

.widget-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-primary);
  animation: pulse-dot 2s infinite;
  flex-shrink: 0;
}

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

.widget-metric-card {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.widget-metric-val {
  font-family: 'JetBrains Mono', Consolas, monospace;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
}

.widget-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
}

/* Light Mode Adaptations for FinTech Preview Widget */
html[data-theme="light"] .fintech-preview-widget {
  background: linear-gradient(135deg, #FFFFFF 0%, #F0F5F3 100%) !important;
  border-color: var(--border-color) !important;
  box-shadow: 0 12px 32px rgba(20, 30, 28, 0.08) !important;
}

html[data-theme="light"] .fintech-preview-widget::before {
  background: radial-gradient(circle, rgba(21, 128, 61, 0.08) 0%, transparent 70%) !important;
}

html[data-theme="light"] .widget-metric-card {
  background-color: #FFFFFF !important;
  border-color: var(--border-color) !important;
  box-shadow: 0 2px 8px rgba(20, 30, 28, 0.03) !important;
}

html[data-theme="light"] .widget-footer {
  border-top-color: var(--border-color) !important;
}

/* Proof Metrics Strip */
.metrics-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  margin-top: 48px;
}

.metric-item {
  text-align: center;
  padding: 0 16px;
  border-right: 1px solid var(--border-color);
}

.metric-item:last-child {
  border-right: none;
}

.metric-value {
  font-size: clamp(1.75rem, 2.5vw, 2.25rem);
  font-weight: 800;
  color: var(--accent-primary);
  line-height: 1.15 !important;
  margin-bottom: 4px;
}

.metric-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Sections */
.section {
  padding: 72px 0;
}

.section-header {
  text-align: center;
  max-width: 920px;
  margin: 0 auto 40px;
}
.section-header h2 {
  font-size: clamp(1.85rem, 3.2vw, 2.5rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin-bottom: 14px;
}
.section-header p {
  max-width: 820px;
  margin: 0 auto;
  line-height: 1.65;
  color: var(--text-muted);
  text-wrap: pretty;
}

/* 3-Step Pipeline Cards */
.pipeline-step-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.2s ease;
}

.pipeline-step-card:hover {
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.step-num-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--accent-primary);
  color: var(--accent-primary-fg);
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 20px;
}

/* Product Card */
.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 36px 30px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.product-card:hover {
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.product-card.featured {
  border: 2px solid var(--accent-primary);
  box-shadow: 0 0 30px rgba(179, 240, 93, 0.15);
}

.product-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.product-card-icon {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex-shrink: 0;
}

.product-card-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}

.product-card-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  flex-grow: 1;
}

.feature-check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.feature-check-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9375rem;
  color: var(--text-main);
  line-height: 1.5;
}

.feature-check-item svg {
  color: var(--accent-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Table Design */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
}

table.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9375rem;
  min-width: 680px; /* Touch scroll on mobile */
}

table.data-table th {
  background-color: var(--table-header-bg);
  color: var(--text-main);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

table.data-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.5;
  vertical-align: middle;
}

table.data-table tr:nth-child(even) {
  background-color: var(--table-row-zebra);
}

table.data-table tr:hover {
  background-color: var(--bg-hover);
}

/* Typography & Helpers for Audit Working Paper Table */
.proc-name {
  color: var(--text-main);
  font-weight: 600;
  display: block;
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
}

.wp-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', Consolas, monospace;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--accent-primary);
  background-color: var(--badge-bg);
  border: 1px solid var(--badge-border);
  border-radius: 6px;
  padding: 3px 8px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.law-pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-main);
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  padding: 2px 10px;
  white-space: nowrap;
}

html[data-theme="light"] .law-pill {
  background-color: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.12);
  color: var(--text-main);
}

.highlight-metric {
  color: var(--accent-primary);
  font-weight: 600;
}
/* Pricing Grid */
.pricing-card {
  position: relative;
  overflow: visible !important;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 36px 26px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.pricing-card.featured {
  border: 2px solid var(--accent-primary);
  box-shadow: 0 0 35px rgba(179, 240, 93, 0.18);
  background: linear-gradient(180deg, rgba(25, 38, 37, 0.95) 0%, rgba(18, 26, 25, 0.98) 100%);
  overflow: visible !important;
}

.badge-recommended {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(179, 240, 93, 0.16);
  color: var(--accent-primary);
  border: 1px solid var(--accent-primary);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  letter-spacing: 0.02em;
}

.plan-pill {
  transition: all 0.18s ease;
}
.plan-pill.active {
  background-color: var(--accent-primary) !important;
  color: var(--accent-primary-fg) !important;
  border-color: var(--accent-primary) !important;
  font-weight: 700 !important;
  box-shadow: 0 0 12px rgba(179, 240, 93, 0.35);
}

.section-badge-cyan {
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-secondary);
  border: 1px solid rgba(56, 189, 248, 0.25);
}
.section-badge-red {
  background: rgba(239, 68, 68, 0.12);
  color: var(--accent-danger);
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.stage-window-status {
  font-size: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
}
.stage-window-status.status-blue {
  color: var(--accent-secondary);
}
.stage-window-status.status-amber {
  color: #F59E0B;
}

.price-anchor-callout {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.article-offer-card {
  background: linear-gradient(180deg, rgba(35, 49, 48, 0.95) 0%, rgba(25, 38, 37, 0.98) 100%);
  border: 2px solid var(--accent-primary);
  border-radius: 16px;
  padding: 32px 28px;
  margin: 24px 0;
}
.article-bonus-box {
  background: rgba(0, 0, 0, 0.25);
  border: 1px dashed rgba(179, 240, 93, 0.3);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 20px;
}

.featured-pill {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--accent-primary);
  color: #0b1413 !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.35 !important;
  padding: 5px 16px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  z-index: 10;
  box-shadow: 0 4px 14px rgba(179, 240, 93, 0.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.price-val {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: clamp(1.85rem, 2.5vw, 2.25rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin: 16px 0 6px;
  white-space: nowrap;
}

.price-amount {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.table-price {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.meta-tag {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.price-unit {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ==========================================================================
   Irresistible Offer (Godfather Offer) & Bonus Stack
   ========================================================================== */
.offer-combo-card {
  position: relative;
  background: linear-gradient(180deg, rgba(20, 26, 22, 0.98) 0%, rgba(12, 16, 14, 0.99) 100%);
  border: 1px solid rgba(179, 240, 93, 0.45);
  border-radius: 20px;
  padding: 36px 32px;
  box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.7), 0 0 35px rgba(179, 240, 93, 0.08);
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.offer-combo-card:hover {
  border-color: rgba(179, 240, 93, 0.65);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 45px rgba(179, 240, 93, 0.14);
}
.offer-tag-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}
.offer-pill-hot {
  display: inline-flex;
  align-items: center;
  background: rgba(179, 240, 93, 0.15);
  color: var(--accent-primary);
  border: 1px solid rgba(179, 240, 93, 0.35);
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.offer-pill-save {
  display: inline-flex;
  align-items: center;
  background: rgba(244, 63, 94, 0.15);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.3);
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.offer-bonus-box {
  background: rgba(179, 240, 93, 0.035);
  border: 1px dashed rgba(179, 240, 93, 0.32);
  border-radius: 14px;
  padding: 18px 20px;
  margin: 20px 0 24px;
}
.offer-bonus-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 8px;
}
.offer-bonus-title {
  font-size: 0.8125rem;
  font-weight: 800;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.offer-bonus-value {
  font-size: 0.75rem;
  font-weight: 700;
  color: #ffd166;
  background: rgba(255, 209, 102, 0.12);
  padding: 2px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 209, 102, 0.28);
}
.offer-bonus-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.offer-bonus-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--text-muted);
  gap: 12px;
}
.offer-bonus-item strong {
  color: var(--text-main);
}
.offer-bonus-tag {
  color: var(--accent-primary);
  font-weight: 800;
  font-size: 0.7188rem;
  background: rgba(179, 240, 93, 0.12);
  border: 1px solid rgba(179, 240, 93, 0.25);
  padding: 1px 6px;
  border-radius: 4px;
  flex-shrink: 0;
  margin-right: 6px;
}
.offer-bonus-worth {
  font-size: 0.75rem;
  color: var(--text-faint);
  text-decoration: line-through;
  white-space: nowrap;
  flex-shrink: 0;
}
.single-tool-card {
  background: linear-gradient(180deg, rgba(20, 24, 22, 0.9) 0%, rgba(15, 18, 16, 0.95) 100%);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: all 0.2s ease;
}
.single-tool-card:hover {
  border-color: rgba(179, 240, 93, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
}
@media (max-width: 640px) {
  .single-tool-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .single-tool-card > div:last-child {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
  }
}

/* VietQR Frame */
.vietqr-box {
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 28px;
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 32px;
}

.vietqr-img {
  width: 144px;
  height: 144px;
  background-color: #FFFFFF;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  object-fit: contain;
  flex-shrink: 0;
}

.vietqr-memo-code {
  font-family: 'JetBrains Mono', Consolas, monospace;
  font-size: clamp(0.875rem, 1.2vw + 0.3rem, 1rem);
  color: var(--accent-primary);
  background: var(--bg-canvas);
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  word-break: break-all;
  overflow-wrap: anywhere;
}

/* FAQ Accordion */
.faq-list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.15s ease;
}

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

.faq-question {
  padding: 22px 28px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  gap: 16px;
}

.faq-answer {
  padding: 0 28px 22px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Footer */
.footer {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  padding: 64px 0 36px;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--text-faint);
  flex-wrap: wrap;
  gap: 16px;
}

/* =========================================================
   RESPONSIVE BREAKPOINTS: 1280px, 1180px, 1024px, 768px, 640px
   ========================================================= */

/* 1. Large Laptop (1180px - 1280px) */
@media (max-width: 1280px) {
  .nav-menu {
    gap: 14px;
  }
  .nav-link {
    font-size: 0.875rem;
  }
  .grid-4 {
    /* Adaptive 2x2 grid for Pricing on laptops! Eliminates narrow card spills */
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

/* 2. Standard Laptop / Small Screen (1024px - 1179px) */
@media (max-width: 1180px) {
  .nav-menu {
    display: none; /* Transition to mobile/tablet menu */
  }
  .nav-mobile-toggle {
    display: inline-flex;
  }
  .metrics-strip {
    /* Adaptive 2x2 grid for Metrics */
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .metric-item:nth-child(2) {
    border-right: none;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

/* 3. Tablet (768px - 1023px) */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .fintech-preview-widget {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
  }
}

/* 4. Small Tablet & Phablet (640px - 767px) */
@media (max-width: 768px) {
  .grid-4 {
    grid-template-columns: 1fr;
  }
  .vietqr-box {
    flex-direction: column;
    text-align: center;
  }
  .vietqr-box > div:last-child {
    grid-template-columns: 1fr !important;
  }
  .card {
    padding: 24px 20px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* 5. Mobile (under 640px) */
@media (max-width: 640px) {
  .metrics-strip {
    grid-template-columns: 1fr;
    padding: 20px 16px;
  }
  .metric-item {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding: 14px 0;
  }
  .metric-item:last-child {
    border-bottom: none;
  }
  .hero-actions,
  .hero-centered-actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-actions .btn,
  .hero-centered-actions .btn {
    width: 100%;
  }
  .nav-brand span:not(.nav-brand-dot) {
    font-size: 1.1rem;
  }
  .nav-brand .badge {
    display: none; /* Save space on small phones */
  }
}

/* Tiered Pricing Responsive Grid */
.pricing-tiered-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: stretch;
}

@media (max-width: 1024px) {
  .pricing-tiered-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
}

/* ==========================================================================
   Magic UI SaaS Primitives (Silicon Valley FinTech Edition)
   ========================================================================== */

/* 1. Announcement Shimmer Pill */
.announcement-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  margin-bottom: 24px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
.announcement-pill:hover {
  border-color: var(--accent-primary);
  color: var(--text-main);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(179, 240, 93, 0.15);
}
.announcement-pill .pill-tag {
  background: rgba(179, 240, 93, 0.15);
  color: var(--accent-primary);
  font-weight: 700;
  font-size: 0.6875rem;
  padding: 2px 8px;
  border-radius: 9999px;
  letter-spacing: 0.02em;
}
.announcement-pill .pill-arrow {
  transition: transform 0.2s ease;
}
.announcement-pill:hover .pill-arrow {
  transform: translateX(3px);
}

/* 2. Centered Hero Section with Retro Grid & Conic Lights */
.hero-centered {
  padding: 84px 0 68px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.retro-grid-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
  mask-image: radial-gradient(ellipse 65% 55% at 50% 35%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 65% 55% at 50% 35%, black 20%, transparent 80%);
}
.retro-grid-lines {
  position: absolute;
  inset: -50% -50% -50% -50%;
  width: 200%;
  height: 200%;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  transform: perspective(500px) rotateX(60deg) translateY(-80px);
  animation: gridScroll 18s linear infinite;
}
@keyframes gridScroll {
  0% { transform: perspective(500px) rotateX(60deg) translateY(0); }
  100% { transform: perspective(500px) rotateX(60deg) translateY(48px); }
}
.hero-centered::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 480px;
  background: radial-gradient(circle, rgba(179, 240, 93, 0.16) 0%, rgba(37, 99, 235, 0.08) 40%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}
.hero-centered-content {
  max-width: 960px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-centered-title {
  font-size: clamp(2.25rem, 4.5vw, 3.85rem);
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
  text-wrap: balance;
}
.text-gradient-platinum {
  background: linear-gradient(180deg, #FFFFFF 30%, rgba(255, 255, 255, 0.75) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
}
.text-gradient-neon {
  background: linear-gradient(135deg, #B3F05D 0%, #10B981 50%, #38BDF8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
  filter: drop-shadow(0 0 20px rgba(179, 240, 93, 0.35));
}
.text-gradient-cyan {
  background: linear-gradient(135deg, #38BDF8 0%, #0284C7 50%, #10B981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
  filter: drop-shadow(0 0 20px rgba(56, 189, 248, 0.35));
}
.text-gradient-amber {
  background: linear-gradient(135deg, #FBBF24 0%, #F59E0B 50%, #10B981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
  filter: drop-shadow(0 0 20px rgba(245, 158, 11, 0.35));
}
.hero-centered-lead {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 800px;
  margin-bottom: 32px;
  text-wrap: pretty;
}
.hero-centered-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
@media (max-width: 640px) {
  .hero-centered-actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-centered-actions .btn {
    width: 100%;
    justify-content: center;
  }
}
.hero-micro-copy {
  font-size: 0.8125rem;
  color: var(--text-faint);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 48px;
}
.hero-micro-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.hero-micro-item:not(:last-child)::after {
  content: '•';
  margin-left: 12px;
  color: rgba(255, 255, 255, 0.25);
}

/* 3. 3D Perspective Tilt Showcase with Magic UI Border Beam */
.perspective-container {
  perspective: 1200px;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px;
  position: relative;
  z-index: 1;
}
.border-beam-wrapper {
  position: relative;
  border-radius: 20px;
  padding: 2px;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 25px 70px rgba(0, 0, 0, 0.8),
    0 0 100px rgba(179, 240, 93, 0.18),
    0 0 140px rgba(37, 99, 235, 0.12);
  transform: rotateX(8deg) scale(0.97);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s ease;
}
.border-beam-wrapper:hover {
  transform: rotateX(1deg) scale(0.99);
  box-shadow: 
    0 0 0 1px rgba(179, 240, 93, 0.45),
    0 35px 90px rgba(0, 0, 0, 0.9),
    0 0 120px rgba(179, 240, 93, 0.3),
    0 0 180px rgba(37, 99, 235, 0.25);
}
.border-beam-laser {
  position: absolute;
  inset: -150%;
  background: conic-gradient(from 0deg at 50% 50%, transparent 0deg, transparent 290deg, #B3F05D 335deg, #38BDF8 360deg);
  animation: borderBeamRotate 7s linear infinite;
  pointer-events: none;
  z-index: 0;
}
@keyframes borderBeamRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.border-beam-inner {
  position: relative;
  border-radius: 18px;
  background: #090D17;
  overflow: hidden;
  z-index: 1;
}
@media (max-width: 768px) {
  .border-beam-wrapper {
    transform: none !important;
    border-radius: 14px;
  }
  .border-beam-inner {
    border-radius: 12px;
  }
}

/* Magic UI Shimmering Glowing CTA Button */
.btn-magic-glow {
  position: relative;
  background: linear-gradient(135deg, #B3F05D 0%, #10B981 100%) !important;
  color: #080A0F !important;
  font-weight: 800 !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  box-shadow: 0 0 25px rgba(179, 240, 93, 0.45), 0 4px 14px rgba(0, 0, 0, 0.3) !important;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.btn-magic-glow::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -70%;
  width: 45%;
  height: 200%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.7), transparent);
  transform: rotate(25deg);
  animation: btnLightRay 3.2s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}
@keyframes btnLightRay {
  0% { left: -70%; }
  30%, 100% { left: 170%; }
}
.btn-magic-glow:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 35px rgba(179, 240, 93, 0.75), 0 8px 25px rgba(0, 0, 0, 0.4) !important;
}

/* Interactive Micro-UI Components in Bento Cards */
.micro-ui-card {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 20px;
}
.micro-ui-progress-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  overflow: hidden;
  margin: 10px 0 6px;
}
.micro-ui-progress-bar {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #10B981, #B3F05D);
  border-radius: 9999px;
  animation: pulseGlow 2.5s ease-in-out infinite;
}
@keyframes pulseGlow {
  0%, 100% { opacity: 0.9; }
  50% { opacity: 1; filter: drop-shadow(0 0 8px #B3F05D); }
}
.kbd-shortcut {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2);
}
.bento-card, .problem-card {
  position: relative;
}
.bento-card::before, .problem-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
}
.bento-card:hover::before {
  background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
}
.stage-window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.window-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}
.window-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.window-dot.red { background: #EF4444; }
.window-dot.yellow { background: #F59E0B; }
.window-dot.green { background: #10B981; }
.stage-window-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.02em;
}
.stage-img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9.5;
  object-fit: cover;
  object-position: top;
}
@media (max-width: 768px) {
  .perspective-stage {
    transform: none !important;
    border-radius: 12px;
  }
}

/* 4. Infinite Logo Marquee */
.marquee-section {
  padding: 44px 0 36px;
  overflow: hidden;
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.15);
}
.marquee-label {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 24px;
}
.marquee-wrapper {
  display: flex;
  overflow: hidden;
  user-select: none;
  mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
  width: 100%;
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-shrink: 0;
  min-width: 100%;
  animation: marqueeScroll 24s linear infinite;
}
.marquee-wrapper:hover .marquee-track {
  animation-play-state: paused;
}
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
  opacity: 0.75;
  transition: all 0.2s ease;
  padding: 8px 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
}
.marquee-item:hover {
  opacity: 1;
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
}

/* 5. Problem & Bento Grid */
.problem-section {
  padding: 80px 0;
}
.section-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-primary);
  background: rgba(179, 240, 93, 0.1);
  padding: 4px 12px;
  border-radius: 9999px;
  margin-bottom: 12px;
}
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.problem-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 28px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}
.problem-card:hover {
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.02);
  transform: translateY(-3px);
}
.problem-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.12);
  color: #F87171;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.bento-grid-suite {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: auto auto;
  gap: 24px;
  margin-top: 40px;
}
.bento-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}
.bento-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}
.bento-card.hero-tool {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
@media (max-width: 900px) {
  .problem-grid {
    grid-template-columns: 1fr;
  }
  .bento-grid-suite {
    grid-template-columns: 1fr;
  }
  .bento-card.hero-tool {
    grid-row: span 1;
  }
}

/* 6. How It Works 3-Step Flow */
.how-it-works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.step-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}
.step-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-3px);
}
.step-num-watermark {
  font-family: 'JetBrains Mono', monospace;
  font-size: 3.5rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.06);
  position: absolute;
  top: 12px;
  right: 18px;
  line-height: 1;
  pointer-events: none;
}
@media (max-width: 900px) {
  .how-it-works-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Light Mode (data-theme="light") Adaptations for Magic UI
   ========================================================================== */
html[data-theme="light"] .text-gradient-platinum {
  background: linear-gradient(180deg, #0F172A 20%, #334155 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

html[data-theme="light"] .text-gradient-neon {
  background: linear-gradient(135deg, #059669 0%, #047857 50%, #0284C7 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  filter: drop-shadow(0 2px 10px rgba(5, 150, 105, 0.15)) !important;
}

html[data-theme="light"] .text-gradient-cyan {
  background: linear-gradient(135deg, #0284C7 0%, #0369A1 50%, #059669 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  filter: drop-shadow(0 2px 10px rgba(2, 132, 199, 0.15)) !important;
}

html[data-theme="light"] .text-gradient-amber {
  background: linear-gradient(135deg, #D97706 0%, #B45309 50%, #059669 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  filter: drop-shadow(0 2px 10px rgba(217, 119, 6, 0.15)) !important;
}

html[data-theme="light"] .hero-centered::before {
  background: radial-gradient(circle, rgba(5, 150, 105, 0.12) 0%, rgba(2, 132, 199, 0.06) 45%, transparent 70%) !important;
}

html[data-theme="light"] .retro-grid-bg {
  opacity: 0.7 !important;
}

html[data-theme="light"] .retro-grid-lines {
  background-image: 
    linear-gradient(to right, rgba(0, 0, 0, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.07) 1px, transparent 1px) !important;
}

html[data-theme="light"] .announcement-pill {
  background: rgba(0, 0, 0, 0.04) !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
  color: #475569 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

html[data-theme="light"] .announcement-pill:hover {
  background: rgba(0, 0, 0, 0.06) !important;
  border-color: #059669 !important;
  color: #0F172A !important;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.12) !important;
}

html[data-theme="light"] .announcement-pill .pill-tag {
  background: rgba(21, 128, 61, 0.1) !important;
  color: #15803D !important;
}

html[data-theme="light"] .hero-micro-item:not(:last-child)::after {
  color: rgba(0, 0, 0, 0.25) !important;
}

html[data-theme="light"] .border-beam-wrapper {
  background: rgba(0, 0, 0, 0.03) !important;
  box-shadow: 
    0 0 0 1px rgba(0, 0, 0, 0.08),
    0 20px 50px rgba(0, 0, 0, 0.08),
    0 0 60px rgba(5, 150, 105, 0.08) !important;
}

html[data-theme="light"] .border-beam-wrapper:hover {
  box-shadow: 
    0 0 0 1px rgba(5, 150, 105, 0.35),
    0 28px 70px rgba(0, 0, 0, 0.12),
    0 0 90px rgba(5, 150, 105, 0.15) !important;
}

html[data-theme="light"] .border-beam-laser {
  background: conic-gradient(from 0deg at 50% 50%, transparent 0deg, transparent 290deg, #059669 335deg, #0284C7 360deg) !important;
}

html[data-theme="light"] .border-beam-inner {
  background: #FFFFFF !important;
}

html[data-theme="light"] .stage-window-bar {
  background: #F1F5F9 !important;
  border-bottom: 1px solid #E2E8F0 !important;
}

html[data-theme="light"] .stage-window-title {
  color: #334155 !important;
}

html[data-theme="light"] .marquee-section {
  background: rgba(0, 0, 0, 0.02) !important;
  border-color: #E2E8F0 !important;
}

html[data-theme="light"] .marquee-item {
  background: #FFFFFF !important;
  border-color: #E2E8F0 !important;
  color: #475569 !important;
}

html[data-theme="light"] .marquee-item:hover {
  background: #F8FAFC !important;
  border-color: #CBD5E1 !important;
  color: #0F172A !important;
}

html[data-theme="light"] .problem-card {
  background: #FFFFFF !important;
  border-color: #E2E8F0 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03) !important;
}

html[data-theme="light"] .problem-card:hover {
  border-color: rgba(220, 38, 38, 0.35) !important;
  background: #FEF2F2 !important;
  box-shadow: 0 8px 24px rgba(220, 38, 38, 0.08) !important;
}

html[data-theme="light"] .problem-icon-wrap {
  background: #FEE2E2 !important;
  color: #DC2626 !important;
}

html[data-theme="light"] .bento-card {
  background: #FFFFFF !important;
  border-color: #E2E8F0 !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03) !important;
}

html[data-theme="light"] .bento-card:hover {
  border-color: #059669 !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08) !important;
}

html[data-theme="light"] .bento-card::before,
html[data-theme="light"] .problem-card::before {
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.08), transparent) !important;
}

html[data-theme="light"] .bento-card:hover::before {
  background: linear-gradient(90deg, transparent, #059669, transparent) !important;
}

html[data-theme="light"] .step-card {
  background: #FFFFFF !important;
  border-color: #E2E8F0 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03) !important;
}

html[data-theme="light"] .step-card:hover {
  border-color: #059669 !important;
  box-shadow: 0 8px 24px rgba(5, 150, 105, 0.08) !important;
}

html[data-theme="light"] .step-num-watermark {
  color: rgba(0, 0, 0, 0.06) !important;
}

html[data-theme="light"] .micro-ui-card {
  background: #F8FAFC !important;
  border-color: #E2E8F0 !important;
}

html[data-theme="light"] .micro-ui-progress-track {
  background: #E2E8F0 !important;
}

html[data-theme="light"] .kbd-shortcut {
  background: #F1F5F9 !important;
  border-color: #CBD5E1 !important;
  color: #334155 !important;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1) !important;
}

html[data-theme="light"] .btn-magic-glow {
  background-color: #047857 !important;
  background: linear-gradient(135deg, #047857 0%, #059669 100%) !important;
  color: #FFFFFF !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  box-shadow: 0 0 20px rgba(4, 120, 87, 0.3), 0 4px 12px rgba(4, 120, 87, 0.2) !important;
}

html[data-theme="light"] .btn-magic-glow:hover {
  box-shadow: 0 0 28px rgba(4, 120, 87, 0.5), 0 6px 18px rgba(4, 120, 87, 0.25) !important;
}

/* ==========================================================================
   Multi-Tier Pricing Grid & Anchoring
   ========================================================================== */
.pricing-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
  margin-top: 48px;
  padding-top: 18px; /* Guarantees .featured-pill is never clipped */
  overflow: visible !important;
}

@media (max-width: 1024px) {
  .pricing-grid-3 {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.tier-orig-crossed {
  text-decoration: line-through;
  color: var(--text-faint);
  font-size: 1rem;
  font-weight: 500;
  margin-left: 8px;
  white-space: nowrap;
}

.tier-savings-badge {
  display: inline-block;
  background: rgba(179, 240, 93, 0.12);
  color: var(--accent-primary);
  border: 1px solid rgba(179, 240, 93, 0.3);
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 3px 8px;
  margin-top: 4px;
  margin-bottom: 8px;
}

.tier-slots-wrap {
  margin: 14px 0 18px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 10px 12px;
}

.tier-slots-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  overflow: hidden;
  margin-bottom: 6px;
}

.tier-slots-fill {
  height: 100%;
  background: var(--accent-primary);
  border-radius: 9999px;
  box-shadow: 0 0 10px rgba(179, 240, 93, 0.5);
}

.tier-slots-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.decoy-renewal-strip {
  background: var(--bg-surface);
  border: 1px dashed var(--border-color);
  border-radius: 12px;
  padding: 18px 24px;
  margin-top: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.decoy-renewal-text {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.decoy-renewal-text strong {
  color: var(--text-main);
}

/* ==========================================
 * MARKETING LANDING PAGE EXTENSIONS:
 * Testimonials, Before/After Comparison, Final CTA
 * ========================================== */

/* 1. Testimonial & Review Cards */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
}

@media (max-width: 1024px) {
  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.testimonial-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.testimonial-card:hover {
  transform: translateY(-3px);
  border-color: rgba(179, 240, 93, 0.35);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.testimonial-stars {
  display: flex;
  gap: 4px;
  color: #FBBF24;
  margin-bottom: 14px;
}

.testimonial-quote {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-main);
  margin-bottom: 20px;
  font-style: normal;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(179, 240, 93, 0.25), rgba(56, 189, 248, 0.25));
  border: 1px solid var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--text-main);
  font-size: 0.9375rem;
  flex-shrink: 0;
}

.testimonial-avatar-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-primary);
  box-shadow: 0 0 12px rgba(179, 240, 93, 0.25);
  flex-shrink: 0;
}

@media (max-width: 1300px) {
  .nav-zalo-btn {
    display: none !important;
  }
}

@media (max-width: 1140px) {
  .nav-menu {
    display: none !important;
  }
  .nav-mobile-toggle {
    display: inline-flex !important;
  }
}

.testimonial-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.testimonial-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
}

.testimonial-role {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 3px;
}

/* 2. Before vs After Comparison Matrix */
.comparison-table-wrap {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 36px;
}

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

.comparison-table th,
.comparison-table td {
  padding: 14px 14px;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.9375rem;
  white-space: nowrap;
}

.comparison-table th {
  background: var(--table-header-bg);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
}

.comparison-table th.col-bad,
.comparison-table td.col-bad {
  color: var(--accent-danger) !important;
}

.comparison-table th.col-good {
  color: var(--accent-primary);
  background: rgba(179, 240, 93, 0.06);
}

.comparison-table td.col-good {
  background: rgba(179, 240, 93, 0.03);
  font-weight: 600;
  color: var(--text-main);
}

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

/* 3. High Impact Final CTA Banner */
.final-cta-banner {
  background: linear-gradient(135deg, rgba(35, 49, 48, 0.95) 0%, rgba(25, 38, 37, 0.98) 100%);
  border: 1px solid rgba(179, 240, 93, 0.35);
  border-radius: 20px;
  padding: 56px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), inset 0 0 40px rgba(179, 240, 93, 0.05);
  margin-top: 60px;
}

.final-cta-banner h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 14px;
}

.final-cta-banner p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 30px;
  line-height: 1.6;
}

.final-cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Light Mode Overrides for Extensions */
html[data-theme="light"] .testimonial-card {
  background: #FFFFFF !important;
  border-color: #E2E8F0 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04) !important;
}

html[data-theme="light"] .testimonial-card:hover {
  border-color: #15803D !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08) !important;
}

html[data-theme="light"] .comparison-table-wrap {
  background: #FFFFFF !important;
  border-color: #E2E8F0 !important;
}

html[data-theme="light"] .comparison-table th.col-good,
html[data-theme="light"] .comparison-table td.col-good {
  background: rgba(21, 128, 61, 0.05) !important;
}

html[data-theme="light"] .final-cta-banner {
  background: linear-gradient(135deg, #F0FDF4 0%, #FFFFFF 100%) !important;
  border-color: rgba(21, 128, 61, 0.35) !important;
  box-shadow: 0 8px 30px rgba(21, 128, 61, 0.08) !important;
}

/* Light Mode Adaptations for Pricing Cards, Offers, Tables & Badges */
html[data-theme="light"] .pricing-card.featured {
  background: linear-gradient(180deg, #FFFFFF 0%, #F0FDF4 100%) !important;
  border: 2px solid var(--accent-primary) !important;
  box-shadow: 0 12px 36px rgba(21, 128, 61, 0.12), 0 0 20px rgba(21, 128, 61, 0.08) !important;
}

html[data-theme="light"] .badge-recommended {
  background: rgba(21, 128, 61, 0.08) !important;
  color: #15803D !important;
  border-color: rgba(21, 128, 61, 0.25) !important;
}

html[data-theme="light"] .tier-savings-badge {
  background: rgba(21, 128, 61, 0.08) !important;
  color: #15803D !important;
  border-color: rgba(21, 128, 61, 0.25) !important;
}

html[data-theme="light"] .tier-slots-wrap {
  background: #F8FAF9 !important;
  border-color: var(--border-color) !important;
}

html[data-theme="light"] .tier-slots-bar {
  background: #E2E8F0 !important;
}

html[data-theme="light"] .tier-slots-fill {
  background: var(--accent-primary) !important;
  box-shadow: 0 0 8px rgba(21, 128, 61, 0.3) !important;
}

html[data-theme="light"] .tier-slots-label {
  color: var(--text-muted) !important;
}

html[data-theme="light"] .offer-combo-card {
  background: linear-gradient(180deg, #FFFFFF 0%, #F0FDF4 100%) !important;
  border-color: rgba(21, 128, 61, 0.35) !important;
  box-shadow: 0 12px 36px rgba(21, 128, 61, 0.08), 0 0 20px rgba(21, 128, 61, 0.04) !important;
}

html[data-theme="light"] .offer-combo-card:hover {
  border-color: rgba(21, 128, 61, 0.6) !important;
  box-shadow: 0 20px 48px rgba(21, 128, 61, 0.12), 0 0 30px rgba(21, 128, 61, 0.08) !important;
}

html[data-theme="light"] .offer-pill-hot {
  background: rgba(21, 128, 61, 0.08) !important;
  color: #15803D !important;
  border-color: rgba(21, 128, 61, 0.25) !important;
}

html[data-theme="light"] .offer-pill-save {
  background: rgba(220, 38, 38, 0.08) !important;
  color: #DC2626 !important;
  border-color: rgba(220, 38, 38, 0.25) !important;
}

html[data-theme="light"] .offer-bonus-box {
  background: rgba(21, 128, 61, 0.03) !important;
  border-color: rgba(21, 128, 61, 0.25) !important;
}

html[data-theme="light"] .offer-bonus-title {
  color: #15803D !important;
}

html[data-theme="light"] .offer-bonus-value {
  color: #B45309 !important;
}

html[data-theme="light"] .offer-bonus-tag {
  color: #15803D !important;
  background: rgba(21, 128, 61, 0.08) !important;
  border-color: rgba(21, 128, 61, 0.2) !important;
}

html[data-theme="light"] .single-tool-card {
  background: #FFFFFF !important;
  border-color: var(--border-color) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03) !important;
}

html[data-theme="light"] .single-tool-card:hover {
  border-color: var(--accent-primary) !important;
  box-shadow: 0 8px 24px rgba(21, 128, 61, 0.08) !important;
}

html[data-theme="light"] .price-anchor-callout {
  background: #F8FAF9 !important;
  border-color: var(--border-color) !important;
}

html[data-theme="light"] .section-badge-cyan {
  background: rgba(3, 105, 161, 0.08) !important;
  color: #0369A1 !important;
  border-color: rgba(3, 105, 161, 0.25) !important;
}

html[data-theme="light"] .section-badge-red {
  background: rgba(220, 38, 38, 0.08) !important;
  color: #DC2626 !important;
  border-color: rgba(220, 38, 38, 0.25) !important;
}

html[data-theme="light"] .stage-window-status.status-blue {
  color: #0369A1 !important;
}

html[data-theme="light"] .stage-window-status.status-amber {
  color: #B45309 !important;
}

html[data-theme="light"] .plan-pill.active {
  background-color: var(--accent-primary) !important;
  color: #FFFFFF !important;
  border-color: var(--accent-primary) !important;
  box-shadow: 0 2px 8px rgba(21, 128, 61, 0.25) !important;
}

html[data-theme="light"] .btn-secondary:hover {
  background-color: rgba(0, 0, 0, 0.04) !important;
  border-color: rgba(0, 0, 0, 0.25) !important;
}

html[data-theme="light"] .article-offer-card {
  background: linear-gradient(180deg, #FFFFFF 0%, #F0FDF4 100%) !important;
  border-color: var(--accent-primary) !important;
  box-shadow: 0 10px 30px rgba(21, 128, 61, 0.08) !important;
}

html[data-theme="light"] .article-bonus-box {
  background: rgba(21, 128, 61, 0.04) !important;
  border-color: rgba(21, 128, 61, 0.25) !important;
}

html[data-theme="light"] .article-sticky-cta {
  background: #FFFFFF !important;
  border-color: var(--border-color) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06) !important;
}

html[data-theme="light"] .theme-toggle-btn .icon-sun {
  display: none !important;
}

html[data-theme="light"] .theme-toggle-btn .icon-moon {
  display: block !important;
}

html[data-theme="light"] .testimonial-stars {
  color: #B45309 !important;
}

/* ==========================================================================
   13. Scroll-Reveal & Dynamic Entrance Animation Engine (SiteForge Magic UI)
   ========================================================================== */

/* Hero Entrance Keyframes (Loaded immediately above the fold) */
@keyframes heroEntranceFadeUp {
  0% {
    opacity: 0;
    transform: translateY(28px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroEntranceScale {
  0% {
    opacity: 0;
    transform: scale(0.94) translateY(24px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.hero-animate-1 {
  animation: heroEntranceFadeUp 0.65s cubic-bezier(0.16, 1, 0.3, 1) 0.05s both;
}
.hero-animate-2 {
  animation: heroEntranceFadeUp 0.65s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}
.hero-animate-3 {
  animation: heroEntranceFadeUp 0.65s cubic-bezier(0.16, 1, 0.3, 1) 0.25s both;
}
.hero-animate-4 {
  animation: heroEntranceFadeUp 0.65s cubic-bezier(0.16, 1, 0.3, 1) 0.35s both;
}
.hero-animate-5 {
  animation: heroEntranceScale 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.45s both;
}

/* Neon Scroll Progress Indicator */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #B3F05D 0%, #38BDF8 50%, #A855F7 100%);
  width: 0%;
  z-index: 9999;
  transition: width 0.08s ease-out;
  box-shadow: 0 0 12px rgba(179, 240, 93, 0.8), 0 0 24px rgba(56, 189, 248, 0.4);
  pointer-events: none;
}

/* Base Scroll Reveal States (Armed dynamically when JS confirms runtime) */
html.sr-active .reveal,
html.sr-active .reveal-up {
  opacity: 0;
  transform: translateY(44px) scale(0.96);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

html.sr-active .reveal-pop {
  opacity: 0;
  transform: scale(0.88) translateY(36px);
  transition: opacity 0.75s cubic-bezier(0.34, 1.56, 0.64, 1),
              transform 0.75s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: opacity, transform;
}

html.sr-active .reveal-scale {
  opacity: 0;
  transform: translateY(28px) scale(0.93);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

html.sr-active .reveal-left {
  opacity: 0;
  transform: translateX(-48px) translateY(24px) scale(0.95);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

html.sr-active .reveal-right {
  opacity: 0;
  transform: translateX(48px) translateY(24px) scale(0.95);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

/* Active Visible State Triggered on Scroll ("Nhảy ra" với lò xo mượt mà) */
html.sr-active .reveal.is-revealed,
html.sr-active .reveal-up.is-revealed,
html.sr-active .reveal-pop.is-revealed,
html.sr-active .reveal-scale.is-revealed,
html.sr-active .reveal-left.is-revealed,
html.sr-active .reveal-right.is-revealed {
  opacity: 1 !important;
  transform: translate3d(0, 0, 0) scale(1) !important;
}

/* Seamless Card Hover Lift Preservation After Revealed */
html.sr-active .problem-card.is-revealed:hover,
html.sr-active .bento-card.is-revealed:hover,
html.sr-active .step-card.is-revealed:hover,
html.sr-active .testimonial-card.is-revealed:hover,
html.sr-active .card.is-revealed:hover,
html.sr-active .pricing-card.is-revealed:hover,
html.sr-active .offer-combo-card.is-revealed:hover,
html.sr-active .pillar-card.is-revealed:hover,
html.sr-active .feature-card.is-revealed:hover {
  transform: translateY(-4px) scale(1.01) !important;
}

/* Manual Stagger Helper Classes */
.stagger-1 { transition-delay: 0.08s !important; }
.stagger-2 { transition-delay: 0.16s !important; }
.stagger-3 { transition-delay: 0.24s !important; }
.stagger-4 { transition-delay: 0.32s !important; }
.stagger-5 { transition-delay: 0.40s !important; }
.stagger-6 { transition-delay: 0.48s !important; }

/* Accessibility: Respect prefers-reduced-motion unconditionally */
@media (prefers-reduced-motion: reduce) {
  .hero-animate-1,
  .hero-animate-2,
  .hero-animate-3,
  .hero-animate-4,
  .hero-animate-5 {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .scroll-progress-bar {
    display: none !important;
  }
  html.sr-active .reveal,
  html.sr-active .reveal-up,
  html.sr-active .reveal-pop,
  html.sr-active .reveal-scale,
  html.sr-active .reveal-left,
  html.sr-active .reveal-right {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   14. High-End Visual WOW: Spotlight, 3D Container Scroll, Back to Top
   ========================================================================== */

/* Aceternity Interactive Card Spotlight */
.spotlight-card {
  position: relative;
  overflow: hidden;
}
.spotlight-card.pricing-card,
.spotlight-card.pricing-card.featured {
  overflow: visible !important;
}
.spotlight-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    420px circle at var(--mouse-x, -999px) var(--mouse-y, -999px),
    rgba(179, 240, 93, 0.12),
    transparent 80%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 2;
}
.spotlight-card:hover::after {
  opacity: 1;
}

html[data-theme="light"] .spotlight-card::after {
  background: radial-gradient(
    420px circle at var(--mouse-x, -999px) var(--mouse-y, -999px),
    rgba(21, 128, 61, 0.08),
    transparent 80%
  );
}

/* Aceternity Container 3D Scroll Rotation */
.perspective-container {
  perspective: 1200px;
  transform-style: preserve-3d;
}
.border-beam-wrapper {
  transform-origin: center top;
  will-change: transform, box-shadow;
  transition: transform 0.12s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

/* Floating Back to Top Button */
.back-to-top-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid rgba(179, 240, 93, 0.35);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  transform: translateY(16px) scale(0.85);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}
.back-to-top-btn.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.back-to-top-btn:hover {
  border-color: var(--accent-primary);
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 12px 30px rgba(179, 240, 93, 0.35);
}

/* Magic UI Number Ticker */
.ticker-number {
  display: inline-block;
  font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: reduce) {
  .spotlight-card::after {
    display: none !important;
  }
  .border-beam-wrapper {
    transform: none !important;
  }
}

/* ==========================================================================
 * Long-Form SEO Article & E-E-A-T Knowledge Hub Styles
 * ========================================================================== */
.article-page-wrap {
  padding: 48px 0 96px;
}
.article-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-faint);
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.article-breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}
.article-breadcrumbs a:hover {
  color: var(--accent-primary);
}
.article-header-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.875rem;
  color: var(--text-muted);
}
.article-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.article-layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 48px;
  align-items: start;
  margin-top: 36px;
}
@media (max-width: 1024px) {
  .article-layout-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
.article-sidebar-sticky {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.article-toc-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 20px;
}
.article-toc-title {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-primary);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.article-toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.85rem;
  padding: 0;
  margin: 0;
}
.article-toc-list a {
  color: var(--text-muted);
  text-decoration: none;
  line-height: 1.45;
  transition: color 0.15s ease, transform 0.15s ease;
  display: block;
}
.article-toc-list a:hover {
  color: var(--accent-primary);
  transform: translateX(4px);
}
.article-main-body {
  color: var(--text-muted);
  font-size: 1.0625rem;
  line-height: 1.85;
}
.article-main-body h2 {
  font-size: 1.65rem;
  color: var(--text-main);
  margin: 44px 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
  scroll-margin-top: 100px;
  letter-spacing: -0.015em;
}
.article-main-body h3 {
  font-size: 1.3rem;
  color: var(--text-main);
  margin: 32px 0 14px;
  scroll-margin-top: 100px;
}
.article-main-body h4 {
  font-size: 1.1rem;
  color: var(--accent-primary);
  margin: 24px 0 10px;
  scroll-margin-top: 100px;
}
.article-main-body p {
  margin-bottom: 18px;
}
.article-main-body strong {
  color: var(--text-main);
}
.article-main-body ul, .article-main-body ol {
  margin: 0 0 20px 24px;
}
.article-main-body li {
  margin-bottom: 8px;
}
.article-main-body blockquote {
  background: rgba(179, 240, 93, 0.05);
  border-left: 3px solid var(--accent-primary);
  border-radius: 0 10px 10px 0;
  padding: 16px 20px;
  margin: 24px 0;
  color: var(--text-main);
  font-style: normal;
}
.article-main-body blockquote p:last-child {
  margin-bottom: 0;
}
.article-main-body .table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 24px 0 32px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}
.article-main-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  background: var(--bg-surface);
}
.article-main-body th {
  background: var(--table-header-bg);
  color: var(--text-main);
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  border-bottom: 1px solid var(--border-color);
}
.article-main-body td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  vertical-align: top;
}
.article-main-body tr:nth-child(even) {
  background: var(--table-row-zebra);
}
.article-author-bio-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 28px;
  margin: 48px 0;
  display: flex;
  gap: 20px;
  align-items: center;
}
@media (max-width: 640px) {
  .article-author-bio-card {
    flex-direction: column;
    text-align: center;
  }
}
.article-author-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-primary) 0%, #233130 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary-fg);
  font-weight: 800;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.article-sticky-cta {
  background: linear-gradient(180deg, rgba(35, 49, 48, 0.95) 0%, rgba(25, 38, 37, 0.98) 100%);
  border: 1px solid rgba(179, 240, 93, 0.3);
  border-radius: 14px;
  padding: 24px;
  text-align: center;
}

/* ==========================================================================
   Accessibility & Mobile Enhancements (WCAG AA & Touch Targets)
   ========================================================================== */

/* 1. Skip-to-content Link */
.skip-to-content {
  position: absolute;
  top: -120px;
  left: 16px;
  background: var(--accent-primary);
  color: var(--accent-primary-fg) !important;
  padding: 12px 20px;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 8px;
  z-index: 999999;
  text-decoration: none;
  transition: top 0.2s ease-in-out;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}
.skip-to-content:focus {
  top: 16px;
  outline: 3px solid #FFFFFF !important;
  outline-offset: 2px !important;
}

/* 2. High-Visibility Keyboard Focus (WCAG AA 2.4.7) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent-primary) !important;
  outline-offset: 3px !important;
}

/* 3. Mobile Touch Tap Target Size (WCAG 2.5.5 / 2.5.8 >= 44x44px) */
@media (max-width: 768px), (pointer: coarse) {
  .btn,
  .btn-sm,
  .nav-mobile-link,
  .footer-links a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .nav-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

/* 4. Smooth scrolling with respect to user preferences */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
