:root {
  --bg: #050505;
  --bg-soft: #0f0f0f;
  --card: rgba(20, 12, 12, 0.88);
  --card-border: rgba(229, 57, 53, 0.25);
  --text: #e8e8e8;
  --muted: #a0a0a0;
  --primary: #e53935;
  --primary-strong: #c62828;
  --ok: #4caf50;
  --silver: #bdbdbd;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 10% -20%, #2d0a0a 0%, transparent 50%), var(--bg);
  min-height: 100vh;
}

.background-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 85% 20%, rgba(229, 57, 53, 0.35), transparent 35%);
  filter: blur(40px);
}

.site-header,
.container,
.site-footer {
  width: min(1100px, 92vw);
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
}

.brand {
  display: flex;
  gap: 0.9rem;
  align-items: center;
}

.brand-logo {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 0.8rem;
  object-fit: cover;
  border: 1px solid rgba(229, 57, 53, 0.45);
}

.brand-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

h1 {
  margin: 0.12rem 0 0;
  font-size: 1.35rem;
  background: linear-gradient(135deg, #e0e0e0, #9e9e9e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.discord-btn {
  text-decoration: none;
  color: #ffffff;
  background: linear-gradient(120deg, #e53935, #b71c1c);
  font-weight: 700;
  padding: 0.75rem 1.2rem;
  border-radius: 0.75rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.discord-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(229, 57, 53, 0.4);
}

.hero {
  margin: 1.25rem 0 1.5rem;
}

.hero-banner {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border-radius: 1rem;
  border: 1px solid var(--card-border);
  margin-bottom: 1rem;
}

.hero h2 {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 2.35rem);
}

.hero p {
  margin-top: 0.75rem;
  max-width: 780px;
  color: var(--muted);
  line-height: 1.7;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(170px, 1fr));
  gap: 0.9rem;
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 1rem;
  backdrop-filter: blur(8px);
}

.stat-card {
  padding: 1rem;
}

.stat-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.stat-value {
  margin: 0.65rem 0 0;
  font-size: clamp(1.3rem, 2.8vw, 2rem);
  font-weight: 800;
  color: var(--text);
}

.chart-grid {
  margin-top: 0.9rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.chart-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 1rem;
  backdrop-filter: blur(8px);
  padding: 0.75rem;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
}

h3 {
  margin: 0;
  font-size: 0.9rem;
}

.chip {
  font-size: 0.7rem;
  font-weight: 700;
  color: #ffcdd2;
  background: rgba(229, 57, 53, 0.18);
  border: 1px solid rgba(229, 57, 53, 0.35);
  padding: 0.15rem 0.4rem;
  border-radius: 999px;
}

canvas {
  width: 100% !important;
  height: auto !important;
  max-height: 140px;
}


.site-footer {
  margin: 1rem auto 2rem;
  padding: 1.2rem;
  border-radius: 1rem;
  background: var(--bg-soft);
  border: 1px solid rgba(229, 57, 53, 0.18);
  text-align: center;
}

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

.site-footer a {
  display: inline-block;
  margin-top: 0.45rem;
  color: #ef9a9a;
  text-decoration: none;
  font-weight: 700;
}

@media (max-width: 960px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }
  .chart-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }
}
