:root {
  color-scheme: dark;
  --ink: #f8f3ff;
  --muted: #c1b7cc;
  --night: #080410;
  --night-2: #140521;
  --panel: rgba(20, 10, 35, 0.84);
  --purple: #9b43f4;
  --purple-light: #c781ff;
  --orange: #ff7417;
  --gold: #ffbd4a;
  --line: rgba(218, 174, 255, 0.18);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 85% 8%, rgba(126, 41, 195, 0.2), transparent 30rem),
    var(--night);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3, .brand, .footer-brand, .price {
  font-family: "Avenir Next Condensed", "Arial Narrow", Impact, sans-serif;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: .75rem 1rem;
  color: #170920;
  background: #fff;
  border-radius: .5rem;
}
.skip-link:focus { top: 1rem; }

.site-header {
  position: relative;
  z-index: 20;
  width: min(var(--max), calc(100% - 2rem));
  min-height: 84px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  color: var(--ink);
  font-size: 1.45rem;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: .02em;
}
.brand img {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.18), 0 8px 24px rgba(101, 23, 166, .38);
}
.brand strong, .footer-brand strong { color: var(--orange); }
.site-header nav { display: flex; align-items: center; gap: 1.5rem; }
.site-header nav a, footer nav a {
  color: var(--muted);
  font-size: .88rem;
  font-weight: 700;
  text-decoration: none;
  transition: color .2s ease;
}
.site-header nav a:hover, .site-header nav a:focus, footer nav a:hover, footer nav a:focus { color: #fff; }

.hero {
  min-height: 780px;
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 7rem max(2rem, calc((100% - var(--max)) / 2));
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(360px, .85fr);
  align-items: center;
  gap: 3rem;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background: linear-gradient(90deg, rgba(8,4,16,.99) 0%, rgba(8,4,16,.86) 45%, rgba(8,4,16,.2) 100%), url('/assets/blood-moon.jpg') center / cover;
  opacity: .68;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -2;
  height: 240px;
  background: linear-gradient(transparent, var(--night));
}
.eyebrow {
  margin-bottom: .9rem;
  color: var(--gold);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .19em;
  text-transform: uppercase;
}
.hero h1 {
  max-width: 750px;
  margin-bottom: 1.4rem;
  font-size: clamp(4.6rem, 9vw, 8.5rem);
  font-weight: 800;
  line-height: .82;
}
.hero h1 em { color: var(--orange); font-style: normal; }
.hero-lede { max-width: 640px; color: #ddd5e8; font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.75; }
.hero-actions { display: flex; gap: .85rem; margin: 2.1rem 0 1.25rem; }
.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .75rem 1.45rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.button:hover, .button:focus { transform: translateY(-2px); }
.button.primary { border-color: var(--orange); background: var(--orange); color: #190703; box-shadow: 0 14px 40px rgba(255,116,23,.2); }
.button.secondary { background: rgba(18,8,30,.62); }
.launch-note { color: var(--muted); font-size: .84rem; font-weight: 600; }
.launch-note span { width: 8px; height: 8px; margin-right: .45rem; display: inline-block; border-radius: 50%; background: var(--orange); box-shadow: 0 0 18px var(--orange); }
.hero-art { min-height: 520px; position: relative; display: grid; place-items: center; }
.moon-ring {
  position: absolute;
  width: min(38vw, 510px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 38%, #e4b2ff 0%, #a13cf2 34%, #5e118f 70%, transparent 71%);
  box-shadow: 0 0 80px rgba(165,64,245,.64), 0 0 180px rgba(98,16,147,.45);
  opacity: .8;
}
.hero-icon {
  position: relative;
  width: min(34vw, 460px);
  aspect-ratio: 1;
  border-radius: 22%;
  transform: rotate(2deg);
  box-shadow: 0 26px 80px rgba(0,0,0,.56), 0 0 0 1px rgba(255,255,255,.16);
}

.intro, .power-section, .screenshots {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: 7rem 0;
}
.section-heading { display: grid; grid-template-columns: .72fr 1.28fr; column-gap: 4rem; align-items: end; }
.section-heading .eyebrow { grid-column: 1 / -1; }
.section-heading h2, .realms h2, .boss-card h2, .final-cta h2 {
  margin-bottom: 0;
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 800;
  line-height: .92;
}
.section-heading > p:last-child { max-width: 620px; margin-bottom: .4rem; color: var(--muted); font-size: 1.1rem; }
.step-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 4rem; border-top: 1px solid var(--line); }
.step-grid article { padding: 2.25rem 2.25rem 0 0; }
.step-grid article + article { padding-left: 2.25rem; border-left: 1px solid var(--line); }
.step-grid span { color: var(--orange); font-family: "Avenir Next Condensed", "Arial Narrow", Impact, sans-serif; font-size: 1.5rem; font-weight: 800; }
.step-grid h3 { margin: 1rem 0 .5rem; font-size: 2rem; }
.step-grid p { color: var(--muted); }

.realms {
  min-height: 760px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #100719;
  border-block: 1px solid var(--line);
}
.realm-copy { padding: 8rem max(2rem, calc((100vw - var(--max)) / 2)); padding-right: 5rem; }
.realm-copy > p:not(.eyebrow) { max-width: 600px; margin: 2rem 0; color: var(--muted); }
.realm-list { margin: 2.4rem 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .7rem 2rem; list-style: none; }
.realm-list li { color: #e8dff0; font-size: .78rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.realm-list li::before { content: "◆"; margin-right: .55rem; color: var(--orange); font-size: .58rem; }
.realm-visual {
  min-height: 760px;
  display: grid;
  place-items: center;
  background: linear-gradient(rgba(47,7,70,.06), rgba(8,3,15,.34)), url('/assets/blood-moon.jpg') center / cover;
  overflow: hidden;
}
.realm-visual img { width: min(68%, 520px); filter: drop-shadow(0 30px 28px rgba(0,0,0,.65)); transform: rotate(-6deg); }

.section-heading.compact { max-width: 850px; display: block; }
.section-heading.compact h2 { max-width: 760px; }
.power-grid { margin-top: 4rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.power-grid article {
  min-height: 390px;
  padding: 2.25rem;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(145deg, rgba(76,27,111,.38), rgba(15,7,25,.8));
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  overflow: hidden;
}
.power-grid article::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 27%, rgba(156,67,244,.32), transparent 42%); }
.power-grid img { width: 210px; height: 210px; margin: 0 auto auto; object-fit: contain; position: relative; filter: drop-shadow(0 16px 24px rgba(0,0,0,.58)); }
.power-grid h3 { position: relative; margin-bottom: .2rem; font-size: 2rem; }
.power-grid p { position: relative; margin: 0; color: var(--muted); }
.power-grid .poison-card::before { background: radial-gradient(circle at 50% 27%, rgba(91,176,56,.25), transparent 42%); }

.bosses { display: grid; grid-template-columns: 1fr 1fr; }
.boss-card { min-height: 620px; padding: 4rem max(2rem, calc((100vw - var(--max)) / 2)); position: relative; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.boss-card > div { position: relative; z-index: 2; max-width: 520px; }
.boss-card p:not(.eyebrow) { max-width: 450px; margin-top: 1.5rem; color: #ddd2e7; }
.boss-card img { width: min(68%, 420px); margin: 1rem auto -5rem; filter: drop-shadow(0 24px 30px rgba(0,0,0,.6)); }
.gargoyle-card { padding-left: max(2rem, calc((100vw - var(--max)) / 2)); background: linear-gradient(rgba(8,7,20,.22), rgba(8,7,20,.7)), url('/assets/stormbound-keep.jpg') center / cover; }
.reaper-card { padding-right: max(2rem, calc((100vw - var(--max)) / 2)); background: linear-gradient(rgba(30,3,37,.2), rgba(10,3,16,.76)), url('/assets/blood-moon.jpg') center / cover; }

.screenshots { padding-bottom: 8rem; }
.screenshot-strip { margin-top: 4rem; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; }
.screenshot-strip figure { margin: 0; }
.screenshot-strip img { width: 100%; border: 1px solid rgba(255,255,255,.15); border-radius: clamp(1rem, 2vw, 1.8rem); box-shadow: 0 24px 48px rgba(0,0,0,.45); }
.screenshot-strip figcaption { padding: 1rem .25rem 0; color: var(--muted); font-size: .76rem; font-weight: 700; text-align: center; text-transform: uppercase; }

.feature-band {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto 8rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--line);
}
.feature-band div { padding: 2.5rem 1.2rem; display: flex; flex-direction: column; text-align: center; }
.feature-band div + div { border-left: 1px solid var(--line); }
.feature-band strong { color: var(--orange); font-family: "Avenir Next Condensed", "Arial Narrow", Impact, sans-serif; font-size: 3.5rem; line-height: 1; }
.feature-band span { color: var(--muted); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

.final-cta {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto 8rem;
  padding: 3.5rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2.5rem;
  background: linear-gradient(120deg, rgba(96,28,148,.36), rgba(20,7,32,.9));
  border: 1px solid var(--line);
  border-radius: 1.5rem;
}
.final-cta img { border-radius: 28%; box-shadow: 0 18px 45px rgba(0,0,0,.45); }
.final-cta h2 { font-size: clamp(2.6rem, 5vw, 4.7rem); }
.final-cta p:not(.eyebrow) { max-width: 630px; margin: 1rem 0 0; color: var(--muted); }
.price { color: var(--gold); font-size: 3.7rem; font-weight: 800; }

footer {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: 2.8rem 0 3.5rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .4rem 2rem;
  align-items: center;
  border-top: 1px solid var(--line);
}
.footer-brand { font-size: 1.35rem; font-weight: 800; text-decoration: none; }
footer > p:not(.copyright) { margin: 0; color: var(--muted); font-size: .82rem; }
footer nav { grid-column: 2; grid-row: 1 / span 2; display: flex; gap: 1.2rem; }
.copyright { grid-column: 1 / -1; margin: 1.5rem 0 0; color: #766d80; font-size: .72rem; }

.legal-page { background: radial-gradient(circle at 70% -10%, rgba(132,48,200,.2), transparent 35rem), var(--night); }
.legal-shell { width: min(780px, calc(100% - 2rem)); min-height: 70vh; margin: 0 auto; padding: 7rem 0; }
.legal-shell h1, .not-found h1 { margin-bottom: .3rem; font-size: clamp(4rem, 9vw, 7rem); line-height: .9; }
.updated, .support-lede { color: var(--muted); }
.legal-shell section { margin-top: 3.2rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.legal-shell h2 { margin-bottom: .7rem; font-size: 2rem; }
.legal-shell section p { color: var(--muted); }
.legal-shell section a { color: var(--gold); }
.support-lede { max-width: 690px; margin: 1.4rem 0 1.7rem; font-size: 1.1rem; }
.support-button { margin-bottom: 2rem; }
.not-found { min-height: 100vh; display: grid; place-items: center; text-align: center; background: radial-gradient(circle, rgba(128,40,195,.25), transparent 36rem), var(--night); }
.not-found main { width: min(680px, calc(100% - 2rem)); padding: 4rem 0; }
.not-found img { margin: 0 auto 2rem; border-radius: 28%; box-shadow: 0 24px 50px rgba(0,0,0,.5); }
.not-found p:not(.eyebrow) { margin-bottom: 2rem; color: var(--muted); }

@media (max-width: 900px) {
  .site-header { min-height: 74px; }
  .site-header nav { gap: 1rem; }
  .site-header nav a:nth-child(2), .site-header nav a:nth-child(3) { display: none; }
  .hero { min-height: auto; padding-top: 5rem; grid-template-columns: 1fr; }
  .hero::before { background: linear-gradient(rgba(8,4,16,.64), rgba(8,4,16,.96)), url('/assets/blood-moon.jpg') center / cover; }
  .hero-art { min-height: 410px; grid-row: 1; }
  .hero-copy { grid-row: 2; }
  .moon-ring { width: 370px; }
  .hero-icon { width: 330px; }
  .section-heading { display: block; }
  .section-heading h2 { margin-bottom: 1.4rem; }
  .realms { grid-template-columns: 1fr; }
  .realm-copy { padding: 6rem max(1rem, calc((100vw - var(--max)) / 2)); }
  .realm-visual { min-height: 620px; }
  .bosses { grid-template-columns: 1fr; }
  .boss-card { padding-inline: max(2rem, calc((100vw - var(--max)) / 2)); }
  .screenshot-strip { grid-template-columns: repeat(3, 1fr); }
  .screenshot-strip figure:nth-child(4), .screenshot-strip figure:nth-child(5) { display: none; }
  .final-cta { grid-template-columns: auto 1fr; }
  .price { grid-column: 2; }
}

@media (max-width: 620px) {
  .site-header { width: min(100% - 1.25rem, var(--max)); }
  .brand { font-size: 1.1rem; }
  .brand img { width: 44px; height: 44px; }
  .site-header nav a:not(:last-child) { display: none; }
  .hero { padding: 3.5rem 1rem 5rem; }
  .hero h1 { font-size: clamp(4rem, 20vw, 6rem); }
  .hero-art { min-height: 330px; }
  .moon-ring { width: 290px; }
  .hero-icon { width: 260px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .intro, .power-section, .screenshots { padding: 5rem 0; }
  .step-grid, .power-grid { grid-template-columns: 1fr; }
  .step-grid article, .step-grid article + article { padding: 1.5rem 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .realm-copy { padding: 5rem 1rem; }
  .realm-copy h2, .section-heading h2 { font-size: 3.5rem; }
  .realm-list { grid-template-columns: 1fr; }
  .realm-visual { min-height: 520px; }
  .power-grid article { min-height: 340px; }
  .boss-card { min-height: 560px; padding: 3.2rem 1rem; }
  .boss-card h2 { font-size: 3.7rem; }
  .screenshot-strip { margin-inline: -1rem; padding: 0 1rem 1.5rem; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; }
  .screenshot-strip figure, .screenshot-strip figure:nth-child(4), .screenshot-strip figure:nth-child(5) { min-width: 72vw; display: block; scroll-snap-align: center; }
  .feature-band { grid-template-columns: 1fr 1fr; }
  .feature-band div + div { border-left: 0; }
  .feature-band div:nth-child(even) { border-left: 1px solid var(--line); }
  .feature-band div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .final-cta { padding: 2rem; grid-template-columns: 1fr; text-align: center; }
  .final-cta img { width: 132px; margin: 0 auto; }
  .price { grid-column: auto; }
  footer { grid-template-columns: 1fr; text-align: center; }
  footer nav { grid-column: 1; grid-row: auto; margin: 1rem auto 0; }
  .copyright { grid-column: 1; }
  .legal-shell { padding: 5rem 0; }
}

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