/* Globwalk Hero — glass nav + immersive first screen */

:root {
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', sans-serif;
  --hero-nav-h: 72px;
}

/* ── Premium glass nav ── */
.nav--premium {
  height: var(--hero-nav-h);
  padding: 0 clamp(20px, 4vw, 48px);
  background: transparent;
  border-bottom-color: transparent;
  transition:
    background 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    backdrop-filter 0.5s;
}

.nav--premium.nav--scrolled {
  background: rgba(5, 10, 24, 0.72);
  backdrop-filter: saturate(180%) blur(28px);
  -webkit-backdrop-filter: saturate(180%) blur(28px);
  border-bottom-color: rgba(148, 163, 184, 0.1);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
}

.nav--premium .nav__tagline {
  display: none;
}

.nav--premium .nav__mark {
  width: 36px;
  height: 36px;
}

.nav--premium .nav__wordmark {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.nav--premium .nav__links {
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav--premium .nav__links a {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(248, 250, 252, 0.72);
  padding: 8px 14px;
  border-radius: 999px;
  transition: color 0.25s, background 0.25s;
}

.nav--premium .nav__links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.nav--premium .nav__app {
  background: transparent;
  border: none;
  padding: 8px 14px;
}

.nav--premium .nav__cta {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.9) 0%, rgba(37, 99, 235, 0.95) 100%);
  color: #fff;
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.25);
}

.nav--premium .nav__cta:hover {
  background: linear-gradient(135deg, rgba(34, 211, 238, 1) 0%, rgba(37, 99, 235, 1) 100%);
  box-shadow: 0 0 32px rgba(34, 211, 238, 0.35);
  transform: none;
}

.nav--premium .nav__login {
  font-family: var(--font-display);
  font-size: 0.75rem;
}

@media (max-width: 960px) {
  .nav--premium .nav__links {
    display: none;
  }
}

body.has-hero .globe-wire {
  display: none;
}

body.has-hero .ambient {
  opacity: 0.35;
}

/* ── Hero section ── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  padding:
    calc(var(--hero-nav-h) + 48px)
    clamp(24px, 5vw, 64px)
    clamp(48px, 8vh, 96px);
  overflow: hidden;
  isolation: isolate;
}

.hero__viewport {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__slides {
  position: absolute;
  inset: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.8s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity;
}

.hero__slide.is-active {
  opacity: 1;
  z-index: 1;
}

.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.08);
  animation: heroKenBurns 18s ease-in-out infinite alternate;
}

.hero__slide:not(.is-active) img {
  animation: none;
}

@keyframes heroKenBurns {
  0%   { transform: scale(1.06) translate(0, 0); }
  100% { transform: scale(1.14) translate(-1.2%, -0.8%); }
}

.hero__vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg,
      rgba(5, 10, 24, 0.55) 0%,
      rgba(5, 10, 24, 0.15) 35%,
      rgba(5, 10, 24, 0.5) 70%,
      rgba(5, 10, 24, 0.92) 100%),
    radial-gradient(ellipse 90% 60% at 50% 100%, rgba(5, 10, 24, 0.8), transparent 60%),
    radial-gradient(ellipse 50% 40% at 85% 20%, rgba(37, 99, 235, 0.15), transparent 55%);
  pointer-events: none;
}

.hero__grain {
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.7;
}

.hero__globe {
  position: absolute;
  top: 18%;
  right: clamp(-80px, 8vw, 120px);
  width: clamp(280px, 38vw, 520px);
  height: clamp(280px, 38vw, 520px);
  z-index: 5;
  pointer-events: none;
  opacity: 0.55;
}

.hero__globe-core {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(34, 211, 238, 0.12);
  background:
    radial-gradient(circle at 32% 28%, rgba(34, 211, 238, 0.08), transparent 45%),
    radial-gradient(circle at 70% 75%, rgba(37, 99, 235, 0.06), transparent 50%);
  animation: heroGlobeSpin 90s linear infinite;
}

.hero__globe-ring {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  border: 1px solid rgba(59, 130, 246, 0.08);
}

.hero__globe-ring--2 {
  inset: 24%;
  border-color: rgba(34, 211, 238, 0.1);
  animation: heroGlobeTilt 60s linear infinite reverse;
}

.hero__globe-ring--3 {
  inset: 36%;
  border-color: rgba(163, 230, 53, 0.06);
  animation: heroGlobeSpin 45s linear infinite;
}

.hero__globe-meridian {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  border: 1px solid transparent;
  border-left-color: rgba(34, 211, 238, 0.06);
  border-right-color: rgba(34, 211, 238, 0.06);
  transform: rotateY(60deg);
  animation: heroGlobeSpin 70s linear infinite;
}

@keyframes heroGlobeSpin {
  to { transform: rotate(360deg); }
}

@keyframes heroGlobeTilt {
  to { transform: rotateX(72deg) rotate(360deg); }
}

.hero__hud {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  font-family: 'SF Mono', 'Menlo', monospace;
  font-size: 0.625rem;
  color: rgba(34, 211, 238, 0.35);
  letter-spacing: 0.08em;
}

.hero__hud-col {
  position: absolute;
  top: calc(var(--hero-nav-h) + 32px);
  bottom: 120px;
  width: 140px;
  overflow: hidden;
  mask-image: linear-gradient(180deg, transparent, #000 15%, #000 85%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 15%, #000 85%, transparent);
}

.hero__hud-col--left { left: clamp(12px, 2vw, 32px); }
.hero__hud-col--right { right: clamp(12px, 2vw, 32px); text-align: right; }

.hero__hud-line {
  display: block;
  padding: 4px 0;
  opacity: 0;
  animation: hudStream 8s linear infinite;
  white-space: nowrap;
}

.hero__hud-line:nth-child(1) { animation-delay: 0s; }
.hero__hud-line:nth-child(2) { animation-delay: 1.6s; }
.hero__hud-line:nth-child(3) { animation-delay: 3.2s; }
.hero__hud-line:nth-child(4) { animation-delay: 4.8s; }
.hero__hud-line:nth-child(5) { animation-delay: 6.4s; }

@keyframes hudStream {
  0%   { opacity: 0; transform: translateY(20px); }
  8%   { opacity: 1; }
  85%  { opacity: 0.6; }
  100% { opacity: 0; transform: translateY(-180px); }
}

.hero__lens {
  position: absolute;
  inset: 12% 18%;
  z-index: 7;
  border-radius: 48% / 42%;
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow:
    inset 0 0 80px rgba(34, 211, 238, 0.03),
    0 0 120px rgba(5, 10, 24, 0.4);
  pointer-events: none;
  opacity: 0.6;
}

.hero__lens::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2px;
  height: 24px;
  margin: -12px 0 0 -1px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 1px;
}

.hero__content {
  position: relative;
  z-index: 10;
  max-width: 780px;
  width: 100%;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(34, 211, 238, 0.85);
  margin-bottom: 20px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(10, 18, 40, 0.45);
  border: 1px solid rgba(34, 211, 238, 0.18);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s 0.1s, transform 1s 0.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero.is-ready .hero__eyebrow {
  opacity: 1;
  transform: translateY(0);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6.5vw, 4.75rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: #fff;
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 1.1s 0.25s, transform 1.1s 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero.is-ready .hero__title {
  opacity: 1;
  transform: translateY(0);
}

.hero__lead {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 400;
  line-height: 1.65;
  color: rgba(248, 250, 252, 0.72);
  max-width: 560px;
  margin-bottom: 36px;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s 0.45s, transform 1s 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero.is-ready .hero__lead {
  opacity: 1;
  transform: translateY(0);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s 0.65s, transform 1s 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero.is-ready .hero__actions {
  opacity: 1;
  transform: translateY(0);
}

.hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  padding: 16px 28px;
  border-radius: 999px;
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
}

.hero__btn--primary {
  color: #030610;
  background: linear-gradient(135deg, #67E8F9 0%, #22D3EE 40%, #A3E635 100%);
  box-shadow:
    0 0 40px rgba(34, 211, 238, 0.35),
    0 8px 32px rgba(0, 0, 0, 0.3);
}

.hero__btn--primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 56px rgba(34, 211, 238, 0.45),
    0 12px 40px rgba(0, 0, 0, 0.35);
}

.hero__btn--ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hero__btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(34, 211, 238, 0.3);
  transform: translateY(-2px);
}

.hero__destinations {
  position: absolute;
  bottom: clamp(32px, 6vh, 72px);
  right: clamp(24px, 5vw, 64px);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  opacity: 0;
  transition: opacity 1s 0.9s;
}

.hero.is-ready .hero__destinations {
  opacity: 1;
}

.hero__dest {
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(248, 250, 252, 0.35);
  padding: 6px 12px;
  border-radius: 6px;
  transition: color 0.5s, background 0.5s;
}

.hero__dest.is-active {
  color: rgba(34, 211, 238, 0.9);
  background: rgba(10, 18, 40, 0.5);
  border: 1px solid rgba(34, 211, 238, 0.15);
  backdrop-filter: blur(8px);
}

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  opacity: 0;
  transition: opacity 1s 1.1s;
}

.hero.is-ready .hero__scroll {
  opacity: 0.5;
}

.hero__scroll:hover {
  opacity: 0.8;
}

.hero__scroll-line {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.6), transparent);
  animation: heroScrollPulse 2s ease-in-out infinite;
}

@keyframes heroScrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 0.5; }
  50%      { transform: scaleY(0.6); opacity: 1; }
}

.hero__progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 12;
  background: rgba(255, 255, 255, 0.06);
}

.hero__progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #22D3EE, #A3E635);
  transition: width 0.1s linear;
}

@media (max-width: 768px) {
  .hero {
    align-items: center;
    text-align: center;
    padding-bottom: 100px;
  }

  .hero__content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero__lead {
    max-width: none;
  }

  .hero__actions {
    justify-content: center;
    width: 100%;
  }

  .hero__btn {
    flex: 1 1 auto;
    min-width: 140px;
  }

  .hero__globe {
    opacity: 0.25;
    right: -120px;
    top: 10%;
  }

  .hero__hud-col {
    display: none;
  }

  .hero__destinations {
    display: none;
  }

  .hero__lens {
    inset: 8% 6%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__slide img,
  .hero__globe-core,
  .hero__globe-ring,
  .hero__hud-line,
  .hero__scroll-line {
    animation: none !important;
  }

  .hero__eyebrow,
  .hero__title,
  .hero__lead,
  .hero__actions,
  .hero__destinations,
  .hero__scroll {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
