:root {
  color-scheme: dark;
  --bg: #16130f;
  --surface: #211b15;
  --surface-soft: #2b241c;
  --panel: rgba(31, 25, 18, 0.78);
  --paper: #efe1c0;
  --paper-soft: #cdbb98;
  --muted: #9b917d;
  --line: rgba(239, 225, 192, 0.18);
  --red: #c83a2c;
  --red-dark: #7e1f19;
  --blue: #3e77a8;
  --gold: #d6a650;
  --green: #76c58d;
  --shadow: rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at top left, rgba(214, 166, 80, 0.16), transparent 34%),
    linear-gradient(180deg, #1b1711 0%, #262016 42%, #17130f 100%);
  color: var(--paper);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.topbar {
  position: fixed;
  z-index: 20;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 72px);
  border-bottom: 1px solid var(--line);
  background: rgba(22, 19, 15, 0.82);
  backdrop-filter: blur(16px);
}

.brand,
.nav-links,
.hero-actions,
.ticker,
.footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(214, 166, 80, 0.7);
  background: linear-gradient(135deg, var(--red), #3a1711);
  color: #ffe2a1;
  font-family: Cinzel, serif;
  font-weight: 900;
}

.brand-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo-wrap {
  position: relative;
  display: block;
  overflow: hidden;
}

.brand-logo-wrap::after {
  content: "";
  position: absolute;
  inset: -20% -45%;
  background: linear-gradient(115deg, transparent 36%, rgba(150, 232, 255, 0.7) 48%, transparent 61%);
  transform: translateX(-82%);
  animation: logoShine 5.4s ease-in-out infinite;
  pointer-events: none;
}

.brand-logo {
  display: block;
  width: clamp(82px, 9vw, 118px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(0, 164, 255, 0.18));
}

.brand strong,
h1,
h2 {
  font-family: Cinzel, Georgia, serif;
  letter-spacing: 0;
}

.brand strong {
  display: block;
  font-size: 17px;
  line-height: 1;
}

.brand small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.nav-links {
  gap: clamp(16px, 3vw, 34px);
  color: var(--paper-soft);
  font-size: 14px;
  font-weight: 800;
}

.nav-links a:hover,
.nav-button:hover {
  color: var(--gold);
}

.nav-button {
  border: 1px solid rgba(214, 166, 80, 0.5);
  background: rgba(239, 225, 192, 0.08);
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 900;
}

.hero {
  position: relative;
  min-height: 96svh;
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: 122px clamp(18px, 4vw, 72px) 70px;
}

.hero-image,
.hero-gradient {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-gradient {
  background:
    linear-gradient(90deg, rgba(22, 19, 15, 0.94) 0%, rgba(22, 19, 15, 0.76) 34%, rgba(22, 19, 15, 0.24) 67%, rgba(22, 19, 15, 0.5) 100%),
    linear-gradient(180deg, rgba(22, 19, 15, 0.08), rgba(22, 19, 15, 0.96));
}

.hero-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 680px) minmax(520px, 760px);
  gap: clamp(24px, 3vw, 40px);
  align-items: end;
}

.kicker {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.studio-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  border: 1px solid rgba(214, 166, 80, 0.42);
  background: rgba(22, 19, 15, 0.48);
  padding: 9px 12px;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.22);
}

.studio-mark img {
  display: block;
  width: clamp(150px, 18vw, 230px);
  height: auto;
}

.studio-mark span {
  color: #ffe0a1;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.studio-mark small {
  color: var(--paper-soft);
  font-size: 12px;
  font-weight: 800;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 24px;
  font-size: clamp(44px, 7.4vw, 92px);
  line-height: 0.98;
  text-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
}

h2 {
  max-width: 820px;
  margin-bottom: 0;
  font-size: clamp(30px, 4.2vw, 54px);
  line-height: 1.08;
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
}

.hero-copy p {
  max-width: 670px;
  margin-bottom: 30px;
  color: #e8dcc1;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.62;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  padding: 0 22px;
  font-weight: 900;
  box-shadow: 0 18px 48px var(--shadow);
}

.button.primary {
  border-color: rgba(200, 58, 44, 0.65);
  background: linear-gradient(135deg, #ef5842, var(--red-dark));
  color: white;
}

.button.secondary {
  background: rgba(239, 225, 192, 0.1);
  color: var(--paper);
}

.hero-side {
  display: grid;
  grid-template-columns: minmax(270px, 1fr) minmax(240px, 0.78fr);
  align-items: stretch;
  gap: 14px;
}

.status-card {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 24px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
}

.status-light {
  position: relative;
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 8px;
  border-radius: 999px;
  background: #8cffaa;
  box-shadow:
    0 0 10px rgba(140, 255, 170, 0.95),
    0 0 24px rgba(118, 197, 141, 0.78);
  animation: livePulse 1.65s ease-in-out infinite;
}

.status-light::after {
  content: "";
  position: absolute;
  inset: -7px;
  border: 1px solid rgba(140, 255, 170, 0.45);
  border-radius: inherit;
  animation: liveRing 1.65s ease-out infinite;
}

.status-card p {
  display: inline;
  color: var(--paper-soft);
  font-size: 14px;
  font-weight: 800;
}

.status-card strong {
  display: block;
  margin: 18px 0 10px;
  font-size: 25px;
}

.status-card small {
  color: var(--muted);
  line-height: 1.6;
}

.channel-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.channel-list span {
  border: 1px solid rgba(118, 197, 141, 0.28);
  background: rgba(118, 197, 141, 0.08);
  padding: 6px 9px;
  color: var(--paper-soft);
  font-size: 12px;
  font-weight: 900;
}

.channel-list .active {
  border-color: rgba(118, 197, 141, 0.72);
  background: rgba(118, 197, 141, 0.18);
  color: #dfffe7;
  box-shadow: 0 0 18px rgba(118, 197, 141, 0.2);
}

.online-panel {
  margin-top: 0;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid rgba(118, 197, 141, 0.24);
  background:
    linear-gradient(135deg, rgba(118, 197, 141, 0.1), rgba(222, 172, 70, 0.05)),
    rgba(11, 18, 13, 0.46);
  padding: 18px 20px;
  box-shadow: 0 18px 58px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
}

.online-panel__label,
.online-panel__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.online-panel__label {
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.online-panel__label::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #85ff9b;
  box-shadow: 0 0 18px rgba(133, 255, 155, 0.84);
  animation: livePulse 1.7s infinite;
}

.online-panel__count {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin: 10px 0 8px;
}

.online-panel__count b {
  color: #f7ffe8;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 0.95;
  letter-spacing: 0;
}

.online-panel__count span,
.online-panel__meta span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.online-panel__meta {
  border-top: 1px solid rgba(238, 215, 170, 0.12);
  padding-top: 9px;
}

.online-panel__meta span:first-child {
  color: var(--paper-soft);
}

@keyframes livePulse {
  0%,
  100% {
    transform: scale(0.92);
    filter: brightness(0.9);
  }

  45% {
    transform: scale(1.14);
    filter: brightness(1.35);
  }
}

@keyframes liveRing {
  0% {
    opacity: 0.85;
    transform: scale(0.4);
  }

  100% {
    opacity: 0;
    transform: scale(1.55);
  }
}

@keyframes logoShine {
  0%,
  62% {
    opacity: 0;
    transform: translateX(-82%);
  }

  70% {
    opacity: 0.9;
  }

  82% {
    opacity: 0;
    transform: translateX(82%);
  }

  100% {
    opacity: 0;
    transform: translateX(82%);
  }
}

.ticker {
  justify-content: center;
  gap: 1px;
  padding: 0 clamp(18px, 4vw, 72px);
  background: rgba(0, 0, 0, 0.26);
}

.ticker span {
  flex: 1;
  min-height: 72px;
  display: grid;
  place-items: center;
  border-inline: 1px solid rgba(239, 225, 192, 0.08);
  background: rgba(239, 225, 192, 0.06);
  color: var(--paper-soft);
  font-weight: 900;
  text-align: center;
}

.world,
.systems,
.classes,
.beta,
.roadmap,
.faq,
.vision,
.server-lore,
.alpha-progress {
  padding: 88px clamp(18px, 4vw, 72px);
}

.alpha-progress {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(340px, 1.15fr);
  gap: 42px;
  align-items: center;
  border-block: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(214, 166, 80, 0.14), transparent 36%),
    linear-gradient(225deg, rgba(200, 58, 44, 0.12), transparent 38%),
    #18130f;
}

.server-lore {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 1.05fr);
  gap: 36px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(118, 197, 141, 0.1), transparent 34%),
    linear-gradient(90deg, rgba(214, 166, 80, 0.1), transparent 56%),
    #17120e;
}

.server-lore p:last-child {
  margin: 0;
  color: var(--paper-soft);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.7;
}

.vision {
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 14% 24%, rgba(118, 197, 141, 0.1), transparent 28%),
    linear-gradient(180deg, rgba(22, 19, 15, 0.88), rgba(14, 17, 14, 0.98));
}

.vision .section-title {
  max-width: 920px;
}

.vision .section-title p:last-child {
  max-width: 860px;
  color: var(--paper-soft);
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.75;
}

.vision-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.vision-grid article {
  min-height: 260px;
  border: 1px solid rgba(214, 166, 80, 0.2);
  background:
    linear-gradient(180deg, rgba(239, 225, 192, 0.075), rgba(118, 197, 141, 0.035)),
    rgba(22, 19, 15, 0.54);
  padding: 24px;
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.22);
}

.vision-grid span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 38px;
  border: 1px solid rgba(214, 166, 80, 0.42);
  color: var(--gold);
  font-family: Cinzel, serif;
  font-weight: 900;
}

.vision-grid h3 {
  margin: 0 0 12px;
  color: var(--paper);
  font-size: 22px;
}

.vision-grid p {
  margin: 0;
  color: var(--paper-soft);
  line-height: 1.7;
}

.trust-strip {
  display: grid;
  grid-template-columns: minmax(180px, 0.48fr) minmax(260px, 0.72fr) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-top: 18px;
  border: 1px solid rgba(214, 166, 80, 0.24);
  background:
    linear-gradient(90deg, rgba(200, 58, 44, 0.13), transparent 48%),
    rgba(22, 19, 15, 0.5);
  padding: 22px 24px;
}

.trust-strip .kicker {
  margin: 0;
}

.trust-strip strong {
  color: var(--paper);
  font-family: Cinzel, serif;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.05;
}

.trust-strip p:last-child {
  margin: 0;
  color: var(--paper-soft);
  line-height: 1.7;
}

.progress-copy p {
  max-width: 620px;
  color: var(--paper-soft);
  line-height: 1.7;
}

.progress-board {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(239, 225, 192, 0.09), rgba(239, 225, 192, 0.035));
  padding: 24px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.progress-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  color: var(--gold);
  font-weight: 900;
}

.progress-head strong {
  font-family: Cinzel, serif;
  font-size: 34px;
}

.progress-row {
  margin-top: 18px;
}

.progress-row div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 9px;
  color: var(--paper);
  font-weight: 800;
}

.progress-row b {
  color: var(--gold);
}

.progress-row i {
  display: block;
  height: 10px;
  border: 1px solid rgba(239, 225, 192, 0.16);
  background: rgba(0, 0, 0, 0.26);
  overflow: hidden;
}

.progress-row i::before {
  content: "";
  display: block;
  width: var(--value);
  height: 100%;
  background: linear-gradient(90deg, var(--red), var(--gold));
  box-shadow: 0 0 24px rgba(214, 166, 80, 0.48);
  transform-origin: left;
  animation: progressFill 1.1s ease-out both;
}

@keyframes progressFill {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

.roadmap {
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 82% 22%, rgba(62, 119, 168, 0.16), transparent 30%),
    #1c1711;
}

.roadmap-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  gap: 18px;
  align-items: stretch;
}

.today-card,
.roadmap-list article {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(239, 225, 192, 0.085), rgba(239, 225, 192, 0.035));
  box-shadow: 0 18px 58px rgba(0, 0, 0, 0.22);
}

.today-card {
  position: relative;
  padding: 28px;
}

.live-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 9px;
  border-radius: 999px;
  background: #8cffaa;
  box-shadow: 0 0 18px rgba(140, 255, 170, 0.78);
  animation: livePulse 1.65s ease-in-out infinite;
}

.today-card p {
  display: inline;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.today-card strong {
  display: block;
  margin: 22px 0 18px;
  color: var(--paper);
  font-size: clamp(24px, 2.4vw, 36px);
  line-height: 1.16;
}

.today-card ul {
  margin: 0;
  padding-left: 20px;
  color: var(--paper-soft);
  line-height: 1.8;
}

.roadmap-list {
  display: grid;
  gap: 14px;
}

.roadmap-list article {
  display: grid;
  grid-template-columns: auto minmax(160px, 0.34fr) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 22px;
}

.roadmap-list span {
  color: var(--gold);
  font-family: Cinzel, serif;
  font-size: 28px;
  font-weight: 900;
}

.roadmap-list h3 {
  margin: 0;
  color: var(--paper);
  font-size: 21px;
}

.roadmap-list p {
  margin: 0;
  color: var(--paper-soft);
  line-height: 1.65;
}

.dev-log {
  margin-top: 22px;
}

.dev-log-grid,
.faq-grid {
  display: grid;
  gap: 16px;
}

.dev-log-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dev-log-grid article,
.faq-grid article {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(239, 225, 192, 0.075), rgba(239, 225, 192, 0.035));
  padding: 24px;
}

.dev-log-grid span {
  display: block;
  margin-bottom: 14px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dev-log-grid strong {
  display: block;
  margin-bottom: 10px;
  color: var(--paper);
  font-size: 22px;
  line-height: 1.2;
}

.dev-log-grid p,
.faq-grid p {
  margin: 0;
  color: var(--paper-soft);
  line-height: 1.7;
}

.faq {
  border-top: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(214, 166, 80, 0.1), transparent 38%),
    var(--surface);
}

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

.faq-grid article {
  min-height: 210px;
}

.faq-grid h3 {
  color: var(--paper);
}

.section-title {
  margin-bottom: 34px;
}

.world {
  background:
    linear-gradient(135deg, rgba(214, 166, 80, 0.1), transparent 38%),
    var(--surface);
}

.kingdom-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.kingdom-tabs button {
  border: 1px solid var(--line);
  background: rgba(239, 225, 192, 0.07);
  color: var(--paper-soft);
  padding: 12px 18px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.kingdom-tabs button.active {
  background: var(--gold);
  color: #26180a;
}

.kingdom-panel {
  max-width: 900px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(239, 225, 192, 0.09), rgba(239, 225, 192, 0.045));
  padding: 28px;
}

.kingdom-panel span {
  color: var(--gold);
  font-weight: 900;
}

.kingdom-panel p,
.system-grid p,
.class-grid p,
.beta p {
  color: var(--paper-soft);
  line-height: 1.7;
}

.systems {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.16), transparent),
    #1c1711;
}

.system-grid,
.class-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.system-grid article,
.class-grid article {
  min-height: 230px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(239, 225, 192, 0.08), rgba(239, 225, 192, 0.035));
  padding: 24px;
}

.system-grid b {
  display: block;
  margin-bottom: 52px;
  color: var(--gold);
  font-family: Cinzel, serif;
}

.classes {
  background:
    linear-gradient(135deg, rgba(62, 119, 168, 0.1), transparent 38%),
    var(--surface-soft);
}

.class-grid article {
  min-height: 190px;
}

.class-grid span {
  display: block;
  margin-bottom: 42px;
  color: var(--gold);
  font-family: Cinzel, serif;
  font-size: 22px;
  font-weight: 900;
}

.beta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  background:
    linear-gradient(90deg, rgba(200, 58, 44, 0.18), transparent 45%),
    #17120e;
}

.beta div {
  max-width: 780px;
}

.footer {
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(18px, 4vw, 72px);
  border-top: 1px solid var(--line);
  background: #120f0c;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

@media (max-width: 980px) {
  .nav-links {
    display: none;
  }

  .hero-layout,
  .alpha-progress,
  .roadmap-layout,
  .system-grid,
  .vision-grid,
  .trust-strip,
  .dev-log-grid,
  .faq-grid,
  .class-grid {
    grid-template-columns: 1fr;
  }

  .hero-side {
    grid-template-columns: 1fr;
  }

  .hero-gradient {
    background:
      linear-gradient(180deg, rgba(22, 19, 15, 0.42), rgba(22, 19, 15, 0.9) 58%, rgba(22, 19, 15, 0.98)),
      linear-gradient(90deg, rgba(22, 19, 15, 0.88), rgba(22, 19, 15, 0.22));
  }

  .ticker,
  .beta,
  .footer {
    align-items: stretch;
    flex-direction: column;
  }

  .ticker {
    padding: 0;
  }

  .world,
  .systems,
  .classes,
  .beta,
  .roadmap,
  .faq,
  .vision,
  .server-lore,
  .alpha-progress {
    padding-block: 66px;
  }

  .server-lore {
    grid-template-columns: 1fr;
  }

  .roadmap-list article {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  .topbar {
    padding-block: 12px;
  }

  .brand small,
  .nav-button {
    display: none;
  }

  .brand strong {
    font-size: 14px;
  }

  .hero {
    padding-top: 96px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }
}
