html,
body {
  margin: 0;
}

.gleam-site-header,
.gleam-site-header * {
  box-sizing: border-box;
  line-height: 1.5;
}

html.gleam-locale-switching body {
  opacity: 0.72;
  pointer-events: none;
  transition: opacity 0.16s ease;
}

.gleam-site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  height: 70px;
  color: #fff;
  font-family: inherit;
  background: #03040a;
}

.gleam-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  width: min(calc(100% - 48px), 1282px);
  height: 70px;
  padding-right: 4px;
  margin: 0 auto;
}

.gleam-header__brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  width: 142px;
  height: 42px;
  text-decoration: none;
}

.gleam-header__logo {
  display: block;
  width: 142px;
  height: 42px;
  object-fit: contain;
}

.gleam-header__nav {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-left: 54px;
  white-space: nowrap;
}

.gleam-header__nav-link,
.gleam-header__language,
.gleam-header__signin,
.gleam-header__cta {
  color: inherit;
  text-decoration: none;
}

.gleam-header__nav-link {
  font-size: 16px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  transition:
    color 0.18s ease,
    opacity 0.18s ease;
}

.gleam-header__nav-link:hover {
  color: #fff;
}

.gleam-header__actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-left: auto;
}

.gleam-header__trial-tag {
  position: relative;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  height: 34px;
  padding: 0 12px;
  overflow: hidden;
  color: #f5f3ff;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  background:
    linear-gradient(105deg, rgba(103, 80, 255, 0.28), rgba(39, 204, 255, 0.13)),
    rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(143, 126, 255, 0.52);
  border-radius: 999px;
  box-shadow:
    0 0 0 1px rgba(39, 204, 255, 0.06) inset,
    0 8px 24px rgba(89, 69, 220, 0.2);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.gleam-header__trial-tag span {
  line-height: normal;
}

.gleam-header__trial-tag::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background: linear-gradient(
    110deg,
    transparent 15%,
    rgba(255, 255, 255, 0.18) 48%,
    transparent 72%
  );
  opacity: 0;
  transform: translateX(-70%);
  transition:
    opacity 0.2s ease,
    transform 0.45s ease;
}

.gleam-header__trial-tag:hover,
.gleam-header__trial-tag:focus-visible {
  border-color: rgba(96, 213, 255, 0.82);
  outline: none;
  box-shadow:
    0 0 0 3px rgba(108, 92, 255, 0.14),
    0 10px 28px rgba(89, 69, 220, 0.3);
  transform: translateY(-1px);
}

.gleam-header__trial-tag:hover::before {
  opacity: 1;
  transform: translateX(70%);
}

.gleam-header__trial-dot {
  position: relative;
  width: 7px;
  height: 7px;
  background: #63e6ff;
  border-radius: 50%;
  box-shadow:
    0 0 0 4px rgba(99, 230, 255, 0.12),
    0 0 12px rgba(99, 230, 255, 0.8);
}

.gleam-header__trial-arrow {
  color: #8eeaff;
  font-size: 15px;
  line-height: 1;
  transition: transform 0.18s ease;
}

.gleam-header__trial-tag:hover .gleam-header__trial-arrow {
  transform: translateX(2px);
}

.gleam-header__language-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.gleam-header__language {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  padding: 6px 8px;
  font: inherit;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.88);
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}

.gleam-header__language:hover,
.gleam-header__language[aria-expanded="true"] {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.gleam-header__language-arrow {
  width: 6px;
  height: 6px;
  margin: -3px 2px 0 4px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.18s ease;
}

.gleam-header__language[aria-expanded="true"] .gleam-header__language-arrow {
  margin-top: 3px;
  transform: rotate(225deg);
}

.gleam-header__language-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  display: none;
  width: 100px;
  height: 76px;
  padding: 6px;
  background: #fff;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.04);
}

.gleam-header__language-menu.is-open {
  display: block;
}

.gleam-header__language-option {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 32px;
  padding: 0 10px;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  color: #111827;
  text-align: left;
  white-space: nowrap;
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}

.gleam-header__language-option:hover {
  color: #6c5cff;
  background: #f4f3ff;
}

.gleam-header__language-option.is-active {
  color: #6c5cff;
  background: #f4f3ff;
}

.gleam-header__language-option:disabled {
  cursor: wait;
  opacity: 0.6;
}

.gleam-header__toggle-icon {
  display: block;
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
}

.gleam-header__signin {
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.86);
  transition: color 0.18s ease;
}

.gleam-header__signin:hover {
  color: #fff;
}

.gleam-header__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 125px;
  height: 42px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: var(--gleam-gradient-primary);
  border: 0;
  border-radius: 8px;
  box-shadow: 0 14px 32px 0 rgba(92, 86, 255, 0.31);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.gleam-header__cta:hover {
  box-shadow: 0 16px 34px 0 rgba(92, 86, 255, 0.38);
  transform: translateY(-1px);
}

.gleam-header__guest {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-left: 18px;
}

.gleam-header__guest.is-hidden {
  display: none;
}

.gleam-header__user {
  position: relative;
  display: none;
  gap: 14px;
  align-items: center;
}

.gleam-header__user.is-visible {
  display: flex;
}

.gleam-header__console {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 125px;
  height: 42px;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  background: var(--gleam-gradient-primary);
  border: 0;
  border-radius: 8px;
  box-shadow: 0 14px 32px 0 rgba(92, 86, 255, 0.31);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.gleam-header__console:hover {
  box-shadow: 0 16px 34px 0 rgba(92, 86, 255, 0.38);
  transform: translateY(-1px);
}

.gleam-header__user-trigger {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 8px 12px;
  font: inherit;
  color: #fff;
  cursor: pointer;
  background: transparent;
  border: 0;
  border-radius: 8px;
  transition: background 0.18s ease;
}

.gleam-header__user-trigger:hover,
.gleam-header__user-trigger[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.08);
}

.gleam-header__user-info {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  background: linear-gradient(105deg, #4f6bff 0%, #7d4dff 48%, #22d4ff 100%);
  border-radius: 21px;
}

.gleam-header__user-name {
  overflow: hidden;
  max-width: 100%;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-transform: uppercase;
}

.gleam-header__user-email {
  display: none;
}

.gleam-header__user-arrow {
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-right: 1.5px solid rgba(255, 255, 255, 0.7);
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.7);
  transform: rotate(45deg);
  transition: transform 0.18s ease;
}

.gleam-header__user-trigger[aria-expanded="true"] .gleam-header__user-arrow {
  margin-top: 3px;
  transform: rotate(225deg);
}

.gleam-header__user-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: auto;
  z-index: 30;
  display: none;
  min-width: 148px;
  padding: 8px;
  background: #fff;
  border: 0;
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.16);
}

.gleam-header__user-menu.is-open {
  display: block;
}

.gleam-header__user-menu-account {
  min-width: 0;
  padding: 8px 14px 12px;
  margin-bottom: 6px;
  border-bottom: 1px solid #eef0f5;
}

.gleam-header__user-menu-name {
  overflow: hidden;
  min-width: 0;
  max-width: 190px;
  font-size: 14px;
  font-weight: 600;
  color: #242938;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gleam-header__user-menu-item {
  display: flex;
  gap: 10px;
  align-items: center;
  width: 100%;
  height: 40px;
  padding: 0 14px;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  color: #242938;
  text-align: left;
  white-space: nowrap;
  text-decoration: none;
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  transition:
    color 0.18s ease,
    background 0.18s ease;
}

.gleam-header__user-menu-item:hover {
  color: #554cf0;
  background: #f7f6ff;
}

.gleam-header__signout-icon {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
}

.gleam-header__mobile-toggle,
.gleam-header__mobile-backdrop,
.gleam-header__mobile-signout {
  display: none;
}
