/* Header bar — opaque so page content does not show through while scrolling */
header > .relative > .absolute.inset-0 {
  transition: background 0.28s ease, backdrop-filter 0.28s ease,
    border-color 0.28s ease;
}

header.lb-header--solid > .relative > .absolute.inset-0 {
  background: rgba(2, 8, 22, 0.94) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Landing: hero top — wordmark only, transparent bar */
header.lb-header--hero-at-top > .relative > .absolute.inset-0 {
  background: rgba(2, 8, 22, 0.35) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

header.lb-header--hero-at-top.lb-header--hero-at-top
  > .relative
  > .absolute.inset-0 {
  background: linear-gradient(
    180deg,
    rgba(2, 8, 22, 0.72) 0%,
    rgba(2, 8, 22, 0.2) 70%,
    transparent 100%
  ) !important;
}

header.lb-header--hero-scrolled > .relative > .absolute.inset-0 {
  background: rgba(2, 8, 22, 0.96) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

header.lb-header--hero-at-top .lb-header-nav,
header.lb-header--hero-at-top .lb-header-actions {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  max-width: 0;
  overflow: hidden;
  padding: 0 !important;
  margin: 0 !important;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

header.lb-header--hero-scrolled .lb-header-nav,
header.lb-header--hero-scrolled .lb-header-actions {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  max-width: none;
  overflow: visible;
}

header.lb-header--hero-at-top .lb-header-col-left {
  padding-right: 0 !important;
  flex: 0 0 auto !important;
}

header.lb-header--hero-at-top .lb-header-col-right {
  flex: 0 0 0 !important;
  padding-left: 0 !important;
  overflow: hidden;
}

header.lb-header--hero-at-top .lb-header-logo-slot img.lb-logo-wordmark {
  height: 2.35rem !important;
  width: auto !important;
}

header.lb-header--hero-scrolled .lb-header-logo-slot img.lb-logo-compact {
  height: 2rem !important;
  width: auto !important;
}

@media (min-width: 768px) {
  header.lb-header--hero-at-top .lb-header-layout {
    justify-content: center;
  }

  header.lb-header--hero-at-top .lb-header-col-left {
    position: absolute;
    left: 0;
    z-index: 30;
  }

  header.lb-header--hero-at-top .lb-header-logo-slot {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    translate: none !important;
    transform: none !important;
    pointer-events: auto !important;
  }
}

/* Scroll-reveal (mirrors framer-motion whileInView) */
.lb-reveal-pending {
  opacity: 0 !important;
  transform: translateY(40px);
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.lb-reveal-pending.lb-reveal-hero {
  transform: translateY(32px);
}

.lb-reveal-visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Desktop in-header navigation (injected for static mirror) */
.lb-header-nav {
  display: none;
}

@media (min-width: 768px) {
  header .lb-header-layout {
    display: flex !important;
    position: relative;
    align-items: center;
    width: 100%;
    min-height: 3.25rem;
  }

  header .lb-header-col-left {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    min-width: 0;
    padding-right: clamp(4rem, 12vw, 9rem);
  }

  .lb-header-nav {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    min-width: 0;
  }

  .lb-header-nav--left {
    justify-content: flex-end;
  }

  header .lb-header-logo-slot {
    position: absolute !important;
    inset: auto !important;
    left: 50% !important;
    top: 50% !important;
    right: auto !important;
    width: auto !important;
    padding: 0 !important;
    translate: -50% -50% !important;
    transform: none !important;
    pointer-events: none !important;
    z-index: 20;
  }

  header .lb-header-logo-link {
    position: static !important;
    inset: auto !important;
    left: auto !important;
    top: auto !important;
    translate: none !important;
    transform: none !important;
    display: block !important;
    pointer-events: auto !important;
  }

  header .lb-header-col-right {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1.25rem;
    min-width: 0;
    padding-left: clamp(4rem, 12vw, 9rem);
  }

  .lb-header-nav--right {
    justify-content: flex-start;
  }

  header .lb-header-actions {
    margin-left: auto !important;
    flex: 0 0 auto;
  }

  .lb-header-nav a {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.72);
    white-space: nowrap;
    transition: color 0.15s ease;
  }

  .lb-header-nav a:hover {
    color: #fff;
  }
}

/* ——— Mobile header bar (< md) ——— */
@media (max-width: 767px) {
  header .lb-header-layout {
    display: flex !important;
    position: relative;
    align-items: center;
    justify-content: space-between;
    min-height: 3.25rem;
    width: 100%;
  }

  header .lb-header-col-left {
    flex: 0 0 auto;
    padding: 0 !important;
    justify-content: flex-start !important;
    min-width: 0;
    z-index: 2;
  }

  header .lb-header-col-left > .relative.z-10 {
    gap: 0 !important;
  }

  header .lb-header-mobile-inline-logo {
    display: none !important;
  }

  header .lb-header-nav {
    display: none !important;
  }

  header .lb-header-logo-slot {
    position: absolute !important;
    inset: auto !important;
    left: 50% !important;
    top: 50% !important;
    translate: -50% -50% !important;
    transform: none !important;
    pointer-events: none !important;
    padding: 0 !important;
    z-index: 1;
  }

  header .lb-header-logo-link--center {
    pointer-events: auto !important;
  }

  header .lb-header-logo-link--center {
    display: inline-flex !important;
  }

  header .lb-header-col-right {
    flex: 0 0 auto;
    padding: 0 !important;
    justify-content: flex-end !important;
    min-width: 0;
    margin-left: auto;
    z-index: 2;
  }

  header .lb-header-actions {
    margin-left: 0 !important;
    flex-wrap: nowrap;
    gap: 0.35rem !important;
  }

  header .lb-header-actions .lb-header-login {
    display: inline-flex !important;
  }

  header .lb-header-actions a {
    white-space: nowrap;
    padding: 0.45rem 0.65rem !important;
    font-size: 0.7rem !important;
    line-height: 1.2;
  }

  header .lb-header-actions a:last-child {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }

  header.lb-header--hero-at-top .lb-header-actions,
  header.lb-header--hero-at-top .lb-header-col-right {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    max-width: none !important;
    overflow: visible !important;
    flex: none !important;
  }

  header.lb-header--hero-at-top .lb-header-logo-slot {
    display: block !important;
  }

}

/* Mobile navigation — top sheet below header */
#mobile-navigation.lb-mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  visibility: hidden;
}

#mobile-navigation.lb-mobile-nav.lb-mobile-nav--open {
  pointer-events: auto;
  visibility: visible;
}

.lb-mobile-nav__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 8, 22, 0.72);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.lb-mobile-nav--open .lb-mobile-nav__backdrop {
  opacity: 1;
}

.lb-mobile-nav__panel {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: min(100%, 22rem);
  overflow-y: auto;
  background: linear-gradient(180deg, #020816 0%, #03102f 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  transform: translateX(-100%);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  padding: 5rem 1.25rem 2rem;
}

.lb-mobile-nav--open .lb-mobile-nav__panel {
  transform: translateX(0);
}

.lb-mobile-nav__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.lb-mobile-nav__title {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.95);
}

.lb-mobile-nav__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.lb-mobile-nav__close:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.lb-mobile-nav__close svg {
  width: 1.15rem;
  height: 1.15rem;
}

@media (max-width: 767px) {
  .lb-mobile-nav__panel {
    top: 3.25rem;
    left: 0;
    right: 0;
    width: 100%;
    max-width: none;
    height: auto;
    max-height: calc(100vh - 3.25rem);
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
    transform: translateY(-110%);
    padding: 1rem 1.25rem 1.5rem;
  }

  .lb-mobile-nav--open .lb-mobile-nav__panel {
    transform: translateY(0);
  }

  .lb-mobile-nav__head {
    margin-bottom: 1rem;
  }
}

@media (min-width: 768px) {
  .lb-mobile-nav__head {
    position: absolute;
    top: 1rem;
    right: 1rem;
    left: 1rem;
    margin: 0;
    padding: 0;
    border: none;
  }

  .lb-mobile-nav__title {
    display: none;
  }
}

.lb-mobile-nav__section {
  margin-bottom: 1.75rem;
}

.lb-mobile-nav__section-title {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.9);
  margin-bottom: 0.75rem;
}

.lb-mobile-nav__link {
  display: block;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.lb-mobile-nav__link-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
}

.lb-mobile-nav__link-desc {
  margin-top: 0.15rem;
  font-size: 0.8rem;
  line-height: 1.4;
  color: rgba(148, 163, 184, 0.95);
}

/* FAQ answer panels (static mirror) */
.lb-faq-answer {
  display: none;
  padding: 0 1.5rem 1.25rem;
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(203, 213, 225, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.lb-faq-item.lb-faq-item--open .lb-faq-answer {
  display: block;
}

.lb-faq-item.lb-faq-item--open button svg {
  transform: rotate(180deg);
}
