/* Header clean version */

.site-header {
  position: relative;
  top: 0;
  z-index: 100;
  background: #06020d;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.site-header-inner {
  min-height: 82px;
  /*display: grid;*/
  /*grid-template-columns: 300px 1fr auto;*/
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

/* Brand */

.nav-brand {
  grid-column: 1;
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  color: #fff;
  text-decoration: none;
}

.nav-brand:hover {
  color: #fff;
}

.nav-brand-mark {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 9, 25, 0.9);
  border: 1px solid rgba(47, 216, 255, 0.75);
  box-shadow: 0 0 18px rgba(47, 216, 255, 0.35);
}

.nav-brand-mark-inner {
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
}

.nav-brand-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.nav-brand-line-1 {
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-brand-line-2 {
  margin-top: 4px;
  max-width: 240px;
  font-size: 0.62rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

/* Desktop nav */

.site-nav {
  grid-column: 2 / 4;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  min-width: 0;
}

.nav-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list--primary,
.nav-list--secondary {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-item {
  flex: 0 0 auto;
}

.nav-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(114, 36, 145, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: 0.2s ease;
}

.nav-link:hover {
  color: #fff;
  background: rgba(169, 48, 180, 0.34);
  border-color: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

.nav-divider {
  width: 1px;
  height: 34px;
  flex: 0 0 1px;
  margin-inline: 8px;
  background: linear-gradient(
          to bottom,
          transparent,
          rgba(255, 255, 255, 0.35),
          transparent
  );
}

.nav-item--cta {
  margin-left: 6px;
}

.nav-cta {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 22px;
  border-radius: 999px;
  color: #fff;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.15;
  text-decoration: none;
  white-space: nowrap;
  background: linear-gradient(135deg, #a51b96 0%, #cc3ab3 48%, #25c4e6 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 26px rgba(196, 58, 167, 0.35);
  transition: 0.2s ease;
}

.nav-cta:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 0 34px rgba(47, 216, 255, 0.38);
}

.nav-cta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Burger */

.nav-toggle {
  grid-column: 3;
  display: none;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #fff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Desktop compact */

@media (max-width: 1380px) {
  .site-header-inner {
    grid-template-columns: 280px 1fr auto;
    gap: 18px;
  }

  .nav-link {
    padding-inline: 13px;
    font-size: 0.78rem;
  }

  .nav-cta {
    padding-inline: 18px;
    font-size: 0.8rem;
  }

  .nav-brand-line-1 {
    font-size: 0.86rem;
  }

  .nav-brand-line-2 {
    max-width: 220px;
    font-size: 0.58rem;
  }
}

/* Mobile / tablet: hide desktop menu */

@media (max-width: 1240px) {
  .site-header-inner {
    min-height: 76px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
  }

  .nav-brand {
    grid-column: 1;
    max-width: 100%;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    top: 88px;
    left: 16px;
    right: 16px;
    z-index: 120;
    display: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 18px;
    border-radius: 24px;
    background: rgba(8, 4, 18, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-list--primary,
  .nav-list--secondary {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .nav-list--secondary {
    margin-top: 8px;
  }

  .nav-divider {
    display: none;
  }

  .nav-item,
  .nav-item.hide-sm {
    width: 100%;
    display: block !important;
  }

  .nav-link {
    width: 100%;
    min-height: 44px;
    justify-content: flex-start;
    padding: 11px 14px;
    border-radius: 14px;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.06);
  }

  .nav-item--cta {
    margin-left: 0;
    margin-top: 8px;
  }

  .nav-cta {
    width: 100%;
    min-height: 48px;
    border-radius: 16px;
  }
}

@media (max-width: 560px) {
  .site-header-inner {
    min-height: 70px;
  }

  .nav-brand {
    gap: 10px;
    max-width: calc(100vw - 92px);
  }

  .nav-brand-mark {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .nav-brand-line-1 {
    font-size: 0.76rem;
    letter-spacing: 0.09em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav-brand-line-2 {
    max-width: 185px;
    font-size: 0.52rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav-toggle {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .site-nav {
    top: 78px;
    left: 10px;
    right: 10px;
    padding: 14px;
    border-radius: 20px;
  }
}