:root {
  --ink: #06110f;
  --paper: #f3ffe7;
  --mint: #7cffc4;
  --volt: #d7ff3f;
  --coral: #ff6f61;
  --aqua: #3be7ff;
  --orchid: #c67dff;
  --deep: #11121f;
  --glass: rgba(6, 17, 15, 0.58);
  --line: rgba(243, 255, 231, 0.2);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--paper);
  background: var(--ink);
  font-family: "Space Grotesk", Arial, sans-serif;
  min-width: 320px;
}

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

.hero {
  position: relative;
  min-height: 92vh;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 18% 20%, rgba(124, 255, 196, 0.22), transparent 30%),
    radial-gradient(circle at 78% 18%, rgba(255, 111, 97, 0.22), transparent 28%),
    linear-gradient(135deg, #071310 0%, #182217 44%, #2c1731 100%);
}

#metaverse-scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.sky-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.42;
  background-image:
    linear-gradient(rgba(124, 255, 196, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 255, 196, 0.14) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 78%);
}

.site-header {
  position: relative;
  z-index: 3;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand,
.site-header nav,
.button,
.signal-panel,
.creature-grid article {
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Unbounded", system-ui, sans-serif;
  font-weight: 800;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(243, 255, 231, 0.34);
  background: linear-gradient(135deg, var(--mint), var(--coral));
  color: var(--ink);
  box-shadow: 0 0 28px rgba(124, 255, 196, 0.32);
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  background: rgba(6, 17, 15, 0.38);
}

.site-header nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  font-size: 0.92rem;
  font-weight: 700;
  color: rgba(243, 255, 231, 0.86);
}

.site-header nav a:hover,
.site-header nav a:focus-visible {
  background: rgba(215, 255, 63, 0.18);
  color: #ffffff;
  outline: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(920px, calc(100% - 32px));
  margin: 12vh auto 0;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--volt);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Unbounded", system-ui, sans-serif;
  letter-spacing: 0;
}

h1 {
  max-width: 850px;
  font-size: clamp(3rem, 10vw, 8.3rem);
  line-height: 0.9;
  text-wrap: balance;
  text-shadow: 0 16px 44px rgba(0, 0, 0, 0.4);
}

.hero-copy {
  max-width: 680px;
  margin: 26px 0 0;
  color: rgba(243, 255, 231, 0.9);
  font-size: clamp(1rem, 2vw, 1.28rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid rgba(243, 255, 231, 0.28);
  font-weight: 800;
  box-shadow: var(--shadow);
}

.button.primary {
  color: var(--ink);
  background: linear-gradient(135deg, var(--volt), var(--mint));
}

.button.secondary {
  background: rgba(6, 17, 15, 0.48);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.signal-panel {
  position: absolute;
  right: max(24px, calc((100vw - 1180px) / 2));
  bottom: 28px;
  z-index: 2;
  width: min(280px, calc(100% - 48px));
  padding: 18px;
  border: 1px solid var(--line);
  background: rgba(6, 17, 15, 0.5);
  box-shadow: var(--shadow);
}

.signal-panel span {
  display: block;
  color: rgba(243, 255, 231, 0.78);
  font-size: 0.82rem;
  font-weight: 700;
}

.signal-panel strong {
  display: block;
  margin: 3px 0;
  color: var(--mint);
  font-family: "Unbounded", system-ui, sans-serif;
  font-size: 3.4rem;
  line-height: 1;
}

.lore-section,
.island-section {
  position: relative;
  padding: clamp(64px, 10vw, 120px) 0;
}

.lore-section {
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(255, 111, 97, 0.18), transparent 36%),
    linear-gradient(135deg, #f7ffdc 0%, #cdfde6 48%, #f1dbff 100%);
}

.island-section {
  background:
    linear-gradient(135deg, rgba(59, 231, 255, 0.14), transparent 30%),
    linear-gradient(180deg, #11121f 0%, #171015 100%);
}

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

.section-inner > p {
  max-width: 850px;
  color: rgba(6, 17, 15, 0.78);
  font-size: clamp(1.04rem, 2vw, 1.34rem);
  line-height: 1.75;
}

.section-inner h2 {
  max-width: 860px;
  font-size: clamp(2rem, 5vw, 4.7rem);
  line-height: 1;
  text-wrap: balance;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1fr);
  gap: clamp(28px, 6vw, 70px);
  align-items: start;
}

.island-section .section-inner > div > p {
  color: rgba(243, 255, 231, 0.76);
  font-size: 1.12rem;
  line-height: 1.72;
}

.creature-grid {
  display: grid;
  gap: 14px;
}

.creature-grid article {
  position: relative;
  min-height: 144px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid rgba(243, 255, 231, 0.16);
  background: rgba(243, 255, 231, 0.06);
}

.creature-grid article::after {
  content: "";
  position: absolute;
  top: 18px;
  right: 18px;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(124, 255, 196, 0.55);
  background:
    linear-gradient(135deg, transparent 44%, rgba(215, 255, 63, 0.9) 45% 55%, transparent 56%),
    radial-gradient(circle at 34% 34%, rgba(255, 111, 97, 0.9), transparent 38%);
  transform: rotate(45deg);
}

.creature-grid span {
  color: var(--aqua);
  font-weight: 800;
}

.creature-grid h3 {
  margin-top: 14px;
  font-size: 1.2rem;
}

.creature-grid p {
  margin: 10px 0 0;
  color: rgba(243, 255, 231, 0.72);
  line-height: 1.55;
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header nav {
    width: 100%;
    justify-content: space-between;
  }

  .site-header nav a {
    flex: 1;
    justify-content: center;
    padding: 0 8px;
  }

  .hero {
    min-height: 98vh;
  }

  .hero-content {
    margin-top: 8vh;
  }

  .signal-panel {
    position: relative;
    right: auto;
    bottom: auto;
    margin: 42px 16px 24px auto;
  }

  .split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .hero-actions,
  .button {
    width: 100%;
  }

  .site-header nav a {
    font-size: 0.82rem;
  }

  .brand {
    font-size: 0.92rem;
  }
}
