:root {
  --ink: #11151a;
  --ink-2: #192029;
  --steel: #283442;
  --fog: #d9d1c1;
  --paper: #f3ead7;
  --gold: #d6a34a;
  --gold-2: #f2c66d;
  --crimson: #9f2e2e;
  --ember: #e35c37;
  --jade: #3fbf8f;
  --line: rgba(243, 234, 215, 0.16);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--paper);
  background:
    radial-gradient(circle at 18% 10%, rgba(214, 163, 74, 0.16), transparent 28rem),
    radial-gradient(circle at 80% 0%, rgba(63, 191, 143, 0.12), transparent 30rem),
    linear-gradient(135deg, #0b0f14 0%, #151a20 52%, #231516 100%);
  font-family: "Rajdhani", sans-serif;
  font-size: 18px;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.32;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 64px);
  border-bottom: 1px solid var(--line);
  background: rgba(10, 13, 17, 0.72);
  backdrop-filter: blur(18px);
}

.brand,
.main-nav,
.hero-actions,
.server-strip,
.panel-head,
.download-row,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-family: "Cinzel", serif;
  font-weight: 800;
  font-size: 24px;
}

.brand-mark {
  width: 38px;
  height: 38px;
}

.main-nav {
  gap: clamp(14px, 3vw, 36px);
  color: rgba(243, 234, 215, 0.78);
  font-weight: 600;
}

.main-nav a:hover {
  color: var(--gold-2);
}

.header-action,
.btn,
.small-btn {
  border: 1px solid rgba(242, 198, 109, 0.48);
  background: linear-gradient(135deg, var(--gold), #8d5d20);
  color: #16120c;
  font-weight: 800;
  border-radius: 4px;
  box-shadow: 0 12px 30px rgba(214, 163, 74, 0.24);
}

.header-action {
  padding: 10px 16px;
}

.hero {
  min-height: 94vh;
  position: relative;
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: 140px clamp(18px, 6vw, 92px) 70px;
}

.hero-content {
  max-width: 760px;
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold-2);
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: "Cinzel", serif;
  margin: 0;
  line-height: 1.05;
}

h1 {
  font-size: clamp(66px, 12vw, 154px);
  text-shadow: 0 14px 40px rgba(0, 0, 0, 0.55);
}

h2 {
  font-size: clamp(34px, 5vw, 62px);
}

h3 {
  font-size: 25px;
}

.hero-copy,
.section-copy p,
.feature-wall p,
.guide p,
.fine-print,
.site-footer p {
  color: rgba(243, 234, 215, 0.76);
  line-height: 1.7;
}

.hero-copy {
  max-width: 620px;
  font-size: 22px;
}

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

.btn {
  display: inline-flex;
  justify-content: center;
  min-width: 170px;
  padding: 14px 22px;
}

.btn.secondary,
.small-btn.muted {
  background: rgba(243, 234, 215, 0.07);
  color: var(--paper);
  box-shadow: none;
  border-color: rgba(243, 234, 215, 0.22);
}

.server-strip {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.server-strip div {
  min-width: 130px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  background: rgba(14, 18, 23, 0.66);
}

.server-strip strong,
.server-strip span {
  display: block;
}

.server-strip strong {
  color: var(--gold-2);
}

.hero-art {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.moon {
  position: absolute;
  right: clamp(20px, 12vw, 190px);
  top: 115px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 34%, #fff2c3 0 8%, #c79d45 28%, #5d3d1e 58%, transparent 60%);
  opacity: 0.62;
  filter: blur(0.3px);
}

.gate {
  position: absolute;
  right: clamp(-90px, 7vw, 120px);
  bottom: -18px;
  width: min(45vw, 620px);
  height: min(58vh, 610px);
  border: 1px solid rgba(214, 163, 74, 0.28);
  background:
    linear-gradient(90deg, transparent 0 14%, rgba(214, 163, 74, 0.14) 14% 16%, transparent 16% 84%, rgba(214, 163, 74, 0.14) 84% 86%, transparent 86%),
    linear-gradient(to top, rgba(6, 7, 9, 0.92), rgba(35, 23, 19, 0.28));
  clip-path: polygon(12% 100%, 12% 24%, 50% 0, 88% 24%, 88% 100%);
  box-shadow: var(--shadow);
}

.gate span {
  position: absolute;
  bottom: 0;
  width: 2px;
  height: 70%;
  background: rgba(242, 198, 109, 0.22);
}

.gate span:nth-child(1) {
  left: 34%;
}

.gate span:nth-child(2) {
  left: 50%;
}

.gate span:nth-child(3) {
  left: 66%;
}

.embers {
  position: absolute;
  inset: auto 0 0 0;
  height: 45vh;
  background:
    radial-gradient(circle at 16% 70%, rgba(227, 92, 55, 0.55) 0 3px, transparent 4px),
    radial-gradient(circle at 38% 84%, rgba(242, 198, 109, 0.55) 0 2px, transparent 3px),
    radial-gradient(circle at 78% 64%, rgba(227, 92, 55, 0.48) 0 3px, transparent 4px),
    linear-gradient(to top, rgba(143, 46, 46, 0.32), transparent);
  animation: emberFloat 4s ease-in-out infinite alternate;
}

.status-band,
.section-grid,
.feature-wall,
.ranking,
.guide {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.status-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  transform: translateY(-28px);
  background: var(--line);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.status-band article {
  min-height: 116px;
  padding: 24px;
  background: rgba(19, 24, 31, 0.94);
}

.status-band p {
  margin: 0 0 8px;
  color: rgba(243, 234, 215, 0.62);
}

.status-band strong {
  font-size: 28px;
  color: var(--paper);
}

.status-dot {
  display: inline-block;
  width: 11px;
  height: 11px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--jade);
  box-shadow: 0 0 18px rgba(63, 191, 143, 0.8);
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  gap: clamp(28px, 6vw, 78px);
  align-items: center;
  padding: 70px 0;
}

.download-panel,
.guide-card,
.discord-card,
.feature-wall article,
.ranking-table {
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(243, 234, 215, 0.08), transparent),
    rgba(16, 21, 27, 0.78);
  box-shadow: var(--shadow);
}

.download-panel {
  padding: 24px;
}

.panel-head {
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.panel-head span {
  color: var(--gold-2);
  font-weight: 800;
}

.download-row {
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.small-btn {
  padding: 8px 15px;
}

.fine-print {
  margin: 18px 0 0;
  font-size: 15px;
}

.feature-wall {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 32px 0 76px;
}

.feature-wall article {
  min-height: 230px;
  padding: 26px;
}

.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 24px;
  border: 1px solid rgba(214, 163, 74, 0.42);
  color: var(--gold-2);
  font-weight: 800;
}

.ranking {
  padding: 40px 0 78px;
}

.ranking-table {
  margin-top: 26px;
  overflow: hidden;
}

.rank-row {
  display: grid;
  grid-template-columns: 70px 1fr 150px 120px;
  gap: 10px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}

.rank-row:last-child {
  border-bottom: 0;
}

.rank-row.head {
  color: var(--gold-2);
  font-weight: 800;
  background: rgba(214, 163, 74, 0.08);
}

.guide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  padding: 32px 0 92px;
}

.guide-card,
.discord-card {
  padding: 28px;
}

.guide ol {
  margin: 24px 0 0;
  padding-left: 24px;
  line-height: 1.9;
}

.discord-card {
  align-self: stretch;
}

.discord-card .btn {
  margin-top: 16px;
}

.site-footer {
  justify-content: space-between;
  gap: 24px;
  padding: 26px clamp(18px, 4vw, 64px);
  border-top: 1px solid var(--line);
  background: rgba(7, 9, 12, 0.78);
}

.site-footer span {
  font-family: "Cinzel", serif;
  color: var(--gold-2);
  font-weight: 800;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes emberFloat {
  from {
    transform: translateY(0);
    opacity: 0.85;
  }
  to {
    transform: translateY(-16px);
    opacity: 1;
  }
}

@media (max-width: 920px) {
  .site-header {
    position: absolute;
    flex-wrap: wrap;
  }

  .main-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero {
    min-height: auto;
    padding-top: 172px;
  }

  .gate {
    opacity: 0.45;
    width: 86vw;
  }

  .status-band,
  .section-grid,
  .feature-wall,
  .guide {
    grid-template-columns: 1fr;
  }

  .rank-row {
    grid-template-columns: 42px 1fr 92px 72px;
    padding: 15px 14px;
    font-size: 16px;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .header-action {
    display: none;
  }

  .brand {
    font-size: 21px;
  }

  .hero-copy {
    font-size: 19px;
  }

  .server-strip div,
  .btn {
    width: 100%;
  }

  .status-band article {
    min-height: 94px;
    padding: 18px;
  }

  .status-band strong {
    font-size: 24px;
  }
}
