:root {
  --bg: #1d2422;
  --bg-dark: #151a19;
  --panel: #181d1f;
  --panel-2: #202728;
  --text: #f4f7f5;
  --muted: #aab3af;
  --line: rgba(255, 255, 255, 0.08);
  --green: #42d596;
  --green-dark: #2b9c73;
  --gold: #f0c85a;
  --blue: #35b8e8;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
  --wrap: 1320px;
  --header: 72px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

button {
  font: inherit;
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

.wrap {
  width: min(var(--wrap), calc(100% - 64px));
  margin: 0 auto;
}

.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.skip-link:focus {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 300;
  padding: 10px 12px;
  background: var(--green);
  color: #07100d;
  font-weight: 800;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  min-height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  background: rgba(21, 26, 25, 0.36);
  backdrop-filter: blur(14px);
  transition: background 180ms var(--ease), box-shadow 180ms var(--ease);
}

.site-header.is-scrolled {
  background: rgba(21, 26, 25, 0.92);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 800;
}

.brand img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.brand strong {
  line-height: 1;
}

.main-nav,
.mobile-nav {
  align-items: center;
  gap: 24px;
}

.main-nav {
  display: flex;
}

.mobile-nav {
  display: none;
}

.main-nav a,
.mobile-nav a {
  color: rgba(244, 247, 245, 0.72);
  font-size: 16px;
  font-weight: 700;
  transition: color 160ms var(--ease);
}

.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a.is-active,
.mobile-nav a:hover,
.mobile-nav a:focus-visible,
.mobile-nav a.is-active {
  color: var(--text);
  outline: none;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 6px auto;
  background: var(--text);
  transition: transform 180ms var(--ease);
}

.menu-toggle.is-open span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.menu-toggle.is-open span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 520px;
  display: grid;
  align-items: center;
  padding: 110px 0 180px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(29, 36, 34, 0.22), var(--bg) 96%),
    linear-gradient(90deg, rgba(66, 213, 150, 0.22), rgba(21, 26, 25, 0.72)),
    radial-gradient(circle at 50% 18%, rgba(66, 213, 150, 0.2), transparent 32%);
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.28;
  background:
    linear-gradient(90deg, transparent 0 9%, rgba(255,255,255,.14) 9.2% 9.35%, transparent 9.55% 100%),
    linear-gradient(180deg, transparent 0 18%, rgba(255,255,255,.1) 18.2% 18.35%, transparent 18.55% 100%);
  background-size: 160px 160px;
}

.hero-inner {
  display: grid;
  justify-items: center;
  text-align: center;
}

.hero-logo {
  width: min(128px, 36vw);
  margin-bottom: 28px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 860px;
  margin-bottom: 14px;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero-lead {
  max-width: 760px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 20px;
}

.hero-actions,
.server-links,
.community-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 0;
  border-radius: 4px;
  color: var(--text);
  font-weight: 800;
  transition: transform 160ms var(--ease), filter 160ms var(--ease), background 160ms var(--ease);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.button.primary {
  background: var(--green);
  color: #07120d;
}

.button.secondary {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
}

.button.big {
  min-height: 56px;
  padding: 0 28px;
  font-size: 18px;
}

.servers {
  margin-top: -110px;
  padding-bottom: 86px;
}

.server-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.server-card {
  min-height: 420px;
  padding: 28px;
  border-radius: 4px;
  background: #171b1f;
  box-shadow: var(--shadow);
}

.server-card.accent .graph span {
  background: linear-gradient(90deg, transparent, rgba(240, 200, 90, .82), transparent);
}

.server-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.server-top h2 {
  margin: 0;
  font-size: 22px;
}

.badge {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(66, 213, 150, .14);
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}

.badge.gold {
  background: rgba(240, 200, 90, .14);
  color: var(--gold);
}

.server-emblem {
  display: grid;
  place-items: center;
  min-height: 120px;
}

.server-emblem img {
  width: 118px;
  height: 118px;
  object-fit: contain;
}

.player-count {
  display: grid;
  justify-items: center;
  margin: 12px 0 18px;
}

.player-count strong {
  font-size: 34px;
  line-height: 1;
}

.player-count span {
  color: var(--muted);
}

.graph {
  position: relative;
  height: 76px;
  margin: 18px 0 24px;
  overflow: hidden;
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(66, 213, 150, .2), transparent);
}

.graph span {
  position: absolute;
  left: 0;
  right: 0;
  top: 38px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(66, 213, 150, .9), transparent);
  transform: skewY(-8deg);
}

.server-links {
  justify-content: space-around;
}

.server-links a,
.community-links a {
  color: var(--muted);
  font-weight: 800;
}

.server-links a:hover,
.community-links a:hover {
  color: var(--text);
}

.section {
  padding: 92px 0;
}

.muted {
  background: var(--bg-dark);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(320px, .7fr);
  gap: 58px;
  align-items: center;
}

.eyebrow {
  display: block;
  margin-bottom: 10px;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.section-copy h2,
.section-head h2,
.join-panel h2,
.community-box h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 3.6vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.section-copy p,
.community-box p {
  color: var(--muted);
  font-size: 18px;
}

.info-list {
  display: grid;
  gap: 12px;
}

.info-list div {
  display: grid;
  gap: 4px;
  padding: 18px;
  border-radius: 4px;
  background: var(--panel);
}

.info-list span,
.feature p {
  color: var(--muted);
}

.section-head {
  max-width: 720px;
  margin-bottom: 28px;
}

.feature-grid,
.role-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature,
.role {
  min-height: 170px;
  padding: 22px;
  border-radius: 4px;
  background: var(--panel);
}

.feature h3,
.role h3 {
  margin-bottom: 10px;
  font-size: 22px;
}

.role span {
  color: var(--green);
  font-weight: 900;
}

.join-panel {
  display: grid;
  grid-template-columns: minmax(220px, .55fr) minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  padding: 32px;
  border-radius: 4px;
  background: var(--panel);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.steps li {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 4px;
  background: var(--panel-2);
}

.steps strong {
  color: var(--green);
}

.community-box {
  display: grid;
  justify-items: center;
  text-align: center;
  padding: 52px 28px;
  border-radius: 4px;
  background: var(--panel);
}

.community-box img {
  width: min(128px, 42vw);
  margin-bottom: 22px;
}

.community-links {
  margin-top: 12px;
}

.error-page {
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: 92px 0;
}

.error-code {
  margin: 0 0 18px;
  font-size: clamp(58px, 14vw, 132px);
  line-height: 0.9;
}

.site-footer {
  padding: 28px 0;
  color: var(--muted);
  background: var(--bg-dark);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

::selection {
  background: rgba(66, 213, 150, .32);
}
