/* ── WAVES BG (shared across all pages) ── */
.waves-bg {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 0;
  height: 200px;
  overflow: hidden;
  pointer-events: none;
}
.waves-bg svg {
  width: 100%;
  height: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  height: var(--nav-height, 60px);
  background: rgba(6, 21, 39, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  gap: 1rem;
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--white, #ffffff);
  font-family: "Playfair Display", serif;
  font-size: 1.1rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.site-header__brand span {
  font-size: 1.3rem;
}

.site-header__links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  flex: 1;
  justify-content: center;
}

.site-header__item {
  position: relative;
}

.site-header__button {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-family: "DM Sans", sans-serif;
  font-size: 0.83rem;
  font-weight: 500;
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-sm, 8px);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}

.site-header__button:hover,
.site-header__item.is-open .site-header__button {
  color: var(--white, #ffffff);
  background: rgba(255, 255, 255, 0.08);
}

.site-header__chevron {
  font-size: 0.6rem;
  opacity: 0.6;
  transition: transform 0.2s;
  display: inline-block;
}

.site-header__item.is-open .site-header__chevron {
  transform: rotate(180deg);
}

.site-header__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 240px;
  background: #0d2d4a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius, 14px);
  padding: 6px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s, transform 0.18s;
}

.site-header__item.is-open .site-header__dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.site-header__dropdown a,
.site-header-mobile a {
  text-decoration: none;
}

.site-header__dropdown a {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm, 8px);
  color: rgba(255, 255, 255, 0.8);
  transition: background 0.15s, color 0.15s;
}

.site-header__dropdown a:hover,
.site-header__dropdown a.is-active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white, #ffffff);
}

.site-header__emoji {
  font-size: 1rem;
  line-height: 1.4;
  flex-shrink: 0;
}

.site-header__text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.site-header__title {
  font-size: 0.84rem;
  font-weight: 500;
}

.site-header__desc {
  font-size: 0.73rem;
  color: var(--text-muted, #8ba4be);
  line-height: 1.4;
}

.site-header__divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.07);
  margin: 4px 6px;
}

.site-header__soon-badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 500;
  padding: 1px 5px;
  border-radius: 999px;
  background: rgba(240, 192, 64, 0.15);
  color: #fce08a;
  border: 1px solid rgba(240, 192, 64, 0.25);
  vertical-align: middle;
  margin-left: 4px;
  line-height: 1.6;
}

.site-header__search {
  position: relative;
  flex-shrink: 0;
}

.site-header__glossary {
  color: rgba(255, 255, 255, 0.8);
  font-family: "DM Sans", sans-serif;
  font-size: 0.83rem;
  font-weight: 500;
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-sm, 8px);
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}

.site-header__glossary:hover {
  color: var(--white, #ffffff);
  background: rgba(255, 255, 255, 0.08);
}

.site-header__search input,
.site-header-mobile__search input {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--white, #ffffff);
  font-family: "DM Sans", sans-serif;
  outline: none;
}

.site-header__search input {
  border-radius: 999px;
  padding: 0.4rem 2.2rem 0.4rem 1rem;
  font-size: 0.82rem;
  width: 160px;
  transition: border-color 0.2s, background 0.2s, width 0.3s;
}

.site-header__search input::placeholder,
.site-header-mobile__search input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.site-header__search input:focus,
.site-header-mobile__search input:focus {
  border-color: var(--teal, #1abc9c);
}

.site-header__search input:focus {
  background: rgba(255, 255, 255, 0.12);
  width: 220px;
}

.site-header__search-icon {
  position: absolute;
  right: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.85rem;
  opacity: 0.45;
  pointer-events: none;
}

.site-header__hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--white, #ffffff);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 4px;
}

.site-header-mobile {
  display: none;
  position: fixed;
  top: var(--nav-height, 60px);
  left: 0;
  right: 0;
  bottom: 0;
  background: #061527;
  z-index: 99;
  overflow-y: auto;
  padding: 1rem;
}

.site-header-mobile.is-open {
  display: block;
}

.site-header-mobile__search {
  margin-bottom: 1.2rem;
}

.site-header-mobile__search input {
  width: 100%;
  border-radius: 999px;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
}

.site-header-mobile__section {
  margin-bottom: 1.2rem;
}

.site-header-mobile__title {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal, #1abc9c);
  padding: 0.4rem 0.5rem 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  margin-bottom: 4px;
}

.site-header-mobile a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.6rem 0.5rem;
  color: rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-sm, 8px);
  font-size: 0.88rem;
  transition: background 0.15s, color 0.15s;
}

.site-header-mobile a:hover,
.site-header-mobile a.is-active {
  background: rgba(255, 255, 255, 0.07);
  color: var(--white, #ffffff);
}

.site-header-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
}

.site-header-overlay.is-active {
  display: block;
}

@media (max-width: 700px) {
  .site-header__links,
  .site-header__glossary,
  .site-header__search {
    display: none;
  }

  .site-header__hamburger {
    display: block;
  }
}
