/* ==========================================================================
   HODE ENTERPRISE — UNIVERSAL MOBILE & TABLET RESPONSIVE ENGINE
   Strict Zero-Horizontal-Scroll, Touch-Friendly, High-Contrast Apple Aesthetic
   Valid for all pages: Home, Features, Integration, Pricing, Contact,
   Partners, Early-Access, Copilot, About, Blog, Changelog, Legal & 404.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. VIEWPORT & CONTAINER ALIGNMENT PRESERVATION (DESKTOP & MOBILE SEPARATION)
   -------------------------------------------------------------------------- */
@media screen and (min-width: 992px) {
  /* On desktop: allow natural Webflow document flow, sticky cards & scroll animations */
  html, body {
    overflow-x: visible !important;
    position: relative;
    -webkit-font-smoothing: antialiased !important;
  }

  .sections {
    overflow: visible !important;
  }

  /* Restore and enforce luxury centered desktop widths (Image 1, 2, 3 alignment fix) */
  .container,
  .w-container {
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Image 1: "Connect your business systems" bento card on desktop */
  .how-it-work-card-wrapper {
    max-width: 1140px !important;
    margin: 0 auto !important;
    padding-bottom: 120px !important;
    position: relative !important;
    overflow: visible !important;
  }

  .how-it-work-card {
    max-width: 1140px !important;
    margin: 0 auto 70px !important;
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 120px !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 24px !important;
    box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.06), 0 20px 40px -15px rgba(0, 130, 251, 0.05) !important;
    display: grid !important;
    grid-template-columns: 1fr 1.28fr !important;
    gap: 40px !important;
    align-items: center !important;
    padding: 38px 44px !important;
    box-sizing: border-box !important;
    transform-origin: center top !important;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, filter 0.25s ease !important;
  }

  .how-it-work-content-wrapper {
    max-width: 440px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
  }

  .hode-studio-window-wrapper {
    width: 100% !important;
    max-width: 580px !important;
    justify-self: end !important;
  }

  /* Image 2: "Comparing Enterprise Business Copilots: Why Choose HODE" on desktop */
  .copilot-comparison-wrapper {
    max-width: 1080px !important;
    width: 100% !important;
    margin: 40px auto 0 !important;
    background: #ffffff !important;
    border-radius: 20px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 12px 36px -10px rgba(15, 23, 42, 0.08) !important;
    overflow: hidden !important;
  }

  .copilot-comparison-table {
    width: 100% !important;
    table-layout: fixed !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
  }

  /* Image 3: "Intelligence that works quietly in the background" bento grid on desktop */
  .features-opt2-grid {
    display: grid !important;
    grid-template-columns: 2fr 1fr 1fr !important;
    gap: 24px !important;
    max-width: 1140px !important;
    margin: 0 auto !important;
    width: 100% !important;
    box-sizing: border-box !important;
    align-items: stretch !important;
  }

  .features-bento-hero {
    grid-column: auto !important;
    min-height: 480px !important;
    border-radius: 24px !important;
    border: 1px solid #e2e8f0 !important;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
    box-shadow: 0 8px 24px -6px rgba(15, 23, 42, 0.05) !important;
    padding: 34px 32px 30px !important;
  }

  .features-bento-card {
    min-height: 480px !important;
    border-radius: 24px !important;
    border: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
    box-shadow: 0 8px 24px -6px rgba(15, 23, 42, 0.05) !important;
    padding: 30px 26px 26px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
  }

  /* Hide mobile-only menu CTA on desktop */
  .hode-mobile-menu-cta {
    display: none !important;
  }
}

/* Mobile & Tablet Overrides (< 992px) */
@media screen and (max-width: 991px) {
  html, body {
    overflow-x: hidden !important;
    max-width: 100% !important;
    width: 100% !important;
    position: relative;
    -webkit-text-size-adjust: 100% !important;
    -webkit-font-smoothing: antialiased !important;
  }

  .sections,
  .container,
  .w-container,
  .w-layout-blockcontainer {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* Ensure images don't overflow while never altering canvas/svg positioning */
img, video, iframe {
  max-width: 100% !important;
  height: auto;
  box-sizing: border-box !important;
}

/* Canvas Simulation & Liquid Aura: Preserve exact fullscreen dimensions */
.hero-liquid-aura {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  overflow: hidden !important;
  pointer-events: none !important;
  z-index: 1 !important;
}

.hero-aura-canvas {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  pointer-events: none !important;
  z-index: 1 !important;
}

/* Studio Cables SVG Animation in Connect Systems Card */
.hode-studio-cables {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  pointer-events: none !important;
  z-index: 1 !important;
}

.studio-track {
  stroke: #e2e8f0 !important;
  stroke-width: 1.5 !important;
  stroke-dasharray: 4 4 !important;
  fill: none !important;
}

.studio-pulse {
  stroke-width: 2.5 !important;
  stroke-linecap: round !important;
  stroke-dasharray: 20 120 !important;
  fill: none !important;
  filter: drop-shadow(0 0 4px rgba(0, 130, 251, 0.7)) !important;
}

.pulse-l1 { stroke: url(#beamGradLeft) !important; animation: flowL1 2.3s infinite cubic-bezier(0.4, 0, 0.2, 1) !important; }
.pulse-l2 { stroke: url(#beamGradLeft) !important; animation: flowL2 2.0s infinite cubic-bezier(0.4, 0, 0.2, 1) 0.3s !important; }
.pulse-l3 { stroke: url(#beamGradLeft) !important; animation: flowL3 2.5s infinite cubic-bezier(0.4, 0, 0.2, 1) 0.6s !important; }

.pulse-r1 { stroke: url(#beamGradRight) !important; animation: flowR1 2.2s infinite cubic-bezier(0.4, 0, 0.2, 1) 0.2s !important; }
.pulse-r2 { stroke: url(#beamGradRight) !important; animation: flowR2 2.4s infinite cubic-bezier(0.4, 0, 0.2, 1) 0.5s !important; }
.pulse-r3 { stroke: url(#beamGradRight) !important; animation: flowR3 2.1s infinite cubic-bezier(0.4, 0, 0.2, 1) 0.8s !important; }

@keyframes flowL1 {
  0% { stroke-dashoffset: 140; }
  100% { stroke-dashoffset: 0; }
}
@keyframes flowL2 {
  0% { stroke-dashoffset: 140; }
  100% { stroke-dashoffset: 0; }
}
@keyframes flowL3 {
  0% { stroke-dashoffset: 140; }
  100% { stroke-dashoffset: 0; }
}
@keyframes flowR1 {
  0% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 140; }
}
@keyframes flowR2 {
  0% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 140; }
}
@keyframes flowR3 {
  0% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 140; }
}

/* iOS Safari: Prevent automatic zoom on input focus when font-size < 16px */
@media screen and (max-width: 768px) {
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  input[type="password"],
  input[type="search"],
  select,
  textarea {
    font-size: 16px !important;
  }
}

/* Smooth touch tap highlights */
* {
  -webkit-tap-highlight-color: transparent;
}

/* --------------------------------------------------------------------------
   2. LUXURY APPLE-GRADE NAVIGATION BAR (TABLET & MOBILE BREAKPOINTS)
   -------------------------------------------------------------------------- */
@media screen and (max-width: 991px) {
  /* Header Positioning */
  .header-main {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 99999 !important;
    padding: 10px 0 !important;
    background: transparent !important;
  }

  .header-container {
    padding-left: 16px !important;
    padding-right: 16px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .navbar-black {
    padding: 0 !important;
    background: transparent !important;
    position: relative !important;
  }

  .header-content {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    gap: 8px !important;
  }

  /* Logo Sizing */
  .brand-logo-main {
    display: inline-flex !important;
    align-items: center !important;
  }
  .brand-logo-main .project-logo {
    height: 28px !important;
    width: auto !important;
    max-height: 28px !important;
  }

  /* Header Line Divider - always hidden on mobile */
  .header-line {
    display: none !important;
  }

  /* Right Header Controls Wrap */
  .header-button {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-shrink: 0 !important;
  }

  /* Compact Language Switcher on Mobile */
  .hode-lang-btn {
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 10px !important;
    font-size: 12px !important;
    border-radius: 999px !important;
  }
  .hode-lang-dropdown {
    right: 0 !important;
    top: 44px !important;
    width: 220px !important;
  }

  /* Dedicated Hamburger Menu Button (Fixed & High-Contrast) */
  .menu-button,
  .w-nav-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    padding: 0 !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, 0.12) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    position: relative !important;
    z-index: 100000 !important;
    outline: none !important;
    transition: background 0.18s ease, border-color 0.18s ease;
  }

  .menu-button:hover,
  .menu-button:focus,
  .menu-button.w--open {
    background: #f8fafc !important;
    border-color: #0082fb !important;
  }

  /* Pure CSS Hamburger Icon Lines (Fallback for missing/unloaded Lottie) */
  .menu-button::before,
  .menu-button::after {
    content: '' !important;
    position: absolute !important;
    width: 18px !important;
    height: 2px !important;
    background-color: #0f172a !important;
    border-radius: 2px !important;
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), top 0.22s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.22s ease !important;
  }
  .menu-button::before {
    top: 14px !important;
  }
  .menu-button::after {
    top: 24px !important;
  }

  /* Hamburger middle line via humburger-icon container */
  .menu-button .humburger-icon {
    width: 18px !important;
    height: 2px !important;
    background-color: #0f172a !important;
    border-radius: 2px !important;
    position: relative !important;
    display: block !important;
    transition: opacity 0.2s ease !important;
  }

  /* Animated Morph to 'X' when open */
  .menu-button.w--open::before {
    top: 19px !important;
    transform: rotate(45deg) !important;
    background-color: #0082fb !important;
  }
  .menu-button.w--open::after {
    top: 19px !important;
    transform: rotate(-45deg) !important;
    background-color: #0082fb !important;
  }
  .menu-button.w--open .humburger-icon {
    opacity: 0 !important;
  }

  /* Mobile Navigation Menu Tray (Apple Clean White Studio Aesthetics) */
  .nav-menu,
  .w-nav-menu,
  [data-nav-menu-open] {
    display: none;
    background: #ffffff !important;
    border-radius: 20px !important;
    border: 1px solid #eaedf0 !important;
    box-shadow: 0 20px 50px -10px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.04) !important;
    width: calc(100% - 32px) !important;
    max-width: 480px !important;
    margin: 8px auto 0 !important;
    padding: 20px 18px 24px !important;
    position: absolute !important;
    left: 16px !important;
    right: 16px !important;
    top: 56px !important;
    box-sizing: border-box !important;
    z-index: 999999 !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 4px !important;
  }

  .nav-menu.w--open,
  .w-nav-menu.w--open,
  [data-nav-menu-open] {
    display: flex !important;
    animation: hodeNavSlideDown 0.24s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
  }

  @keyframes hodeNavSlideDown {
    from {
      opacity: 0;
      transform: translateY(-8px) scale(0.98);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }

  /* Clean up Webflow Overlay backdrop */
  .w-nav-overlay {
    background: rgba(15, 23, 42, 0.35) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    z-index: 99998 !important;
  }

  /* Nav Links Inside Mobile Menu */
  .nav-menu .nav-link,
  .nav-menu .nav-link.header-2 {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    padding: 12px 14px !important;
    border-radius: 10px !important;
    font-size: 15.5px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    text-decoration: none !important;
    min-height: 44px !important;
    box-sizing: border-box !important;
    transition: background 0.15s ease, color 0.15s ease !important;
    margin: 0 !important;
    border-bottom: 1px solid #f1f5f9 !important;
  }

  .nav-menu .nav-link:hover,
  .nav-menu .nav-link.w--current {
    background: #f8fafc !important;
    color: #0082fb !important;
  }

  .nav-menu .navtitle {
    margin: 0 !important;
    font-size: 15.5px !important;
    font-weight: 600 !important;
    color: inherit !important;
  }

  /* Dropdown Menu Item (Features) */
  .nav-menu .dropdoen-menu,
  .nav-menu .dropdoen-menu.header-2 {
    width: 100% !important;
    margin: 0 !important;
    border-bottom: 1px solid #f1f5f9 !important;
  }

  .nav-menu .dropdown-toggle-main {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    padding: 12px 14px !important;
    border-radius: 10px !important;
    font-size: 15.5px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    min-height: 44px !important;
    box-sizing: border-box !important;
    cursor: pointer !important;
  }

  .nav-menu .dropdown-toggle-main.w--open {
    color: #0082fb !important;
    background: #f8fafc !important;
  }

  /* Dropdown List Inside Mobile Drawer */
  .nav-menu .dropdown-menu-list,
  .nav-menu .dropdown-menu-list._02 {
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    box-shadow: none !important;
    border: 1px solid #eef2f6 !important;
    background: #f8fafc !important;
    border-radius: 12px !important;
    padding: 10px 8px !important;
    margin: 4px 0 8px !important;
    height: auto !important;
    max-height: 340px !important;
    overflow-y: auto !important;
    box-sizing: border-box !important;
  }

  .nav-menu .feature-menu-list,
  .nav-menu .feature-menu-left-content {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 12px !important;
  }

  .nav-menu .menu-title {
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    color: #0082fb !important;
    margin: 6px 8px 4px !important;
  }

  .nav-menu .single-menu-link {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 8px 10px !important;
    border-radius: 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    text-decoration: none !important;
    transition: background 0.15s ease !important;
  }

  .nav-menu .single-menu-link:hover {
    background: #ffffff !important;
  }

  .nav-menu .menu-link-title {
    font-size: 13.5px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    margin: 0 !important;
  }

  .nav-menu .menu-link-subtitle {
    font-size: 11px !important;
    color: #64748b !important;
    margin: 2px 0 0 !important;
  }

  /* Full-Width Mobile Menu CTA Button */
  .hode-mobile-menu-cta {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 46px !important;
    min-height: 46px !important;
    border-radius: 999px !important;
    background: #0082fb !important;
    color: #ffffff !important;
    font-size: 14.5px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    margin-top: 14px !important;
    box-shadow: 0 4px 14px rgba(0, 130, 251, 0.3) !important;
  }
}

/* On phones <= 640px: hide desktop "Get Early Access" in navbar row to prevent squeezing */
@media screen and (max-width: 640px) {
  .header-buttons,
  .header-button .hero-button,
  .header-buttons .hero-button {
    display: none !important;
  }
  .header-container {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
}

/* --------------------------------------------------------------------------
   3. HERO SECTIONS RESPONSIVENESS (HOME & ALL SECONDARY PAGES)
   -------------------------------------------------------------------------- */
@media screen and (max-width: 768px) {
  .hero-section,
  .hero-section.features,
  .hero-section.contact,
  .partner-hero,
  .pricing-section-main,
  .about-section {
    padding-top: 92px !important;
    padding-bottom: 36px !important;
    min-height: auto !important;
  }

  .hero-content-wrapper {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 32px !important;
    width: 100% !important;
  }

  .hero-content-wrap {
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 0 4px !important;
    margin: 0 auto !important;
  }

  /* Responsive Fluid Headings */
  .heading-1,
  .hero-main-heading,
  .pricing-main-heading {
    font-size: clamp(25px, 6.5vw, 34px) !important;
    line-height: 1.18 !important;
    letter-spacing: -0.03em !important;
    margin-bottom: 14px !important;
    text-align: center !important;
  }

  .hero-title-line1,
  .hero-title-line2 {
    white-space: normal !important;
    display: inline !important;
  }

  .body-text-18.hero,
  .hero-subtext,
  .aura-pricing-subhead {
    font-size: 15px !important;
    line-height: 1.55 !important;
    max-width: 100% !important;
    margin: 12px auto 20px !important;
    text-align: center !important;
  }

  .hero-content-wrap .hero-button {
    width: 100% !important;
    max-width: 300px !important;
    height: 48px !important;
    margin: 0 auto !important;
  }

  .hero-content-wrap .body-text-14 {
    font-size: 12.5px !important;
    text-align: center !important;
    margin-top: 12px !important;
  }

  /* Floating decorative hero badges in secondary pages: hide or position cleanly */
  .hero-card-01, .hero-card-02, .hero-card-03, .hero-card-04 {
    display: none !important;
  }
}

/* --------------------------------------------------------------------------
   4. INTERACTIVE MAC SIMULATOR BOT WINDOW (#botWindow & #botWindowCTA)
   -------------------------------------------------------------------------- */
@media screen and (max-width: 768px) {
  .hero-window-wrapper,
  .cta-image-wrap {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
  }

  #botWindow.mac-window-container,
  #botWindowCTA.mac-window-container,
  .mac-window-container {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: 520px !important;
    max-height: 520px !important;
    border-radius: 14px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Strictly Hide Sidebar on Tablets & Mobile (Permanently fixes 1-col sidebar squish) */
  #botWindow .hode-app-sidebar,
  #botWindowCTA .hode-app-sidebar,
  .features-card .hode-app-sidebar,
  .hode-app-sidebar,
  .mac-sidebar,
  .hode-sidebar-tooltip {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
    overflow: hidden !important;
    visibility: hidden !important;
    position: absolute !important;
    pointer-events: none !important;
  }

  /* Workspace fills entire window */
  .mac-workspace {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: 100% !important;
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
  }

  /* Workspace Titlebar */
  .mac-workspace-header {
    height: 42px !important;
    min-height: 42px !important;
    padding: 0 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  .aura-header-agent-name {
    font-size: 12px !important;
    font-weight: 600 !important;
  }

  .aura-copilot-status-badge {
    padding: 2px 6px !important;
    font-size: 9.5px !important;
  }

  .mac-header-screen-btn {
    padding: 3px 8px !important;
    font-size: 11px !important;
  }

  /* Chat Transcript Scroll Area */
  .mac-chat-transcript {
    padding: 12px 10px 100px !important;
    font-size: 13px !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  /* Transcript Bubbles & Bot Cards */
  .mac-chat-msg {
    max-width: 94% !important;
  }

  /* Interactive Cards inside Transcript: Ensure 1-column responsive flow */
  .nodes-grid,
  .agent-squad-row,
  .aura-accounts-tray,
  .dm-cards-row,
  .aura-inv-grid,
  .aura-plan-pillars,
  .copilot-variance-cards {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 8px !important;
  }

  /* Sticky Composer Bar on Mobile */
  .mac-composer-bar {
    left: 8px !important;
    right: 8px !important;
    bottom: 8px !important;
    padding: 6px 8px !important;
    border-radius: 12px !important;
  }

  .composer-text-input {
    font-size: 12.5px !important;
    padding: 4px 6px !important;
  }

  .hode-composer-bottom {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 4px !important;
  }

  .hode-system-pill {
    max-width: 110px !important;
    font-size: 10px !important;
    padding: 2px 6px !important;
  }

  .hode-tool-btn,
  .hode-send-btn {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
  }
}

@media screen and (max-width: 480px) {
  #botWindow.mac-window-container,
  #botWindowCTA.mac-window-container,
  .mac-window-container {
    height: 480px !important;
    max-height: 480px !important;
  }
}

/* --------------------------------------------------------------------------
   5. MULTI-COLUMN GRIDS OVERHAUL (1-COLUMN ON MOBILE PHONES)
   -------------------------------------------------------------------------- */
@media screen and (max-width: 768px) {
  /* Bento & Feature Grids */
  .features-opt1-grid,
  .features-opt2-grid,
  .features-opt3-grid,
  .features-bento-hero,
  .hode-advantage-grid,
  .feature-grid-3,
  .partner-ribbon-grid,
  .partner-cards-grid,
  .partner-step-grid,
  .dock-grid,
  .neutrality-metrics-grid,
  .team-card-wrapper,
  .blog-collection-list,
  .counter-card-lists,
  .hode-pipeline-rail {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    width: 100% !important;
  }

  /* Inline styled 3 & 4 column grids (features.html, contact.html, etc.) */
  div[style*="repeat(4, 1fr)"],
  div[style*="repeat(3, 1fr)"],
  div[style*="repeat(4,1fr)"],
  div[style*="repeat(3,1fr)"] {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    width: 100% !important;
  }

  /* Bento hero span */
  .features-bento-hero {
    grid-column: span 1 !important;
  }

  /* Telemetry Box in Bento */
  .bento-telemetry-box {
    padding: 16px 14px !important;
  }
  .bento-sys-pills {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
  }
  .bento-sys-btn {
    font-size: 11px !important;
    padding: 5px 9px !important;
  }

  /* Single Feature Card Padding */
  .feature-card,
  .partner-ribbon-card,
  .opt1-card,
  .dock-tile,
  .metric-guarantee-card {
    padding: 20px 16px !important;
    border-radius: 14px !important;
  }

  /* Stacking Horizontal Cards in Features */
  .features-card {
    flex-direction: column !important;
    padding: 20px 16px !important;
    gap: 20px !important;
  }
  .features-content-left {
    width: 100% !important;
    max-width: 100% !important;
  }
  .features-image {
    width: 100% !important;
    height: auto !important;
  }
}

/* --------------------------------------------------------------------------
   6. INTERACTIVE TABS & CATEGORY PILLS (SMOOTH HORIZONTAL MOBILE SCROLL)
   -------------------------------------------------------------------------- */
@media screen and (max-width: 768px) {
  .tabs-menu,
  .blog-tabs .tabs-menu,
  .features-tabs-menu,
  .product-category-tabs,
  .aura-step-nav-wrap {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 6px 8px !important;
    border-radius: 12px !important;
    gap: 8px !important;
    scrollbar-width: none !important;
    justify-content: flex-start !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .tabs-menu::-webkit-scrollbar,
  .blog-tabs .tabs-menu::-webkit-scrollbar,
  .aura-step-nav-wrap::-webkit-scrollbar {
    display: none !important;
  }

  .tab-button,
  .w-tab-link,
  .aura-step-nav-btn {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    padding: 8px 14px !important;
    font-size: 13px !important;
    border-radius: 999px !important;
  }
}

/* --------------------------------------------------------------------------
   7. PRICING PAGE MOBILE RESPONSIVENESS (PRICING.HTML)
   -------------------------------------------------------------------------- */
@media screen and (max-width: 768px) {
  .aura-chatgpt-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .aura-cg-card {
    min-height: auto !important;
    padding: 24px 18px !important;
    border-radius: 20px !important;
  }

  .aura-plan-type-toggle {
    margin-bottom: 16px !important;
  }
  .plan-type-btn {
    padding: 6px 16px !important;
    font-size: 12.5px !important;
  }

  .aura-secondary-controls {
    flex-direction: column !important;
    gap: 10px !important;
    align-items: center !important;
  }

  .aura-toggle-btn {
    padding: 5px 12px !important;
    font-size: 11.5px !important;
  }
}

@media screen and (max-width: 991px) {
  /* Comparison Tables (Universal Smooth Touch-Scroll on Mobile & Tablet) */
  .aura-compare-table-container,
  .matrix-table-wrap,
  .copilot-comparison-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    box-sizing: border-box !important;
    border-radius: 14px !important;
  }
}

@media screen and (max-width: 768px) {
  .aura-compare-table,
  .matrix-table,
  .copilot-comparison-table {
    min-width: 650px !important;
  }
  .copilot-table-mobile-hint {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 12px !important;
    color: #64748b !important;
    margin-bottom: 8px !important;
  }
}

/* --------------------------------------------------------------------------
   8. FORMS RESPONSIVENESS (CONTACT, PARTNERS, EARLY ACCESS)
   -------------------------------------------------------------------------- */
@media screen and (max-width: 768px) {
  .contact-section .content-wrapper,
  .contact-section .contact-wrapper {
    flex-direction: column !important;
    gap: 36px !important;
  }

  .contact-form-content-wrapper,
  .contact-information-list {
    width: 100% !important;
    max-width: 100% !important;
  }

  .contact-form-content-wrapper {
    padding: 24px 18px !important;
    border-radius: 16px !important;
  }

  .input {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .text-field,
  .w-input,
  .w-select,
  .submit-button,
  .w-button {
    height: 48px !important;
    border-radius: 10px !important;
    box-sizing: border-box !important;
    width: 100% !important;
  }

  textarea.text-field,
  textarea.w-input {
    height: 110px !important;
  }

  /* Early Access Selection Checkboxes & Chips */
  .aura-feature-check-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  .aura-feature-check-card {
    padding: 12px 14px !important;
    min-height: 44px !important;
  }

  .aura-size-chips-wrap {
    flex-wrap: wrap !important;
    gap: 8px !important;
  }

  .aura-form-actions {
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
  }
  .aura-form-actions .hero-button,
  .aura-form-actions .aura-step-back-btn {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
  }

  /* Center Cloudflare Turnstile */
  .cf-turnstile {
    max-width: 100% !important;
    overflow-x: auto !important;
  }
}

/* --------------------------------------------------------------------------
   9. CTA & FOOTER RESPONSIVENESS
   -------------------------------------------------------------------------- */
@media screen and (max-width: 768px) {
  .cta-section {
    padding-top: 50px !important;
    padding-bottom: 50px !important;
  }

  .cta-buttons-wrap {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 320px !important;
    margin: 0 auto !important;
  }
  .cta-btn-primary,
  .cta-btn-secondary {
    width: 100% !important;
    height: 48px !important;
    text-align: center !important;
    justify-content: center !important;
    font-size: 14.5px !important;
  }

  /* Footer Layout */
  .footer-section {
    padding-top: 48px !important;
    padding-bottom: 36px !important;
  }

  .footer-content-top {
    flex-direction: column !important;
    gap: 32px !important;
    align-items: flex-start !important;
  }

  .footer-content-left {
    max-width: 100% !important;
  }

  .navitem-wrapper {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 24px 16px !important;
    width: 100% !important;
  }

  .footer-partners-bar {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 14px !important;
  }

  .footer-content-bottom {
    flex-direction: column !important;
    text-align: center !important;
    gap: 10px !important;
    padding-top: 20px !important;
  }
}

@media screen and (max-width: 480px) {
  .navitem-wrapper {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
}
