/* Escape Maze marketing — violet stage + gold accents */

:root {
  --void: #0c0818;
  --stage: #1a1132;
  --panel: #2a1850;
  --ink: #f4eefc;
  --muted: rgba(244, 238, 252, 0.62);
  --soft: rgba(244, 238, 252, 0.78);
  --gold: #ffd54f;
  --gold-soft: #e0b070;
  --accent: #c77dff;
  --accent-hot: #e0a0ff;
  --line: rgba(199, 125, 255, 0.28);
  --display: "Outfit", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --body: "Nunito", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --shell: 70rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  background: var(--stage);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--gold);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

h1,
h2 {
  font-family: var(--display);
  font-weight: 700;
}

.shell {
  width: min(100% - 2rem, var(--shell));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 50%;
  top: -4rem;
  transform: translateX(-50%);
  z-index: 100;
  padding: 0.55rem 1rem;
  border-radius: 0 0 10px 10px;
  background: var(--accent);
  color: #120c24;
  font-weight: 800;
}

.skip-link:focus {
  top: 0;
}

.field {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--stage);
}

.field__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
}

.field__glow--a {
  width: min(70vw, 420px);
  height: min(70vw, 420px);
  top: -8%;
  right: -8%;
  background: rgba(199, 125, 255, 0.28);
}

.field__glow--b {
  width: min(60vw, 360px);
  height: min(60vw, 360px);
  bottom: 10%;
  left: -12%;
  background: rgba(184, 104, 64, 0.16);
}

.field__grain {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.45'/%3E%3C/svg%3E");
  background-size: 160px;
  mix-blend-mode: soft-light;
}

/* Header */
.top {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  padding: 0.85rem 0;
  background: linear-gradient(180deg, rgba(26, 17, 50, 0.92), transparent);
  transition: background 0.35s ease, backdrop-filter 0.35s ease, border-color 0.35s ease;
  border-bottom: 1px solid transparent;
}

.top.is-solid {
  background: rgba(18, 12, 36, 0.88);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.top__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.mark img {
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.mark span {
  font-size: 1.05rem;
  color: var(--gold);
}

.top__nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.top__nav a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.top__nav a:hover {
  color: var(--ink);
}

.top__cta {
  color: #120c24 !important;
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  font-weight: 800 !important;
}

.top__cta:hover {
  filter: brightness(1.05);
  text-decoration: none !important;
}

/* Hero — full-bleed stage art + brand first */
.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  padding: 0 0 clamp(2.25rem, 5.5vh, 4rem);
  overflow: hidden;
}

.hero__plane {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.04);
  animation: stageDrift 14s ease-in-out infinite alternate;
}

@keyframes stageDrift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(-1.2%, -0.6%, 0);
  }
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 8, 24, 0.42) 0%, rgba(26, 17, 50, 0.55) 42%, rgba(12, 8, 24, 0.88) 100%),
    radial-gradient(ellipse 70% 50% at 50% 20%, rgba(199, 125, 255, 0.18), transparent 65%);
  animation: veilPulse 8s ease-in-out infinite alternate;
}

@keyframes veilPulse {
  from {
    opacity: 0.92;
  }
  to {
    opacity: 1;
  }
}

.hero__stage {
  position: relative;
  z-index: 1;
  max-width: 36rem;
  padding-top: 6.5rem;
  text-align: center;
  margin-inline: auto;
}

.hero__brand {
  margin: 0 0 0.65rem;
  font-family: var(--display);
  font-size: clamp(2.85rem, 9.5vw, 4.6rem);
  line-height: 0.95;
  color: var(--gold);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-shadow:
    0 4px 24px rgba(0, 0, 0, 0.55),
    0 0 40px rgba(255, 213, 79, 0.22);
}

.hero__title {
  margin: 0 0 1rem;
  font-family: var(--body);
  font-size: clamp(1.05rem, 2.8vw, 1.28rem);
  font-weight: 700;
  color: var(--soft);
  letter-spacing: 0.01em;
  line-height: 1.35;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}

.hero__lede {
  margin: 0 auto 1.45rem;
  max-width: 28rem;
  color: var(--muted);
  font-size: 1.02rem;
  font-weight: 600;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.15rem;
  border-radius: 14px;
  font-weight: 800;
  text-decoration: none !important;
  border: 1px solid transparent;
  transition: transform 0.2s ease, filter 0.2s ease, background 0.2s ease;
}

.btn small {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.78;
}

.btn span {
  line-height: 1.15;
  text-align: left;
}

.btn--escape {
  color: #120c24;
  background: linear-gradient(135deg, #ffe27a, var(--gold) 45%, var(--gold-soft));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 14px 36px rgba(255, 213, 79, 0.22);
}

.btn--escape:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
}

.btn--quiet {
  color: var(--muted);
  background: rgba(18, 12, 36, 0.55);
  border-color: var(--line);
  cursor: default;
}

/* Motion */
.motion-rise {
  opacity: 0;
  transform: translateY(16px);
  animation: riseIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.motion-rise--2 {
  animation-delay: 0.1s;
}

.motion-rise--3 {
  animation-delay: 0.2s;
}

.motion-rise--4 {
  animation-delay: 0.32s;
}

@keyframes riseIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Features */
.features {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0 clamp(2rem, 5vw, 3rem);
}

.features__grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: 1fr;
  text-align: center;
}

@media (min-width: 780px) {
  .features__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.feature {
  padding: 1.1rem 0.9rem;
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(42, 24, 80, 0.55), rgba(18, 12, 36, 0.4));
  border: 1px solid var(--line);
}

.feature__icon {
  width: 2.6rem;
  height: 2.6rem;
  margin: 0 auto 0.85rem;
  color: var(--gold);
}

.feature h3 {
  font-family: var(--body);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 0.35rem;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

/* Showcase */
.showcase {
  padding: clamp(2rem, 6vw, 4rem) 0 clamp(3rem, 8vw, 5rem);
  position: relative;
}

.showcase__inner {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.showcase__inner--solo {
  max-width: 38rem;
  margin-inline: auto;
  text-align: center;
}

.showcase__inner--solo .showcase__copy p {
  margin-inline: auto;
}

.showcase__copy .kicker {
  margin: 0 0 0.65rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.showcase__copy h2 {
  font-size: clamp(2rem, 4vw, 2.85rem);
  color: var(--ink);
  margin-bottom: 0.9rem;
}

.showcase__copy p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-weight: 600;
  max-width: 32rem;
}

.levels {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: rgba(42, 24, 80, 0.75);
  border: 1px solid rgba(255, 213, 79, 0.35);
  color: var(--gold);
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}

/* Path of play */
.path {
  padding: clamp(3rem, 8vw, 5.5rem) 0;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(18, 12, 36, 0.65) 40%, transparent);
}

.path__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
}

@media (min-width: 900px) {
  .path__grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.path__copy .kicker {
  margin: 0 0 0.65rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.path__copy h2 {
  font-size: clamp(1.9rem, 3.8vw, 2.6rem);
  margin-bottom: 0.85rem;
}

.path__copy p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-weight: 600;
  max-width: 34rem;
}

.path__beats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.25rem;
}

.path__beats li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.path__beats h3 {
  font-family: var(--body);
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
  color: var(--ink);
}

.path__beats p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.path__num {
  font-family: var(--display);
  font-size: 1.45rem;
  color: var(--accent-hot);
  line-height: 1;
  padding-top: 0.1rem;
  font-weight: 800;
}

/* Close CTA */
.close {
  padding: clamp(3.5rem, 9vw, 5.5rem) 0 clamp(4.5rem, 11vw, 6.5rem);
  border-top: 1px solid var(--line);
  text-align: center;
}

.close__inner {
  display: grid;
  justify-items: center;
  gap: 0.9rem;
}

.close__icon {
  border-radius: 22px;
  box-shadow:
    0 0 0 1px rgba(199, 125, 255, 0.35),
    0 18px 44px rgba(0, 0, 0, 0.4);
}

.close h2 {
  font-size: clamp(2rem, 4.5vw, 2.85rem);
  color: var(--gold);
}

.close p {
  margin: 0 0 0.65rem;
  color: var(--muted);
  max-width: 28rem;
  font-weight: 600;
}

/* Footer */
.foot {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.5rem;
  background: rgba(12, 8, 24, 0.55);
}

.foot__inner {
  display: grid;
  gap: 1rem;
}

.foot__brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  color: var(--ink);
}

.foot__brand img {
  border-radius: 8px;
}

.foot__by {
  font-weight: 600;
  color: var(--muted);
  font-size: 0.9rem;
}

.foot__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.4rem;
}

.foot__links a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

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

.foot__note {
  margin: 0;
  color: rgba(244, 238, 252, 0.45);
  font-size: 0.85rem;
  font-weight: 600;
}

/* Scroll reveals */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

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

@media (max-width: 700px) {
  .top__nav a:not(.top__cta) {
    display: none;
  }

  .hero__stage {
    max-width: none;
  }
}

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

  .motion-rise,
  .reveal {
    opacity: 1;
    transform: none;
  }
}
