:root {
  --bg: #1a0f2e;
  --bg-deep: #0e0718;
  --panel: rgba(42, 24, 72, 0.72);
  --ink: #f4eefc;
  --muted: #b7a4d4;
  --line: #4a3270;
  --gold: #f0d36a;
  --lime: #c6f25a;
  --focus: #d4b3ff;
  --fire: #e85d3a;
  --water: #3aa0e8;
  --grass: #4cbf6a;
  --rock: #c4a06a;
  --lightning: #f0c53a;
  --font-display: "Bricolage Grotesque", "Trebuchet MS", sans-serif;
  --font-body: "Figtree", "Trebuchet MS", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  font-family: var(--font-body);
  background: var(--bg-deep);
  line-height: 1.5;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--focus);
}

a:hover {
  color: var(--gold);
}

.site-header {
  position: absolute;
  z-index: 30;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px clamp(16px, 4vw, 40px);
}

.site-mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--ink);
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  flex: 0 1 auto;
  max-width: min(52vw, 22rem);
  line-height: 0;
}

.site-mark:hover {
  color: var(--gold);
}

/* Wide 2110×649 banners — readable in the header, still left of the nav. */
.site-mark-logo {
  display: block;
  width: auto;
  height: clamp(3.75rem, 6.5vw, 5rem);
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45));
}

.site-mark:hover .site-mark-logo {
  filter: drop-shadow(0 2px 10px rgba(240, 211, 106, 0.28));
}

.nav-toggle {
  display: none;
  position: relative;
  z-index: 2;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(14, 7, 24, 0.72);
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 180ms var(--ease), opacity 180ms var(--ease);
}

.nav-toggle-bars {
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

.site-header.is-nav-open .nav-toggle-bars {
  background: transparent;
}

.site-header.is-nav-open .nav-toggle-bars::before {
  top: 0;
  transform: rotate(45deg);
}

.site-header.is-nav-open .nav-toggle-bars::after {
  top: 0;
  transform: rotate(-45deg);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  justify-content: flex-end;
  align-items: center;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  position: relative;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms var(--ease);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.site-nav a.is-account,
.account-menu__toggle {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(18, 8, 32, 0.45);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

.site-nav a.is-account::after {
  display: none;
}

.site-nav a.is-account:hover,
.account-menu__toggle:hover,
.account-menu.is-open .account-menu__toggle {
  border-color: var(--gold);
  color: var(--gold);
}

.account-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.account-menu__panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(16, 8, 30, 0.98);
  box-shadow: var(--shadow);
  display: grid;
  gap: 4px;
  z-index: 80;
}

.account-menu__panel a,
.account-menu__panel button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  text-decoration: none;
  font: inherit;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
}

.account-menu__panel a:hover,
.account-menu__panel button:hover {
  background: rgba(84, 52, 140, 0.45);
  color: var(--gold);
}

.account-menu__panel button[data-account-sign-out] {
  color: #ff7a8a;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(920px 520px at 78% 28%, color-mix(in srgb, var(--hero-accent, #f0c53a) 18%, transparent) 0%, transparent 58%),
    radial-gradient(780px 480px at 12% 18%, rgba(59, 29, 104, 0.7) 0%, transparent 62%),
    radial-gradient(900px 520px at 50% 100%, rgba(42, 20, 80, 0.55) 0%, transparent 55%),
    linear-gradient(180deg, #1f1238 0%, var(--bg-deep) 58%, #12091f 100%);
}

html[data-hero-element="water"] { --hero-accent: var(--water); }
html[data-hero-element="fire"] { --hero-accent: var(--fire); }
html[data-hero-element="grass"] { --hero-accent: var(--grass); }
html[data-hero-element="rock"] { --hero-accent: var(--rock); }
html[data-hero-element="lightning"] { --hero-accent: var(--lightning); }

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.hero-map {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(1600px, 145%);
  max-width: none;
  height: auto;
  transform: translateX(-46%);
  object-fit: contain;
  object-position: bottom center;
  filter: saturate(1.08) contrast(1.04);
  animation: map-drift 28s var(--ease) infinite alternate;
}

.hero-critter {
  position: absolute;
  right: clamp(-2%, 3vw, 7%);
  bottom: clamp(10%, 14vh, 18%);
  width: min(54vw, 580px);
  max-width: none;
  height: auto;
  filter: drop-shadow(0 28px 36px rgba(8, 2, 20, 0.6));
  animation: critter-float 5.5s ease-in-out infinite;
  user-select: none;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(14, 7, 24, 0.78) 0%, rgba(14, 7, 24, 0.42) 46%, rgba(14, 7, 24, 0.08) 72%, rgba(14, 7, 24, 0.35) 100%),
    linear-gradient(180deg, rgba(14, 7, 24, 0.2) 0%, transparent 34%, rgba(14, 7, 24, 0.55) 100%);
}

.hero-copy {
  width: min(640px, 100%);
  padding: clamp(96px, 18vh, 140px) clamp(16px, 4vw, 40px) clamp(48px, 8vh, 72px);
}

.hero-brand {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 5.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.95;
  color: var(--ink);
  text-shadow: 0 2px 0 rgba(18, 8, 28, 0.55);
  animation: rise-in 700ms var(--ease) both;
}

.hero-headline {
  margin: 0 0 12px;
  max-width: 18ch;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.2vw, 2rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--gold);
  animation: rise-in 700ms var(--ease) 80ms both;
}

.hero-lede {
  margin: 0 0 28px;
  max-width: 36ch;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.15rem);
  animation: rise-in 700ms var(--ease) 140ms both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  animation: rise-in 700ms var(--ease) 200ms both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.98rem;
  transition: transform 180ms var(--ease), background 180ms var(--ease), border-color 180ms var(--ease), color 180ms var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--gold);
  color: #1a1020;
}

.btn-primary:hover {
  background: #ffe08a;
  color: #1a1020;
}

.btn-secondary {
  background: rgba(18, 8, 32, 0.55);
  border-color: var(--line);
  color: var(--ink);
}

.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.section {
  padding: clamp(48px, 8vh, 88px) clamp(16px, 4vw, 40px);
}

.section-inner {
  width: min(1080px, 100%);
  margin: 0 auto;
}

.section-kicker {
  margin: 0 0 8px;
  color: var(--lime);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.section-lede {
  margin: 0 0 28px;
  max-width: 52ch;
  color: var(--muted);
  font-size: 1.05rem;
}

.explore {
  background:
    radial-gradient(700px 360px at 0% 0%, rgba(59, 29, 104, 0.45) 0%, transparent 60%),
    radial-gradient(600px 300px at 100% 100%, rgba(42, 20, 80, 0.4) 0%, transparent 55%),
    var(--bg);
}

.destinations {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.destination {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px 18px;
  align-items: center;
  padding: 18px 18px;
  border: 1px solid transparent;
  border-bottom: 1px solid rgba(74, 50, 112, 0.7);
  text-decoration: none;
  color: inherit;
  transition: background 180ms var(--ease), border-color 180ms var(--ease), transform 180ms var(--ease);
}

.destination:hover,
.destination:focus-visible {
  background: rgba(42, 24, 72, 0.55);
  border-color: rgba(240, 211, 106, 0.35);
  transform: translateX(4px);
  outline: none;
}

.destination-thumb {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.destination-copy h3 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.destination-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.destination-meta {
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.destination.is-soon {
  opacity: 0.78;
}

.destination.is-soon:hover {
  opacity: 1;
}

.destination-meta.soon {
  color: var(--focus);
}

.roadmap {
  background:
    repeating-linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.02) 0 10px,
      transparent 10px 20px
    ),
    var(--bg-deep);
}

.roadmap-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.roadmap-list li {
  display: grid;
  gap: 4px;
  padding-left: 18px;
  border-left: 3px solid var(--line);
}

.roadmap-list strong {
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.roadmap-list span {
  color: var(--muted);
}

.updates {
  background:
    radial-gradient(500px 280px at 80% 0%, rgba(198, 242, 90, 0.08) 0%, transparent 55%),
    var(--bg);
}

.update-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 22px;
}

.update-list li {
  display: grid;
  gap: 6px;
}

.update-date {
  color: var(--lime);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.update-list h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.update-list p {
  margin: 0;
  color: var(--muted);
  max-width: 62ch;
}

.site-footer {
  padding: 28px clamp(16px, 4vw, 40px) 40px;
  border-top: 1px solid rgba(74, 50, 112, 0.65);
  background: var(--bg-deep);
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer .section-inner {
  display: grid;
  gap: 10px;
}

.site-footer strong {
  color: var(--ink);
  font-family: var(--font-display);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes critter-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

@keyframes map-drift {
  from { transform: translateX(-46%) translate3d(0, 0, 0); }
  to { transform: translateX(-46%) translate3d(-1.8%, 0, 0); }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .site-mark {
    max-width: min(62vw, 16rem);
  }

  .site-mark-logo {
    height: 3.5rem;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 12px;
    right: 12px;
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 4px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(14, 7, 24, 0.96);
    box-shadow: 0 18px 40px rgba(8, 2, 20, 0.55);
    backdrop-filter: blur(10px);
  }

  .site-header.is-nav-open .site-nav {
    display: flex;
  }

  .site-nav a {
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 1rem;
  }

  .site-nav a::after {
    display: none;
  }

  .site-nav a:hover,
  .site-nav a[aria-current="page"] {
    background: rgba(42, 24, 72, 0.7);
    color: var(--gold);
  }

  .site-nav a.is-account,
  .account-menu {
    margin-top: 6px;
    text-align: center;
    justify-content: center;
  }

  .account-menu {
    display: block;
  }

  .account-menu__toggle {
    width: 100%;
  }

  .account-menu__panel {
    position: static;
    margin-top: 8px;
    box-shadow: none;
    text-align: left;
  }

  .hero-veil {
    background:
      linear-gradient(180deg, rgba(14, 7, 24, 0.55) 0%, rgba(14, 7, 24, 0.28) 28%, rgba(14, 7, 24, 0.82) 62%, rgba(14, 7, 24, 0.96) 100%),
      linear-gradient(90deg, rgba(14, 7, 24, 0.88) 0%, rgba(14, 7, 24, 0.45) 70%, rgba(14, 7, 24, 0.35) 100%);
  }

  .hero-critter {
    width: min(58vw, 360px);
    right: -4%;
    bottom: 10%;
    opacity: 0.92;
  }

  .hero-map {
    width: min(1400px, 170%);
  }

  .hero-copy {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 36rem;
    padding: 96px 16px 40px;
  }

  .destination {
    grid-template-columns: 56px 1fr;
    gap: 12px;
    padding: 14px 4px;
  }

  .destination-thumb {
    width: 56px;
    height: 56px;
  }

  .destination-meta {
    grid-column: 2;
    justify-self: start;
  }

  .destination-copy p {
    font-size: 0.9rem;
  }
}

@media (max-width: 560px) {
  .site-header {
    flex-wrap: nowrap;
    align-items: center;
  }

  .site-mark {
    max-width: min(72vw, 13.5rem);
  }

  .site-mark-logo {
    height: 2.85rem;
  }

  .hero {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }

  .hero-veil {
    background:
      linear-gradient(180deg, rgba(14, 7, 24, 0.35) 0%, rgba(14, 7, 24, 0.2) 32%, rgba(14, 7, 24, 0.9) 68%, rgba(14, 7, 24, 0.98) 100%),
      linear-gradient(90deg, rgba(14, 7, 24, 0.9) 0%, rgba(14, 7, 24, 0.45) 100%);
  }

  .hero-map {
    width: min(1200px, 210%);
    opacity: 0.92;
  }

  /* Keep Tatari visible without covering CTAs */
  .hero-critter {
    top: 64px;
    right: -12%;
    bottom: auto;
    width: min(68vw, 260px);
    opacity: 0.7;
    z-index: 0;
  }

  .hero-copy {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 24px 16px max(28px, env(safe-area-inset-bottom));
    background: linear-gradient(180deg, transparent 0%, rgba(14, 7, 24, 0.82) 18%, rgba(14, 7, 24, 0.96) 100%);
  }

  .hero-brand {
    font-size: clamp(2.2rem, 11vw, 3rem);
  }

  .hero-headline {
    max-width: 16ch;
  }

  .hero-lede {
    max-width: 30ch;
    margin-bottom: 18px;
  }

  .hero-actions {
    width: 100%;
    gap: 10px;
  }

  .hero-actions .btn {
    flex: 1 1 calc(50% - 10px);
    min-height: 44px;
    padding: 0 12px;
    font-size: 0.92rem;
  }

  .destination {
    grid-template-columns: 48px 1fr;
  }

  .destination-thumb {
    width: 48px;
    height: 48px;
  }

  .destination-copy h3 {
    font-size: 1.05rem;
  }

  .section-lede {
    font-size: 0.98rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-map,
  .hero-critter,
  .hero-brand,
  .hero-headline,
  .hero-lede,
  .hero-actions,
  .reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
