/* ══════════════════════════════════════
   critical.css — Above-the-fold only
   Header + nav shell + security bar
   ══════════════════════════════════════ */

/* ── Header ── */
#custom-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
}
.container.brb {
  max-width: 1320px;
  width: 100%;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  box-sizing: border-box;
}
.container.brb > .row {
  display: flex;
  align-items: center;
  height: 72px;
}
.col.logo { flex-shrink: 0; }
.col.logo a { display: flex; align-items: center; }
.col.logo img { height: 40px; width: auto; display: block; }
.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
}
.menus_container1.desktop-only {
  display: flex;
  align-items: center;
  flex: 1;
  margin-left: 32px;
}
#nav-menu {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
}
#nav-menu > li {
  position: static;
}

/* Main menu links */
.main_menu {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 24px 16px;
  font-size: 16px;
  font-weight: 500;
  color: #352E31;
  cursor: pointer;
  transition: color .2s;
  white-space: nowrap;
}
.main_menu:hover { color: #4449cf; }
.main_menu svg {
  flex-shrink: 0;
  transition: transform .2s;
}
#nav-menu > li:hover .main_menu { color: #4449cf; }
#nav-menu > li:hover .main_menu svg { transform: rotate(180deg); }

/* Mega Menu shell */
.mega-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid #ececf1;
  border-radius: 0 0 19px 19px;
  box-shadow: 0 12px 40px rgba(0,0,0,.08);
  z-index: 200;
  overflow: hidden;
}
#nav-menu > li:hover > .mega-menu { display: block; }

/* Language switcher */
.lang_change { margin-left: auto; }
.lang_change ul { display: flex; align-items: center; }
.lang_change ul li a {
  font-size: 16px;
  font-weight: 500;
  color: #352E31;
  padding: 8px 12px;
  display: block;
}
.lang_change ul li a:hover { color: #4449cf; }

/* Search icon */
.col.searchform { display: flex; align-items: center; margin-left: 8px; }
#search-icon {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
}
#search-icon:hover { color: #4449cf; }
#search-icon svg { width: 22px; height: 22px; flex-shrink: 0; }

/* Book a Demo */
.col.request_btn { margin-left: 16px; flex-shrink: 0; }
.col.request_btn a {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: #5c65f5;
  border: 2px solid #5c65f5;
  border-radius: 6px;
  transition: background .2s;
  white-space: nowrap;
}
.col.request_btn a:hover { background: #4a53e0; border-color: #4a53e0; }

/* Security Bar */
.header-security-bar { background: #162aa8; padding: 8px 0; overflow: hidden; }
.header-security-bar__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  overflow: hidden;
  gap: 64px;
  align-items: center;
}
.header-security-item {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  line-height: 1.3;
  color: #fff;
  white-space: nowrap;
  padding: 0;
  background: transparent;
}
.header-security-item__icon {
  display: inline-flex;
  width: 24px; height: 24px;
  margin-right: 12px;
  flex-shrink: 0;
}
.header-security-item__icon img { width: 100%; height: 100%; display: block; }
.header-security-item:hover .header-security-item__text { opacity: 0.8; }

/* Mobile overlay */
.menu-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.4);
  z-index: 1000;
  display: none;
}
.menu-overlay.active { display: block; }

@media (max-width: 1199px) {
  .menus_container1.desktop-only { display: none; }
  .hamburger { display: block; margin-left: auto; }
  .header-security-bar { display: none; }
}

/* ── Above-the-fold: Homepage hero (dup of main.css — must render before async CSS) ── */
.hero-section {
  background: #f8f9fc url('/images/pricing-bg.svg') no-repeat center center;
  background-size: cover;
  padding: 120px 24px 140px;
  text-align: center;
}
.hero-inner { max-width: 820px; margin: 0 auto; }
.hero-title {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.12;
  color: #1a1a2e;
  margin: 0 0 24px;
  letter-spacing: -0.5px;
}
.hero-subtitle {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.65;
  color: #535356;
  margin: 0 auto 40px;
  max-width: 640px;
}
.hero-buttons { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 36px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  min-width: 180px;
}
.hero-btn--filled { background: #5c65f5; color: #fff; border: 2px solid #5c65f5; }
.hero-btn--outline { background: #fff; color: #5c65f5; border: 2px solid #5c65f5; }

/* ── Above-the-fold: logos strip (sits right under hero; was the CLS 0.85 source) ── */
.logos-section { background: #eef0f8; padding: 56px 24px; text-align: center; }
.logos-inner { max-width: 1200px; margin: 0 auto; }
.logos-title { font-size: 20px; font-weight: 500; color: #1f1f1f; margin: 0 0 36px; letter-spacing: 0.02em; }
.logos-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin: 0 0 32px;
}
.logos-row img {
  height: 40px;
  width: auto;
  max-width: 100px;
  object-fit: contain;
  display: block;
  filter: grayscale(100%);
  opacity: 0.6;
}
.logos-subtitle { font-size: 18px; font-weight: 400; color: #1F1F1F; margin: 0; }
.logos-section--white { background: #fff; }

@media (max-width: 768px) {
  .hero-section { padding: 80px 20px 100px; }
  .hero-title { font-size: 34px; }
  .hero-subtitle { font-size: 16px; }
  .hero-btn { min-width: 160px; padding: 12px 28px; font-size: 15px; }
  .logos-section { padding: 40px 20px; }
  .logos-row { flex-wrap: wrap; gap: 16px 24px; justify-content: center; }
  .logos-row img { height: 28px; }
}
