/**
 * INOVIFI Core - Industrial B2B Engineering Stylesheet
 * Strict Directives: Zero Purple, Zero Em-Dashes, Clean SSR, High Contrast
 * Palette: Deep Silicon Obsidian (#06080E), Electric Volt Lime (#C5FF00), Quantum Circuit Indigo (#5200FF)
 * Pre-Deployment Responsive Hardening v2.0 - All 5 blocks applied
 */

/* ==========================================================================
   0. ZERO HORIZONTAL SCROLL GUARD & STRICT VIEWPORT CONTAINMENT
   Prevents ANY element from causing horizontal overflow / CLS on any device
   ========================================================================== */
html,
body {
  max-width: 100%;
  overflow-x: hidden !important;
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  min-width: 0; /* Prevent flex/grid children from blowing out containers */
}

/* Safe content width sentinel - every major layout root respects this */
.container,
.container-narrow,
[class*="elementor-container"],
[class*="elementor-section"],
.inovifi-widget-root {
  max-width: 100%;
  word-break: break-word;
  overflow-wrap: break-word;
}

@import url('variables.css');

/* ==========================================================================
   1. RESET & BASE ELEMENTS
   ========================================================================== */
*, *::before, *::after {
  /* Note: box-sizing and min-width are already set in the global guard above */
  margin: 0;
  padding: 0;
}

html {
  /* Fluid base font: scales from 14px at 320px to 16px at 1280px viewport */
  font-size: clamp(0.875rem, 0.5rem + 1.25vw, 1rem);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  /* Hard width cap prevents rogue elements from widening viewport */
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden !important;
  position: relative;
  min-height: 100vh;
  /* Prevent content-shift from scrollbar appearance */
  scrollbar-gutter: stable both-edges;
}

/* Structural Hairline Grid Background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

.site-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

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

a {
  color: var(--accent-cobalt);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--accent-sky);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

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

p:last-child {
  margin-bottom: 0;
}

code, kbd, samp, pre {
  font-family: var(--font-mono);
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.container-narrow {
  max-width: var(--container-narrow);
}

/* ==========================================================================
   2. HIGH-CONTRAST ALTERNATING SECTIONS (LIGHT & DARK)
   ========================================================================== */
.section-light {
  background-color: var(--bg-light);
  color: var(--text-dark);
  padding: 5rem 0;
  position: relative;
  z-index: 1;
}

.section-light h1,
.section-light h2,
.section-light h3,
.section-light h4 {
  color: var(--text-dark);
}

.section-light p {
  color: var(--text-dark-muted);
}

.section-light .glass-card,
.section-light .bento-item {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  color: var(--text-dark);
}

.section-light .bento-item h3 {
  color: var(--text-dark);
}

.section-light .bento-tag {
  background: #F1F5F9;
  border-color: #E2E8F0;
  color: #475569;
}

/* ==========================================================================
   3. BUTTONS & UI MICRO-COMPONENTS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.85rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none;
  white-space: nowrap;
}

.btn-cta,
.btn-primary,
.inovifi-btn-primary {
  background: var(--gradient-cta);
  color: #06080E;
  font-weight: 700;
  box-shadow: 0 0 20px rgba(197, 255, 0, 0.35);
  border: 1px solid var(--brand-volt, #C5FF00);
}

.btn-cta:hover,
.btn-primary:hover,
.inovifi-btn-primary:hover {
  background: var(--gradient-cta-hover);
  color: #06080E;
  transform: translateY(-2px);
  box-shadow: 0 0 28px rgba(197, 255, 0, 0.55);
  border-color: var(--brand-volt-hover, #D4FF33);
}

.btn-glass,
.btn-secondary,
.inovifi-btn-secondary {
  background: rgba(82, 0, 255, 0.14);
  border: 1px solid rgba(82, 0, 255, 0.4);
  color: var(--text-primary);
}

.btn-glass:hover,
.btn-secondary:hover,
.inovifi-btn-secondary:hover {
  background: rgba(82, 0, 255, 0.28);
  border-color: var(--brand-volt, #C5FF00);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(82, 0, 255, 0.45);
}

.btn-emerald {
  background: var(--brand-volt, #C5FF00);
  color: #06080E;
  font-weight: 700;
  border: 1px solid var(--brand-volt, #C5FF00);
}

.btn-emerald:hover {
  background: var(--brand-volt-hover, #D4FF33);
  color: #06080E;
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(197, 255, 0, 0.45);
}

.btn-whatsapp {
  background: #15803D;
  color: #FFFFFF;
  font-weight: 700;
}

.btn-whatsapp:hover {
  background: #166534;
  color: #FFFFFF;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.5rem 1.15rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 1rem 2.2rem;
  font-size: 1.05rem;
}

/* Badges */
.badge,
.inovifi-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(82, 0, 255, 0.18);
  border: 1px solid rgba(197, 255, 0, 0.4);
  color: var(--brand-volt, #C5FF00);
}

.badge-emerald,
.badge-volt {
  background: rgba(197, 255, 0, 0.12);
  border-color: rgba(197, 255, 0, 0.45);
  color: var(--brand-volt, #C5FF00);
}

.badge-pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-volt, #C5FF00);
  box-shadow: 0 0 10px rgba(197, 255, 0, 0.75);
}

/* Structural Glass Cards */
.glass-card {
  background: var(--bg-card);
  border: var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition-smooth);
}

.glass-card:hover {
  border-color: var(--accent-cobalt);
  transform: translateY(-2px);
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header .badge {
  margin-bottom: 1rem;
}

.section-header h2 {
  font-size: clamp(2rem, 3.8vw, 2.8rem);
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.125rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.highlight-cobalt {
  color: var(--accent-cobalt);
}

.highlight-emerald {
  color: var(--accent-emerald);
}

/* ==========================================================================
   4. BREADCRUMBS (SERVER-SIDE RENDERED)
   ========================================================================== */
.inovifi-breadcrumbs-wrapper {
  background: #0E1218;
  border-bottom: var(--border-hairline);
  padding: 0.75rem 0;
  font-size: 0.82rem;
  position: relative;
  z-index: 10;
}

.inovifi-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  font-family: var(--font-mono);
  color: var(--text-dim);
}

.inovifi-breadcrumbs li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.inovifi-breadcrumbs li a {
  color: var(--text-muted);
}

.inovifi-breadcrumbs li a:hover {
  color: var(--accent-sky);
}

.inovifi-breadcrumbs li[aria-current="page"] {
  color: var(--accent-sky);
  font-weight: 600;
}

.breadcrumb-sep {
  color: #334155;
}

/* ==========================================================================
   5. TOP ANNOUNCEMENT & MEGA-MENU HEADER
   ========================================================================== */
.top-announcement {
  min-height: 38px;
  background: #0A0D12;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.35rem 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  position: relative;
  z-index: 102;
  display: flex;
  align-items: center;
}

.topbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 1rem;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: nowrap;
}

.topbar-badge {
  background: #10B981;
  color: #0A0D12;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  line-height: 1.2;
}

.topbar-text {
  color: #94A3B8;
  font-weight: 400;
  font-size: 0.82rem;
  white-space: nowrap;
}

.topbar-cta-link {
  color: #38BDF8;
  font-weight: 600;
  text-decoration: none;
  margin-left: 4px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.topbar-cta-link:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.topbar-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #94A3B8;
  text-decoration: none;
  font-size: 0.8rem;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.topbar-contact-item:hover {
  color: #FFFFFF;
}

.topbar-contact-item svg {
  color: #38BDF8;
}

.topbar-locations-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #38BDF8;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  background: rgba(56, 189, 248, 0.08);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(56, 189, 248, 0.2);
  white-space: nowrap;
}

.badge-pulse-emerald {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-emerald 2s infinite;
  flex-shrink: 0;
  display: inline-block;
}

@keyframes pulse-emerald {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 100;
  background: var(--bg-glass-nav);
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
  border-bottom: var(--border-hairline);
  transition: var(--transition-smooth);
}

.site-header.scrolled {
  background: rgba(10, 13, 18, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 1.5rem;
  position: relative;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo img,
.brand-logo .custom-logo,
.header-logo-img,
.custom-logo-link img,
.site-branding img,
.inovifi-dynamic-logo {
  max-height: var(--inovifi-logo-max-height, var(--logo-max-height, 48px)) !important;
  width: var(--inovifi-logo-width, auto) !important;
  height: auto !important;
  display: block !important;
  object-fit: contain !important;
  transform: scale(var(--inovifi-logo-scale, 1)) !important;
  transform-origin: left center !important;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.brand-logo:hover img,
.brand-logo:hover .custom-logo,
.header-logo-img:hover,
.inovifi-dynamic-logo:hover {
  opacity: 0.95;
}

.brand-text-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand-text-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.brand-text-tagline {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

/* Enforce Single-Line Desktop Navigation */
.main-nav {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: center;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu > li {
  position: relative;
}

.nav-menu > li.has-mega-menu {
  position: static;
}

.nav-menu > li > a,
.main-navigation a,
.nav-link {
  white-space: nowrap !important;
  font-family: var(--font-heading);
  font-size: 14.5px !important;
  font-weight: 500 !important;
  color: #94A3B8;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
  transition: color 0.2s ease;
}

.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a,
.nav-menu > li.current-menu-ancestor > a,
.nav-menu > li:hover > a {
  color: #FFFFFF;
}

.nav-chevron {
  transition: transform 0.25s ease;
  color: #64748B;
  flex-shrink: 0;
}

.nav-menu > li:hover .nav-chevron,
.nav-item.has-mega-menu:hover .nav-chevron,
.menu-item-has-children:hover .nav-chevron,
.menu-item-has-children.is-mega-open .nav-chevron,
.menu-item-has-children.hover-active .nav-chevron,
.has-mega-menu.is-mega-open .nav-chevron,
.has-mega-menu.hover-active .nav-chevron {
  transform: rotate(180deg);
  color: #38BDF8;
}

/* Modern Glassmorphic Mega-Menu Dropdown Panel */
.mega-menu-dropdown-wrapper,
.menu-item-has-children > .sub-menu,
.menu-item-has-children > .inovifi-mega-menu {
  position: absolute;
  top: calc(100% + var(--inovifi-menu-offset, 8px));
  left: 50%;
  transform: translate3d(-50%, var(--inovifi-menu-offset, 8px), 0);
  width: var(--inovifi-megamenu-width, 680px);
  max-width: 95vw;
  background: var(--inovifi-megamenu-bg, rgba(17, 22, 31, 0.98));
  backdrop-filter: blur(var(--inovifi-megamenu-blur, 20px));
  -webkit-backdrop-filter: blur(var(--inovifi-megamenu-blur, 20px));
  border: 1px solid var(--inovifi-megamenu-border, #1E293B);
  border-top: 2px solid #0284C7;
  border-radius: var(--inovifi-megamenu-radius, 14px);
  box-shadow: 0 24px 50px -12px rgba(0, 0, 0, 0.85), 0 0 30px rgba(2, 132, 199, 0.15);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--inovifi-menu-speed, 260ms) cubic-bezier(0.16, 1, 0.3, 1),
              transform var(--inovifi-menu-speed, 260ms) cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0s linear var(--inovifi-menu-close-delay, 400ms);
  z-index: 1000;
  overflow: visible;
}

/* Invisible CSS Hover Bridge (Eliminates physical gap between navbar and dropdown) */
.mega-menu-dropdown-wrapper::before,
.menu-item-has-children > .sub-menu::before,
.menu-item-has-children > .inovifi-mega-menu::before {
  content: "";
  position: absolute;
  top: -35px;
  left: 0;
  right: 0;
  height: 40px;
  background: transparent;
  pointer-events: auto;
  z-index: 10;
}

/* Open / Active States */
.nav-menu > li:hover > .mega-menu-dropdown-wrapper,
.nav-menu > li:focus-within > .mega-menu-dropdown-wrapper,
.nav-menu > li.is-mega-open > .mega-menu-dropdown-wrapper,
.nav-menu > li.hover-active > .mega-menu-dropdown-wrapper,
.menu-item-has-children:hover > .mega-menu-dropdown-wrapper,
.menu-item-has-children:focus-within > .mega-menu-dropdown-wrapper,
.menu-item-has-children.is-mega-open > .mega-menu-dropdown-wrapper,
.menu-item-has-children.hover-active > .mega-menu-dropdown-wrapper,
.has-mega-menu:hover > .mega-menu-dropdown-wrapper,
.has-mega-menu:focus-within > .mega-menu-dropdown-wrapper,
.has-mega-menu.is-mega-open > .mega-menu-dropdown-wrapper,
.has-mega-menu.hover-active > .mega-menu-dropdown-wrapper,
.menu-item-has-children:hover > .sub-menu,
.menu-item-has-children:focus-within > .sub-menu,
.menu-item-has-children.is-mega-open > .sub-menu,
.menu-item-has-children.hover-active > .sub-menu,
.menu-item-has-children:hover > .inovifi-mega-menu,
.menu-item-has-children:focus-within > .inovifi-mega-menu,
.menu-item-has-children.is-mega-open > .inovifi-mega-menu,
.menu-item-has-children.hover-active > .inovifi-mega-menu {
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translate3d(-50%, 0, 0) !important;
  transition-delay: var(--inovifi-menu-open-delay, 40ms), var(--inovifi-menu-open-delay, 40ms), 0s !important;
}

/* Animation Style Variants */
.site-header.effect-scale .mega-menu-dropdown-wrapper {
  transform: translate3d(-50%, var(--inovifi-menu-offset, 8px), 0) scale(0.96);
}
.site-header.effect-scale .nav-menu > li:hover > .mega-menu-dropdown-wrapper,
.site-header.effect-scale .menu-item-has-children.is-mega-open > .mega-menu-dropdown-wrapper,
.site-header.effect-scale .menu-item-has-children.hover-active > .mega-menu-dropdown-wrapper {
  transform: translate3d(-50%, 0, 0) scale(1) !important;
}

.site-header.effect-fade .mega-menu-dropdown-wrapper {
  transform: translate3d(-50%, 0, 0);
}

.site-header.effect-flip .mega-menu-dropdown-wrapper {
  transform: translate3d(-50%, var(--inovifi-menu-offset, 8px), 0) perspective(800px) rotateX(-8deg);
  transform-origin: top center;
}
.site-header.effect-flip .nav-menu > li:hover > .mega-menu-dropdown-wrapper,
.site-header.effect-flip .menu-item-has-children.is-mega-open > .mega-menu-dropdown-wrapper,
.site-header.effect-flip .menu-item-has-children.hover-active > .mega-menu-dropdown-wrapper {
  transform: translate3d(-50%, 0, 0) perspective(800px) rotateX(0deg) !important;
}

.mega-menu-dropdown-inner {
  padding: 1.25rem 1.25rem 0.85rem;
}

.mega-menu-sub-items {
  display: grid;
  grid-template-columns: repeat(var(--inovifi-megamenu-cols, 2), minmax(0, 1fr));
  gap: 0.65rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.mega-menu-item {
  margin: 0;
}

.mega-item-link {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.8rem 0.95rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.mega-item-link:hover {
  background: var(--inovifi-megamenu-hover-bg, rgba(2, 132, 199, 0.12));
  border-color: rgba(2, 132, 199, 0.35);
  transform: translateY(-1px);
}

.mega-card-icon-pill {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(2, 132, 199, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.2);
  color: #38BDF8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
}

.mega-item-link:hover .mega-card-icon-pill {
  background: #0284C7;
  color: #FFFFFF;
}

.mega-card-text-block {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.mega-card-header-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mega-card-title {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 600;
  color: #F8FAFC;
  line-height: 1.25;
}

.mega-card-badge {
  font-size: 0.62rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.2;
}

.badge-emerald { background: rgba(16, 185, 129, 0.15); color: #10B981; border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-cobalt  { background: rgba(2, 132, 199, 0.15); color: #38BDF8; border: 1px solid rgba(2, 132, 199, 0.3); }
.badge-sky     { background: rgba(56, 189, 248, 0.15); color: #38BDF8; border: 1px solid rgba(56, 189, 248, 0.3); }
.badge-amber   { background: rgba(245, 158, 11, 0.15); color: #F59E0B; border: 1px solid rgba(245, 158, 11, 0.3); }

.mega-card-subtitle {
  font-size: 0.77rem;
  color: #94A3B8;
  line-height: 1.35;
}

.mega-menu-quick-cta {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.82rem;
}

.mega-cta-message {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #CBD5E1;
}

.mega-cta-action-btn {
  color: #38BDF8;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  font-size: 0.82rem;
  transition: color 0.2s;
}

.mega-cta-action-btn:hover {
  color: #FFFFFF;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

.hamburger-btn {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text-primary);
}

/* Mobile Off-Canvas Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 360px;
  height: 100vh;
  background: #0E1218;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 1.25rem;
  z-index: 999;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.mobile-drawer.active {
  right: 0;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.drawer-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.5rem;
}

.drawer-close:hover {
  color: #FFFFFF;
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  margin-bottom: 1rem;
}

.drawer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.drawer-nav > li > a {
  display: block;
  padding: 0.75rem 0.5rem;
  color: #F8FAFC;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.drawer-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.drawer-nav-row > a {
  flex: 1;
  padding: 0.75rem 0.5rem;
  color: #F8FAFC;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
}

.drawer-toggle-sub {
  background: none;
  border: none;
  color: #94A3B8;
  padding: 0.75rem 0.75rem;
  cursor: pointer;
  transition: transform 0.25s ease, color 0.2s;
}

.drawer-has-submenu.open .drawer-toggle-sub {
  transform: rotate(180deg);
  color: #38BDF8;
}

.drawer-subnav {
  list-style: none;
  margin: 0;
  padding: 0.35rem 0 0.5rem 1rem;
  display: none;
  flex-direction: column;
  gap: 0.4rem;
  border-left: 2px solid rgba(2, 132, 199, 0.3);
  margin-left: 0.5rem;
  margin-top: 0.25rem;
}

.drawer-has-submenu.open .drawer-subnav {
  display: flex;
}

.drawer-subnav li a {
  display: block;
  padding: 0.45rem 0.5rem;
  color: #94A3B8;
  font-size: 0.88rem;
  text-decoration: none;
  transition: color 0.2s;
}

.drawer-subnav li a:hover {
  color: #38BDF8;
}

.drawer-sticky-bottom-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.drawer-sticky-bottom-actions .btn {
  width: 100%;
  justify-content: center;
}


.drawer-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.drawer-nav a {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  display: block;
}

.drawer-subnav {
  list-style: none;
  padding-left: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.drawer-subnav a {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 400;
}

.drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-fast);
}

.drawer-backdrop.active {
  opacity: 1;
  visibility: visible;
}

/* ==========================================================================
   6. HERO SECTION & LIVE POS SIMULATOR
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 5.5rem 0 4.5rem;
  background: var(--gradient-hero-glow);
  overflow: hidden;
  border-bottom: var(--border-hairline);
}

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

.hero-content .badge {
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.3rem, 4.5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2.2rem;
  max-width: 620px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-trust-metrics {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-top: 1.8rem;
  border-top: var(--border-hairline);
}

.trust-item {
  display: flex;
  flex-direction: column;
}

.trust-number {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 800;
  color: #FFFFFF;
}

.trust-number span {
  color: var(--accent-cobalt);
}

.trust-label {
  font-size: 0.78rem;
  color: var(--text-dim);
  text-transform: uppercase;
  font-family: var(--font-mono);
}

/* Inovifi Elementor Canvas Wrapper */
.inovifi-main-canvas {
  width: 100%;
  position: relative;
  min-height: 50vh;
}

/* ==========================================================================
   MULTI-TAB SOFTWARE ARCHITECTURE SHOWCASE (HERO 60FPS ENGINE)
   ========================================================================== */
.hero-arch-showcase {
  background: var(--bg-card);
  border: var(--border-hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-elevated);
  position: relative;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.hero-arch-showcase:hover {
  border-color: rgba(2, 132, 199, 0.5);
  box-shadow: var(--shadow-elevated), var(--shadow-cobalt-glow);
}

/* Tab Navigation Header */
.arch-tabs-nav {
  display: flex;
  background: #0E1218;
  border-bottom: var(--border-hairline);
  overflow-x: auto;
  scrollbar-width: none;
}

.arch-tabs-nav::-webkit-scrollbar {
  display: none;
}

.arch-tab-btn {
  flex: 1;
  min-width: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 0.9rem;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.arch-tab-btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  transition: transform var(--transition-fast);
}

.arch-tab-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.02);
}

.arch-tab-btn.active {
  color: #FFFFFF;
  background: rgba(2, 132, 199, 0.08);
  border-bottom-color: var(--accent-cobalt);
}

.arch-tab-btn.active svg {
  transform: scale(1.15);
  stroke: var(--accent-sky);
}

/* Console Header Bar */
.arch-console-header {
  background: #0A0D12;
  padding: 0.7rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: var(--border-hairline);
}

.arch-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.arch-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.arch-dots .dot-r { background: #EF4444; }
.arch-dots .dot-y { background: #F59E0B; }
.arch-dots .dot-g { background: #10B981; }

.arch-session-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
}

.arch-live-status {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-emerald);
  font-weight: 600;
}

/* Tab Panes */
.arch-panes-wrap {
  position: relative;
  min-height: 380px;
}

.arch-pane {
  display: none;
  padding: 1.35rem;
  animation: fadeInPane 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.arch-pane.active {
  display: block;
}

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

/* Code & Telemetry Window */
.arch-code-window {
  background: #0A0D12;
  border: 1px solid #1E293B;
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.7;
  color: var(--text-secondary);
  overflow-x: auto;
  position: relative;
}

.arch-code-window .tok-kw { color: #38BDF8; font-weight: 600; }
.arch-code-window .tok-fn { color: #34D399; font-weight: 600; }
.arch-code-window .tok-str { color: #FBBF24; }
.arch-code-window .tok-num { color: #F472B6; }
.arch-code-window .tok-comment { color: #64748B; font-style: italic; }

/* Interactive Live Data Pipeline Visual */
.tech-pipeline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 1.15rem 0 1rem;
  padding: 0.85rem 1rem;
  background: rgba(2, 132, 199, 0.05);
  border: 1px dashed rgba(2, 132, 199, 0.35);
  border-radius: var(--radius-sm);
  position: relative;
  overflow: hidden;
}

.pipeline-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  z-index: 2;
  position: relative;
}

.pipeline-node-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: #11161F;
  border: 1px solid rgba(2, 132, 199, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-sky);
  box-shadow: 0 0 10px rgba(2, 132, 199, 0.2);
}

.pipeline-node-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.pipeline-track {
  flex: 1;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  position: relative;
  margin: 0 0.5rem;
  overflow: hidden;
}

.pipeline-pulse {
  position: absolute;
  top: -1px;
  left: 0;
  width: 28px;
  height: 4px;
  background: linear-gradient(90deg, transparent, #38BDF8, #10B981, transparent);
  border-radius: 4px;
  box-shadow: 0 0 8px #38BDF8;
  animation: pipelineFlow 2.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes pipelineFlow {
  0% {
    left: -20%;
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    left: 105%;
    opacity: 0;
  }
}

/* Telemetry Grid inside Pane */
.arch-telemetry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1rem;
}

.arch-telemetry-item {
  background: rgba(17, 22, 31, 0.8);
  border: var(--border-hairline);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.8rem;
  display: flex;
  flex-direction: column;
}

.telemetry-val {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: #FFFFFF;
}

.telemetry-val.accent-green {
  color: var(--accent-emerald);
}

.telemetry-val.accent-blue {
  color: var(--accent-sky);
}

.telemetry-lbl {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Terminal Simulator Card (Silicon & Microchip Circuit Tech Aesthetic) */
.terminal-card {
  background: var(--bg-secondary, #0B0F19);
  border: 1px solid rgba(82, 0, 255, 0.35);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.85), 0 0 30px rgba(82, 0, 255, 0.15);
}

.terminal-header {
  background: var(--bg-primary, #06080E);
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(82, 0, 255, 0.25);
}

.terminal-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.terminal-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.dot-red { background: #EF4444; }
.dot-yellow { background: #F59E0B; }
.dot-green { background: var(--brand-volt, #C5FF00); box-shadow: 0 0 8px rgba(197, 255, 0, 0.6); }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}

.terminal-status {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--brand-volt, #C5FF00);
}

.terminal-body {
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.terminal-scan-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(82, 0, 255, 0.12);
  border: 1px dashed rgba(197, 255, 0, 0.45);
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
  color: var(--brand-volt, #C5FF00);
}

.terminal-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.25rem;
}

.terminal-table th {
  text-align: left;
  color: var(--text-dim);
  font-size: 0.72rem;
  padding-bottom: 0.5rem;
  border-bottom: var(--border-hairline);
}

.terminal-table td {
  padding: 0.6rem 0;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.terminal-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0 0.5rem;
  border-top: var(--border-hairline);
  font-size: 1.05rem;
  font-weight: 700;
  color: #FFFFFF;
}

.terminal-total-price {
  color: var(--brand-volt, #C5FF00);
  font-family: var(--font-heading);
  font-size: 1.3rem;
  text-shadow: 0 0 12px rgba(197, 255, 0, 0.35);
}

.terminal-offline-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(197, 255, 0, 0.1);
  border: 1px solid rgba(197, 255, 0, 0.4);
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--brand-volt, #C5FF00);
  font-size: 0.75rem;
}

/* ==========================================================================
   7. BENTO GRIDS & SERVICE CARDS
   ========================================================================== */
.bento-section {
  padding: 5rem 0;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.bento-item {
  background: var(--bg-card);
  border: var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.bento-item:hover {
  border-color: var(--accent-cobalt);
  transform: translateY(-3px);
}

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

.bento-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(2, 132, 199, 0.1);
  border: var(--border-cobalt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-sky);
  margin-bottom: 1.25rem;
}

.bento-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
}

.bento-item h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.bento-item p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.bento-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.bento-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  background: #151C27;
  border: var(--border-hairline);
  border-radius: var(--radius-xs);
  color: var(--text-dim);
}

/* ==========================================================================
   8. INDUSTRY TABS & POS SWITCHER
   ========================================================================== */
.pos-tabs-section {
  padding: 5rem 0;
  background: #0E1218;
  border-top: var(--border-hairline);
  border-bottom: var(--border-hairline);
}

.pos-tab-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.pos-tab-btn {
  background: #11161F;
  border: var(--border-hairline);
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
}

.pos-tab-btn:hover {
  background: #151C27;
  color: #FFFFFF;
  border-color: var(--accent-cobalt);
}

.pos-tab-btn.active {
  background: var(--accent-cobalt);
  color: #FFFFFF;
  border-color: var(--accent-cobalt);
}

.pos-tab-pane {
  display: none;
}

.pos-tab-pane.active {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.pos-pane-content h3 {
  font-size: 1.85rem;
  margin-bottom: 1rem;
}

.pos-pane-content p {
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.pos-feature-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.pos-feature-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.pos-feature-checklist svg {
  width: 18px;
  height: 18px;
  color: var(--accent-emerald);
  flex-shrink: 0;
  margin-top: 2px;
}

.pos-pane-visual {
  background: #11161F;
  border: var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.receipt-preview {
  background: #0E1218;
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  border: 1px dashed #334155;
}

.receipt-header {
  text-align: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px dashed #334155;
}

/* ==========================================================================
   9. COMPARISON MATRIX & PRICING
   ========================================================================== */
.comparison-section {
  padding: 5rem 0;
}

.comparison-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: var(--border-hairline);
  background: var(--bg-card);
}

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

.comparison-table th, .comparison-table td {
  padding: 1.25rem 1.5rem;
  border-bottom: var(--border-hairline);
}

.comparison-table th {
  background: #0E1218;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--text-primary);
}

.comparison-table th.col-inovifi {
  background: rgba(2, 132, 199, 0.12);
  color: var(--accent-sky);
  border-top: 2px solid var(--accent-cobalt);
}

.comparison-table td.col-inovifi {
  background: rgba(2, 132, 199, 0.04);
  font-weight: 600;
  color: #FFFFFF;
}

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

.check-yes {
  color: var(--accent-emerald);
  font-weight: 700;
}

.check-no {
  color: var(--accent-rose);
  font-weight: 500;
}

/* Pricing Grid */
.pricing-section {
  padding: 5rem 0;
}

.pricing-calculator-card {
  background: var(--bg-card);
  border: var(--border-cobalt);
  border-radius: var(--radius-lg);
  padding: 2.8rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  box-shadow: var(--shadow-card);
}

.calc-control-group {
  margin-bottom: 2rem;
}

.calc-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.calc-val-display {
  font-family: var(--font-mono);
  color: var(--accent-sky);
  font-size: 1.1rem;
}

.calc-range {
  width: 100%;
  accent-color: var(--accent-cobalt);
  height: 6px;
  background: #1E293B;
  border-radius: 3px;
  outline: none;
}

.calc-result-panel {
  background: #0E1218;
  border: var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
}

.result-metric-box {
  margin-bottom: 1.5rem;
}

.result-label {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-transform: uppercase;
  font-family: var(--font-mono);
  margin-bottom: 0.35rem;
}

.result-value {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent-emerald);
  letter-spacing: -0.02em;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
}

.pricing-card {
  background: var(--bg-card);
  border: var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition-smooth);
}

.pricing-card.popular {
  border-color: var(--accent-cobalt);
}

.pricing-card.popular .popular-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-cobalt);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.2rem 0.85rem;
  border-radius: var(--radius-xs);
}

.pricing-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.pricing-price {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: #FFFFFF;
  margin: 1.25rem 0 1.5rem;
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.pricing-price small {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-dim);
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.pricing-features svg {
  width: 16px;
  height: 16px;
  color: var(--accent-emerald);
  flex-shrink: 0;
}

/* ==========================================================================
   10. CONTEXTUAL INTERNAL LINKING SILO
   ========================================================================== */
.related-solutions-section {
  padding: 4.5rem 0;
  background: #0E1218;
  border-top: var(--border-hairline);
}

.related-solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.related-solution-card {
  background: #11161F;
  border: var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition-fast);
  text-decoration: none;
}

.related-solution-card:hover {
  border-color: var(--accent-cobalt);
  transform: translateY(-2px);
}

.related-solution-card h4 {
  color: #FFFFFF;
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.related-solution-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.related-card-link {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-sky);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ==========================================================================
   11. ACCORDION FAQ
   ========================================================================== */
.faq-section {
  padding: 5rem 0;
  position: relative;
}

.faq-accordion-wrapper,
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  border-radius: var(--radius-lg, 12px);
  overflow: hidden;
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

.faq-item:hover {
  border-color: rgba(2, 132, 199, 0.4);
  background: rgba(17, 22, 31, 0.85);
}

.faq-item.active {
  border-color: var(--accent-cobalt);
  background: rgba(17, 22, 31, 0.95);
  box-shadow: 0 8px 32px -8px rgba(2, 132, 199, 0.25), 0 0 0 1px rgba(2, 132, 199, 0.2);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.35rem 1.75rem;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  user-select: none;
  transition: color 0.2s ease;
}

.faq-question:hover {
  color: var(--accent-sky);
}

.faq-item.active .faq-question {
  color: #ffffff;
}

.faq-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-sky);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1;
  flex-shrink: 0;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.faq-icon svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item:hover .faq-icon {
  border-color: rgba(2, 132, 199, 0.5);
  background: rgba(2, 132, 199, 0.15);
  color: #ffffff;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  background: var(--accent-cobalt);
  border-color: var(--accent-sky);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(2, 132, 199, 0.4);
}

/* Fluid Animated Opening of Answer using CSS Grid Transitions */
.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.38s cubic-bezier(0.16, 1, 0.3, 1), padding 0.38s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0 1.75rem;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

.faq-answer > * {
  min-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-answer p {
  margin: 0;
  padding: 0.25rem 0 0;
}

.faq-item.active .faq-answer {
  grid-template-rows: 1fr;
  padding-top: 0.15rem;
  padding-bottom: 1.5rem;
}

.faq-item.active .faq-answer > * {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.05s;
}

/* ==========================================================================
   12. CONVERSION CTA BANNER
   ========================================================================== */
.cta-banner-section {
  padding: 5rem 0;
}

.cta-banner {
  background: #11161F;
  border: var(--border-cobalt);
  border-radius: var(--radius-lg);
  padding: 3.5rem 3rem;
  text-align: center;
}

.cta-banner h2 {
  font-size: clamp(2rem, 3.5vw, 2.7rem);
  margin-bottom: 1.25rem;
}

.cta-banner p {
  font-size: 1.15rem;
  max-width: 680px;
  margin: 0 auto 2.2rem;
}

.cta-banner-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   13. 3-TIER ENTERPRISE CONVERSION FOOTER & MULTI-OFFICE ARCHITECTURE
   ========================================================================== */
.site-footer.inovifi-enterprise-footer {
  background: #07090D;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 5rem 0 2rem;
  color: #94A3B8;
  font-size: 0.9rem;
  position: relative;
}

/* Tier 1: Pre-Footer High-Conversion Split Card */
.pre-footer-split-card {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  align-items: center;
  gap: 2.5rem;
  padding: 3rem 3.5rem;
  background: linear-gradient(135deg, rgba(17, 22, 31, 0.95), rgba(10, 13, 18, 0.95));
  border: 1px solid rgba(2, 132, 199, 0.25);
  border-radius: 16px;
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.7), 0 0 30px rgba(2, 132, 199, 0.12);
  margin-bottom: 4.5rem;
  position: relative;
  overflow: hidden;
}

.pre-footer-split-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #0284C7, #38BDF8, transparent);
}

.pre-footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: #38BDF8;
  background: rgba(2, 132, 199, 0.1);
  padding: 3px 10px;
  border-radius: 4px;
  border: 1px solid rgba(2, 132, 199, 0.25);
  letter-spacing: 0.05em;
  margin-bottom: 0.85rem;
}

.pre-footer-title {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  color: #FFFFFF;
  line-height: 1.25;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.pre-footer-subtitle {
  color: #94A3B8;
  font-size: 1rem;
  line-height: 1.65;
  margin: 0;
}

.pre-footer-actions {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  justify-content: center;
}

.pre-footer-actions .btn {
  width: 100%;
  justify-content: center;
  text-align: center;
}

/* Tier 2: 5-Column Main Enterprise Footer */
.footer-five-col-grid {
  display: grid;
  grid-template-columns: 1.4fr 1.1fr 1.1fr 1fr 1fr;
  gap: 2.2rem;
  margin-bottom: 3.5rem;
}

.footer-col-brand .footer-brand-bio {
  font-size: 0.88rem;
  line-height: 1.6;
  color: #94A3B8;
  margin: 0 0 1.25rem;
}

.footer-live-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: #10B981;
  background: rgba(16, 185, 129, 0.08);
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid rgba(16, 185, 129, 0.2);
  margin-bottom: 1.25rem;
}

.footer-social-links {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.footer-social-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94A3B8;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.footer-social-btn:hover {
  background: #0284C7;
  color: #FFFFFF;
  border-color: #38BDF8;
}

.footer-col-title {
  font-size: 0.92rem;
  color: #FFFFFF;
  margin-bottom: 1.25rem;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.02em;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 24px;
  height: 2px;
  background: #0284C7;
  border-radius: 1px;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: #94A3B8;
  font-size: 0.88rem;
  text-decoration: none;
  transition: color 0.2s, padding-left 0.2s;
  display: inline-block;
}

.footer-links a:hover {
  color: #FFFFFF;
  padding-left: 3px;
}

.footer-office-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.84rem;
}

.office-location-text {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  color: #CBD5E1;
  line-height: 1.45;
  margin: 0;
}

.office-location-text svg {
  color: #38BDF8;
  flex-shrink: 0;
  margin-top: 3px;
}

.office-contact-row {
  margin: 0;
  color: #94A3B8;
}

.office-contact-row a {
  color: #38BDF8;
  text-decoration: none;
  transition: color 0.2s;
}

.office-contact-row a:hover {
  color: #FFFFFF;
}

.office-hours-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: #CBD5E1;
  margin-top: 4px;
}

/* Tier 3: Sub-Footer Legal & Back-to-Top Bar */
.footer-tier3-subbar {
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.84rem;
}

.footer-copyright {
  color: #64748B;
}

.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.footer-legal-links a {
  color: #64748B;
  text-decoration: none;
  transition: color 0.2s;
}

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

.back-to-top-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: #94A3B8;
  padding: 6px 14px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.back-to-top-btn:hover {
  background: rgba(2, 132, 199, 0.15);
  color: #FFFFFF;
  border-color: #0284C7;
}

/* Responsive Footer Breakpoints */
@media (max-width: 1100px) {
  .footer-five-col-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
  .footer-col-brand {
    grid-column: span 3;
  }
  .pre-footer-split-card {
    grid-template-columns: 1fr;
    padding: 2.25rem;
  }
}

@media (max-width: 768px) {
  .footer-five-col-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-col-brand {
    grid-column: span 1;
  }
  .footer-tier3-subbar {
    flex-direction: column;
    align-items: flex-start;
  }
  .pre-footer-split-card {
    padding: 1.75rem 1.25rem;
  }
  .topbar-right {
    display: none;
  }
}


/* ==========================================================================
   14. FLOATING ACTION WIDGETS
   ========================================================================== */
.floating-whatsapp {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 990;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #15803D;
  color: #FFFFFF;
  padding: 0.75rem 1.35rem;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.88rem;
  box-shadow: 0 4px 15px rgba(21, 128, 61, 0.4);
  text-decoration: none;
}

.floating-whatsapp:hover {
  background: #166534;
  color: #FFFFFF;
  transform: translateY(-2px);
}

.floating-whatsapp svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #0E1218;
  border-top: var(--border-hairline);
  padding: 0.65rem 1rem;
  z-index: 989;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.mobile-bottom-bar .btn {
  flex: 1;
  padding: 0.65rem 0.5rem;
  font-size: 0.82rem;
}

/* ==========================================================================
   15. MODAL DIALOGS
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
  padding: 1.5rem;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: #11161F;
  border: var(--border-hairline);
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  padding: 2.5rem;
  position: relative;
  box-shadow: var(--shadow-elevated);
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 0.4rem;
}

.modal-close:hover {
  color: #FFFFFF;
}

.modal-header h3 {
  font-size: 1.55rem;
  margin-bottom: 0.5rem;
}

.modal-header p {
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.82rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
}

.form-input {
  background: #0E1218;
  border: var(--border-hairline);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-fast);
}

.form-input:focus {
  border-color: var(--accent-cobalt);
}

.form-input.has-error,
.form-input.is-invalid {
  border-color: #EF4444 !important;
  box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.4);
}

.inovifi-field-error {
  color: #EF4444;
  font-size: 0.8rem;
  margin-top: 5px;
  font-weight: 500;
}

.inovifi-form-alert.is-success {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid #10B981;
  color: #10B981;
}

.inovifi-form-alert.is-error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid #EF4444;
  color: #EF4444;
}

@keyframes inovifiSpin {
  to { transform: rotate(360deg); }
}

.btn-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(0, 0, 0, 0.25);
  border-top-color: #000000;
  border-radius: 50%;
  animation: inovifiSpin 0.7s linear infinite;
}

/* ==========================================================================
   16. INNER TEMPLATES & PAGE HEROS
   ========================================================================== */
.page-hero {
  padding: 4.5rem 0 3.5rem;
  text-align: center;
  background: var(--gradient-hero-glow);
  position: relative;
  border-bottom: var(--border-hairline);
}

.page-hero h1 {
  font-size: clamp(2.2rem, 3.8vw, 3.2rem);
  margin-bottom: 1rem;
}

.page-hero p {
  font-size: 1.15rem;
  max-width: 740px;
  margin: 0 auto;
}

.content-section {
  padding: 4rem 0;
}

.two-col-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  margin-bottom: 4rem;
}

.spec-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.spec-list li {
  display: flex;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.spec-list svg {
  width: 18px;
  height: 18px;
  color: var(--accent-emerald);
  flex-shrink: 0;
  margin-top: 2px;
}

/* 404 Error Page */
.error-404-container {
  padding: 6rem 0;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.error-404-code {
  font-family: var(--font-mono);
  font-size: 6rem;
  font-weight: 800;
  color: var(--accent-cobalt);
  line-height: 1;
  margin-bottom: 1rem;
}

.search-form-404 {
  display: flex;
  gap: 0.5rem;
  max-width: 480px;
  margin: 2rem auto;
}

.search-form-404 input {
  flex: 1;
}

/* ==========================================================================
   17. COMPREHENSIVE RESPONSIVE HARDENING SYSTEM
   Breakpoints: 1200px | 1024px | 991px | 768px | 575px | 375px
   ========================================================================== */

/* ---- 1200px: Large Tablet / Small Laptop ---- */
@media (max-width: 1200px) {
  .container {
    padding-left: 1.75rem;
    padding-right: 1.75rem;
  }

  .footer-five-col-grid {
    grid-template-columns: 1.4fr repeat(2, 1fr);
    gap: 2rem;
  }

  .footer-col-brand {
    grid-column: span 3;
  }

  .hero-grid {
    gap: 2.5rem;
  }
}

/* ---- 1024px: Tablet Landscape / Small Laptop ---- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-arch-showcase {
    max-width: 640px;
    margin: 0 auto;
  }

  .bento-grid,
  .related-solutions-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bento-span-2 {
    grid-column: span 1;
  }

  .pricing-calculator-card {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .two-col-showcase {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  /* Topbar: hide location badge on smaller laptops */
  .topbar-locations-badge {
    display: none;
  }

  .arch-telemetry-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---- 991px: Tablet Portrait ---- */
@media (max-width: 991px) {
  .section-light,
  .bento-section,
  .pipeline-section,
  .pricing-section,
  .testimonials-section,
  .case-studies-section,
  .leadership-section,
  .contact-hub-section,
  .cta-silo-section,
  .comparison-section,
  .related-solutions-section,
  .faq-section,
  .cta-banner-section,
  .pos-tabs-section,
  .hero-section {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  .section-header {
    margin-bottom: 2.5rem;
  }

  .section-header h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  }

  /* Header actions */
  .header-actions .btn-lg {
    padding: 0.75rem 1.2rem;
    font-size: 0.9rem;
  }

  /* Hero */
  .hero-subtitle {
    font-size: 1rem;
  }

  /* Bento card col overrides */
  .bento-card.col-4,
  .bento-card.col-6,
  .bento-card.col-8 {
    grid-column: span 12 !important;
  }

  .pipeline-steps-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .pricing-grid,
  .testimonials-grid,
  .case-studies-grid,
  .silo-cards-grid {
    grid-template-columns: 1fr !important;
  }

  .page-banner-grid,
  .leadership-grid,
  .contact-hub-grid {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
  }

  .pre-footer-split-card {
    grid-template-columns: 1fr;
    padding: 2.25rem;
  }

  .footer-five-col-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .footer-col-brand {
    grid-column: span 2;
  }

  .trust-grid-cols-4,
  .trust-grid-cols-6 {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* ---- 768px: Mobile Landscape / Tablet ---- */
@media (max-width: 768px) {
  /* Navigation */
  .main-nav {
    display: none;
  }

  .hamburger-btn {
    display: block;
    /* Ensure minimum 44x44 touch target */
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .top-announcement {
    display: none;
  }

  /* Container */
  .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  /* Header */
  .header-inner {
    height: 64px;
    gap: 0.75rem;
  }

  /* Hero */
  .hero-section {
    padding: 3.5rem 0 2.5rem;
  }

  .hero-title {
    font-size: clamp(1.9rem, 6vw, 2.8rem);
  }

  .hero-ctas {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .hero-ctas .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-trust-metrics {
    flex-wrap: wrap;
    gap: 1.25rem;
  }

  /* Grids */
  .bento-grid,
  .related-solutions-grid {
    grid-template-columns: 1fr;
  }

  .pos-tab-pane.active {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .pipeline-steps-grid {
    grid-template-columns: 1fr !important;
  }

  /* Footer */
  .footer-five-col-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-col-brand {
    grid-column: span 1;
  }

  .footer-tier3-subbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .footer-legal-links {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .pre-footer-split-card {
    padding: 1.75rem 1.25rem;
  }

  .site-footer {
    padding-bottom: 7rem; /* Space for mobile bottom bar */
  }

  /* Floating elements */
  .floating-whatsapp {
    display: none;
  }

  .mobile-bottom-bar {
    display: flex;
  }

  /* CTA */
  .cta-banner {
    padding: 2.5rem 1.5rem;
  }

  .cta-banner-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-banner-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  /* Topbar right */
  .topbar-right {
    display: none;
  }

  /* Drawer touch targets */
  .drawer-nav > li > a,
  .drawer-nav-row > a {
    min-height: 48px;
    display: flex;
    align-items: center;
  }

  .drawer-toggle-sub {
    min-width: 48px;
    min-height: 48px;
  }

  /* FAQ */
  .faq-question {
    padding: 1.1rem 1.25rem;
    font-size: 1rem;
  }

  /* Pricing calculator */
  .pricing-calculator-card {
    padding: 1.5rem;
  }

  /* Terminal */
  .terminal-body {
    padding: 1rem;
    font-size: 0.78rem;
  }

  /* Tables */
  .comparison-table th,
  .comparison-table td {
    padding: 0.85rem 1rem;
    font-size: 0.88rem;
  }
}

/* ---- 575px: Mobile Portrait ---- */
@media (max-width: 575px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .page-banner-title {
    font-size: clamp(1.7rem, 7vw, 2.2rem) !important;
  }

  .hero-title {
    font-size: clamp(1.75rem, 7.5vw, 2.5rem);
    letter-spacing: -0.025em;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  /* Buttons */
  .btn {
    padding: 0.75rem 1.35rem;
    font-size: 0.9rem;
  }

  .btn-lg {
    padding: 0.85rem 1.5rem;
    font-size: 0.95rem;
  }

  /* Trust metrics: 2 cols */
  .trust-grid-cols-2,
  .trust-grid-cols-3,
  .trust-grid-cols-4,
  .trust-grid-cols-6 {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .hero-trust-metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  /* Section padding */
  .section-light,
  .bento-section,
  .pipeline-section,
  .pricing-section,
  .testimonials-section,
  .case-studies-section,
  .faq-section,
  .cta-banner-section,
  .pos-tabs-section {
    padding-top: 2.75rem;
    padding-bottom: 2.75rem;
  }

  /* Section header */
  .section-header {
    margin-bottom: 2rem;
  }

  .section-header h2 {
    font-size: clamp(1.6rem, 6vw, 2.1rem);
  }

  .section-header p {
    font-size: 0.95rem;
  }

  /* Bento items */
  .bento-item,
  .bento-card {
    padding: 1.5rem;
  }

  /* Mega menu - hidden, use drawer */
  .mega-menu-dropdown-wrapper,
  .menu-item-has-children > .sub-menu,
  .menu-item-has-children > .inovifi-mega-menu {
    display: none !important;
  }

  /* Arch tabs */
  .arch-tabs-nav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .arch-panes-wrap {
    min-height: 280px;
  }

  .arch-telemetry-grid {
    grid-template-columns: 1fr !important;
  }

  /* Footer */
  .pre-footer-split-card {
    padding: 1.5rem 1rem;
  }

  .footer-five-col-grid {
    gap: 1.5rem;
  }

  /* Modal */
  .modal-content {
    padding: 1.75rem 1.25rem;
  }

  /* POS tabs */
  .pos-tab-nav {
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    padding-bottom: 0.5rem;
  }

  .pos-tab-btn {
    white-space: nowrap;
    flex-shrink: 0;
  }
}

/* ---- 375px: Small Mobile (iPhone SE, Galaxy S8) ---- */
@media (max-width: 375px) {
  .container {
    padding-left: 0.875rem;
    padding-right: 0.875rem;
  }

  .hero-title {
    font-size: clamp(1.6rem, 8vw, 2rem);
  }

  .header-inner {
    height: 58px;
  }

  .brand-text-tagline {
    display: none; /* Prevent brand block from crowding on tiny screens */
  }

  .trust-grid-cols-2,
  .trust-grid-cols-3,
  .trust-grid-cols-4,
  .trust-grid-cols-6 {
    grid-template-columns: 1fr !important;
  }

  .hero-trust-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .btn {
    padding: 0.7rem 1.15rem;
    font-size: 0.875rem;
  }

  .mobile-bottom-bar .btn {
    font-size: 0.78rem;
    padding: 0.55rem 0.5rem;
  }

  .footer-social-btn {
    width: 38px;
    height: 38px;
  }

  /* 404 */
  .error-404-code {
    font-size: 4.5rem;
  }
}

/* ==========================================================================
   18. HARDWARE-ACCELERATED 60FPS TECH MOTION ENGINE
   ========================================================================== */

/* A. Scroll-Triggered Staggered Reveals */
.inovifi-reveal {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
  backface-visibility: hidden;
}

.inovifi-reveal.is-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.reveal-delay-100 { transition-delay: 100ms; }
.reveal-delay-200 { transition-delay: 200ms; }
.reveal-delay-300 { transition-delay: 300ms; }
.reveal-delay-400 { transition-delay: 400ms; }
.reveal-delay-500 { transition-delay: 500ms; }

/* B. Magnetic & 3D Tilt Hover Cards with Radial Spotlight */
.magnetic-card,
.glass-glow-card {
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
  will-change: transform;
  transform-style: preserve-3d;
}

.magnetic-card::before,
.glass-glow-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    450px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(2, 132, 199, 0.15),
    transparent 65%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.magnetic-card:hover::before,
.glass-glow-card:hover::before {
  opacity: 1;
}

.magnetic-card:hover,
.glass-glow-card:hover {
  border-color: rgba(2, 132, 199, 0.45);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(2, 132, 199, 0.2);
}

/* C. Live Metric Counter Polish */
.trust-number {
  display: inline-block;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

/* D. Micro-Interactions & Shimmer Accents */
@keyframes techShimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}

.badge-shimmer {
  position: relative;
  overflow: hidden;
}

.badge-shimmer::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  animation: techShimmer 3.5s infinite;
}

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

  .inovifi-reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .pipeline-pulse {
    display: none !important;
  }
}
