/*!
 * Marketing homepage chrome — unique filename (nginx caches /css/ immutable).
 *
 * elinomtech.com (about.html) uses the ERP navbar: centred AI search,
 * brand mark beside the wordmark, 40px / 12px utility orbs lifted onto
 * the tab row (same as erp.elinomtech.com), coloured tabs, product
 * feedback, and a lavender Matrix typewriter on the hero badge.
 */

@keyframes edot-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.45;
    transform: scale(0.65);
  }
}

@keyframes mkt-cta-shine {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

.material-symbols-outlined {
  font-family: "Material Symbols Outlined";
  font-weight: 400;
  font-style: normal;
  font-size: 18px;
  line-height: 1;
  display: inline-block;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
}

html body.erp-body {
  --erp-util-size: 40px;
  --erp-util-gap: 12px;
  --erp-util-icon: 1rem;
}

/* Logo mark stays visible beside the wordmark */
html body.erp-body #navbar a.logo.enhanced-logo,
html body.erp-body #navbar .nav-container > a.logo.enhanced-logo {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex: 0 0 auto !important;
}

html body.erp-body #navbar a.logo.enhanced-logo svg,
html body.erp-body #navbar .nav-container > a.logo.enhanced-logo svg {
  display: block !important;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  flex: 0 0 44px !important;
  visibility: visible !important;
  opacity: 1 !important;
}

html body.erp-body #navbar a.logo.enhanced-logo .erp-logo-gradient-text,
html body.erp-body #navbar a.logo.enhanced-logo .notranslate {
  display: inline-block !important;
}

html body.erp-body #navbar #erpAppSwitcher,
html body.erp-body #navbar .erp-app-switcher {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 40px !important;
  height: 40px !important;
  flex: 0 0 40px !important;
  color: #c0c1ff !important;
}

html body.erp-body #navbar #navMenu > li > a .nav-row-icon {
  display: inline-block !important;
  margin-right: 0.35rem !important;
}

/* Mega dropdowns — same 3/4-column grid as erp.elinomtech.com */
@media (min-width: 1280px) {
  html body.erp-body #navbar,
  html body.erp-body #navbar .nav-container,
  html body.erp-body #navbar #navMenu {
    overflow: visible !important;
  }

  html body.erp-body #navbar #navMenu > li.product-li > .dropdown-menu.lp-is-4925860d,
  html body.erp-body #navbar #navMenu > li.solutions-li > .dropdown-menu.lp-is-17bf536d,
  html body.erp-body #navbar #navMenu > li.nav-dropdown > .dropdown-menu.lp-is-f042200a {
    min-width: min(72rem, calc(100vw - 3rem)) !important;
    width: max-content !important;
    max-width: calc(100vw - 2.5rem) !important;
    padding: 1.05rem 1.2rem !important;
    left: 0 !important;
  }

  html body.erp-body #navbar #navMenu > li.product-li > .dropdown-menu.lp-is-4925860d > li,
  html body.erp-body #navbar #navMenu > li.solutions-li > .dropdown-menu.lp-is-17bf536d > li,
  html body.erp-body #navbar #navMenu > li.nav-dropdown > .dropdown-menu.lp-is-f042200a > li {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    align-items: start !important;
    gap: 0 1.2rem !important;
    width: 100% !important;
  }

  html body.erp-body #navbar #navMenu > li.solutions-li > .dropdown-menu.lp-is-17bf536d > li {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }

  html body.erp-body #navbar #navMenu > li.nav-dropdown > .dropdown-menu.lp-is-f042200a > li {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  }

  html body.erp-body #navbar #navMenu > li.product-li > .dropdown-menu.lp-is-4925860d > li > div,
  html body.erp-body #navbar #navMenu > li.solutions-li > .dropdown-menu.lp-is-17bf536d > li > div,
  html body.erp-body #navbar #navMenu > li.nav-dropdown > .dropdown-menu.lp-is-f042200a > li > div {
    min-width: 0 !important;
    padding: 0 0.45rem !important;
  }

  html body.erp-body #navbar #navMenu > li.product-li > .dropdown-menu.lp-is-4925860d > li > div + div,
  html body.erp-body #navbar #navMenu > li.solutions-li > .dropdown-menu.lp-is-17bf536d > li > div + div,
  html body.erp-body #navbar #navMenu > li.nav-dropdown > .dropdown-menu.lp-is-f042200a > li > div + div {
    border-left: 1px solid rgb(148 163 184 / 18%) !important;
  }
}

/* ── Utility row: AI search centred; orbs equal size, equal gap ── */
@media (min-width: 901px) {
  html body.erp-body #navbar #util-bar .util-bar-inner {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: var(--erp-util-gap) !important;
    pointer-events: none !important;
  }

  html body.erp-body #navbar #util-bar .util-bar-spacer,
  html body.erp-body #navbar #util-bar .util-bar-inner > #navUserProfile {
    display: none !important;
  }

  html body.erp-body #navbar #util-bar #utilAiSearchSlot,
  html body.erp-body #navbar #util-bar .util-ai-search-slot {
    position: absolute !important;
    left: 50% !important;
    right: auto !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: min(42rem, calc(100% - 4rem)) !important;
    pointer-events: auto !important;
    z-index: 2 !important;
  }

  html body.erp-body #navbar #util-bar #us-trigger,
  html body.erp-body #navbar #util-bar .us-trigger {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    pointer-events: auto !important;
  }

  html body.erp-body #navbar #util-bar .util-bar-inner > .nav-auth-buttons,
  html body.erp-body #navbar #util-bar .util-bar-inner > #navUserChip,
  html body.erp-body #navbar #util-bar .util-bar-inner > #navNotifWrap,
  html body.erp-body #navbar #util-bar .util-bar-inner > .util-lang-wrap,
  html body.erp-body #navbar #util-bar .util-bar-inner > #utilLangWrapper {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: var(--erp-util-size) !important;
    min-width: var(--erp-util-size) !important;
    max-width: var(--erp-util-size) !important;
    margin: 0 !important;
    padding: 0 !important;
    pointer-events: auto !important;
  }

  html body.erp-body #navbar #util-bar #loginBtn,
  html body.erp-body #navbar #util-bar #loginBtn.erp-login-orb,
  html body.erp-body #navbar #util-bar #navNotifBell,
  html body.erp-body #navbar #util-bar #navUserChip .nav-user-avatar,
  html body.erp-body #navbar #util-bar .util-lang-btn,
  html body.erp-body #navbar #util-bar .elinom-lang-btn,
  html body.erp-body #navbar #util-bar #currentLangDisplay,
  html body.erp-body #navbar #util-bar .util-lang-btn .fa-globe,
  html body.erp-body #navbar #util-bar .elinom-lang-btn .fa-globe,
  html body.erp-body #navbar #util-bar #currentLangDisplay .fa-globe {
    width: var(--erp-util-size) !important;
    height: var(--erp-util-size) !important;
    min-width: var(--erp-util-size) !important;
    min-height: var(--erp-util-size) !important;
    max-width: var(--erp-util-size) !important;
    max-height: var(--erp-util-size) !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  html body.erp-body #navbar #util-bar #currentLangText,
  html body.erp-body #navbar #util-bar .util-lang-btn .fa-chevron-down,
  html body.erp-body #navbar #util-bar .elinom-lang-btn .fa-chevron-down,
  html body.erp-body #navbar #util-bar #currentLangDisplay .fa-chevron-down {
    display: none !important;
  }

  html body.erp-body #navbar #util-bar .util-lang-wrap .dropdown-menu {
    display: none !important;
    position: absolute !important;
  }

  html body.erp-body #navbar #util-bar .util-lang-wrap.open .dropdown-menu,
  html body.erp-body #navbar #util-bar .util-lang-wrap:hover .dropdown-menu,
  html body.erp-body #navbar #util-bar .util-lang-wrap:focus-within .dropdown-menu {
    display: block !important;
  }
}

/* Lift the 40px cluster onto the tab row from the right, as ERP does */
@media (min-width: 1280px) {
  html body.erp-body #navbar .container.nav-container,
  html body.erp-body #navbar .nav-container {
    padding-right: 23.5rem !important;
  }

  html body.erp-body #navbar #util-bar .util-bar-inner > .nav-auth-buttons,
  html body.erp-body #navbar #util-bar .util-bar-inner > #navUserChip,
  html body.erp-body #navbar #util-bar .util-bar-inner > #navNotifWrap,
  html body.erp-body #navbar #util-bar .util-bar-inner > .util-lang-wrap,
  html body.erp-body #navbar #util-bar .util-bar-inner > #utilLangWrapper {
    align-self: flex-start !important;
    position: relative !important;
    top: calc(-1 * var(--erp-nav-main-h, 4rem)) !important;
    height: var(--erp-nav-main-h, 4rem) !important;
    min-height: var(--erp-nav-main-h, 4rem) !important;
    max-height: var(--erp-nav-main-h, 4rem) !important;
    z-index: 7 !important;
  }
}

/* Hero CTAs — brand gradient, matching the ERP suite */
.c-hero-actions {
  gap: 1.1rem !important;
}

.c-hero-actions .c-btn {
  padding: 1rem 2.35rem !important;
  font-size: 1.02rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.01em !important;
  min-height: 3.15rem !important;
  border-radius: 999px !important;
  transition:
    transform 0.2s ease,
    filter 0.2s ease,
    box-shadow 0.2s ease !important;
}

.c-hero-actions .c-btn-primary {
  background: linear-gradient(
    120deg,
    #38bdf8 0%,
    #6366f1 34%,
    #f472b6 67%,
    #f59e0b 100%
  ) !important;
  background-size: 160% 100% !important;
  animation: mkt-cta-shine 8s linear infinite alternate !important;
  color: #fff !important;
  border: 0 !important;
  box-shadow:
    0 12px 34px rgb(99 102 241 / 42%),
    0 0 0 1px rgb(255 255 255 / 12%) inset !important;
}

.c-hero-actions .c-btn-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-3px) scale(1.02) !important;
}

.c-hero-actions .c-btn-ghost {
  background: rgb(192 193 255 / 12%) !important;
  border: 1.5px solid rgb(192 193 255 / 38%) !important;
  color: #eef0ff !important;
  -webkit-text-fill-color: #eef0ff !important;
  box-shadow: 0 8px 24px rgb(15 23 42 / 28%) !important;
}

.c-hero-actions .c-btn-ghost:hover {
  background: rgb(192 193 255 / 20%) !important;
  border-color: rgb(192 193 255 / 55%) !important;
  color: #fff !important;
}

/* Phone drawer: Create Account stays left-aligned like ERP */
@media (max-width: 1279px) {
  html body.erp-body
    #navbar
    #navMenu.mobile-open
    .mobile-util-action.mobile-util-action--signup:not(.erp-login-orb):not(.mobile-login-orb),
  html body.erp-body
    #navbar
    #navMenu.mobile-open
    button.mobile-util-action.mobile-util-action--signup:not(.erp-login-orb):not(.mobile-login-orb) {
    justify-content: flex-start !important;
    justify-items: start !important;
  }

  html body.erp-body #navbar #mobileMenuBtn,
  html body.erp-body #navbar .mobile-menu-btn,
  html.erp-nav-drawer-open body.erp-body #navbar #mobileMenuBtn {
    border: 1.5px solid transparent !important;
    background:
      linear-gradient(#0b1220, #0b1220) padding-box,
      linear-gradient(
        120deg,
        #38bdf8 0%,
        #6366f1 34%,
        #f472b6 67%,
        #f59e0b 100%
      )
      border-box !important;
    background-image: linear-gradient(#0b1220, #0b1220),
      linear-gradient(
        120deg,
        #38bdf8 0%,
        #6366f1 34%,
        #f472b6 67%,
        #f59e0b 100%
      ) !important;
  }
}

/* Matrix badge on the marketing hero */
.c-hero .c-hero-badge.erp-hero-eyebrow,
.c-hero .c-hero-badge.is-matrix {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  max-width: min(100%, 46rem) !important;
  overflow: hidden !important;
  color: #c0c1ff !important;
  -webkit-text-fill-color: #c0c1ff !important;
  background: rgb(192 193 255 / 12%) !important;
  border: 1px solid rgb(192 193 255 / 28%) !important;
  font-family: ui-monospace, "Cascadia Mono", "SFMono-Regular", "Courier New",
    monospace !important;
  letter-spacing: 0 !important;
  padding: 0.45rem 1rem 0.45rem 0.85rem !important;
  white-space: nowrap !important;
}

.c-hero .c-hero-badge .erp-hero-eyebrow__sr {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.c-hero .c-hero-badge .erp-hero-eyebrow__matrix {
  display: inline-flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
  transform-origin: left center !important;
}

.c-hero .c-hero-badge .edot {
  display: inline-block !important;
  width: 0.42rem !important;
  height: 0.42rem !important;
  flex-shrink: 0 !important;
  border-radius: 999px !important;
  background: #ef4444 !important;
  box-shadow:
    0 0 0 3px rgb(239 68 68 / 22%),
    0 0 10px rgb(239 68 68 / 75%) !important;
  animation: edot-pulse 2s ease-in-out infinite !important;
}

.c-hero .c-hero-badge .pulse {
  display: none !important;
}

.c-hero .c-hero-badge .erp-mx-ch {
  display: inline-block !important;
  width: 0.62em !important;
  min-width: 0.62em !important;
  text-align: center !important;
  color: #c0c1ff !important;
  -webkit-text-fill-color: #c0c1ff !important;
  text-shadow: 0 0 8px rgb(192 193 255 / 45%) !important;
}

.c-hero .c-hero-badge .erp-mx-ch.is-settled {
  color: #d4d5ff !important;
  -webkit-text-fill-color: #d4d5ff !important;
}

.c-hero .c-hero-badge .erp-mx-ch.is-scan {
  color: #eef0ff !important;
  -webkit-text-fill-color: #eef0ff !important;
}

.c-hero .c-hero-badge .erp-mx-ch.is-space {
  width: 0.36em !important;
  min-width: 0.36em !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  text-shadow: none !important;
}

.c-hero .c-hero-badge .erp-mx-ch.is-wait {
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  text-shadow: none !important;
}

@media (max-width: 900px) {
  html body.erp-body #navbar a.logo.enhanced-logo svg {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
  }

  .c-hero .c-hero-badge.erp-hero-eyebrow {
    font-size: 0.48rem !important;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
    max-width: calc(100vw - 1.5rem) !important;
  }

  .c-hero .c-hero-badge .erp-mx-ch {
    width: 0.5em !important;
    min-width: 0.5em !important;
  }

  .c-hero .c-hero-badge .erp-mx-ch.is-space {
    width: 0.28em !important;
    min-width: 0.28em !important;
  }

  .c-hero-actions .c-btn {
    width: min(100%, 22rem) !important;
    justify-content: center !important;
  }
}
