/* ─── Variables ──────────────────────────────────────────────────────────── */
:root {
  --accent:        #e8000d;
  --accent-glow:   rgba(232, 0, 13, 0.45);
  --glass:         rgba(255, 255, 255, 0.08);
  --glass-hover:   rgba(255, 255, 255, 0.15);
  --border:        rgba(255, 255, 255, 0.14);
  --border-hover:  rgba(255, 255, 255, 0.28);
  --text-muted:    rgba(255, 255, 255, 0.60);
  --font-display:  'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  --font-body:     'Barlow', Arial, sans-serif;
}

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

html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--font-body);
  color: #fff;
  background: #080808;
  overflow-x: hidden;
}

/* ─── Background slideshow ───────────────────────────────────────────────── */
.slideshow {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.slideshow.ready {
  opacity: 1;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 2s ease-in-out;
  will-change: transform, opacity;
}

.slide.active {
  opacity: 1;
}

/* Kept alive on the outgoing slide too, so zoom continues during the fade-out */
.slide.zooming {
  animation: kenburns 10s ease-out forwards;
}

@keyframes kenburns {
  0%   { transform: scale(1.0); }
  100% { transform: scale(1.09); }
}

/* ─── Overlay ────────────────────────────────────────────────────────────── */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.58);
}

/* ─── Language toggle ────────────────────────────────────────────────────── */
.lang-toggle {
  position: fixed;
  top: 1.5rem;
  right: 2rem;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.9rem;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 100px;
}

.lang-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
  line-height: 1;
}

.lang-btn.active,
.lang-btn:hover {
  color: #fff;
}

.lang-sep {
  color: var(--border);
  font-size: 0.7rem;
  line-height: 1;
  pointer-events: none;
}

/* ─── Main content ───────────────────────────────────────────────────────── */
.content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 2.5rem;
  padding: 5rem 1.5rem 2rem;
  width: 100%;
  max-width: 860px;
}

/* ─── Hero header ────────────────────────────────────────────────────────── */
.hero-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.35em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.logo {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 12vw, 7rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 0.95;
  text-shadow: 0 4px 32px rgba(0, 0, 0, 0.5);
}

.accent-line {
  width: 52px;
  height: 3px;
  background: var(--accent);
  margin: 1rem auto 1.1rem;
  border-radius: 2px;
}

.tagline {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 4vw, 1.8rem);
  font-weight: 400;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 0.75rem;
}

.description {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.02em;
  max-width: 500px;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.9);
}

/* ─── Socials ────────────────────────────────────────────────────────────── */
.socials {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 1.15rem;
  border-radius: 100px;
  background: var(--glass);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background 0.2s, border-color 0.2s, transform 0.2s, color 0.2s;
  white-space: nowrap;
}

.social-btn:hover {
  background: var(--glass-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
  color: #fff;
}

.social-btn--discord {
  border-color: rgba(88, 101, 242, 0.45);
}

.social-btn--discord:hover {
  border-color: rgba(88, 101, 242, 0.8);
  box-shadow: 0 4px 20px rgba(88, 101, 242, 0.25);
}

.icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

/* ─── Join section ───────────────────────────────────────────────────────── */
.join {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  padding: 2rem 2rem;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 16px;
  max-width: 540px;
  width: 100%;
}

.join-heading {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 4vw, 1.7rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.join-text {
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 400px;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.8rem 1.9rem;
  border-radius: 100px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  margin-top: 0.25rem;
}

.cta-btn:hover {
  background: #ff1a24;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--accent-glow);
}

/* ─── Footer ─────────────────────────────────────────────────────────────── */
.footer {
  position: relative;
  z-index: 2;
  padding: 1.25rem 1.5rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.06em;
}

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .lang-toggle {
    top: 1rem;
    right: 1rem;
  }

  .content {
    gap: 2rem;
    padding-top: 4.5rem;
  }

  .join {
    padding: 1.5rem 1.25rem;
  }
}
