@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800;900&display=swap');

:root {
  --bg: #090a14;
  --bg2: #111327;
  --card: rgba(22, 24, 45, 0.82);
  --card2: rgba(34, 28, 62, 0.82);
  --text: #f6f3ff;
  --muted: #bdb5cf;
  --purple: #9b4dff;
  --purple2: #6f35ff;
  --blue: #4776ff;
  --red: #ef4444;
  --green: #22c55e;
  --yellow: #eab308;
  --border: rgba(255,255,255,0.12);
  --border2: rgba(155, 77, 255, 0.35);
  --shadow: 0 24px 70px rgba(0,0,0,0.34);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 10%, rgba(155,77,255,.25), transparent 35%),
    radial-gradient(circle at 85% 15%, rgba(71,118,255,.18), transparent 35%),
    linear-gradient(180deg, #0a0614 0%, #090a14 45%, #080912 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 90%);
}

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

button {
  font-family: inherit;
}

.container {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

/* HEADER */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  padding: 14px 0;
  background: rgba(9, 10, 20, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  box-shadow: 0 0 24px rgba(155,77,255,.35);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  flex-wrap: wrap;
}

.nav a {
  padding: 10px 12px;
  color: var(--muted);
  border-radius: 10px;
  font-size: .9rem;
  font-weight: 700;
  transition: .18s ease;
}

.nav a:hover {
  color: white;
  background: rgba(155,77,255,.16);
}

.menu-btn {
  display: none;
  color: white;
  background: rgba(255,255,255,.08);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 1.5rem;
  cursor: pointer;
}

/* GENERAL */
.section {
  padding: 112px 0;
}

.dark {
  background: rgba(6, 7, 16, 0.38);
  border-top: 1px solid rgba(255,255,255,.04);
  border-bottom: 1px solid rgba(255,255,255,.04);
}

.eyebrow {
  color: #c69dff;
  font-size: .82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .14em;
  margin-bottom: 12px;
}

h1 {
  font-size: clamp(3.5rem, 9vw, 7.5rem);
  line-height: .92;
  letter-spacing: -5px;
  font-weight: 900;
  background: linear-gradient(180deg, #ffffff 10%, #b983ff 88%);
  -webkit-background-clip: text;
  color: transparent;
}

h2 {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -2px;
  margin-bottom: 18px;
}

h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

p {
  color: var(--muted);
  line-height: 1.7;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 46px;
  text-align: center;
}

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 130px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 420px;
  align-items: center;
  gap: 42px;
}

.hero-content {
  max-width: 760px;
}

.hero-subtitle {
  margin: 22px 0 6px;
  font-size: clamp(1.3rem, 3vw, 2rem);
  color: white;
  font-weight: 800;
}

.hero-text {
  max-width: 670px;
  font-size: 1.08rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 50px;
  padding: 0 22px;
  border: 0;
  border-radius: 13px;
  font-weight: 900;
  cursor: pointer;
  transition: .2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.primary {
  color: white;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  box-shadow: 0 16px 36px rgba(155,77,255,.28);
}

.secondary {
  color: white;
  background: rgba(255,255,255,.08);
  border: 1px solid var(--border);
}

.ghost {
  color: white;
  background: transparent;
  border: 1px solid var(--border2);
}

.full {
  width: 100%;
  margin-top: 20px;
}

.hero-card {
  width: 100%;
  background: linear-gradient(180deg, rgba(36,30,66,.88), rgba(18,20,39,.88));
  border: 1px solid var(--border2);
  border-radius: 28px;
  padding: 30px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.server-badge {
  width: 96px;
  height: 96px;
  margin-bottom: 24px;
  border-radius: 25px;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 1.4rem;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  box-shadow: 0 0 34px rgba(155,77,255,.35);
}

.hero-card h2 {
  font-size: 2rem;
  letter-spacing: -1px;
}

.server-stat {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.server-stat span {
  color: var(--muted);
  font-weight: 700;
}

.server-stat strong {
  text-align: right;
}

.join-link {
  display: block;
  margin-top: 22px;
  padding: 15px;
  border-radius: 14px;
  text-align: center;
  color: white;
  font-weight: 900;
  background: rgba(155,77,255,.14);
  border: 1px solid var(--border2);
}

/* CARDS */
.card-grid {
  display: grid;
  gap: 22px;
}

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

.card-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card,
.dept-card,
.link-card,
.region-card,
.staff-card,
.news-list article,
.support-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 26px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.card span {
  display: block;
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.card,
.dept-card,
.link-card,
.staff-card {
  transition: .2s ease;
}

.card:hover,
.dept-card:hover,
.link-card:hover,
.staff-card:hover {
  transform: translateY(-4px);
  border-color: var(--border2);
}

/* DEPARTMENTS */
.filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.filter {
  padding: 12px 18px;
  color: white;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
}

.filter.active {
  background: linear-gradient(135deg, var(--purple), var(--blue));
  border-color: transparent;
}

.status {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 900;
}

.status.open {
  color: #86efac;
  background: rgba(34,197,94,.14);
}

.status.limited {
  color: #fde68a;
  background: rgba(234,179,8,.15);
}

.status.closed {
  color: #fca5a5;
  background: rgba(239,68,68,.14);
}

.dept-card small {
  display: block;
  margin-top: 18px;
  color: var(--muted);
}

/* APPLICATIONS */
.link-card {
  min-height: 190px;
}

.link-card h3 {
  color: white;
}

/* MAP */
.map-grid {
  display: grid;
  grid-template-columns: 1.4fr .8fr;
  gap: 24px;
  align-items: stretch;
}

.map-box {
  min-height: 420px;
  display: grid;
  place-content: center;
  text-align: center;
  background: rgba(13,15,29,.78);
  border: 2px dashed var(--border2);
  border-radius: 24px;
  padding: 28px;
}

.map-box span {
  font-size: 4rem;
  margin-bottom: 12px;
}

.region-card p {
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
}

/* MEDIA */
.media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.media-grid div {
  min-height: 220px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  color: var(--muted);
  font-weight: 900;
  background: linear-gradient(135deg, rgba(155,77,255,.2), rgba(71,118,255,.1)), var(--card);
  border: 1px solid var(--border);
}

/* NEWS */
.news-list {
  display: grid;
  gap: 18px;
  max-width: 950px;
  margin: 0 auto;
}

.news-list span {
  display: inline-flex;
  margin-bottom: 8px;
  color: #c69dff;
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .12em;
}

/* RULES */
.accordion {
  max-width: 900px;
  margin: 0 auto;
}

.accordion-btn {
  width: 100%;
  margin-top: 14px;
  padding: 20px;
  color: white;
  text-align: left;
  font-size: 1rem;
  font-weight: 900;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  cursor: pointer;
}

.accordion-body {
  display: none;
  padding: 18px 22px;
  color: var(--muted);
  line-height: 1.7;
}

.accordion-body.open {
  display: block;
}

/* STAFF */
.staff-card {
  text-align: center;
}

.staff-card div {
  width: 76px;
  height: 76px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 900;
  background: linear-gradient(135deg, var(--purple), var(--blue));
}

/* SUPPORT */
.support-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  background: linear-gradient(135deg, rgba(155,77,255,.2), rgba(71,118,255,.12)), var(--card);
}

.support-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* FOOTER */
footer {
  padding: 32px 16px;
  text-align: center;
  color: var(--muted);
  background: rgba(0,0,0,.24);
  border-top: 1px solid var(--border);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  padding: 13px 18px;
  border-radius: 14px;
  background: rgba(16,18,34,.94);
  border: 1px solid var(--border2);
  color: white;
  font-weight: 800;
  transition: .2s ease;
  z-index: 1000;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* RESPONSIVE */
@media (max-width: 1050px) {
  .hero-grid,
  .map-grid {
    grid-template-columns: 1fr;
  }

  .hero-card {
    max-width: 560px;
  }

  .card-grid.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav {
    gap: 2px;
  }

  .nav a {
    padding: 9px 8px;
    font-size: .82rem;
  }
}

@media (max-width: 780px) {
  .header {
    padding: 10px 0;
  }

  .menu-btn {
    display: block;
  }

  .nav {
    position: absolute;
    top: 72px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    background: rgba(11,12,25,.96);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    width: 100%;
    padding: 14px;
  }

  .section {
    padding: 88px 0;
  }

  .hero {
    padding-top: 105px;
    text-align: center;
  }

  .hero-content {
    margin: 0 auto;
  }

  h1 {
    letter-spacing: -3px;
  }

  .hero-buttons,
  .support-actions {
    justify-content: center;
  }

  .card-grid.three,
  .card-grid.four,
  .media-grid {
    grid-template-columns: 1fr;
  }

  .support-box {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 460px) {
  .container,
  .nav-wrap {
    width: calc(100% - 24px);
  }

  h1 {
    font-size: 3.2rem;
    letter-spacing: -2px;
  }

  h2 {
    font-size: 2.15rem;
  }

  .btn {
    width: 100%;
  }

  .hero-card {
    padding: 22px;
  }
}
