:root {
  --bg: #0a0d14;
  --panel: #111726;
  --panel-soft: #171f33;
  --line: #2a3552;
  --text: #e7edff;
  --muted: #a5b3d6;
  --brand: #56c1ff;
  --brand-2: #6ff0cf;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--text);
  font: clamp(17px, 0.7vw + 13px, 22px) / 1.6 "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background:
    radial-gradient(1000px 620px at 90% -15%, #18325c 0%, transparent 60%),
    radial-gradient(820px 680px at -10% 10%, #1a263d 0%, transparent 55%),
    var(--bg);
}

.container {
  width: min(1600px, calc(100% - 4rem));
  margin: 0 auto;
}

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(10, 13, 20, 0.86);
  backdrop-filter: blur(8px);
}

.top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 1rem 0;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.2px;
  display: inline-flex;
  gap: 0.6rem;
  align-items: center;
}

.brand i { color: var(--brand); }

.header-nav {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-left: auto;
}

.btn {
  color: white;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0.65rem 1rem;
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  transition: transform 0.16s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.btn-ghost {
  background: rgba(28, 38, 60, 0.7);
  border-color: #43557c;
}

.btn-rulebook {
  background: linear-gradient(135deg, #2c80ce, #206da8);
  border-color: #4aa7ea;
  box-shadow: 0 10px 20px rgba(26, 87, 143, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.btn-rulebook:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.btn-main {
  background: linear-gradient(135deg, #1f6ea5, #2a92be);
}

.btn-main:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.btn-discord {
  background: linear-gradient(135deg, #1c2438, #1d2942);
  border-color: #5669b8;
  color: #eaf0ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  white-space: nowrap;
}

.btn-discord:hover {
  transform: translateY(-1px);
  filter: brightness(1.07);
}

.hero {
  padding: 5.4rem 0 3.2rem;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 1.8rem;
}

h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.1rem, 2.3vw, 3.8rem);
  line-height: 1.1;
}

.hero p {
  margin: 0;
  color: var(--muted);
  max-width: 72ch;
}

.chips {
  margin: 1.2rem 0 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.chip {
  background: rgba(23, 31, 51, 0.85);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.28rem 0.78rem;
  color: #c9d4f5;
  font-size: 0.95rem;
}

.panel {
  background: linear-gradient(160deg, #151e30, #101724);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.1rem;
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.35);
}

.panel h3 { margin: 0 0 0.6rem; }

.stat {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed #2b3653;
  padding: 0.6rem 0;
}

.stat:last-child { border-bottom: none; }

.status-ok { color: var(--brand-2); }

.section { padding: 0 0 3.4rem; }

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

.card {
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem;
}

.card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.08rem;
}

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

footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 1rem 0 1.5rem;
}

@media (max-width: 1200px) {
  .container { width: min(1200px, calc(100% - 2rem)); }
  body { font-size: 16px; }
}

@media (max-width: 900px) {
  .top-inner {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.7rem;
  }

  .header-nav {
    flex-wrap: wrap;
    margin-left: 0;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 3rem;
  }

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