/* ==========================================================================
   REFRACT - CHAPTER 4 SEASON OG (SEASON 27) DESIGN SYSTEM
   Authentic Epic Games Fortnite Microsite Styling
   ========================================================================== */

:root {
  --font-burbank: 'Burbank', 'Burbank Big Condensed Black', Impact, -apple-system, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  
  /* Fortnite Season OG Palette */
  --og-yellow: #ffda0b;
  --og-yellow-hover: #ffe642;
  --og-cyan: #00f0ff;
  --og-cyan-glow: rgba(0, 240, 255, 0.45);
  --og-purple: #8432f8;
  --og-purple-dark: #370d6b;
  --og-blue-deep: #090e1f;
  --og-blue-card: #12182c;
  --og-slate-dark: #191a24;
  --og-nav-bg: #1c1d27;
  --og-white: #ffffff;
  --og-muted: #a4a9c3;
  --og-rarity-legendary: #ea8e24;
  --og-rarity-epic: #a335ee;
  
  --site-nav-height: 54px;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--og-blue-deep);
  color: var(--og-white);
  font-family: var(--font-body);
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  background: #090e1f;
  color: var(--og-white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

img {
  max-width: 100%;
  display: block;
}

/* ==========================================================================
   HEADER & NAVIGATION BAR (Authentic Epic Games Top Nav)
   ========================================================================== */
.epic-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--site-nav-height);
  background: var(--og-nav-bg);
  border-bottom: 2px solid rgba(255, 255, 255, 0.08);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px 0 0;
  backdrop-filter: blur(12px);
}

.nav-left {
  display: flex;
  align-items: center;
  height: 100%;
}

.brand-shield {
  display: flex;
  align-items: center;
  gap: 10px;
  height: var(--site-nav-height);
  padding: 0 18px;
  background: rgba(0, 0, 0, 0.25);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
  transition: background 0.2s;
}

.brand-shield:hover {
  background: rgba(0, 0, 0, 0.4);
}

.brand-logo-img {
  width: 34px;
  height: 34px;
}

.brand-name {
  font-family: var(--font-burbank);
  font-size: 22px;
  font-style: italic;
  font-weight: 900;
  letter-spacing: 1px;
  color: var(--og-yellow);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-badge {
  font-size: 11px;
  background: var(--og-purple);
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0;
  font-style: normal;
}

.nav-links {
  display: flex;
  align-items: center;
  height: 100%;
  list-style: none;
  margin-left: 12px;
}

.nav-item {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-link {
  height: 100%;
  padding: 0 15px;
  display: flex;
  align-items: center;
  font-family: var(--font-burbank);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: #c0c4d6;
  text-transform: uppercase;
  transition: color 0.2s;
  position: relative;
  white-space: nowrap;
}

.nav-link:hover, .nav-item.active .nav-link {
  color: #ffffff;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: 0;
  height: 3px;
  background: var(--og-yellow);
  transition: left 0.2s ease, right 0.2s ease;
}

.nav-link:hover::after, .nav-item.active .nav-link::after {
  left: 12px;
  right: 12px;
}

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: #141622;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 2px solid var(--og-yellow);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
  padding: 6px 0;
  border-radius: 0 0 8px 8px;
}

.nav-item.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item a {
  display: block;
  padding: 10px 18px;
  font-family: var(--font-burbank);
  font-size: 14px;
  color: #d1d5eb;
  transition: background 0.15s, color 0.15s, padding-left 0.15s;
}

.dropdown-item a:hover {
  background: rgba(255, 218, 11, 0.1);
  color: var(--og-yellow);
  padding-left: 22px;
}

/* Nav Right Actions */
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.server-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(0, 240, 255, 0.25);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  color: var(--og-cyan);
}

.server-dot {
  width: 8px;
  height: 8px;
  background: #00ff88;
  border-radius: 50%;
  box-shadow: 0 0 8px #00ff88;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.discord-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: #5865F2;
  border-radius: 8px;
  color: #fff;
  transition: transform 0.2s, background 0.2s;
}

.discord-nav-btn:hover {
  background: #4752c4;
  transform: scale(1.05);
}

.download-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 24px;
  background: var(--og-yellow);
  color: #000;
  font-family: var(--font-burbank);
  font-size: 18px;
  font-style: italic;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  clip-path: polygon(0% 12%, 100% 0%, 96% 100%, 4% 92%);
  transition: transform 0.15s ease, background 0.15s ease, filter 0.15s ease;
  box-shadow: 0 4px 14px rgba(255, 218, 11, 0.3);
}

.download-cta-btn:hover {
  background: var(--og-yellow-hover);
  transform: scale(1.04) rotate(-0.5deg);
  filter: brightness(1.1);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
}

.mobile-menu-toggle span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: 0.3s;
}

/* ==========================================================================
   HERO BANNER SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 85vh;
  margin-top: var(--site-nav-height);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 60px 20px 80px;
  background: #090e1f;
}

.hero-video-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.hero-video-bg video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

.hero-backdrop-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 14, 31, 0.25) 0%, rgba(9, 14, 31, 0.6) 70%, #090e1f 100%);
  pointer-events: none;
  z-index: 1;
}

.hero-rift-glow {
  display: none !important;
}

@keyframes riftPulse {
  0% { opacity: 0.6; transform: translateX(-50%) scale(0.95); }
  100% { opacity: 1; transform: translateX(-50%) scale(1.1); }
}

.hero-container {
  position: relative;
  z-index: 3;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-duration-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid var(--og-cyan);
  border-radius: 30px;
  font-family: var(--font-burbank);
  font-size: 15px;
  font-weight: 900;
  color: var(--og-cyan);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 22px;
  box-shadow: 0 0 16px var(--og-cyan-glow);
  transform: skew(-4deg);
}

.hero-star-icon {
  width: 18px;
  height: 18px;
  filter: drop-shadow(0 0 4px var(--og-yellow));
}

.hero-season-tag {
  font-family: var(--font-burbank);
  font-size: clamp(22px, 3.2vw, 36px);
  font-style: italic;
  font-weight: 900;
  color: var(--og-yellow);
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 218, 11, 0.4);
  margin-bottom: 6px;
  transform: skew(-6deg);
}

.hero-main-title {
  font-family: var(--font-burbank);
  font-size: clamp(56px, 9vw, 120px);
  font-style: italic;
  font-weight: 900;
  line-height: 0.88;
  text-transform: uppercase;
  color: #ffffff;
  letter-spacing: -1px;
  text-shadow: 0 6px 0 #1b0933, 0 12px 28px rgba(0, 0, 0, 0.9);
  margin-bottom: 24px;
  transform: skew(-6deg);
}

.hero-main-title span {
  display: block;
  color: var(--og-yellow);
  text-shadow: 0 6px 0 #8c6700, 0 12px 28px rgba(0, 0, 0, 0.9);
}

.hero-description {
  max-width: 720px;
  font-size: clamp(16px, 2vw, 21px);
  font-weight: 600;
  color: #e0e4f5;
  line-height: 1.4;
  margin-bottom: 34px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 32px;
}

.btn-primary-og {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 42px;
  background: var(--og-yellow);
  color: #000;
  font-family: var(--font-burbank);
  font-size: 26px;
  font-style: italic;
  font-weight: 900;
  text-transform: uppercase;
  clip-path: polygon(0% 14%, 100% 4%, 96% 100%, 4% 90%);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.btn-primary-og:hover {
  transform: scale(1.06) rotate(-1deg);
  filter: brightness(1.1);
  background: #fff;
}

.btn-secondary-og {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 36px;
  background: rgba(18, 24, 44, 0.85);
  color: #fff;
  border: 2px solid var(--og-cyan);
  font-family: var(--font-burbank);
  font-size: 24px;
  font-style: italic;
  font-weight: 900;
  text-transform: uppercase;
  clip-path: polygon(4% 0%, 100% 8%, 96% 96%, 0% 100%);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn-secondary-og:hover {
  transform: scale(1.05);
  background: rgba(0, 240, 255, 0.25);
  border-color: #fff;
  color: #fff;
}

.hero-trailer-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 10px 22px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 40px;
  font-family: var(--font-burbank);
  font-size: 17px;
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hero-trailer-btn:hover {
  background: rgba(0, 240, 255, 0.2);
  border-color: var(--og-cyan);
  transform: translateY(-2px);
  box-shadow: 0 0 16px var(--og-cyan-glow);
}

.play-triangle-circle {
  width: 32px;
  height: 32px;
  background: var(--og-yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-triangle-circle::after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 10px solid #000;
  margin-left: 2px;
}

/* ==========================================================================
   COMMUNITY & SERVER SUPPORT (Inspired by CUBE Supporter Section)
   ========================================================================== */
.support-section {
  position: relative;
  padding: 90px 20px;
  background: radial-gradient(circle at 75% 50%, rgba(132, 50, 248, 0.3) 0%, rgba(18, 20, 36, 0.95) 70%),
              url('../assets/images/battle_blueprint.png') center/cover no-repeat;
  overflow: hidden;
}

.support-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 13, 24, 0.82);
  backdrop-filter: blur(6px);
}

.support-container {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.support-copy {
  max-width: 580px;
}

.support-copy h2 {
  font-family: var(--font-burbank);
  font-size: clamp(38px, 5vw, 64px);
  font-style: italic;
  font-weight: 900;
  text-transform: uppercase;
  color: #fff;
  line-height: 0.92;
  text-shadow: 0 4px 14px rgba(55, 13, 107, 0.9);
  margin-bottom: 16px;
  transform: skew(-6deg);
}

.support-copy p {
  font-family: var(--font-burbank);
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 900;
  text-transform: uppercase;
  color: var(--og-cyan);
  line-height: 1.1;
  margin-bottom: 12px;
}

.support-copy small {
  display: block;
  font-size: 16px;
  color: #c9ceea;
  line-height: 1.5;
  margin-bottom: 26px;
}

.support-btn {
  display: inline-block;
  padding: 16px 44px;
  background: var(--og-yellow);
  color: #000;
  font-family: var(--font-burbank);
  font-size: 26px;
  font-style: italic;
  font-weight: 900;
  text-transform: uppercase;
  clip-path: polygon(0% 16%, 100% 6%, 98% 100%, 2% 90%);
  transition: transform 0.2s, background 0.2s;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.support-btn:hover {
  background: #fff;
  transform: scale(1.05) rotate(-0.5deg);
}

.support-art-wrap {
  max-width: 440px;
  width: 100%;
}

.support-art-wrap img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* ==========================================================================
   FOOTER (Authentic Epic Games Dark Footer)
   ========================================================================== */
.epic-footer {
  background: #11121a;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 50px 20px 40px;
  color: #7b819e;
  font-size: 13px;
}

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

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 34px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 16px;
}

.social-icon-btn {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #d1d5eb;
  transition: all 0.2s;
}

.social-icon-btn:hover {
  background: var(--og-yellow);
  color: #000;
  transform: translateY(-2px);
}

.back-to-top-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: #fff;
  transition: all 0.2s;
}

.back-to-top-btn:hover {
  border-color: var(--og-yellow);
  color: var(--og-yellow);
  transform: translateY(-3px);
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 28px;
  margin-bottom: 40px;
}

.footer-col-title {
  font-family: var(--font-burbank);
  font-size: 16px;
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
  margin-bottom: 14px;
  letter-spacing: 0.5px;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links-list a {
  color: #8c93b3;
  transition: color 0.15s;
}

.footer-links-list a:hover {
  color: #fff;
}

.footer-platform-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  padding: 24px 0;
  margin-bottom: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.platform-logo-item {
  height: 28px;
  width: auto;
  opacity: 0.5;
  filter: grayscale(1);
  transition: opacity 0.2s, filter 0.2s;
}

.platform-logo-item:hover {
  opacity: 0.9;
  filter: grayscale(0);
}

.footer-legal-copy {
  text-align: center;
  max-width: 850px;
  margin: 0 auto;
  line-height: 1.6;
  color: #626782;
}

/* ==========================================================================
   VIDEO TRAILER MODAL
   ========================================================================== */
.video-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(14px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
}

.video-modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.video-modal-box {
  position: relative;
  width: 100%;
  max-width: 960px;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 240, 255, 0.3);
  border: 2px solid var(--og-cyan);
}

.video-modal-close {
  position: absolute;
  top: -46px;
  right: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 24px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.video-modal-close:hover {
  background: var(--og-yellow);
  color: #000;
  transform: scale(1.1);
}

.video-modal-box iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ==========================================================================
   SUB-PAGE OVERLAYS (Download & Mode Routing)
   ========================================================================== */
.route-overlay-frame {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  z-index: 9999;
  background: #090e1f;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 992px) {
  .nav-links { display: none; }
  .mobile-menu-toggle { display: flex; }
  
  .support-container {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .hero-main-title {
    font-size: 52px;
  }
  
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }
  
  .btn-primary-og, .btn-secondary-og {
    width: 100%;
  }
}
