:root {
  --bg: #090d1a;
  --bg-soft: #121935;
  --panel: rgba(22, 26, 48, 0.82);
  --panel-strong: #1a2242;
  --card: #10172d;
  --line: rgba(167, 139, 250, 0.18);
  --text: #eef2ff;
  --muted: #b5bddb;
  --primary: #8b5cf6;
  --primary-strong: #7c3aed;
  --secondary: #4f7cff;
  --accent: #d8b4fe;
  --shadow: 0 30px 80px rgba(8, 11, 23, 0.6);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background:
    radial-gradient(circle at top, rgba(139, 92, 246, 0.22), transparent 26%),
    radial-gradient(circle at 82% 16%, rgba(79, 124, 255, 0.18), transparent 24%),
    linear-gradient(180deg, #090d1a 0%, #101a30 42%, #0a1020 100%);
  color: var(--text);
  overflow-x: hidden;
  position: relative;
}

body::before,
body::after {
  content: "";
  display: none;
}

#bg-particles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
  pointer-events: none;
  opacity: 0.9;
}

.topbar,
main {
  position: relative;
  z-index: 1;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  background: rgba(10, 14, 28, 0.7);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.7rem;
  background: linear-gradient(135deg, var(--primary), #a78bfa);
  color: #f5f3ff;
  font-family: "Orbitron", sans-serif;
  box-shadow: 0 12px 28px rgba(139, 92, 246, 0.4);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  color: var(--muted);
  font-size: 0.96rem;
}

.nav-links a {
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 0.9rem 1.5rem;
  border-radius: 14px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 0 26px rgba(139, 92, 246, 0.5);
}

.btn-primary {
  color: #f7f3ff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.14),
    0 0 20px rgba(168, 85, 247, 0.8),
    0 0 38px rgba(79, 124, 255, 0.6),
    0 18px 44px rgba(79, 70, 229, 0.42);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: -30% auto -30% -30%;
  width: 45%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
  transform: rotate(20deg);
  animation: shine 2.8s linear infinite;
}

.btn-secondary {
  border: 1px solid rgba(167, 139, 250, 0.2);
  background: rgba(12, 18, 37, 0.7);
  color: var(--text);
  box-shadow: 0 0 16px rgba(79, 124, 255, 0.12);
}

.hero {
  padding: 4.5rem 0 3rem;
  position: relative;
  isolation: isolate;
}

.lore-banner {
  position: relative;
  z-index: 1;
}

.lore-shell {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
  align-items: stretch;
}

.lore-copy,
.rules-panel {
  border-radius: 28px;
  padding: 2rem;
}

.lore-copy {
  position: relative;
  overflow: hidden;
}

.lore-copy::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.12), rgba(79, 124, 255, 0.04), transparent);
  pointer-events: none;
}

.lore-copy::after {
  content: "";
  position: absolute;
  right: -18%;
  top: -20%;
  width: 50%;
  height: 140%;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.18), rgba(96, 165, 250, 0.08), transparent);
  border: 1px solid rgba(216, 180, 254, 0.2);
  border-radius: 999px;
  transform: rotate(18deg);
  box-shadow: 0 0 32px rgba(168, 85, 247, 0.22);
}

.lore-copy h2 {
  margin-bottom: 1rem;
}

.lore-copy blockquote {
  margin: 1.5rem 0 0;
  padding-left: 1rem;
  border-left: 2px solid rgba(167, 139, 250, 0.9);
  color: #e7d9ff;
  font-size: 1.1rem;
  font-weight: 600;
}

.rules-panel ul {
  list-style: none;
  margin: 1.2rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.rules-panel li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--text);
  line-height: 1.6;
}

.rules-panel li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  z-index: -1;
  pointer-events: none;
}

.orb-one {
  width: 420px;
  height: 420px;
  background: rgba(139, 92, 246, 0.42);
  top: 30px;
  right: 8%;
  box-shadow: 0 0 150px rgba(167, 139, 250, 0.32);
}

.orb-two {
  width: 320px;
  height: 320px;
  background: rgba(79, 124, 255, 0.28);
  bottom: 30px;
  left: 7%;
  animation-delay: 2s;
  box-shadow: 0 0 120px rgba(96, 165, 250, 0.18);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 2rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.76rem;
  font-weight: 800;
}

h1,
h2,
h3 {
  margin: 0 0 1rem;
  line-height: 1.05;
}

h1 {
  font-size: clamp(3rem, 5vw, 5rem);
  letter-spacing: -0.06em;
  font-family: "Orbitron", sans-serif;
}

h2 {
  font-size: clamp(2.1rem, 4vw, 3rem);
  letter-spacing: -0.05em;
}

.subtitle,
.showcase-copy p,
.feature-card p,
.event-info p,
.faq-list p,
#join p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.75rem 0;
}

.server-meta {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 0;
  margin: 2rem 0 0;
}

.server-meta li {
  min-width: 110px;
}

.server-meta strong,
.stats-grid strong {
  display: block;
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  margin-bottom: 0.2rem;
}

.server-meta span,
.stats-grid span {
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
  transform: translateY(0);
  transition: transform 0.3s ease-out;
  animation: heroFloat 10s ease-in-out infinite;
  filter: drop-shadow(0 0 32px rgba(139, 92, 246, 0.3));
}

.glass-panel {
  position: relative;
  overflow: hidden;
  background: rgba(15, 22, 38, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 16px 40px rgba(7, 10, 22, 0.45);
}

.glass-panel::before {
  content: "";
  position: absolute;
  inset: -30% auto auto -20%;
  width: 60%;
  height: 160%;
  background: linear-gradient(90deg, transparent, rgba(167, 139, 250, 0.16), transparent);
  transform: rotate(18deg);
  pointer-events: none;
}

.panel {
  width: min(500px, 100%);
  background: linear-gradient(180deg, rgba(20, 25, 45, 0.96), rgba(13, 17, 31, 0.96));
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 1.5rem;
  box-shadow: 0 30px 80px rgba(8, 11, 23, 0.7), 0 0 26px rgba(139, 92, 246, 0.18);
}

.panel-glow {
  position: relative;
}

.panel-glow::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.4), rgba(79, 124, 255, 0.22), transparent);
  z-index: -1;
  filter: blur(22px);
  animation: pulseGlow 3.4s ease-in-out infinite;
}

.stat-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(167, 139, 250, 0.3);
  color: #e9ddff;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  font-size: 0.8rem;
  margin-bottom: 1.2rem;
}

.live-dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 18px rgba(139, 92, 246, 0.9);
}

.server-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: rgba(19, 23, 42, 0.9);
  border: 1px solid var(--line);
}

.server-logo {
  width: 3.3rem;
  height: 3.3rem;
  border-radius: 1rem;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #f5f3ff;
  font-size: 1.5rem;
  font-weight: 900;
  font-family: "Orbitron", sans-serif;
}

.server-card h3 {
  margin: 0;
  font-size: 1.2rem;
}

.server-card p {
  margin: 0.2rem 0 0;
  color: var(--muted);
}

.mini-grid {
  margin-top: 1.3rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(130px, 1fr));
  gap: 0.9rem;
}

.mini-grid div {
  background: rgba(20, 26, 46, 0.9);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem 0.9rem;
}

.mini-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  margin-bottom: 0.25rem;
}

.mini-grid strong {
  font-size: 1.1rem;
}

.stats-bar {
  padding: 1.5rem 0 0.75rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 1rem;
}

.stats-grid div {
  padding: 1.1rem 1rem;
  background: rgba(20, 26, 46, 0.7);
  border: 1px solid var(--line);
  border-radius: 18px;
  text-align: center;
}

.section {
  padding: clamp(4rem, 6vw, 6rem) 0;
}

.section-heading {
  max-width: 630px;
  margin-bottom: 2rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  padding: 1.5rem;
  background: rgba(19, 25, 45, 0.76);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 14px 22px rgba(6, 12, 18, 0.18);
}

.icon {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: 0.9rem;
  background: rgba(139, 92, 246, 0.14);
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.split {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 2rem;
  align-items: center;
}

.showcase-copy ul {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.8rem;
  color: var(--text);
}

.showcase-copy li {
  position: relative;
  padding-left: 1.4rem;
}

.showcase-copy li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 800;
}

.showcase-card {
  background: linear-gradient(180deg, rgba(20, 26, 46, 0.96), rgba(12, 17, 31, 0.96));
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.small-label {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
}

.pill {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.14);
  color: #f1eaff;
  border: 1px solid rgba(167, 139, 250, 0.3);
  font-size: 0.76rem;
  font-weight: 700;
}

.progress {
  height: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  margin: 1.5rem 0 0.8rem;
}

.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
}

.event-list {
  display: grid;
  gap: 1rem;
}

.event-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.2rem;
  align-items: center;
  padding: 1.25rem 1.4rem;
  background: rgba(18, 23, 41, 0.76);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.event-date {
  width: 82px;
  min-height: 82px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.14), rgba(79, 124, 255, 0.08));
  border: 1px solid rgba(167, 139, 250, 0.2);
  text-align: center;
}

.event-date strong {
  display: block;
  font-size: 1.7rem;
}

.event-date span {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.event-info h3 {
  margin-bottom: 0.35rem;
}

.cta-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding: clamp(1.5rem, 2vw, 2rem);
  border: 1px solid rgba(167, 139, 250, 0.18);
  background: linear-gradient(135deg, rgba(23, 29, 55, 0.96), rgba(12, 18, 35, 0.96));
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.faq-list {
  display: grid;
  gap: 0.9rem;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(18, 23, 41, 0.7);
  padding: 1rem 1.2rem;
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list p {
  margin: 0.9rem 0 0;
}

.site-footer {
  padding: 1rem 0 2.5rem;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: var(--muted);
}

.brand-footer {
  font-size: 0.96rem;
}

@keyframes drift {
  0% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(18px, -16px, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

@keyframes aurora {
  0% {
    opacity: 0.7;
    transform: scale(1) translate3d(0, 0, 0);
  }
  50% {
    opacity: 1;
    transform: scale(1.08) translate3d(0, -12px, 0);
  }
  100% {
    opacity: 0.8;
    transform: scale(1) translate3d(0, 10px, 0);
  }
}

@keyframes gridShift {
  0% {
    transform: perspective(1200px) rotateX(58deg) scale(1.08) translate3d(0, 0, 0);
  }
  50% {
    transform: perspective(1200px) rotateX(58deg) scale(1.14) translate3d(0, -18px, 0);
  }
  100% {
    transform: perspective(1200px) rotateX(58deg) scale(1.08) translate3d(0, 0, 0);
  }
}

@keyframes floatOrb {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(0, -24px, 0) scale(1.12);
  }
}

@keyframes heroFloat {
  0%,
  100% {
    transform: translateY(0px) scale(1);
  }
  50% {
    transform: translateY(-12px) scale(1.02);
  }
}

@keyframes pulseGlow {
  0%,
  100% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.03);
  }
}

@keyframes shine {
  0% {
    left: -40%;
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  50% {
    left: 120%;
    opacity: 1;
  }
  100% {
    left: 120%;
    opacity: 0;
  }
}

@media (max-width: 860px) {
  .nav {
    flex-wrap: wrap;
    padding: 0.9rem 0;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-inner,
  .split,
  .feature-grid,
  .stats-grid,
  .cta-box {
    grid-template-columns: 1fr;
    display: grid;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(130px, 1fr));
  }

  .cta-box {
    text-align: center;
    justify-items: center;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 520px) {
  .server-meta,
  .stats-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .server-meta {
    display: grid;
  }

  .nav {
    justify-content: center;
  }

  .brand {
    font-size: 0.9rem;
  }

  .btn {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }
}
