/* ==========================================================================
   ONE QR — GLOBAL BASE & LAYOUT STYLES
   Frontend Design System: Modern SaaS + Fintech Precision
   ========================================================================== */

/* Resets */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg-page);
  color: var(--color-text-secondary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Smooth Theme Switching Transitions (250-400ms)
   Animate only: Background, Cards, Text, Borders, Buttons. QR scan animation is preserved. */
html.theme-transitioning,
html.theme-transitioning body,
html.theme-transitioning header,
html.theme-transitioning nav,
html.theme-transitioning main,
html.theme-transitioning footer,
html.theme-transitioning section,
html.theme-transitioning .site-header,
html.theme-transitioning .mobile-nav-drawer,
html.theme-transitioning .card,
html.theme-transitioning .feature-card,
html.theme-transitioning .step-card,
html.theme-transitioning .pricing-card,
html.theme-transitioning .stat-card,
html.theme-transitioning .faq-item,
html.theme-transitioning .faq-question,
html.theme-transitioning .faq-answer,
html.theme-transitioning .table-comparison,
html.theme-transitioning .code-block,
html.theme-transitioning .form-input,
html.theme-transitioning .form-select,
html.theme-transitioning .form-textarea,
html.theme-transitioning .btn,
html.theme-transitioning .theme-toggle-btn,
html.theme-transitioning .nav-link,
html.theme-transitioning .brand-logo,
html.theme-transitioning h1,
html.theme-transitioning h2,
html.theme-transitioning h3,
html.theme-transitioning h4,
html.theme-transitioning h5,
html.theme-transitioning h6,
html.theme-transitioning p,
html.theme-transitioning a {
  transition: background-color 320ms cubic-bezier(0.16, 1, 0.3, 1),
              border-color 320ms cubic-bezier(0.16, 1, 0.3, 1),
              color 320ms cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 320ms cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Ensure signature QR scan line is never interrupted by theme transitions */
html.theme-transitioning .qr-scan-beam,
html.theme-transitioning .standee-qr-box {
  transition: none !important;
}

/* Scroll Reveal Animations (Subtle, 400-600ms, ease-out) */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 550ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 550ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Focus States for Accessibility */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

/* Typography Base */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-navy);
  line-height: 1.2;
  letter-spacing: -0.025em;
}

h1 {
  font-size: var(--text-h1);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

h2 {
  font-size: var(--text-h2);
  font-weight: 700;
  letter-spacing: -0.025em;
}

h3 {
  font-size: var(--text-h3);
  font-weight: 700;
}

h4 {
  font-size: var(--text-h4);
  font-weight: 650;
}

p {
  margin-bottom: 1rem;
}

p.lead {
  font-size: var(--text-body-lg);
  color: var(--color-text-secondary);
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-btn);
}

a:hover {
  color: var(--color-primary);
}

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

/* Container System */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-24);
  padding-right: var(--space-24);
  position: relative;
  z-index: 1;
}

.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-24);
  padding-right: var(--space-24);
  position: relative;
  z-index: 1;
}

.container-wide {
  width: 100%;
  max-width: var(--container-wide);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-24);
  padding-right: var(--space-24);
  position: relative;
  z-index: 1;
}

/* Sections */
.section {
  padding-top: var(--section-padding-desktop);
  padding-bottom: var(--section-padding-desktop);
  position: relative;
}

.section-sm {
  padding-top: var(--space-64);
  padding-bottom: var(--space-64);
  position: relative;
}

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

.section-header.text-left {
  text-align: left;
  margin-left: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-8);
  padding: 6px 14px;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  background: var(--color-primary-soft);
  border: 1px solid rgba(108, 77, 255, 0.16);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-16);
}

.eyebrow svg {
  width: 14px;
  height: 14px;
  stroke-width: 2px;
}

.section-title {
  margin-bottom: var(--space-16);
  color: var(--color-navy);
}

.section-subtitle {
  font-size: var(--text-body-lg);
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* Text Highlights */
.text-purple {
  color: var(--color-primary);
}

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

/* Buttons System (10–12px radius, comfortable padding, 150–220ms hover) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  padding: 12px 22px;
  font-family: var(--font-body);
  font-size: 0.9375rem; /* 15px */
  font-weight: 600;
  border-radius: var(--radius-btn);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-btn);
  text-align: center;
  white-space: nowrap;
  line-height: 1.3;
  text-decoration: none;
}

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

.btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

.btn:disabled,
.btn[disabled],
.btn.disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
  transform: none;
}

.btn svg {
  width: 18px;
  height: 18px;
  stroke-width: 2px;
  transition: transform var(--transition-btn);
}

.btn:hover svg {
  transform: translateX(2px);
}

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

.btn-primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  box-shadow: var(--shadow-btn-hover);
  transform: translateY(-1px);
  color: #FFFFFF;
}

.btn-primary:active {
  background: var(--color-primary-dark);
  transform: scale(0.98);
}

.btn-secondary {
  background: #FFFFFF;
  color: #111126;
  border: 1px solid #D1CFE2;
  box-shadow: 0 2px 6px rgba(17, 17, 38, 0.04);
}

.btn-secondary:hover {
  background: var(--color-primary-soft);
  border-color: rgba(108, 77, 255, 0.35);
  color: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(108, 77, 255, 0.08);
}

.btn-secondary:active {
  background: #EEEAFE;
  transform: scale(0.98);
}

.btn-outline {
  background: transparent;
  color: #111126;
  border: 1px solid #D1CFE2;
}

.btn-outline:hover {
  background: var(--color-primary-soft);
  border-color: rgba(108, 77, 255, 0.35);
  color: var(--color-primary-dark);
  transform: translateY(-1px);
}

.btn-text {
  background: transparent;
  color: var(--color-primary);
  padding: 0;
  font-weight: 600;
}

.btn-text:hover {
  color: var(--color-primary-dark);
}

.btn-lg {
  padding: 14px 26px;
  font-size: 1rem; /* 16px */
  border-radius: 12px;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.875rem; /* 14px */
  border-radius: 9px;
}

.btn-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-16);
}

/* Badges System */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  background: var(--color-surface-white);
  color: var(--color-navy);
  border: 1px solid var(--color-border);
}

.badge-purple {
  background: var(--color-primary-soft);
  color: var(--color-primary);
  border-color: rgba(108, 77, 255, 0.2);
}

.badge-success {
  background: var(--color-success-soft);
  color: var(--color-success);
  border-color: rgba(22, 184, 154, 0.25);
}

/* ==========================================================================
   UNIFIED ICON SYSTEM (Lucide-based)
   Standardized sizing, controlled color inheritance, subtle micro-interactions
   ========================================================================== */

.icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  stroke: currentColor;
  stroke-width: 2px;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  transition: transform 180ms ease, color 180ms ease;
}

/* Sizing Tokens */
.icon-16, .icon-xs { width: 16px; height: 16px; }
.icon-18, .icon-nav, .icon-sm { width: 18px; height: 18px; }
.icon-20, .icon-md { width: 20px; height: 20px; }
.icon-24, .icon-lg { width: 24px; height: 24px; }
.icon-32, .icon-xl { width: 32px; height: 32px; }
.icon-40, .icon-2xl { width: 40px; height: 40px; }

/* Color Tokens */
.icon-primary { color: var(--color-primary); }
.icon-success { color: var(--color-success); }
.icon-danger  { color: var(--color-danger, #E53E3E); }
.icon-warning { color: var(--color-warning, #F59E0B); }
.icon-muted   { color: var(--color-text-secondary); }

/* Feature Card Icon Containers (40-48px) */
.icon-container {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--color-primary-soft);
  color: var(--color-primary);
  border: 1px solid rgba(108, 77, 255, 0.14);
  flex-shrink: 0;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.card:hover .icon-container,
.feature-card:hover .icon-container,
.pricing-card:hover .icon-container {
  transform: translateY(-2px) scale(1.02);
  background: rgba(108, 77, 255, 0.18);
  border-color: rgba(108, 77, 255, 0.3);
}

/* Button with Lucide icon */
.btn .icon {
  margin-left: 6px;
  transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

.btn:hover .icon-arrow-right {
  transform: translateX(3px);
}

/* ==========================================================================
   NAVIGATION BAR (Consistent Sleek Dark Navy to match Hero & Footer)
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 100;
  background: rgba(17, 17, 38, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: height var(--transition-btn), background-color var(--transition-theme), border-color var(--transition-theme);
}

.site-header.scrolled {
  height: var(--header-height-scrolled);
  background: rgba(17, 17, 38, 0.98);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.03em;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: #B7B7C8;
  position: relative;
  padding: 6px 0;
  transition: color var(--transition-btn);
}

.nav-link:hover,
.nav-link.active {
  color: #FFFFFF;
}

/* High-contrast, persistent navbar buttons (Zero invisibility in any state) */
.site-header .btn-primary,
.navbar .btn-primary {
  background: #6C4DFF !important;
  color: #FFFFFF !important;
  border: 1px solid #6C4DFF !important;
  font-weight: 700 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.site-header .btn-primary:hover,
.navbar .btn-primary:hover {
  background: #4B32C3 !important;
  color: #FFFFFF !important;
  border-color: #4B32C3 !important;
}

.site-header .btn-secondary,
.navbar .btn-secondary,
.site-header .btn-outline,
.navbar .btn-outline {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  font-weight: 600 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.site-header .btn-secondary:hover,
.navbar .btn-secondary:hover,
.site-header .btn-outline:hover,
.navbar .btn-outline:hover {
  background: #6C4DFF !important;
  color: #FFFFFF !important;
  border-color: #6C4DFF !important;
}

.site-header .btn-login,
.navbar .btn-login {
  background: transparent !important;
  color: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  font-weight: 600 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.site-header .btn-login:hover,
.navbar .btn-login:hover {
  background: rgba(255, 255, 255, 0.16) !important;
  color: #FFFFFF !important;
  border-color: #FFFFFF !important;
}

.site-header .mobile-toggle {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  color: #FFFFFF !important;
  border-radius: var(--radius-sm);
  padding: 7px 9px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-btn);
  flex-shrink: 0;
}

.site-header .mobile-toggle:hover {
  background: rgba(255, 255, 255, 0.16) !important;
  border-color: var(--color-primary) !important;
  color: #FFFFFF !important;
}

.site-header .theme-toggle-btn {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: #B7B7C8;
}

.site-header .theme-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--color-primary);
  color: #FFFFFF;
}

/* Official One QR Purple Emblem */
.logo-emblem {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-emblem img,
.logo-emblem svg {
  width: 100%;
  height: 100%;
}

.logo-tag {
  font-size: 0.6875rem;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  background: rgba(108, 77, 255, 0.2);
  color: #A5B4FC;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-24);
  list-style: none;
}
  transition: color var(--transition-btn);
}

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

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
}

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

/* ==========================================================================
   SMART THEME SWITCH BUTTON (Single Click Day ↔ Night)
   Native, clean, lightweight icon button.
   Always displays the OTHER theme:
   - In Day Mode: displays Moon (🌙) with tooltip "Switch to Night Mode"
   - In Night Mode: displays Sun (☀️) with tooltip "Switch to Day Mode"
   ========================================================================== */

.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  padding: 0;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  background: var(--color-surface-subtle);
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all var(--transition-btn);
  flex-shrink: 0;
  position: relative;
  user-select: none;
}

.theme-toggle-btn:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
  background: var(--color-surface-white);
  box-shadow: 0 2px 10px rgba(108, 77, 255, 0.18);
  transform: translateY(-1px);
}

.theme-toggle-btn:active {
  transform: translateY(0) scale(0.96);
}

.theme-toggle-btn:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus-ring);
}

.theme-toggle-btn svg {
  width: 18px;
  height: 18px;
  stroke-width: 2px;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.22s ease;
  flex-shrink: 0;
}

/* In Day mode: button shows Moon (🌙) to switch to Night mode */
:root:not([data-theme="night"]) .theme-toggle-btn .theme-icon-sun,
[data-theme="day"] .theme-toggle-btn .theme-icon-sun {
  display: none !important;
}

:root:not([data-theme="night"]) .theme-toggle-btn .theme-icon-moon,
[data-theme="day"] .theme-toggle-btn .theme-icon-moon {
  display: block !important;
}

/* In Night mode: button shows Sun (☀️) to switch to Day mode */
[data-theme="night"] .theme-toggle-btn {
  background: #18182C;
  border-color: rgba(255, 255, 255, 0.12);
  color: #F59E0B; /* Golden sunlight accent */
}

[data-theme="night"] .theme-toggle-btn:hover {
  background: #22223C;
  border-color: #F59E0B;
  color: #FCD34D;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.22);
}

[data-theme="night"] .theme-toggle-btn .theme-icon-sun {
  display: block !important;
}

[data-theme="night"] .theme-toggle-btn .theme-icon-moon {
  display: none !important;
}

/* Mobile Drawer Theme Row */
.mobile-theme-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  margin-top: 8px;
  border-radius: 8px;
}

.mobile-theme-label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Mobile Toggle Hamburger */
.mobile-toggle {
  display: none;
  background: var(--color-surface-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-navy);
  padding: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-btn);
}

.mobile-toggle svg {
  width: 22px;
  height: 22px;
}

/* Mobile Drawer Overlay */
.mobile-nav-drawer {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px var(--space-20) var(--space-20);
  flex-direction: column;
  gap: 0;
  z-index: 999;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transition: all 0.25s ease;
}

.site-header.scrolled + .mobile-nav-drawer {
  top: var(--header-height-scrolled);
}

.mobile-nav-drawer.open {
  display: flex !important;
}

/* CRITICAL: Nav links inside drawer must be vertical (column), not horizontal */
.mobile-nav-drawer .nav-links {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 0 !important;
  list-style: none !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

.mobile-nav-drawer .nav-links li {
  display: block !important;
  width: 100% !important;
}

.mobile-nav-drawer .nav-link {
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  padding: 11px 12px !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  transition: background 0.15s ease, color 0.15s ease !important;
  position: relative !important;
}

.mobile-nav-drawer .nav-link.active::after {
  display: none !important;
}

/* Light Mode Drawer (Default / Day) */
:root:not([data-theme="night"]) .mobile-nav-drawer,
[data-theme="day"] .mobile-nav-drawer {
  background: #FFFFFF !important;
  border-top: 1px solid #E7E5F0 !important;
  box-shadow: 0 20px 40px rgba(17, 17, 38, 0.12) !important;
}

:root:not([data-theme="night"]) .mobile-nav-drawer .nav-link,
[data-theme="day"] .mobile-nav-drawer .nav-link {
  color: #111126 !important;
}

:root:not([data-theme="night"]) .mobile-nav-drawer .nav-link:hover,
:root:not([data-theme="night"]) .mobile-nav-drawer .nav-link.active,
[data-theme="day"] .mobile-nav-drawer .nav-link:hover,
[data-theme="day"] .mobile-nav-drawer .nav-link.active {
  color: var(--color-primary) !important;
  background: rgba(108, 77, 255, 0.06) !important;
}

:root:not([data-theme="night"]) .mobile-nav-drawer .mobile-theme-row,
[data-theme="day"] .mobile-nav-drawer .mobile-theme-row {
  border-color: #E7E5F0 !important;
}

:root:not([data-theme="night"]) .mobile-nav-drawer .mobile-theme-label,
[data-theme="day"] .mobile-nav-drawer .mobile-theme-label {
  color: #4D4D61 !important;
}

:root:not([data-theme="night"]) .mobile-nav-drawer .nav-actions .btn-secondary,
:root:not([data-theme="night"]) .mobile-nav-drawer .nav-actions .btn-outline,
:root:not([data-theme="night"]) .mobile-nav-drawer .nav-actions .btn-login,
[data-theme="day"] .mobile-nav-drawer .nav-actions .btn-secondary,
[data-theme="day"] .mobile-nav-drawer .nav-actions .btn-outline,
[data-theme="day"] .mobile-nav-drawer .nav-actions .btn-login {
  background: #F8F8FC !important;
  color: #111126 !important;
  border: 1.5px solid #D1CFE2 !important;
}

:root:not([data-theme="night"]) .mobile-nav-drawer .nav-actions .btn-secondary:hover,
:root:not([data-theme="night"]) .mobile-nav-drawer .nav-actions .btn-outline:hover,
:root:not([data-theme="night"]) .mobile-nav-drawer .nav-actions .btn-login:hover,
[data-theme="day"] .mobile-nav-drawer .nav-actions .btn-secondary:hover,
[data-theme="day"] .mobile-nav-drawer .nav-actions .btn-outline:hover,
[data-theme="day"] .mobile-nav-drawer .nav-actions .btn-login:hover {
  background: #EEEAFE !important;
  color: var(--color-primary) !important;
  border-color: var(--color-primary) !important;
}

/* Dark Mode Drawer (Night) */
[data-theme="night"] .mobile-nav-drawer {
  background: #0C0C14 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6) !important;
}

[data-theme="night"] .mobile-nav-drawer .nav-link {
  color: #FFFFFF !important;
}

[data-theme="night"] .mobile-nav-drawer .nav-link:hover,
[data-theme="night"] .mobile-nav-drawer .nav-link.active {
  color: var(--color-primary) !important;
  background: rgba(108, 77, 255, 0.12) !important;
}

[data-theme="night"] .mobile-nav-drawer .mobile-theme-row {
  border-color: rgba(255, 255, 255, 0.08) !important;
}

[data-theme="night"] .mobile-nav-drawer .mobile-theme-label {
  color: #9B9BB5 !important;
}

[data-theme="night"] .mobile-nav-drawer .nav-actions .btn-secondary,
[data-theme="night"] .mobile-nav-drawer .nav-actions .btn-outline,
[data-theme="night"] .mobile-nav-drawer .nav-actions .btn-login {
  background: #18182C !important;
  color: #FFFFFF !important;
  border: 1.5px solid rgba(255, 255, 255, 0.18) !important;
}

[data-theme="night"] .mobile-nav-drawer .nav-actions .btn-secondary:hover,
[data-theme="night"] .mobile-nav-drawer .nav-actions .btn-outline:hover,
[data-theme="night"] .mobile-nav-drawer .nav-actions .btn-login:hover {
  background: #242442 !important;
  color: #FFFFFF !important;
  border-color: var(--color-primary) !important;
}

/* Primary Action Button in Drawer */
.mobile-nav-drawer .nav-actions .btn-primary {
  background: #6C4DFF !important;
  color: #FFFFFF !important;
  border: 1px solid #6C4DFF !important;
  box-shadow: 0 4px 16px rgba(108, 77, 255, 0.35) !important;
}

.mobile-nav-drawer .nav-actions .btn-primary:hover {
  background: #4B32C3 !important;
  border-color: #4B32C3 !important;
}

.mobile-nav-drawer .nav-actions {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  gap: 8px !important;
  margin-top: 10px !important;
  padding-top: 10px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

:root:not([data-theme="night"]) .mobile-nav-drawer .nav-actions,
[data-theme="day"] .mobile-nav-drawer .nav-actions {
  border-top: 1px solid #E7E5F0 !important;
}

.mobile-nav-drawer .nav-actions .btn {
  display: flex !important;
  width: 100% !important;
  height: 40px !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  border-radius: 10px !important;
  text-decoration: none !important;
}

/* ==========================================================================
   DELIBERATE SECTION BACKGROUND SYSTEM (One QR Architecture)
   Enforces deliberate alternation: LIGHT, WHITE, DARK, PURPLE.
   ========================================================================== */

/* 1. LIGHT SECTION (#F8F8FC) */
:root:not([data-theme="night"]) .section-light,
:root:not([data-theme="night"]) .section-theme-light,
[data-theme="day"] .section-light,
[data-theme="day"] .section-theme-light {
  background-color: #F8F8FC !important;
  color: #4D4D61 !important;
}

:root:not([data-theme="night"]) .section-light h1, :root:not([data-theme="night"]) .section-light h2, :root:not([data-theme="night"]) .section-light h3, :root:not([data-theme="night"]) .section-light h4, :root:not([data-theme="night"]) .section-light h5, :root:not([data-theme="night"]) .section-light h6,
:root:not([data-theme="night"]) .section-theme-light h1, :root:not([data-theme="night"]) .section-theme-light h2, :root:not([data-theme="night"]) .section-theme-light h3, :root:not([data-theme="night"]) .section-theme-light h4, :root:not([data-theme="night"]) .section-theme-light h5, :root:not([data-theme="night"]) .section-theme-light h6,
[data-theme="day"] .section-light h1, [data-theme="day"] .section-light h2, [data-theme="day"] .section-light h3, [data-theme="day"] .section-light h4, [data-theme="day"] .section-light h5, [data-theme="day"] .section-light h6,
[data-theme="day"] .section-theme-light h1, [data-theme="day"] .section-theme-light h2, [data-theme="day"] .section-theme-light h3, [data-theme="day"] .section-theme-light h4, [data-theme="day"] .section-theme-light h5, [data-theme="day"] .section-theme-light h6 {
  color: #111126 !important;
}

:root:not([data-theme="night"]) .section-light .section-title,
:root:not([data-theme="night"]) .section-theme-light .section-title,
[data-theme="day"] .section-light .section-title,
[data-theme="day"] .section-theme-light .section-title {
  color: #111126 !important;
}

:root:not([data-theme="night"]) .section-light .section-subtitle,
:root:not([data-theme="night"]) .section-theme-light .section-subtitle,
[data-theme="day"] .section-light .section-subtitle,
[data-theme="day"] .section-theme-light .section-subtitle {
  color: #4D4D61 !important;
}

:root:not([data-theme="night"]) .section-light .eyebrow,
:root:not([data-theme="night"]) .section-theme-light .eyebrow,
[data-theme="day"] .section-light .eyebrow,
[data-theme="day"] .section-theme-light .eyebrow {
  background: rgba(108, 77, 255, 0.08) !important;
  color: #5538EE !important;
  border-color: rgba(108, 77, 255, 0.25) !important;
}

:root:not([data-theme="night"]) .section-light .card,
:root:not([data-theme="night"]) .section-light .feature-card,
:root:not([data-theme="night"]) .section-light .step-card,
:root:not([data-theme="night"]) .section-theme-light .card,
:root:not([data-theme="night"]) .section-theme-light .feature-card,
:root:not([data-theme="night"]) .section-theme-light .step-card,
[data-theme="day"] .section-light .card,
[data-theme="day"] .section-light .feature-card,
[data-theme="day"] .section-light .step-card,
[data-theme="day"] .section-theme-light .card,
[data-theme="day"] .section-theme-light .feature-card,
[data-theme="day"] .section-theme-light .step-card {
  background: #FFFFFF !important;
  border-color: #E7E5F0 !important;
  box-shadow: 0 8px 30px rgba(17, 17, 38, 0.05);
}

:root:not([data-theme="night"]) .section-light .card h1, :root:not([data-theme="night"]) .section-light .card h2, :root:not([data-theme="night"]) .section-light .card h3, :root:not([data-theme="night"]) .section-light .card h4,
:root:not([data-theme="night"]) .section-light .feature-title, :root:not([data-theme="night"]) .section-light .step-title,
[data-theme="day"] .section-light .card h1, [data-theme="day"] .section-light .card h2, [data-theme="day"] .section-light .card h3, [data-theme="day"] .section-light .card h4,
[data-theme="day"] .section-light .feature-title, [data-theme="day"] .section-light .step-title {
  color: #111126 !important;
}

:root:not([data-theme="night"]) .section-light .card p, :root:not([data-theme="night"]) .section-light .feature-desc, :root:not([data-theme="night"]) .section-light .step-desc,
[data-theme="day"] .section-light .card p, [data-theme="day"] .section-light .feature-desc, [data-theme="day"] .section-light .step-desc {
  color: #4D4D61 !important;
}

:root:not([data-theme="night"]) .section-light .btn-secondary,
:root:not([data-theme="night"]) .section-theme-light .btn-secondary,
[data-theme="day"] .section-light .btn-secondary,
[data-theme="day"] .section-theme-light .btn-secondary {
  background: #FFFFFF !important;
  color: #111126 !important;
  border-color: #D1CFE2 !important;
  box-shadow: 0 2px 6px rgba(17, 17, 38, 0.04);
}

:root:not([data-theme="night"]) .section-light .btn-secondary:hover,
:root:not([data-theme="night"]) .section-theme-light .btn-secondary:hover,
[data-theme="day"] .section-light .btn-secondary:hover,
[data-theme="day"] .section-theme-light .btn-secondary:hover {
  background: #F4F2FF !important;
  color: #4B32C3 !important;
  border-color: rgba(108, 77, 255, 0.4) !important;
}

/* 2. WHITE SECTION (#FFFFFF) */
:root:not([data-theme="night"]) .section-white,
:root:not([data-theme="night"]) .section-theme-white,
[data-theme="day"] .section-white,
[data-theme="day"] .section-theme-white {
  background-color: #FFFFFF !important;
  color: #4D4D61 !important;
}

:root:not([data-theme="night"]) .section-white h1, :root:not([data-theme="night"]) .section-white h2, :root:not([data-theme="night"]) .section-white h3, :root:not([data-theme="night"]) .section-white h4, :root:not([data-theme="night"]) .section-white h5, :root:not([data-theme="night"]) .section-white h6,
:root:not([data-theme="night"]) .section-theme-white h1, :root:not([data-theme="night"]) .section-theme-white h2, :root:not([data-theme="night"]) .section-theme-white h3, :root:not([data-theme="night"]) .section-theme-white h4, :root:not([data-theme="night"]) .section-theme-white h5, :root:not([data-theme="night"]) .section-theme-white h6,
[data-theme="day"] .section-white h1, [data-theme="day"] .section-white h2, [data-theme="day"] .section-white h3, [data-theme="day"] .section-white h4, [data-theme="day"] .section-white h5, [data-theme="day"] .section-white h6,
[data-theme="day"] .section-theme-white h1, [data-theme="day"] .section-theme-white h2, [data-theme="day"] .section-theme-white h3, [data-theme="day"] .section-theme-white h4, [data-theme="day"] .section-theme-white h5, [data-theme="day"] .section-theme-white h6 {
  color: #111126 !important;
}

:root:not([data-theme="night"]) .section-white .section-title,
:root:not([data-theme="night"]) .section-theme-white .section-title,
[data-theme="day"] .section-white .section-title,
[data-theme="day"] .section-theme-white .section-title {
  color: #111126 !important;
}

:root:not([data-theme="night"]) .section-white .section-subtitle,
:root:not([data-theme="night"]) .section-theme-white .section-subtitle,
[data-theme="day"] .section-white .section-subtitle,
[data-theme="day"] .section-theme-white .section-subtitle {
  color: #4D4D61 !important;
}

:root:not([data-theme="night"]) .section-white .eyebrow,
:root:not([data-theme="night"]) .section-theme-white .eyebrow,
[data-theme="day"] .section-white .eyebrow,
[data-theme="day"] .section-theme-white .eyebrow {
  background: rgba(108, 77, 255, 0.08) !important;
  color: #5538EE !important;
  border-color: rgba(108, 77, 255, 0.25) !important;
}

:root:not([data-theme="night"]) .section-white .card,
:root:not([data-theme="night"]) .section-white .feature-card,
:root:not([data-theme="night"]) .section-white .step-card,
:root:not([data-theme="night"]) .section-theme-white .card,
:root:not([data-theme="night"]) .section-theme-white .feature-card,
:root:not([data-theme="night"]) .section-theme-white .step-card,
[data-theme="day"] .section-white .card,
[data-theme="day"] .section-white .feature-card,
[data-theme="day"] .section-white .step-card,
[data-theme="day"] .section-theme-white .card,
[data-theme="day"] .section-theme-white .feature-card,
[data-theme="day"] .section-theme-white .step-card {
  background: #F8F8FC !important;
  border-color: #E7E5F0 !important;
  box-shadow: 0 8px 30px rgba(17, 17, 38, 0.04);
}

:root:not([data-theme="night"]) .section-white .card h1, :root:not([data-theme="night"]) .section-white .card h2, :root:not([data-theme="night"]) .section-white .card h3, :root:not([data-theme="night"]) .section-white .card h4,
:root:not([data-theme="night"]) .section-white .feature-title, :root:not([data-theme="night"]) .section-white .step-title,
[data-theme="day"] .section-white .card h1, [data-theme="day"] .section-white .card h2, [data-theme="day"] .section-white .card h3, [data-theme="day"] .section-white .card h4,
[data-theme="day"] .section-white .feature-title, [data-theme="day"] .section-white .step-title {
  color: #111126 !important;
}

:root:not([data-theme="night"]) .section-white .card p, :root:not([data-theme="night"]) .section-white .feature-desc, :root:not([data-theme="night"]) .section-white .step-desc,
[data-theme="day"] .section-white .card p, [data-theme="day"] .section-white .feature-desc, [data-theme="day"] .section-white .step-desc {
  color: #4D4D61 !important;
}

:root:not([data-theme="night"]) .section-white .btn-secondary,
:root:not([data-theme="night"]) .section-theme-white .btn-secondary,
[data-theme="day"] .section-white .btn-secondary,
[data-theme="day"] .section-theme-white .btn-secondary {
  background: #FFFFFF !important;
  color: #111126 !important;
  border-color: #D1CFE2 !important;
  box-shadow: 0 2px 6px rgba(17, 17, 38, 0.04);
}

:root:not([data-theme="night"]) .section-white .btn-secondary:hover,
:root:not([data-theme="night"]) .section-theme-white .btn-secondary:hover,
[data-theme="day"] .section-white .btn-secondary:hover,
[data-theme="day"] .section-theme-white .btn-secondary:hover {
  background: #F4F2FF !important;
  color: #4B32C3 !important;
  border-color: rgba(108, 77, 255, 0.4) !important;
}

/* ==========================================================================
   NIGHT MODE CALIBRATION FOR DELIBERATE SECTIONS & CARDS
   ========================================================================== */
[data-theme="night"] .section-light,
[data-theme="night"] .section-theme-light {
  background-color: #0C0C14 !important;
  color: #9B9BB5 !important;
}

[data-theme="night"] .section-light h1, [data-theme="night"] .section-light h2, [data-theme="night"] .section-light h3, [data-theme="night"] .section-light h4, [data-theme="night"] .section-light h5, [data-theme="night"] .section-light h6,
[data-theme="night"] .section-theme-light h1, [data-theme="night"] .section-theme-light h2, [data-theme="night"] .section-theme-light h3, [data-theme="night"] .section-theme-light h4, [data-theme="night"] .section-theme-light h5, [data-theme="night"] .section-theme-light h6,
[data-theme="night"] .section-light .section-title,
[data-theme="night"] .section-theme-light .section-title {
  color: #FFFFFF !important;
}

[data-theme="night"] .section-light .section-subtitle,
[data-theme="night"] .section-theme-light .section-subtitle {
  color: #9B9BB5 !important;
}

[data-theme="night"] .section-light .eyebrow,
[data-theme="night"] .section-theme-light .eyebrow {
  background: rgba(124, 94, 255, 0.16) !important;
  color: #9E86FF !important;
  border-color: rgba(124, 94, 255, 0.3) !important;
}

[data-theme="night"] .section-light .card,
[data-theme="night"] .section-light .feature-card,
[data-theme="night"] .section-light .step-card,
[data-theme="night"] .section-theme-light .card,
[data-theme="night"] .section-theme-light .feature-card,
[data-theme="night"] .section-theme-light .step-card {
  background: #151524 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45) !important;
}

[data-theme="night"] .section-light .card h1, [data-theme="night"] .section-light .card h2, [data-theme="night"] .section-light .card h3, [data-theme="night"] .section-light .card h4,
[data-theme="night"] .section-light .feature-title, [data-theme="night"] .section-light .step-title {
  color: #FFFFFF !important;
}

[data-theme="night"] .section-light .card p, [data-theme="night"] .section-light .feature-desc, [data-theme="night"] .section-light .step-desc {
  color: #9B9BB5 !important;
}

[data-theme="night"] .section-light .btn-secondary,
[data-theme="night"] .section-theme-light .btn-secondary {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #FFFFFF !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
}

[data-theme="night"] .section-white,
[data-theme="night"] .section-theme-white {
  background-color: #12121E !important;
  color: #9B9BB5 !important;
}

[data-theme="night"] .section-white h1, [data-theme="night"] .section-white h2, [data-theme="night"] .section-white h3, [data-theme="night"] .section-white h4, [data-theme="night"] .section-white h5, [data-theme="night"] .section-white h6,
[data-theme="night"] .section-theme-white h1, [data-theme="night"] .section-theme-white h2, [data-theme="night"] .section-theme-white h3, [data-theme="night"] .section-theme-white h4, [data-theme="night"] .section-theme-white h5, [data-theme="night"] .section-theme-white h6,
[data-theme="night"] .section-white .section-title,
[data-theme="night"] .section-theme-white .section-title {
  color: #FFFFFF !important;
}

[data-theme="night"] .section-white .section-subtitle,
[data-theme="night"] .section-theme-white .section-subtitle {
  color: #9B9BB5 !important;
}

[data-theme="night"] .section-white .eyebrow,
[data-theme="night"] .section-theme-white .eyebrow {
  background: rgba(124, 94, 255, 0.16) !important;
  color: #9E86FF !important;
  border-color: rgba(124, 94, 255, 0.3) !important;
}

[data-theme="night"] .section-white .card,
[data-theme="night"] .section-white .feature-card,
[data-theme="night"] .section-white .step-card,
[data-theme="night"] .section-theme-white .card,
[data-theme="night"] .section-theme-white .feature-card,
[data-theme="night"] .section-theme-white .step-card {
  background: #18182A !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45) !important;
}

[data-theme="night"] .section-white .card h1, [data-theme="night"] .section-white .card h2, [data-theme="night"] .section-white .card h3, [data-theme="night"] .section-white .card h4,
[data-theme="night"] .section-white .feature-title, [data-theme="night"] .section-white .step-title {
  color: #FFFFFF !important;
}

[data-theme="night"] .section-white .card p, [data-theme="night"] .section-white .feature-desc, [data-theme="night"] .section-white .step-desc {
  color: #9B9BB5 !important;
}

[data-theme="night"] .section-white .btn-secondary,
[data-theme="night"] .section-theme-white .btn-secondary {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #FFFFFF !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
}

/* FAQ & Filter Pills Night Calibration */
[data-theme="night"] .faq-item {
  background: #151524 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

[data-theme="night"] .faq-item.open {
  border-color: rgba(124, 94, 255, 0.45) !important;
}

[data-theme="night"] .faq-question-btn {
  color: #FFFFFF !important;
}

[data-theme="night"] .faq-answer-content {
  color: #9B9BB5 !important;
}

[data-theme="night"] .faq-search-input {
  background: #151524 !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #FFFFFF !important;
}

[data-theme="night"] .split-pill,
[data-theme="night"] .faq-cat-chip {
  background: #151524 !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #9B9BB5 !important;
}

[data-theme="night"] .split-pill.active,
[data-theme="night"] .faq-cat-chip.active {
  background: #6C4DFF !important;
  border-color: #6C4DFF !important;
  color: #FFFFFF !important;
}

/* 3. DARK SECTION (#111126) */
.section-dark,
.section-theme-dark {
  background-color: #111126 !important;
  color: #B7B7C8 !important;
}

.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4, .section-dark h5, .section-dark h6,
.section-theme-dark h1, .section-theme-dark h2, .section-theme-dark h3, .section-theme-dark h4, .section-theme-dark h5, .section-theme-dark h6 {
  color: #FFFFFF !important;
}

.section-dark .section-title,
.section-theme-dark .section-title {
  color: #FFFFFF !important;
}

.section-dark .section-subtitle,
.section-theme-dark .section-subtitle {
  color: #B7B7C8 !important;
}

.section-dark .eyebrow,
.section-theme-dark .eyebrow {
  background: rgba(108, 77, 255, 0.2) !important;
  color: #A5B4FC !important;
  border-color: rgba(108, 77, 255, 0.35) !important;
}

.section-dark .card,
.section-theme-dark .card {
  background: #181834;
  border-color: rgba(255, 255, 255, 0.08);
  color: #B7B7C8;
}

.section-dark .card h1, .section-dark .card h2, .section-dark .card h3, .section-dark .card h4,
.section-theme-dark .card h1, .section-theme-dark .card h2, .section-theme-dark .card h3, .section-theme-dark .card h4 {
  color: #FFFFFF !important;
}

.section-dark .btn-secondary,
.section-theme-dark .btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.16);
}

.section-dark .btn-secondary:hover,
.section-theme-dark .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--color-primary);
  color: #FFFFFF;
}

/* 4. PURPLE FEATURE SECTION (Subtle Gradient #4B32C3 -> #6C4DFF) */
.section-purple,
.section-theme-purple {
  background: linear-gradient(135deg, #4B32C3 0%, #6C4DFF 100%) !important;
  color: #FFFFFF !important;
}

.section-purple h1, .section-purple h2, .section-purple h3, .section-purple h4, .section-purple h5, .section-purple h6,
.section-theme-purple h1, .section-theme-purple h2, .section-theme-purple h3, .section-theme-purple h4, .section-theme-purple h5, .section-theme-purple h6 {
  color: #FFFFFF !important;
}

.section-purple .section-title,
.section-theme-purple .section-title {
  color: #FFFFFF !important;
}

.section-purple .section-subtitle,
.section-theme-purple .section-subtitle {
  color: rgba(255, 255, 255, 0.9) !important;
}

.section-purple .eyebrow,
.section-theme-purple .eyebrow {
  background: rgba(255, 255, 255, 0.2) !important;
  color: #FFFFFF !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
}

.section-purple .btn-secondary,
.section-theme-purple .btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.25);
}

.section-purple .btn-secondary:hover,
.section-theme-purple .btn-secondary:hover {
  background: #FFFFFF;
  color: #4B32C3;
}

/* 5. DARK PRODUCT MOCKUP PATTERN (Rule 4 & 6) */
.product-mockup-dark {
  background: #111126;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: var(--space-24);
  box-shadow: 0 20px 50px -10px rgba(17, 17, 38, 0.25);
  color: #FFFFFF;
}

.product-mockup-dark .inner-card-white {
  background: #FFFFFF;
  border: 1px solid #E7E5F0;
  border-radius: 12px;
  padding: 16px;
  color: #111126;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.product-mockup-dark .inner-card-white h4,
.product-mockup-dark .inner-card-white .inner-title {
  color: #111126;
}

.product-mockup-dark .inner-card-white p,
.product-mockup-dark .inner-card-white .inner-sub {
  color: #686878;
}

/* ==========================================================================
   SITE FOOTER (Dark Navy #111126)
   ========================================================================== */

.site-footer {
  margin-top: auto;
  background: #111126 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: var(--space-80);
  padding-bottom: var(--space-32);
  color: var(--color-navy-muted);
  position: relative;
  z-index: 2;
}

[data-theme="night"] h1,
[data-theme="night"] h2,
[data-theme="night"] h3,
[data-theme="night"] h4,
[data-theme="night"] h5,
[data-theme="night"] h6 {
  color: #FFFFFF;
}

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

.footer-col-brand .brand-logo {
  color: #FFFFFF;
  margin-bottom: var(--space-16);
}

.footer-tagline {
  color: var(--color-navy-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: var(--space-24);
  max-width: 320px;
}

.footer-social-links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.social-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-navy-muted);
  font-size: 0.8125rem;
  font-weight: 600;
  transition: all var(--transition-btn);
}

.social-btn:hover {
  background: var(--color-primary);
  color: #FFFFFF;
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

.footer-heading {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #FFFFFF;
  margin-bottom: var(--space-24);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--color-navy-muted);
  transition: color var(--transition-btn);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: var(--space-24);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-16);
  font-size: 0.8125rem;
  color: #8E8EA0;
}

.footer-disclaimer {
  max-width: 620px;
  line-height: 1.5;
}

/* ==========================================================================
   RESPONSIVE BASE BREAKPOINTS
   ========================================================================== */

/* Tablet & Phone Layout Breakpoint (<= 1024px) */
@media (max-width: 1024px) {
  .section {
    padding-top: var(--section-padding-mobile);
    padding-bottom: var(--section-padding-mobile);
  }

  /* Hide desktop horizontal menu links on tablet and phone */
  .site-header nav,
  .site-header .nav-links {
    display: none !important;
  }

  /* In the top header bar, hide the 3 action buttons (Login, Talk to Us, Book a Demo)
     so the top navbar stays clean and spacious on all tablet and phone screens */
  .site-header .nav-actions > .btn {
    display: none !important;
  }

  /* Show the hamburger menu toggle */
  .mobile-toggle {
    display: inline-flex !important;
  }

  /* Keep theme toggle button visible next to hamburger in top bar */
  .site-header .nav-actions {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-left: auto !important;
    margin-right: 0 !important;
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-32);
  }
}

/* Phone Layout Adjustments (<= 768px) */
@media (max-width: 768px) {
  /* Prevent any horizontal overflow */
  html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
  }

  /* Tighter container padding on phone */
  .container,
  .container-narrow,
  .container-wide {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-24);
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  /* All 2-column grids collapse to 1 column */
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns: repeat(2"],
  [style*="grid-template-columns: 1.1fr 1fr"],
  [style*="grid-template-columns: 2fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* Feature / use-case card grids: never go below 1 col on phone */
  .feature-grid,
  .use-case-grid,
  .pricing-grid,
  .card-grid,
  .step-cards,
  .stats-grid,
  .industry-grid,
  .connect-grid {
    grid-template-columns: 1fr !important;
  }

  /* Card grids using auto-fill/auto-fit should min 1 col */
  [class*="-grid"] {
    grid-template-columns: 1fr !important;
  }

  /* Prevent oversized phone/device mockup from overflowing */
  .hero-visual,
  .phone-visual,
  .mockup-phone,
  .device-frame,
  .phone-mockup,
  .app-preview,
  .demo-frame,
  .standee-visual,
  .hero-mockup {
    max-width: 100% !important;
    width: 100% !important;
    overflow: hidden !important;
  }

  /* Prevent any fixed-width inline images from overflowing */
  img {
    max-width: 100% !important;
    height: auto !important;
  }

  /* Button groups stack on phone */
  .btn-group {
    flex-direction: column !important;
    width: 100% !important;
    gap: 10px !important;
  }

  .btn-group .btn {
    width: 100% !important;
    justify-content: center !important;
  }

  /* Section headers narrower on phone */
  .section-header {
    margin-bottom: var(--space-32) !important;
  }

  /* Hero title smaller on phone */
  h1 {
    font-size: clamp(2rem, 8vw, 2.75rem) !important;
  }

  h2 {
    font-size: clamp(1.5rem, 6vw, 2rem) !important;
  }

  h3 {
    font-size: clamp(1.125rem, 5vw, 1.5rem) !important;
  }

  /* Tables should scroll horizontally rather than break layout */
  table,
  .table-comparison {
    display: block !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    max-width: 100% !important;
  }

  /* Horizontal scrolling rows (feature tabs etc.) should scroll, not wrap badly */
  .tabs-row,
  .filter-row,
  .category-tabs,
  .legal-nav-tabs {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    flex-wrap: nowrap !important;
  }

  /* Comparison grid */
  .comparison-grid {
    grid-template-columns: 1fr !important;
  }

  /* Comparison column padding */
  .comparison-col {
    padding: var(--space-24) var(--space-20) !important;
  }

  /* FAQ search and category on phone */
  .faq-search-row {
    flex-direction: column !important;
  }
}

/* Extra-small phone (<= 480px) */
@media (max-width: 480px) {
  .container,
  .container-narrow,
  .container-wide {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .section {
    padding-top: 48px !important;
    padding-bottom: 48px !important;
  }

  .section-header {
    margin-bottom: 28px !important;
  }

  /* Cards take full width with less padding */
  .card,
  .feature-card,
  .step-card,
  .pricing-card {
    padding: var(--space-20) !important;
  }

  /* CTA banner tighter */
  .cta-banner-dark,
  .cta-banner {
    padding: var(--space-32) var(--space-16) !important;
  }
}

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

  .qr-scan-beam {
    animation: none !important;
    display: none !important;
    opacity: 0 !important;
  }

  .standee-qr-box {
    animation: none !important;
  }

  .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  /* Keep theme switching functional without jarring effects */
  html.theme-transitioning * {
    transition: none !important;
  }
}
