:root {
  --bg: #05030a;
  --text: #f8f3ff;
  --muted: #c2b6d6;
  --dim: #8d7ea2;
  --line: rgba(218, 194, 255, 0.2);
  --purple: #ad72ff;
  --purple-2: #7338ff;
  --acid: #b7ff67;
  --ice: #8eeaff;
  --red: #ff5f83;
  --panel: rgba(24, 14, 39, 0.78);
  --radius: 26px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  background:
    radial-gradient(circle at 78% 10%, rgba(173, 114, 255, 0.3), transparent 30%),
    radial-gradient(circle at 12% 24%, rgba(142, 234, 255, 0.11), transparent 28%),
    linear-gradient(150deg, #05030a 0%, #0f071a 48%, #1a092d 100%);
  letter-spacing: 0;
  overflow-x: hidden;
}

main {
  flex: 1;
}

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

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

button {
  font: inherit;
}

.page-enter {
  animation: pageIn 0.9s ease both;
}

.reveal {
  animation: revealUp 0.9s ease both;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 16px clamp(14px, 4vw, 44px) 0;
  padding: 14px clamp(16px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(7, 4, 13, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.32);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 22px;
  font-weight: 700;
}

.logo img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.menu a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  transition: 0.22s ease;
}

.menu a:hover {
  color: var(--text);
  background: rgba(173, 114, 255, 0.18);
}

.cover {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  align-items: center;
  gap: clamp(34px, 7vw, 96px);
  min-height: calc(100vh - 96px);
  padding: clamp(64px, 8vw, 116px) clamp(18px, 6vw, 90px) 70px;
}

.cover__copy {
  max-width: 900px;
}

.kicker {
  margin: 0 0 14px;
  color: var(--ice);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 24px;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(74px, 14vw, 176px);
  line-height: 0.82;
  text-transform: uppercase;
  text-shadow: 0 0 56px rgba(173, 114, 255, 0.46);
}

h1::after {
  display: block;
  width: min(520px, 72vw);
  height: 8px;
  margin-top: 26px;
  border-radius: 999px;
  content: "";
  background: linear-gradient(90deg, var(--purple), var(--ice), transparent);
}

h2 {
  margin-bottom: 18px;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(34px, 5vw, 74px);
  line-height: 0.98;
}

h3 {
  margin-bottom: 12px;
  font-size: 25px;
}

.subtitle {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(19px, 2.1vw, 27px);
  line-height: 1.5;
}

.join {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

.join__ip,
.join__discord,
.discord a,
.donate-grid a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  border-radius: 18px;
  font-weight: 900;
}

.join__ip {
  flex-direction: column;
  align-items: flex-start;
  min-width: min(100%, 320px);
  padding: 13px 20px;
  border: 1px solid rgba(183, 255, 103, 0.42);
  color: var(--text);
  cursor: pointer;
  background: linear-gradient(135deg, rgba(183, 255, 103, 0.15), rgba(173, 114, 255, 0.09));
  box-shadow: inset 0 0 30px rgba(183, 255, 103, 0.04);
}

.join__ip span {
  color: var(--acid);
  font-size: 12px;
  text-transform: uppercase;
}

.join__ip strong {
  margin-top: 4px;
  word-break: break-word;
}

.join__discord,
.discord a,
.donate-grid a {
  padding: 0 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(135deg, var(--purple), var(--purple-2));
  box-shadow: 0 18px 44px rgba(115, 56, 255, 0.32);
  transition: 0.22s ease;
}

.join__discord:hover,
.discord a:hover,
.donate-grid a:hover,
.join__ip:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 58px rgba(115, 56, 255, 0.42);
}

.emblem {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 480px;
}

.emblem__ring {
  position: absolute;
  width: min(100%, 420px);
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 34px;
  transform: rotate(45deg);
  background:
    linear-gradient(135deg, rgba(173, 114, 255, 0.22), rgba(142, 234, 255, 0.06)),
    rgba(255, 255, 255, 0.025);
  box-shadow: inset 0 0 90px rgba(173, 114, 255, 0.14);
  animation: slowFloat 5s ease-in-out infinite;
}

.emblem img {
  position: relative;
  width: min(72%, 320px);
  filter: drop-shadow(0 0 42px rgba(173, 114, 255, 0.56));
}

.emblem p {
  position: absolute;
  bottom: 28px;
  margin: 0;
  color: var(--acid);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.section {
  padding: clamp(64px, 9vw, 124px) clamp(18px, 6vw, 90px);
}

.section__title {
  max-width: 820px;
}

.concept,
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(28px, 6vw, 86px);
  align-items: start;
}

.concept__text,
.text-panel {
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(173, 114, 255, 0.12), rgba(142, 234, 255, 0.04)),
    var(--panel);
}

.concept__text p,
.cards p,
.team p,
.discord p,
.footer p,
.faq-list p,
.donate-grid p,
.text-panel p {
  color: var(--muted);
  line-height: 1.75;
}

.cards,
.server-widgets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding-top: 0;
}

.cards article,
.team__grid article,
.faq-list article,
.donate-grid article {
  min-height: 310px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(173, 114, 255, 0.12), rgba(255, 255, 255, 0.02)),
    rgba(13, 7, 21, 0.9);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.22);
}

.cards span,
.team__grid span,
.donate-grid span {
  display: block;
  margin-bottom: 10px;
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.cards h3 {
  margin-top: 68px;
}

.server-card {
  min-height: 300px;
  padding: 26px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--purple);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(173, 114, 255, 0.15), rgba(142, 234, 255, 0.035)),
    rgba(16, 9, 27, 0.92);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.24);
}

.server-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.server-card__head h3 {
  margin-bottom: 6px;
  font-size: clamp(20px, 2vw, 26px);
}

.server-card__head span {
  color: var(--dim);
  font-size: 13px;
  font-weight: 800;
}

.server-status {
  position: relative;
  padding-left: 16px;
  color: var(--acid);
  font-size: 12px;
  text-transform: uppercase;
}

.server-status::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  content: "";
  transform: translateY(-50%);
  background: var(--acid);
  box-shadow: 0 0 16px rgba(183, 255, 103, 0.7);
}

.server-status--soon {
  color: var(--ice);
}

.server-status--soon::before {
  background: var(--ice);
  box-shadow: 0 0 16px rgba(142, 234, 255, 0.7);
}

.server-card dl {
  display: grid;
  gap: 12px;
  margin: 20px 0;
}

.server-card dl div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(218, 194, 255, 0.12);
}

.server-card dt {
  color: var(--dim);
  font-size: 13px;
  font-weight: 800;
}

.server-card dd {
  margin: 0;
  padding: 8px 10px;
  border: 1px dashed rgba(218, 194, 255, 0.2);
  border-radius: 10px;
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
  text-align: right;
  background: rgba(0, 0, 0, 0.2);
}

.server-progress {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
}

.server-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--purple), var(--ice));
}

.server-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

.server-copy,
.server-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  color: var(--text);
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
  background: linear-gradient(135deg, rgba(173, 114, 255, 0.9), rgba(115, 56, 255, 0.9));
  transition: 0.22s ease;
}

.server-more {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(173, 114, 255, 0.08)),
    rgba(255, 255, 255, 0.035);
}

.server-copy:hover,
.server-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(115, 56, 255, 0.32);
}

.server-more.is-open {
  border-color: rgba(183, 255, 103, 0.38);
  color: var(--acid);
}

.player-list {
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid rgba(218, 194, 255, 0.16);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.16);
  animation: playerListIn 0.26s ease both;
}

.player-list table {
  width: 100%;
  border-collapse: collapse;
}

.player-list th,
.player-list td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(218, 194, 255, 0.1);
  text-align: left;
  font-size: 13px;
}

.player-list tr:last-child td {
  border-bottom: 0;
}

.player-list th {
  color: var(--ice);
  font-weight: 900;
  text-transform: uppercase;
}

.player-list td {
  color: var(--muted);
  font-weight: 700;
}

.team {
  background: linear-gradient(180deg, rgba(173, 114, 255, 0.08), transparent);
}

.team__grid,
.donate-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 36px;
}

.team__grid article {
  min-height: 230px;
}

.team__grid span {
  color: var(--ice);
}

.discord {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin: clamp(24px, 4vw, 54px) clamp(18px, 6vw, 90px);
  padding: clamp(38px, 6vw, 72px);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 8px);
  background:
    linear-gradient(120deg, rgba(173, 114, 255, 0.28), rgba(142, 234, 255, 0.09)),
    #0d0715;
}

.discord div {
  max-width: 760px;
}

.discord-widgets {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.discord-widgets span {
  padding: 10px 14px;
  border: 1px solid rgba(218, 194, 255, 0.18);
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.045);
}

.discord .discord-button {
  min-width: 170px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 6vw, 90px);
  background: rgba(3, 2, 5, 0.86);
}

.footer p {
  margin: 0;
  font-size: 14px;
}

.subpage {
  padding: clamp(58px, 8vw, 100px) clamp(18px, 6vw, 90px) clamp(70px, 8vw, 110px);
}

.subpage--center {
  display: grid;
  place-items: center start;
  min-height: calc(100vh - 184px);
}

.subhero {
  max-width: 980px;
  margin-bottom: clamp(40px, 6vw, 78px);
}

.subhero h1 {
  font-size: clamp(64px, 12vw, 150px);
}

.subhero--compact {
  max-width: 820px;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.subhero--compact h1 {
  font-size: clamp(48px, 8vw, 92px);
}

.subhero--compact .subtitle {
  font-size: clamp(17px, 1.6vw, 22px);
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 980px;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(173, 114, 255, 0.1), rgba(255, 255, 255, 0.018)),
    rgba(13, 7, 21, 0.86);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.16);
  overflow: hidden;
  transform-origin: top;
  transition: border-color 0.24s ease, box-shadow 0.24s ease, background 0.24s ease, transform 0.24s ease;
  animation: faqItemIn 0.55s ease both;
}

.faq-list details:nth-child(2) {
  animation-delay: 0.04s;
}

.faq-list details:nth-child(3) {
  animation-delay: 0.08s;
}

.faq-list details:nth-child(4) {
  animation-delay: 0.12s;
}

.faq-list details:nth-child(5) {
  animation-delay: 0.16s;
}

.faq-list details:nth-child(6) {
  animation-delay: 0.2s;
}

.faq-list details:hover,
.faq-list details[open] {
  border-color: rgba(173, 114, 255, 0.48);
  background:
    linear-gradient(145deg, rgba(173, 114, 255, 0.17), rgba(142, 234, 255, 0.05)),
    rgba(13, 7, 21, 0.9);
}

.faq-list details:hover {
  transform: translateY(-2px);
}

.faq-list summary {
  position: relative;
  display: block;
  padding: 20px 58px 20px 22px;
  cursor: pointer;
  color: var(--text);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 900;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  position: absolute;
  top: 50%;
  right: 22px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(218, 194, 255, 0.22);
  border-radius: 999px;
  color: var(--ice);
  content: "+";
  transform: translateY(-50%);
  background: rgba(173, 114, 255, 0.12);
  transition: transform 0.24s ease, color 0.24s ease, background 0.24s ease;
}

.faq-list details[open] summary::after {
  content: "-";
  color: var(--acid);
  transform: translateY(-50%) rotate(180deg);
  background: rgba(183, 255, 103, 0.12);
}

.faq-answer {
  overflow: hidden;
  transition: height 0.26s ease;
}

.faq-list details:not([open]) .faq-answer {
  height: 0;
}

.faq-list details p {
  max-width: 760px;
  margin: 0;
  padding: 0 22px 22px;
}

.faq-list details[open] p {
  animation: faqTextIn 0.28s ease both;
}

.donate-grid {
  margin-top: 0;
}

.donate-grid article {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.donate-grid a {
  margin-top: auto;
}

.empty-state {
  min-height: 58vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.empty-state--donate {
  width: min(860px, 100%);
  min-height: auto;
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 8px);
  background:
    linear-gradient(135deg, rgba(173, 114, 255, 0.18), rgba(142, 234, 255, 0.06)),
    rgba(13, 7, 21, 0.82);
  box-shadow: 0 24px 74px rgba(0, 0, 0, 0.26);
}

.empty-state--donate h1 {
  max-width: 760px;
  font-size: clamp(48px, 8vw, 102px);
}

.empty-state--donate .subtitle {
  max-width: 680px;
  font-size: clamp(17px, 1.6vw, 22px);
}

.empty-state .join__discord {
  margin-top: 18px;
}

.worm {
  margin: 18px 0 8px;
  padding: 16px 22px;
  border: 1px solid rgba(183, 255, 103, 0.32);
  border-radius: 999px;
  color: var(--acid);
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(28px, 6vw, 70px);
  font-weight: 700;
  letter-spacing: 0;
  background: linear-gradient(135deg, rgba(183, 255, 103, 0.1), rgba(173, 114, 255, 0.08));
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.24);
}

@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slowFloat {
  0%,
  100% {
    transform: rotate(45deg) translateY(0);
  }

  50% {
    transform: rotate(45deg) translateY(-12px);
  }
}

@keyframes faqOpen {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes faqTextIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes faqItemIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes playerListIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

@media (max-width: 960px) {
  .topbar {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    border-radius: 28px;
  }

  .menu {
    justify-content: flex-start;
  }

  .cover,
  .concept,
  .split {
    grid-template-columns: 1fr;
  }

  .emblem {
    min-height: 360px;
  }

  .cards,
  .server-widgets,
  .team__grid,
  .donate-grid {
    grid-template-columns: 1fr;
  }

  .discord {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .cover {
    padding-top: 46px;
  }

  h1 {
    font-size: 58px;
  }

  .join,
  .join__ip,
  .join__discord,
  .discord a,
  .donate-grid a {
    width: 100%;
  }

  .server-actions {
    grid-template-columns: 1fr;
  }

  .cards article,
  .team__grid article,
  .donate-grid article {
    min-height: auto;
    padding: 24px;
  }

  .faq-list summary {
    padding: 18px 54px 18px 18px;
  }

  .faq-list details p {
    padding: 0 18px 18px;
  }

  .cards h3 {
    margin-top: 44px;
  }

  .footer {
    flex-direction: column;
  }
}
