/* Basic reset */
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }

:root {
  --content-width: 980px;
  --color-primary: #2C3E75;
  --color-secondary: #6C74A6;
  --color-accent: #F6C26B;
  --color-accent-cyan: #7BD6FF;
  --color-dark: #1A1F3B;
  --color-text: #F1F2F7;
}

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--color-text);
}

/* HERO background */
.hero {
  position: relative;
  min-height: 100vh;

  display: grid;
  place-items: center;
  padding: 24px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("images/hero.png") center/cover no-repeat fixed;
  filter: saturate(1.1) contrast(1.05);
  z-index: 0;
}

/* Darken + frame the hero */
.overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 30%, rgba(0,0,0,0.25), rgba(0,0,0,0.75)),
    linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.6));
  z-index: 1;
}

/* Layout */
.content {
  position: relative;
  max-width: var(--content-width);
  width: 100%;
  display: grid;
  gap: 18px;
  z-index: 2;

  align-content: start;
  padding-top: 104px;
}

/* Shared nav */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  padding: 10px 24px;
  border-radius: 0;
  background: rgba(26,31,59,0.88);
  border-bottom: 1px solid rgba(241,242,247,0.18);
  backdrop-filter: blur(8px);
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text);
  text-decoration: none;
  font-weight: 700;
}

.nav-brand-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: inline-block;
  text-decoration: none;
  color: rgba(241,242,247,0.92);
  border-radius: 10px;
  border: 1px solid transparent;
  padding: 8px 12px;
  font-weight: 600;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: rgba(123,214,255,0.14);
  border-color: rgba(123,214,255,0.34);
  color: var(--color-text);
}

.nav-links a.active {
  background: rgba(246,194,107,0.25);
  border-color: rgba(246,194,107,0.6);
  color: var(--color-text);
}

.site-nav .active {
  background: rgba(246,194,107,0.25);
  border: 1px solid rgba(246,194,107,0.6);
}

/* Brand / title area */
.brand {
  width: 100%;
  text-align: center;
  padding: 20px 0;
}

.brand-row {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 14px;
  padding: 10px 14px;
  border-radius: 18px;
  background: rgba(108,116,166,0.28);
  border: 1px solid rgba(241,242,247,0.16);
  backdrop-filter: blur(8px);
}

.brand-logo {
  width: 96px;
  height: 96px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.45));
  margin-right: 30px;
}

.brand-text h1 {
  margin: 0;
  font-size: clamp(30px, 5vw, 46px);
  letter-spacing: 0.5px;
  line-height: 1.05;
  text-shadow:
    0 2px 6px rgba(0,0,0,0.6),
    0 0 18px rgba(123, 214, 255, 0.4);
}

.tagline {
  opacity: 0.95;
  text-shadow: 0 8px 18px rgba(0,0,0,.55);
  text-align: right;
  margin-right: 10px;
  margin-bottom: 1px;
}

/* =========================
   Carousel
========================= */

.carousel {
  margin: 10px auto 6px;
  max-width: var(--content-width);
  width: 100%;
  position: relative;
}

.carousel-track {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  aspect-ratio: 16 / 9;
  background: rgba(26,31,59,0.74);
  border: 1px solid rgba(241,242,247,0.16);
  box-shadow:
    0 0 24px rgba(246,194,107,0.24),
    0 0 50px rgba(123,214,255,0.16),
    0 20px 50px rgba(26,31,59,0.55);
}

.carousel-slide {
  display: none;
  width: 100%;
  height: 100%;
  position: relative;
}

.carousel-slide.active {
  display: block;
}

.carousel-media {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  display: block;
  background: var(--color-dark);
}

/* Trailer play button */
.carousel-play {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 68px;
  border-radius: 999px;
  border: 1px solid rgba(241,242,247,0.25);
  background: rgba(26,31,59,0.65);
  color: var(--color-text);
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 14px 30px rgba(0,0,0,.4);
  backdrop-filter: blur(6px);
  transition: transform 140ms ease, background 140ms ease, opacity 140ms ease;
}

.carousel-play svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
  transform: translateX(2px);
}

.carousel-play:hover {
  background: rgba(44,62,117,0.78);
  transform: translate(-50%, -50%) scale(1.04);
}

.carousel-play:active {
  transform: translate(-50%, -50%) scale(0.98);
  opacity: 0.9;
}

.carousel-play.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Arrows */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  border: 1px solid rgba(241,242,247,0.24);
  background: rgba(26,31,59,0.66);
  color: var(--color-text);
  cursor: pointer;
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 24px rgba(0,0,0,.35);
  transition: transform 140ms ease, background 140ms ease, opacity 140ms ease;
}

.carousel-arrow:hover {
  background: rgba(44,62,117,0.78);
  transform: translateY(-50%) scale(1.03);
}

.carousel-arrow:active {
  transform: translateY(-50%) scale(0.98);
  opacity: 0.9;
}

.carousel-arrow.prev { left: 10px; }
.carousel-arrow.next { right: 10px; }

/* Dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.carousel-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(241,242,247,0.36);
  border: none;
  cursor: pointer;
  padding: 0;
}

.carousel-dots .dot.active {
  background: linear-gradient(
    135deg,
    rgba(246,194,107,1),
    rgba(123,214,255,1)
  );
}

/* Card */
.card {
  position: relative;
  margin: 0 auto;
  max-width: var(--content-width);
  width: 100%;

  background: rgba(26, 31, 59, 0.85);
  border: 1px solid rgba(246, 194, 107, 0.4);
  border-radius: 18px;
  padding: 22px;
  backdrop-filter: blur(10px);
  box-shadow:
    0 20px 40px rgba(0,0,0,0.6),
    0 0 40px rgba(246, 194, 107, 0.15);
  text-align: center;
}

.info-card {
  text-align: left;
}

.page-card {
  max-width: var(--content-width);
  text-align: left;
}

.page-card h2 {
  margin-bottom: 8px;
}

.feature-list,
.asset-list {
  margin: 8px 0 18px;
  padding-left: 20px;
}

.feature-list li,
.asset-list li {
  margin: 6px 0;
  line-height: 1.5;
}

.fact-sheet {
  margin: 8px 0 18px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.fact-sheet div {
  border: 1px solid rgba(241,242,247,0.14);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(44,62,117,0.36);
  min-width: 0;
}

.fact-sheet dt {
  margin: 0;
  font-weight: 700;
}

.fact-sheet dd {
  margin: 4px 0 0;
}

.press-gallery {
  margin: 10px 0 18px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.press-gallery img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(241,242,247,0.18);
  display: block;
}

.page-card .buttons {
  justify-items: start;
}

.page-card .btn.steam {
  min-width: min(420px, 100%);
}

.page-card .btn.support {
  min-width: min(300px, 100%);
}

.steam-logo {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 52px;
  height: auto;
  pointer-events: none;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,.45));
  opacity: 0.95;
}

.card h2 { margin: 0 0 8px; }
.card p { margin: 8px 0; line-height: 1.5; }

/* Buttons */
.buttons {
  display: grid;
  gap: 10px;
  justify-items: center;
  margin-top: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.2px;
  border: 1px solid rgba(241,242,247,0.24);
  transition: transform 140ms ease, filter 140ms ease, opacity 140ms ease;
  user-select: none;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0px); opacity: 0.95; }

/* Big primary Steam button */
.btn.steam {
  min-width: min(520px, 92%);
  padding: 14px 18px;
  font-size: 1.05rem;

  color: #1A1F3B;
  font-weight: 800;
  background: linear-gradient(135deg, #F6C26B, #E9A84F);
  box-shadow:
    0 12px 25px rgba(0,0,0,0.4),
    0 0 25px rgba(246,194,107,0.5);
}

.btn.steam:hover {
  transform: translateY(-2px);
  box-shadow:
    0 18px 35px rgba(0,0,0,0.5),
    0 0 35px rgba(246,194,107,0.7);
}

/* Smaller support button */
.btn.support {
  min-width: min(360px, 78%);
  padding: 10px 16px;
  font-size: 0.95rem;

  color: rgba(241,242,247,0.94);
  background: linear-gradient(
    135deg,
    rgba(44,62,117,0.72),
    rgba(123,214,255,0.24)
  );
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
}

/* Small text under buttons */
.small {
  margin-top: 14px;
  font-size: 0.95rem;
  opacity: 0.95;
}

.small a,
.asset-list a,
.page-link {
  color: var(--color-accent-cyan);
}

.page-link {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Footer */
.footer {
  width: 100%;
  max-width: var(--content-width);
  font-size: 0.9rem;
  opacity: 0.9;
  background: rgba(26,31,59,0.72);
  border: 1px solid rgba(241,242,247,0.14);
  border-radius: 10px;
  padding: 10px 14px;
  text-shadow: 0 6px 18px rgba(0,0,0,.6);
  text-align: center;
  margin-bottom: 8px;
}

/* Mobile tweaks */
@media (max-width: 520px) {
  .content {
    padding-top: 160px;
  }

  .site-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 10px 12px;
  }

  .nav-brand {
    justify-content: center;
  }

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

  .nav-links a {
    padding: 7px 10px;
  }

  .brand-row {
    gap: 10px;
    padding: 10px 12px;
  }

  .brand-logo {
    width: 48px;
    height: 48px;
    margin-right: 6px;
  }

  .tagline {
    text-align: left;
    margin-right: 0;
  }

  .carousel-play {
    width: 54px;
    height: 54px;
  }

  .carousel-play svg {
    width: 22px;
    height: 22px;
  }

  .carousel-arrow {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }

  .carousel-arrow.prev { left: 6px; }
  .carousel-arrow.next { right: 6px; }

  .steam-logo {
    width: 40px;
    top: 8px;
    right: 8px;
  }

  .page-card .buttons {
    justify-items: center;
  }
}

/* Tablet tweaks */
@media (max-width: 900px) {
  .brand-row {
    padding: 12px 16px;
  }

  .brand-logo {
    width: 72px;
    height: 72px;
    margin-right: 18px;
  }

  .steam-logo {
    width: 44px;
    top: 12px;
    right: 12px;
  }
}
