/* ============================================================
   Main-site nav + footer CSS — extracted from appice-site/css/styles.css
   This is ONLY the nav, mobile-menu, and footer rules.
   No global resets, so docs body content stays intact.
   ============================================================ */

:root {
  --blue: #0050FF;
  --dark: #050D1F;
  --black: #050D1F;
  --white: #FFFFFF;
  --max-w: 1280px;
  --nav-h: 72px;
  --px: clamp(20px, 4vw, 56px);
}

/* ── NAV ───────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; width: 100%; height: var(--nav-h);
  background: var(--white);
  border-bottom: 1px solid rgba(5,13,31,.08);
  z-index: 1000;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.nav__inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 var(--px);
  height: 100%; display: flex; align-items: center; gap: 28px;
}
.nav__logo { display: flex; align-items: center; flex-shrink: 0; text-decoration: none; }
.nav__logo img { height: 36px; width: auto; display: block; }
.nav__links { display: flex; align-items: center; gap: 26px; flex: 1; }
.nav__links > a,
.nav__dropdown > a {
  font-size: 15px; font-weight: 500; color: var(--black);
  opacity: .65; transition: opacity .2s; cursor: pointer;
  text-decoration: none;
}
.nav__links > a:hover,
.nav__dropdown:hover > a { opacity: 1; }
.nav__dropdown { position: relative; }
.nav__dropdown > a::after {
  content: ' ▾'; font-size: 9px; opacity: .5;
}
.nav__drop {
  position: absolute; top: calc(100% + 8px); left: 0;
  background: var(--white);
  border: 1px solid rgba(5,13,31,.1);
  border-radius: 6px; min-width: 220px;
  padding: 8px; opacity: 0; pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .18s, transform .18s;
  box-shadow: 0 8px 40px rgba(5,13,31,.12);
  z-index: 9999;
}
.nav__drop::before {
  content: ''; position: absolute; top: -12px; left: 0;
  width: 100%; height: 12px;
}
.nav__dropdown:hover .nav__drop {
  opacity: 1; pointer-events: all; transform: translateY(0);
}
.nav__drop a {
  display: block; padding: 11px 16px; border-radius: 4px;
  font-size: 14px; font-weight: 500; color: var(--black);
  text-decoration: none;
  transition: background .15s, color .15s;
}
.nav__drop a:hover { background: rgba(0,80,255,.06); color: var(--blue); }
.nav__right { display: flex; align-items: center; gap: 16px; flex-shrink: 0; margin-left: auto; }
.nav__login-btn {
  font-size: 14px; font-weight: 600; color: var(--black);
  padding: 8px 16px; border-radius: 6px;
  border: 1px solid rgba(5,13,31,.15);
  text-decoration: none;
  transition: background .15s;
}
.nav__login-btn:hover { background: rgba(5,13,31,.05); }
.btn { display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 18px; border-radius: 6px; font-size: 14px; font-weight: 600;
  text-decoration: none; transition: background .15s, transform .15s;
  cursor: pointer; border: 1px solid transparent;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.btn--blue { background: var(--blue); color: var(--white); border-color: var(--blue); }
.btn--blue:hover { background: #003FCC; }
.nav__search-btn {
  width: 36px; height: 36px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid rgba(5,13,31,.12);
  color: var(--black); cursor: pointer;
}
.nav__search-btn:hover { background: rgba(5,13,31,.05); }
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 4px; cursor: pointer; }
.hamburger span { width: 24px; height: 2px; background: var(--black); display: block; transition: all .3s; }

/* ── MOBILE MENU ────────────────────────────────────────────── */
.mobile-menu {
  display: none; position: fixed; top: var(--nav-h); left: 0; width: 100%;
  background: var(--white); z-index: 999;
  padding: 8px var(--px) 32px;
  border-bottom: 1px solid rgba(5,13,31,.08);
  flex-direction: column; gap: 0;
  max-height: calc(100vh - var(--nav-h)); overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mob-section { border-bottom: 1px solid rgba(5,13,31,.06); }
.mob-section:last-child { border-bottom: none; }
.mob-toggle {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 14px 4px; font-size: 16px; font-weight: 600;
  color: var(--black); background: none; border: none; cursor: pointer;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.mob-toggle svg { transition: transform .2s; }
.mob-section.open .mob-toggle svg { transform: rotate(180deg); }
.mob-drop {
  display: none; flex-direction: column; padding: 0 4px 12px;
}
.mob-section.open .mob-drop { display: flex; }
.mob-drop a {
  padding: 8px 12px; font-size: 14px; color: var(--black);
  opacity: .7; text-decoration: none;
}
.mob-drop a:hover { opacity: 1; color: var(--blue); }
.mob-actions {
  display: flex; flex-direction: column; gap: 12px; padding: 20px 4px 0;
}
.mob-login {
  text-align: center; padding: 10px; font-size: 14px; font-weight: 600;
  border: 1px solid rgba(5,13,31,.15); border-radius: 6px;
  color: var(--black); text-decoration: none;
}

/* ── FOOTER ─────────────────────────────────────────────────── */
.footer {
  background: var(--dark); color: var(--white);
  padding: clamp(64px, 9vh, 110px) var(--px) 40px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.footer__grid {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr 1fr; gap: 36px;
}
.footer__brand { display: flex; flex-direction: column; gap: 18px; }
.footer__tagline { font-size: 14px; opacity: .45; line-height: 1.65; max-width: 260px; }
.footer__col h4 {
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: 11px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; opacity: .35; margin-bottom: 20px;
  color: var(--white);
}
.footer__col a {
  display: block; font-size: 14px; opacity: .5; margin-bottom: 12px;
  color: var(--white); text-decoration: none;
  transition: opacity .2s;
}
.footer__col a:hover { opacity: 1; color: var(--white); }
.footer__brand a { color: var(--white); text-decoration: none; }
.footer__bottom {
  max-width: var(--max-w); margin: 56px auto 0;
  padding-top: 28px; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  font-size: 13px; opacity: .7;
}
.footer__bottom a { color: var(--white); text-decoration: none; opacity: .8; }
.footer__bottom a:hover { opacity: 1; }
.footer__social { display: flex; gap: 12px; }
.footer__social a {
  width: 32px; height: 32px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.08); color: var(--white);
}
.footer__social a:hover { background: rgba(255,255,255,.16); }
.footer__contact { margin-left: auto; }
.footer__contact-btn { padding: 8px 16px; border-radius: 6px; font-size: 13px; font-weight: 600;
  text-decoration: none; color: var(--white);
}
.footer__contact-btn--demo { background: var(--blue); }
.footer__contact-btn--demo:hover { background: #003FCC; }
.footer__bottom-links { display: flex; gap: 16px; }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 960px) {
  .nav__links { display: none; }
  .hamburger { display: flex; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .footer__grid { grid-template-columns: 1fr; }
}

/* ── BODY OFFSET — make room for the fixed nav ──────────────── */
body { padding-top: var(--nav-h); }
.stagger.on > *:nth-child(6) { opacity:1; transform:none; transition-delay:.5s; }

/* ══════════════════════════════════════════
   MEGA MENU
══════════════════════════════════════════ */
.has-mega { position: static !important; }
.has-mega > .nav__drop { display: none !important; }

.nav__mega {
  position: fixed;
  top: var(--nav-h, 64px);
  left: 0; right: 0;
  z-index: 9998;
  background: var(--white);
  border-top: 3px solid var(--blue);
  box-shadow: 0 16px 56px rgba(5,13,31,.14);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease;
}
.mega-open .nav__mega {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.nav__mega-inner {
  max-width: var(--max-w, 1200px);
  margin: 0 auto;
  padding: 28px var(--px, 24px) 32px;
}
.nav__mega-body {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 28px;
  align-items: start;
}
.nav__mega-label {
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.nav__mega-grid {
  display: grid;
  gap: 2px;
}
.nav__mega-grid--2col { grid-template-columns: repeat(2, 1fr); }
.nav__mega-grid--3col { grid-template-columns: repeat(3, 1fr); }
.nav__mega-grid--4col { grid-template-columns: repeat(4, 1fr); }

.nav__mega-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: background .14s;
}
.nav__mega-item:hover { background: rgba(0,80,255,.045); }
.nav__mega-item:hover .nav__mega-title { color: var(--blue); }

.nav__mega-icon {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: rgba(0,80,255,.07);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--blue);
}
.nav__mega-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.3;
  transition: color .14s;
}
.nav__mega-sub {
  font-size: 11.5px;
  color: rgba(5,13,31,.5);
  line-height: 1.45;
  margin-top: 2px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Promo card */
.nav__mega-promo {
  background: linear-gradient(135deg, #050D1F 0%, #0a1f5c 55%, #0050FF 100%);
  border-radius: 14px;
  padding: 22px;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 190px;
  position: relative;
  overflow: hidden;
}
.nav__mega-promo::after {
  content: '';
  position: absolute;
  width: 180px; height: 180px;
  right: -50px; bottom: -50px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255,255,255,.18) 0%, transparent 70%);
  pointer-events: none;
}
.nav__mega-promo-icon {
  margin: 8px 0 4px;
  color: rgba(255,255,255,.75);
}
.nav__mega-promo-badge {
  display: inline-flex;
  align-self: flex-start;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.nav__mega-promo-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14.5px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.nav__mega-promo-sub {
  font-size: 11.5px;
  line-height: 1.6;
  color: rgba(255,255,255,.68);
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.nav__mega-promo-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: auto;
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: gap .14s;
  position: relative;
  z-index: 1;
}
.nav__mega-promo-cta:hover { gap: 9px; }

/* Multi-section mega menu */
.nav__mega-section { }
.nav__mega-divider {
  height: 1px;
  background: rgba(5,13,31,.07);
  margin: 16px 0;
}
.nav__mega-grid--1col { grid-template-columns: 1fr; }

/* Active trigger highlight */
.has-mega.mega-open > a {
  color: var(--blue) !important;
  opacity: 1 !important;
}

@media (max-width: 960px) {
  .nav__mega { display: none !important; }
}

.search-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(5,13,31,.82); backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex; flex-direction: column; align-items: center;
  padding: clamp(80px,12vh,140px) clamp(16px,5vw,60px) 40px;
  opacity: 0; pointer-events: none;
  transition: opacity .2s;
}
.search-overlay.open {
  opacity: 1; pointer-events: all;
}

/* Search box */
.search-box {
  width: 100%; max-width: 720px;
  background: var(--white); border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,.4);
  transform: translateY(-16px); transition: transform .25s cubic-bezier(.16,1,.3,1);
}
.search-overlay.open .search-box { transform: translateY(0); }

.search-input-row {
  display: flex; align-items: center; gap: 12px; padding: 18px 22px;
  border-bottom: 1px solid rgba(5,13,31,.08);
}
.search-icon-inner { color: rgba(5,13,31,.35); flex-shrink: 0; }
.search-input {
  flex: 1; border: none; outline: none; font-size: 18px;
  font-family: 'Plus Jakarta Sans', sans-serif; color: var(--black);
  background: transparent; font-weight: 500;
}
.search-input::placeholder { color: rgba(5,13,31,.3); }
.search-kbd {
  font-size: 11px; font-weight: 700; color: rgba(5,13,31,.3);
  background: rgba(5,13,31,.06); border: 1px solid rgba(5,13,31,.1);
  border-radius: 4px; padding: 3px 7px; white-space: nowrap;
}
.search-close-btn {
  background: none; border: none; cursor: pointer; padding: 4px;
  color: rgba(5,13,31,.4); display: flex; align-items: center;
  transition: color .15s;
}
.search-close-btn:hover { color: var(--black); }

/* Results */
.search-results {
  max-height: 400px; overflow-y: auto;
}
.search-results:empty { display: none; }
.search-result-item {
  display: flex; flex-direction: column; gap: 4px;
  padding: 14px 22px; border-bottom: 1px solid rgba(5,13,31,.05);
  cursor: pointer; text-decoration: none; color: var(--black);
  transition: background .15s;
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: rgba(0,80,255,.04); }
.search-result-item.selected { background: rgba(0,80,255,.06); }
.sr-section {
  font-size: 10px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--blue);
}
.sr-title {
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700;
  font-size: 15px; letter-spacing: -0.01em;
}
.sr-title mark {
  background: rgba(0,80,255,.15); color: var(--blue);
  border-radius: 2px; padding: 0 2px;
}
.sr-excerpt { font-size: 13px; color: rgba(5,13,31,.5); line-height: 1.5; }
.sr-excerpt mark {
  background: rgba(0,80,255,.1); color: var(--blue);
  border-radius: 2px; padding: 0 2px;
}

/* Empty / loading states */
.search-empty {
  padding: 32px 22px; text-align: center; color: rgba(5,13,31,.4); font-size: 14px;
}
.search-footer {
  padding: 10px 22px; border-top: 1px solid rgba(5,13,31,.06);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11px; color: rgba(5,13,31,.3);
}
.search-footer-keys { display: flex; gap: 12px; align-items: center; }
.sf-key {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; color: rgba(5,13,31,.35);
}
.sf-key kbd {
  background: rgba(5,13,31,.06); border: 1px solid rgba(5,13,31,.1);
  border-radius: 3px; padding: 1px 5px; font-size: 10px; font-family: inherit;
}

/* ══════════════════════════════════════════
   SHARED PROB-3COL (tick / cross format)
   Used on industry Real Problem sections
