:root {
  --bg: #040406;
  --bg-soft: #12080c;
  --panel: rgba(18, 10, 14, 0.88);
  --panel-strong: rgba(24, 10, 14, 0.98);
  --line: rgba(255, 83, 83, 0.18);
  --line-strong: rgba(255, 63, 63, 0.42);
  --text: #fff3ef;
  --muted: #d1afb1;
  --accent: #ffb09b;
  --accent-strong: #ff3b3b;
  --danger: #e04343;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.44);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --max: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Rajdhani", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 10%, rgba(255, 59, 59, 0.18), transparent 24%),
    radial-gradient(circle at 88% 4%, rgba(142, 8, 26, 0.22), transparent 24%),
    radial-gradient(circle at 50% 100%, rgba(255, 59, 59, 0.09), transparent 30%),
    linear-gradient(180deg, #040406 0%, #0d0709 34%, #14080d 68%, #050406 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at center, black 34%, transparent 88%);
  opacity: 0.34;
  z-index: -5;
}

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

p,
li {
  font-size: 1rem;
  line-height: 1.5;
}

.ambient {
  position: fixed;
  inset: auto;
  border-radius: 999px;
  filter: blur(80px);
  pointer-events: none;
  z-index: -4;
  animation: drift 16s ease-in-out infinite;
}

.ambient-a {
  width: 280px;
  height: 280px;
  top: 10%;
  right: -60px;
  background: rgba(255, 59, 59, 0.18);
}

.ambient-b {
  width: 380px;
  height: 380px;
  bottom: -120px;
  left: -80px;
  background: rgba(134, 9, 26, 0.18);
  animation-duration: 22s;
}

.container {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(11, 5, 8, 0.82);
  border-bottom: 1px solid rgba(255, 79, 79, 0.1);
}

.topbar-inner,
.topbar-actions,
.brand,
.hero-actions,
.footer-row,
.progress-label,
.panel-head,
.status-line,
.data-row,
.metric-row {
  display: flex;
  align-items: center;
}

.topbar-inner,
.footer-row {
  justify-content: space-between;
}

.topbar-inner {
  gap: 24px;
  padding: 16px 0;
}

.brand {
  gap: 14px;
  min-width: max-content;
}

.brand-mark {
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 59, 59, 0.34), rgba(127, 9, 24, 0.28)),
    rgba(17, 10, 13, 0.96);
  border: 1px solid var(--line);
  box-shadow: inset 0 0 22px rgba(255, 59, 59, 0.24), 0 14px 30px rgba(0, 0, 0, 0.34);
  font-family: "Archivo Black", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.1em;
  overflow: hidden;
  flex: 0 0 48px;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: inherit;
  padding: 3px;
}

.brand-copy strong,
h1,
h2,
h3,
.stat-card strong,
.metric-row strong,
.data-row strong {
  font-family: "Archivo Black", sans-serif;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-size: 1.08rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav,
.hero-stats,
.feature-grid,
.split-layout,
.metric-stack,
.section-head,
.server-grid,
.info-grid,
.faq-grid,
.rules-grid,
.faction-grid,
.scene-matrix,
.tag-grid {
  display: grid;
  gap: 18px;
}

.nav {
  grid-auto-flow: column;
  gap: 18px;
  color: var(--muted);
  font-size: 1.08rem;
  font-weight: 600;
}

.nav a {
  position: relative;
  padding: 8px 0;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
}

.nav a:hover::after,
.nav a.active::after {
  transform: scaleX(1);
}

.topbar-actions {
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, #7f121d, #d21d31 52%, #ff6e61);
  color: #fff7f6;
  box-shadow: 0 12px 28px rgba(210, 29, 49, 0.34);
}

.btn-secondary {
  border-color: rgba(255, 93, 93, 0.16);
  background: rgba(255, 59, 59, 0.05);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: var(--line-strong);
}

.hero,
.page-hero,
.section {
  position: relative;
}

.hero {
  padding: 28px 0 18px;
}

.page-hero {
  padding: 24px 0 6px;
}

.section {
  padding: 18px 0;
}

.hero-layout,
.server-grid,
.split-layout,
.info-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.server-grid {
  align-items: stretch;
}

.hero-layout {
  display: grid;
  gap: 14px;
  align-items: stretch;
}

.hero-copy,
.hero-scene,
.panel,
.timeline-panel,
.cta-shell,
.page-hero-shell,
.faq-item,
.faction-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(23, 11, 15, 0.94), rgba(10, 6, 8, 0.9));
  border: 1px solid rgba(255, 93, 93, 0.1);
  box-shadow: var(--shadow);
}

.hero-copy,
.hero-scene,
.page-hero-shell,
.cta-shell {
  border-radius: var(--radius-xl);
}

.panel,
.timeline-panel,
.faq-item,
.faction-card {
  border-radius: var(--radius-lg);
}

.hero-copy,
.hero-scene,
.panel,
.timeline-panel,
.page-hero-shell,
.cta-shell,
.faq-item,
.faction-card {
  padding: 18px;
}

.hero-copy::before,
.hero-scene::before,
.panel::before,
.faq-item::before,
.faction-card::before,
.page-hero-shell::before,
.cta-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 59, 59, 0.14), transparent 28%, transparent 72%, rgba(127, 9, 24, 0.12));
  pointer-events: none;
}

.hero-copy::after,
.hero-scene::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -90px;
  bottom: -90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 59, 59, 0.18), transparent 68%);
  pointer-events: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 95, 95, 0.18);
  background: rgba(255, 59, 59, 0.08);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(1.8rem, 3.1vw, 2.9rem);
  max-width: 18ch;
}

h2 {
  font-size: clamp(1.25rem, 2vw, 1.9rem);
}

h3 {
  font-size: clamp(1.02rem, 1.35vw, 1.22rem);
}

.lead,
.page-hero-shell p,
.section-head p,
.panel p,
.timeline-item p,
.faq-item p,
.faction-card p,
.cta-shell p {
  color: var(--muted);
}

.hero-copy {
  display: grid;
  gap: 12px;
  align-content: center;
}

.hero-copy h1 {
  max-width: 16ch;
}

.hero-copy .lead {
  max-width: 62ch;
  font-size: 1rem;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.info-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 92, 92, 0.18);
  background: rgba(255, 59, 59, 0.07);
  color: #ffd0c9;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

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

.hero-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.page-home .hero-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.server-live-hero,
.server-mini-grid,
.server-info-stack {
  display: grid;
  gap: 12px;
}

.server-live-hero {
  gap: 16px;
}

.server-main-number {
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 88, 88, 0.14);
  background: linear-gradient(180deg, rgba(255, 59, 59, 0.09), rgba(255, 255, 255, 0.02));
}

.server-main-number strong {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: nowrap;
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(2.1rem, 4vw, 3.6rem);
  line-height: 1;
  white-space: nowrap;
}

.server-player-separator,
.server-player-max {
  color: var(--muted);
}

.server-player-separator {
  font-size: 0.52em;
}

.server-player-max {
  font-size: 0.52em;
}

.server-main-number span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.96rem;
  letter-spacing: 0.04em;
}

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

.server-mini-card,
.server-info-card {
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 88, 88, 0.12);
  background: linear-gradient(180deg, rgba(255, 59, 59, 0.06), rgba(255, 255, 255, 0.02));
}

.server-mini-card strong,
.server-info-card strong {
  display: block;
  font-family: "Archivo Black", sans-serif;
}

.server-mini-card strong {
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.server-mini-card span,
.server-info-card span {
  color: var(--muted);
  font-size: 0.92rem;
}

.server-info-stack {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.server-info-card {
  min-height: 92px;
  align-content: start;
}

.server-info-card strong {
  margin-top: 10px;
  font-size: 1.08rem;
  line-height: 1.2;
}

.server-info-wide {
  grid-column: 1 / -1;
}

.stat-card,
.feature-card,
.scene-panel {
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 88, 88, 0.12);
  background: linear-gradient(180deg, rgba(255, 59, 59, 0.07), rgba(255, 255, 255, 0.02));
}

.stat-card strong {
  display: block;
  font-size: clamp(1.05rem, 1.5vw, 1.4rem);
  margin-bottom: 4px;
}

.stat-card span,
.scene-panel span,
.feature-card p,
.feature-index,
.faction-type,
.status-tag,
.status-line,
.progress-label span,
.footer-meta,
.data-row span,
.metric-row span {
  font-size: 0.92rem;
}

.stat-card span,
.scene-panel span,
.feature-card p,
.feature-index,
.faction-type,
.status-tag,
.status-line,
.progress-label span,
.footer-meta,
.data-row span,
.metric-row span {
  color: var(--muted);
}

.hero-scene {
  min-height: 340px;
  display: grid;
  align-content: space-between;
  background:
    linear-gradient(180deg, rgba(10, 4, 7, 0.4), rgba(10, 4, 7, 0.92)),
    radial-gradient(circle at 50% 20%, rgba(255, 59, 59, 0.24), transparent 28%),
    linear-gradient(160deg, #16090d, #11070b 54%, #070406);
}

.scene-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.03) 48%, transparent 50%, transparent 100%),
    linear-gradient(0deg, transparent 0%, rgba(255, 255, 255, 0.03) 48%, transparent 50%, transparent 100%);
  background-size: 120px 120px;
  mask-image: radial-gradient(circle at center, black 40%, transparent 94%);
  animation: pulseGrid 12s linear infinite;
}

.scene-siren {
  position: absolute;
  left: -40px;
  top: -30px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 59, 59, 0.22), transparent 66%);
  filter: blur(20px);
  pointer-events: none;
}

.scene-topline,
.scene-copy {
  position: relative;
  z-index: 1;
}

.scene-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.status-line {
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-strong);
  box-shadow: 0 0 0 0 rgba(255, 59, 59, 0.72);
  animation: beacon 2s infinite;
}

.status-dot.is-offline {
  background: #70757f;
  box-shadow: 0 0 0 0 rgba(112, 117, 127, 0.48);
}

.status-tag {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 82, 82, 0.14);
  background: rgba(255, 59, 59, 0.08);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.scene-matrix {
  position: relative;
  z-index: 1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-self: center;
}

.scene-headline {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 6px;
}

.scene-headline h2 {
  font-size: clamp(1.2rem, 1.6vw, 1.5rem);
}

.scene-headline p {
  margin: 0;
  color: var(--muted);
}

.scene-panel strong {
  display: block;
  margin-top: 8px;
  font-size: 0.96rem;
  text-transform: uppercase;
}

.scene-copy {
  display: grid;
  gap: 10px;
  justify-items: end;
}

.scene-copy-metrics {
  justify-items: start;
  gap: 4px;
}

.scene-copy-metrics p {
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
}

.scene-copy-metrics small {
  color: var(--muted);
  letter-spacing: 0.18em;
}

.scene-copy p {
  margin: 0;
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(0.95rem, 1.5vw, 1.35rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245, 241, 232, 0.74);
}

.section-head {
  max-width: 760px;
  margin-bottom: 14px;
}

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

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

.feature-card {
  position: relative;
  min-height: 150px;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.feature-index,
.faction-type {
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: 10px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.faction-card {
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 220px;
  background:
    linear-gradient(180deg, rgba(26, 12, 16, 0.96), rgba(11, 7, 10, 0.92)),
    linear-gradient(135deg, rgba(255, 59, 59, 0.08), rgba(124, 9, 24, 0.05));
}

.faction-card::before {
  background:
    linear-gradient(135deg, rgba(255, 59, 59, 0.12), transparent 34%, transparent 70%, rgba(124, 9, 24, 0.08));
}

.faction-card h2 {
  font-size: clamp(1.18rem, 1.7vw, 1.55rem);
  line-height: 1.12;
}

.faction-card p {
  margin: 0;
}

.faction-type {
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 90, 90, 0.16);
  background: rgba(255, 59, 59, 0.09);
  color: #ffb6a8;
  font-size: 0.74rem;
}

.split-layout,
.server-grid,
.info-grid,
.rules-grid {
  align-items: stretch;
}

.metric-stack,
.bullet-stack,
.data-table {
  display: grid;
  gap: 12px;
}

.metric-row,
.data-row {
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 59, 59, 0.04);
  border: 1px solid rgba(255, 82, 82, 0.08);
}

.timeline-panel {
  display: grid;
  gap: 12px;
}

.timeline-item {
  padding-left: 18px;
  border-left: 2px solid rgba(255, 59, 59, 0.4);
}

.timeline-item strong {
  display: block;
  margin-bottom: 6px;
  font-size: 0.95rem;
  text-transform: uppercase;
}

.cta-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.page-hero-shell {
  display: grid;
  gap: 14px;
}

.progress-shell {
  display: grid;
  gap: 10px;
}

.progress-label {
  justify-content: space-between;
}

.progress {
  width: 100%;
  height: 14px;
  padding: 2px;
  border-radius: 999px;
  background: rgba(255, 59, 59, 0.06);
  border: 1px solid rgba(255, 82, 82, 0.1);
}

.progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7e121c, #d21d31, #ff6b5f);
  box-shadow: 0 0 24px rgba(210, 29, 49, 0.28);
  transition: width 700ms ease;
}

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

.tag-grid span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 6px 10px;
  border-radius: 14px;
  background: rgba(255, 59, 59, 0.05);
  border: 1px solid rgba(255, 88, 88, 0.1);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

.faq-item h2 {
  font-size: 1.08rem;
  margin-bottom: 10px;
}

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

.detail-list {
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.detail-list li + li {
  margin-top: 6px;
}

.footer {
  padding: 16px 0 22px;
}

.footer-row {
  gap: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer p,
.footer-meta {
  color: var(--muted);
}

.feature-card:hover,
.stat-card:hover,
.scene-panel:hover,
.panel:hover,
.faq-item:hover,
.faction-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 89, 89, 0.2);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.34);
}

.footer-meta {
  display: grid;
  justify-items: end;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.tilt-card {
  transform-style: preserve-3d;
  transition: transform 180ms ease, border-color 180ms ease;
}

.tilt-card:hover {
  border-color: var(--line-strong);
}

@keyframes beacon {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 104, 61, 0.7);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(255, 104, 61, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 104, 61, 0);
  }
}

@keyframes drift {
  0%, 100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(18px, -24px, 0);
  }
}

@keyframes pulseGrid {
  0% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(-18px, 14px, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

@media (max-width: 1080px) {
  .hero-layout,
  .server-grid,
  .split-layout,
  .info-grid,
  .feature-grid,
  .tag-grid,
  .faction-grid,
  .faq-grid,
  .rules-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats,
  .hero-stats.compact,
  .scene-matrix,
  .server-mini-grid,
  .server-info-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-home .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .topbar-inner,
  .cta-shell {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    grid-auto-flow: row;
  }

  .topbar-actions {
    width: 100%;
    flex-wrap: wrap;
  }
}

@media (max-width: 720px) {
  body {
    background:
      radial-gradient(circle at top, rgba(255, 59, 59, 0.16), transparent 28%),
      linear-gradient(180deg, #040406 0%, #0d0709 100%);
  }

  .hero,
  .page-hero {
    padding-top: 26px;
  }

  .hero-copy,
  .hero-scene,
  .panel,
  .timeline-panel,
  .page-hero-shell,
  .cta-shell,
  .faq-item,
  .faction-card {
    padding: 15px;
  }

  .hero-stats,
  .hero-stats.compact,
  .scene-matrix,
  .server-mini-grid,
  .server-info-stack {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(1.55rem, 7vw, 2.1rem);
  }

  .btn {
    width: 100%;
  }

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

  .footer-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-meta {
    justify-items: start;
  }
}
