/* =======================================================================
   iBoost Mega Menu Header — ISOLATED STYLESHEET
   ----------------------------------------------------------------------
   This file is loaded ONLY on the 4 marketing pages (index,
   how-it-works, pricing, faq) and contains ALL the styles for the
   mega-menu header in a completely isolated scope.

   Every rule is prefixed with `.iboost-mm` (a body class) to ensure:
     - No rule in main.css can override these (we always have at least
       specificity +1 from the body class)
     - These rules don't affect anything outside the mega menu header

   If you need to modify the mega menu header, ONLY edit this file.
   Do not touch header-related styles in main.css.

   Scroll state (.is-scrolled on the header element) is toggled by
   /assets/js/header.js when the user scrolls past 60px.
   ======================================================================= */

/* ---------- HEADER (sticky, transparent by default, solid on scroll) ---------- */

.iboost-mm .site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: transparent !important;
  border-bottom: 1px solid transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none;
  padding: 6px 0;
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    backdrop-filter 0.25s ease,
    box-shadow 0.25s ease,
    padding 0.2s ease;
}

/* When scrolled past 60px, JS adds .is-scrolled on the header element.
   Flip to solid white with blur + subtle shadow. */
.iboost-mm .site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.88) !important;
  backdrop-filter: saturate(180%) blur(14px) !important;
  -webkit-backdrop-filter: saturate(180%) blur(14px) !important;
  border-bottom-color: rgba(10, 37, 64, 0.08) !important;
  box-shadow: 0 4px 24px rgba(10, 37, 64, 0.04);
  padding: 2px 0;
}

/* On pages without a dark hero (pricing, faq), the header is always
   solid from the start — they get .iboost-mm but NOT .has-dark-hero.
   We detect this via body.iboost-mm:not(.has-dark-hero). */
body.iboost-mm:not(.has-dark-hero) .site-header {
  background: rgba(255, 255, 255, 0.88) !important;
  backdrop-filter: saturate(180%) blur(14px) !important;
  -webkit-backdrop-filter: saturate(180%) blur(14px) !important;
  border-bottom-color: rgba(10, 37, 64, 0.08) !important;
}

/* Inner flex container for logo + nav */
.iboost-mm .site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* ---------- LOGO (dual light/dark version) with emerald glow ---------- */

.iboost-mm .site-logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  line-height: 0;
  text-decoration: none;
  flex-shrink: 0;
}

.iboost-mm .site-logo-glow {
  position: absolute;
  inset: -6px -10px;
  background: radial-gradient(ellipse at center, rgba(46, 204, 113, 0.32) 0%, transparent 65%);
  filter: blur(10px);
  z-index: -1;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

/* Glow more prominent on transparent (dark hero) state */
.iboost-mm.has-dark-hero .site-header:not(.is-scrolled) .site-logo-glow {
  opacity: 1;
}

/* Softer glow on scrolled/solid state */
.iboost-mm .site-header.is-scrolled .site-logo-glow,
body.iboost-mm:not(.has-dark-hero) .site-logo-glow {
  opacity: 0.4;
  background: radial-gradient(ellipse at center, rgba(46, 204, 113, 0.25) 0%, transparent 65%);
  filter: blur(8px);
}

/* Both logo img variants share the base size + position */
.iboost-mm .site-logo-img {
  display: block;
  height: 40px;
  width: auto;
  position: relative;
  z-index: 1;
}

/* Default: show light logo, hide dark logo */
.iboost-mm .site-logo-light {
  display: block;
}

.iboost-mm .site-logo-dark {
  display: none;
}

/* On dark-hero pages AND header is NOT scrolled: show dark logo, hide light */
.iboost-mm.has-dark-hero .site-header:not(.is-scrolled) .site-logo-light {
  display: none;
}

.iboost-mm.has-dark-hero .site-header:not(.is-scrolled) .site-logo-dark {
  display: block;
}

/* ---------- NAV (desktop) ---------- */

.iboost-mm .site-nav {
  display: flex !important;
  align-items: center;
  gap: 4px;
}

.iboost-mm .site-nav-item {
  position: relative;
  display: inline-flex !important;
  align-items: center;
}

/* Trigger button for each mega-menu dropdown */
.iboost-mm .site-nav-trigger {
  padding: 10px 14px;
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  border-radius: 8px;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}

.iboost-mm .site-nav-trigger svg {
  width: 10px;
  height: 10px;
  opacity: 0.6;
  transition: transform 0.25s ease, opacity 0.2s;
}

.iboost-mm .site-nav-trigger:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.iboost-mm .site-nav-trigger[aria-expanded="true"] {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.iboost-mm .site-nav-trigger[aria-expanded="true"] svg {
  transform: rotate(180deg);
  opacity: 1;
}

/* Scrolled (or non-dark-hero) state: dark text on white */
.iboost-mm .site-header.is-scrolled .site-nav-trigger,
body.iboost-mm:not(.has-dark-hero) .site-nav-trigger {
  color: #475569 !important;
}

.iboost-mm .site-header.is-scrolled .site-nav-trigger:hover,
.iboost-mm .site-header.is-scrolled .site-nav-trigger[aria-expanded="true"],
body.iboost-mm:not(.has-dark-hero) .site-nav-trigger:hover,
body.iboost-mm:not(.has-dark-hero) .site-nav-trigger[aria-expanded="true"] {
  color: #0A2540;
  background: rgba(10, 37, 64, 0.05);
}

.iboost-mm .site-header.is-scrolled .site-nav-trigger svg,
body.iboost-mm:not(.has-dark-hero) .site-nav-trigger svg {
  opacity: 0.5;
}

/* Separator between menu triggers and auth buttons */
.iboost-mm .site-nav-sep {
  display: inline-block;
  width: 1px;
  height: 22px;
  background: rgba(255, 255, 255, 0.2);
  margin: 0 4px;
}

.iboost-mm .site-header.is-scrolled .site-nav-sep,
body.iboost-mm:not(.has-dark-hero) .site-nav-sep {
  background: rgba(10, 37, 64, 0.1);
}

/* Sign in ghost button */
.iboost-mm .site-nav-ghost {
  display: inline-flex !important;
  align-items: center;
  padding: 9px 16px;
  color: rgba(255, 255, 255, 0.9) !important;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.iboost-mm .site-nav-ghost:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.iboost-mm .site-header.is-scrolled .site-nav-ghost,
body.iboost-mm:not(.has-dark-hero) .site-nav-ghost {
  color: #0A2540 !important;
  border-color: #e5e7eb !important;
}

.iboost-mm .site-header.is-scrolled .site-nav-ghost:hover,
body.iboost-mm:not(.has-dark-hero) .site-nav-ghost:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

/* Get started gradient CTA — identical in all states (brand anchor) */
.iboost-mm .site-nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  color: #fff;
  background: linear-gradient(180deg, #3ee082 0%, #2ECC71 50%, #22a85d 100%);
  border: 0;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  font-family: inherit;
  text-decoration: none;
  letter-spacing: -0.005em;
  white-space: nowrap;
  box-shadow:
    0 6px 18px rgba(46, 204, 113, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: transform 0.15s, filter 0.15s, box-shadow 0.2s;
}

.iboost-mm .site-nav-cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  color: #fff;
  box-shadow:
    0 8px 22px rgba(46, 204, 113, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.iboost-mm .site-nav-cta:active {
  transform: translateY(0);
}

/* ---------- MEGA MENU DROPDOWN ---------- */

.iboost-mm .site-mega {
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  min-width: 860px;
  background: #fff;
  border-radius: 14px;
  box-shadow:
    0 24px 60px rgba(10, 37, 64, 0.22),
    0 4px 12px rgba(10, 37, 64, 0.1),
    0 0 0 1px rgba(10, 37, 64, 0.05);
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    visibility 0s linear 0.2s,
    transform 0.2s ease;
  z-index: 100;
}

.iboost-mm .site-mega::before {
  content: '';
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 14px;
  height: 14px;
  background: #fff;
  box-shadow: -1px -1px 0 rgba(10, 37, 64, 0.05);
}

/* Open state — triggered by .is-open class on the parent or via :has() */
.iboost-mm .site-nav-item.is-open .site-mega,
.iboost-mm .site-nav-item:has(.site-nav-trigger[aria-expanded="true"]) .site-mega {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  transition:
    opacity 0.2s ease,
    visibility 0s linear 0s,
    transform 0.2s ease;
}

.iboost-mm .site-mega-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* 3-column variant — used when a menu needs 3 categories side-by-side.
   This is the default for all 4 top-level menus since the blue featured
   card was removed. The 2-column .site-mega-cols default is kept for
   backward-compat with any future 2-col menu. */
.iboost-mm .site-mega-cols-3 {
  grid-template-columns: 1fr 1fr 1fr;
}

.iboost-mm .site-mega-col-title {
  font-size: 0.65rem;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 8px;
  padding: 0 10px;
}

.iboost-mm .site-mega-col-items {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.iboost-mm .site-mega-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: flex-start;
  padding: 10px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.12s;
}

.iboost-mm .site-mega-item:hover {
  background: #f8fafc;
}

.iboost-mm .site-mega-ico {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #e7f7ee;
  color: #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.iboost-mm .site-mega-ico svg {
  width: 17px;
  height: 17px;
}

.iboost-mm .site-mega-ico-cyan   { background: #dbeafe; color: #0891b2; }
.iboost-mm .site-mega-ico-amber  { background: #fef3c7; color: #b45309; }
.iboost-mm .site-mega-ico-purple { background: #f3e8ff; color: #8b5cf6; }
.iboost-mm .site-mega-ico-pink   { background: #fce7f3; color: #ec4899; }

.iboost-mm .site-mega-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.iboost-mm .site-mega-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #0A2540;
  line-height: 1.3;
  letter-spacing: -0.005em;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.iboost-mm .site-mega-desc {
  font-size: 0.76rem;
  color: #64748b;
  margin-top: 2px;
  line-height: 1.4;
}

.iboost-mm .site-mega-badge {
  padding: 1px 7px;
  background: #fef3c7;
  color: #92400e;
  border-radius: 100px;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}


/* ---------- HAMBURGER (mobile) ---------- */

.iboost-mm .site-hamburger {
  display: none;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  padding: 0;
  transition: background 0.15s, border-color 0.15s;
}

.iboost-mm .site-hamburger:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.4);
}

.iboost-mm .site-header.is-scrolled .site-hamburger,
body.iboost-mm:not(.has-dark-hero) .site-hamburger {
  background: #fff;
  border-color: #e5e7eb;
}

.iboost-mm .site-header.is-scrolled .site-hamburger:hover,
body.iboost-mm:not(.has-dark-hero) .site-hamburger:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.iboost-mm .site-hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: background 0.15s;
}

.iboost-mm .site-header.is-scrolled .site-hamburger span,
body.iboost-mm:not(.has-dark-hero) .site-hamburger span {
  background: #0A2540;
}

/* ---------- MOBILE DRAWER ---------- */

.iboost-mm .site-drawer {
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
}

.iboost-mm .site-drawer[hidden] {
  display: none;
}

.iboost-mm .site-drawer:not([hidden]) {
  pointer-events: auto;
}

.iboost-mm .site-drawer-scrim {
  position: absolute;
  inset: 0;
  background: rgba(10, 37, 64, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.iboost-mm .site-drawer.is-open .site-drawer-scrim {
  opacity: 1;
}

.iboost-mm .site-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 85%;
  max-width: 420px;
  background: #fff;
  box-shadow: -20px 0 60px rgba(10, 37, 64, 0.25);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s ease;
}

.iboost-mm .site-drawer.is-open .site-drawer-panel {
  transform: translateX(0);
}

.iboost-mm .site-drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid #f1f5f9;
  flex-shrink: 0;
}

.iboost-mm .site-drawer-close {
  width: 36px;
  height: 36px;
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  padding: 0;
  transition: background 0.15s, color 0.15s;
}

.iboost-mm .site-drawer-close:hover {
  background: #f8fafc;
  color: #0A2540;
}

.iboost-mm .site-drawer-close svg {
  width: 18px;
  height: 18px;
}

.iboost-mm .site-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
  -webkit-overflow-scrolling: touch;
}

/* Accordion sections in drawer */
.iboost-mm .site-acc {
  border-bottom: 1px solid #f1f5f9;
}

.iboost-mm .site-acc:last-child {
  border-bottom: 0;
}

.iboost-mm .site-acc-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 16px;
  background: transparent;
  border: 0;
  font-family: inherit;
  cursor: pointer;
  width: 100%;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0A2540;
  letter-spacing: -0.01em;
}

.iboost-mm .site-acc-head svg {
  width: 14px;
  height: 14px;
  color: #94a3b8;
  transition: transform 0.2s, color 0.15s;
}

.iboost-mm .site-acc-head:hover {
  background: #fafbfc;
}

.iboost-mm .site-acc-head[aria-expanded="true"] svg {
  transform: rotate(180deg);
  color: #16a34a;
}

.iboost-mm .site-acc-body {
  padding: 0 16px 12px;
  display: none;
  flex-direction: column;
  gap: 2px;
}

.iboost-mm .site-acc.is-open .site-acc-body {
  display: flex;
}

.iboost-mm .site-acc-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.12s;
}

.iboost-mm .site-acc-item:hover {
  background: #f8fafc;
}

.iboost-mm .site-acc-ico {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  background: #e7f7ee;
  color: #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.iboost-mm .site-acc-ico svg {
  width: 15px;
  height: 15px;
}

.iboost-mm .site-acc-ico-cyan   { background: #dbeafe; color: #0891b2; }
.iboost-mm .site-acc-ico-amber  { background: #fef3c7; color: #b45309; }
.iboost-mm .site-acc-ico-purple { background: #f3e8ff; color: #8b5cf6; }
.iboost-mm .site-acc-ico-pink   { background: #fce7f3; color: #ec4899; }

.iboost-mm .site-acc-body-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.iboost-mm .site-acc-item-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: #0A2540;
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.iboost-mm .site-acc-item-desc {
  font-size: 0.74rem;
  color: #64748b;
  margin-top: 1px;
  line-height: 1.4;
}

.iboost-mm .site-acc-badge {
  padding: 1px 7px;
  background: #fef3c7;
  color: #92400e;
  border-radius: 100px;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.iboost-mm .site-drawer-foot {
  padding: 14px 16px 24px;
  border-top: 1px solid #f1f5f9;
  background: #fff;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.iboost-mm .site-drawer-cta-primary {
  width: 100%;
  padding: 13px 16px;
  background: linear-gradient(180deg, #3ee082 0%, #2ECC71 50%, #22a85d 100%);
  border: 0;
  border-radius: 10px;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  font-family: inherit;
  text-decoration: none;
  text-align: center;
  box-shadow:
    0 4px 12px rgba(46, 204, 113, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.iboost-mm .site-drawer-cta-primary:hover {
  filter: brightness(1.05);
}

.iboost-mm .site-drawer-cta-ghost {
  width: 100%;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  color: #0A2540;
  font-size: 0.88rem;
  font-weight: 700;
  font-family: inherit;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
}

.iboost-mm .site-drawer-cta-ghost:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

/* Body scroll lock when drawer open */
body.iboost-mm.site-drawer-open {
  overflow: hidden;
}

/* On pages with a dark hero, the transparent header needs a dark
   background to reveal. We paint a thin dark-navy strip at the very
   top of the body (80px tall — covers the sticky header area),
   then the rest of the body stays white for sections below the hero.

   How it works:
   - At scrollY=0 (header transparent): the strip is visible behind
     the header, giving it a dark backdrop.
   - When scrolled (>60px), the header gets .is-scrolled and its own
     solid white bg, so the strip underneath becomes irrelevant.
   - Sections after the hero (like 'Everything you get') render on
     the white portion of the gradient — no color bleeding. */
body.iboost-mm.has-dark-hero {
  background: linear-gradient(
    to bottom,
    #0A2540 0,
    #0A2540 80px,
    #ffffff 80px
  ) !important;
  background-repeat: no-repeat !important;
  background-color: #ffffff !important;
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 900px) {
  /* Hide the desktop nav entirely — nav rule uses !important in its
     base (from the debug saga), so the media query override also
     needs !important to win. The hamburger takes over for mobile. */
  .iboost-mm .site-nav {
    display: none !important;
  }
  .iboost-mm .site-hamburger {
    display: flex !important;
  }
  /* Logo uses .site-logo-img class in current markup (both SVG variants),
     slightly smaller on mobile for better spacing balance */
  .iboost-mm .site-logo-img {
    height: 34px;
  }
  .iboost-mm .site-mega {
    display: none;
  }
}

@media (min-width: 901px) {
  .iboost-mm .site-hamburger {
    display: none !important;
  }
}

/* ===================================================================
 * Simplified launch nav — plain top-level links (no mega-menu).
 * Mirrors .site-nav-trigger typography so the simplified header matches
 * the existing look across light/dark hero variants.
 * =================================================================== */
.iboost-mm .site-nav-link {
  padding: 10px 14px;
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
  border-radius: 8px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  transition: background 0.15s, color 0.15s;
}
.iboost-mm .site-nav-link:hover { background: rgba(255, 255, 255, 0.08); }
body.iboost-mm:not(.has-dark-hero) .site-nav-link { color: #475569 !important; }
body.iboost-mm:not(.has-dark-hero) .site-nav-link:hover { background: rgba(15, 23, 42, 0.05); }

/* Simplified mobile drawer: plain links instead of accordions. */
.site-drawer-link {
  display: block;
  padding: 14px 4px;
  font-size: 1.05rem;
  font-weight: 600;
  color: #0f172a;
  text-decoration: none;
  border-bottom: 1px solid #eef2f7;
}
.site-drawer-link:hover { color: #16a34a; }

/* ===================================================================
 * Dark-navy header in ALL states (override).
 * Previously the header flipped to a translucent WHITE on scroll (and on
 * pages without a dark hero), which made the nav links wash out and become
 * hard to read. Keep the header dark navy consistently and the links light.
 * Placed last so it wins over the earlier white-background rules.
 * =================================================================== */
:root { --iboost-header-navy: rgba(10, 24, 51, 0.92); }

/* Scrolled (dark-hero pages) + always (non-dark-hero pages): dark navy. */
.iboost-mm .site-header.is-scrolled,
body.iboost-mm:not(.has-dark-hero) .site-header {
  background: var(--iboost-header-navy) !important;
  backdrop-filter: saturate(160%) blur(14px) !important;
  -webkit-backdrop-filter: saturate(160%) blur(14px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* Keep nav links LIGHT in those states (was switching to dark). */
.iboost-mm .site-header.is-scrolled .site-nav-link,
body.iboost-mm:not(.has-dark-hero) .site-nav-link,
.iboost-mm .site-header.is-scrolled .site-nav-trigger,
body.iboost-mm:not(.has-dark-hero) .site-nav-trigger {
  color: rgba(255, 255, 255, 0.9) !important;
}
.iboost-mm .site-header.is-scrolled .site-nav-link:hover,
body.iboost-mm:not(.has-dark-hero) .site-nav-link:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #fff !important;
}

/* Ghost "Sign in" button: light outline in the dark states. */
.iboost-mm .site-header.is-scrolled .site-nav-ghost,
body.iboost-mm:not(.has-dark-hero) .site-nav-ghost {
  color: rgba(255, 255, 255, 0.9) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
  background: transparent !important;
}
.iboost-mm .site-header.is-scrolled .site-nav-ghost:hover,
body.iboost-mm:not(.has-dark-hero) .site-nav-ghost:hover {
  border-color: rgba(255, 255, 255, 0.5) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  color: #fff !important;
}

/* Logo: use the on-dark logo (the 'dark'-named file reads on dark bg,
   matching the existing dark-hero convention) in the dark states. */
.iboost-mm .site-header.is-scrolled .site-logo-dark,
body.iboost-mm:not(.has-dark-hero) .site-logo-dark { display: inline-block !important; }
.iboost-mm .site-header.is-scrolled .site-logo-light,
body.iboost-mm:not(.has-dark-hero) .site-logo-light { display: none !important; }

/* Hamburger bars: DARK on the white scrolled/light-hero button so the icon
   is visible (was mistakenly forced white -> white-on-white, an invisible
   blank square). White bars belong only over a dark hero (the base rule at
   .site-hamburger span already handles that). */
.iboost-mm .site-header.is-scrolled .site-hamburger span,
body.iboost-mm:not(.has-dark-hero) .site-hamburger span {
  background: #0A2540 !important;
}

/* ===================================================================
 * Compact "Use cases" dropdown (single column, narrow) + mobile drawer
 * sub-group. Overrides the wide mega-menu defaults for the simplified
 * launch nav.
 * =================================================================== */
.iboost-mm .site-mega.site-mega-compact {
  min-width: 340px;
  padding: 10px;
}
.iboost-mm .site-mega-cols-1 { grid-template-columns: 1fr; }
.iboost-mm .site-mega-compact .site-mega-item {
  display: block;
  padding: 11px 14px;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.13s;
}
.iboost-mm .site-mega-compact .site-mega-item:hover { background: #f1f5f9; }
.iboost-mm .site-mega-compact .site-mega-title {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  color: #0a2540;
}
.iboost-mm .site-mega-compact .site-mega-desc {
  display: block;
  font-size: 0.83rem;
  color: #64748b;
  margin-top: 2px;
  line-height: 1.4;
}

/* Mobile drawer: "Use cases" sub-group */
.site-drawer-group {
  padding: 8px 0 6px;
  border-bottom: 1px solid #eef2f7;
}
.site-drawer-group-title {
  margin: 6px 4px 4px;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
}
.site-drawer-sublink {
  display: block;
  padding: 10px 4px 10px 16px;
  font-size: 0.98rem;
  font-weight: 500;
  color: #334155;
  text-decoration: none;
}
.site-drawer-sublink:hover { color: #16a34a; }
