:root {
  color-scheme: dark;
  --void: #03060b;
  --night: #07101a;
  --panel: rgba(8, 12, 20, 0.86);
  --line: rgba(226, 232, 239, 0.13);
  --gold: #e8ad3d;
  --ice: #62c8ef;
  --violet: #9670df;
  --forest: #55bd72;
  --text: #f4f2ed;
  --muted: #a7abb3;
  --content: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--void);
  color: var(--text);
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
}

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

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.world-stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(2, 6, 11, 0.12) 0%, rgba(2, 6, 11, 0.08) 35%, rgba(2, 6, 11, 0.48) 68%, var(--void) 100%),
    url("/images/hero/epherion-hero.png") center top / max(100%, 1500px) auto no-repeat;
}

.world-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(2, 6, 11, 0.52), transparent 28%, transparent 72%, rgba(2, 6, 11, 0.52)),
    linear-gradient(180deg, rgba(2, 6, 11, 0.34), transparent 18rem);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  height: 76px;
  border-bottom: 1px solid transparent;
  background: transparent;
  transition: background 180ms ease, border-color 180ms ease, backdrop-filter 180ms ease;
}

.site-header.is-scrolled {
  border-bottom-color: rgba(226, 232, 239, 0.08);
  background: rgba(3, 6, 11, 0.76);
  backdrop-filter: blur(14px);
}

.nav {
  width: min(var(--content), calc(100% - 48px));
  height: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo {
  width: 142px;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.7));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  color: #d7d8da;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.nav-links > a:not(.nav-cta) {
  padding-block: 0.7rem;
  transition: color 160ms ease;
}

.nav-links > a:not(.nav-cta):hover {
  color: var(--gold);
}

.nav-cta {
  padding: 0.72rem 1.15rem;
  border: 1px solid rgba(232, 173, 61, 0.32);
  border-radius: 6px;
  background: rgba(4, 8, 14, 0.48);
  color: #efc56e;
  backdrop-filter: blur(8px);
  transition: border-color 160ms ease, background 160ms ease;
}

.nav-cta:hover {
  border-color: rgba(232, 173, 61, 0.72);
  background: rgba(12, 14, 18, 0.72);
}

.hero {
  position: relative;
  min-height: 660px;
  display: grid;
  place-items: center;
  padding: 104px 24px 94px;
}

.hero-content {
  width: min(780px, 100%);
  display: grid;
  justify-items: center;
  text-align: center;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.7rem;
  padding: 0.5rem 0.85rem;
  border: 1px solid rgba(232, 173, 61, 0.16);
  border-radius: 999px;
  background: rgba(4, 7, 12, 0.72);
  color: #d9ad5c;
  font-size: 0.67rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(10px);
}

.status span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #57ce82;
  box-shadow: 0 0 10px rgba(87, 206, 130, 0.8);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  width: min(650px, 94%);
  margin: 0;
}

h1 img {
  width: 100%;
  filter: drop-shadow(0 18px 32px rgba(0, 0, 0, 0.62));
}

.hero-tagline {
  margin: 1.35rem 0 0;
  color: #e5e2dc;
  font-size: clamp(0.78rem, 1.2vw, 0.94rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.9);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0.8rem 1.45rem;
  font-size: 0.77rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

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

.button-primary {
  border-color: #efc163;
  background: linear-gradient(135deg, #f0bd55, #d68f21);
  color: #1b1105;
  box-shadow: 0 10px 30px rgba(224, 151, 31, 0.2);
}

.button-primary:hover {
  box-shadow: 0 12px 34px rgba(224, 151, 31, 0.34);
}

.button-secondary {
  border-color: rgba(226, 232, 239, 0.18);
  background: rgba(8, 10, 15, 0.64);
  color: #e7e7e7;
  backdrop-filter: blur(8px);
}

.button-secondary:hover {
  border-color: rgba(226, 232, 239, 0.38);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 42px;
  width: 24px;
  height: 34px;
  transform: translateX(-50%);
}

.scroll-cue span {
  position: absolute;
  left: 50%;
  top: 1px;
  width: 9px;
  height: 9px;
  border-right: 1px solid rgba(255, 255, 255, 0.68);
  border-bottom: 1px solid rgba(255, 255, 255, 0.68);
  transform: translateX(-50%) rotate(45deg);
  animation: cue 1.8s ease-in-out infinite;
}

@keyframes cue {
  50% {
    transform: translate(-50%, 9px) rotate(45deg);
    opacity: 0.45;
  }
}

.section-inner {
  width: min(var(--content), calc(100% - 48px));
  margin-inline: auto;
}

.continents {
  scroll-margin-top: 76px;
  padding: 12px 0 64px;
}

.section-heading {
  max-width: 650px;
  margin: 0 auto 2.1rem;
  text-align: center;
}

.eyebrow {
  margin-bottom: 0.65rem;
  color: var(--gold);
  font-size: 0.66rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.section-heading h2,
.world-copy h2,
.final-cta h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 3.6vw, 3.35rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.section-heading > p:last-child {
  margin: 0.9rem 0 0;
  color: rgba(225, 228, 232, 0.72);
  font-size: 0.96rem;
}

.continent-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.85rem;
}

.continent-card {
  --accent: var(--gold);
  position: relative;
  min-width: 0;
  aspect-ratio: 0.76;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-radius: 7px;
  background: #090d13;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.42);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.continent-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(2, 5, 9, 0.32) 60%, rgba(2, 5, 9, 0.98) 100%);
  pointer-events: none;
}

.continent-card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--accent) 72%, transparent);
  box-shadow: 0 22px 48px color-mix(in srgb, var(--accent) 16%, rgba(0, 0, 0, 0.5));
}

.continent-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease;
}

.continent-card:hover img {
  transform: scale(1.035);
}

.continent-card__content {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  padding: 1.1rem 0.85rem 0.9rem;
  text-align: center;
}

.continent-card h3 {
  margin-bottom: 0.35rem;
  color: color-mix(in srgb, var(--accent) 78%, white);
  font-size: 1.05rem;
  line-height: 1.15;
}

.continent-card p {
  margin-bottom: 0;
  color: #d8dadd;
  font-size: 0.72rem;
  line-height: 1.38;
}

.northwind {
  --accent: var(--ice);
}

.tundrian {
  --accent: var(--violet);
}

.saara {
  --accent: var(--gold);
}

.east {
  --accent: #52c8d5;
}

.amazonian {
  --accent: var(--forest);
}

.world-panel {
  scroll-margin-top: 72px;
  padding: 0 24px 96px;
  background:
    linear-gradient(90deg, rgba(91, 61, 25, 0.08), transparent 40%),
    var(--void);
}

.world-panel__inner {
  width: min(var(--content), 100%);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 4.5rem;
  align-items: center;
  border-block: 1px solid var(--line);
  padding: 4rem 0;
}

.world-copy h2 {
  margin-bottom: 1.3rem;
}

.world-copy > p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.feature-list p {
  min-height: 76px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  border-bottom: 1px solid var(--line);
  padding: 1rem;
  color: #e5e5e3;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.4;
}

.feature-list p:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.feature-list span {
  flex: 0 0 auto;
  color: var(--gold);
  font-size: 1rem;
}

.final-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 120px 24px;
  text-align: center;
  background: #050911;
}

.final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(3, 6, 11, 0.8), rgba(3, 6, 11, 0.92)),
    url("/images/continents/saara.png") center 42% / cover;
  opacity: 0.34;
}

.final-cta__inner {
  width: min(790px, 100%);
  margin-inline: auto;
  display: grid;
  justify-items: center;
}

.final-cta h2 {
  max-width: 760px;
  margin-bottom: 2rem;
}

.button-large {
  min-height: 54px;
  padding-inline: 1.8rem;
}

.site-footer {
  min-height: 104px;
  width: min(var(--content), calc(100% - 48px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-top: 1px solid var(--line);
  color: #747983;
  font-size: 0.75rem;
}

.site-footer img {
  width: 118px;
  opacity: 0.78;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 900px) {
  .nav {
    width: min(100% - 32px, var(--content));
  }

  .hero {
    min-height: 610px;
  }

  .continent-grid {
    gap: 0.65rem;
  }

  .continent-card p {
    display: none;
  }

  .world-panel__inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 640px) {
  .site-header {
    height: 66px;
  }

  .site-header.is-scrolled {
    background: rgba(3, 6, 11, 0.82);
  }

  .continents,
  .world-panel {
    scroll-margin-top: 66px;
  }

  .nav {
    width: calc(100% - 28px);
  }

  .nav-logo {
    width: 105px;
  }

  .nav-links {
    gap: 0;
  }

  .nav-links > a:not(.nav-cta) {
    display: none;
  }

  .nav-cta {
    padding: 0.62rem 0.72rem;
    font-size: 0.61rem;
  }

  .world-stage {
    background-position: 50% top;
    background-size: auto 680px;
  }

  .hero {
    min-height: 570px;
    padding: 92px 18px 90px;
  }

  .status {
    margin-bottom: 1.45rem;
  }

  h1 {
    width: min(390px, 100%);
  }

  .hero-tagline {
    max-width: 310px;
    margin-top: 1.1rem;
    font-size: 0.68rem;
    line-height: 1.7;
  }

  .hero-actions {
    width: min(330px, 100%);
    margin-top: 1.6rem;
  }

  .button {
    flex: 1 1 100%;
  }

  .scroll-cue {
    bottom: 24px;
  }

  .section-inner {
    width: 100%;
  }

  .continents {
    padding: 20px 0 48px;
  }

  .section-heading {
    padding-inline: 24px;
    margin-bottom: 1.6rem;
  }

  .section-heading h2,
  .world-copy h2,
  .final-cta h2 {
    font-size: 2rem;
  }

  .section-heading > p:last-child {
    font-size: 0.84rem;
    line-height: 1.55;
  }

  .continent-grid {
    grid-auto-flow: column;
    grid-auto-columns: minmax(210px, 68vw);
    grid-template-columns: none;
    gap: 0.8rem;
    overflow-x: auto;
    padding: 0 24px 18px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .continent-grid::-webkit-scrollbar {
    display: none;
  }

  .continent-card {
    scroll-snap-align: center;
    aspect-ratio: 0.78;
  }

  .continent-card p {
    display: block;
  }

  .world-panel {
    padding: 0 24px 64px;
  }

  .world-panel__inner {
    padding: 3rem 0;
  }

  .feature-list {
    grid-template-columns: 1fr;
  }

  .feature-list p:nth-child(odd) {
    border-right: 0;
  }

  .feature-list p {
    min-height: 62px;
    padding-inline: 0.25rem;
  }

  .final-cta {
    padding: 88px 24px;
  }

  .site-footer {
    width: calc(100% - 48px);
    min-height: 94px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
