:root {
  --bg: #0b0a10;
  --bg-alt: #13111b;
  --panel: #1b1825;
  --line: rgba(232, 200, 120, 0.18);
  --text: #e9e4d8;
  --muted: #a69f90;
  --gold: #e8c878;
  --gold-bright: #ffe3a0;
  --heaven: #f4e7b8;
  --hell: #c8402e;
  --holy: #e8c878;
  --dark: #8f7ac8;
  --fallen: #d9d4cc;
  --demonic: #d2452f;
  --serif: "EB Garamond", Georgia, "Times New Roman", serif;
  --display: "Cinzel", "Trajan Pro", Georgia, serif;
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.6;
}

a { color: var(--gold); }

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

h1, h2, h3, .brand, .eyebrow, .realm-count, .tag, .btn, nav a {
  font-family: var(--display);
  letter-spacing: 0.06em;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: var(--gold);
  margin: 0 0 0.4em;
  text-align: center;
}

.split h2 { text-align: left; }

h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold-bright);
  margin: 0 0 0.5em;
}

.lead { font-size: 1.25rem; color: var(--text); }
.lead.center { text-align: center; max-width: 720px; margin: 0 auto 2.5rem; color: var(--muted); }

/* Top bar */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 2rem;
  background: linear-gradient(to bottom, rgba(11, 10, 16, 0.92), rgba(11, 10, 16, 0));
  transition: background 0.3s;
}

.topbar.scrolled {
  background: rgba(11, 10, 16, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.topbar .brand { color: var(--gold); text-decoration: none; font-size: 1.2rem; font-weight: 700; }

nav { display: flex; gap: 1.6rem; }
nav a { color: var(--text); text-decoration: none; font-size: 0.8rem; text-transform: uppercase; opacity: 0.8; }
nav a:hover { color: var(--gold); opacity: 1; }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: -2%;
  background-size: cover;
  background-position: center;
  filter: saturate(1.1);
  transform: scale(1.6);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(11, 10, 16, 0.35) 0%, rgba(11, 10, 16, 0.85) 70%),
    linear-gradient(to bottom, rgba(11, 10, 16, 0.2) 60%, var(--bg) 100%);
}

.hero-content { position: relative; z-index: 1; padding: 0 1.5rem; }

.eyebrow { text-transform: uppercase; font-size: 0.85rem; color: var(--gold); margin: 0; letter-spacing: 0.35em; }

.hero h1 {
  font-size: clamp(3.5rem, 12vw, 8.5rem);
  font-weight: 700;
  line-height: 1;
  margin: 0.15em 0 0.2em;
  color: var(--gold-bright);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-shadow: 0 0 40px rgba(232, 200, 120, 0.35), 0 4px 30px rgba(0, 0, 0, 0.8);
}

.tagline { font-size: clamp(1.15rem, 2.2vw, 1.5rem); font-style: italic; max-width: 640px; margin: 0 auto 2rem; }

.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 0.75em 1.6em;
  border: 1px solid var(--gold);
  color: var(--gold);
  text-decoration: none;
  font-size: 0.85rem;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}
.btn:hover { background: rgba(232, 200, 120, 0.12); }
.btn.primary { background: var(--gold); color: var(--bg); }
.btn.primary:hover { background: var(--gold-bright); }

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: var(--gold);
  text-decoration: none;
  font-size: 1.6rem;
  animation: bob 2s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translate(-50%, 8px); } }

/* Sections */
.section { padding: 6rem 2rem; }
.section > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.section.dark { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: 3.5rem; align-items: center; }
.split.reverse .text { order: 2; }
.split .text p { color: var(--muted); }
.split .text .lead { color: var(--text); }

.shot { margin: 0; }
.shot img { border: 1px solid var(--line); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6); }
figcaption { font-size: 0.95rem; font-style: italic; color: var(--muted); margin-top: 0.6rem; }

/* Meters */
.meters { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-bottom: 3rem; }
.meter { background: var(--panel); border: 1px solid var(--line); padding: 1.6rem; }
.meter-head { display: flex; justify-content: space-between; font-family: var(--display); letter-spacing: 0.08em; margin-bottom: 0.7rem; }
.meter-head span:last-child { font-size: 0.7rem; opacity: 0.7; align-self: center; }
.meter p { color: var(--muted); margin: 1rem 0 0; }
.bar { height: 10px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.bar span { display: block; height: 100%; }
.divinity .meter-head { color: var(--heaven); }
.divinity .bar span { background: linear-gradient(90deg, #b99545, var(--heaven)); animation: fade-out 6s ease-in-out infinite alternate; }
.corruption .meter-head { color: var(--hell); }
.corruption .bar span { background: linear-gradient(90deg, #5a1410, var(--hell)); animation: grow 6s ease-in-out infinite alternate; }
@keyframes fade-out { from { width: 95%; } to { width: 25%; } }
@keyframes grow { from { width: 5%; } to { width: 75%; } }

/* Cards */
.cards { display: grid; gap: 1.5rem; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--panel); border: 1px solid var(--line); padding: 1.6rem; }
.card p { color: var(--muted); margin: 0; }

/* Realms */
.realms { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.realm { padding: 1.8rem 1.5rem; border: 1px solid var(--line); border-top: 3px solid; background: var(--panel); }
.realm p { color: var(--muted); font-size: 1rem; }
.realm ul { margin: 0; padding-left: 1.1rem; color: var(--text); font-size: 0.95rem; }
.realm li { margin-bottom: 0.3rem; }
.realm-count { margin: 0 0 0.3rem; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.2em; }
.paradiso { border-top-color: var(--heaven); }
.paradiso .realm-count { color: var(--heaven); }
.purgatorio { border-top-color: #9cb36a; }
.purgatorio .realm-count { color: #9cb36a; }
.inferno { border-top-color: var(--hell); }
.inferno .realm-count { color: var(--hell); }
.tenth { border-top-color: #fff; }
.tenth .realm-count { color: #fff; }

/* Abilities */
.ability-list { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.ability-list li { display: flex; gap: 0.9rem; align-items: baseline; padding: 0.55rem 0; border-bottom: 1px solid var(--line); font-size: 1.02rem; }
.tag { flex: 0 0 5.5rem; font-size: 0.72rem; text-transform: uppercase; font-weight: 700; }
.tag.holy { color: var(--holy); }
.tag.dark { color: var(--dark); }
.tag.fallen { color: var(--fallen); }
.tag.demonic { color: var(--demonic); }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.gallery figure { margin: 0; }
.gallery figure.wide { grid-column: 1 / -1; }
.gallery a { display: block; overflow: hidden; border: 1px solid var(--line); }
.gallery img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 0.4s ease; }
.gallery a:hover img { transform: scale(1.04); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem;
  background: rgba(5, 4, 8, 0.94);
  cursor: zoom-out;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 85vh; width: auto; border: 1px solid var(--line); cursor: default; }
.lightbox-caption { font-style: italic; color: var(--muted); margin: 0; }
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--gold);
  font-size: 2.5rem;
  cursor: pointer;
}

/* Footer */
.footer { text-align: center; padding: 3rem 2rem; color: var(--muted); font-size: 0.95rem; }
.footer .brand { color: var(--gold); font-size: 1.4rem; font-weight: 700; margin: 0 0 0.3rem; }
.footer p { margin: 0.2rem 0; }

/* Responsive */
@media (max-width: 960px) {
  .realms { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 2rem; }
  .split.reverse .text { order: 0; }
  .split h2 { text-align: center; }
}

@media (max-width: 720px) {
  body { font-size: 17px; }
  nav { display: none; }
  .section { padding: 4rem 1.25rem; }
  .meters, .cards.three, .realms { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-hint, .divinity .bar span, .corruption .bar span { animation: none; }
}
