/* ========================================
   MOBILE STYLES - FixYourHub
   Premium SaaS Drawer Navigation + Mobile Layout
   ======================================== */

:root {
  --mobile-space-section: 64px;
  --mobile-space-page-top: 90px;
  --mobile-nav-height: 72px;
  --mobile-button-height: 52px;
  --mobile-touch-target: 48px;
}

/* ========================================
   1. CORE MOBILE RESET
   ======================================== */
@media (max-width: 992px) {
  html {
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden !important;
    max-width: 100vw !important;
  }

  body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    padding-top: env(safe-area-inset-top, 0);
    padding-bottom: env(safe-area-inset-bottom, 0);
    padding-left: env(safe-area-inset-left, 0);
    padding-right: env(safe-area-inset-right, 0);
  }

  .page-shell {
    padding-top: var(--mobile-space-page-top);
    padding-left: env(safe-area-inset-left, 0);
    padding-right: env(safe-area-inset-right, 0);
  }

  .section {
    padding: var(--mobile-space-section) 0;
  }

  .container {
    width: calc(100% - 24px);
    max-width: none;
    margin: 0 auto;
    padding-left: max(12px, env(safe-area-inset-left, 12px));
    padding-right: max(12px, env(safe-area-inset-right, 12px));
    padding-top: 0;
    padding-bottom: 0;
  }

  img, svg, video {
    max-width: 100% !important;
    height: auto !important;
  }

  /* ========================================
    2. NAVIGATION BAR
    ======================================== */
  .site-nav__inner {
    min-height: var(--mobile-nav-height);
    padding: 0 12px;
    background: rgba(11, 11, 15, 0.95);
    border-bottom: 1px solid rgba(31, 31, 42, 0.8);
  }

  .site-nav {
    z-index: 9999 !important;
  }

  .site-nav.is-scrolled {
    background: rgba(11, 11, 15, 0.98);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  .nav-links,
  .nav-actions .button,
  .nav-actions .button-secondary {
    display: none !important;
  }

  /* Menu Toggle Button */
  nav[data-navbar] .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 12px;
    background: rgba(108, 92, 231, 0.15);
    border: 1px solid rgba(108, 92, 231, 0.25);
    color: #ffffff;
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
  }

  nav[data-navbar] .menu-toggle:hover,
  nav[data-navbar] .menu-toggle:active {
    background: rgba(108, 92, 231, 0.25);
    border-color: rgba(108, 92, 231, 0.4);
  }

  nav[data-navbar] .menu-toggle svg {
    width: 20px;
    height: 20px;
  }

  nav[data-navbar] .menu-toggle .open,
  nav[data-navbar] .menu-toggle .close {
    display: block;
    transition: opacity 0.2s ease;
  }

  nav[data-navbar] .menu-toggle[aria-expanded="false"] .close { display: none !important; }
  nav[data-navbar] .menu-toggle[aria-expanded="false"] .open { display: block !important; }
  nav[data-navbar] .menu-toggle[aria-expanded="true"] .open { display: none !important; }
  nav[data-navbar] .menu-toggle[aria-expanded="true"] .close { display: block !important; }

  .brand {
    gap: 10px;
  }

  .brand__name {
    font-size: 1.15rem;
  }

  .brand__meta {
    display: none;
  }

  /* ========================================
    3. DRAWER OVERLAY
    ======================================== */
  nav[data-navbar] .mobile-menu__overlay {
    position: fixed;
    inset: 0;
    padding-top: env(safe-area-inset-top, 0);
    padding-bottom: env(safe-area-inset-bottom, 0);
    z-index: 9998;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
  }

  nav[data-navbar] .mobile-menu__overlay.is-open {
    opacity: 1;
    visibility: visible;
  }

  /* ========================================
    4. DRAWER CONTAINER
    ======================================== */
  nav[data-navbar] .mobile-menu {
    position: fixed;
    top: env(safe-area-inset-top, 0);
    left: 0;
    bottom: env(safe-area-inset-bottom, 0);
    width: 75%;
    max-width: 300px;
    min-width: 260px;
    height: 100dvh;
    padding-top: env(safe-area-inset-top, 0);
    z-index: 9999;
    background: linear-gradient(180deg, #0b0f19 0%, #0a0a0e 100%);
    box-shadow: 8px 0 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(108, 92, 231, 0.08);
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 0;
    margin: 0;
    border: none;
    border-radius: 0;
    opacity: 1;
    visibility: visible;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }

  nav[data-navbar] .mobile-menu.is-open {
    transform: translateX(0);
  }

  /* Custom Scrollbar */
  nav[data-navbar] .mobile-menu::-webkit-scrollbar {
    width: 3px;
  }

  nav[data-navbar] .mobile-menu::-webkit-scrollbar-track {
    background: transparent;
  }

  nav[data-navbar] .mobile-menu::-webkit-scrollbar-thumb {
    background: rgba(108, 92, 231, 0.3);
    border-radius: 2px;
  }

  nav[data-navbar] .mobile-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(108, 92, 231, 0.5);
  }

  /* ========================================
    5. DRAWER HEADER
    ======================================== */
  nav[data-navbar] .mobile-menu__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
  }

  nav[data-navbar] .mobile-menu__header .brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
  }

  nav[data-navbar] .mobile-menu__header .brand__mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, #6c5ce7, #00e5ff);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  nav[data-navbar] .mobile-menu__header .brand__mark svg {
    width: 18px;
    height: 18px;
  }

  nav[data-navbar] .mobile-menu__header .brand__name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
  }

  /* Close Button */
  nav[data-navbar] .mobile-menu__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
  }

  nav[data-navbar] .mobile-menu__close:hover,
  nav[data-navbar] .mobile-menu__close:active {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.15);
  }

  nav[data-navbar] .mobile-menu__close svg {
    width: 18px;
    height: 18px;
  }

  /* ========================================
   6. USER SECTION
   ======================================== */
  .mobile-menu__user {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 12px 16px !important;
    margin: 4px 16px 8px !important;
    background: rgba(108, 92, 231, 0.06) !important;
    border: 1px solid rgba(108, 92, 231, 0.12) !important;
    border-radius: 14px !important;
    flex-shrink: 0 !important;
  }

  .mobile-menu__user-avatar {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    border-radius: 50% !important;
    background: rgba(108, 92, 231, 0.15) !important;
    color: #a78bfa !important;
  }

  .mobile-menu__user-avatar svg {
    width: 20px !important;
    height: 20px !important;
  }

  .mobile-menu__user-info {
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
  }

  .mobile-menu__user-name {
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    color: #fff !important;
  }

  .mobile-menu__user-status {
    font-size: 0.75rem !important;
    color: rgba(255, 255, 255, 0.45) !important;
  }

  /* ========================================
     7. NAVIGATION LINKS
     ======================================== */
  nav[data-navbar] .mobile-menu__links {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 4px 16px;
    flex: 0 0 auto;
    margin-bottom: 4px;
  }

  nav[data-navbar] .mobile-menu__link {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    border-radius: 12px;
    background: transparent;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
  }

  nav[data-navbar] .mobile-menu__link:hover,
  nav[data-navbar] .mobile-menu__link:active,
  nav[data-navbar] .mobile-menu__link.is-active {
    background: rgba(108, 92, 231, 0.12);
    color: #fff;
  }

  nav[data-navbar] .mobile-menu__link.is-active {
    background: rgba(108, 92, 231, 0.18);
  }

  nav[data-navbar] .mobile-menu__link-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 9px;
    background: rgba(108, 92, 231, 0.1);
    color: #a78bfa;
    transition: all 0.2s ease;
  }

  nav[data-navbar] .mobile-menu__link:hover .mobile-menu__link-icon,
  nav[data-navbar] .mobile-menu__link.is-active .mobile-menu__link-icon {
    background: rgba(108, 92, 231, 0.2);
    color: #c4b5fd;
  }

  nav[data-navbar] .mobile-menu__link-icon svg {
    width: 18px;
    height: 18px;
  }

  nav[data-navbar] .mobile-menu__link .badge {
    margin-left: auto;
    font-size: 0.6rem;
    padding: 3px 8px;
    font-weight: 600;
    border-radius: 20px;
    flex-shrink: 0;
  }

  /* ========================================
     8. DROPDOWN (COMPANY) — complete override
     ======================================== */
  nav[data-navbar] .fyh-dropdown-parent--mobile {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  nav[data-navbar] .mobile-menu__link--dropdown {
    justify-content: flex-start;
    background: rgba(255, 255, 255, 0.02);
  }

  nav[data-navbar] .mobile-menu__chevron {
    margin-left: auto;
    color: rgba(255, 255, 255, 0.35);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
  }

  nav[data-navbar] .fyh-dropdown-parent--mobile.is-open .mobile-menu__chevron {
    transform: rotate(180deg);
  }

  /* Reset ALL desktop .fyh-dropdown-menu properties for mobile */
  nav[data-navbar] .fyh-dropdown-menu--mobile {
    position: static !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    min-width: 0 !important;
    width: 100% !important;
    z-index: auto !important;
    max-height: 0;
    overflow: hidden;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: none;
    background: rgba(108, 92, 231, 0.04);
    border: none !important;
    border-radius: 12px;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    margin: 0 !important;
    padding: 0;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  nav[data-navbar] .fyh-dropdown-menu--mobile::before,
  nav[data-navbar] .fyh-dropdown-menu--mobile::after {
    display: none !important;
  }

  nav[data-navbar] .fyh-dropdown-parent--mobile.is-open .fyh-dropdown-menu--mobile {
    max-height: 400px;
    padding: 6px 8px;
    pointer-events: auto;
  }

  nav[data-navbar] .fyh-dropdown-menu--mobile .fyh-dropdown-item {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 44px;
    padding: 12px 14px;
    font-size: 0.9rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.65);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    line-height: 1.4;
    white-space: normal;
  }

  nav[data-navbar] .fyh-dropdown-menu--mobile .fyh-dropdown-item:active {
    background: rgba(108, 92, 231, 0.15);
    color: #fff;
    transform: scale(0.98);
  }

  /* ========================================
    9. ACTION BUTTONS
    ======================================== */
  nav[data-navbar] .mobile-menu__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
  }

  nav[data-navbar] .mobile-menu__actions a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
  }

  nav[data-navbar] .mobile-menu__actions a:active {
    transform: scale(0.98);
  }

  nav[data-navbar] .mobile-menu__actions .button-secondary {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
  }

  nav[data-navbar] .mobile-menu__actions .button-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
  }

  nav[data-navbar] .mobile-menu__actions .button {
    background: linear-gradient(135deg, #6c5ce7, #8b5cf6);
    color: #fff;
    border: none;
    box-shadow: 0 4px 16px rgba(108, 92, 231, 0.3);
  }

  nav[data-navbar] .mobile-menu__actions .button:hover {
    box-shadow: 0 6px 20px rgba(108, 92, 231, 0.4);
  }

  nav[data-navbar] .mobile-menu__actions a svg {
    width: 18px;
    height: 18px;
  }

  /* ========================================
    10. FOOTER LINKS
    ======================================== */
  nav[data-navbar] .mobile-menu__footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 20px 20px;
    flex-shrink: 0;
  }

  nav[data-navbar] .mobile-menu__footer a {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.35);
    text-decoration: none;
    transition: color 0.15s ease;
  }

  nav[data-navbar] .mobile-menu__footer a:hover {
    color: rgba(255, 255, 255, 0.6);
  }

  nav[data-navbar] .mobile-menu__footer .divider {
    color: rgba(255, 255, 255, 0.15);
    font-size: 0.65rem;
  }

  /* ========================================
   11. BODY LOCK
   ======================================== */
  body.menu-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
  }

  /* ========================================
    12. STAGGERED ENTRANCE ANIMATIONS
    ======================================== */
  nav[data-navbar] .mobile-menu.is-open .mobile-menu__header {
    animation: drawerFadeSlide 0.35s ease forwards;
    opacity: 0;
  }

  nav[data-navbar] .mobile-menu.is-open .mobile-menu__user {
    animation: drawerFadeSlide 0.35s ease 0.06s forwards;
    opacity: 0;
  }

  nav[data-navbar] .mobile-menu.is-open .mobile-menu__link:nth-child(1) {
    animation: drawerFadeSlide 0.35s ease 0.12s forwards;
    opacity: 0;
  }

  nav[data-navbar] .mobile-menu.is-open .mobile-menu__link:nth-child(2) {
    animation: drawerFadeSlide 0.35s ease 0.16s forwards;
    opacity: 0;
  }

  nav[data-navbar] .mobile-menu.is-open .mobile-menu__link:nth-child(3) {
    animation: drawerFadeSlide 0.35s ease 0.2s forwards;
    opacity: 0;
  }

  nav[data-navbar] .mobile-menu.is-open .fyh-dropdown-parent--mobile {
    opacity: 1;
    animation: none;
  }

  nav[data-navbar] .mobile-menu.is-open .fyh-dropdown-parent--mobile .mobile-menu__link--dropdown {
    animation: drawerFadeSlide 0.35s ease 0.24s forwards;
    opacity: 0;
  }

  nav[data-navbar] .mobile-menu.is-open .mobile-menu__actions {
    animation: drawerFadeSlide 0.35s ease 0.3s forwards;
    opacity: 0;
  }

  nav[data-navbar] .mobile-menu.is-open .mobile-menu__footer {
    animation: drawerFadeSlide 0.35s ease 0.35s forwards;
    opacity: 0;
  }

  @keyframes drawerFadeSlide {
    from {
      opacity: 0;
      transform: translateX(-12px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
}

/* ========================================
   SMALL MOBILE (480px)
   ======================================== */
@media (max-width: 480px) {
  nav[data-navbar] .mobile-menu {
    width: 85%;
    max-width: none;
  }

  nav[data-navbar] .mobile-menu__header {
    padding: 18px 16px 14px;
  }

  nav[data-navbar] .mobile-menu__user {
    margin: 10px 14px;
    padding: 12px 14px;
  }

  nav[data-navbar] .mobile-menu__links {
    padding: 6px 14px;
  }

  nav[data-navbar] .mobile-menu__link {
    padding: 11px 12px;
    gap: 10px;
    font-size: 0.9rem;
  }

  nav[data-navbar] .mobile-menu__link-icon {
    width: 30px;
    height: 30px;
  }

  nav[data-navbar] .mobile-menu__actions {
    padding: 14px;
    gap: 8px;
  }

  nav[data-navbar] .mobile-menu__footer {
    padding: 14px 16px 18px;
  }

  /* Hero */
  .hero {
    padding: 88px 0 40px;
  }

  .hero__copy h1 {
    font-size: 1.75rem;
  }

  .hero__copy p {
    font-size: 0.95rem;
  }

  .hero__panel {
    padding: 16px;
    border-radius: 18px;
  }

  .hero__dashboard-chart {
    min-height: 120px;
  }

  /* Buttons */
  .button,
  .button-secondary {
    min-height: var(--mobile-button-height);
    padding: 0 20px;
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 600;
    -webkit-tap-highlight-color: transparent;
  }

  .button:active,
  .button-secondary:active {
    transform: scale(0.97);
  }

  /* Footer grid */
  .footer__grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }

  .footer__bottom {
    font-size: 0.85rem;
  }

  /* Pricing */
  .pricing-card {
    padding: 20px 14px;
  }

  .price .currency {
    font-size: 16px;
  }

  .price .amount {
    font-size: 1.75rem;
  }

  /* Feature grid */
  .feature-grid,
  .platform-ecosystem .feature-grid {
    grid-template-columns: 1fr !important;
  }

  .feature-card {
    padding: 18px;
  }
}

/* ========================================
   EXTRA SMALL MOBILE (380px)
   ======================================== */
@media (max-width: 380px) {
  nav[data-navbar] .mobile-menu {
    width: 100%;
    max-width: none;
  }

  nav[data-navbar] .mobile-menu__header {
    padding: 16px 14px 12px;
  }

  nav[data-navbar] .mobile-menu__user {
    margin: 10px 12px;
  }

  nav[data-navbar] .mobile-menu__link {
    padding: 10px 12px;
    gap: 10px;
  }

  nav[data-navbar] .mobile-menu__link-icon {
    width: 28px;
    height: 28px;
  }

  nav[data-navbar] .mobile-menu__actions {
    padding: 12px 14px;
  }
}

/* ========================================
   13. HERO SECTION - MOBILE
   ======================================== */
@media (max-width: 992px) {
  .hero {
    padding: 100px 0 48px;
    overflow: hidden;
  }

  .hero__layout {
    display: flex !important;
    flex-direction: column !important;
    gap: 28px;
    grid-template-columns: 1fr !important;
  }

  .hero__copy {
    text-align: center;
  }

  .hero__copy h1 {
    font-size: clamp(1.85rem, 6vw, 2.4rem);
    line-height: 1.15;
    margin-bottom: 16px;
  }

  .hero__copy p {
    font-size: 1rem;
    line-height: 1.6;
    max-width: 100%;
  }

  .hero__actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
  }

  .hero__actions .button,
  .hero__actions .button-secondary {
    width: 100%;
    min-height: var(--mobile-button-height);
    justify-content: center;
  }

  .hero__panel {
    display: block !important;
    padding: 20px;
    border-radius: 20px;
  }

  .hero__visual-card {
    gap: 14px;
  }

  .hero__dashboard {
    gap: 12px;
  }

  .hero__dashboard-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    border-radius: 16px;
  }

  .hero__dashboard-bar .badge {
    align-self: flex-start;
  }

  .hero__dashboard-bar p {
    font-size: 0.85rem;
  }

  .hero__dashboard-chart {
    min-height: 140px;
    border-radius: 18px;
  }

  .mini-stat-grid,
  .enhanced-mini-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px;
  }

  .mini-stat {
    padding: 14px;
    border-radius: 14px;
  }

  .mini-stat strong {
    font-size: 1.35rem;
  }

  .mini-stat span {
    font-size: 0.78rem;
    line-height: 1.4;
  }

  .floating-badges {
    display: none !important;
  }
}

/* ========================================
   14. SERVICES SECTION - MOBILE
   ======================================== */
@media (max-width: 992px) {
  .grid.grid-3,
  .grid-3 {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px;
  }

  .section-heading {
    margin-bottom: 28px;
  }

  .section-heading h2 {
    font-size: clamp(1.5rem, 5vw, 1.85rem);
  }

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

@media (max-width: 600px) {
  .grid.grid-3,
  .grid-3 {
    grid-template-columns: 1fr !important;
  }

  .service-card {
    padding: 20px;
    border-radius: 18px;
  }

  .service-card__thumbnail {
    border-radius: 14px;
    margin: -20px -20px 16px;
  }

  .service-card__body {
    padding: 0;
  }

  .service-card h3 {
    font-size: 1.1rem;
  }

  .service-card__desc {
    font-size: 0.9rem;
  }

  .service-card .cluster {
    margin-top: 14px;
    padding-top: 14px;
  }

  .service-card .button {
    width: 100%;
    margin-top: 18px;
    min-height: 48px;
  }
}

/* ========================================
   15. FEATURES GRID - MOBILE
   ======================================== */
@media (max-width: 992px) {
  .feature-grid,
  .platform-ecosystem .feature-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px;
  }

  .feature-card {
    padding: 20px;
    border-radius: 18px;
  }

  .feature-card__icon {
    width: 42px;
    height: 42px;
    font-size: 1.25rem;
    margin-bottom: 12px;
  }

  .feature-card h3 {
    font-size: 1rem;
    margin-bottom: 6px;
  }

  .feature-card p {
    font-size: 0.85rem;
    line-height: 1.5;
  }
}

/* ========================================
   16. CTA SECTION - MOBILE
   ======================================== */
@media (max-width: 992px) {
  .cta-panel {
    padding: 28px 22px;
    border-radius: 22px;
  }

  .cta-panel h2 {
    font-size: clamp(1.4rem, 4vw, 1.7rem);
  }

  .cta-panel .split {
    gap: 20px;
  }

  .cta-panel .cluster {
    flex-direction: column;
    gap: 12px;
  }

  .cta-panel .button,
  .cta-panel .button-secondary {
    width: 100%;
    min-height: var(--mobile-button-height);
    justify-content: center;
  }
}

/* ========================================
   17. VISION SECTION - MOBILE
   ======================================== */
@media (max-width: 992px) {
  .vision__panel {
    padding: 36px 20px;
    border-radius: 20px;
  }

  .vision h2 {
    font-size: clamp(1.3rem, 4vw, 1.6rem);
    line-height: 1.25;
  }

  .vision p {
    font-size: 0.95rem;
  }
}

/* ========================================
   18. PRICING CARDS - MOBILE
   ======================================== */
@media (max-width: 992px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px;
  }

  .pricing-card {
    padding: 24px 18px;
    border-radius: 18px;
  }

  .pricing-card h3 {
    font-size: 1rem;
  }

  .price .amount {
    font-size: 2rem;
  }

  .pricing-card__features {
    gap: 12px;
  }

  .pricing-card__features li {
    font-size: 0.85rem;
    line-height: 1.4;
  }

  .pricing-btn,
  .pricing-card .button {
    width: 100%;
    min-height: 44px;
    margin-top: 16px;
  }
}

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

  .pricing-card {
    padding: 22px 16px;
  }

  .pricing-card--popular {
    transform: none;
  }
}

/* ========================================
   19. TOUCH TARGETS & ACCESSIBILITY
   ======================================== */
@media (max-width: 992px) {
  a,
  button,
  .nav-link,
  .fyh-dropdown-trigger,
  .checkbox-label {
    min-height: var(--mobile-touch-target);
    min-width: var(--mobile-touch-target);
  }

  .checkbox-label__checkmark {
    width: 22px !important;
    height: 22px !important;
    border-radius: 6px !important;
  }

  .checkbox-label__checkmark::after {
    width: 6px !important;
    height: 10px !important;
  }

  input,
  textarea,
  select {
    font-size: 16px !important;
    min-height: var(--mobile-touch-target);
    padding: 14px 16px;
  }

  a:focus-visible,
  button:focus-visible,
  .nav-link:focus-visible {
    outline: 2px solid #a78bfa;
    outline-offset: 2px;
    border-radius: 8px;
  }

  .skip-link {
    position: absolute;
    top: -100px;
    left: 12px;
    z-index: 10000;
    padding: 12px 16px;
    background: #6c5ce7;
    color: white;
    border-radius: 8px;
    font-weight: 600;
  }

  .skip-link:focus {
    top: 12px;
  }
}

/* ========================================
   20. FOOTER - MOBILE
   ======================================== */
@media (max-width: 992px) {
  .footer {
    padding: 28px 0 24px;
  }

  .footer__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px;
  }

  .footer__title {
    font-size: 0.95rem;
    margin-bottom: 12px;
  }

  .footer__list {
    gap: 8px;
  }

  .footer__list a {
    font-size: 0.9rem;
    padding: 8px 0;
    display: block;
    min-height: 36px;
    line-height: 1.4;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
  }
}

/* ========================================
   21. AUTH PAGES - MOBILE
   ======================================== */
@media (max-width: 992px) {
  .auth-section {
    padding: 40px 0;
    min-height: calc(100dvh - 140px);
  }

  .auth-card {
    padding: 28px 24px;
    border-radius: 22px;
  }

  .auth-card__header h1 {
    font-size: 1.4rem;
  }

  .auth-form {
    gap: 16px;
  }

  .auth-form__footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .checkbox-label {
    font-size: 0.9rem !important;
    min-height: 48px;
    align-items: center;
  }
}

/* ========================================
   21b. CAREERS FORM - MOBILE
   ======================================== */
@media (max-width: 992px) {
  .careers-roles-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  #app-name,
  #app-email,
  #app-phone,
  #app-role,
  #app-cover,
  .careers-form input,
  .careers-form select,
  .careers-form textarea {
    min-height: 48px !important;
    padding: 14px 16px !important;
    font-size: 16px !important;
    border-radius: 10px !important;
  }

  .careers-form textarea {
    min-height: 120px !important;
  }
}

@media (max-width: 480px) {
  .auth-card {
    padding: 24px 20px;
  }

  .auth-card__header {
    margin-bottom: 24px;
  }

  .auth-form .button {
    width: 100%;
    min-height: 52px;
  }
}

/* ========================================
   22. CONTACT PAGE - MOBILE
   ======================================== */
@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 24px;
  }

  .contact-card {
    padding: 20px;
    border-radius: 18px;
  }

  .contact-list {
    gap: 12px;
  }

  .contact-list a {
    padding: 12px;
    border-radius: 12px;
  }
}

/* ========================================
   23. GRID LAYOUTS - MOBILE
   ======================================== */
@media (max-width: 992px) {
  .grid-4,
  .grid-5 {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 12px;
  }

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

@media (max-width: 768px) {
  .grid-4,
  .grid-5 {
    grid-template-columns: repeat(2, 1fr) !important;
  }

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

@media (max-width: 480px) {
  .grid-4,
  .grid-5,
  .grid-2 {
    grid-template-columns: 1fr !important;
  }
}

/* ========================================
   24. PERFORMANCE OPTIMIZATIONS
   ======================================== */
@media (max-width: 992px) {
  .hero__glow,
  .hero__orb {
    filter: none !important;
    opacity: 0.5;
  }

  .hero__grid {
    opacity: 0.1;
  }

  .card--glow::before,
  .surface,
  .cta-panel {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .pricing-card {
    transform: none !important;
    perspective: none !important;
  }

  .card,
  .cta-panel,
  .surface {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2) !important;
  }

  .hero,
  .cta-panel,
  .surface {
    background: var(--bg-main) !important;
  }

  /* Disable 3D transforms and hover effects on cards */
  .card:hover,
  .feature-card:hover,
  .service-card:hover,
  .team-card:hover,
  .pricing-card:hover,
  .project-showcase-card:hover {
    transform: none !important;
  }

  /* Disable continuous pulse animations on mobile */
  .pulse,
  [style*="animation: pulse"] {
    animation: none !important;
  }

  /* Disable floating badges */
  .floating-badges {
    display: none !important;
  }

  /* Disable hero grid animation */
  body::before {
    animation: none !important;
  }

  /* Simplify project card hover effects */
  .project-showcase-card > div:first-child {
    display: none !important;
  }

  /* Reduce SVG chart complexity */
  svg[viewBox] {
    shape-rendering: geometric;
  }
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero__glow,
  .hero__orb,
  .floating-badge {
    animation: none !important;
  }

  .mobile-menu {
    transition: none !important;
  }

  .mobile-menu__overlay {
    transition: none !important;
  }
}

/* ========================================
   25. SCROLLBAR & OVERFLOW FIXES
   ======================================== */
@media (max-width: 992px) {
  html {
    overflow-x: hidden;
  }

  body {
    overflow-x: hidden;
  }

  .khata-code__snippet,
  .code-body {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(108, 92, 231, 0.5) transparent;
  }

  .khata-code__snippet::-webkit-scrollbar,
  .code-body::-webkit-scrollbar {
    height: 4px;
    width: 4px;
  }

  .khata-code__snippet::-webkit-scrollbar-thumb,
  .code-body::-webkit-scrollbar-thumb {
    background: rgba(108, 92, 231, 0.5);
    border-radius: 2px;
  }
}

/* ========================================
   26. FOCUS VISIBLE
   ======================================== */
@media (max-width: 992px) {
  :focus:not(:focus-visible) {
    outline: none;
  }

  :focus-visible {
    outline: 2px solid #a78bfa;
    outline-offset: 2px;
  }

  .button:focus-visible,
  .button-secondary:focus-visible {
    outline: 2px solid #a78bfa;
    outline-offset: 2px;
  }
}

/* ========================================
   27. WEB PAGE SPECIFIC FIXES
   ======================================== */
@media (max-width: 992px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px !important;
  }

  .project-showcase-card {
    padding: 20px 16px !important;
    border-radius: 14px !important;
  }

  .project-showcase-card > div:first-child {
    border-radius: 14px !important;
  }

  .project-showcase-card span:first-child {
    font-size: 1rem !important;
  }

  .project-showcase-card p {
    font-size: 0.8rem !important;
    margin-bottom: 20px !important;
  }

  .project-showcase-card a {
    padding: 10px 16px !important;
    font-size: 0.8rem !important;
  }

  .web-stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }

  .web-stat-card {
    padding: 16px 12px !important;
    border-radius: 14px !important;
  }

  .web-stat-card strong {
    font-size: 1.35rem !important;
  }

  .web-stat-card span {
    font-size: 0.75rem !important;
  }

  .surface[style*="margin-top"] {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
    padding: 16px !important;
  }

  .surface[style*="margin-top"] .button {
    margin-left: 0 !important;
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .projects-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ========================================
   28. LIVE PROJECTS SECTION
   ======================================== */
@media (max-width: 992px) {
  .live-projects-section {
    padding: 48px 0 !important;
  }

  .live-projects-section .section-heading h2 {
    font-size: clamp(1.3rem, 4vw, 1.55rem) !important;
  }

  .live-projects-section .eyebrow {
    font-size: 0.68rem !important;
  }
}

/* ========================================
   29. BLOGS & MEDIA PAGES
   ======================================== */
@media (max-width: 992px) {
  .blog-grid,
  .insights-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px !important;
  }

  .blog-card,
  .insight-card {
    padding: 18px !important;
    border-radius: 16px !important;
  }

  .blog-card h3,
  .insight-card h3 {
    font-size: 1rem !important;
  }

  .blog-card p,
  .insight-card p {
    font-size: 0.85rem !important;
  }
}

@media (max-width: 600px) {
  .blog-grid,
  .insights-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ========================================
   30. ABOUT & CAREERS PAGES
   ======================================== */
@media (max-width: 992px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px !important;
  }

  .team-card {
    padding: 20px 16px !important;
    border-radius: 16px !important;
    gap: 16px !important;
  }

  .team-card__avatar {
    width: 56px !important;
    height: 56px !important;
    font-size: 1.1rem !important;
  }

  .team-card__header {
    gap: 12px !important;
  }

  .team-card__role {
    font-size: 0.8rem !important;
  }

  .team-card__lead {
    font-size: 1rem !important;
  }

  .team-card__quote {
    font-size: 0.9rem !important;
    padding-top: 14px !important;
  }
}

@media (max-width: 600px) {
  .team-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ========================================
   31. KHATA PRODUCT PAGE
   ======================================== */
@media (max-width: 992px) {
  .product-philosophy {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px !important;
  }

  .khata-terminal,
  .khata-code,
  .khata-flow {
    margin-top: 20px !important;
  }

  .khata-terminal__top,
  .khata-code__header {
    padding: 12px 14px !important;
  }

  .khata-terminal__body {
    padding: 16px 18px !important;
  }

  .khata-terminal__line {
    font-size: 0.85rem !important;
  }

  .khata-terminal__stats {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .khata-terminal__stat {
    padding: 12px !important;
    border-radius: 14px !important;
  }

  .khata-terminal__stat strong {
    font-size: 1rem !important;
  }

  .khata-terminal__stat span {
    font-size: 0.8rem !important;
  }
}

@media (max-width: 600px) {
  .product-philosophy {
    grid-template-columns: 1fr !important;
  }
}

/* ========================================
   31. PRICING MOBILE PREVIEW
   ======================================== */
@media (max-width: 992px) {
  /* Hide full desktop cards by default */
  .pricing-desktop {
    display: none !important;
  }

  .pricing-desktop-footer {
    display: none !important;
  }

  /* Show when toggled open */
  .pricing-desktop.is-expanded {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    margin-top: 24px;
  }

  .pricing-desktop.is-expanded .pricing-card {
    padding: 22px 18px !important;
    transform: none !important;
  }

  .pricing-desktop.is-expanded .pricing-card--popular {
    border-color: rgba(0, 229, 255, 0.3) !important;
  }

  .pricing-desktop.is-expanded .pricing-desktop-footer {
    display: block !important;
  }

  /* Mobile Preview Container */
  .pricing-mobile-preview {
    display: block !important;
    padding: 24px 20px;
    background: rgba(17, 17, 24, 0.5);
    border: 1px solid rgba(108, 92, 231, 0.12);
    border-radius: 16px;
    margin-bottom: 16px;
  }

  .pricing-preview-cards {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 18px;
  }

  .pricing-preview-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
  }

  .pricing-preview-card--popular {
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.1), rgba(0, 229, 255, 0.05));
    border-color: rgba(108, 92, 231, 0.25);
  }

  .pricing-preview-name {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.5);
  }

  .pricing-preview-card--popular .pricing-preview-name {
    color: #a78bfa;
  }

  .pricing-preview-price {
    font-size: 0.95rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
  }

  .pricing-preview-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 48px;
    padding: 12px 24px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #6c5ce7, #8b5cf6);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 16px rgba(108, 92, 231, 0.3);
    -webkit-tap-highlight-color: transparent;
  }

  .pricing-preview-cta:hover,
  .pricing-preview-cta:active {
    transform: scale(0.98);
    box-shadow: 0 6px 20px rgba(108, 92, 231, 0.4);
  }

  .pricing-preview-cta.is-open {
    background: rgba(255, 255, 255, 0.06);
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
  }
}

/* ========================================
   32. SCROLL ANIMATION FIXES
   ======================================== */
@media (max-width: 992px) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

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

  .js-pricing-cta {
    position: relative;
    transition: opacity 0.2s ease;
  }
  .js-pricing-cta.is-loading {
    pointer-events: none;
    opacity: 0.6;
  }
  .js-pricing-cta.is-loading::before {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: btnSpin 0.6s linear infinite;
    margin-right: 6px;
    vertical-align: middle;
  }
  @keyframes btnSpin {
    to { transform: rotate(360deg); }
  }
}
