:root {
  color-scheme: dark;
  --ink: #0c121c;
  --panel: #111b28;
  --cream: #fff1d7;
  --gold: #efc780;
  --muted: #bac3d0;
  --line: #273448;
  font: 16px/1.55 "DM Sans", system-ui, sans-serif;
  color: var(--cream);
  background: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
section[id] { scroll-margin-top: 1.25rem; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }
.wrap { width: min(100% - 3rem, 1180px); margin-inline: auto; }

.site-header { background: #0a101a; border-bottom: 1px solid #e6b86a28; position: relative; z-index: 1; }
.nav { min-height: 74px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; }
.brand { display: inline-block; padding-block: .25rem; }
.brand img { width: 133px; height: auto; }
.nav nav { display: flex; align-items: center; gap: clamp(.85rem, 3vw, 2rem); font-weight: 600; font-size: .92rem; }
.nav nav > a:not(.button) { color: var(--muted); }
.nav nav > a:hover, .subtle-link:hover, .feature a:hover { color: #fff3d9; }
.button { display: inline-flex; align-items: center; gap: .8rem; font-weight: 700; padding: .8rem 1rem; border: 1px solid transparent; border-radius: 6px; white-space: nowrap; }
.outline { border-color: #bd95596e; color: var(--gold); }
.outline:hover { background-color: #ffd37818; }
.primary { color: #21190d; background: var(--gold); padding: .88rem 1.12rem; }
.primary:hover { background: #ffdf9d; }

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: clamp(570px, 75vh, 750px);
  align-items: center;
  border-bottom: 1px solid #cf9e583d;
  overflow: hidden;
  background: linear-gradient(#181b2d, #16192a 50%, var(--ink));
}
.hero-scene {
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
}
.swamp-bank {
  position: absolute;
  inset: 0 auto 0 0;
  width: max(72%, calc(100% - 500px));
  height: 100%;
  object-fit: cover;
  object-position: left bottom;
  mask-image: linear-gradient(90deg, #000 67%, transparent);
}
.hero-artwork {
  position: absolute;
  right: 0;
  bottom: 0;
  height: min(100%, 62vw);
  aspect-ratio: 3 / 2;
  transform-origin: bottom right;
  mask-image: linear-gradient(90deg, transparent 6%, #000 51%), linear-gradient(180deg, transparent, #000 3%);
  mask-composite: intersect;
}
.hero-art {
  width: 100%;
  height: 100%;
}
.lair-water {
  position: absolute;
  inset: 0;
}
.lair-water i {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--width);
  height: var(--height, 1%);
  border-top: 1px solid #83d9dbb8;
  border-radius: 50%;
  opacity: .45;
}
.lair-water i:nth-child(1) { --x: 86%; --y: 71%; --width: 11%; --delay: -2.3s; }
.lair-water i:nth-child(2) { --x: 86%; --y: 76%; --width: 12%; --delay: -4.1s; }
.lair-water i:nth-child(3) { --x: 91%; --y: 79%; --width: 8%; --delay: -1.5s; }
.lair-water i:nth-child(4) { --x: 71.5%; --y: 68.5%; --width: 7%; --delay: -.4s; }
.lair-water i:nth-child(5) { --x: 79%; --y: 81%; --width: 10%; --delay: -3.3s; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(0deg, #0c121c 0%, transparent 6%),
    linear-gradient(90deg, #0c121c8f, #11152030 34%, transparent 58%);
}
.moonlight {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse min(28vw, 360px) min(30vh, 260px) at 94% 17%, #ffdb8c95, #ffbb5945 43%, transparent);
  mix-blend-mode: screen;
  opacity: .34;
}
.sky-stars,
.sky-stars::after {
  position: absolute;
  inset: 0;
}
.sky-stars {
  --star: #e9dcbdba;
  background:
    radial-gradient(circle at 5% 9%, var(--star) 0 1px, transparent 1.8px),
    radial-gradient(circle at 11% 19%, var(--star) 0 .7px, transparent 1.5px),
    radial-gradient(circle at 18% 12%, var(--star) 0 1px, transparent 1.7px),
    radial-gradient(circle at 22% 5%, var(--star) 0 .6px, transparent 1.4px),
    radial-gradient(circle at 29% 16%, var(--star) 0 .8px, transparent 1.6px),
    radial-gradient(circle at 34% 9%, var(--star) 0 1px, transparent 1.9px),
    radial-gradient(circle at 43% 17%, var(--star) 0 1px, transparent 1.8px),
    radial-gradient(circle at 47% 6%, var(--star) 0 .8px, transparent 1.5px),
    radial-gradient(circle at 54% 12%, var(--star) 0 1px, transparent 1.8px),
    radial-gradient(circle at 61% 4%, var(--star) 0 .7px, transparent 1.5px),
    radial-gradient(circle at 64% 17%, var(--star) 0 .9px, transparent 1.7px),
    radial-gradient(circle at 76% 11%, var(--star) 0 .7px, transparent 1.6px);
}
.sky-stars::after {
  content: "";
  background:
    radial-gradient(circle at 14% 7%, #fff2ca 0 1.2px, #e6cd8c40 1.8px, transparent 3.9px),
    radial-gradient(circle at 26% 11%, #f4e7bc 0 1px, #e6cd8c40 1.6px, transparent 3px),
    radial-gradient(circle at 40% 5%, #fff4da 0 1.1px, #e6cd8c42 1.8px, transparent 3.6px),
    radial-gradient(circle at 50% 19%, #f5e5b8 0 1.1px, #e6cd8c40 1.7px, transparent 3.4px),
    radial-gradient(circle at 71% 6%, #fff5d8 0 1.15px, #e6cd8c4c 1.8px, transparent 4px);
  opacity: .75;
}
.sky-spark {
  position: absolute;
  top: var(--top);
  left: var(--left);
  color: #fff3ce;
  font: 15px/1 Georgia, serif;
  text-shadow: 0 0 5px #ffe2a5, 0 0 13px #f7bb5866;
  opacity: .65;
}
.sky-spark::before { content: "✦"; }
.sky-spark:nth-child(1) { --left: 8%; --top: 10%; --delay: -1.5s; --cycle: 5.5s; }
.sky-spark:nth-child(2) { --left: 33%; --top: 5%; --delay: -3.2s; --cycle: 7s; }
.sky-spark:nth-child(3) { --left: 52%; --top: 17%; --delay: -4.1s; --cycle: 6.5s; }
.sky-spark:nth-child(4) { --left: 77%; --top: 4%; --delay: -2.8s; --cycle: 8s; }
.mist {
  position: absolute;
  inset: 56% -10% -10% 0;
  opacity: .52;
  background:
    radial-gradient(ellipse at 64% 54%, #aebbd054, transparent 31%),
    radial-gradient(ellipse at 26% 65%, #8794b85c, transparent 36%),
    radial-gradient(ellipse at 90% 73%, #7987a953, transparent 35%);
  mix-blend-mode: screen;
}
.starlight { position: absolute; inset: 0; }
.starlight i {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--size, 3px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #ffe2ab;
  box-shadow: 0 0 9px 2px #ffd2938a;
  opacity: .48;
}
.starlight i:nth-child(-n+3) { background: #e2cbff; box-shadow: 0 0 11px 2px #d1a9f99e; }
.starlight i:nth-child(1) { --x: 56%; --y: 43%; --delay: -1s; }
.starlight i:nth-child(2) { --x: 66%; --y: 51%; --delay: -3s; --size: 4px; }
.starlight i:nth-child(3) { --x: 59%; --y: 59%; --delay: -5s; }
.starlight i:nth-child(4) { --x: 91%; --y: 55%; --delay: -6s; }
.starlight i:nth-child(5) { --x: 86%; --y: 85%; --delay: -2s; --size: 4px; }
.starlight i:nth-child(6) { --x: 57%; --y: 20%; --delay: -4s; --size: 2px; }
.starlight i:nth-child(7) { --x: 89%; --y: 13%; --delay: -8s; --size: 2px; }
.has-ambiance .hero-artwork { animation: moonlit-drift 34s ease-in-out infinite alternate; }
.has-ambiance .lair-water i { animation: water-ripple 5.5s ease-out var(--delay) infinite; }
.has-ambiance .mist { animation: valley-fog 18s ease-in-out infinite alternate; }
.has-ambiance .moonlight { animation: moonlight-pulse 9s ease-in-out infinite alternate; }
.has-ambiance .sky-stars::after { animation: twinkle 5s ease-in-out infinite alternate; }
.has-ambiance .sky-spark { animation: star-shine var(--cycle) ease-in-out var(--delay) infinite; }
.has-ambiance .starlight i { animation: lantern-spark 6s ease-in-out var(--delay) infinite alternate; }
.has-ambiance .hero-content > * { animation: intro .72s ease-out backwards; }
.has-ambiance .hero-content > :nth-child(2) { animation-delay: .10s; }
.has-ambiance .hero-content > :nth-child(3) { animation-delay: .20s; }
.has-ambiance .hero-content > :nth-child(4) { animation-delay: .28s; }
.has-ambiance .hero-content > :nth-child(5) { animation-delay: .36s; }
.ambiance-paused :is(.hero-artwork, .lair-water i, .mist, .moonlight, .sky-spark, .starlight i),
.ambiance-paused .sky-stars::after { animation-play-state: paused; }
@keyframes moonlit-drift {
  from { transform: translateX(0); }
  to { transform: translateX(-.45%); }
}
@keyframes water-ripple {
  0% { opacity: 0; transform: translateY(-30%) scaleX(.48); }
  28% { opacity: .58; }
  100% { opacity: 0; transform: translateY(160%) scaleX(1.21); }
}
@keyframes valley-fog {
  from { transform: translateX(-8%); opacity: .31; }
  to { transform: translateX(7%); opacity: .77; }
}
@keyframes lantern-spark {
  from { transform: translate3d(-6px, 12px, 0); opacity: .17; }
  to { transform: translate3d(11px, -16px, 0); opacity: .88; }
}
@keyframes twinkle {
  from { opacity: .38; }
  to { opacity: 1; }
}
@keyframes moonlight-pulse {
  from { opacity: .18; }
  to { opacity: .78; }
}
@keyframes star-shine {
  0%, 100% { opacity: .18; transform: scale(.62); }
  50% { opacity: .95; transform: scale(1.15); }
}
@keyframes intro {
  from { transform: translateY(13px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.scene-toggle {
  position: absolute;
  right: max(1rem, calc((100% - 1180px) / 2));
  bottom: 1.25rem;
  display: inline-flex;
  gap: .5rem;
  align-items: center;
  min-height: 44px;
  padding: .45rem .75rem;
  background: #0c1421df;
  border: 1px solid #e6b86a53;
  border-radius: 6px;
  color: var(--cream);
  font: 600 .82rem "DM Sans", system-ui, sans-serif;
  cursor: pointer;
}
.scene-toggle[hidden] { display: none; }
.scene-toggle:hover { background: #1c293a; border-color: var(--gold); }
.playback-icon { width: 8px; height: 10px; border-inline: 2px solid var(--gold); }
.ambiance-paused .playback-icon { border: 5px solid transparent; border-left: 8px solid var(--gold); border-right: 0; }
.hero-content { padding-block: 4rem; padding-inline-start: clamp(0rem, 1.3vw, 1.125rem); }
.eyebrow { text-transform: uppercase; font-size: .73rem; letter-spacing: .19em; color: #eacc99; font-weight: 700; display: flex; gap: .65rem; align-items: center; }
.eyebrow span { width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); flex-shrink: 0; }
h1, h2, h3 { font-family: "Cinzel", Georgia, serif; line-height: 1.14; font-weight: 700; }
.hero-content :is(.eyebrow, .hero-tagline, .hero-summary, .subtle-link) {
  text-shadow: 0 1px 3px #070e19, 0 0 12px #0a101c;
}
.hero-content h1 { margin-bottom: 1.3rem; }
.hero-content h1 img { width: min(100%, 43vw, 590px); height: auto; filter: drop-shadow(0 12px 30px #0009); }
.hero-tagline { margin-top: .85rem; font: 600 clamp(1.1rem, 2.25vw, 1.75rem)/1.28 "Cinzel", Georgia, serif; color: #f0c987; }
.hero-summary { color: var(--muted); max-width: 365px; font-size: 1.05rem; margin-top: 1.15rem; }
.actions { display: flex; flex-wrap: wrap; gap: 1rem 1.3rem; align-items: center; margin-top: 1.65rem; }
.subtle-link { font-weight: 700; color: var(--muted); }
.subtle-link span { color: var(--gold); padding-left: .25rem; }

.discover { padding-block: 4rem 3rem; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .75rem 2rem; margin-bottom: 1.5rem; }
h2 { font-size: clamp(1.58rem, 3.4vw, 2.65rem); letter-spacing: -.025em; }
.section-heading p, .join p, .footer p { color: var(--muted); }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.05rem; }
.feature { overflow: hidden; background: var(--panel); border-radius: 10px; border: 1px solid var(--line); }
.feature-art {
  display: grid;
  place-items: center;
  min-height: 121px;
  overflow: hidden;
  color: var(--sigil);
  background:
    radial-gradient(ellipse at 50% 125%, color-mix(in srgb, var(--sigil) 29%, transparent), transparent 66%),
    radial-gradient(circle at 50% 55%, var(--halo), #101827 72%);
  border-bottom: 1px solid var(--line);
}
.heroes { --sigil: #f0c880; --halo: #544031; }
.passives { --sigil: #c7b1ff; --halo: #3b2b5b; }
.prestige { --sigil: #a0e7ef; --halo: #1f4855; }
.sigil {
  position: relative;
  display: grid;
  place-items: center;
  width: 4.15rem;
  aspect-ratio: 1;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 1.75rem;
  line-height: 1;
  text-shadow: 0 0 15px currentColor;
  box-shadow: 0 0 18px color-mix(in srgb, currentColor 22%, transparent);
  transition: transform .32s ease;
}
.sigil::before {
  content: "";
  position: absolute;
  inset: .55rem;
  border: 1px solid currentColor;
  border-radius: .35rem;
  transform: rotate(45deg);
  opacity: .5;
}
.feature:is(:hover, :focus-within) .sigil { transform: translateY(-4px) scale(1.06); }
.feature-copy { padding: 1.25rem; display: grid; align-content: start; gap: .55rem; }
.feature h3, .join h3 { font-size: 1.16rem; }
.feature p { color: var(--muted); font-size: .94rem; }
.feature a { color: var(--gold); font-size: .9rem; font-weight: 700; margin-top: .12rem; justify-self: start; }

.join { margin-top: .5rem; }
.join-inner { border: 1px solid #b28c534b; padding: clamp(1.25rem, 3vw, 2.5rem); border-radius: 10px; background: linear-gradient(110deg, #211d1f, #141f2e); display: grid; grid-template-columns: .9fr 1.1fr; gap: 2rem; }
.join-inner h2 { color: var(--cream); }
.join p { margin-top: .45rem; }
.join ol { margin: 0; padding-left: 1.55rem; }
.join li { padding-left: .35rem; }
.join li + li { margin-top: 1rem; }
.join li::marker { color: var(--gold); font-weight: 700; }
.footer { display: flex; justify-content: space-between; align-items: center; gap: 1.4rem; margin-top: 3.75rem; padding-block: 1.4rem; border-top: 1px solid var(--line); }
.footer p { font-size: .82rem; }

@media (max-width: 790px) {
  .hero { min-height: 550px; }
  .hero-content { padding-inline-start: 0; }
  .hero-content h1 img { width: min(100%, 40vw); }
  .hero-content :is(.eyebrow, .hero-summary, .actions) { max-width: 44vw; }
  .hero::after { background: linear-gradient(0deg, #0c121c, transparent 7%), linear-gradient(90deg, #101321ea, #12172572 45%, transparent 87%); }
  .section-heading { flex-direction: column; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .hero { --hero-art-height: clamp(285px, 70vw, 370px); min-height: 0; background: var(--ink); }
  .hero-content { padding-block: calc(var(--hero-art-height) + .5rem) 4.75rem; }
  .hero-scene { bottom: auto; height: var(--hero-art-height); }
  .swamp-bank { width: 100%; mask-image: linear-gradient(90deg, #000 18%, transparent 67%); }
  .hero-artwork { height: 100%; }
  .hero-content :is(.eyebrow, .hero-summary, .actions) { max-width: 100%; }
  .hero-content .hero-summary { max-width: 365px; }
  .hero::after {
    bottom: auto;
    height: var(--hero-art-height);
    background: linear-gradient(0deg, #0c121c, transparent 9%);
  }
  .hero-content h1 img { width: min(100%, 360px); }
}
@media (max-width: 550px) {
  .wrap { width: min(100% - 2rem, 1180px); }
  .nav { min-height: 65px; gap: .45rem; padding-block: .55rem; }
  .brand img { width: 108px; }
  .nav nav { font-size: .85rem; gap: .7rem; }
  .nav nav > a:first-child { display: none; }
  .nav .outline { padding: .45rem .6rem; gap: .3rem; }
  .scene-toggle { bottom: .75rem; }
  .eyebrow { font-size: .64rem; letter-spacing: .13em; }
  .discover { padding-block: 2.75rem 2rem; }
  .features, .join-inner { grid-template-columns: 1fr; }
  .join-inner { gap: 1rem; }
  .footer { flex-wrap: wrap; gap: .65rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .has-ambiance :is(.hero-artwork, .lair-water i, .mist, .moonlight, .sky-spark, .starlight i, .hero-content > *),
  .has-ambiance .sky-stars::after { animation: none; }
  .scene-toggle { display: none; }
  .sigil { transition: none; }
  .feature:is(:hover, :focus-within) .sigil { transform: none; }
}
