:root {
  --bg-primary: #050c05;
  --bg-secondary: #0c1510;
  --bg-card: #101a10;
  --text-primary: #f2f6f2;
  --text-muted: #a5b6a5;
  --accent: #39ff14;
  --accent-soft: rgba(57, 255, 20, 0.2);
  --border: rgba(57, 255, 20, 0.3);
  --surface-light: #fff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(ellipse 140% 55% at 50% -5%, rgba(18, 65, 18, 0.75) 0%, transparent 55%),
    radial-gradient(circle at 15% 85%, rgba(8, 38, 8, 0.55) 0%, transparent 38%),
    radial-gradient(circle at 85% 15%, rgba(12, 48, 12, 0.45) 0%, transparent 38%),
    linear-gradient(180deg, #071007 0%, var(--bg-primary) 100%);
  color: var(--text-primary);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  line-height: 1.6;
}

h1,
h2,
h3 {
  margin: 0 0 0.6rem;
  font-family: "Rajdhani", "Inter", sans-serif;
  letter-spacing: 0.02em;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.05;
}

h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
}

a {
  color: inherit;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.narrow {
  width: min(760px, 100%);
}

.section {
  padding: 5rem 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(7, 9, 9, 0.88);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(57, 255, 20, 0.15);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "Rajdhani", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--accent);
}

.brand-logo {
  height: 2.2rem;
  width: auto;
  border-radius: 0.4rem;
}

.nav-links {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
  gap: 1rem;
  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--accent);
}

.hero {
  min-height: calc(100vh - 4rem);
  display: grid;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(57, 255, 20, 0.1) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: radial-gradient(ellipse 80% 80% at center, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at center, black 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

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

.kicker,
.meta {
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.03em;
}

.tagline {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  max-width: 38ch;
}

.hero-actions {
  margin-top: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.1rem;
  border-radius: 0.7rem;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.btn-primary {
  color: #031003;
  background: var(--accent);
}

.btn-secondary {
  color: var(--text-primary);
  background: transparent;
  border-color: var(--border);
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.social-link::before {
  content: '';
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
  background-color: currentColor;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
}

.social-link-discord::before {
  mask-image: url("assets/icons/discord.svg");
  -webkit-mask-image: url("assets/icons/discord.svg");
}

.social-link-twitch::before {
  mask-image: url("assets/icons/twitch.svg");
  -webkit-mask-image: url("assets/icons/twitch.svg");
}

.social-link-youtube::before {
  mask-image: url("assets/icons/youtube.svg");
  -webkit-mask-image: url("assets/icons/youtube.svg");
}

.social-link-x::before {
  mask-image: url("assets/icons/x.svg");
  -webkit-mask-image: url("assets/icons/x.svg");
}

.card-grid {
  margin-top: 1.4rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  background: linear-gradient(145deg, var(--bg-card), var(--bg-secondary));
  border: 1px solid rgba(57, 255, 20, 0.16);
  border-radius: 1rem;
  padding: 1.15rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover,
.card:focus-within {
  transform: translateY(-4px);
  border-color: var(--border);
}

.merch-card {
  display: grid;
  gap: 1.5rem;
}

.merch-kicker {
  margin-bottom: 0.35rem;
}

.merch-highlights {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

@media (min-width: 860px) {
  .merch-card {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: center;
  }
}

.gallery-slider {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.4rem;
}

.slider-track-wrapper {
  flex: 1;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid rgba(57, 255, 20, 0.16);
}

.slider-track {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide {
  min-width: 100%;
  margin: 0;
  padding: 1.5rem 2rem;
  background: linear-gradient(145deg, var(--bg-card), var(--bg-secondary));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

.slide img {
  width: 100%;
  max-height: 420px;
  border-radius: 0.6rem;
  background: var(--surface-light);
  object-fit: contain;
}

.slide figcaption {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 1rem;
  text-align: center;
}

.slider-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--accent);
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  font-size: 1.6rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
}

.slider-btn:hover,
.slider-btn:focus-visible {
  background: var(--accent-soft);
  transform: scale(1.1);
  outline: none;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.slider-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--text-muted);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}

.slider-dot.active {
  background: var(--accent);
  transform: scale(1.4);
}

.particle-field {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  bottom: -8px;
  border-radius: 50%;
  background: var(--accent);
  filter: blur(1px);
  animation: floatUp linear forwards;
}

@keyframes floatUp {
  from {
    transform: translateY(0) scale(1);
  }
  to {
    /* 105vh ensures particles fully exit above the viewport before removal */
    transform: translateY(-105vh) scale(0.2);
    opacity: 0;
  }
}

main {
  position: relative;
  z-index: 1;
}

.join-section {
  border-top: 1px solid rgba(57, 255, 20, 0.14);
  border-bottom: 1px solid rgba(57, 255, 20, 0.14);
  background: rgba(9, 14, 9, 0.7);
}

.site-footer {
  padding: 1.4rem 0 2rem;
  position: relative;
  z-index: 1;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--text-muted);
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--accent);
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.reveal-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 700px) {
  .section {
    padding: 4rem 0;
  }

  .nav-wrapper {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.6rem 0;
  }

  .hero {
    min-height: auto;
    padding-top: 3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
