:root {
  --accent: #c0392b;       /* blood red, matches the season theme */
  --discord: #5865f2;
  --text: #f2ede6;
  --muted: #b3aaa0;
  --panel: rgba(10, 10, 12, 0.55);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: #0b0b0d;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

/* Background image layer. Swap static/background.jpg to rebrand. */
.bg {
  position: fixed;
  inset: 0;
  background: url("background.jpg") center / cover no-repeat;
  z-index: -2;
  transform: scale(1.05);
  filter: saturate(0.9);
}

/* Dark gradient so text stays readable over any image. */
.scrim {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(0,0,0,0.25), rgba(0,0,0,0.85)),
    linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.75) 100%);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
}

.brand {
  font-weight: 800;
  letter-spacing: 0.18em;
  font-size: 0.95rem;
  text-transform: uppercase;
  color: var(--text);
}

.lang {
  background: var(--panel);
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--text);
  border-radius: 999px;
  padding: 6px 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background 0.2s, border-color 0.2s;
}
.lang:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.35); }

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px 60px;
  max-width: 900px;
  margin: 0 auto;
}

.kicker {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 14px;
}

.title {
  color:  #FFCE09FF;
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1;
  text-shadow: 0 4px 30px rgba(0,0,0,0.7);
}

.tagline {
  margin-top: 16px;
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: clamp(0.85rem, 2.4vw, 1.05rem);
  color: var(--text);
  text-transform: uppercase;
}

.blurb {
  margin-top: 22px;
  max-width: 620px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.6;
}

.features {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 30px;
}

.feature {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 250px;
  background: var(--panel);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 14px 18px;
  font-weight: 600;
  font-size: 0.95rem;
  backdrop-filter: blur(6px);
  text-align: center;
}
.feature-icon { font-size: 1.2rem; }

/* Live server status (BattleMetrics) */
.status {
  margin-top: 30px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--panel);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  backdrop-filter: blur(6px);
}
.status-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #888;
  flex: 0 0 auto;
}
.status-dot.is-online {
  background: #43b581;
  box-shadow: 0 0 0 0 rgba(67, 181, 129, 0.6);
  animation: pulse 2s infinite;
}
.status-dot.is-offline { background: #e03e3e; }
.status-sep { color: var(--muted); }
.status-players strong { margin-left: 6px; }
.status-ip {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  color: var(--text);
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(67, 181, 129, 0.5); }
  70%  { box-shadow: 0 0 0 8px rgba(67, 181, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(67, 181, 129, 0); }
}

.cta { margin-top: 36px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 30px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 1.1rem;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}

.btn-discord {
  background: var(--discord);
  color: #fff;
  box-shadow: 0 12px 30px rgba(88, 101, 242, 0.45);
}
.btn-discord:hover {
  transform: translateY(-2px);
  background: #4752e0;
  box-shadow: 0 16px 36px rgba(88, 101, 242, 0.6);
}

.meta {
  margin-top: 44px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.meta-item {
  background: var(--panel);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 14px 22px;
  width: 250px;
  text-align: center;
  backdrop-filter: blur(6px);
}

.meta-label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.meta-value {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text);
}

.footer {
  text-align: center;
  padding: 22px;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}

/* Once three 250px cards no longer fit on one line, stack them
   one-per-row (each centered) instead of an off-center 2 + 1 wrap. */
@media (max-width: 840px) {
  .feature { width: 100%; max-width: 320px; }
  .meta-item { width: 100%; max-width: 320px; }
}

@media (max-width: 520px) {
  .status { width: 100%; max-width: 320px; justify-content: center; flex-wrap: wrap; }
  .btn { width: 100%; justify-content: center; }
}
