/* ═══════════════════════════════════════════════
   MORPHIC NAVBAR — Komet adaptation
   ═══════════════════════════════════════════════ */

/* Hide original nav, we'll inject the morphic one */
.nav { display: none !important; }

/* ── Morphic nav wrapper ── */
.morphic-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
  gap: 24px;
}

/* ── Logo ── */
.morphic-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}
.morphic-logo img {
  height: 22px;
  width: auto;
}

/* ── Center pill container ── */
.morphic-pills-wrap {
  /* Glass frosted container */
  display: flex;
  align-items: center;
  background: rgba(15, 12, 28, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(192, 132, 252, 0.12);
  border-radius: 16px;
  overflow: hidden;
  padding: 4px;
  gap: 0;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255,255,255,0.04) inset;
}

/* ── Individual nav items ── */
.morphic-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7px 18px;
  font-size: 0.82rem;
  font-weight: 500;
  font-family: 'Geist', sans-serif;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.5);
  background: rgba(12, 10, 20, 0.85);
  text-decoration: none;
  white-space: nowrap;
  border-radius: 0;
  /* Smooth transitions for the morphing */
  transition:
    border-radius 0.32s cubic-bezier(0.34, 1.2, 0.64, 1),
    margin 0.32s cubic-bezier(0.34, 1.2, 0.64, 1),
    color 0.22s ease,
    background 0.22s ease,
    box-shadow 0.22s ease;
}

.morphic-item:hover:not(.morphic-item--active) {
  color: rgba(255, 255, 255, 0.8);
}

/* ── Active pill state ── */
.morphic-item--active {
  border-radius: 12px !important;
  margin: 0 3px;
  color: #fff;
  font-weight: 600;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.55) 0%, rgba(192, 132, 252, 0.3) 100%);
  box-shadow:
    0 0 0 1px rgba(192, 132, 252, 0.35),
    0 2px 12px rgba(124, 58, 237, 0.3),
    inset 0 1px 0 rgba(255,255,255,0.1);
}

/* ── Adjacent rounding: item BEFORE active gets right-rounded ── */
.morphic-item--adj-prev {
  border-radius: 0 12px 12px 0;
}

/* ── Adjacent rounding: item AFTER active gets left-rounded ── */
.morphic-item--adj-next {
  border-radius: 12px 0 0 12px;
}

/* First item always rounded on left, last always rounded on right */
.morphic-item:first-child {
  border-radius: 10px 0 0 10px;
}
.morphic-item:last-child {
  border-radius: 0 10px 10px 0;
}
.morphic-item:first-child.morphic-item--adj-prev {
  border-radius: 10px 12px 12px 10px;
}
.morphic-item:last-child.morphic-item--adj-next {
  border-radius: 12px 10px 10px 12px;
}

/* ── Right-side actions ── */
.morphic-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.morphic-wq-btn {
  font-family: 'Geist', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
  background: rgba(15, 12, 28, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(192, 132, 252, 0.12);
  border-radius: 12px;
  padding: 8px 16px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}
.morphic-wq-btn:hover {
  color: rgba(255,255,255,0.85);
  border-color: rgba(192, 132, 252, 0.3);
}

.morphic-cta {
  font-family: 'Geist', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  border: none;
  border-radius: 12px;
  padding: 8px 18px;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 16px rgba(124,58,237,0.4);
}
.morphic-cta:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(124,58,237,0.5);
}

/* Offset page so content doesn't hide under fixed nav */
body { padding-top: 70px; }
.hero { padding-top: 0; }

/* ── Mobile nav ── */
@media (max-width: 768px) {
  .morphic-nav {
    padding: 12px 18px;
    gap: 0;
  }

  /* Hide pills and questionnaire — just logo + CTA on mobile */
  .morphic-pills-wrap {
    display: none;
  }
  .morphic-wq-btn {
    display: none;
  }

  .morphic-cta {
    font-size: 0.78rem;
    padding: 8px 16px;
  }
}
