:root {
  --nav-h: 74px;
  --nav: var(--nav-h);
  --menu-h: 624px;
  --blue: #4020ff;
  --shadow: 0 24px 70px rgba(0, 20, 50, 0.08);
}

body {
  padding-top: var(--nav-h);
}

.site-header {
  height: var(--nav-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 0 0 30px;
  border-bottom: 1px solid #dce3eb;
  background: rgba(255, 255, 255, 0.98);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: #0a0a0d;
}

.site-header .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  font-size: 1.22rem;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
  color: #0a0a0d;
  letter-spacing: 0;
}

.site-header .brand-mark {
  width: 24px;
  height: 24px;
  position: relative;
  border-radius: 2px;
  background: #0b0b0e;
  overflow: hidden;
  flex: 0 0 auto;
}

.site-header .brand-mark::after {
  content: "";
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  left: 5px;
  top: 5px;
}

.site-header .brand strong {
  font-weight: 800;
}

.site-header .main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  height: 100%;
  font-size: 1rem;
  color: #0a0a0d;
}

.site-header .nav-link,
.site-header .nav-trigger {
  height: var(--nav-h);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: relative;
  text-decoration: none;
  font-size: 1rem;
  cursor: pointer;
  white-space: nowrap;
  color: #0a0a0d;
  width: auto;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  appearance: none;
  letter-spacing: 0;
  line-height: 1;
}

.site-header .nav-trigger > span:not(.chevron) {
  width: auto;
  height: auto;
  display: inline;
  border: 0;
  background: transparent;
  transform: none;
  color: inherit;
  line-height: 1;
}

.site-header .nav-trigger.active > span:not(.chevron) {
  transform: none;
}

.site-header .nav-trigger.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: #0b0b0e;
}

.site-header .chevron {
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 160ms ease;
  display: block;
  flex: 0 0 auto;
}

.site-header .nav-trigger.active .chevron {
  transform: rotate(225deg) translateY(-2px);
}

.site-header .header-actions {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  height: var(--nav-h);
  gap: 0;
  color: #0a0a0d;
}

.site-header .language-wrap {
  height: var(--nav-h);
  position: relative;
  display: grid;
  place-items: center;
}

.site-header .language-trigger {
  width: 58px;
  height: var(--nav-h);
  display: grid;
  place-items: center;
  cursor: pointer;
  border: 0;
  background: transparent;
  padding: 0;
  color: #0a0a0d;
}

.site-header .globe {
  width: 19px;
  height: 19px;
  border: 1.7px solid #0b0b0e;
  border-radius: 50%;
  position: relative;
}

.site-header .globe::before,
.site-header .globe::after {
  content: "";
  position: absolute;
  inset: 2px 5px;
  border-left: 1px solid #0b0b0e;
  border-right: 1px solid #0b0b0e;
  border-radius: 50%;
}

.site-header .globe::after {
  inset: 7px 1px;
  border: 0;
  border-top: 1px solid #0b0b0e;
  border-bottom: 1px solid #0b0b0e;
  border-radius: 0;
}

.site-header .language-menu {
  position: absolute;
  right: -56px;
  top: var(--nav-h);
  width: 164px;
  padding: 18px 22px;
  display: grid;
  gap: 18px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 180ms ease, visibility 180ms ease, transform 180ms ease;
  z-index: 40;
  text-align: left;
}

.site-header .language-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.site-header .language-menu strong,
.site-header .language-menu span {
  font-size: 0.98rem;
  line-height: 1;
  width: auto;
  height: auto;
  border: 0;
  transform: none;
}

.site-header .login-link,
.site-header .start-button {
  height: var(--nav-h);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  white-space: nowrap;
}

.site-header .login-link {
  width: 86px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-header .start-button {
  width: 180px;
  color: #fff;
  background: #050505;
  font-size: 1.02rem;
  transition: background 180ms ease;
}

.site-header .start-button:hover {
  background: #3c20ff;
}

.mega {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--nav-h);
  width: auto;
  height: var(--menu-h);
  min-height: 0;
  display: grid;
  grid-template-columns: 63% 37%;
  gap: 0;
  padding: 0;
  background: #fff;
  color: #0a0a0d;
  border-top: 1px solid #e4e8ef;
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  z-index: 79;
}

.mega.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.mega-left {
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 54px 86px 0;
}

.menu-kicker {
  margin: 0;
  padding-bottom: 24px;
  border-bottom: 1px solid #d9e0e8;
  font-size: 1rem;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 88px;
  row-gap: 28px;
  padding-top: 42px;
  align-content: start;
}

.menu-item {
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  text-align: left;
  cursor: pointer;
  min-height: 74px;
  display: grid;
  align-content: start;
  gap: 14px;
  text-decoration: none;
}

.menu-item.active,
.menu-item:hover {
  background: transparent;
  color: inherit;
}

.menu-item:hover,
.menu-item:focus,
.menu-item:focus-visible {
  text-decoration: none;
}

.menu-item strong {
  display: block;
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.1;
  font-weight: 700;
}

.menu-item strong::after {
  content: " ->";
  opacity: 0;
  transition: opacity 140ms ease;
}

.menu-item.active strong {
  color: var(--blue);
}

.menu-item.active strong::after {
  opacity: 1;
}

.menu-item span {
  color: #676b75;
  font-size: 1rem;
  line-height: 1.4;
  max-width: 19ch;
}

.menu-item.active span,
.menu-item:hover span {
  color: #676b75;
}

.menu-footer {
  margin-left: -86px;
  margin-right: -86px;
  min-height: 80px;
  border-top: 1px solid #eceff3;
  background: #fafafa;
  display: flex;
  align-items: center;
  padding: 0 86px;
  font-size: 1rem;
  gap: 8px;
}

.menu-footer a {
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.mega-right {
  position: relative;
  background:
    linear-gradient(180deg, #fbfdff 0%, #edf6ff 100%);
  overflow: hidden;
}

.mega-right::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 52%, rgba(209, 225, 245, 0.95), rgba(255, 255, 255, 0) 26%);
  opacity: 0.9;
}

.preview {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 220ms ease, transform 220ms ease;
  z-index: 1;
}

.preview.active {
  opacity: 1;
  transform: translateY(0);
}

.preview-card {
  width: 74%;
  height: auto;
  min-height: 280px;
  display: grid;
  place-items: center;
  border-radius: 0;
  overflow: visible;
  background: transparent;
}

.preview-image,
.preview-card img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 18px 38px rgba(24, 44, 68, 0.12);
}

@media (max-width: 1200px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
    gap: 24px;
  }

  .site-header .main-nav {
    gap: 28px;
  }

  .mega {
    grid-template-columns: 1fr;
    height: auto;
  }

  .mega-right {
    display: none;
  }
}

@media (max-width: 760px) {
  :root {
    --nav-h: 64px;
  }

  .site-header {
    grid-template-columns: 1fr auto;
    padding-left: 18px;
  }

  .site-header .main-nav {
    display: none;
  }

  .site-header .header-actions .language-wrap,
  .site-header .login-link,
  .site-header .start-button {
    display: none;
  }
}

/* Shared generated BUGENCE brand mark. */
.brand-mark,
.bugence-logo::before,
.logo::before {
  width: 34px !important;
  height: 34px !important;
  flex: 0 0 34px !important;
  display: inline-block !important;
  border-radius: 0 !important;
  background: url("../Images/bugence-logo-mark.png") center / cover no-repeat !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.10) !important;
  overflow: hidden !important;
}

.brand-mark::after,
.bugence-logo::after,
.logo::after {
  display: none !important;
  content: none !important;
}

.bugence-logo,
.logo {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
}
.bugence-logo::before,
.logo::before {
  content: "" !important;
}
