:root {
  --black: #07070b;
  --dark: #11111a;
  --dark-soft: #191726;
  --purple: #6D1853;
  --purple-light: #b35ad1;
  --white: #f6eef8;
  --muted: #b9aabd;
  --gold: #c9a47a;
  --border: rgba(255, 255, 255, 0.12);
  --green: #9dff3f;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(109, 24, 83, 0.45), transparent 35%),
    radial-gradient(circle at bottom right, rgba(179, 90, 209, 0.18), transparent 35%),
    var(--black);
  color: var(--white);
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.admin-logout {
  color: #ff9b9b;
}

.admin-logout:hover {
  color: #ffbcbc;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 7, 11, 0.78);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.site-header.scrolled {
  background: rgba(7, 7, 11, 0.94);
}

.navbar {
  max-width: 1280px;
  margin: auto;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  font-size: 1.1rem;
}

.logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 24px;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links a {
  transition: 0.25s;
}

.nav-links a:hover {
  color: var(--white);
}

.nav-links a.active {
  color: var(--white);
  font-weight: 900;
}

.nav-links a.active::after {
  content: "";
  display: block;
  height: 2px;
  margin-top: 6px;
  border-radius: 999px;
  background: var(--purple-light);
}

.burger-menu {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.burger-menu span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: var(--white);
  transition: 0.25s;
}

.burger-menu.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger-menu.active span:nth-child(2) {
  opacity: 0;
}

.burger-menu.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 14px;
  font-weight: 900;
  transition: 0.25s;
  font-size: 16px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--purple), var(--purple-light));
  box-shadow: 0 0 28px rgba(179, 90, 209, 0.28);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 40px rgba(179, 90, 209, 0.45);
  color: white;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: white;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-3px);
  color: white;
}

.discord-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
}

.discord-big-icon {
  width: 150px;
  height: 150px;
  object-fit: contain;
  margin-bottom: 24px;
  filter: drop-shadow(0 0 18px rgba(179, 90, 209, 0.45));
  animation: discordFloat 3s ease-in-out infinite;
}

.hero {
  max-width: 1180px;
  margin: auto;
  padding: 110px 24px 80px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 48px;
}

.hero-badge {
  display: inline-block;
  padding: 8px 14px;
  margin-bottom: 22px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(109, 24, 83, 0.28);
  color: var(--purple-light);
  font-weight: 800;
  font-size: 0.9rem;
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 0.95;
  letter-spacing: -3px;
  margin-bottom: 24px;
  text-shadow: 0 0 30px rgba(179, 90, 209, 0.35);
}

.hero-subtitle {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1.7;
  margin-bottom: 34px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-card {
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  backdrop-filter: blur(18px);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.35);
  text-align: center;
}

.hero-logo {
  width: 180px;
  margin-bottom: 24px;
  animation: coinSpin 10s linear infinite;
  transform-style: preserve-3d;
  filter:
    drop-shadow(12px 0 0 rgba(0, 0, 0, 0.9))
    drop-shadow(0 0 15px rgba(0, 0, 0, 0.4));
  will-change: transform;
}

.hero-card h2 {
  font-size: 1.7rem;
  margin-bottom: 14px;
}

.hero-card p {
  color: var(--muted);
  line-height: 1.6;
}

.section {
  max-width: 1180px;
  margin: auto;
  padding: 80px 24px;
  overflow: hidden;
}

.section-title {
  margin-bottom: 34px;
}

.section-title span {
  color: var(--purple-light);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 1rem;
  letter-spacing: 3px;
}

.section-title h2 {
  margin-top: 10px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: -1px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.card {
  padding: 32px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--border);
  transition: 0.3s ease;
  overflow: hidden;
  text-align: center;
}

.card:hover {
  transform: translateY(-6px);
  background: rgba(109, 24, 83, 0.18);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
}

.card-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.card-icon {
  width: 100%;
  max-width: 310px;
  height: 310px;
  object-fit: contain;
  margin: 0 auto 24px;
  display: block;
  filter: drop-shadow(0 0 18px rgba(179, 90, 209, 0.45));
}

.card h3 {
  font-size: 2rem;
  margin-top: 12px;
  text-align: center;
}

.card p,
.section-text {
  color: var(--muted);
  line-height: 1.7;
  text-align: center;
}

.recruitment {
  text-align: center;
}

.recruitment .section-title {
  text-align: center;
}

.section-text {
  max-width: 760px;
  margin: 0 auto 28px;
  font-size: 1.1rem;
}

.discord-section {
  padding-bottom: 110px;
}

.discord-box {
  text-align: center;
  padding: 54px 28px;
  border-radius: 30px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(109, 24, 83, 0.35), rgba(255, 255, 255, 0.05));
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.35);
}

.discord-box h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 16px;
}

.discord-box p {
  color: var(--muted);
  margin-bottom: 28px;
  font-size: 1.1rem;
}

.footer {
  text-align: center;
  padding: 28px 20px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  background: rgba(7, 7, 11, 0.65);
}

.hidden {
  opacity: 0;
  transform: translateY(24px);
}

.visible {
  opacity: 1;
  transform: translateY(0);
  transition: 0.7s ease;
}

@keyframes coinSpin {
  0% {
    transform: perspective(1000px) rotateY(0deg);
  }

  25% {
    transform: perspective(1000px) rotateY(80deg) scaleX(0.25);
  }

  50% {
    transform: perspective(1000px) rotateY(180deg);
  }

  75% {
    transform: perspective(1000px) rotateY(280deg) scaleX(0.25);
  }

  100% {
    transform: perspective(1000px) rotateY(360deg);
  }
}

@keyframes discordFloat {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-8px);
  }

  100% {
    transform: translateY(0px);
  }
}

@media (max-width: 850px) {
  .navbar {
    position: relative;
  }

  .burger-menu {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 14px);
    right: 24px;
    width: min(280px, calc(100vw - 48px));
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px;
    border-radius: 22px;
    border: 1px solid var(--border);
    background: rgba(7, 7, 11, 0.96);
    backdrop-filter: blur(18px);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    pointer-events: none;
    transition: 0.25s ease;
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    width: 100%;
    padding: 13px 14px;
    border-radius: 14px;
  }

  .nav-links a:hover,
  .nav-links a.active {
    background: rgba(255, 255, 255, 0.08);
  }

  .nav-links a.active::after {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 80px;
    text-align: center;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .card-icon {
    max-width: 260px;
    height: 260px;
  }
}