/* =========
   Header / Nav
   ========= */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(11, 18, 32, .55);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: .8rem;
}

.brand__mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(74, 163, 255, .35), rgba(74, 163, 255, .12));
  border: 1px solid rgba(74, 163, 255, .35);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .28);
}

.brand__title {
  font-weight: 900;
  letter-spacing: -.02em;
}

.brand__subtitle {
  display: block;
  font-size: .9rem;
  color: var(--muted);
  font-weight: 600;
  margin-top: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav a {
  padding: .55rem .75rem;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--muted);
  font-weight: 700;
  font-size: .95rem;
}

.nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, .06);
  border-color: var(--border);
}

.nav a.active {
  color: var(--text);
  background: rgba(255, 255, 255, .09);
  border-color: var(--border);
  font-weight: 800;
}

.active-mobile {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}

.mobile-call {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--primary);
  color: var(--text);
}

.mobile-call:hover {
  background: var(--primary-600);
}

.call {
  display: inline-flex;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Mobile menu */
.burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .06);
  color: var(--text);
  cursor: pointer;
  position: relative;
}

.burger:hover {
  background: rgba(255, 255, 255, .09);
}

.burger__lines {
  width: 22px;
  height: 16px;
  position: relative;
  display: block;
  transform: perspective(140px) rotateX(10deg);
  transition: transform .25s ease;
  margin: 0 auto;
}

.burger__lines span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transition:
    transform .28s cubic-bezier(.2, .9, .2, 1),
    opacity .2s ease,
    top .28s cubic-bezier(.2, .9, .2, 1);
}

.burger__lines span:nth-child(1) {
  top: 0;
}

.burger__lines span:nth-child(2) {
  top: 7px;
}

.burger__lines span:nth-child(3) {
  top: 14px;
}

.burger[aria-expanded="true"] .burger__lines {
  transform: perspective(140px) rotateX(22deg) rotateZ(-8deg);
}

.burger[aria-expanded="true"] .burger__lines span:nth-child(1) {
  top: 7px;
  transform: rotate(45deg);
}

.burger[aria-expanded="true"] .burger__lines span:nth-child(2) {
  opacity: 0;
  transform: scaleX(.6);
}

.burger[aria-expanded="true"] .burger__lines span:nth-child(3) {
  top: 7px;
  transform: rotate(-45deg);
}

.mobile-panel {
  position: absolute;
  width: 300px;
  right: 0;
  top: 100%;
  z-index: 60;
  padding: 10px;
  border-radius: var(--radius);
  background:
    linear-gradient(120deg, var(--surface), rgba(44, 51, 48, 1));
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}

.mobile-panel a {
  display: block;
  padding: .4rem .8rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .05);
  color: var(--text);
  font-weight: 800;
  font-size: 1rem;
}

.mobile-panel a+a {
  margin-top: 10px;
}

.mobile-panel[data-open="true"] {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;

}

@media (max-width: 870px) {
  .nav {
    display: none;
  }

  .burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-panel {
    display: block;
  }

  .mobile-call {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .call {
    display: none;
  }
}

@media (min-width: 871px) {
  .mobile-panel {
    display: none;
  }

  .nav-cta {
    display: none;
  }

}