/* ============================================================
   IMPACT INKED — Homepage Styles
   ============================================================ */

/* ---- Reset & Base ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-darkest:   #0e1130;
  --bg-dark:      #101638;
  --bg-card:      #1a2454;
  --cyan:         #22d3ee;
  --purple:       #a855f7;
  --purple-hover: #9333ea;
  --magenta:      #d946ef;
  --text:         #ffffff;
  --text-muted:   #a5a0bd;
  --border:       rgba(255, 255, 255, 0.08);
  --radius:       12px;
  --nav-h:        64px;
  --font-display: 'Sora', system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  background:
    radial-gradient(ellipse 1400px 900px at 15% 0%, rgba(59, 130, 246, 0.32), transparent 55%),
    radial-gradient(ellipse 1200px 800px at 100% 20%, rgba(34, 211, 238, 0.18), transparent 55%),
    var(--bg-darkest);
  background-attachment: fixed;
  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(--cyan), var(--purple));
  color: #0a0715;
  font-weight: 800;
}

.btn-cta:hover {
  background: linear-gradient(90deg, #17b8d4, #9333ea);
  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;
}

.nav-cta {
  padding: 9px 20px;
  font-size: 11px;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(13, 16, 45, 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(10, 13, 38, 0.97);
  border-bottom-color: var(--border);
}

.nav {
  display: flex;
  align-items: center;
  height: var(--nav-h);
  gap: 36px;
}

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo img {
  height: 42px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 22px;
  margin-left: auto;
}

.nav-links a {
  font-family: var(--font-display);
  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: 60vh;
  min-height: 480px;
  overflow: visible;
  margin: calc(var(--nav-h) + 20px) 10% 0;
}

.carousel {
  position: relative;
  width: 100%;
  height: 100%;
  user-select: none;
}

.carousel-arrow-prev,
.carousel-arrow-next {
  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;
}

.carousel-arrow-prev:hover,
.carousel-arrow-next:hover {
  background: rgba(0, 0, 0, 0.7);
}

.carousel-arrow-prev { left: -56px;  transform: translateY(-50%); }
.carousel-arrow-next { right: -56px; transform: translateY(-50%); }

.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;
}

.hero-bg {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

/* Dot indicators */
.carousel-dots {
  display: none;
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  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: var(--font-display);
  font-weight: 600;
  font-size: 30px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 8px 20px;
  border-radius: 6px;
  border: none;
  background: #211a38;
  color: var(--text);
  font-family: var(--font-display);
  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: #2c2348;
}

.filter-tab.active {
  background: var(--cyan);
  color: #0a0715;
}

/* 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;
  transition: transform 0.3s ease;
  display: block;
  color: inherit;
  text-decoration: none;
}

.game-card:hover {
  transform: scale(1.03);
}

.card-image-link {
  display: block;
}

.card-image {
  position: relative;
  overflow: hidden;
}

.card-image img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  background: rgba(21, 15, 40, 0.6);
  color: #fff;
  font-family: var(--font-display);
  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-vr-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  background: rgba(21, 15, 40, 0.75);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.05em;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-footer {
  position: relative;
  padding: 14px 16px 16px;
  background: var(--bg-card);
}

.card-footer h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  margin-bottom: 16px;
  line-height: 1.2;
  color: var(--text);
}

.card-platforms {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 2px;
}

.card-platforms a {
  color: #756f95;
  transition: color 0.2s;
  line-height: 1;
}

.card-platforms a:hover {
  color: #ffffff;
}

.card-platforms i {
  font-size: 1rem;
  display: block;
}

.card-platforms .no-link {
  color: #4a4560;
  cursor: default;
}

/* ============================================================
   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 {
  display: flex;
  align-items: center;
}

.footer-logo img {
  height: 36px;
  width: auto;
}

.footer-discord {
  color: var(--text-muted);
  font-size: 1.6rem;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s, transform 0.15s;
}

.footer-discord: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);
}

.footer-privacy-link {
  color: var(--text-muted);
  text-decoration: underline;
  transition: color 0.2s;
}

.footer-privacy-link:hover {
  color: var(--text);
}

/* ============================================================
   ABOUT / MISSION SECTION
   ============================================================ */
.about-inked {
  padding: 80px 0;
  background: var(--bg-darkest);
  border-top: 1px solid var(--border);
}

.about-inked-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.about-inked h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 30px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 24px;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.about-inked p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-inked p:last-child {
  margin-bottom: 0;
}

/* ============================================================
   PITCH CTA
   ============================================================ */
.pitch-cta {
  padding: 72px 0;
  background:
    linear-gradient(135deg, rgba(59, 130, 246, 0.16), rgba(34, 211, 238, 0.08)),
    var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.pitch-cta-inner {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.pitch-cta h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.8vw, 2.1rem);
  line-height: 1.4;
  margin-bottom: 32px;
}

.pitch-cta-btn {
  padding: 16px 36px;
  font-size: 0.9rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .container {
    padding: 0 32px;
  }

  .hero {
    margin: calc(var(--nav-h) + 16px) 6% 0;
  }

  .games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 20px;
  }

  .nav-links {
    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(10, 13, 38, 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 {
    height: 52vh;
    min-height: 340px;
    margin: calc(var(--nav-h) + 12px) 0 0;
    overflow: hidden;
    border-radius: 0;
  }

  .carousel-slide {
    border-radius: 0;
  }

  .carousel-arrow-prev,
  .carousel-arrow-next {
    display: none;
  }

  .featured-games {
    padding: 52px 0;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .card-footer h3 {
    font-size: 15px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .about-inked {
    padding: 52px 0;
  }

  .about-inked h2 {
    font-size: 22px;
  }

  .pitch-cta {
    padding: 48px 0;
  }
}

@media (max-width: 480px) {
  .hero {
    height: 48vh;
    min-height: 300px;
    margin: calc(var(--nav-h) + 12px) 0 0;
  }

  .games-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .filter-tabs {
    gap: 6px;
  }

  .filter-tab {
    padding: 7px 14px;
    font-size: 12px;
  }
}
