:root {
  color-scheme: dark;
  --bg: #07090d;
  --bg-2: #0c1117;
  --bg-3: #111923;
  --text: #f5efe1;
  --muted: #b9c3c5;
  --soft: #6f7d81;
  --gold: #f4c25a;
  --gold-2: #ff9e3c;
  --ember: #f26522;
  --cyan: #48d8f3;
  --cyan-2: #9ff7ff;
  --red: #a51f25;
  --line: rgba(255, 255, 255, 0.13);
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.45);
  --wrap: min(1160px, calc(100vw - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 82% 16%, rgba(72, 216, 243, 0.16), transparent 28rem),
    radial-gradient(circle at 12% 8%, rgba(242, 101, 34, 0.18), transparent 24rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

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

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

button {
  color: inherit;
  font: inherit;
}

.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;
}

.site-shell {
  overflow: hidden;
  min-height: 100vh;
}

.topbar {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: var(--wrap);
  margin: 14px auto 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(7, 9, 13, 0.55);
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 50px rgba(0, 0, 0, 0.2);
  transition: background 180ms ease, border-color 180ms ease;
}

.topbar.is-scrolled {
  border-color: rgba(244, 194, 90, 0.26);
  background: rgba(7, 9, 13, 0.82);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand__mark {
  width: 34px;
  height: 34px;
  filter: drop-shadow(0 0 12px rgba(72, 216, 243, 0.4));
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav a,
.footer__links a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  transition: color 160ms ease, background 160ms ease;
}

.nav a:hover,
.footer__links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
}

.hero {
  position: relative;
  min-height: 100svh;
  padding: 120px 0 72px;
  isolation: isolate;
}

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

.hero__backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
  transform: scale(1.03);
  filter: saturate(1.05) contrast(1.06);
}

.hero__backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 9, 13, 0.95), rgba(7, 9, 13, 0.58) 42%, rgba(7, 9, 13, 0.18)),
    linear-gradient(180deg, rgba(7, 9, 13, 0.08), var(--bg) 96%);
}

.hero__grain {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.45;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, black 0%, transparent 96%);
}

.hero__embers span {
  position: absolute;
  z-index: -1;
  bottom: 8%;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--gold-2);
  box-shadow: 0 0 18px rgba(255, 158, 60, 0.9);
  animation: floatEmber 8s linear infinite;
}

.hero__embers span:nth-child(1) { left: 11%; animation-delay: 0s; }
.hero__embers span:nth-child(2) { left: 28%; animation-delay: 1.9s; }
.hero__embers span:nth-child(3) { left: 52%; animation-delay: 0.8s; }
.hero__embers span:nth-child(4) { left: 72%; animation-delay: 3.2s; }
.hero__embers span:nth-child(5) { left: 88%; animation-delay: 2.4s; }

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.78fr);
  align-items: center;
  gap: clamp(28px, 5vw, 76px);
  width: var(--wrap);
  min-height: calc(100svh - 190px);
  margin: 0 auto;
}

.hero__logo {
  width: min(560px, 100%);
  margin: 0 0 18px;
  filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 24px rgba(244, 194, 90, 0.25));
  mix-blend-mode: screen;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero__tagline {
  max-width: 700px;
  margin: 0;
  color: var(--text);
  font-size: clamp(1.32rem, 2.7vw, 2.65rem);
  font-weight: 850;
  line-height: 1.08;
  text-wrap: balance;
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.62);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 32px 0;
}

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text);
  font-weight: 900;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.36);
}

.button--primary {
  border-color: rgba(244, 194, 90, 0.55);
  background: linear-gradient(135deg, #f4c25a, #f26522 62%, #7d1519);
  color: #120805;
}

.button--ghost {
  background: rgba(255, 255, 255, 0.07);
}

.button--ghost:hover {
  border-color: rgba(72, 216, 243, 0.55);
  background: rgba(72, 216, 243, 0.11);
}

.button__icon {
  width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.16);
  font-size: 0.86rem;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 690px;
  gap: 1px;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(14px);
}

.hero__stats div {
  padding: 18px;
  background: rgba(7, 9, 13, 0.58);
}

.hero__stats dt {
  color: var(--soft);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero__stats dd {
  margin: 6px 0 0;
  font-weight: 850;
}

.keyart-card {
  position: relative;
  aspect-ratio: 0.82;
  min-height: 520px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #07090d;
}

.keyart-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 54% 40%, rgba(242, 101, 34, 0.28), transparent 38%),
    linear-gradient(180deg, transparent 46%, rgba(7, 9, 13, 0.78));
}

.keyart-card__scene {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
}

.keyart-card__player {
  position: absolute;
  z-index: 3;
  right: 5%;
  bottom: 1%;
  width: 44%;
  min-width: 210px;
  filter: drop-shadow(0 24px 28px rgba(0, 0, 0, 0.64)) drop-shadow(0 0 28px rgba(242, 101, 34, 0.52));
  animation: heroFloat 5s ease-in-out infinite;
}

.keyart-card__crown {
  position: absolute;
  z-index: 2;
  left: 7%;
  top: 8%;
  width: 32%;
  min-width: 150px;
  filter: drop-shadow(0 0 26px rgba(244, 194, 90, 0.62));
  transform: rotate(-8deg);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 24px;
  width: 28px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  transform: translateX(-50%);
}

.scroll-cue::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 9px;
  width: 4px;
  height: 9px;
  background: var(--gold);
  transform: translateX(-50%);
  animation: scrollCue 1.5s ease-in-out infinite;
}

.section {
  position: relative;
  padding: clamp(72px, 10vw, 128px) 0;
}

.section--dark {
  background:
    linear-gradient(180deg, rgba(7, 9, 13, 0), rgba(12, 17, 23, 0.95) 14%, rgba(12, 17, 23, 0.95) 86%, rgba(7, 9, 13, 0)),
    var(--bg-2);
}

.section__header {
  width: var(--wrap);
  margin: 0 auto 38px;
}

.section__header h2,
.showcase__copy h2,
.world__copy h2 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: 0;
  text-wrap: balance;
}

.section__header p:not(.eyebrow),
.showcase__copy p,
.world__copy p {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.15rem);
}

.feature-grid {
  width: var(--wrap);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0 auto;
}

.feature-card {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    rgba(17, 25, 35, 0.82);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.18);
  transition: transform 180ms ease, border-color 180ms ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(72, 216, 243, 0.38);
}

.feature-card h3 {
  margin: 0 0 10px;
  font-size: 1.24rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
}

.feature-card__sprite {
  width: min(100%, 210px);
  height: 154px;
  object-fit: contain;
  margin: 0 auto 28px;
  filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.46));
}

.feature-card__sprite--player {
  height: 190px;
}

.showcase {
  width: var(--wrap);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(310px, 0.8fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  margin: 0 auto;
}

.showcase__image {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow);
}

.showcase__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 9, 13, 0), rgba(7, 9, 13, 0.18));
}

.showcase__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.check-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  color: var(--text);
  font-weight: 720;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 12px;
  height: 12px;
  background: linear-gradient(135deg, var(--gold), var(--ember));
  box-shadow: 0 0 18px rgba(242, 101, 34, 0.56);
}

.section--media {
  background:
    radial-gradient(circle at 18% 20%, rgba(72, 216, 243, 0.12), transparent 26rem),
    radial-gradient(circle at 85% 62%, rgba(242, 101, 34, 0.13), transparent 22rem);
}

.media-grid {
  width: var(--wrap);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 250px;
  gap: 14px;
  margin: 0 auto;
}

.media-tile {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--bg-3);
  cursor: pointer;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.media-tile--large {
  grid-column: span 2;
  grid-row: span 2;
}

.media-tile--wide {
  grid-column: span 2;
}

.media-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 320ms ease, filter 320ms ease;
}

.media-tile span {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  padding: 8px 10px;
  background: rgba(7, 9, 13, 0.7);
  color: var(--text);
  font-weight: 900;
  backdrop-filter: blur(12px);
}

.media-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 46%, rgba(7, 9, 13, 0.72));
  opacity: 0.9;
}

.media-tile:hover img {
  transform: scale(1.055);
  filter: saturate(1.12);
}

.world {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 86px);
  width: 100%;
  padding-inline: max(20px, calc((100vw - 1160px) / 2));
}

.world__copy .button {
  margin-top: 20px;
}

.boss-stack {
  position: relative;
  min-height: 600px;
}

.boss-stack::before {
  content: "";
  position: absolute;
  inset: 15% 4%;
  background:
    radial-gradient(circle at 46% 48%, rgba(72, 216, 243, 0.24), transparent 28%),
    radial-gradient(circle at 62% 60%, rgba(242, 101, 34, 0.14), transparent 38%);
  filter: blur(6px);
}

.boss-stack__boss {
  position: absolute;
  object-fit: contain;
  filter: drop-shadow(0 28px 34px rgba(0, 0, 0, 0.56));
}

.boss-stack__boss--octo {
  z-index: 2;
  right: 1%;
  top: 2%;
  width: 72%;
}

.boss-stack__boss--angler {
  z-index: 3;
  left: 0;
  bottom: 11%;
  width: 46%;
  transform: rotate(-5deg);
}

.boss-stack__boss--drone {
  z-index: 4;
  right: 2%;
  bottom: 2%;
  width: 38%;
  animation: heroFloat 4.8s ease-in-out infinite;
}

.social-grid {
  width: var(--wrap);
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin: 0 auto;
}

.social-card {
  min-height: 164px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035));
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.social-card:hover {
  transform: translateY(-4px);
  border-color: rgba(244, 194, 90, 0.42);
  background: linear-gradient(180deg, rgba(244, 194, 90, 0.12), rgba(255, 255, 255, 0.04));
}

.social-card strong {
  font-size: 1.05rem;
}

.social-card span:last-child {
  color: var(--muted);
  font-size: 0.88rem;
}

.social-card--placeholder {
  border-style: dashed;
}

.social-card__icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: rgba(72, 216, 243, 0.12);
  color: var(--cyan-2);
  font-weight: 950;
  box-shadow: inset 0 0 0 1px rgba(72, 216, 243, 0.24);
}

.footer {
  width: var(--wrap);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto;
  padding: 34px 0 46px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer__logo {
  width: 168px;
  margin: 0 0 10px;
  mix-blend-mode: screen;
  opacity: 0.92;
}

.footer p {
  margin: 0;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
}

.lightbox {
  width: min(1040px, calc(100vw - 30px));
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #05070a;
  color: var(--text);
  box-shadow: var(--shadow);
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(10px);
}

.lightbox img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  background: #05070a;
}

.lightbox p {
  margin: 0;
  padding: 16px 18px;
  color: var(--muted);
  font-weight: 800;
}

.lightbox__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(7, 9, 13, 0.74);
  font-size: 1.5rem;
  cursor: pointer;
}

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

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--delay {
  transition-delay: 120ms;
}

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

@keyframes floatEmber {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0.8);
  }
  18% {
    opacity: 0.9;
  }
  100% {
    opacity: 0;
    transform: translateY(-78vh) scale(1.35);
  }
}

@keyframes scrollCue {
  0% { transform: translate(-50%, 0); opacity: 1; }
  100% { transform: translate(-50%, 16px); opacity: 0; }
}

@media (max-width: 1040px) {
  .hero__inner,
  .showcase,
  .world {
    grid-template-columns: 1fr;
  }

  .hero__art {
    max-width: 580px;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .social-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .boss-stack {
    min-height: 520px;
  }
}

@media (max-width: 760px) {
  :root {
    --wrap: min(100vw - 28px, 1160px);
  }

  .topbar {
    margin-top: 8px;
  }

  .nav-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 8px;
    border: 1px solid var(--line);
    background: rgba(7, 9, 13, 0.94);
  }

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

  .nav a {
    justify-content: center;
  }

  .hero {
    padding-top: 98px;
  }

  .hero__backdrop::after {
    background:
      linear-gradient(180deg, rgba(7, 9, 13, 0.7), rgba(7, 9, 13, 0.58) 34%, var(--bg) 96%),
      linear-gradient(90deg, rgba(7, 9, 13, 0.88), rgba(7, 9, 13, 0.35));
  }

  .hero__inner {
    min-height: auto;
  }

  .hero__art {
    display: none;
  }

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

  .scroll-cue {
    display: none;
  }

  .keyart-card {
    min-height: 430px;
  }

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

  .feature-card {
    min-height: 290px;
  }

  .showcase__image {
    min-height: 370px;
  }

  .media-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 230px;
  }

  .media-tile--large,
  .media-tile--wide {
    grid-column: span 1;
    grid-row: span 1;
  }

  .boss-stack {
    min-height: 420px;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer__links {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
