.marketing-hero {
  isolation: isolate;
}

.marketing-hero-video {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  pointer-events: none;
}

.marketing-hero-overlay {
  z-index: -1;
  background: rgba(248, 250, 252, .78);
}

.dark .marketing-hero-overlay {
  background: rgba(2, 6, 23, .76);
}

.hero-destination-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .78);
  background: linear-gradient(145deg, rgba(255, 255, 255, .96), rgba(239, 246, 255, .9));
  box-shadow: 0 24px 60px rgba(15, 23, 42, .16), inset 0 1px 0 rgba(255, 255, 255, .9);
  transition: transform 280ms cubic-bezier(.2, .8, .2, 1), box-shadow 280ms ease;
}

.hero-destination-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 30px 70px rgba(15, 23, 42, .2), inset 0 1px 0 rgba(255, 255, 255, .9);
}

.dark .hero-destination-card {
  border-color: rgba(71, 85, 105, .55);
  background: linear-gradient(145deg, rgba(15, 23, 42, .96), rgba(15, 36, 70, .92));
  box-shadow: 0 24px 60px rgba(2, 6, 23, .4), inset 0 1px 0 rgba(148, 163, 184, .08);
}

.hero-destination-glow {
  position: absolute;
  top: -90px;
  right: -70px;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: rgba(59, 130, 246, .22);
  filter: blur(34px);
  pointer-events: none;
}

.hero-destination {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 92px;
  padding: 15px;
  overflow: hidden;
  border: 1px solid rgba(59, 130, 246, .2);
  border-radius: 20px;
  background: linear-gradient(120deg, rgba(239, 246, 255, .95), rgba(255, 255, 255, .68));
  text-align: left;
}

.dark .hero-destination {
  border-color: rgba(96, 165, 250, .22);
  background: linear-gradient(120deg, rgba(30, 58, 138, .24), rgba(2, 6, 23, .32));
}

.hero-destination-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  color: white;
  background: linear-gradient(145deg, rgb(37 99 235), rgb(59 130 246));
  box-shadow: 0 12px 26px rgba(37, 99, 235, .3);
}

.hero-destination-icon svg { width: 27px; height: 27px; }

.hero-destination-kicker,
.hero-destination-name,
.hero-destination-quest { display: block; }

.hero-destination-kicker {
  margin-bottom: 2px;
  color: rgb(37 99 235);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .09em;
  line-height: 1.25;
  text-transform: uppercase;
}

.dark .hero-destination-kicker { color: rgb(147 197 253); }

.hero-destination-name {
  overflow: hidden;
  color: rgb(15 23 42);
  font-size: clamp(22px, 5vw, 30px);
  font-weight: 850;
  letter-spacing: -.04em;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dark .hero-destination-name { color: white; }

.hero-destination-quest {
  margin-top: 5px;
  overflow: hidden;
  color: rgb(100 116 139);
  font-size: 11px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dark .hero-destination-quest { color: rgb(148 163 184); }

.hero-destination-status {
  align-self: start;
  padding: 6px 8px;
  border: 1px solid rgba(34, 197, 94, .22);
  border-radius: 999px;
  background: rgba(34, 197, 94, .1);
  color: rgb(21 128 61);
  font-size: 9px;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
  text-transform: uppercase;
}

.dark .hero-destination-status { color: rgb(134 239 172); }

@media (max-width: 420px) {
  .hero-destination { grid-template-columns: auto minmax(0, 1fr); }
  .hero-destination-status { grid-column: 2; justify-self: start; }
}

.marketing-menu-trigger {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-content: center;
  gap: 5px;
  border: 1px solid rgb(226 232 240);
  border-radius: 12px;
  background: rgba(255, 255, 255, .82);
  color: rgb(30 41 59);
  box-shadow: 0 8px 22px rgba(15, 23, 42, .08);
  transition: transform 280ms cubic-bezier(.2, .8, .2, 1), background 180ms ease;
}

.marketing-menu-trigger span {
  width: 19px;
  height: 2px;
  display: block;
  border-radius: 99px;
  background: currentColor;
  transform-origin: center;
  transition: transform 280ms cubic-bezier(.2, .8, .2, 1), opacity 180ms ease;
}

.dark .marketing-menu-trigger {
  border-color: rgb(30 41 59);
  background: rgba(15, 23, 42, .82);
  color: rgb(226 232 240);
}

.quest-menu-open .marketing-menu-trigger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.quest-menu-open .marketing-menu-trigger span:nth-child(2) { opacity: 0; transform: scaleX(.2); }
.quest-menu-open .marketing-menu-trigger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.quest-menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  opacity: 0;
  visibility: hidden;
  background:
    radial-gradient(circle at 86% 16%, rgba(59, 130, 246, .22), transparent 38%),
    rgba(2, 6, 23, .7);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  transition: opacity 320ms ease, visibility 320ms;
}

.quest-menu-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.quest-offcanvas {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 90;
  width: min(390px, calc(100vw - 18px));
  height: 100dvh;
  padding: max(22px, env(safe-area-inset-top)) 22px max(22px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  overflow: hidden auto;
  border-left: 1px solid rgba(148, 163, 184, .25);
  background:
    linear-gradient(145deg, rgba(59, 130, 246, .14), transparent 38%),
    rgb(255 255 255);
  color: rgb(15 23 42);
  box-shadow: -32px 0 90px rgba(2, 6, 23, .38);
  transform-origin: right center;
  transform: perspective(1400px) translate3d(112%, 0, 110px) rotateY(-25deg) scale(.92);
  opacity: .35;
  visibility: hidden;
  transition:
    transform 520ms cubic-bezier(.16, 1, .3, 1),
    opacity 300ms ease,
    visibility 520ms;
  will-change: transform;
}

.dark .quest-offcanvas {
  border-color: rgba(71, 85, 105, .45);
  background:
    linear-gradient(145deg, rgba(37, 99, 235, .2), transparent 38%),
    rgb(2 6 23);
  color: rgb(241 245 249);
}

.quest-offcanvas.is-open {
  transform: perspective(1400px) translate3d(0, 0, 0) rotateY(0) scale(1);
  opacity: 1;
  visibility: visible;
}

.quest-offcanvas-glow {
  position: absolute;
  top: -120px;
  right: -80px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(59, 130, 246, .18);
  filter: blur(65px);
  pointer-events: none;
}

.quest-offcanvas-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.quest-offcanvas-brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.quest-offcanvas-brand img {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .2);
}

.quest-offcanvas-brand span {
  min-width: 0;
  display: grid;
}

.quest-offcanvas-brand strong {
  font-size: 16px;
  font-weight: 800;
}

.quest-offcanvas-brand small,
.quest-offcanvas-nav small {
  color: rgb(100 116 139);
  font-size: 11px;
}

.dark .quest-offcanvas-brand small,
.dark .quest-offcanvas-nav small {
  color: rgb(148 163 184);
}

.quest-menu-close {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(148, 163, 184, .13);
  color: inherit;
  font-size: 27px;
  line-height: 1;
  transition: transform 220ms ease, background 180ms ease;
}

.quest-menu-close:hover {
  transform: rotate(8deg);
  background: rgba(148, 163, 184, .23);
}

.quest-offcanvas-nav {
  position: relative;
  margin: 22px 0 0;
  display: grid;
  gap: 7px;
}

.quest-offcanvas-nav a {
  display: grid;
  gap: 2px;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 15px;
  color: inherit;
  text-decoration: none;
  opacity: 0;
  transform: translateX(42px) rotateY(-14deg);
  transform-origin: right;
  transition:
    transform 420ms cubic-bezier(.16, 1, .3, 1),
    opacity 260ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.quest-offcanvas.is-open .quest-offcanvas-nav a {
  opacity: 1;
  transform: translateX(0) rotateY(0);
}

.quest-offcanvas.is-open .quest-offcanvas-nav a:nth-child(1) { transition-delay: 70ms; }
.quest-offcanvas.is-open .quest-offcanvas-nav a:nth-child(2) { transition-delay: 105ms; }
.quest-offcanvas.is-open .quest-offcanvas-nav a:nth-child(3) { transition-delay: 140ms; }
.quest-offcanvas.is-open .quest-offcanvas-nav a:nth-child(4) { transition-delay: 175ms; }
.quest-offcanvas.is-open .quest-offcanvas-nav a:nth-child(5) { transition-delay: 210ms; }
.quest-offcanvas.is-open .quest-offcanvas-nav a:nth-child(6) { transition-delay: 245ms; }
.quest-offcanvas.is-open .quest-offcanvas-nav a:nth-child(n+7) { transition-delay: 280ms; }

.quest-offcanvas-nav a:hover,
.quest-offcanvas-nav a:focus-visible {
  border-color: rgba(59, 130, 246, .3);
  background: rgba(59, 130, 246, .08);
}

.quest-offcanvas-nav strong {
  font-size: 14px;
  font-weight: 750;
}

.quest-offcanvas-nav .quest-offcanvas-play {
  margin: 8px 0;
  border-color: rgba(59, 130, 246, .24);
  background: linear-gradient(135deg, rgb(37 99 235), rgb(59 130 246));
  color: white;
  box-shadow: 0 12px 30px rgba(37, 99, 235, .24);
}

.quest-offcanvas-nav .quest-offcanvas-play small {
  color: rgba(255, 255, 255, .75);
}

.quest-language-links {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 18px;
}

.quest-language-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 9px 5px;
  opacity: 1;
  transform: none;
  border: 1px solid rgba(148, 163, 184, .24);
  border-radius: 11px;
  color: inherit;
  text-decoration: none;
  border-color: rgba(148, 163, 184, .24);
  font-size: 11px;
  font-weight: 800;
}

.quest-language-links a span {
  font-size: 15px;
  line-height: 1;
}

.quest-language-links a.active {
  border-color: rgb(59 130 246);
  background: rgb(37 99 235);
  color: #fff;
}

.quest-menu-open {
  overflow: hidden;
}

@media (min-width: 1024px) {
  .marketing-menu-trigger {
    display: none;
  }
}

@media (max-width: 767px) {
  .marketing-hero {
    min-height: 100vh;
    min-height: 100svh;
  }

  .marketing-hero-video {
    width: 100vw;
    height: 100vh;
    object-position: 90% 50%;
  }
}

@media (max-width: 520px) {
  #lang-menu {
    display: none;
  }

  .quest-offcanvas {
    width: calc(100vw - 12px);
    padding-inline: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .marketing-menu-trigger,
  .marketing-menu-trigger span,
  .quest-menu-backdrop,
  .quest-offcanvas,
  .quest-offcanvas-nav a,
  .quest-menu-close {
    transition-duration: 1ms !important;
    transition-delay: 0ms !important;
  }
}
