:root {
  --bg: #05111f;
  --bg-elevated: rgba(7, 21, 37, 0.86);
  --bg-soft: rgba(13, 31, 52, 0.72);
  --line: rgba(224, 196, 133, 0.16);
  --line-strong: rgba(224, 196, 133, 0.3);
  --gold: #e3c27a;
  --gold-strong: #f4dda8;
  --mint: #7be7c7;
  --text: #f3ebdb;
  --text-dim: #c2b59a;
  --text-muted: #8f8878;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(47, 99, 163, 0.15), transparent 36%),
    radial-gradient(circle at 82% 18%, rgba(123, 231, 199, 0.1), transparent 20%),
    linear-gradient(180deg, #06101c 0%, #081523 32%, #05111f 100%);
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
}

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

button,
a {
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease,
    color 160ms ease,
    opacity 160ms ease;
}

button:hover,
a:hover {
  transform: translateY(-1px);
}

.page-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.page-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(4, 12, 21, 0.18) 0%, rgba(4, 12, 21, 0.54) 22%, rgba(4, 12, 21, 0.82) 48%, rgba(4, 12, 21, 0.96) 100%),
    linear-gradient(90deg, rgba(4, 12, 21, 0.72) 0%, rgba(4, 12, 21, 0.42) 34%, rgba(10, 26, 44, 0.52) 68%, rgba(4, 12, 21, 0.78) 100%),
    url("hero-bg.png");
  background-repeat: no-repeat;
  background-position: center -12rem;
  background-size: 1700px auto;
  opacity: 1;
}

.page-document::before {
  background-position: center top;
  background-size: 1500px auto;
  opacity: 0.6;
}

.background-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.background-glow-a {
  background: radial-gradient(circle at 14% 18%, rgba(123, 231, 199, 0.1), transparent 28%);
  filter: blur(14px);
}

.background-glow-b {
  background: radial-gradient(circle at 82% 18%, rgba(111, 160, 255, 0.12), transparent 24%);
  filter: blur(22px);
}

.site-header,
.site-footer,
main {
  position: relative;
  z-index: 2;
}

.site-header,
.site-footer,
.hero-stage,
.hero-details,
.content-section,
.document-main {
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.3rem 0;
}

.brand-mark {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.brand-main,
.footer-brand,
.hero-logo,
.hero-copy h1,
.section-heading h2,
.document-hero h1,
.final-banner h2,
.site-nav a,
.discord-link,
.primary-cta,
.secondary-cta,
.mini-label,
.eyebrow,
.chip,
.class-mark,
.fact-card span,
.status-card p {
  font-family: "Times New Roman", Georgia, serif;
  text-transform: uppercase;
}

.brand-main,
.footer-brand {
  font-size: clamp(1.4rem, 1.4vw + 1rem, 2rem);
  letter-spacing: 0.08em;
  color: var(--gold-strong);
}

.brand-sub,
.footer-copy {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.site-nav a,
.discord-link,
.back-link,
.anchor-list a,
.server-copy-button {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--text-dim);
}

.discord-link,
.server-copy-button,
.primary-cta,
.secondary-cta {
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  padding: 0.78rem 1.1rem;
  background: rgba(255, 255, 255, 0.02);
}

.primary-cta {
  background: linear-gradient(120deg, #eed39a 0%, #d2a75a 100%);
  color: #20150a;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  box-shadow: 0 14px 40px rgba(210, 167, 90, 0.2);
}

.secondary-cta {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
}

.hero-stage {
  position: relative;
  min-height: clamp(420px, 58vw, 760px);
  margin-top: 1.2rem;
  overflow: hidden;
  border-radius: 40px;
  border: 1px solid rgba(224, 196, 133, 0.18);
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.42);
}

.hero-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(2, 8, 15, 0.08) 0%, rgba(2, 8, 15, 0.14) 40%, rgba(2, 8, 15, 0.48) 100%),
    linear-gradient(90deg, rgba(2, 8, 15, 0.18) 0%, rgba(2, 8, 15, 0.06) 34%, rgba(2, 8, 15, 0.24) 100%),
    url("hero-bg.png");
  background-repeat: no-repeat;
  background-position: center 38%;
  background-size: cover;
}

.hero-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 12, 21, 0.18) 0%, rgba(4, 12, 21, 0.1) 28%, rgba(4, 12, 21, 0.68) 100%),
    linear-gradient(90deg, rgba(4, 12, 21, 0.72) 0%, rgba(4, 12, 21, 0.24) 38%, rgba(4, 12, 21, 0.08) 58%, rgba(4, 12, 21, 0.52) 100%);
}

.hero-overlay {
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  gap: 1rem;
  width: min(100%, 74rem);
  padding: 2rem 1.5rem;
  transform: translate(-50%, -50%);
  text-align: center;
}

.hero-crest {
  display: flex;
  align-items: center;
  width: min(100%, 44rem);
}

.hero-crest span {
  flex: 1 1 auto;
  height: 1px;
  background: rgba(227, 194, 122, 0.76);
}

.hero-crest-core {
  flex: 0 0 auto;
  width: 4rem;
  height: 4rem;
  margin-inline: 1.25rem;
  border: 1px solid rgba(227, 194, 122, 0.72);
  transform: rotate(45deg);
  background: transparent;
}

.hero-logo {
  margin: 0;
  font-size: clamp(4rem, 10vw, 11rem);
  line-height: 0.92;
  letter-spacing: 0.08em;
  color: var(--gold-strong);
  text-shadow:
    0 2px 0 rgba(255, 241, 206, 0.35),
    0 14px 36px rgba(0, 0, 0, 0.44);
}

.hero-subtitle,
.hero-tagline {
  margin: 0;
  text-align: center;
}

.hero-subtitle {
  color: #badfd7;
  font-size: clamp(1.4rem, 3vw, 3.2rem);
}

.hero-tagline {
  color: rgba(244, 221, 168, 0.95);
  font-size: clamp(1.05rem, 2vw, 2.1rem);
}

.hero-details {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(340px, 0.9fr);
  gap: 2rem;
  margin-top: 1.6rem;
  align-items: start;
}

.card {
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-copy,
.hero-panel {
  border-radius: var(--radius-xl);
  padding: clamp(1.6rem, 3vw, 3rem);
}

.eyebrow,
.mini-label,
.chip {
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.eyebrow.accent {
  color: var(--mint);
}

.hero-copy h1,
.section-heading h2,
.document-hero h1,
.final-banner h2 {
  margin: 0;
  line-height: 0.98;
  letter-spacing: 0.02em;
}

.hero-copy h1 {
  font-size: clamp(3rem, 5vw, 5.6rem);
  max-width: 10ch;
}

.lead,
.section-heading p,
.info-card p,
.zone-card p,
.god-card p,
.document-card p,
.hero-quote,
.footer-copy,
.status-card small {
  font-size: clamp(1.08rem, 1.4vw, 1.28rem);
  line-height: 1.5;
  color: var(--text-dim);
}

.hero-actions,
.section-actions,
.final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.server-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  border-radius: 24px;
  padding: 1rem 1.2rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.server-card strong {
  display: block;
  margin-top: 0.2rem;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  color: var(--gold-strong);
}

.hero-panel {
  display: grid;
  gap: 1rem;
}

.status-card,
.fact-card,
.info-card,
.class-card,
.zone-card,
.god-card,
.document-card {
  border-radius: 22px;
  padding: 1.2rem;
}

.status-dev {
  border: 1px solid rgba(227, 194, 122, 0.25);
  background: rgba(8, 22, 38, 0.84);
}

.status-card p,
.fact-card span {
  margin: 0;
  font-size: 0.76rem;
  color: var(--mint);
  letter-spacing: 0.16em;
}

.status-card strong,
.fact-card strong {
  display: block;
  margin-top: 0.5rem;
  font-size: 1.2rem;
  color: var(--text);
}

.status-dot {
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 16px rgba(227, 194, 122, 0.46);
}

.status-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.35;
}

.fact-grid,
.grid {
  display: grid;
  gap: 1rem;
}

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

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

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

.content-section {
  position: relative;
  z-index: 1;
  padding: 2rem 0 4rem;
}

.content-section[id] {
  scroll-margin-top: 7rem;
}

.section-heading {
  display: grid;
  gap: 0.8rem;
  margin-bottom: 1.8rem;
  max-width: 50rem;
}

.section-heading h2,
.document-hero h1,
.final-banner h2 {
  font-size: clamp(2.3rem, 3vw, 4rem);
}

.chip,
.class-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 2.6rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--gold);
}

.info-card h3,
.class-card h3,
.zone-card h3,
.god-card h3,
.god-card h2,
.document-card h2 {
  margin: 1rem 0 0.6rem;
  font-size: 1.35rem;
  color: var(--text);
}

.class-mark {
  min-width: 3rem;
  min-height: 3rem;
  background: rgba(227, 194, 122, 0.12);
  color: var(--gold-strong);
}

.document-main {
  position: relative;
  z-index: 2;
  padding-bottom: 4rem;
}

.document-hero {
  padding: 3rem 0 1.6rem;
}

.back-link {
  display: inline-flex;
  margin-bottom: 1rem;
}

.anchor-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.4rem;
}

.anchor-list a {
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  padding: 0.72rem 0.95rem;
}

.document-grid {
  display: grid;
  gap: 1rem;
}

.final-banner {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  border-radius: var(--radius-xl);
  padding: 1.6rem;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 0 2rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}

@media (max-width: 1080px) {
  .hero-details,
  .final-banner,
  .fact-grid,
  .grid.four,
  .grid.three {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .site-header,
  .site-footer,
  .server-card,
  .final-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .hero-stage,
  .hero-details,
  .content-section,
  .document-main {
    width: min(1180px, calc(100% - 1.2rem));
  }

  .hero-stage {
    min-height: 300px;
    border-radius: 28px;
  }

  .hero-logo {
    font-size: clamp(2.8rem, 14vw, 5rem);
  }

  .hero-subtitle {
    font-size: clamp(1rem, 5vw, 1.45rem);
  }

  .hero-tagline {
    font-size: clamp(0.92rem, 4.6vw, 1.3rem);
  }
}
