/* ============================================================
   FLAT2VR STUDIOS — Homepage Styles
   ============================================================ */

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

:root {
  --bg-darkest:   #060f16;
  --bg-dark:      #060f16;
  --bg-card:      #0d1a28;
  --purple:       #7c3aed;
  --purple-hover: #6d28d9;
  --teal:         #06b6d4;
  --teal-dark:    #0891b2;
  --text:         #ffffff;
  --text-muted:   #94a3b8;
  --border:       rgba(255, 255, 255, 0.07);
  --radius:       12px;
  --nav-h:        64px;
}

@font-face {
  font-family: 'AnotherDanger';
  src: url('../assets/fonts/AnotherDanger-Demo.otf') format('opentype');
  font-display: swap;
}

@font-face {
  font-family: 'Quatro';
  src: url('../assets/fonts/Quatro-Medium.otf') format('opentype'),
       url('../assets/fonts/Quatro-Medium.ttf') format('truetype'),
       url('../assets/fonts/QuatroMedium.otf') format('opentype');
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: 'Quatro';
  src: url('../assets/fonts/Quatro-Regular.otf') format('opentype'),
       url('../assets/fonts/Quatro-Regular.ttf') format('truetype'),
       url('../assets/fonts/QuatroRegular.otf') format('opentype');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Quatro';
  src: url('../assets/fonts/Quatro-Bold.otf') format('opentype'),
       url('../assets/fonts/Quatro-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  background-color: var(--bg-darkest);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

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

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 26px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s, transform 0.15s;
  white-space: nowrap;
}

.btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--purple);
  color: #fff;
}

.btn-primary:hover {
  background: var(--purple-hover);
  opacity: 1;
}

.btn-cta {
  background: linear-gradient(90deg, var(--teal), #22d3ee);
  color: #03111a;
  font-weight: 800;
}

.btn-cta:hover {
  background: linear-gradient(90deg, var(--teal-dark), var(--teal));
  opacity: 1;
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.55);
}

.btn-outline:hover {
  border-color: #fff;
  opacity: 1;
}

.btn-merch {
  background: #cc66ff;
  color: #000000;
  font-family: 'Quatro', system-ui, sans-serif;
  font-weight: 500;
  font-size: 12px;
  padding: 9px 21px;
  letter-spacing: 0.08em;
}

.btn-merch:hover {
  background: #bb55ee;
  opacity: 1;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(6, 15, 22, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s;
}

.site-header.scrolled {
  background: rgba(6, 15, 22, 0.97);
  border-bottom-color: var(--border);
}

.nav {
  display: flex;
  align-items: center;
  height: var(--nav-h);
  gap: 36px;
}

.nav-logo img {
  height: 29px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 22px;
  margin-left: auto;
}

.nav-links a {
  font-family: 'Quatro', system-ui, sans-serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  transition: opacity 0.2s;
}

.nav-links a:hover {
  opacity: 0.75;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ============================================================
   HERO CAROUSEL
   ============================================================ */
.hero {
  position: relative;
  isolation: isolate;
  height: 82vh;
  min-height: 480px;
  overflow: visible;
  margin: calc(var(--nav-h) + 20px) 10% 0;
}

/* Carousel wrapper fills the hero */
.carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Each slide stacked absolutely; translateX used for prev/next peek */
.carousel-slide {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  overflow: hidden;
  opacity: 0;
  transform: translateX(0);
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.5s ease;
  pointer-events: none;
}

.carousel-slide.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  z-index: 2;
}

.carousel-slide.prev {
  opacity: 0.75;
  transform: translateX(calc(-100% - 20px));
  z-index: 1;
}

.carousel-slide.next {
  opacity: 0.75;
  transform: translateX(calc(100% + 20px));
  z-index: 1;
}

/* Background image layer */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}


/* Text content sits above the bg */
.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 44px 60px 52px;
}

.hero-text {
  max-width: 520px;
  margin-top: -20px;
}

.carousel-slide:first-child .hero-text {
  margin-top: -40px;
}

.carousel-slide:first-child .hero-game-logo {
  margin-top: 30px;
}

.hero-game-logo {
  max-width: 200px;
  width: 100%;
  margin-bottom: 20px;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.6));
}

.hero-game-logo.wrath-logo {
  max-width: 300px;
}

.hero-text h1 {
  font-family: 'Quatro', system-ui, sans-serif;
  font-size: clamp(2.52rem, 4.95vw, 4.14rem);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 32px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6);
}

/* When there's no logo image, the h1 gets extra top space */
.hero-title-only {
  margin-top: 0;
  font-size: clamp(2.8rem, 6vw, 4.5rem) !important;
}

.hero-text p {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 420px;
  line-height: 1.75;
}

.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Hero banner button overrides */
.carousel-slide .hero-btns {
  flex-wrap: nowrap;
  align-items: stretch;
}

.carousel-slide .hero-btns .btn {
  flex: 1;
  justify-content: center;
  font-family: 'Quatro', system-ui, sans-serif;
  font-weight: 500;
  font-size: 10.9px;
  padding: 11px 14px;
}

.carousel-slide .hero-btns .btn:only-child {
  flex: 0 0 auto;
}

.hero-cta-img {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.hero-cta-img img {
  height: 32px;
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.4));
  transition: opacity 0.2s, transform 0.15s;
}

.hero-cta-img:hover img {
  opacity: 0.88;
  transform: translateY(-1px);
}

.carousel-slide .btn-cta {
  background: #00cccc;
  color: #060f16;
}

.carousel-slide .btn-cta:hover {
  background: #00aaaa;
  opacity: 1;
}

.carousel-slide .btn-outline {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid #00cccc;
  color: #00cccc;
}

.carousel-slide .btn-outline:hover {
  background: rgba(0, 0, 0, 0.65);
  border-color: #00cccc;
  opacity: 1;
}

/* Dot indicators */
.carousel-dots {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 10px;
  align-items: center;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.5);
  cursor: pointer;
  padding: 0;
  transition: background 0.3s, transform 0.3s, border-color 0.3s;
}

.dot.active {
  background: #fff;
  border-color: #fff;
  transform: scale(1.35);
}

.dot:hover:not(.active) {
  background: rgba(255, 255, 255, 0.6);
}


/* ============================================================
   FEATURED GAMES
   ============================================================ */
.featured-games {
  background: var(--bg-dark);
  padding: 80px 0;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
  flex-wrap: wrap;
  gap: 16px;
}

.section-header h2 {
  font-family: 'Quatro', system-ui, sans-serif;
  font-weight: 500;
  font-size: 30px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Filter tabs */
.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 8px 20px;
  border-radius: 6px;
  border: none;
  background: #36373b;
  color: var(--text);
  font-family: 'Quatro', system-ui, sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.filter-tab:hover:not(.active) {
  background: #46474b;
}

.filter-tab.active {
  background: #00cccc;
  color: #060f16;
}

/* Game cards grid */
.games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}

.game-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  cursor: pointer;
}

.game-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.card-image {
  position: relative;
  overflow: hidden;
}

.card-image img {
  display: block;
  width: 100%;
  transition: transform 0.4s ease;
}

.game-card:hover .card-image img {
  transform: scale(1.05);
}

.card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  background: rgba(54, 55, 59, 0.5);
  color: #fff;
  font-family: 'Quatro', system-ui, sans-serif;
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 13px;
  border-radius: 5px;
  border: 1px solid #ffffff;
  white-space: nowrap;
}

.card-footer {
  padding: 14px 16px 16px;
  background: #051926;
}

.card-footer h3 {
  font-family: 'Quatro', system-ui, sans-serif;
  font-weight: 400;
  font-size: 19px;
  margin-bottom: 16px;
  line-height: 1.2;
  color: var(--text);
}

.card-footer h3 span {
  display: block;
  font-size: 16px;
  font-weight: 400;
  color: var(--text-muted);
}

.card-platforms {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 2px;
}

.card-platforms i {
  font-size: 1rem;
  color: #6b7280;
  transition: color 0.2s;
  cursor: pointer;
}

.card-platforms i:hover {
  color: #ffffff;
}

/* ============================================================
   MERCH SPOTLIGHT
   ============================================================ */
.spotlight {
  background: var(--bg-darkest);
  padding: 60px 0;
}

.spotlight-carousel {
  position: relative;
}

.spot-overflow {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
}

.spot-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.spot-slide {
  min-width: 100%;
  flex-shrink: 0;
}

.spotlight-card {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

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

.spotlight-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.spotlight-content {
  position: relative;
  z-index: 1;
  width: 52%;
  padding: 48px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.spotlight-logo {
  max-width: 184px;
  width: 100%;
  margin-bottom: 2px;
  align-self: flex-start;
}

[data-theme="light"] .spotlight-logo {
  max-width: 166px;
}

.spotlight-headline {
  font-family: 'Quatro', system-ui, sans-serif;
  font-weight: 700;
  font-size: 40px;
  color: #fff;
  margin-bottom: 28px;
  line-height: 1.1;
}

[data-theme="light"] .spotlight-headline {
  color: #0d1a28;
}

.spotlight-headline--nowrap {
  white-space: nowrap;
}

.spotlight-logo.wrath-logo {
  max-width: 260px;
}

.spot-cta-img {
  display: inline-flex;
  align-self: flex-start;
}

.spot-cta-img img {
  height: 32px;
  width: auto;
  display: block;
  transition: opacity 0.2s, transform 0.15s;
}

.spot-cta-img:hover img {
  opacity: 0.88;
  transform: translateY(-1px);
}

.spotlight-indicators {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  align-items: center;
}

.spot-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.5);
  cursor: pointer;
  padding: 0;
  transition: background 0.3s, transform 0.3s, border-color 0.3s;
}

.spot-dot.active {
  background: #fff;
  border-color: #fff;
  transform: scale(1.35);
}

.spot-dot:hover:not(.active) {
  background: rgba(255, 255, 255, 0.6);
}

.spot-arrow {
  position: absolute;
  top: 50%;
  z-index: 10;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.2s;
}

.spot-arrow:hover {
  background: rgba(0, 0, 0, 0.7);
}

.spot-prev { left: 0; transform: translate(-50%, -50%); }
.spot-next { right: 0; transform: translate(50%, -50%); }

/* ============================================================
   NEWSLETTER
   ============================================================ */
.newsletter {
  background: url('../assets/images/backgrounds/Join newsletter background-31.png') center/cover no-repeat;
  padding: 80px 0;
}

.newsletter-inner {
  display: flex;
  align-items: center;
  gap: 60px;
  flex-wrap: wrap;
}

.newsletter-text {
  flex: 1;
  min-width: 260px;
}

.newsletter-text h2 {
  font-family: 'Quatro', system-ui, sans-serif;
  font-weight: 700;
  font-size: 60px;
  line-height: 1.05;
  margin-bottom: 16px;
}

.newsletter-text p {
  font-family: 'Quatro', system-ui, sans-serif;
  font-weight: 400;
  font-size: 20px;
  color: rgba(255, 255, 255, 0.75);
  max-width: 440px;
  line-height: 1.6;
}

.newsletter-form {
  flex: 1;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.newsletter-form-row {
  display: flex;
  gap: 12px;
}

.newsletter-policy {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
  line-height: 1.4;
}

.newsletter-form input[type="email"] {
  flex: 1;
  padding: 12px 16px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.btn-subscribe {
  background: #00cccc;
  color: #060f16;
  font-family: 'Quatro', system-ui, sans-serif;
  font-weight: 500;
  white-space: nowrap;
}

.btn-subscribe:hover {
  background: #00aaaa;
  opacity: 1;
}

.newsletter-form input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.newsletter-form input[type="email"]:focus {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.15);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--bg-darkest);
  border-top: 1px solid var(--border);
  padding: 40px 0 28px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 28px;
}

.footer-logo img {
  height: 30px;
  width: auto;
}

.social-links {
  display: flex;
  gap: 24px;
}

.social-links a {
  color: var(--text-muted);
  font-size: 1.3rem;
  transition: color 0.2s, transform 0.15s;
  display: inline-flex;
  align-items: center;
}

.social-links a:hover {
  color: var(--text);
  transform: translateY(-2px);
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.75rem;
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .spotlight-inner {
    flex-direction: column;
  }

  .spotlight-image {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(6, 15, 22, 0.98);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
    z-index: 99;
  }

  .nav-links.open a {
    font-size: 1rem;
    color: var(--text);
  }

  .hero-btns {
    flex-direction: column;
    align-items: flex-start;
  }

  .games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .newsletter-inner {
    flex-direction: column;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .social-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

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