
/* Header */

.ws-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  border-bottom: 1px solid var(--ws-border);
  background:
    linear-gradient(
      90deg,
      rgba(2, 8, 23, 0.97),
      rgba(6, 17, 38, 0.95),
      rgba(3, 15, 38, 0.97)
    );
  box-shadow: 0 8px 35px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition:
    background 0.3s ease,
    box-shadow 0.3s ease;
}

.ws-header::before {
  position: absolute;
  top: 0;
  right: 10%;
  left: 10%;
  height: 1px;
  content: "";
  background: linear-gradient(
    90deg,
    transparent,
    rgba(70, 184, 255, 0.65),
    transparent
  );
}

.ws-header.is-scrolled {
  background: rgba(2, 8, 23, 0.98);
  box-shadow: 0 14px 45px rgba(0, 0, 0, 0.32);
}

.ws-header__container {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(210px, 1fr) auto minmax(210px, 1fr);
  align-items: center;
  width: min(100% - 40px, 1240px);
  min-height: var(--ws-header-height);
  margin-inline: auto;
}

/* Logo */

.ws-logo {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 11px;
  color: var(--ws-white);
  text-decoration: none;
}

.ws-logo__icon {
  position: relative;
  display: grid;
  width: 45px;
  height: 45px;
  flex: 0 0 45px;
  place-items: center;
  overflow: hidden;
  color: var(--ws-white);
  border: 1px solid rgba(123, 204, 255, 0.38);
  border-radius: 14px;
  background:
    radial-gradient(
      circle at 25% 15%,
      rgba(106, 211, 255, 0.55),
      transparent 38%
    ),
    linear-gradient(145deg, var(--ws-blue-500), var(--ws-blue-700));
  box-shadow:
    0 10px 24px rgba(8, 120, 249, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.ws-logo__icon::after {
  position: absolute;
  right: -15px;
  bottom: -20px;
  width: 45px;
  height: 45px;
  content: "";
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.13);
}

.ws-logo__icon svg {
  position: relative;
  z-index: 2;
  width: 27px;
  height: 27px;
}

.ws-logo__content {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.ws-logo__text {
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.ws-logo__tagline {
  margin-top: 6px;
  color: var(--ws-muted);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

/* Navigasi Desktop */

.ws-nav {
  justify-self: center;
}

.ws-nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  margin: 0;
  list-style: none;
  border: 1px solid rgba(122, 188, 255, 0.12);
  border-radius: 14px;
  background: rgba(12, 31, 63, 0.42);
}

.ws-nav__link {
  position: relative;
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 16px;
  overflow: hidden;
  color: #b9cbe0;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition:
    color 0.25s ease,
    background 0.25s ease;
}

.ws-nav__link::after {
  position: absolute;
  right: 18px;
  bottom: 5px;
  left: 18px;
  height: 2px;
  content: "";
  border-radius: 20px;
  background: linear-gradient(
    90deg,
    var(--ws-blue-400),
    var(--ws-blue-600)
  );
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.ws-nav__link:hover,
.ws-nav__link:focus-visible,
.ws-nav__link.is-active {
  color: var(--ws-white);
  background: rgba(21, 151, 255, 0.11);
}

.ws-nav__link:hover::after,
.ws-nav__link:focus-visible::after,
.ws-nav__link.is-active::after {
  transform: scaleX(1);
}

/* CTA */

.ws-header__actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 9px;
}

.ws-button {
  display: inline-flex;
  min-height: 43px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 19px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: 0.85rem;
  font-weight: 750;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}

.ws-button:hover {
  transform: translateY(-2px);
}

.ws-button svg {
  width: 16px;
  height: 16px;
  transition: transform 0.25s ease;
}

.ws-button:hover svg {
  transform: translateX(3px);
}

.ws-button--register {
  color: var(--ws-white);
  border-color: rgba(84, 186, 255, 0.38);
  background: linear-gradient(
    135deg,
    var(--ws-blue-500),
    var(--ws-blue-700)
  );
  box-shadow:
    0 10px 25px rgba(8, 120, 249, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.ws-button--register:hover {
  box-shadow:
    0 14px 32px rgba(8, 120, 249, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.ws-button--login {
  color: #dcecff;
  border-color: rgba(112, 179, 255, 0.24);
  background: rgba(12, 31, 63, 0.62);
}

.ws-button--login:hover {
  color: var(--ws-white);
  border-color: rgba(84, 186, 255, 0.46);
  background: rgba(21, 151, 255, 0.14);
}

.ws-button:focus-visible,
.ws-nav__link:focus-visible,
.ws-logo:focus-visible,
.ws-menu-toggle:focus-visible,
.ws-mobile-menu__link:focus-visible,
.ws-mobile-menu__close:focus-visible {
  outline: 3px solid rgba(70, 184, 255, 0.35);
  outline-offset: 3px;
}

/* Hamburger */

.ws-menu-toggle {
  display: none;
  width: 45px;
  height: 45px;
  padding: 0;
  border: 1px solid rgba(112, 179, 255, 0.24);
  border-radius: 12px;
  background: rgba(12, 31, 63, 0.7);
  cursor: pointer;
}

.ws-menu-toggle__line {
  display: block;
  width: 21px;
  height: 2px;
  margin: 5px auto;
  border-radius: 10px;
  background: var(--ws-white);
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.ws-menu-toggle.is-active .ws-menu-toggle__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.ws-menu-toggle.is-active .ws-menu-toggle__line:nth-child(2) {
  opacity: 0;
}

.ws-menu-toggle.is-active .ws-menu-toggle__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Menu Mobile */

.ws-mobile-menu {
  position: fixed;
  z-index: 1002;
  top: 0;
  right: 0;
  width: min(88%, 390px);
  height: 100dvh;
  visibility: hidden;
  overflow-y: auto;
  border-left: 1px solid rgba(94, 173, 255, 0.17);
  background:
    radial-gradient(
      circle at 100% 0,
      rgba(8, 120, 249, 0.2),
      transparent 33%
    ),
    linear-gradient(160deg, #07152d, #020817);
  box-shadow: -25px 0 70px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: translateX(105%);
  transition:
    visibility 0.35s ease,
    opacity 0.35s ease,
    transform 0.35s ease;
}

.ws-mobile-menu.is-open {
  visibility: visible;
  opacity: 1;
  transform: translateX(0);
}

.ws-mobile-menu__inner {
  display: flex;
  min-height: 100dvh;
  flex-direction: column;
  padding: 24px;
}

.ws-mobile-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 22px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(112, 179, 255, 0.14);
}

.ws-mobile-menu__title {
  color: var(--ws-white);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ws-mobile-menu__close {
  position: relative;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(112, 179, 255, 0.24);
  border-radius: 11px;
  background: rgba(12, 31, 63, 0.7);
  cursor: pointer;
}

.ws-mobile-menu__close span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 19px;
  height: 2px;
  border-radius: 5px;
  background: var(--ws-white);
}

.ws-mobile-menu__close span:first-child {
  transform: translate(-50%, -50%) rotate(45deg);
}

.ws-mobile-menu__close span:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.ws-mobile-menu__list {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.ws-mobile-menu__link {
  display: flex;
  min-height: 55px;
  align-items: center;
  gap: 16px;
  padding: 0 17px;
  color: #bfd2e8;
  border: 1px solid transparent;
  border-radius: 13px;
  font-size: 0.96rem;
  font-weight: 700;
  text-decoration: none;
  transition:
    color 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease,
    transform 0.25s ease;
}

.ws-mobile-menu__link:hover,
.ws-mobile-menu__link.is-active {
  color: var(--ws-white);
  border-color: rgba(79, 178, 255, 0.2);
  background: rgba(21, 151, 255, 0.1);
  transform: translateX(3px);
}

.ws-mobile-menu__number {
  color: var(--ws-blue-400);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.ws-mobile-menu__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding-top: 23px;
  margin-top: 22px;
  border-top: 1px solid rgba(112, 179, 255, 0.14);
}

.ws-mobile-menu__note {
  margin-top: auto;
  padding-top: 30px;
  color: var(--ws-muted);
  font-size: 0.75rem;
  line-height: 1.7;
}

/* Overlay */

.ws-menu-overlay {
  position: fixed;
  z-index: 1001;
  inset: 0;
  visibility: hidden;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgba(0, 5, 18, 0.7);
  cursor: pointer;
  opacity: 0;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition:
    visibility 0.35s ease,
    opacity 0.35s ease;
}

.ws-menu-overlay.is-active {
  visibility: visible;
  opacity: 1;
}

/* Responsive */

@media (max-width: 1100px) {
  .ws-header__container {
    grid-template-columns: auto 1fr auto;
  }

  .ws-nav {
    display: none;
  }

  .ws-header__actions {
    margin-right: 12px;
    margin-left: auto;
  }

  .ws-menu-toggle {
    display: block;
  }
}

@media (max-width: 720px) {
  :root {
    --ws-header-height: 72px;
  }

  .ws-header__container {
    width: min(100% - 28px, 1240px);
    min-height: var(--ws-header-height);
  }

  .ws-logo__icon {
    width: 41px;
    height: 41px;
    flex-basis: 41px;
    border-radius: 12px;
  }

  .ws-logo__text {
    font-size: 1.08rem;
  }

  .ws-logo__tagline {
    display: none;
  }

  .ws-header__actions {
    display: none;
  }
}

@media (max-width: 410px) {
  .ws-mobile-menu {
    width: 94%;
  }

  .ws-mobile-menu__actions {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}