  .site-logo, .site-logo:hover, .site-logo:focus, .site-logo span { text-decoration: none !important; border-bottom: none !important; }
  .main-nav .active {
    color: var(--brand-primary) !important;
    font-weight: 600;
    position: relative;
  }

  .header-nav .main-nav .active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 2px;
    background-color: var(--brand-primary);
    border-radius: 1px;
  }

  #ai_header {
    transition: transform 320ms cubic-bezier(0.4, 0, 0.2, 1), background-color 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
    background-color: rgba(255,255,255,0.68) !important;
    border-bottom: 1px solid rgba(243,244,246,0) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    will-change: transform;
  }

  #ai_header.header-solid {
    background-color: rgba(255,255,255,0.9) !important;
    border-bottom-color: rgba(17,24,39,0.08) !important;
    box-shadow: 0 16px 42px rgba(15,23,42,0.08);
  }

  #ai_header.header-hidden {
    transform: translateY(-112%);
  }

  .nav-link:hover { color: var(--brand-dark) !important; }
  .main-nav .active { color: var(--brand-primary) !important; }
  body.is-home:not(.scrolled) .main-nav .active,
  body.scrolled .main-nav .active,
  body:not(.is-home) .main-nav .active { color: var(--brand-primary) !important; }

  #overlay {
    left: 0 !important;
    z-index: 60 !important;
  }

  #mobile-menu {
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: min(88vw, 380px) !important;
    max-width: min(88vw, 380px) !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    z-index: 80 !important;
    background: #FFFFFF;
    color: #111827;
    overflow: hidden;
    box-shadow: 24px 0 70px rgba(15,23,42,0.22);
  }

  #mobile-menu > div {
    min-height: 100vh !important;
    min-height: 100dvh !important;
    display: flex !important;
    flex-direction: column !important;
    background: #FFFFFF;
  }

  #mobile-menu > div > div:first-child {
    flex: 0 0 auto;
    background: #FFFFFF;
  }

  #mobile-menu > div > div:nth-child(2) {
    flex: 1 1 auto !important;
    min-height: 0;
    overflow-y: auto !important;
    background: #FFFFFF;
  }

  #mobile-menu > div > div:last-child {
    flex: 0 0 auto;
    background: #FFFFFF;
  }

  #mobile-menu.-translate-x-full {
    transform: translateX(-100%) !important;
  }

  #mobile-menu.translate-x-0 {
    transform: translateX(0) !important;
  }

  #mobile-menu .main-nav {
    display: grid;
    gap: 4px;
  }

  #mobile-menu .main-nav a {
    display: block;
    padding: 12px 0;
    color: #111827 !important;
    font-size: 16px;
    font-weight: 650;
    line-height: 1.2;
    text-decoration: none;
  }

  #mobile-menu .main-nav a:hover,
  #mobile-menu .main-nav a.active,
  #mobile-menu .mobile-submenu-toggle:hover {
    color: var(--brand-primary) !important;
  }

  #mobile-menu .mobile-submenu-toggle {
    background: transparent;
    border: 0;
    font-family: inherit;
    text-align: left;
    color: #111827 !important;
    cursor: pointer;
  }

  #mobile-menu .mobile-submenu {
    border-left: 1px solid #e5e7eb;
    margin: 2px 0 8px 1px;
  }

  #mobile-menu .mobile-submenu a {
    font-size: 14px;
    font-weight: 600;
    color: #4b5563 !important;
    padding: 8px 0 8px 12px;
  }

  #mobile-menu .mobile-submenu-heading {
    padding: 14px 0 5px 12px;
    color: #98a2b3;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
  }

  /* Mega menu button reset */
  .mega-parent > button {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    appearance: none;
    -webkit-appearance: none;
  }

  .mega-parent > button::after {
    content: "";
    width: 6px;
    height: 6px;
    margin-left: 7px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-1px);
    opacity: 0.72;
  }

  /* Mega menu panel */
  .mega-menu {
    position: fixed;
    top: 76px;
    left: 50%;
    width: min(1120px, calc(100vw - 40px));
    min-width: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.12), 0 4px 16px rgba(0,0,0,0.06);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    transform: translateX(-50%) translateY(8px);
    z-index: 100;
    padding: 28px;
  }
  .mega-menu.mega-menu-product {
    width: min(1180px, calc(100vw - 40px));
  }
  .mega-menu.mega-menu-solutions {
    width: min(1180px, calc(100vw - 40px));
  }
  .mega-menu.mega-menu-resources {
    width: min(420px, calc(100vw - 40px));
    padding: 22px 24px;
  }
  .mega-menu.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }

  .mega-menu-inner {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) 250px;
    gap: 28px;
  }
  .mega-menu-inner.mega-product-layout {
    grid-template-columns: repeat(3, minmax(0, 1fr)) 270px;
    gap: 30px;
  }
  .mega-menu-solutions .mega-menu-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr)) 260px;
  }
  .mega-menu-solutions .mega-menu-inner.mega-solutions-layout {
    grid-template-columns: 300px minmax(0, 1fr) 330px;
    gap: 40px;
    align-items: stretch;
  }
  .mega-menu-resources .mega-menu-inner {
    grid-template-columns: 1fr;
  }

  .mega-col {
    flex: 1;
    min-width: 0;
  }

  .mega-heading {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9ca3af;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f3f4f6;
    font-family: var(--font-family);
  }

  .mega-item {
    display: block;
    padding: 9px 0;
    text-decoration: none;
    transition: background 0.15s ease;
    border-radius: 6px;
  }
  .mega-item:hover {
    background: #f9fafb;
    padding-left: 8px;
    padding-right: 8px;
    margin-left: -8px;
    margin-right: -8px;
  }

  .mega-item-title {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
    line-height: 1.3;
  }
  .mega-item-desc {
    display: block;
    font-size: 12px;
    color: #6b7280;
    line-height: 1.4;
    margin-top: 1px;
  }
  .mega-col-compact .mega-item {
    padding-block: 10px;
  }

  .mega-feature-stack {
    display: grid;
    gap: 14px;
  }
  .mega-feature-card-compact {
    min-height: 0;
    height: auto;
    padding: 22px;
  }

  /* Feature card in mega menu */
  .mega-feature {
    min-width: 0;
  }
  .mega-feature-card {
    border-radius: 12px;
    padding: 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
  }
  .mega-feature-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: #2dd4bf;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 12px;
  }
  .mega-feature-title {
    font-size: 16px;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
    font-family: var(--font-heading);
  }
  .mega-feature-desc {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    line-height: 1.5;
    margin-bottom: 16px;
    flex-grow: 1;
  }
  .mega-feature-link {
    font-size: 13px;
    font-weight: 600;
    color: white;
    text-decoration: none;
    transition: opacity 0.15s ease;
  }
  .mega-feature-link:hover { opacity: 0.8; }
  .mega-feature-light {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
  }
  .mega-feature-light .mega-feature-badge { color: #0d9488; }
  .mega-feature-light .mega-feature-title { color: #111827; }
  .mega-feature-light .mega-feature-desc { color: #667085; }
  .mega-feature-light .mega-feature-link { color: #07111f; }

  .mega-solutions-list {
    border-right: 1px solid #e5e7eb;
    padding-right: 28px;
  }
  .mega-solutions-list .mega-item {
    padding: 10px 0;
  }
  .mega-solutions-list .mega-item-title {
    font-size: 15px;
  }
  .mega-solution-detail {
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding-top: 2px;
  }
  .mega-solution-title {
    color: #111827;
    font-size: 22px;
    font-weight: 680;
    line-height: 1.2;
    text-decoration: none;
  }
  .mega-solution-copy {
    max-width: 520px;
    margin: 18px 0 0;
    color: #667085;
    font-size: 15px;
    line-height: 1.65;
  }
  .mega-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    padding-top: 28px;
  }
  .mega-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #111827;
    font-size: 12px;
    font-weight: 700;
  }
  .mega-solution-visual {
    position: relative;
    display: block;
    min-height: 320px;
    overflow: hidden;
    border-radius: 10px;
    background: #f3f4f6;
    text-decoration: none;
  }
  .mega-solution-visual img {
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
  }
  .mega-solution-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7,17,31,0) 42%, rgba(7,17,31,.78) 100%);
  }
  .mega-solution-visual span {
    position: absolute;
    z-index: 1;
    left: 18px;
    right: 18px;
    bottom: 18px;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
  }

  /* Mega menu overlay */
  .mega-overlay {
    position: fixed;
    inset: 0;
    top: 60px;
    background: rgba(0,0,0,0.08);
    z-index: 40;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
  }
  .mega-overlay.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  /* === Mega menu refresh (icons, hover, headings, resources) === */
  #site-header .mega-item, .mega-item {
    display: flex; gap: 11px; align-items: flex-start;
    padding: 8px; margin: 0 -8px; border-radius: 9px;
    text-decoration: none; transition: background 0.15s ease;
  }
  .mega-item:hover { background: #f4f8f7; }
  .mega-item-body { min-width: 0; flex: 1 1 auto; }
  .mega-icon {
    flex: 0 0 auto; width: 32px; height: 32px; border-radius: 8px;
    display: inline-flex; align-items: center; justify-content: center;
    background: #F0FDFA; color: #0D9488; margin-top: 1px;
    transition: background 0.15s ease, color 0.15s ease;
  }
  .mega-icon svg { width: 17px; height: 17px; }
  .mega-item:hover .mega-icon { background: #0D9488; color: #fff; }
  .mega-item:hover .mega-item-title { color: #0D9488; }
  .mega-item-title { transition: color 0.15s ease; }
  .mega-heading {
    border-bottom: none; padding-bottom: 0; margin-bottom: 14px;
    color: #94a3b8; letter-spacing: 0.09em;
  }
  /* Resources: three columns + feature card */
  .mega-menu.mega-menu-resources { width: min(1080px, calc(100vw - 40px)); padding: 26px; }
  .mega-menu.mega-menu-resources .mega-resources-layout {
    display: grid; grid-template-columns: 1fr 1fr 1fr 280px; gap: 30px; align-items: start;
  }
  .mega-resources-feature {
    height: 100%; text-decoration: none;
    border: 1px solid #e5e7eb; background: #F8FAFC;
  }
  .mega-resources-feature .mega-feature-badge { color: #0D9488; }
  .mega-resources-feature .mega-feature-title { color: #111827; }
  .mega-resources-feature .mega-feature-desc { color: #6b7280; }
  .mega-resources-feature .mega-feature-link { color: #0D9488; }
  .mega-resources-feature:hover { border-color: #99f6e4; box-shadow: 0 10px 26px rgba(13,148,136,0.08); }


  /* Solutions detail column — fill the whitespace */
  .mega-solution-detail .mega-tags { margin-top: 16px; padding-top: 0; }
  .mega-tags-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #94a3b8; margin: 22px 0 0; }
  .mega-highlights { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
  .mega-highlights li { display: flex; align-items: flex-start; gap: 9px; font-size: 13.5px; color: #374151; line-height: 1.45; }
  .mega-check { flex: 0 0 auto; display: inline-flex; width: 18px; height: 18px; color: #0D9488; margin-top: 1px; }
  .mega-check svg { width: 18px; height: 18px; }
