:root {
  --ink: #050509;
  --night: #0b0d15;
  --gold: #d7b56a;
  --crimson: #8f2634;
  --marble: #f1e7d1;
  --cyan: #76eaff;
  --violet: #b45cff;
  --muted: #9ea8b7;
  --panel: rgba(8, 10, 18, 0.72);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 20%, rgba(143, 38, 52, 0.18), transparent 28%),
    radial-gradient(circle at 90% 12%, rgba(118, 234, 255, 0.16), transparent 24%),
    linear-gradient(120deg, #050509 0%, #0d0a12 48%, #12090c 100%);
  color: var(--marble);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  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: 74px 74px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.55), transparent 72%);
  z-index: 1;
}

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

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

#sigil-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.58;
  z-index: 0;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 34px;
  background: linear-gradient(to bottom, rgba(5, 5, 9, 0.78), rgba(5, 5, 9, 0.16));
  backdrop-filter: blur(16px);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--marble);
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 13px;
}

.brand-mark img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(215, 181, 106, 0.44));
}

nav {
  display: flex;
  gap: 24px;
  color: rgba(241, 231, 209, 0.78);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.11em;
}

nav a {
  transition: color 180ms ease, text-shadow 180ms ease;
}

nav a:hover {
  color: #fff;
  text-shadow: 0 0 18px rgba(118, 234, 255, 0.52);
}

.hero {
  min-height: 100svh;
  position: relative;
  display: flex;
  align-items: center;
  padding: 118px 7vw 86px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 5, 9, 0.58), rgba(5, 5, 9, 0.2), rgba(5, 5, 9, 0.78)),
    url("assets/studio_splash_1920x1080.png") center / cover;
  transform: scale(1.04);
  animation: slow-breathe 16s ease-in-out infinite alternate;
  z-index: 0;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 58% 44%, transparent 0 18%, rgba(5, 5, 9, 0.3) 44%, rgba(5, 5, 9, 0.86) 100%),
    linear-gradient(to top, var(--ink) 0%, transparent 32%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(760px, 100%);
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 12px;
  font-weight: 800;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
  line-height: 0.95;
}

h1 {
  max-width: 880px;
  font-size: clamp(58px, 10vw, 138px);
  text-shadow:
    0 0 34px rgba(215, 181, 106, 0.32),
    0 0 74px rgba(143, 38, 52, 0.34);
}

h2 {
  font-size: clamp(42px, 7vw, 92px);
}

h3 {
  font-size: clamp(34px, 5vw, 72px);
}

.hero-copy {
  width: min(640px, 100%);
  margin: 28px 0 0;
  color: rgba(241, 231, 209, 0.82);
  font-size: clamp(17px, 2vw, 22px);
}

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

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid rgba(215, 181, 106, 0.44);
  color: var(--marble);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  font-weight: 800;
  background: rgba(10, 11, 18, 0.58);
  box-shadow: 0 0 28px rgba(215, 181, 106, 0.12);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  border-color: rgba(118, 234, 255, 0.78);
  box-shadow: 0 0 34px rgba(118, 234, 255, 0.22);
}

.button.primary {
  color: #14090a;
  background: linear-gradient(135deg, var(--gold), #fff1b8 48%, #b98732);
  border-color: rgba(255, 238, 184, 0.9);
}

.button.ghost {
  border-color: rgba(118, 234, 255, 0.34);
}

.button.disabled {
  cursor: default;
  opacity: 0.78;
}

.scroll-hint {
  position: absolute;
  z-index: 2;
  left: 7vw;
  bottom: 30px;
  color: rgba(241, 231, 209, 0.54);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.section {
  position: relative;
  z-index: 2;
  padding: 110px 7vw;
}

.games-band {
  background:
    linear-gradient(180deg, rgba(5, 5, 9, 0.92), rgba(13, 8, 14, 0.96)),
    url("assets/world_5_background.png") center / cover fixed;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.55fr);
  gap: 60px;
  align-items: end;
  margin-bottom: 70px;
}

.section-heading p,
.studio-grid p,
.game-copy p,
.lite-strip p,
.final-band p,
.legal-page p,
.legal-page li {
  color: rgba(241, 231, 209, 0.74);
  font-size: 17px;
}

.game-feature {
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(320px, 0.7fr);
  gap: 58px;
  align-items: center;
}

.game-media {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
}

.rift-art {
  width: min(720px, 100%);
  border: 1px solid rgba(215, 181, 106, 0.24);
  box-shadow: 0 28px 110px rgba(0, 0, 0, 0.65), 0 0 64px rgba(180, 92, 255, 0.18);
}

.rift-logo {
  position: absolute;
  z-index: 2;
  width: min(430px, 74%);
  filter: drop-shadow(0 0 30px rgba(118, 234, 255, 0.5));
}

.feature-list {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  padding: 12px 0 12px 22px;
  color: rgba(241, 231, 209, 0.84);
  border-bottom: 1px solid rgba(215, 181, 106, 0.16);
  position: relative;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 21px;
  width: 7px;
  height: 7px;
  background: var(--gold);
  transform: rotate(45deg);
  box-shadow: 0 0 16px rgba(215, 181, 106, 0.74);
}

.lite-strip {
  margin-top: 86px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px;
  gap: 30px;
  align-items: center;
  padding: 30px;
  border: 1px solid rgba(118, 234, 255, 0.26);
  background: linear-gradient(135deg, rgba(8, 14, 28, 0.78), rgba(28, 10, 38, 0.62));
}

.lite-strip img {
  width: 170px;
  border-radius: 22px;
  box-shadow: 0 0 36px rgba(118, 234, 255, 0.22);
}

.studio-band {
  background: linear-gradient(180deg, #08070a, #11080a);
}

.studio-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(320px, 1fr);
  gap: 62px;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.pillars div {
  padding: 26px;
  min-height: 220px;
  border: 1px solid rgba(215, 181, 106, 0.24);
  background: rgba(255, 255, 255, 0.025);
}

.pillars span {
  color: var(--crimson);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.16em;
}

.pillars strong {
  display: block;
  margin-top: 28px;
  color: var(--gold);
  font-size: 23px;
}

.final-band {
  text-align: center;
  background: radial-gradient(circle at center, rgba(215, 181, 106, 0.12), transparent 56%), #050509;
}

.final-band .hero-actions {
  justify-content: center;
}

footer {
  position: relative;
  z-index: 2;
  min-height: 82px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 24px;
  color: rgba(241, 231, 209, 0.58);
  background: #050509;
  border-top: 1px solid rgba(215, 181, 106, 0.14);
}

.subpage {
  background:
    linear-gradient(rgba(5, 5, 9, 0.88), rgba(5, 5, 9, 0.94)),
    url("assets/studio_splash_1920x1080.png") center / cover fixed;
}

.legal-page {
  position: relative;
  z-index: 2;
  width: min(880px, calc(100% - 40px));
  margin: 0 auto;
  padding: 140px 0 80px;
}

.legal-page h1 {
  font-size: clamp(44px, 7vw, 82px);
}

.legal-page h2 {
  margin-top: 34px;
  color: var(--gold);
  font-size: 24px;
  line-height: 1.2;
}

.muted,
.contact-line {
  color: var(--muted);
}

.contact-line a,
.legal-page a {
  color: var(--cyan);
  border-bottom: 1px solid rgba(118, 234, 255, 0.34);
}

@keyframes slow-breathe {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.1) translate3d(-1.2%, 0.8%, 0); }
}

@media (max-width: 900px) {
  .site-header {
    height: auto;
    min-height: 72px;
    padding: 14px 20px;
    align-items: flex-start;
    gap: 12px;
    flex-direction: column;
  }

  nav {
    gap: 14px;
    flex-wrap: wrap;
    font-size: 11px;
  }

  .hero {
    padding-top: 150px;
  }

  .section-heading,
  .game-feature,
  .studio-grid,
  .pillars,
  .lite-strip {
    grid-template-columns: 1fr;
  }

  .game-media {
    min-height: 360px;
  }

  .lite-strip img {
    width: 130px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }

  #sigil-canvas {
    display: none;
  }
}
