:root {
  --bg: #040406;
  --bg-2: #0c0709;
  --panel: rgba(17, 10, 13, 0.82);
  --panel-strong: rgba(21, 10, 13, 0.96);
  --panel-soft: rgba(255, 255, 255, 0.03);
  --line: rgba(255, 94, 94, 0.16);
  --line-strong: rgba(255, 110, 110, 0.34);
  --text: #fff4ef;
  --muted: #d8b9b6;
  --accent: #ff6958;
  --accent-2: #ffb38b;
  --accent-3: #8f1623;
  --success: #7ef0a1;
  --shadow: 0 32px 90px rgba(0, 0, 0, 0.44);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --max: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  font-family: "Rajdhani", sans-serif;
  background:
    radial-gradient(circle at 14% 12%, rgba(255, 89, 89, 0.18), transparent 22%),
    radial-gradient(circle at 88% 10%, rgba(164, 16, 38, 0.2), transparent 26%),
    radial-gradient(circle at 52% 100%, rgba(255, 97, 79, 0.1), transparent 34%),
    linear-gradient(180deg, #030305 0%, #0b0708 30%, #14090d 70%, #040406 100%);
}

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

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -5;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(255, 94, 94, 0) 15%, rgba(255, 94, 94, 0.08) 28%, rgba(255, 255, 255, 0.015) 40%, rgba(255, 94, 94, 0) 52%),
    linear-gradient(300deg, rgba(255, 94, 94, 0) 24%, rgba(255, 94, 94, 0.06) 36%, rgba(255, 255, 255, 0.012) 46%, rgba(255, 94, 94, 0) 58%);
  mix-blend-mode: screen;
  animation: sweep 14s ease-in-out infinite alternate;
}

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

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

h1,
h2,
h3,
h4,
.brand-copy strong,
.stat-card strong,
.metric-row strong,
.server-main-number strong,
.scene-copy p {
  font-family: "Archivo Black", sans-serif;
}

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

.ambient-a {
  width: 360px;
  height: 360px;
  top: 6%;
  right: -100px;
  background: rgba(255, 59, 59, 0.2);
}

.ambient-b {
  width: 440px;
  height: 440px;
  bottom: -140px;
  left: -100px;
  background: rgba(133, 12, 27, 0.2);
  animation-duration: 21s;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(18px);
  background: rgba(9, 5, 7, 0.76);
  border-bottom: 1px solid rgba(255, 94, 94, 0.08);
}

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

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

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

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

.brand-mark {
  position: relative;
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 20px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(255, 94, 94, 0.34), rgba(122, 13, 24, 0.24)),
    rgba(17, 10, 13, 0.96);
  box-shadow: inset 0 0 24px rgba(255, 94, 94, 0.22), 0 16px 34px rgba(0, 0, 0, 0.35);
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 38%, transparent 62%, rgba(255, 94, 94, 0.14));
}

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

.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.88rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav {
  display: grid;
  grid-auto-flow: column;
  gap: 18px;
  color: var(--muted);
  font-size: 1.05rem;
  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-2), 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);
}

.nav-toggle {
  display: none;
  justify-content: center;
  gap: 6px;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  flex-direction: column;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  margin: 0 auto;
  border-radius: 999px;
  background: var(--text);
}

.topbar-actions {
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  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, #8f1522, #d61d33 52%, #ff8564);
  color: #fff8f4;
  box-shadow: 0 14px 32px rgba(214, 29, 51, 0.34);
}

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

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

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

.hero {
  padding: 44px 0 22px;
}

.page-hero {
  padding: 28px 0 10px;
}

.section {
  padding: 22px 0;
}

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

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

.hero-copy,
.hero-scene,
.panel,
.timeline-panel,
.faq-item,
.faction-card,
.cta-shell,
.page-hero-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012)),
    var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero-copy::before,
.hero-scene::before,
.panel::before,
.timeline-panel::before,
.faq-item::before,
.faction-card::before,
.cta-shell::before,
.page-hero-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.08), transparent 38%, transparent 66%, rgba(255, 94, 94, 0.1));
  pointer-events: none;
}

.hero-copy,
.hero-scene {
  min-height: 600px;
  border-radius: var(--radius-xl);
}

.hero-copy {
  padding: clamp(30px, 4vw, 54px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 111, 72, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012)),
    var(--panel);
}

.hero-copy h1 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(2.6rem, 5.2vw, 4.6rem);
  line-height: 0.92;
  letter-spacing: -0.06em;
  text-transform: uppercase;
}

.lead {
  max-width: 52rem;
  margin: 1.1rem 0 0;
  color: var(--muted);
  font-size: 1.16rem;
}

.chip-row,
.detail-list,
.bullet-stack,
.hero-actions,
.footer-meta,
.section-head,
.metric-stack {
  display: flex;
  gap: 12px;
}

.chip-row,
.footer-meta,
.section-head {
  flex-wrap: wrap;
}

.info-chip,
.status-tag,
.feature-index,
.faction-type,
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.info-chip {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 94, 94, 0.16);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.hero-actions {
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.hero-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 1.35rem;
  gap: 14px;
}

.stat-card,
.scene-panel,
.server-mini-card,
.server-info-card,
.feature-card,
.timeline-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.01);
}

.stat-card {
  min-height: 112px;
  padding: 14px 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stat-card strong {
  display: block;
  font-size: 1.45rem;
  line-height: 1.02;
}

.stat-inline-value {
  display: inline-flex;
  align-items: baseline;
  gap: 0.18em;
  white-space: nowrap;
}

.stat-inline-value span {
  display: inline;
}

.stat-inline-separator {
  opacity: 0.5;
}

.stat-card span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-scene {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 83, 83, 0.16), transparent 22%),
    linear-gradient(180deg, rgba(9, 5, 7, 0.52), rgba(8, 4, 6, 0.82)),
    var(--panel-strong);
}

.scene-overlay,
.scene-siren {
  position: absolute;
  pointer-events: none;
}

.scene-overlay {
  inset: 0;
  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: 52px 52px;
  mask-image: radial-gradient(circle at center, black 30%, transparent 84%);
  opacity: 0.35;
}

.scene-siren {
  width: 220px;
  height: 220px;
  right: -60px;
  top: -40px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 98, 98, 0.22), rgba(255, 98, 98, 0) 68%);
  filter: blur(10px);
  animation: siren 5s ease-in-out infinite;
}

.scene-topline,
.scene-headline,
.page-hero-shell,
.server-live-hero {
  position: relative;
  z-index: 2;
}

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

.status-line {
  gap: 10px;
  font-size: 0.92rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 16px rgba(126, 240, 161, 0.5);
}

.status-dot.is-offline {
  background: #ff5a5a;
  box-shadow: 0 0 16px rgba(255, 90, 90, 0.46);
}

.status-tag {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.78rem;
  font-weight: 700;
}

.scene-headline h2,
.panel h2,
.timeline-panel h2,
.page-hero-shell h1,
.cta-shell h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.9rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

.scene-headline p,
.page-hero-shell p,
.cta-shell p,
.panel p,
.timeline-item p,
.faq-item p,
.feature-card p,
.faction-card p {
  color: var(--muted);
}

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

.scene-panel,
.server-mini-card,
.server-info-card {
  padding: 16px 18px;
}

.scene-panel span,
.server-mini-card span,
.server-info-card span,
.progress-label span,
.feature-index,
.faction-type,
.eyebrow {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.scene-panel strong,
.server-mini-card strong,
.server-info-card strong,
.server-main-number strong {
  display: block;
  margin-top: 8px;
  font-size: 1.4rem;
  line-height: 1;
}

.scene-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.scene-copy p {
  margin: 0;
  font-size: clamp(3rem, 6vw, 5.4rem);
  line-height: 0.86;
  display: inline-flex;
  align-items: baseline;
  gap: 0.18em;
  flex-wrap: nowrap;
  white-space: nowrap;
}

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

.section-head {
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 18px;
}

.eyebrow,
.feature-index,
.faction-type {
  display: inline-block;
}

.section-head h2 {
  margin: 0;
  max-width: 18ch;
  font-size: clamp(1.6rem, 2.7vw, 2.6rem);
  line-height: 1;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

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

.feature-card {
  min-height: 260px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.feature-card h3,
.faq-item h2,
.faction-card h2 {
  margin: 0.65rem 0 0;
  font-size: 1.45rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.04em;
}

.split-layout {
  align-items: stretch;
}

.panel,
.timeline-panel,
.cta-shell,
.page-hero-shell,
.faq-item,
.faction-card {
  border-radius: var(--radius-xl);
}

.panel,
.timeline-panel {
  padding: 28px;
}

.metric-stack {
  flex-direction: column;
  margin-top: 1rem;
}

.metric-row {
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

.timeline-panel {
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 94, 94, 0.1), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012)),
    var(--panel);
}

.timeline-item {
  padding: 18px;
  margin-top: 14px;
}

.timeline-item strong {
  display: block;
  font-size: 1.08rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cta-shell {
  padding: 30px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 116, 88, 0.12), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012)),
    var(--panel-strong);
}

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

.footer-row {
  gap: 20px;
  padding: 18px 22px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.025);
}

.footer p {
  margin: 6px 0 0;
  color: var(--muted);
}

.footer-meta {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.page-hero-shell {
  padding: 30px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 109, 89, 0.14), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012)),
    var(--panel);
}

.page-hero-shell h1 {
  max-width: 14ch;
}

.page-ribbon {
  gap: 10px;
  margin-top: 1rem;
  color: var(--muted);
  flex-wrap: wrap;
}

.page-ribbon span,
.tag-grid span {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.server-live-hero {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.server-main-number span {
  font-size: inherit;
}

.server-player-line {
  font-size: clamp(3rem, 6vw, 4.8rem);
  letter-spacing: -0.08em;
  display: inline-flex;
  align-items: baseline;
  gap: 0.18em;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.server-player-separator,
.server-player-max {
  opacity: 0.45;
}

.progress-shell {
  margin-top: 20px;
}

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

.progress {
  margin-top: 10px;
  width: 100%;
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8f1522, #d61d33 54%, #ff8564);
  box-shadow: 0 0 18px rgba(255, 94, 94, 0.3);
}

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

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

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

.bullet-stack {
  flex-direction: column;
  margin-top: 16px;
}

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

.faq-item,
.faction-card {
  padding: 24px;
}

.detail-list {
  flex-direction: column;
  align-items: flex-start;
  margin: 1rem 0 0;
  padding-left: 1.2rem;
}

.detail-list li {
  color: var(--muted);
}

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

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

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

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

@keyframes sweep {
  0% {
    transform: translate3d(-2%, -1%, 0) scale(1);
    opacity: 0.4;
  }
  50% {
    transform: translate3d(1%, 2%, 0) scale(1.03);
    opacity: 0.7;
  }
  100% {
    transform: translate3d(4%, -1%, 0) scale(1.01);
    opacity: 0.45;
  }
}

@keyframes siren {
  0%, 100% {
    opacity: 0.3;
    transform: scale(0.96);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

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

  .hero-copy,
  .hero-scene {
    min-height: auto;
  }

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

  .cta-shell {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 900px) {
  .topbar-inner {
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .nav {
    display: none;
    width: 100%;
    grid-auto-flow: row;
    padding: 12px 0 4px;
  }

  .nav.is-open {
    display: grid;
  }

  .topbar-actions {
    width: 100%;
    justify-content: space-between;
  }

  .btn {
    width: 100%;
  }

  .topbar-actions .btn {
    flex: 1 1 0;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(calc(100% - 28px), var(--max));
  }

  .hero {
    padding-top: 26px;
  }

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

  .hero-copy h1 {
    font-size: clamp(2.2rem, 10vw, 3.3rem);
  }

  .scene-copy p,
  .server-player-line {
    font-size: clamp(2.2rem, 11vw, 3.2rem);
  }

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

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

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