@font-face {
  font-family: "Luckiest Guy";
  src: url("assets/luckiest-guy.ttf") format("truetype");
  font-display: swap;
}

:root {
  --navy: #08244a;
  --navy-deep: #061a36;
  --violet: #6948f5;
  --violet-deep: #4a2fc2;
  --sky: #1ab4ff;
  --sky-deep: #0875db;
  --gold: #ffc943;
  --orange: #ff8a3c;
  --cream: #fff8e8;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(6, 26, 54, 0.22);
  --display: "Luckiest Guy", "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--navy);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: var(--white);
  color: var(--navy);
  transform: translateY(-180%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 1rem;
  left: 50%;
  width: min(1180px, calc(100% - 2rem));
  min-height: 4rem;
  padding: 0.55rem 0.65rem 0.55rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 1.25rem;
  background: rgba(8, 36, 74, 0.48);
  box-shadow: 0 12px 35px rgba(8, 21, 54, 0.12);
  color: var(--white);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: background 220ms ease, box-shadow 220ms ease;
}

.site-header.is-scrolled {
  background: rgba(8, 36, 74, 0.9);
  box-shadow: 0 14px 40px rgba(5, 20, 46, 0.28);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand img {
  border-radius: 0.85rem;
  box-shadow: 0 5px 12px rgba(5, 20, 46, 0.28);
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.site-header nav a {
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 800;
  text-decoration: none;
}

.site-header nav a:hover,
.site-header nav a:focus-visible {
  background: rgba(255, 255, 255, 0.14);
}

.site-header nav .nav-pill {
  background: var(--gold);
  color: var(--navy);
}

.site-header nav .nav-pill:hover,
.site-header nav .nav-pill:focus-visible {
  background: #ffdb77;
}

.hero {
  position: relative;
  min-height: 100svh;
  padding: 9rem max(5vw, 1.25rem) 6rem;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(460px, 1.12fr);
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 11% 26%, rgba(255, 255, 255, 0.19), transparent 24%),
    radial-gradient(circle at 78% 9%, rgba(42, 196, 255, 0.56), transparent 30%),
    linear-gradient(145deg, #5433cc 0%, #714ffc 45%, #198ce7 100%);
  color: var(--white);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.22;
  background-image: radial-gradient(circle, #fff 1px, transparent 1.5px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to right, #000, transparent 70%);
}

.hero::after {
  content: "";
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: -8.2rem;
  height: 12rem;
  z-index: 3;
  border-radius: 50% 50% 0 0;
  background: var(--cream);
}

.hero-copy {
  position: relative;
  z-index: 5;
  width: min(670px, 100%);
  min-width: 0;
  max-width: 100%;
}

.eyebrow {
  margin: 0 0 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow span {
  color: var(--gold);
}

.hero-logo {
  display: none;
}

h1,
h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0.015em;
  line-height: 0.95;
  text-transform: uppercase;
  text-wrap: balance;
}

h1 {
  max-width: 720px;
  font-size: clamp(4.2rem, 8vw, 8rem);
  text-shadow: 0 8px 0 rgba(43, 28, 130, 0.24);
}

h1 span {
  color: var(--gold);
}

.hero-intro {
  max-width: 575px;
  margin: 1.65rem 0 2rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1.08rem, 1.7vw, 1.3rem);
  font-weight: 650;
  line-height: 1.58;
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.store-button {
  min-width: 190px;
  padding: 0.72rem 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 1rem;
  background: rgba(5, 21, 48, 0.88);
  box-shadow: 0 12px 30px rgba(5, 20, 48, 0.2);
  color: var(--white);
  user-select: none;
}

.store-button svg {
  width: 1.8rem;
  height: 1.8rem;
  fill: currentColor;
  flex: 0 0 auto;
}

.store-button span {
  display: grid;
  line-height: 1.05;
}

.store-button small {
  margin-bottom: 0.15rem;
  font-size: 0.67rem;
  letter-spacing: 0.02em;
}

.store-button strong {
  font-size: 1.15rem;
}

.hero-art {
  position: relative;
  z-index: 2;
  width: min(63vw, 830px);
  justify-self: center;
  aspect-ratio: 1;
  filter: drop-shadow(0 34px 35px rgba(22, 12, 86, 0.32));
}

.world {
  position: absolute;
  inset: 2%;
  width: 96%;
  height: 96%;
  object-fit: contain;
  animation: world-float 6s ease-in-out infinite;
}

.orbit {
  position: absolute;
  inset: 13%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  transform: rotate(-22deg) scaleY(0.42);
}

.orbit-one::after,
.orbit-two::after {
  content: "";
  position: absolute;
  top: 47%;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 18px var(--gold);
}

.orbit-one::after {
  left: -5px;
}

.orbit-two {
  inset: 5%;
  opacity: 0.48;
  transform: rotate(24deg) scaleY(0.42);
}

.orbit-two::after {
  right: -5px;
}

.spark {
  position: absolute;
  z-index: 3;
  color: var(--gold);
  font-size: 2rem;
  animation: twinkle 2.4s ease-in-out infinite;
}

.spark-one { left: 2%; top: 20%; }
.spark-two { right: 3%; top: 22%; animation-delay: 0.8s; }
.spark-three { left: 12%; bottom: 13%; animation-delay: 1.4s; }

.scroll-cue {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 2.4rem;
  display: grid;
  justify-items: center;
  gap: 0.15rem;
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.scroll-cue svg {
  width: 1.6rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  animation: nudge 1.5s ease-in-out infinite;
}

.explore {
  padding: clamp(6rem, 10vw, 9rem) max(5vw, 1.25rem);
  background:
    radial-gradient(circle at 90% 0%, rgba(255, 201, 67, 0.28), transparent 24%),
    var(--cream);
}

.section-heading {
  width: min(760px, 100%);
  margin: 0 auto clamp(3rem, 6vw, 5rem);
  text-align: center;
}

.eyebrow-dark {
  justify-content: center;
  color: var(--violet-deep);
}

.section-heading h2 {
  color: var(--navy);
  font-size: clamp(3.4rem, 7vw, 6.6rem);
}

.section-heading h2 span {
  color: var(--violet);
}

.section-heading > p:last-child {
  width: min(630px, 100%);
  margin: 1.4rem auto 0;
  color: #53647c;
  font-size: clamp(1.03rem, 1.5vw, 1.2rem);
  font-weight: 620;
}

.feature-grid {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-card {
  position: relative;
  min-height: 510px;
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border: 1px solid rgba(8, 36, 74, 0.07);
  border-radius: 2rem;
  box-shadow: var(--shadow);
  transition: transform 280ms ease, box-shadow 280ms ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 34px 80px rgba(6, 26, 54, 0.25);
}

.feature-purple {
  background: linear-gradient(145deg, #7e5cff, #4c30c4);
  color: var(--white);
}

.feature-gold {
  background: linear-gradient(145deg, #ffe688, #ffb92f);
  color: var(--navy);
}

.feature-blue {
  background: linear-gradient(145deg, #31c8ff, #0e79df);
  color: var(--white);
}

.feature-number {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  opacity: 0.72;
}

.feature-card h3 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.1rem, 3.2vw, 3rem);
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
}

.feature-card > p:last-child {
  margin: 0.75rem 0 0;
  font-weight: 680;
  line-height: 1.5;
  opacity: 0.88;
}

.card-art {
  position: absolute;
  inset: 1.3rem 1.3rem auto;
  height: 58%;
}

.card-stack img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 49%;
  border: 5px solid rgba(255, 255, 255, 0.94);
  border-radius: 50%;
  box-shadow: 0 16px 30px rgba(15, 12, 70, 0.27);
}

.card-stack img:nth-child(1) { transform: translate(-95%, -50%) rotate(-13deg); }
.card-stack img:nth-child(2) { z-index: 2; transform: translate(-50%, -58%) rotate(2deg); }
.card-stack img:nth-child(3) { transform: translate(-3%, -46%) rotate(13deg); }

.destination-art {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.3rem;
  transform: rotate(-5deg);
}

.destination-art span {
  padding: 0.22rem 0.75rem 0.02rem;
  font-family: var(--display);
  font-size: clamp(2.9rem, 4.4vw, 4.5rem);
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 4px 0 rgba(255, 255, 255, 0.48);
}

.destination-art span:nth-child(2) { color: var(--violet-deep); transform: translateX(12%); }
.destination-art span:nth-child(3) { color: #0a77a0; transform: translateX(-9%); }

.passport-art {
  display: grid;
  place-items: center;
}

.mini-passport {
  width: 46%;
  aspect-ratio: 0.76;
  padding: 1.4rem 0.75rem;
  display: grid;
  place-content: center;
  justify-items: center;
  border: 4px solid #ffcf5a;
  border-radius: 1rem 1.5rem 1.5rem 1rem;
  background: linear-gradient(145deg, #744ff2, #4d2fb7);
  box-shadow: 0 18px 32px rgba(4, 44, 101, 0.28), inset -12px 0 rgba(23, 10, 95, 0.18);
  color: var(--gold);
  text-align: center;
  transform: rotate(7deg);
}

.mini-passport > span { font-size: 2.5rem; line-height: 1; }
.mini-passport strong { font-family: var(--display); font-size: 1.5rem; line-height: 0.95; }

.stamp {
  position: absolute;
  right: 3%;
  bottom: 9%;
  padding: 0.4rem 0.6rem 0.25rem;
  border: 4px double var(--white);
  border-radius: 0.5rem;
  font-family: var(--display);
  font-size: 1.3rem;
  transform: rotate(-12deg);
}

.final-cta {
  position: relative;
  min-height: 760px;
  padding: 7rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.2), transparent 26%),
    linear-gradient(150deg, #6d4cff, #187fe1);
  color: var(--white);
  text-align: center;
}

.final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image: radial-gradient(circle, #fff 1px, transparent 1.5px);
  background-size: 38px 38px;
}

.final-cta > *:not(.cloud) {
  position: relative;
  z-index: 2;
}

.cta-icon {
  width: clamp(130px, 15vw, 190px);
  height: auto;
  margin-bottom: 1.75rem;
  border: 8px solid rgba(255, 255, 255, 0.92);
  border-radius: 24%;
  box-shadow: 0 24px 45px rgba(9, 24, 79, 0.28);
  transform: rotate(-4deg);
}

.final-cta .eyebrow {
  margin-bottom: 1rem;
}

.final-cta h2 {
  font-size: clamp(4rem, 8.5vw, 8rem);
  text-shadow: 0 8px 0 rgba(20, 28, 114, 0.24);
}

.final-cta > p:not(.eyebrow) {
  margin: 1.4rem 0 2rem;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  font-weight: 700;
}

.top-link {
  padding: 0.8rem 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-weight: 850;
  text-decoration: none;
  backdrop-filter: blur(10px);
}

.top-link:hover,
.top-link:focus-visible {
  background: rgba(255, 255, 255, 0.2);
}

.cloud {
  position: absolute;
  width: 300px;
  height: 90px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  filter: blur(1px);
}

.cloud::before,
.cloud::after {
  content: "";
  position: absolute;
  bottom: 0;
  border-radius: 50%;
  background: inherit;
}

.cloud::before { left: 45px; width: 135px; height: 135px; }
.cloud::after { right: 32px; width: 100px; height: 110px; }
.cloud-left { left: -70px; top: 25%; }
.cloud-right { right: -80px; bottom: 18%; transform: scale(0.75); }

footer {
  padding: 2.2rem max(5vw, 1.25rem);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.78);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-brand img {
  width: 64px;
  height: auto;
}

.footer-brand p,
.copyright {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
}

footer nav a {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 800;
  text-underline-offset: 0.25rem;
}

.copyright {
  justify-self: end;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 620ms ease, transform 620ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-card:nth-child(2) { transition-delay: 90ms; }
.feature-card:nth-child(3) { transition-delay: 180ms; }

@keyframes world-float {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-16px) rotate(1deg); }
}

@keyframes twinkle {
  0%, 100% { opacity: 0.45; transform: scale(0.7) rotate(0); }
  50% { opacity: 1; transform: scale(1.1) rotate(35deg); }
}

@keyframes nudge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

@media (max-width: 980px) {
  .hero {
    min-height: auto;
    padding-top: 8rem;
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
  }

  .hero-copy {
    width: min(720px, 100%);
    margin: 0 auto;
  }

  .hero .eyebrow,
  .store-row {
    justify-content: center;
  }

  .hero-intro {
    margin-inline: auto;
  }

  .hero-art {
    width: min(92vw, 690px);
    margin-top: -1rem;
  }

  .scroll-cue {
    display: none;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    width: min(600px, 100%);
  }

  .feature-card {
    min-height: 560px;
  }

  footer {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .copyright {
    justify-self: center;
  }
}

@media (max-width: 600px) {
  .site-header {
    position: absolute;
    top: max(0.65rem, env(safe-area-inset-top));
    width: calc(100% - 1.25rem);
  }

  .brand span,
  .site-header nav > a:first-child {
    display: none;
  }

  .site-header nav a {
    padding-inline: 0.8rem;
    font-size: 0.86rem;
  }

  .hero {
    padding: 7.4rem 1rem 5rem;
    width: 100%;
    max-width: 100%;
  }

  h1 {
    width: 100%;
    max-width: 100%;
    font-size: clamp(3rem, 12.75vw, 4rem);
    line-height: 1;
    text-align: center;
    text-wrap: wrap;
  }

  .hero .eyebrow {
    width: 100%;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-align: center;
  }

  .hero-intro,
  .store-row {
    width: 100%;
    max-width: 100%;
  }

  .hero-art {
    width: min(106vw, 520px);
    margin-inline: 0;
    justify-self: center;
  }

  .store-button {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    justify-content: center;
  }

  .section-heading h2 {
    font-size: clamp(3.1rem, 15vw, 4.7rem);
  }

  .feature-card {
    min-height: 500px;
    border-radius: 1.5rem;
  }

  .destination-art span {
    font-size: 3.5rem;
  }

  .mini-passport {
    width: 52%;
  }

  .final-cta {
    min-height: 680px;
  }

  .final-cta h2 {
    font-size: clamp(3.7rem, 17vw, 5.7rem);
  }

  .footer-brand {
    flex-direction: column;
  }
}

@media (max-height: 520px) and (max-width: 980px) {
  .site-header {
    position: absolute;
    top: 0.5rem;
    min-height: 3.5rem;
    padding-block: 0.4rem;
  }

  .site-header .brand img {
    width: 38px;
    height: 38px;
  }

  .site-header nav a {
    padding-block: 0.5rem;
  }

  .hero {
    padding-top: 6.5rem;
  }

  .hero .eyebrow {
    margin-bottom: 0.7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
