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

:root {
  --bg: #05040a;
  --panel: rgba(13, 9, 26, .9);
  --panel-soft: rgba(21, 13, 39, .82);
  --border: rgba(181, 139, 255, .34);
  --text: #fff;
  --muted: #dedcff;
  --soft: #aaa4ca;
  --purple: #a78bfa;
  --purple-strong: #a855f7;
  --shadow: #15051d;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  background:
    linear-gradient(rgba(5, 4, 10, .88), rgba(5, 4, 10, .94)),
    url("textures/deepslate_tiles.png"),
    radial-gradient(circle at 50% 8%, rgba(168, 85, 247, .28), transparent 34rem),
    radial-gradient(circle at 18% 34%, rgba(96, 165, 250, .12), transparent 28rem),
    #05040a;
  background-size: auto, 64px 64px, auto, auto, auto;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  background:
    linear-gradient(rgba(167, 139, 250, .045) 2px, transparent 2px),
    linear-gradient(90deg, rgba(167, 139, 250, .045) 2px, transparent 2px);
  background-size: 48px 48px;
  content: "";
  inset: 0;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), transparent 78%);
  pointer-events: none;
  position: fixed;
  z-index: -3;
}

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

#particles {
  inset: 0;
  opacity: .78;
  position: fixed;
  z-index: -2;
}

.spotlight {
  background: radial-gradient(circle, rgba(168, 85, 247, .14), transparent 64%);
  filter: blur(42px);
  height: 520px;
  pointer-events: none;
  position: fixed;
  width: 520px;
  z-index: -1;
}

.scroll-progress {
  background: linear-gradient(90deg, var(--purple-strong), #67e8f9);
  height: 3px;
  left: 0;
  position: fixed;
  top: 0;
  width: 0;
  z-index: 20;
}

.nav {
  align-items: center;
  backdrop-filter: blur(16px);
  background: rgba(5, 4, 12, .84);
  border-bottom: 3px solid rgba(167, 139, 250, .22);
  display: flex;
  justify-content: space-between;
  left: 0;
  padding: 12px 7vw;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 10;
}

.brand {
  align-items: center;
  color: var(--text);
  display: inline-flex;
  font-family: "Arial Black", Impact, sans-serif;
  font-size: 15px;
  gap: 12px;
  letter-spacing: .8px;
  text-decoration: none;
  text-transform: uppercase;
}

.brand img,
.footer img {
  aspect-ratio: 1;
  height: 44px;
  width: 44px;
}

.links {
  display: flex;
  gap: 20px;
}

.links a,
.footer a,
.contact-grid a {
  color: #ddd6ff;
  font-weight: 800;
  text-decoration: none;
  transition: color .18s ease, transform .18s ease;
}

.links a:hover,
.footer a:hover,
.contact-grid a:hover {
  color: #fff;
  transform: translateY(-1px);
}

.hero {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 92vh;
  padding: 122px 7vw 54px;
  text-align: center;
}

.hero-copy {
  max-width: 950px;
}

.badge {
  background:
    linear-gradient(rgba(47, 24, 78, .88), rgba(32, 17, 55, .88)),
    url("textures/amethyst_block.png");
  background-size: auto, 48px 48px;
  border: 2px solid rgba(211, 167, 255, .42);
  border-radius: 6px;
  box-shadow: 4px 4px 0 var(--shadow);
  color: #c4b5fd;
  display: inline-flex;
  font-family: "Arial Black", Impact, sans-serif;
  font-size: 12px;
  letter-spacing: 1.2px;
  margin-bottom: 18px;
  padding: 8px 14px;
  text-transform: uppercase;
}

.hero-logo {
  filter: drop-shadow(0 0 30px rgba(168, 85, 247, .44));
  margin: 0 auto 24px;
  max-width: min(560px, 88vw);
  width: 100%;
}

h2,
h3,
.button,
.board-title,
.board-slots strong,
.member-info strong {
  font-family: "Arial Black", Impact, sans-serif;
}

h2 {
  color: #fff;
  font-size: clamp(32px, 4.6vw, 58px);
  line-height: 1.02;
  margin-bottom: 18px;
  text-shadow: 4px 4px 0 var(--shadow), 0 0 22px rgba(168, 85, 247, .22);
}

h3 {
  color: #fff;
  font-size: 21px;
  line-height: 1.15;
  margin-bottom: 10px;
  text-shadow: 2px 2px 0 var(--shadow);
}

p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.hero-copy p {
  font-size: 19px;
  margin: 0 auto;
  max-width: 730px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 30px;
}

.button {
  align-items: center;
  border-radius: 6px;
  display: inline-flex;
  justify-content: center;
  min-height: 50px;
  min-width: 142px;
  padding: 0 22px;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform .16s ease, box-shadow .16s ease;
}

.button:hover {
  box-shadow: 3px 3px 0 var(--shadow);
  transform: translate(3px, 3px);
}

.button.primary {
  background: linear-gradient(90deg, #7c3aed, var(--purple-strong));
  border: 2px solid #d8b4fe;
  box-shadow: 6px 6px 0 var(--shadow), 0 0 26px rgba(139, 92, 246, .28);
  color: #fff;
}

.button.secondary {
  background: rgba(255, 255, 255, .055);
  border: 2px solid var(--border);
  box-shadow: 6px 6px 0 var(--shadow);
  color: #fff;
}

.server-board {
  background:
    linear-gradient(rgba(14, 8, 26, .88), rgba(10, 6, 20, .9)),
    url("textures/deepslate_tiles.png");
  background-size: auto, 48px 48px;
  border: 2px solid var(--border);
  border-radius: 8px;
  box-shadow: 8px 8px 0 rgba(21, 5, 29, .92), inset 0 0 30px rgba(168, 85, 247, .12);
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
  margin: 0 7vw;
  padding: 18px;
  scroll-margin-top: 92px;
}

.board-title {
  align-items: center;
  background:
    linear-gradient(rgba(51, 25, 78, .82), rgba(22, 12, 39, .86)),
    url("textures/amethyst_block.png");
  background-size: auto, 64px 64px;
  border: 2px solid rgba(211, 167, 255, .32);
  border-radius: 6px;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  min-width: 0;
  padding: 16px 20px;
}

.board-title span,
.board-slots span,
.section-heading .badge,
.member-info span {
  color: var(--soft);
  display: block;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .9px;
  text-transform: uppercase;
}

.board-title strong {
  color: #fff;
  display: block;
  font-size: 26px;
  line-height: 1.08;
  margin-top: 0;
  text-align: right;
}

.board-slots {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.board-slots article {
  background:
    linear-gradient(rgba(22, 14, 35, .8), rgba(18, 11, 30, .84)),
    url("textures/cobblestone.png");
  background-size: auto, 48px 48px;
  border: 2px solid rgba(167, 139, 250, .2);
  border-radius: 6px;
  min-width: 0;
  padding: 14px;
}

.board-slots img {
  height: 40px;
  image-rendering: pixelated;
  margin-bottom: 12px;
  width: 40px;
}

.board-slots strong {
  color: #fff;
  display: block;
  font-size: 17px;
  line-height: 1.12;
  margin-top: 6px;
  overflow-wrap: normal;
  word-break: normal;
}

.section {
  padding: 94px 7vw;
  scroll-margin-top: 92px;
}

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

.section-heading p {
  margin: 0 auto;
  max-width: 720px;
}

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

.feature-card,
.rule-card,
.system-row,
.member-card,
.join-card {
  background:
    linear-gradient(rgba(16, 10, 31, .88), rgba(10, 7, 20, .9)),
    url("textures/deepslate_tiles.png");
  background-size: auto, 48px 48px;
  border: 2px solid var(--border);
  border-radius: 8px;
  box-shadow: 8px 8px 0 rgba(21, 5, 29, .92), inset 0 0 26px rgba(168, 85, 247, .1);
  position: relative;
}

.feature-card,
.rule-card {
  min-height: 196px;
  padding: 26px;
}

.feature-card::after,
.rule-card::after,
.member-card::after {
  background: url("textures/grass_block_side.png") top left / 64px 64px repeat-x;
  content: "";
  height: 8px;
  left: 0;
  opacity: .76;
  pointer-events: none;
  position: absolute;
  right: 0;
  top: 0;
}

.feature-card img {
  height: 42px;
  image-rendering: pixelated;
  margin-bottom: 22px;
  width: 42px;
}

.members {
  padding-top: 72px;
}

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

.member-card {
  align-items: center;
  display: flex;
  gap: 16px;
  min-width: 0;
  padding: 18px;
}

.member-head {
  aspect-ratio: 1;
  background: rgba(255, 255, 255, .055);
  border: 2px solid rgba(167, 139, 250, .28);
  border-radius: 5px;
  flex: 0 0 72px;
  height: 72px;
  image-rendering: pixelated;
  object-fit: contain;
  padding: 5px;
  width: 72px;
}

.member-info {
  min-width: 0;
  position: relative;
  z-index: 1;
}

.member-info strong {
  color: #fff;
  display: block;
  font-size: 18px;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-info span {
  margin-top: 5px;
}

.systems {
  background: linear-gradient(180deg, transparent, rgba(20, 15, 47, .38), transparent);
}

.system-list {
  display: grid;
  gap: 14px;
  margin: 0 auto;
  max-width: 980px;
}

.system-row {
  align-items: center;
  display: grid;
  gap: 20px;
  grid-template-columns: 62px 1fr;
  padding: 20px;
}

.system-icon {
  align-items: center;
  aspect-ratio: 1;
  background:
    linear-gradient(rgba(36, 18, 60, .8), rgba(12, 8, 28, .86)),
    url("textures/amethyst_block.png");
  background-size: auto, 48px 48px;
  border: 2px solid rgba(167, 139, 250, .38);
  border-radius: 6px;
  display: flex;
  justify-content: center;
  padding: 9px;
  width: 62px;
}

.board-slots article:nth-child(4) {
  background:
    linear-gradient(rgba(46, 35, 62, .74), rgba(24, 18, 34, .84)),
    url("textures/cobblestone.png");
  background-size: auto, 48px 48px;
}

.system-icon img {
  height: 100%;
  image-rendering: pixelated;
  width: 100%;
}

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

.join {
  padding-bottom: 112px;
}

.join-card {
  margin: 0 auto;
  max-width: 920px;
  overflow: hidden;
  padding: 46px;
  text-align: center;
}

.join-card p {
  margin: 0 auto;
  max-width: 660px;
}

.contact-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 28px;
}

.contact-grid a {
  background:
    linear-gradient(rgba(22, 14, 35, .72), rgba(18, 11, 30, .78)),
    url("textures/cobblestone.png");
  background-size: auto, 48px 48px;
  border: 2px solid rgba(167, 139, 250, .22);
  border-radius: 6px;
  box-shadow: 5px 5px 0 rgba(21, 5, 29, .86);
  min-width: 0;
  overflow-wrap: anywhere;
  padding: 16px;
}

.footer {
  align-items: center;
  background: rgba(5, 4, 10, .94);
  border-top: 2px solid rgba(167, 139, 250, .18);
  display: flex;
  justify-content: space-between;
  padding: 30px 7vw;
}

.footer-brand {
  align-items: center;
  display: flex;
  gap: 14px;
}

.footer strong {
  color: #fff;
  display: block;
  font-family: "Arial Black", Impact, sans-serif;
  font-size: 17px;
}

.footer span {
  color: var(--soft);
  display: block;
  font-size: 14px;
  margin-top: 3px;
}

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .62s ease, transform .62s cubic-bezier(.16, 1, .3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1060px) {
  .server-board {
    grid-template-columns: 1fr;
  }

  .board-slots,
  .member-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .nav {
    align-items: flex-start;
    gap: 12px;
    padding: 12px 18px;
  }

  .links {
    gap: 14px;
    max-width: 58vw;
    overflow-x: auto;
    padding: 9px 0;
    white-space: nowrap;
  }

  .links::-webkit-scrollbar {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 112px 20px 44px;
  }

  .hero-logo {
    max-width: min(440px, 88vw);
  }

  .server-board {
    margin-left: 20px;
    margin-right: 20px;
  }

  .section {
    padding-left: 20px;
    padding-right: 20px;
  }

  .feature-grid,
  .rule-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .nav {
    flex-direction: column;
  }

  .links {
    max-width: 100%;
  }

  .hero-logo {
    max-width: min(330px, 88vw);
  }

  .hero-actions,
  .button,
  .board-slots,
  .member-grid {
    grid-template-columns: 1fr;
    width: 100%;
  }

  h2 {
    font-size: 34px;
  }

  .system-row {
    align-items: flex-start;
    grid-template-columns: 56px 1fr;
    padding: 18px;
  }

  .system-icon {
    width: 56px;
  }

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

  .member-head {
    height: 86px;
    width: 86px;
  }

  .join-card {
    padding: 28px 20px;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }
}
