:root {
  --bg-dark: #090b0e;
  --card-bg: #14181f;
  --accent-red: #b91c1c;
  --accent-hover: #dc2626;
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --border-color: #272d37;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}

/* —— Shared nav —— */
.site-nav {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  background: rgba(9, 11, 14, 0.92);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}

.nav-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo {
  height: 36px;
  width: auto;
  filter: drop-shadow(0 0 12px rgba(0, 0, 0, 0.8));
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s ease;
  border-bottom: 2px solid transparent;
  padding-bottom: 0.15rem;
}

.nav-link:hover {
  color: var(--text-main);
}

.nav-link.active {
  color: var(--text-main);
  border-bottom-color: var(--accent-red);
}

/* —— Home hero —— */
.hero-wrapper {
  width: 100%;
  background: linear-gradient(rgba(9, 11, 14, 0.55), var(--bg-dark)), url('images/hero_banner.png') center/cover no-repeat;
  display: flex;
  justify-content: center;
  border-bottom: 1px solid var(--border-color);
  padding: 5rem 1.5rem 4rem;
}

.hero-content {
  max-width: 800px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.game-logo {
  max-width: 380px;
  width: 100%;
  height: auto;
  margin-bottom: 2rem;
  filter: drop-shadow(0 0 35px rgba(0, 0, 0, 0.95));
}

.hero-tagline {
  font-size: 1.35rem;
  font-weight: 500;
  color: #e5e7eb;
  max-width: 650px;
  margin-bottom: 2.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
}

.badge-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  background-color: rgba(20, 24, 31, 0.8);
  border: 1px solid var(--border-color);
  border-radius: 9999px;
  backdrop-filter: blur(6px);
  user-select: none;
}

.badge-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #ef4444;
  background: rgba(239, 68, 68, 0.12);
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  font-weight: 600;
}

.cta-link {
  margin-top: 2rem;
  display: inline-block;
  padding: 0.75rem 1.75rem;
  background: var(--accent-red);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: background 0.2s ease;
}

.cta-link:hover {
  background: var(--accent-hover);
}

.cta-link-muted {
  background: transparent;
  border-color: var(--border-color);
  color: var(--text-muted);
}

.cta-link-muted:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
}

.container {
  width: 100%;
  max-width: 1120px;
  padding: 4rem 1.5rem;
}

.section-title {
  font-size: 1.6rem;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.screenshot-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  position: relative;
}

.screenshot-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.screenshot-card:hover img {
  transform: scale(1.04);
  filter: brightness(1.1);
}

/* —— Features page —— */
.page-hero {
  width: 100%;
  border-bottom: 1px solid var(--border-color);
  background: linear-gradient(180deg, #10141a 0%, var(--bg-dark) 100%);
  padding: 3.5rem 1.5rem 2.5rem;
  display: flex;
  justify-content: center;
}

.page-hero-content {
  max-width: 800px;
  text-align: center;
}

.page-eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #ef4444;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.page-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.page-lead {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto 2rem;
}

.jump-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem 1.25rem;
}

.jump-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.jump-nav a:hover {
  color: var(--text-main);
  border-bottom-color: var(--accent-red);
}

.features-main {
  width: 100%;
  max-width: 1120px;
  padding: 2rem 1.5rem 4rem;
}

.feature-row {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

.feature-row-reverse .feature-media {
  order: 2;
}

.feature-row-reverse .feature-copy {
  order: 1;
}

.feature-media {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  background: var(--card-bg);
  aspect-ratio: 16 / 9;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}

.feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.feature-media-skill {
  cursor: zoom-in;
}

.feature-media-skill img {
  object-fit: contain;
  background: #0a0c10;
  transform: none;
  transition: none;
  filter: none;
  image-rendering: auto;
}

.feature-media-skill:hover img,
.feature-media-skill:focus-within img {
  transform: none;
  filter: none;
}

.skill-path-block {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 2.5rem;
}

.skill-path-block .feature-row {
  border-bottom: none;
  padding-bottom: 1.75rem;
}

.skill-show {
  margin: 0;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

.skill-show-reverse .skill-show-media {
  order: 2;
}

.skill-show-reverse figcaption {
  order: 1;
  justify-self: end;
  text-align: right;
}

.skill-show-media {
  aspect-ratio: 16 / 9;
}

.skill-show-media img {
  object-fit: cover;
}

.skill-show figcaption {
  max-width: 28rem;
}

.skill-show figcaption .feature-kicker {
  display: block;
}

.skill-show figcaption p {
  color: var(--text-muted);
  font-size: 1rem;
  margin: 0;
}

.feature-kicker {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #ef4444;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.feature-copy h2 {
  font-size: 1.75rem;
  letter-spacing: 0.03em;
  margin-bottom: 0.75rem;
}

.feature-lead {
  font-size: 1.1rem;
  color: #e5e7eb;
  margin-bottom: 0.85rem;
}

.feature-copy p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.feature-copy strong {
  color: var(--text-main);
  font-weight: 600;
}

.feature-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.feature-points li {
  color: var(--text-muted);
  font-size: 0.95rem;
  padding-left: 1.1rem;
  position: relative;
}

.feature-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.4rem;
  height: 0.4rem;
  background: var(--accent-red);
  border-radius: 1px;
}

.skill-system-intro {
  max-width: 640px;
  margin: 0 auto;
  padding: 3.5rem 0 1rem;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

.skill-system-intro h2 {
  font-size: 1.75rem;
  letter-spacing: 0.03em;
  margin-bottom: 0.75rem;
}

.skill-system-intro .feature-lead {
  margin-bottom: 0.85rem;
}

.skill-system-intro p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.skill-system-intro strong {
  color: var(--text-main);
  font-weight: 600;
}

.features-cta {
  text-align: center;
  padding: 4rem 1rem 1rem;
}

.features-cta h2 {
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.features-cta p {
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 1.5rem;
}

/* —— Lightbox —— */
.lightbox-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(5, 7, 10, 0.92);
  backdrop-filter: blur(10px);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.lightbox-modal.active {
  display: flex;
  opacity: 1;
}

.lightbox-img-wrapper {
  max-width: 92vw;
  max-height: 88vh;
  overflow: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.5rem;
}

.lightbox-img-wrapper img {
  display: block;
  max-width: min(92vw, 1400px);
  max-height: 85vh;
  width: auto;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.9);
  border: 1px solid var(--border-color);
  object-fit: contain;
  user-select: none;
  background: #0a0c10;
}

.lightbox-btn {
  position: absolute;
  background: rgba(20, 24, 31, 0.7);
  border: 1px solid var(--border-color);
  color: #fff;
  font-size: 2rem;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.lightbox-btn:hover {
  background: var(--accent-red);
  border-color: var(--accent-hover);
}

.lightbox-close {
  top: 25px;
  right: 25px;
  font-size: 1.5rem;
}

.lightbox-prev {
  left: 30px;
}

.lightbox-next {
  right: 30px;
}

/* —— Privacy —— */
.privacy-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(5, 7, 10, 0.85);
  backdrop-filter: blur(6px);
  z-index: 10000;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
}

.privacy-modal.active {
  display: flex;
}

.privacy-box {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  max-width: 560px;
  width: 100%;
  padding: 2rem;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

.privacy-box h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.privacy-box p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.privacy-close-btn {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: var(--accent-red);
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
}

.privacy-close-btn:hover {
  background: var(--accent-hover);
}

footer {
  width: 100%;
  border-top: 1px solid var(--border-color);
  padding: 2.5rem 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: auto;
}

.footer-links {
  margin-top: 0.75rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--text-main);
}

.contact-badge {
  color: var(--text-main);
  font-weight: 500;
}

@media (max-width: 860px) {
  .feature-row,
  .feature-row-reverse {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 2.5rem 0;
  }

  .feature-row-reverse .feature-media,
  .feature-row-reverse .feature-copy {
    order: unset;
  }

  .skill-system-intro {
    padding: 2.5rem 0 0.75rem;
  }

  .skill-path-block {
    padding-bottom: 2rem;
  }

  .skill-show {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .skill-show-reverse .skill-show-media,
  .skill-show-reverse figcaption {
    order: unset;
    justify-self: stretch;
    text-align: left;
  }

  .lightbox-prev {
    left: 12px;
  }

  .lightbox-next {
    right: 12px;
  }
}
