@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --bg:       #000;
  --bg-2:     #0a0a0a;
  --bg-3:     #111;
  --border:   #1f1f1f;
  --border-hi:#333;
  --text:     #fff;
  --muted:    #888;
  --muted-2:  #444;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: 0.03em;
  color: var(--text);
}

a { color: var(--text); text-decoration: none; }
a:hover { color: var(--muted); }
img { display: block; max-width: 100%; }

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  height: 60px;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  height: 40px;
  color: var(--text);
}

.nav-logo img {
  height: 32px;
  width: 32px;
  object-fit: contain;
}

.nav-logo-wordmark {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}

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

.nav-cta {
  border: 1px solid var(--border-hi) !important;
  color: var(--text) !important;
  padding: 0.35rem 1rem;
  border-radius: 3px;
  transition: background 0.2s, color 0.2s !important;
}

.nav-cta:hover {
  background: var(--text) !important;
  color: var(--bg) !important;
}

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.nav-burger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--text);
  transition: all 0.3s;
}

/* ── HERO - STUDIO ── */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.hero-logo {
  height: 260px;
  width: auto;
  margin: 0 auto 1.5rem;
}

.hero-logo-fallback {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-tagline {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto 2.5rem;
  font-weight: 300;
  line-height: 1.8;
}

/* ── HERO - GAME PAGE ── */
.hero-game {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 7rem 2rem 5rem;
  border-bottom: 1px solid var(--border);
}

.hero-game-logo {
  height: 150px;
  width: auto;
  max-width: 90%;
  margin: 0 auto 2rem;
}

.hero-game-logo-fallback {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(3rem, 9vw, 6.5rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 1.5rem;
}

.hero-game-tagline {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto 2.5rem;
  font-weight: 300;
  line-height: 1.8;
}

/* ── BUTTONS ── */
.btn-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.8rem;
  border-radius: 3px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
}

.btn-primary:hover {
  background: var(--muted);
  color: var(--bg);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-hi);
}

.btn-secondary:hover {
  background: var(--text);
  color: var(--bg);
}

/* ── SECTION BASE ── */
section { padding: 6rem 2rem; }

.section-inner {
  max-width: 1060px;
  margin: 0 auto;
}

.section-label {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.section-rule {
  width: 40px;
  height: 1px;
  background: var(--border-hi);
  margin-bottom: 2.5rem;
}

/* ── GAMES GRID (index) ── */
#games {
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
}

.games-grid {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 3rem;
}

.game-card {
  background: var(--bg-3);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  transition: background 0.2s;
  min-height: 360px;
}

.game-card:hover { background: #141414; }

.game-card-image {
  overflow: hidden;
  background: #0a0a0a;
  position: relative;
}

.game-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter 0.4s, transform 0.6s;
}

.game-card:hover .game-card-image img {
  filter: grayscale(40%);
  transform: scale(1.03);
}

.game-card-body {
  padding: 2.5rem 2.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.game-card-status {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 0.5rem;
}

.game-card-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: 0.04em;
}

.game-card-desc {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.game-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}

.tag {
  border: 1px solid var(--border);
  color: var(--muted-2);
  padding: 0.2rem 0.65rem;
  border-radius: 2px;
  font-size: 0.72rem;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── ABOUT (index) ── */
#about {
  border-bottom: 1px solid var(--border);
}

.about-team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 4rem;
}

.about-team-text p {
  color: var(--muted);
  margin-bottom: 1.2rem;
  font-size: 1rem;
  line-height: 1.8;
}

.about-team-text p strong { color: var(--text); font-weight: 500; }

.team-names {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.team-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
}

.team-name span {
  font-weight: 400;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.85rem;
  margin-left: 0.5rem;
}

.team-photo-wrap {
  border: 1px solid var(--border);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.team-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  display: block;
}

.about-press-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
  align-items: start;
}

.about-press-grid p {
  color: var(--muted);
  margin-bottom: 1.2rem;
  font-size: 1rem;
  line-height: 1.8;
}

.contact-block {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.contact-block a {
  display: inline-block;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--border-hi);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.contact-block a:hover { color: var(--text); border-color: var(--text); }

/* ── SOCIALS (index) ── */
#socials {
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
}

.socials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid var(--border);
  margin-top: 3rem;
}

.social-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.4rem 1.6rem;
  background: var(--bg-3);
  color: var(--muted);
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}

.social-item:hover { background: #161616; color: var(--text); }

.social-item svg { flex-shrink: 0; opacity: 0.5; transition: opacity 0.2s; }
.social-item:hover svg { opacity: 1; }

/* ── GAME PAGE: ABOUT ── */
#game-about {
  border-bottom: 1px solid var(--border);
}

.game-about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.game-about-text p {
  color: var(--muted);
  margin-bottom: 1.2rem;
  font-size: 1rem;
  line-height: 1.8;
}

.game-about-text p strong { color: var(--text); font-weight: 500; }

.game-about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.5rem;
}

.game-about-image {
  border: 1px solid var(--border);
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-3);
}

.game-about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
}

/* ── GAME PAGE: FEATURES ── */
#game-features {
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid var(--border);
  margin-top: 3rem;
}

.feature-card {
  background: var(--bg-3);
  padding: 2rem;
  transition: background 0.2s;
}

.feature-card:hover { background: #161616; }

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  letter-spacing: 0.03em;
}

.feature-card p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.7;
}

/* ── GAME PAGE: MEDIA ── */
#game-media {
  border-bottom: 1px solid var(--border);
}

.trailer-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 1px;
}

.trailer-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid var(--border);
  border-top: none;
}

.screenshot {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-3);
}

.screenshot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter 0.3s;
}

.screenshot:hover img { filter: grayscale(0%); }

/* ── GAME PAGE: PRESS ── */
#game-press {
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
}

.press-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  border: 1px solid var(--border);
  margin-top: 3rem;
}

.press-card {
  background: var(--bg-3);
  padding: 2rem;
}

.press-card h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.press-card p, .press-card li {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.8;
}

.press-card ul { list-style: none; }

.press-card ul li::before {
  content: '— ';
  color: var(--muted-2);
}

.press-card a {
  display: inline-block;
  margin-top: 1.25rem;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--border-hi);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.press-card a:hover { color: var(--text); border-color: var(--text); }

/* ── FOOTER ── */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 2.5rem 2.5rem;
}

.footer-inner {
  max-width: 1060px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--muted-2);
  font-size: 0.8rem;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s;
}

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

.footer-copy {
  color: var(--muted-2);
  font-size: 0.78rem;
  width: 100%;
  margin-top: 0.5rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .about-team-grid, .about-press-grid, .game-about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .socials-grid { grid-template-columns: repeat(2, 1fr); }
  .press-two-col { grid-template-columns: 1fr; }
  .screenshots-grid { grid-template-columns: 1fr 1fr; }
  .game-card { grid-template-columns: 1fr; min-height: 0; }
  .game-card-image { aspect-ratio: 16/9; }
  .game-card-body { padding: 2rem; }
  .game-card-title { font-size: 1.7rem; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 60px; left: 0; right: 0;
    background: rgba(0,0,0,0.98);
    padding: 2rem 2.5rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--border);
  }
  .nav-burger { display: flex; }
  .features-grid { grid-template-columns: 1fr; }
  .socials-grid { grid-template-columns: 1fr; }
  .screenshots-grid { grid-template-columns: 1fr; }
  section { padding: 4rem 1.25rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
