:root {
  --navy: #10113b;
  --navy-2: #171958;
  --ink: #17182d;
  --cyan: #35d8ff;
  --purple: #8a5cff;
  --orange: #ff8a34;
  --lime: #b9ee49;
  --cream: #fffaf0;
  --white: #ffffff;
  --muted: #5c6078;
  --shadow: 0 20px 50px rgba(16, 17, 59, .16);
  --radius: 28px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "Trebuchet MS", "Avenir Next", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 999;
  padding: .75rem 1rem;
  border-radius: 12px;
  background: var(--white);
  color: var(--navy);
  font-weight: 800;
}

.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(16, 17, 59, .94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.1);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  color: var(--white);
  text-decoration: none;
  font-size: 1.28rem;
  font-weight: 900;
  letter-spacing: -.03em;
}

.brand img { width: 48px; height: 48px; object-fit: contain; }

.main-nav { display: flex; align-items: center; gap: .25rem; }
.main-nav a {
  color: rgba(255,255,255,.82);
  text-decoration: none;
  padding: .65rem .85rem;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 800;
}
.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a[aria-current="page"] {
  color: var(--white);
  background: rgba(53,216,255,.16);
}

.nav-cta { border: 2px solid var(--cyan); }
.menu-button {
  display: none;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 14px;
  color: var(--white);
  background: rgba(255,255,255,.1);
  cursor: pointer;
}

.hero {
  min-height: 680px;
  position: relative;
  display: grid;
  align-items: center;
  color: var(--white);
  background: var(--navy);
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: linear-gradient(90deg, rgba(16,17,59,.98) 0%, rgba(16,17,59,.84) 35%, rgba(16,17,59,.18) 72%), url("hero-world.webp");
  background-size: cover;
  background-position: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 130px;
  z-index: -1;
  background: linear-gradient(transparent, rgba(16,17,59,.45));
}

.inner-hero {
  min-height: 470px;
  position: relative;
  display: grid;
  align-items: end;
  padding: 5rem 0;
  color: var(--white);
  background: var(--navy);
  overflow: hidden;
  isolation: isolate;
}

.inner-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(90deg, rgba(16,17,59,.96), rgba(16,17,59,.62) 55%, rgba(16,17,59,.25)), url("adventure-cave.webp") center/cover;
}

.inner-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 80% 20%, rgba(53,216,255,.2), transparent 32%);
}

.hero-content,
.page-hero-content,
.container {
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
}

.hero-content { padding-block: 5rem; }
.hero-copy { max-width: 650px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin: 0 0 1rem;
  color: #6540d8;
  font-size: .88rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 5px;
  border-radius: 99px;
  background: var(--purple);
}

.hero .eyebrow,
.inner-hero .eyebrow,
.section-dark .eyebrow,
.section-purple .eyebrow { color: var(--lime); }

.hero .eyebrow::before,
.inner-hero .eyebrow::before,
.section-dark .eyebrow::before,
.section-purple .eyebrow::before { background: var(--lime); }

h1, h2, h3 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: -.045em;
  font-weight: 900;
}

h1 { max-width: 850px; font-size: clamp(3rem, 7vw, 6.8rem); }
h2 { font-size: clamp(2.3rem, 4.5vw, 4.35rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.75rem); }

.hero p,
.inner-hero p {
  max-width: 650px;
  margin: 1.35rem 0 0;
  color: rgba(255,255,255,.82);
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
}

.actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: .75rem 1.25rem;
  border: 2px solid transparent;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 900;
  box-shadow: 0 9px 0 rgba(0,0,0,.16);
  transition: transform .2s ease, box-shadow .2s ease;
}
.button:hover,
.button:focus-visible { transform: translateY(-3px); box-shadow: 0 12px 0 rgba(0,0,0,.14); }
.button-primary { color: var(--navy); background: var(--lime); }
.button-secondary { color: var(--white); border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.08); }
.button-dark { color: var(--white); background: var(--navy); }

.section { padding: 6.5rem 0; }
.section-tight { padding: 4rem 0; }
.section-dark { color: var(--white); background: var(--navy); }
.section-purple { color: var(--white); background: var(--purple); }
.section-cyan { background: #dff9ff; }

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.4rem;
}
.section-head p { max-width: 560px; margin: 0; color: var(--muted); }
.section-dark .section-head p { color: rgba(255,255,255,.7); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.35rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }

.card {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  padding: 2rem;
  border: 2px solid rgba(16,17,59,.09);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}
.card p { color: var(--muted); }
.card-number {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 2.5rem;
  border-radius: 16px;
  color: var(--navy);
  background: var(--cyan);
  font-weight: 900;
  transform: rotate(-4deg);
}
.card:nth-child(2) .card-number { background: var(--orange); transform: rotate(5deg); }
.card:nth-child(3) .card-number { background: var(--lime); transform: rotate(-2deg); }

.feature-card {
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  color: var(--white);
  border: 0;
  background: linear-gradient(150deg, var(--purple), var(--navy));
}
.feature-card:nth-child(2) { background: linear-gradient(150deg, #008db3, var(--navy)); }
.feature-card:nth-child(3) { color: var(--navy); background: linear-gradient(150deg, var(--lime), #58d2a8); }
.feature-card p { color: inherit; opacity: .8; }

.character-card {
  display: grid;
  align-content: space-between;
  min-height: 360px;
}
.character-orbit {
  width: 138px;
  height: 138px;
  margin: 0 auto 2rem;
  border: 12px solid rgba(255,255,255,.55);
  border-radius: 44% 56% 58% 42%;
  background: var(--cyan);
  box-shadow: inset 0 0 0 6px rgba(16,17,59,.1);
  transform: rotate(-7deg);
}
.character-card:nth-child(2) .character-orbit { background: var(--orange); transform: rotate(8deg); }
.character-card:nth-child(3) .character-orbit { background: var(--lime); transform: rotate(-2deg); }

.story-layout {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 4rem;
  align-items: center;
}
.story-layout p { color: var(--muted); }
.section-dark .story-layout p,
.section-purple .story-layout p { color: rgba(255,255,255,.78); }
.story-list { display: grid; gap: 1rem; margin-top: 2rem; }
.story-point {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 1rem;
  align-items: start;
}
.story-point span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: var(--navy);
  background: var(--lime);
  font-weight: 900;
}

.poster {
  min-height: 520px;
  border-radius: 36px;
  background: linear-gradient(160deg, rgba(138,92,255,.15), rgba(53,216,255,.35)), url("hero-world.webp") center/cover;
  box-shadow: var(--shadow);
  transform: rotate(1.5deg);
}

.notice {
  padding: 1.4rem 1.6rem;
  border: 2px solid rgba(16,17,59,.1);
  border-left: 8px solid var(--orange);
  border-radius: 18px;
  background: var(--white);
  color: var(--ink);
}
.notice p { color: var(--muted); }

.contact-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border-radius: 36px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.contact-copy { padding: clamp(2rem, 6vw, 5rem); }
.contact-copy p { color: var(--muted); }
.contact-art {
  min-height: 500px;
  background: linear-gradient(rgba(16,17,59,.18), rgba(16,17,59,.35)), url("adventure-cave.webp") center/cover;
}

.big-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--purple);
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 900;
  word-break: break-word;
}

.site-footer { padding: 4rem 0 2rem; color: rgba(255,255,255,.72); background: #0a0b29; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .7fr .7fr; gap: 2rem; }
.footer-grid h3 { color: var(--white); }
.footer-links { display: grid; align-content: start; gap: .6rem; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--cyan); }
.copyright { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .9rem; }

.reveal { animation: rise .65s both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 860px) {
  .menu-button { display: grid; place-items: center; }
  .main-nav {
    position: absolute;
    top: 76px;
    left: 1rem;
    right: 1rem;
    display: none;
    padding: 1rem;
    border-radius: 20px;
    background: var(--navy-2);
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: grid; }
  .main-nav a { padding: .8rem 1rem; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .story-layout, .contact-panel { grid-template-columns: 1fr; }
  .contact-art { min-height: 340px; }
  .section-head { display: block; }
  .section-head p { margin-top: 1rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .hero { min-height: 620px; }
  .hero::before { background-image: linear-gradient(180deg, rgba(16,17,59,.8), rgba(16,17,59,.85)), url("hero-world.webp"); background-position: 62% center; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .section { padding: 4.5rem 0; }
  .card { min-height: 0; }
  .poster { min-height: 390px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > :first-child { grid-column: auto; }
  .actions .button { width: 100%; }
}

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