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

:root {
  --bg: #0a0a0a;
  --bg-card: #141414;
  --text: #f0f0f0;
  --text-muted: #999;
  --accent: #e84393;
  --accent-hover: #fd79a8;
  --header-height: 70px;
  --max-width: 1200px;
}

html { scroll-behavior: smooth; }

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

a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-hover); }

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

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ── Header ──────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo { display: flex; align-items: center; gap: 12px; }
.logo img { height: 40px; width: auto; }
.logo-text { font-size: 1.1rem; font-weight: 700; color: var(--text); letter-spacing: .5px; }
.logo-sub { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 2px; color: var(--text-muted); display: block; }

.main-nav { display: flex; align-items: center; gap: 8px; }
.main-nav a {
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all .2s;
}
.main-nav a:hover, .main-nav a.active { color: var(--text); background: rgba(255,255,255,0.06); }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > a::after { content: ' ▾'; font-size: 0.7em; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 8px 0;
  min-width: 200px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}
.nav-dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  border-radius: 0;
  font-size: 0.85rem;
}
.dropdown-menu a:hover { background: rgba(255,255,255,0.04); }

.header-social { display: flex; gap: 12px; align-items: center; }
.header-social a {
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: color .2s;
}
.header-social a:hover { color: var(--text); }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
}

/* ── Hero Section ────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 40vh;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: var(--header-height);
}

.hero-bg {
  position: absolute;
  inset: -25%;
  background-size: cover;
  background-position: center;
  filter: brightness(0.5);
  will-change: transform;
}

.hero .hero-bg {
  filter: brightness(0.7);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 24px;
}

.hero-logo { max-width: 500px; margin: 0 auto 24px; }

.hero h1 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 0;
  text-transform: lowercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

/* Company hero — bird logo over header background */
.company-hero {
  height: 100vh;
  min-height: 500px;
}

.company-hero .hero-bg {
  filter: brightness(0.45);
}

.company-logo {
  max-width: 600px;
  margin: 0 auto 20px;
  filter: drop-shadow(0 2px 12px rgba(0,0,0,0.5));
}

.company-tagline {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--text-muted);
  text-align: center;
}

/* Discord link inside company hero */
.discord-link {
  display: inline-block;
  margin-top: 24px;
}

.discord-link img {
  max-width: 240px;
  transition: opacity .2s;
  opacity: 0.85;
}

.discord-link:hover img {
  opacity: 1;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* ── Game Showcase (Homepage — full-width stacked sections) ─── */
.game-showcase {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  min-height: 500px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  background: var(--bg);
  border-top: 1px solid rgba(255,255,255,0.04);
}

.game-showcase .hero-bg {
  inset: -25%;
  transition: filter .6s;
}

.game-showcase:hover .hero-bg {
  filter: brightness(0.35);
}

.game-showcase-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 60px 24px;
  max-width: 800px;
}

.game-showcase-logo {
  max-width: 700px;
  max-height: 260px;
  margin: 0 auto 32px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.6));
}

.game-showcase-content p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.9);
  margin-bottom: 20px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.7);
}

.more-info {
  display: inline-block;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: .5px;
  color: white;
  opacity: 0.7;
  transition: opacity .2s;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.game-showcase:hover .more-info { opacity: 1; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all .2s;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: white;
}
.btn-primary:hover { background: var(--accent-hover); color: white; }

.btn-outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.btn-arrow::after { content: '→'; }

/* ── Game Page ───────────────────────────────────────────────── */
.game-page {
  margin-top: var(--header-height);
  background: linear-gradient(180deg, var(--bg) 0%, #0f0f12 30%, #121218 60%, var(--bg) 100%);
}

.game-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 80px 24px 40px;
}

.game-hero .hero-bg { filter: brightness(0.4); }

.game-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.game-hero-content img { max-width: 550px; margin: 0 auto 20px; }

.platform-badges {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}

.platform-badges a img, .platform-badges img {
  height: 72px;
  width: auto;
  opacity: 0.9;
  transition: opacity .2s;
}
.platform-badges a:hover img { opacity: 1; }

.itch-badge, .game-hero-content .discord-link { display: inline-block; }
.itch-badge img, .game-hero-content .discord-link img { height: 56px; width: auto; max-width: none; opacity: 0.9; transition: opacity .2s; margin: 0; }
.itch-badge:hover img, .game-hero-content .discord-link:hover img { opacity: 1; }

.steam-link { display: none; margin-top: 20px; }

.game-description {
  padding: 60px 0;
  text-align: center;
}

.game-description h2 {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  max-width: 800px;
  margin: 0 auto 40px;
  font-weight: 600;
  line-height: 1.6;
}

.game-description p {
  max-width: 700px;
  margin: 0 auto 20px;
  color: var(--text-muted);
  line-height: 1.8;
}

/* Screenshot Gallery */
.gallery {
  padding: 40px 0 80px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: transform .3s;
  border: 1px solid rgba(255,255,255,0.06);
}
.gallery-grid img:hover { transform: scale(1.03); }

/* Game features sections */
.game-section {
  padding: 60px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.game-section h3 {
  font-size: 1.4rem;
  margin-bottom: 16px;
  font-weight: 700;
}

.game-section p {
  max-width: 700px;
  color: var(--text-muted);
  line-height: 1.8;
}

.game-section.centered { text-align: center; }
.game-section.centered p { margin: 0 auto; }

/* Features grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.feature-item {
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
}

.feature-item img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.feature-item p {
  padding: 16px;
  font-size: 0.9rem;
  text-align: center;
  color: var(--text-muted);
}

/* ── About Page ──────────────────────────────────────────────── */
.about-hero {
  position: relative;
  height: 50vh;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: var(--header-height);
}

.about-hero .hero-bg { filter: brightness(0.35); }

.about-hero h1 {
  position: relative;
  z-index: 2;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  text-align: center;
}

.about-content {
  padding: 80px 0;
  max-width: 800px;
  margin: 0 auto;
}

.about-content h2 {
  font-size: 1.6rem;
  margin-bottom: 24px;
  font-weight: 700;
  line-height: 1.4;
}

.about-content p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 20px;
  font-size: 1.05rem;
}

/* ── Contact Page ────────────────────────────────────────────── */
.contact-section {
  padding: 80px 0;
  margin-top: var(--header-height);
}

.contact-section h1 {
  font-size: 2rem;
  margin-bottom: 40px;
  text-align: center;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color .2s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-group textarea { min-height: 160px; resize: vertical; }

.contact-form .btn { width: 100%; justify-content: center; padding: 16px; font-size: 1rem; }

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 40px 0;
  text-align: center;
}

.footer-social {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 16px;
}

.footer-social a {
  color: var(--text-muted);
  font-size: 1.3rem;
  transition: color .2s;
}
.footer-social a:hover { color: var(--text); }

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── Lightbox ────────────────────────────────────────────────── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.92);
  align-items: center;
  justify-content: center;
  padding: 40px;
  cursor: pointer;
}
.lightbox.active { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 8px;
  cursor: default;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .menu-toggle { display: block; }

  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0; right: 0;
    background: #111;
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .main-nav.open { display: flex; }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    background: transparent;
    display: none;
    padding-left: 16px;
  }
  .nav-dropdown.open .dropdown-menu { display: block; }

  .header-social { display: none; }

  .features-grid { grid-template-columns: 1fr; }

  .hero { height: 40vh; min-height: 250px; }
  .company-hero { height: 60vh; min-height: 300px; }
  .company-logo { max-width: 300px; }

  /* Game showcase mobile */
  .game-showcase { height: 70vh; min-height: 400px; }
  .game-showcase-logo { max-width: 400px; max-height: 180px; }
  .game-showcase-content p { font-size: 0.95rem; }
  .game-showcase-content { padding: 40px 24px; }

  /* Game page hero mobile */
  .game-hero { min-height: 45vh; }
  .game-hero-content img { max-width: 260px; }
  .game-description h2 { font-size: 1.1rem; }
  .platform-badges a img, .platform-badges img { height: 52px; }
  .itch-badge img, .game-hero-content .discord-link img { height: 44px; }
  .steam-widget { display: none !important; }
  .steam-link { display: inline-block; }

  /* Gallery mobile */
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }

  /* About mobile */
  .about-hero { height: 40vh; }
  .about-content { padding: 40px 0; }

  /* Contact mobile */
  .contact-section { padding: 40px 0; }
  .contact-section h1 { font-size: 1.5rem; }
}

/* ── SVG icon helper ─────────────────────────────────────────── */
.icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
  display: inline-block;
  vertical-align: middle;
}
