/* ============================================================
   HOME PAGE SPECIFIC STYLES
   ============================================================ */

/* --- HERO --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-h);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-jungle-layer {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(199,44,44,0.18) 0%, transparent 65%),
    radial-gradient(ellipse at 80% 80%, rgba(108,0,27,0.25) 0%, transparent 50%),
    linear-gradient(180deg, #1E0007 0%, #32000C 40%, #1A0D0D 100%);
}

/* Jungle silhouette trees */
.hero-jungle-layer::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 45%;
  background:
    /* Palm trees silhouette via gradients */
    radial-gradient(ellipse at 10% 100%, rgba(26,13,13,0.9) 0%, transparent 40%),
    radial-gradient(ellipse at 25% 100%, rgba(30,0,7,0.8) 0%, transparent 35%),
    radial-gradient(ellipse at 75% 100%, rgba(26,13,13,0.9) 0%, transparent 38%),
    radial-gradient(ellipse at 90% 100%, rgba(30,0,7,0.8) 0%, transparent 30%),
    linear-gradient(180deg, transparent 0%, #1A0D0D 100%);
  mask-image: linear-gradient(180deg, transparent 0%, black 60%);
}

/* Watchtower silhouette */
.hero-jungle-layer::after {
  content: '🌴';
  position: absolute;
  bottom: 60px;
  right: 8%;
  font-size: 8rem;
  opacity: 0.08;
  filter: blur(1px);
}

.hero-fog {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(26,13,13,0.3) 0%,
    transparent 30%,
    transparent 70%,
    rgba(26,13,13,0.8) 100%
  );
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(26,13,13,0.7) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 40px;
  padding-bottom: 80px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(46,204,113,0.08);
  border: 1px solid rgba(46,204,113,0.25);
  padding: 6px 18px;
  font-family: var(--font-detail);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #2ECC71;
  clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
  margin-bottom: 32px;
  animation: fadeIn 0.8s ease forwards;
}

.hero-logo {
  width: min(500px, 80vw);
  margin-bottom: 24px;
  filter: drop-shadow(0 0 40px rgba(199,44,44,0.5)) drop-shadow(0 0 80px rgba(199,44,44,0.2));
  animation: fadeInUp 0.9s ease 0.2s both;
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 4vw, 2.2rem);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  animation: fadeInUp 0.9s ease 0.4s both;
}

.hero-sub {
  font-family: var(--font-detail);
  font-size: clamp(0.95rem, 2.2vw, 1.1rem);
  color: var(--cream-muted);
  max-width: 480px;
  margin-bottom: 40px;
  animation: fadeInUp 0.9s ease 0.55s both;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeInUp 0.9s ease 0.7s both;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--font-detail);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-dim);
  animation: fadeIn 2s ease 1.5s both;
}

.scroll-arrow {
  width: 14px;
  height: 14px;
  border-right: 1.5px solid var(--gold);
  border-bottom: 1.5px solid var(--gold);
  transform: rotate(45deg);
  animation: scrollBounce 1.5s ease-in-out infinite;
  opacity: 0.6;
}

@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translateY(0); opacity: 0.6; }
  50% { transform: rotate(45deg) translateY(5px); opacity: 1; }
}

/* Hero particles */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--gold);
  border-radius: 50%;
  animation: particleFloat linear infinite;
  opacity: 0;
}

@keyframes particleFloat {
  0% { transform: translateY(100vh) translateX(0); opacity: 0; }
  10% { opacity: 0.6; }
  90% { opacity: 0.3; }
  100% { transform: translateY(-100px) translateX(30px); opacity: 0; }
}

/* --- STATUS BAR --- */
.status-bar {
  background: rgba(30,0,7,0.95);
  border-top: 1px solid rgba(212,161,76,0.2);
  border-bottom: 1px solid rgba(212,161,76,0.2);
  padding: 0;
  position: relative;
  z-index: 10;
  backdrop-filter: blur(8px);
}

.status-grid {
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  scrollbar-width: none;
}

.status-grid::-webkit-scrollbar { display: none; }

.status-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px 28px;
  gap: 4px;
  white-space: nowrap;
  flex: 1;
  min-width: 100px;
}

.status-label {
  font-family: var(--font-detail);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.status-value {
  font-family: var(--font-heading);
  font-size: 1rem;
  letter-spacing: 0.08em;
  color: var(--cream);
}

.status-value.online {
  color: #2ECC71;
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-divider {
  width: 1px;
  background: rgba(212,161,76,0.15);
  flex-shrink: 0;
  margin: 10px 0;
}

.copy-ip {
  cursor: pointer;
  color: var(--red-bright) !important;
  transition: color var(--transition);
}

.copy-ip:hover { color: var(--gold) !important; }

/* --- FEATURES --- */
.features {
  padding: var(--section-py) 0;
  background: var(--bg-deep);
  position: relative;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 1100px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* --- RULES PREVIEW --- */
.rules-preview {
  padding: var(--section-py) 0;
  background: var(--bg-maroon);
  position: relative;
  overflow: hidden;
}

.rules-preview::before {
  content: '';
  position: absolute;
  top: -60px; left: -10%;
  width: 120%;
  height: 80px;
  background: var(--bg-deep);
  transform: skewY(-2deg);
}

.rules-preview::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -10%;
  width: 120%;
  height: 80px;
  background: var(--bg-deep);
  transform: skewY(-2deg);
}

.rules-inner {
  position: relative;
  z-index: 1;
}

.rules-list {
  margin-bottom: 40px;
}

.rule-item {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 24px 0;
}

.rule-num {
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1;
  color: rgba(199,44,44,0.2);
  flex-shrink: 0;
  width: 48px;
}

.rule-content {
  flex: 1;
}

.rule-content h4 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 6px;
}

.rule-content p {
  font-family: var(--font-detail);
  font-size: 0.92rem;
  color: var(--cream-muted);
  line-height: 1.6;
}

.rule-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.rule-divider {
  height: 1px;
  background: linear-gradient(90deg, rgba(199,44,44,0.4) 0%, transparent 100%);
  position: relative;
}

.rule-divider::before {
  content: '';
  position: absolute;
  left: 0; top: -2px;
  width: 8px; height: 5px;
  background: var(--red-bright);
}

.rules-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* --- GALLERY --- */
.gallery {
  padding: var(--section-py) 0 0;
  background: var(--bg-deep);
}

.gallery-carousel {
  position: relative;
  overflow: hidden;
  margin-top: 0;
}

.gallery-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(.77,0,.18,1);
}

.gallery-slide {
  flex-shrink: 0;
  width: calc(33.333% - 12px);
  margin-right: 18px;
  padding: 0;
}

.gallery-img-wrap {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.gallery-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  position: relative;
}

.gallery-placeholder::before {
  content: '▶ PLAY';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  font-family: var(--font-detail);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.4);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 8px 16px;
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
  transition: all 0.3s ease;
}

.gallery-slide:hover .gallery-placeholder::before {
  color: var(--gold);
  border-color: rgba(212,161,76,0.5);
  background: rgba(0,0,0,0.2);
}

.gallery-label {
  font-family: var(--font-detail);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  background: rgba(0,0,0,0.5);
  padding: 4px 10px;
  backdrop-filter: blur(4px);
}

.gallery-frame {
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(212,161,76,0.2);
  pointer-events: none;
  transition: border-color 0.3s ease;
}

.gallery-frame::before,
.gallery-frame::after {
  content: '';
  position: absolute;
  width: 12px; height: 12px;
}

.gallery-frame::before {
  top: -1px; left: -1px;
  border-top: 2px solid var(--gold);
  border-left: 2px solid var(--gold);
}

.gallery-frame::after {
  bottom: -1px; right: -1px;
  border-bottom: 2px solid var(--gold);
  border-right: 2px solid var(--gold);
}

.gallery-slide:hover .gallery-frame {
  border-color: rgba(212,161,76,0.4);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  background: rgba(26,13,13,0.9);
  border: var(--border-gold);
  color: var(--gold);
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all var(--transition);
  clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%);
}

.carousel-btn:hover {
  background: rgba(199,44,44,0.3);
  border-color: var(--red-bright);
  color: var(--cream);
}

.carousel-btn.prev { left: 20px; }
.carousel-btn.next { right: 20px; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 24px 0;
}

.carousel-dot {
  width: 8px; height: 2px;
  background: rgba(212,161,76,0.3);
  cursor: pointer;
  transition: all var(--transition);
}

.carousel-dot.active {
  width: 24px;
  background: var(--gold);
}

.gallery-link-wrap {
  display: flex;
  justify-content: center;
  padding: 20px 0 80px;
}

@media (max-width: 900px) {
  .gallery-slide { width: calc(50% - 9px); }
}

@media (max-width: 600px) {
  .gallery-slide { width: calc(100% - 16px); }
}

/* --- LEADERBOARD TEASER --- */
.leaderboard-teaser {
  padding: var(--section-py) 0;
  background: var(--bg-darkest);
  position: relative;
}

.lb-inner {
  max-width: 860px;
  margin: 0 auto;
}

/* --- DISCORD CTA --- */
.discord-cta {
  padding: var(--section-py) 0;
  background: var(--bg-maroon);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.discord-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(88,101,242,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 50%, rgba(199,44,44,0.08) 0%, transparent 60%);
}

.discord-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}

.discord-icon {
  font-size: 3.5rem;
  margin-bottom: 20px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.discord-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 16px;
}

.discord-sub {
  font-family: var(--font-detail);
  font-size: 1rem;
  color: var(--cream-muted);
  margin-bottom: 36px;
  line-height: 1.7;
}

.discord-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 36px;
}

.discord-stat {
  padding: 0 32px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.discord-stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--gold);
  line-height: 1;
}

.discord-stat-label {
  font-family: var(--font-detail);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.discord-stat-div {
  width: 1px;
  height: 40px;
  background: rgba(212,161,76,0.2);
}
