.thp-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #050608;
  color: #f9fafb;
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
  backdrop-filter: blur(12px);
}

.thp-header__inner {
  max-width: 1200px;
  margin-inline: auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.thp-header__branding {
  display: flex;
  align-items: center;
  min-width: 0;
}

.thp-header__logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: inherit;
}

.thp-header__logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 2px solid #f97316;
  position: relative;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.9);
}

.thp-header__logo-mark::before,
.thp-header__logo-mark::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: inherit;
}

.thp-header__logo-mark::before {
  border: 1px solid rgba(249, 115, 22, 0.55);
}

.thp-header__logo-mark::after {
  inset: 11px;
  background: radial-gradient(circle at 30% 0, #f97316, transparent 60%);
}

.thp-header__logo-text {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.9rem;
  white-space: nowrap;
}

.thp-header__nav {
  display: flex;
}

.thp-header__nav-list {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.thp-header__nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  font-family: "Source Sans 3", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  color: #e5e7eb;
  padding-block: 0.35rem;
}

.thp-header__nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f97316, #fb923c);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 160ms ease-out;
}

.thp-header__nav-link:focus-visible::after,
.thp-header__nav-link:hover::after {
  transform: scaleX(1);
}

.thp-header__nav-link:focus-visible {
  outline: 2px solid #f97316;
  outline-offset: 3px;
}

.thp-header__nav-item--cta .thp-header__nav-link {
  padding-inline: 1rem;
  padding-block: 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(249, 115, 22, 0.7);
  background: radial-gradient(circle at 0 0, rgba(249, 115, 22, 0.18), transparent 55%);
}

.thp-header__nav-link--cta::after {
  display: none;
}

.thp-header__nav-link--cta {
  background-image: linear-gradient(135deg, #f97316, #ea580c);
  color: #f9fafb;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.85);
}

.thp-header__nav-link--cta:hover,
.thp-header__nav-link--cta:focus-visible {
  background-image: linear-gradient(135deg, #fb923c, #f97316);
}

.thp-header__toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background-color: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
  cursor: pointer;
}

.thp-header__toggle:focus-visible {
  outline: 2px solid #f97316;
  outline-offset: 3px;
}

.thp-header__toggle-box {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.thp-header__toggle-line {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background-color: #e5e7eb;
  transition: transform 150ms ease, opacity 150ms ease, width 150ms ease;
}

.thp-header__toggle-text {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.thp-header__toggle[aria-expanded="true"] .thp-header__toggle-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.thp-header__toggle[aria-expanded="true"] .thp-header__toggle-line:nth-child(2) {
  opacity: 0;
}

.thp-header__toggle[aria-expanded="true"] .thp-header__toggle-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
  width: 18px;
}

@media (max-width: 900px) {
  .thp-header__inner {
    padding-block: 0.65rem;
  }

  .thp-header__toggle {
    display: inline-flex;
  }

  .thp-header__nav {
    position: fixed;
    inset-inline: 0;
    top: 56px;
    background: rgba(5, 6, 8, 0.98);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 160ms ease-out, opacity 160ms ease-out, visibility 160ms ease-out;
  }

  .thp-header__nav-list {
    max-width: 1200px;
    margin-inline: auto;
    padding: 0.75rem 1.25rem 1.1rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
  }

  .thp-header__nav-item--cta {
    align-self: stretch;
  }

  .thp-header__nav-link {
    width: 100%;
    padding: 0.55rem 0.25rem;
  }

  .thp-header__nav-link--cta {
    justify-content: center;
    width: 100%;
  }

  .thp-header__nav-link::after {
    bottom: 4px;
  }

  .thp-header__nav--open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
}

@media (max-width: 520px) {
  .thp-header__logo-text {
    font-size: 0.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .thp-header,
  .thp-header * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}