.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(223, 230, 238, 0.9);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  transition: opacity 480ms ease;
  will-change: opacity;
}

.site-header.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: var(--tb-shell);
  min-height: 78px;
  margin: 0 auto;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 260px;
  color: var(--tb-ink);
}

.site-brand__mark,
.site-footer__mark {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.site-brand__text {
  display: grid;
  gap: 2px;
}

.site-brand__name {
  font-size: 1.06rem;
  font-weight: 800;
}

.site-brand__tag {
  color: var(--tb-muted);
  font-size: 0.76rem;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex: 1 1 auto;
  min-width: 0;
}

.site-nav a,
.site-footer__nav a,
.site-drawer__nav a {
  position: relative;
  color: var(--tb-ink);
  font-size: 0.92rem;
  font-weight: 700;
}

.site-nav a.is-current::after,
.site-footer__nav a.is-current::after,
.site-drawer__nav a.is-current::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--tb-cyan);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-header__cta {
  white-space: nowrap;
}

.site-header__priority-nav {
  display: none;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  margin-left: auto;
  overflow: hidden;
  white-space: nowrap;
}

.site-header__priority-link {
  flex: 0 0 auto;
  padding: 8px 7px;
  color: inherit;
  font-size: clamp(.72rem, 1.7vw, .86rem);
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.site-header__priority-link:hover {
  text-decoration: underline;
  text-underline-offset: .25em;
}

.site-header__priority-link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.site-menu-button {
  display: inline-flex;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--tb-line);
  border-radius: 6px;
  background: #fff;
  color: var(--tb-blue);
  cursor: pointer;
}

.site-menu-button span {
  width: 20px;
  height: 2px;
  background: currentColor;
}

.site-drawer[hidden] {
  display: none;
}

.site-drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
}

.site-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 20, 32, 0.5);
}

.site-drawer__panel {
  position: absolute;
  top: 14px;
  right: 14px;
  width: min(88vw, 390px);
  max-height: calc(100vh - 28px);
  overflow: auto;
  padding: 22px;
  border: 1px solid var(--tb-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.site-drawer.is-open .site-drawer__panel {
  opacity: 1;
  transform: translateY(0);
}

.site-drawer__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.site-drawer__close {
  width: 38px;
  height: 38px;
  border: 1px solid var(--tb-line);
  border-radius: 6px;
  background: #fff;
  color: var(--tb-ink);
  cursor: pointer;
}

.site-drawer__nav {
  display: grid;
  gap: 2px;
}

.site-drawer__nav a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--tb-line);
}

.site-footer {
  border-top: 1px solid var(--tb-line);
  background: #101a29;
  color: #dbe7f5;
}

.site-footer a {
  color: #dbe7f5;
}

.site-footer__inner {
  display: grid;
  gap: 28px;
  padding: 46px 0 30px;
}

.site-footer__lead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
  gap: 28px;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.site-footer__name {
  margin: 0 0 4px;
  font-weight: 800;
}

.site-footer__copy,
.site-footer__contacts {
  margin: 0;
  color: #aebdd0;
}

.site-footer__contacts {
  display: grid;
  gap: 6px;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 16px 20px 24px;
  text-align: center;
  color: #aebdd0;
  font-size: 0.9rem;
}

@media (min-width: 1041px) {
  .site-nav {
    display: flex !important;
  }

  .site-header__priority-nav {
    display: none !important;
  }
}

@media (max-width: 1040px) {
  .site-nav {
    display: none !important;
  }

  .site-header__priority-nav {
    display: flex !important;
  }
}

@media (max-width: 820px) {
  .site-header__priority-link--use-cases {
    display: none;
  }
}

@media (max-width: 680px) {
  .site-header__priority-link--platform {
    display: none;
  }
}

@media (max-width: 540px) {
  .site-header__priority-link--company {
    display: none;
  }
}

@media (max-width: 390px) {
  .site-header__priority-link--services {
    display: none;
  }
}

@media (max-width: 760px) {
  .site-header__inner {
    min-height: 68px;
  }

  .site-brand {
    min-width: 0;
  }

  .site-brand__tag,
  .site-header__cta {
    display: none;
  }

  .site-footer__lead {
    grid-template-columns: 1fr;
  }
}

/* Footer brand treatment for the full Tripbright logo. */
.site-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-top: 0;
  background:
    radial-gradient(ellipse at 12% 16%, rgba(126, 82, 255, .20) 0%, rgba(126, 82, 255, 0) 36%),
    radial-gradient(ellipse at 88% 18%, rgba(48, 204, 222, .16) 0%, rgba(48, 204, 222, 0) 34%),
    radial-gradient(ellipse at 96% 100%, rgba(255, 139, 82, .08) 0%, rgba(255, 139, 82, 0) 28%),
    linear-gradient(135deg, #0d1224 0%, #17162c 46%, #0c2632 100%);
  color: #eef3ff;
}

.site-footer::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  left: 0;
  height: 10px;
  background: linear-gradient(90deg, #654fe8 0%, #9462ef 35%, #35c9dd 72%, #ff925d 100%);
  pointer-events: none;
}

.site-footer__inner {
  position: relative;
  z-index: 1;
  gap: 34px;
  padding: 56px 0 34px;
}

.site-footer__lead {
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.site-footer__brand {
  display: block;
}

.site-footer__brand-content {
  display: grid;
  justify-items: start;
  gap: 16px;
}

.site-footer__company {
  display: grid;
  gap: 4px;
}

.site-footer__logo-link {
  display: inline-flex;
  align-items: center;
  width: clamp(230px, 27vw, 310px);
  max-width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 1), rgba(255, 255, 255, .85));
  box-shadow: 0 16px 34px rgba(0, 0, 0, .16);
}

.site-footer__logo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 577 / 164;
  object-fit: contain;
}

.site-footer__name {
  margin: 0;
  color: #f5f7ff;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: .02em;
}

.site-footer__copy {
  margin: 0;
  color: #aebbd0;
  font-size: .92rem;
  line-height: 1.8;
}

.site-footer__contacts {
  display: grid;
  gap: 8px;
  margin: 0;
  color: #b4c0d2;
}

.site-footer__contacts p {
  margin: 0;
}

.site-footer__contacts a {
  color: #e1e9f6;
}

.site-footer__contacts a:hover {
  color: #67d8e8;
}

.site-footer__nav {
  position: relative;
  z-index: 1;
  gap: 12px 22px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, .11);
}

.site-footer__nav a {
  color: #dce5f3;
  font-size: .91rem;
  font-weight: 700;
  transition: color 160ms ease, transform 160ms ease;
}

.site-footer__bottom {
  position: relative;
  z-index: 1;
  padding: 18px 20px 26px;
  border-top: 1px solid rgba(255, 255, 255, .10);
  background: rgba(3, 8, 18, .12);
  color: #8f9db1;
  font-size: .86rem;
}

.site-footer__bottom p {
  margin: 0;
}

.site-footer a:focus-visible {
  outline-color: rgba(103, 216, 232, .8);
}

@media (hover: hover) and (pointer: fine) {
  .site-footer__nav a:hover {
    color: #6adceb;
    transform: translateY(-1px);
  }
}

@media (max-width: 760px) {
  .site-footer__inner {
    gap: 28px;
    padding-top: 44px;
  }

  .site-footer__logo-link {
    width: min(260px, 82vw);
    padding: 10px 14px;
    border-radius: 15px;
  }

  .site-footer__nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 18px;
  }

  .site-footer__nav a {
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
  }
}

@media (max-width: 480px) {
  .site-footer__nav {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .site-footer__lead {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.site-footer::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  background:
    radial-gradient(circle at 14% 24%, transparent 0 54px, rgba(255, 255, 255, .035) 55px 56px, transparent 57px),
    radial-gradient(circle at 84% 70%, transparent 0 72px, rgba(103, 216, 232, .035) 73px 74px, transparent 75px),
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .055) 1px, transparent 1.4px);
  background-size: 100% 100%, 100% 100%, 30px 30px;
  opacity: .55;
  pointer-events: none;
}

.site-footer__logo-link {
  position: relative;
  z-index: 1;
  background: linear-gradient(145deg, rgba(255, 255, 255, 1), rgba(255, 255, 255, .83));
}

@supports (filter: blur(1px)) {
  .site-footer::after {
    filter: blur(.25px);
  }
}

@media (max-width: 760px) {
  .site-footer::after {
    background-size: 100% 100%, 100% 100%, 38px 38px;
    opacity: .42;
  }
}

/* Light footer palette for the corporate site. */
.site-footer {
  --footer-bg-start: #f6f9fb;
  --footer-bg-middle: #edf3f7;
  --footer-bg-end: #e7f0f3;
  --footer-text: #17212b;
  --footer-heading: #17212b;
  --footer-muted: #526170;
  --footer-link: #253647;
  --footer-link-hover: #2457a6;
  --footer-line: #d4dfe7;
  --footer-bottom-bg: rgba(220, 231, 238, .72);

  border-top: 1px solid var(--footer-line);
  background: linear-gradient(
    145deg,
    var(--footer-bg-start) 0%,
    var(--footer-bg-middle) 55%,
    var(--footer-bg-end) 100%
  );
  color: var(--footer-text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .82);
}

.site-footer__inner,
.site-footer__bottom {
  position: relative;
  z-index: 1;
}

.site-footer__name,
.site-footer__heading {
  color: var(--footer-heading);
}

.site-footer__copy,
.site-footer__contacts {
  color: var(--footer-muted);
}

.site-footer a,
.site-footer__contacts a,
.site-footer__nav a {
  color: var(--footer-link);
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--footer-link-hover);
}

.site-footer a:focus-visible {
  outline: 3px solid rgba(36, 87, 166, .24);
  outline-offset: 4px;
  border-radius: 4px;
}

.site-footer__logo-link {
  border-color: rgba(36, 87, 166, .14);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, .58),
    rgba(255, 255, 255, .28)
  );
  box-shadow: 0 12px 28px rgba(36, 87, 166, .08);
}

.site-footer__nav {
  border-top-color: var(--footer-line);
}

.site-footer__bottom {
  border-top-color: var(--footer-line);
  background: var(--footer-bottom-bg);
  color: #5b6875;
}

.site-footer::after {
  background:
    radial-gradient(
      circle at 14% 24%,
      transparent 0 54px,
      rgba(36, 87, 166, .035) 55px 56px,
      transparent 57px
    ),
    radial-gradient(
      circle at 84% 70%,
      transparent 0 72px,
      rgba(35, 166, 181, .04) 73px 74px,
      transparent 75px
    ),
    radial-gradient(
      circle at 1px 1px,
      rgba(36, 87, 166, .045) 1px,
      transparent 1.4px
    );
  opacity: .62;
}

@media (max-width: 760px) {
  .site-footer__nav a {
    border-bottom-color: var(--footer-line);
  }

  .site-footer::after {
    opacity: .42;
  }
}
