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

:root {
  --accent: #7b4dff;
  --accent-light: #c1adff;
  --teal: #a86dff;
  --steel: #8f7db7;
  --surface: rgba(11, 7, 22, 0.74);
  --surface-strong: rgba(9, 5, 18, 0.92);
  --surface-border: rgba(255, 255, 255, 0.08);
  --surface-hover: rgba(255, 255, 255, 0.06);
  --text: #f2ecff;
  --text-dim: rgba(242, 236, 255, 0.64);
  --text-faint: rgba(242, 236, 255, 0.34);
  --bg: #05030b;
  --radius: 18px;
  --shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at top left, rgba(123, 77, 255, 0.18), transparent 24%),
    radial-gradient(circle at 85% 12%, rgba(168, 109, 255, 0.12), transparent 22%),
    linear-gradient(180deg, #0b0615 0%, #05030b 52%, #020104 100%);
  color: var(--text);
  font-family: "Plus Jakarta Sans", sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

#three-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.content {
  position: relative;
  z-index: 1;
}

.navbar {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  width: min(92%, 1140px);
  background: rgba(10, 6, 20, 0.62);
  backdrop-filter: blur(24px);
  border: 1px solid var(--surface-border);
  border-radius: 999px;
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.navbar.scrolled {
  background: rgba(10, 6, 20, 0.92);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.35);
  border-color: rgba(123, 77, 255, 0.2);
}

.logo,
.footer-brand {
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #fff;
}

.logo {
  font-size: 1.2rem;
}

.logo span,
.footer-brand span {
  color: var(--accent-light);
}

.nav-links,
.footer-nav {
  display: flex;
  gap: 10px;
  list-style: none;
}

.nav-links a,
.footer-nav a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 500;
  transition: all 0.3s;
}

.nav-links a {
  padding: 9px 16px;
  border-radius: 40px;
}

.nav-links a:hover,
.footer-nav a:hover {
  color: #fff;
}

.nav-links a:hover {
  background: var(--surface-hover);
}

.discord-nav,
.btn-primary,
.btn-secondary,
.join-btn,
.plan-btn,
.discord-join {
  text-decoration: none;
  transition: all 0.3s;
}

.discord-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  background: linear-gradient(135deg, rgba(123, 77, 255, 0.24), rgba(168, 109, 255, 0.14));
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid rgba(193, 173, 255, 0.18);
  border-radius: 999px;
}

.discord-nav:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(123, 77, 255, 0.22);
}

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 136px 24px 80px;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.77rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-light);
  padding: 10px 18px;
  background: rgba(123, 77, 255, 0.1);
  border: 1px solid rgba(123, 77, 255, 0.16);
  border-radius: 999px;
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.8s 0.2s forwards;
}

.hero-badge .dot,
.dot-online {
  border-radius: 50%;
  animation: blink 2s infinite;
}

.hero-badge .dot {
  width: 7px;
  height: 7px;
  background: var(--teal);
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.hero h1,
.section-title,
.discord-card h2 {
  font-family: "Outfit", sans-serif;
  color: #fff;
}

.hero h1 {
  font-size: clamp(3.6rem, 9vw, 7.8rem);
  font-weight: 900;
  line-height: 0.93;
  letter-spacing: -0.06em;
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.8s 0.35s forwards;
}

.hero h1 .top,
.hero h1 .bottom {
  display: block;
}

.hero h1 .bottom {
  background: linear-gradient(135deg, #ffffff 0%, var(--accent-light) 55%, var(--teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: 1.08rem;
  font-weight: 400;
  color: var(--text-dim);
  max-width: 700px;
  line-height: 1.8;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeUp 0.8s 0.5s forwards;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  animation: fadeUp 0.8s 0.65s forwards;
}

.btn-primary,
.btn-secondary,
.discord-join {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 14px;
  font-size: 0.88rem;
  font-weight: 600;
}

.btn-primary,
.plan-card.featured .plan-btn,
.discord-join {
  background: linear-gradient(135deg, var(--accent), #a86dff);
  color: #fff;
  border: 1px solid rgba(193, 173, 255, 0.18);
  box-shadow: 0 12px 30px rgba(123, 77, 255, 0.24);
}

.btn-primary:hover,
.discord-join:hover,
.plan-card.featured .plan-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(123, 77, 255, 0.32);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--surface-border);
  backdrop-filter: blur(12px);
}

.btn-secondary:hover,
.plan-btn:hover,
.join-btn:hover {
  background: var(--surface-hover);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  animation: fadeUp 0.8s 1s forwards;
}

.scroll-hint .arrow {
  width: 22px;
  height: 22px;
  border-right: 2px solid rgba(255, 255, 255, 0.16);
  border-bottom: 2px solid rgba(255, 255, 255, 0.16);
  transform: rotate(45deg);
  animation: bounce 2.5s infinite;
}

@keyframes bounce {
  0%, 100% { transform: rotate(45deg) translateY(0); opacity: 0.4; }
  50% { transform: rotate(45deg) translateY(8px); opacity: 1; }
}

.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1100px;
  margin: 0 auto 44px;
  padding: 0 24px;
  gap: 16px;
}

.stat-item,
.server-card,
.plan-card,
.discord-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.stat-item {
  text-align: center;
  padding: 30px 16px;
  border-radius: var(--radius);
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.stat-item.visible,
.server-card.visible,
.plan-card.visible,
.discord-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.stat-number {
  font-family: "Outfit", sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  display: block;
  line-height: 1;
}

.stat-label {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  margin-top: 10px;
}

.section,
.discord-section {
  max-width: 1140px;
  margin: 0 auto;
  padding: 100px 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--accent-light);
  text-transform: uppercase;
  padding: 7px 14px;
  background: rgba(123, 77, 255, 0.1);
  border-radius: 999px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 14px;
}

.section-desc,
.discord-card p,
.server-copy,
.plan-desc {
  color: var(--text-dim);
  line-height: 1.75;
}

.section-desc {
  font-size: 1rem;
  max-width: 620px;
  margin: 0 auto;
}

.servers-grid,
.hosting-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.server-card,
.plan-card,
.discord-card {
  border-radius: 22px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.server-card:hover,
.plan-card:hover {
  transform: translateY(-6px);
  border-color: rgba(123, 77, 255, 0.22);
}

.server-banner {
  height: 144px;
  display: flex;
  align-items: flex-end;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.server-banner .bg-gradient {
  position: absolute;
  inset: 0;
}

.cs2-banner .bg-gradient {
  background:
    linear-gradient(135deg, rgba(34, 18, 70, 0.95), rgba(10, 6, 20, 0.95)),
    radial-gradient(circle at top right, rgba(123, 77, 255, 0.24), transparent 35%);
}

.mc-banner .bg-gradient {
  background:
    linear-gradient(135deg, rgba(42, 20, 62, 0.95), rgba(10, 6, 20, 0.95)),
    radial-gradient(circle at top right, rgba(168, 109, 255, 0.18), transparent 35%);
}

.rbx-banner .bg-gradient {
  background:
    linear-gradient(135deg, rgba(24, 16, 44, 0.95), rgba(10, 6, 20, 0.95)),
    radial-gradient(circle at top right, rgba(193, 173, 255, 0.18), transparent 35%);
}

.banner-label {
  position: relative;
  z-index: 1;
  font-family: "Outfit", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
}

.server-body {
  padding: 24px;
}

.server-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.dot-online {
  width: 7px;
  height: 7px;
  background: #b47cff;
  box-shadow: 0 0 12px rgba(180, 124, 255, 0.55);
}

.status-label,
.player-count {
  font-family: "JetBrains Mono", monospace;
}

.status-label {
  font-size: 0.68rem;
  font-weight: 500;
  color: #d0b3ff;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.server-name,
.plan-name {
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  color: #fff;
}

.server-name {
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.server-game {
  font-size: 0.86rem;
  color: var(--text-faint);
  margin-bottom: 14px;
}

.server-copy {
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.server-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.player-count {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.player-count strong {
  color: #fff;
}

.join-btn,
.plan-btn {
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  cursor: pointer;
}

.plan-card {
  padding: 38px 30px;
}

.plan-card.featured {
  border-color: rgba(123, 77, 255, 0.24);
  background: linear-gradient(160deg, rgba(123, 77, 255, 0.14), rgba(11, 7, 22, 0.82));
}

.plan-badge {
  display: inline-block;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: rgba(193, 173, 255, 0.14);
  color: #efe3ff;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.plan-name {
  font-size: 1.25rem;
  margin-bottom: 6px;
}

.plan-desc {
  font-size: 0.88rem;
  margin-bottom: 24px;
}

.plan-price {
  font-family: "Outfit", sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 4px;
}

.plan-price .currency {
  font-size: 0.42em;
  font-weight: 500;
  color: var(--text-dim);
  vertical-align: super;
}

.plan-price .period {
  font-size: 0.3em;
  font-weight: 400;
  color: var(--text-dim);
}

.plan-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.07);
  margin: 24px 0;
}

.plan-features {
  list-style: none;
  margin-bottom: 30px;
}

.plan-features li {
  padding: 9px 0;
  font-size: 0.92rem;
  color: rgba(237, 242, 251, 0.74);
  display: flex;
  align-items: center;
  gap: 12px;
}

.plan-features .check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(168, 109, 255, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--teal);
  font-size: 0.64rem;
  font-weight: 700;
}

.discord-section {
  padding-top: 70px;
  padding-bottom: 120px;
}

.discord-card {
  max-width: 900px;
  margin: 0 auto;
  padding: 72px 60px;
  background: linear-gradient(160deg, rgba(123, 77, 255, 0.12), rgba(10, 6, 20, 0.78));
  border-color: rgba(193, 173, 255, 0.14);
  text-align: center;
  position: relative;
}

.discord-card .glow,
.discord-card .glow-2 {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.discord-card .glow {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(123, 77, 255, 0.16) 0%, transparent 70%);
  top: -120px;
  right: -120px;
}

.discord-card .glow-2 {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(168, 109, 255, 0.1) 0%, transparent 70%);
  bottom: -80px;
  left: -60px;
}

.discord-logo {
  width: 56px;
  height: 56px;
  margin: 0 auto 24px;
  background: rgba(123, 77, 255, 0.18);
  border: 1px solid rgba(193, 173, 255, 0.18);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Outfit", sans-serif;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  position: relative;
  z-index: 1;
}

.discord-card h2,
.discord-card p,
.discord-join {
  position: relative;
  z-index: 1;
}

.discord-card h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 14px;
}

.discord-card p {
  font-size: 1rem;
  max-width: 560px;
  margin: 0 auto 34px;
}

.footer {
  padding: 48px 24px 32px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  max-width: 1140px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 28px;
}

.footer-brand {
  font-size: 1.08rem;
}

.footer-nav {
  gap: 24px;
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--text-faint);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .section,
  .discord-section {
    padding: 80px 20px;
  }

  .discord-card {
    padding: 48px 28px;
  }

  .footer-top {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 580px) {
  .stats-bar {
    grid-template-columns: 1fr;
  }

  .navbar {
    width: min(94%, 1140px);
    padding: 12px 16px;
  }

  .hero {
    padding-top: 120px;
  }
}
