
:root {
  --red: #e53935;
  --red-dark: #b71c1c;
  --red-glow: rgba(229, 57, 53, 0.4);
  --bg: #09090b;
  --surface: rgba(24, 24, 27, 0.6);
  --surface-hover: rgba(39, 39, 42, 0.8);
  --text: #f4f4f5;
  --text-muted: #a1a1aa;
  --border: rgba(255, 255, 255, 0.1);
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 16px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Discord branding */
  --discord-blurple: #5865F2;
  --discord-dark: #2C2F33;
  --discord-darker: #23272A;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.8;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .nav-brand {
}

/* Background blob (Lava Lamp effect) */
.blob-bg {
  position: fixed;
  top: -10vw;
  left: -10vw;
  width: 50vw;
  height: 50vw;
  min-height: 500px;
  background: radial-gradient(circle, rgba(220, 38, 38, 0.2) 0%, rgba(153, 27, 27, 0.2) 40%, transparent 70%);
  filter: blur(90px);
  z-index: -1;
  border-radius: 50%;
  animation: float-lava 10s ease-in-out infinite alternate;
}

.blob-bg::after {
  content: '';
  position: absolute;
  bottom: -20vw;
  right: -20vw;
  min-width: 400px;
  min-height: 400px;
  background: radial-gradient(circle, rgba(185, 28, 28, 0.2) 0%, rgba(127, 29, 29, 0.2) 40%, transparent 70%);
  filter: blur(80px);
  border-radius: 50%;
  animation: float-lava-2 12s ease-in-out infinite alternate-reverse;
}

@keyframes float-lava {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(10vw, 5vh) scale(1.1); }
  100% { transform: translate(-5vw, 10vh) scale(0.9); }
}

@keyframes float-lava-2 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-15vw, -15vh) scale(1.3); }
  100% { transform: translate(10vw, -10vh) scale(0.7); }
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem;
}

.glass-panel {
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 5vw, 3rem);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  margin-top: 2rem;
  margin-bottom: 2rem;
}

/* Top Nav */
.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin: 0 auto 3rem auto;
  padding: 1.2rem 4rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(15, 15, 18, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-brand {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 1px;
  color: var(--text);
}
.nav-brand span {
  color: var(--red);
}

.nav-menu {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  right: 2rem;
  background: rgba(15, 15, 18, 0.85);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  width: 250px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  z-index: 100;
  gap: 1rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-15px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}
.nav-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-link {
  position: relative;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-link:hover, .nav-link.active {
  color: var(--text);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--red);
  border-radius: 2px;
}

.mobile-menu-btn {
  display: block;
  background: transparent;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}
.mobile-menu-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

/* Hero Section */
.hero {
  margin-bottom: 6rem;
  width: 100%;
}

.hero-content h1 {
  font-size: clamp(1.9rem, 6vw, 3.2rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 0.5rem;
  background: linear-gradient(to right, #fff, #a1a1aa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content h2 {
  font-size: 1.3rem;
  color: var(--red);
  font-weight: 600;
  margin-bottom: 2rem;
}

.lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.red-badge {
  background: rgba(229, 57, 53, 0.15);
  color: #ff8a80;
  border: 1px solid rgba(229, 57, 53, 0.3);
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.btn {
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  text-align: center;
  display: inline-block;
}

.primary-btn {
  background: var(--red);
  color: #fff;
  border: 1px solid var(--red-hover);
  box-shadow: 0 0 15px var(--red-glow);
  transition: all 0.3s ease;
}
.primary-btn:hover {
  background: var(--red-hover);
  box-shadow: 0 0 25px var(--red-glow);
  transform: translateY(-2px);
}

.secondary-btn {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.secondary-btn:hover {
  background: var(--surface-hover);
  border-color: var(--text-muted);
}

.disclaimer {
  font-size: 0.9rem;
  color: var(--text-muted);
  background: rgba(0,0,0,0.3);
  padding: 1.2rem;
  border-radius: var(--radius-sm);
  border-left: 3px solid #ff9800;
  line-height: 1.6;
}

/* DISCORD WIDGET OFFFICIEL */
.discord-widget-container {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 15px 35px -10px rgba(0,0,0,0.6);
  border: 1px solid var(--border);
  transition: transform var(--transition);
  display: flex;
}
.discord-widget-container:hover {
  transform: translateY(-5px);
  border-color: var(--discord-blurple);
}
.discord-join-btn {
  display: block;
  background: var(--discord-green);
  color: #fff;
  padding: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s;
}
.discord-join-btn:hover {
  background: #22c55e;
}

/* CAROUSEL SCREENSHOTS */
.carousel-section {
  margin-bottom: 6rem;
}
.carousel-container {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  background: #000;
}
.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  aspect-ratio: 16/9;
}
.carousel-slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0,0,0,0.7);
  color: #fff;
  padding: 1rem;
  text-align: center;
  font-weight: 600;
  backdrop-filter: blur(4px);
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: 1px solid var(--border);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.carousel-btn:hover {
  background: var(--red);
  border-color: var(--red);
}
.carousel-prev { left: 1rem; }
.carousel-next { right: 1rem; }

/* Carousel Dots */
.carousel-dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: var(--transition);
}
.carousel-dot.active {
  background: var(--red);
  transform: scale(1.2);
}

/* Button Glow Effects */
.btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}
.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300%;
  height: 300%;
  background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 60%);
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.5s ease;
  opacity: 0;
}
.btn:hover::after {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}
.primary-btn:hover {
  box-shadow: 0 0 15px rgba(229, 57, 53, 0.6);
  transform: translateY(-2px);
}
.secondary-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Placeholder Styling */
.placeholder-img {
  background: #18181b;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.2rem;
}

/* Roadmap / Avancement */
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-header h2 {
  font-size: clamp(1.3rem, 4vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 1rem;
}
.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.roadmap-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 6rem;
  align-items: start;
}

.roadmap-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  transition: var(--transition);
}
.roadmap-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.2);
}

.roadmap-card.highlight {
  border-color: var(--red);
  background: linear-gradient(145deg, rgba(229,57,53,0.1) 0%, transparent 100%);
}

.roadmap-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.date-big {
  font-size: clamp(1.8rem, 6vw, 3.0rem);
  font-weight: 900;
  color: var(--red);
  line-height: 1;
  margin-bottom: 1.5rem;
}

.roadmap-card ul {
  list-style: none;
}
.roadmap-card ul li {
  margin-bottom: 1rem;
  font-size: 1.05rem;
  padding-left: 1.5rem;
  position: relative;
}
.roadmap-card ul li::before {
  content: '▪';
  color: var(--red);
  position: absolute;
  left: 0;
  font-weight: bold;
}
.roadmap-card ul li strong {
  color: #fff;
}

/* Stats Section */
.stats-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 6rem;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px; /* Moins rond, plus carré doux */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1rem, 3vw, 2rem);
  text-align: center;
  transition: transform var(--transition), border-color var(--transition);
}
.stat-card:hover {
  background: var(--surface-hover);
  border-color: var(--red);
  transform: translateY(-5px);
}
.stat-value {
  font-size: clamp(1.7rem, 6vw, 2.8rem);
  font-weight: 900;
  color: #fff;
  margin-bottom: 0.5rem;
}
.stat-label {
  color: var(--text-muted);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}
.stat-sub {
  font-size: 0.85rem;
  color: var(--red);
  font-weight: 600;
}

.loading-spinner {
  text-align: center;
  color: var(--text-muted);
  padding: 2rem;
  grid-column: 1 / -1;
}

/* Videos & Embeds */
.video-section {
  margin-bottom: 6rem;
}
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Generic Pages (Histoire, Patch notes, Equipe) */
.page-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 5vw, 4rem);
  margin-bottom: 4rem;
}

.page-content h2 {
  font-size: clamp(1.3rem, 4vw, 2.2rem);
  color: var(--red);
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
}

.page-content h3 {
  font-size: 1.5rem;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  color: #fff;
}

.page-content p {
  margin-bottom: 1.8rem;
  font-size: 1.1rem;
  color: #d4d4d8;
  line-height: 1.8;
}

.page-content ul {
  margin-bottom: 2rem;
  padding-left: 1.5rem;
  color: #d4d4d8;
  line-height: 1.8;
}

.page-content li {
  margin-bottom: 0.8rem;
}

/* Team Grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}
.team-member {
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  transition: transform var(--transition);
}
.team-member:hover {
  transform: translateY(-5px);
  border-color: var(--red);
}
.team-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid var(--red);
  margin: 0 auto 1.5rem auto;
  object-fit: cover;
}
.team-name {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.team-name a {
  color: #fff;
  text-decoration: none;
}
.team-name a:hover {
  color: var(--red);
  text-decoration: underline;
}
.team-role {
  font-size: 0.95rem;
  color: var(--red);
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.team-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Patch Notes Timeline */
.timeline {
  border-left: 3px solid var(--red);
  padding-left: 2.5rem;
  margin-top: 3rem;
}
.timeline-item {
  position: relative;
  margin-bottom: 4rem;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -3.35rem; /* Ajusté pour centrer sur la bordure */
  top: 0;
  width: 24px;
  height: 24px;
  background: var(--bg);
  border: 4px solid var(--red);
  border-radius: 50%;
}
.timeline-date {
  font-weight: 800;
  color: var(--red);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}
.timeline-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: #fff;
}

/* Comparaison Section */
.comparison-section {
  margin-bottom: 6rem;
}
.filter-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 4rem;
  flex-wrap: wrap;
}
.filter-btn {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 0.8rem 2rem;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}
.filter-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300%;
  height: 300%;
  background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 60%);
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.5s ease;
  opacity: 0;
}
.filter-btn:hover::after {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}
.filter-btn.active, .filter-btn:hover {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
  box-shadow: 0 0 15px rgba(229, 57, 53, 0.4);
  transform: translateY(-2px);
}

.slider-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.slider-card {
  background: #111;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.slider-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(229, 57, 53, 0.2);
}
.slider-card .name {
  padding: 0.8rem;
  text-align: center;
  font-size: 0.85rem;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  color: var(--text-muted);
}
.comparison {
  position: relative;
  width: 100%;
  height: 220px;
  cursor: ew-resize;
  user-select: none;
}
.img-after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 1;
}
.before-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0);
}
.img-before {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.slider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos, 50%);
  width: 2px;
  background: var(--red);
  z-index: 3;
  transform: translateX(-50%);
  pointer-events: none;
}
.slider-handle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 28px;
  height: 28px;
  background: var(--red);
  border-radius: 50%;
  border: 2px solid #fff;
}
.label-left, .label-right {
  position: absolute;
  bottom: 15px;
  padding: 6px 12px;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 4px;
  z-index: 4;
}
.label-left { left: 15px; }
.label-right { right: 15px; }

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding-top: 3rem;
  margin-top: 3rem;
}
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-left p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}
.footer-left a {
  color: var(--text);
  text-decoration: underline;
}
.footer-links {
  display: flex;
  gap: 2rem;
}
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: var(--transition);
}
.footer-links a:hover {
  color: #fff;
}

/* Responsive */
@media (max-width: 900px) {
  .hero, .hero-grid {
    grid-template-columns: 1fr !important;
    text-align: center !important;
  }
  .hero-grid .discord-content {
    text-align: center !important;
  }
  .hero-grid .hero-buttons {
    justify-content: center !important;
  }
  .hero-buttons {
    justify-content: center;
  }
  .discord-widget {
    margin: 0 auto;
  }
  .roadmap-grid {
    grid-template-columns: 1fr;
  }
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .glass-panel {
    padding: 2rem;
  }
  .page-content {
    padding: 2rem;
  }
  .carousel-track {
    height: 300px;
  }
}

/* =========================================
   PREMIUM LAYOUT & FOOTER (NEW CSS)
   ========================================= */

/* Discord Wrapper Layout */
.discord-wrapper {
  position: relative;
}

.discord-content {
  padding: 0 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

/* Diagonal Divider Transition — handled per-page inline */
.diagonal-divider {
  display: none;
}

/* Info Section (Dark Area) */
.info-section {
  background-color: #111115;
  position: relative;
  z-index: 5;
  padding: clamp(1.5rem, 4vw, 2rem) clamp(1rem, 3vw, 2rem) clamp(3rem, 6vw, 6rem) clamp(1rem, 3vw, 2rem);
}

.info-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Showcase Rows (Alternating Layout) */
.showcase-row {
  display: flex;
  align-items: center;
  gap: 4rem;
  margin-bottom: 6rem;
}

.showcase-row.reverse {
  flex-direction: row-reverse;
}

.showcase-text {
  flex: 1;
}

.showcase-text h2 {
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  margin-bottom: 1rem;
  color: #fff;
  line-height: 1.2;
}

.showcase-text p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.showcase-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.showcase-visual img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  transition: transform var(--transition);
}

.showcase-visual img:hover {
  transform: translateY(-5px);
}

/* Premium Footer */
.premium-footer {
  background-color: #0d0d12;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: clamp(2rem, 5vw, 5rem) 2rem 2rem 2rem;
  color: var(--text-muted);
  font-family: 'Plus Jakarta Sans', sans-serif;
  position: relative;
  z-index: 10;
  /* Break out of any container/glass-panel wrapper */
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  border-radius: 0 !important;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto 4rem auto;
}

.footer-brand h3 {
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

.footer-brand h3 span {
  color: var(--red);
}

.footer-brand p {
  line-height: 1.6;
  font-size: 0.95rem;
  max-width: 300px;
}

.footer-col h4 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 0.8rem;
}

.footer-col ul a {
  position: relative;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
  font-size: 0.95rem;
}

.footer-col ul a:hover {
  color: var(--red);
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.footer-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  color: #fff;
  transition: background 0.2s ease, transform 0.2s ease;
}

.footer-social-btn:hover {
  background: var(--red);
  transform: translateY(-3px);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .showcase-row {
    flex-direction: column !important;
    gap: 2rem;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}
.join-btn-giant {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  background: #5865F2;
  color: white;
  padding: 1.2rem;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  border-radius: 0 0 var(--radius) var(--radius);
  transition: background 0.3s, transform 0.2s;
  margin-top: -5px;
  box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
}
.join-btn-giant:hover {
  background: #4752C4;
}
.nav-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}


/* JS Animations */
/* Pure CSS Animations */
.fade-in {
  opacity: 0;
  animation: fadeInAnim 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInAnim {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Mobile Fixes */
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  .footer-brand p {
    margin: 0 auto;
  }
  .hero-buttons {
    flex-direction: column;
    align-items: stretch !important;
  }
  .hero-buttons a {
    text-align: center;
    justify-content: center;
  }
  .video-wrapper iframe {
    border-radius: 12px;
  }
  .discord-section {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 768px) {

  .nav-menu {
    width: 90%;
    right: 5%;
    left: 5%;
  }
}

/* Discord Widget Display Logic */
.discord-desktop {
  display: block;
}
.discord-mobile {
  display: none !important;
}

@media (max-width: 768px) {
  .discord-desktop {
    display: none !important;
  }
  .discord-mobile {
    display: flex !important;
  }
}

/* Mobile UX Fixes Final */
@media (max-width: 768px) {
  .mobile-stack {
    flex-direction: column !important;
    text-align: center !important;
    gap: 1.5rem !important;
  }
  .mobile-stack > div {
    width: 100% !important;
  }
  .discord-desktop {
    display: none !important;
  }
  .discord-mobile {
    display: flex !important;
  }
  .carousel-container {
    height: auto !important;
    aspect-ratio: 16/9;
  }
  .carousel-slide img {
    object-fit: contain !important;
    height: 100% !important;
  }
}
@media (min-width: 769px) {
  .discord-desktop {
    display: block !important;
  }
  .discord-mobile {
    display: none !important;
  }
}

@media (max-width: 768px) {

  .mobile-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
}

/* FAQ Accordion Styles */
.faq-details {
    background: rgba(15, 15, 20, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}
.faq-details[open] {
    background: rgba(30, 30, 40, 0.7);
    border-color: var(--red);
    box-shadow: 0 5px 15px rgba(229, 57, 53, 0.2);
}
.faq-summary {
    padding: 1.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    cursor: pointer;
    list-style: none;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.faq-summary::-webkit-details-marker {
    display: none;
}
.faq-summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--red);
    transition: transform 0.3s ease;
}
.faq-details[open] .faq-summary::after {
    content: '-';
    transform: rotate(180deg);
}
.faq-content {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: #d1d5db;
    line-height: 1.7;
    font-size: 1.05rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    margin-top: 0.5rem;
    padding-top: 1.5rem;
}
.faq-content a {
    color: var(--red);
    text-decoration: none;
    font-weight: bold;
}
.faq-content a:hover {
    text-decoration: underline;
}

.footer-col ul a.active {
  color: #fff;
}
.footer-col ul a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--red);
  border-radius: 2px;
}


/* =========================================
   UX/UI ENHANCEMENTS (Transitions, Nav, Lightbox)
   ========================================= */

/* 1. Page Transitions */
.page-wrapper {
  /* Removed pageFadeIn to fix Lighthouse NO_LCP (Largest Contentful Paint) */
}
.page-wrapper.fade-out {
  animation: pageFadeOut 0.3s ease-in forwards;
}

@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pageFadeOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-15px); }
}

/* 2. Reactive Top Nav (Glassmorphism) */
.top-nav {
  transition: padding 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.top-nav.scrolled {
  padding: 0.8rem 4rem;
  background: rgba(10, 10, 12, 0.95);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.9);
  border-bottom: 1px solid rgba(255, 0, 0, 0.2);
}
@media (max-width: 768px) {
  .top-nav.scrolled {
    padding: 0.8rem 2rem;
  }
}

/* 3. Lightbox Gallery */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  cursor: zoom-out;
}
.lightbox.active {
  opacity: 1;
  visibility: visible;
}
.lightbox img {
  max-width: 90%;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 10px 50px rgba(0,0,0,0.8);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.lightbox.active img {
  transform: scale(1);
}
.lightbox-trigger {
  cursor: zoom-in;
  transition: transform 0.3s ease, filter 0.3s ease;
}
.lightbox-trigger:hover {
  transform: scale(1.02);
  filter: brightness(1.1);
}
/* Ensure the body doesn't scroll when lightbox is open */
body.lightbox-open {
  overflow: hidden;
}
