
/* ─── NAVBAR ─── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  height: var(--nav-h);
  background: rgba(255,255,255,1);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-solid);
  transition: box-shadow .3s;
}
.navbar.scrolled { box-shadow: var(--shadow-md); }

.nav-inner {
  /* max-width: 1400px; */
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
}

/* ─── BRAND ─── */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: 8px;
}
.brand-logo {
  width: 36px; height: 36px;
  background: var(--secondary);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
}
.brand-logo::after {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  background: rgba(255,255,255,.15);
  border-radius: 50%;
  top: -4px; right: -4px;
}
.brand-logo i { color: #fff; font-size: 15px; position: relative; z-index: 1; }
.brand-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.08rem;
  color: var(--dark);
  letter-spacing: -.025em;
}
.brand-name span { color: var(--secondary); }
.brand-tagline {
  font-size: .58rem;
  font-weight: 500;
  color: var(--muted-light);
  letter-spacing: .07em;
  text-transform: uppercase;
  margin-top: 1px;
}

/* ─── DESKTOP NAV LINKS ─── */
.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 1px;
  margin: 0 auto;
}

.nav-links > li > a,
.nav-links > li > button {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 13px;
  font-size: .86rem;
  font-weight: 500;
  color: #2d3355;
  text-decoration: none;
  border-radius: var(--radius-sm);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.nav-links > li > a:hover,.nav-links li a.active-page, .d-sub.active-page, .d-link.active-page,
.nav-links > li > button:hover, .dropdown.show button,.dropdown.open button{ background: var(--secondary-light); color: var(--secondary); }

.chev {
  width: 12px; height: 12px;
  transition: transform .22s cubic-bezier(.4,0,.2,1);
  flex-shrink: 0;
  color: var(--muted-light);
}
.dropdown.open > button .chev,
.dropdown:hover > button .chev { transform: rotate(180deg); color: var(--secondary); }
  .dropdown { position: relative; }
  .dropdown::after {
    content: "";
    position: absolute;
    left: 0;
    top: 100%;
    width: 100%;
    height: 20px;
}

/* ─── MEGA MENU BASE ─── */
.mega-wrap {
  position: absolute;
  top: calc(100% + 10px);
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-solid);
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .22s, transform .22s, visibility .22s;
  z-index: 100;
}
.dropdown { position: relative; }
.dropdown:hover .mega-wrap,
.dropdown.open .mega-wrap {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateY(0);
}

/* ─── AI MSP MEGA MENU ─── */
.msp-mega {
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  min-width: 760px;
}
.dropdown:hover .msp-mega,
.dropdown.open .msp-mega {
  transform: translateX(-10%) translateY(0);
}

.msp-header {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.msp-header-badge {
  background: rgba(255,255,255,.18);
  border-radius: 8px;
  padding: 7px 10px;
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}
.msp-header p {
  color: rgba(255,255,255,.85);
  font-size: .78rem;
  line-height: 1.5;
}
.msp-header strong { color: #fff; }

.msp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 3px;
}

.msp-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 10px;
  text-decoration: none;
  transition: background .15s;
}
.msp-item:hover { background: var(--secondary-light); }
.msp-item:hover .msp-icon,.msp-item.active-page .msp-icon,.d-link.active-page .d-link-ico,.d-sub.active-page .d-sub-ico  { background: var(--secondary); color: #fff; }

.msp-icon {
  width: 30px; height: 30px;
  background: #fff3e6;
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  color: var(--secondary);
  font-size: .72rem;
  flex-shrink: 0;
  transition: background .15s, color .15s;
  margin-top: 1px;
}
.msp-name { font-size: .81rem; font-weight: 600; color: var(--dark); line-height: 1.25; }
.msp-desc { font-size: .7rem; color: var(--muted); margin-top: 1px; line-height: 1.3; }

/* ─── NAV RIGHT ─── */
.nav-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.explore-sep {
  width: 1px; height: 20px;
  background: var(--border-solid);
  margin: 0 4px;
}

.lbl-explore {
  font-size: .75rem;
  font-weight: 500;
  white-space: nowrap;
    color: #374151;
}

.btn-pill {
  font-size: .86rem;
  font-weight: 500;
  color: #374151;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: 1px solid var(--border-solid);
  transition: all .15s;
  white-space: nowrap;
  background: #fff;
}
.btn-pill:hover { border-color: var(--secondary); color: var(--secondary); background: var(--secondary-light); }

.btn-cta {
  background: var(--secondary);
  color: #fff;
  font-size: .86rem;
  font-weight: 600;
  padding: 8px 20px;
  border-radius:8px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: background .15s, box-shadow .15s, transform .1s;
  white-space: nowrap;
  font-family: var(--font-body);
  letter-spacing: -.01em;
  box-shadow: 0 2px 10px rgba(241,137,17,.3);
}
.btn-cta:hover {
  background: #ff8800;
  box-shadow: 0 4px 20px rgba(241,137,17,.45);
  transform: translateY(-1px);
}
.btn-cta i { font-size: .72rem; }

/* ─── HAMBURGER ─── */
.hamburger {
  display: none;
  width: 38px; height: 38px;
  background: none;
  border: 1px solid var(--border-solid);
  border-radius: 9px;
  cursor: pointer;
  color: var(--dark);
  align-items: center;
  justify-content: center;
  transition: all .15s;
  flex-shrink: 0;
}
.hamburger:hover { background: var(--secondary-light); border-color: var(--secondary); color: var(--secondary); }

/* ─── OVERLAY ─── */
.drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(8,12,36,.6);
  z-index: 1000;
  opacity: 0;
  transition: opacity .3s;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.drawer-overlay.show { display: block; }
.drawer-overlay.open { opacity: 1; }

/* ─── MOBILE DRAWER ─── */
.drawer {
  position: fixed;
  top: 0; right: 0;
  width: min(375px, 94vw);
  height: 100dvh;
  background: #fff;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  transform: translateX(105%);
  transition: transform .38s cubic-bezier(.32,0,.15,1);
  will-change: transform;
}
.drawer.open { transform: translateX(0); }

/* Drawer header */
.d-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  height: 64px;
  border-bottom: 1px solid var(--border-solid);
  flex-shrink: 0;
  gap: 12px;
}

.d-close {
  width: 36px; height: 36px;
  background: #f4f5fb;
  border: none; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--dark);
  flex-shrink: 0;
  transition: all .15s;
}
.d-close:hover { background: var(--secondary-light); color: var(--secondary); }

/* Drawer body */
.d-body {
  flex: 1;
  overflow-y: auto;
  padding: 10px 14px 24px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.d-body::-webkit-scrollbar { display: none; }

/* Flat nav items */
.d-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: #1e2238;
  font-size: .88rem;
  font-weight: 500;
  transition: background .15s, color .15s;
}
.d-link:hover { background: var(--secondary-light); color: var(--secondary); }
.d-link-ico {
  width: 32px; height: 32px;
  background: #fff3e6;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--secondary);
  font-size: .78rem;
  flex-shrink: 0;
}

/* Accordion */
.d-acc-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  color: #1e2238;
  font-size: .88rem;
  font-weight: 500;
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background .15s, color .15s;
}
.d-acc-btn:hover { background: var(--secondary-light); color: var(--secondary); }
.d-acc-btn.open { color: var(--secondary); background: var(--secondary-light); }
.d-acc-arrow { margin-left: auto; flex-shrink: 0; transition: transform .25s; color: var(--muted-light); }
.d-acc-btn.open .d-acc-arrow { transform: rotate(180deg); color: var(--secondary); }

/* Accordion panel */
.d-panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height .38s cubic-bezier(.4,0,.2,1);
}
.d-panel.open { max-height: 1200px; }
.d-panel-inner { padding: 6px 0 6px 8px; }

/* Sub items in panel */
.d-sub {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 9px;
  text-decoration: none;
  margin-bottom: 2px;
  transition: background .15s;
}
.d-sub:hover { background: var(--secondary-light); }
.d-sub-ico {
  width: 30px; height: 30px;
  background: #fff3e6;
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  color: var(--secondary);
  font-size: .7rem;
  flex-shrink: 0;
  transition: background .15s, color .15s;
}
.d-sub:hover .d-sub-ico { background: var(--secondary); color: #fff; }
.d-sub-name { font-size: .82rem; font-weight: 600; color: var(--dark); line-height: 1.2; }
.d-sub-desc { font-size: .69rem; color: var(--muted); line-height: 1.3; }

/* Divider & section labels */
.d-div { height: 1px; background: var(--border-solid); margin: 10px 0; }
.d-section {
  font-size: .66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted-light);
  padding: 14px 12px 6px;
}

/* Simple row items (explore) */
.d-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 9px;
  text-decoration: none;
  color: #374151;
  font-size: .84rem;
  font-weight: 500;
  transition: background .15s, color .15s;
  margin-bottom: 2px;
}
.d-row:hover { background: var(--secondary-light); color: var(--secondary); }
.d-row-ico {
  width: 28px; height: 28px;
  background: #f4f5fb;
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  color: var(--secondary);
  font-size: .7rem;
  flex-shrink: 0;
}

/* Drawer footer */
.d-foot {
  padding: 14px 18px 20px;
  border-top: 1px solid var(--border-solid);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.d-foot .btn-cta {
  justify-content: center;
  border-radius: 12px;
  padding: 13px;
  font-size: .9rem;
}
.d-foot-row { display: flex; gap: 8px; }
.d-foot-row .btn-pill {
  flex: 1;
  text-align: center;
  justify-content: center;
  display: flex;
  font-size: .76rem;
  padding: 8px 10px;
}

/* Drawer intro banner */
.d-intro {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 12px;
  margin-top: 4px;
}
.d-intro-label {
  font-size: .62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.65);
  margin-bottom: 4px;
}
.d-intro-title {
  /* font-family: var(--font-display); */
  font-size: .95rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}
.d-intro-sub {
  font-size: .72rem;
  color: rgba(255,255,255,.7);
  margin-top: 5px;
  line-height: 1.4;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1023px) {
  .nav-links, .nav-right .explore-sep,
  .nav-right .lbl-explore,
  .nav-right .btn-pill,
  .nav-right .btn-cta,.btn-demo { display: none; }
  .hamburger { display: flex; }
  .nav-inner { padding: 0 18px; }
}
@media (max-width: 479px) {
  .nav-inner { padding: 0 14px; }
}