/* ========== SHARED NAVBAR ========== */
.navbar {
  position: relative;
  z-index: 100;
  width: 100%;
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  position: relative;
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  z-index: 1;
}

.navbar__logo-img {
  width: 50px;
  height: 50px;
  border-radius: 5px;
  flex-shrink: 0;
  display: block;
}

.navbar__logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 0;
}

.navbar__logo-text .bld {
  font-family: var(--font-logo);
  font-weight: 100;
  font-style: normal;
  font-size: 36.13px;
  line-height: 1;
  letter-spacing: 0.07em;
}

.navbar__logo-text .track {
  font-family: var(--font-logo);
  font-weight: 100;
  font-style: normal;
  font-size: 18.73px;
  line-height: 1;
  letter-spacing: 0.07em;
}

.navbar__links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar__link {
  font-family: var(--font-body);
  font-size: 17.52px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 0.2s ease;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  line-height: 1.2;
}

.navbar__chevrons {
  position: relative;
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.navbar__chevron {
  width: 16px;
  height: 16px;
  display: block;
  opacity: 0.85;
}

.navbar__chevron--up {
  display: none;
  opacity: 1;
}

.navbar__link--solutions[aria-expanded="true"] .navbar__chevron--down {
  display: none;
}

.navbar__link--solutions[aria-expanded="true"] .navbar__chevron--up {
  display: block;
}

.navbar__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  z-index: 1;
}

.navbar__actions .btn--ghost {
  padding: 12px 22px;
  border-radius: 12.51px;
  font-weight: 600;
  font-size: 15px;
  border-width: 1.5px;
}

.navbar__actions .btn--primary {
  padding: 12px 30px;
  border-radius: 12.51px;
  font-weight: 600;
  font-size: 15px;
  box-shadow: none;
}

.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.navbar__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
}

/* ========== DARK NAVBAR (home / hero) ========== */
.navbar--dark {
  padding: 16px 0 0;
  background: transparent;
}

.navbar--dark .navbar__logo-text .bld,
.navbar--dark .navbar__logo-text .track {
  color: #ffffff;
}

.navbar--dark .navbar__link {
  color: #FFFFFFCC;
}

.navbar--dark .navbar__link:hover,
.navbar--dark .navbar__link.is-active,
.navbar--dark .navbar__link--solutions[aria-expanded="true"] {
  color: #4F46E5;
}

.navbar--dark .navbar__toggle span {
  background: var(--color-white);
}

body:not(:has(.hero)) .navbar--dark {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

/* ========== WHITE NAVBAR ========== */
.navbar--white {
  background: #ffffff;
  border-bottom: 1px solid #E5E7EB;
  padding: 16px 0;
}

.navbar--white .navbar__logo-text .bld,
.navbar--white .navbar__logo-text .track {
  color: #4F46E5;
}

.navbar--white .navbar__link {
  color: #0B1020B2;
}

.navbar--white .navbar__link:hover,
.navbar--white .navbar__link.is-active,
.navbar--white .navbar__link--solutions[aria-expanded="true"] {
  color: #4F46E5;
}

.navbar--white .navbar__chevron--down {
  filter: brightness(0);
  opacity: 0.55;
}

.navbar--white .navbar__chevron--up {
  filter: none;
  opacity: 1;
}

.navbar--white .navbar__signup {
  color: #0F172A;
  border-color: #D1D5DB;
}

.navbar--white .navbar__signup:hover {
  background: #F8FAFC;
  border-color: #9CA3AF;
  color: #0F172A;
}

.navbar--white .navbar__toggle span {
  background: #0F172A;
}

/* ========== SOLUTIONS DROPDOWN ========== */
.solutions-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  width: 100%;
  margin-top: 14px;
  background: #ffffff;
  border-top: 1px solid #E5E7EB;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.12);
  overflow: hidden;
  z-index: 90;
}

.solutions-menu[hidden] {
  display: none;
}

.solutions-menu__inner {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) 1.4fr;
  gap: 0;
  align-items: stretch;
  padding-top: 0;
  padding-bottom: 0;
}

.solutions-menu__feature {
  background: #FFF4EB;
  border: none;
  border-right: 1px solid #4F46E51A;
  border-radius: 0;
  padding: 40px 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.solutions-menu__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.31px;
  color: #4F46E5;
  margin: 0 0 16px;
}

.solutions-menu__eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4F46E5;
  flex-shrink: 0;
}

.solutions-menu__feature-title {
  font-family: var(--font-heading);
  font-size: 27px;
  max-width: 350px;
  font-weight: 600;
  line-height: 40px;
  color: #333333;
  margin: 0 0 18px;
}

.solutions-menu__feature-desc {
  font-size: 13.33px;
  max-width: 300px;
  line-height: 20px;
  color: #64748B;
  margin: 0 0 10px;
}

.solutions-menu__story-link {
  font-size: 13.33px;
  font-weight: 400;
  color: #4F46E5;
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-bottom: 28px;
}

.solutions-menu__story-link:hover {
  color: #4338CA;
}

.solutions-menu__cta {
  width: 100%;
  justify-content: space-between;
  gap: 16px;
  border-radius: 10.43px;
  padding: 14px 22px;
  font-weight: 600;
  box-shadow: none;
  margin-bottom: 12px;
}

.solutions-menu__cta .btn__arrow {
  width: 18px;
  height: 18px;
  margin-left: auto;
  flex-shrink: 0;
}

.solutions-menu__note {
  width: 100%;
  text-align: left;
  font-size: 11.67px;
  color: #64748B;
  margin: 0;
}

.solutions-menu__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 50px;
  row-gap: 50px;
  padding: 40px 20px 40px 50px;
  background: #ffffff;
  align-content: center;
}

.solutions-menu__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 0;
  border-radius: 0;
  transition: opacity 0.2s ease;
}

.solutions-menu__item:hover {
  opacity: 0.85;
}

.solutions-menu__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.solutions-menu__icon img {
  width: 32px;
  height: 32px;
  display: block;
}

.solutions-menu__icon--purple { background: #4F46E514; }
.solutions-menu__icon--orange { background: #F9731614; }
.solutions-menu__icon--amber { background: #EA580C14; }
.solutions-menu__icon--blue { background: #6366F114; }
.solutions-menu__icon--sky { background: #3B82F614; }
.solutions-menu__icon--indigo { background: #4F46E514; }

.solutions-menu__item-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: #0B1020;
  line-height: 1.3;
}

.solutions-menu__item-desc {
  font-size: 12.5px;
  line-height: 1.5;
  color: #64748B;
  max-width: 220px;
}

.navbar.is-solutions-open {
  z-index: 200;
}

@media (max-width: 1100px) {
  .navbar__links {
    display: none;
  }

  .navbar__actions .btn--ghost,
  .navbar__actions .btn--outline,
  .navbar--white .navbar__actions a:not(.btn--primary) {
    display: none;
  }

  .navbar__toggle {
    display: flex;
  }

  .navbar__actions {
    gap: 10px;
  }

  .navbar__actions .btn--primary {
    padding: 10px 16px;
    font-size: 14px;
  }

  .navbar.is-open .navbar__links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 16px;
    right: 16px;
    transform: none;
    background: rgba(10, 12, 20, 0.96);
    padding: 24px;
    border-radius: var(--radius-md);
    gap: 20px;
    z-index: 30;
    align-items: flex-start;
    max-width: calc(100% - 32px);
  }

  .navbar--white.is-open .navbar__links {
    background: #ffffff;
    border: 1px solid #E5E7EB;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.1);
  }

  .solutions-menu__inner {
    grid-template-columns: 1fr;
  }

  .solutions-menu__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .solutions-menu {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    margin-top: 0;
    max-height: calc(100vh - 100px);
    overflow: auto;
    border-top: 1px solid #E5E7EB;
  }

  .solutions-menu__grid {
    grid-template-columns: minmax(0, 1fr);
    padding: 20px;
  }

  .solutions-menu__feature {
    padding: 24px;
  }

  .solutions-menu__item-desc {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .navbar__inner {
    gap: 10px;
    min-width: 0;
    max-width: 100%;
  }

  .navbar__logo {
    min-width: 0;
    gap: 8px;
  }

  .navbar__logo-img {
    width: 40px;
    height: 40px;
  }

  .navbar__logo-text .bld {
    font-size: 28px;
  }

  .navbar__logo-text .track {
    font-size: 14.5px;
  }

  .navbar__actions {
    gap: 8px;
    min-width: 0;
  }

  .navbar__actions .btn--primary {
    padding: 9px 12px;
    font-size: 13px;
  }

  .navbar__toggle {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 380px) {
  .navbar__logo-text {
    display: none;
  }

  .navbar__actions .btn--primary {
    padding: 8px 10px;
    font-size: 12.5px;
  }
}
