/* ============ Tensor Games — style.css ============ */
:root {
  --bg: #0a0b0d;
  --surface: #121418;
  --surface-2: #1a1d23;
  --line: #262a31;
  --text: #e8e6e1;
  --muted: #9aa0a8;
  --accent: #a3e635;
  --accent-soft: rgba(163, 230, 53, 0.12);
  --red: #e05252;
  --font-display: 'Anton', sans-serif;
  --font-head: 'Oswald', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 48px;
  transition: background 0.3s, border-color 0.3s, padding 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10, 11, 13, 0.85);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
  padding: 12px 48px;
}
.logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  color: var(--text);
}
.logo span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a {
  font-family: var(--font-head);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.nav-cta {
  color: var(--bg);
  background: var(--accent);
  padding: 8px 18px;
  border-radius: 2px;
  font-weight: 600;
}
.nav-links a.nav-cta:hover { background: #b8f04d; color: var(--bg); }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.6rem;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10,11,13,0.55) 0%, rgba(10,11,13,0.25) 40%, rgba(10,11,13,0.92) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 24px;
  max-width: 900px;
}
.hero-kicker {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 20px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 11vw, 8.5rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.hero h1 span { color: var(--accent); }
.tagline {
  font-family: var(--font-head);
  font-size: clamp(1.1rem, 2.4vw, 1.6rem);
  color: var(--muted);
  margin-top: 20px;
  letter-spacing: 0.04em;
}
.acronym {
  margin-top: 16px;
  font-family: var(--font-head);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.acronym b { color: var(--accent); font-weight: 600; }

.hero-cta { margin-top: 44px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 2px;
  border: 1px solid transparent;
  transition: all 0.2s;
  cursor: pointer;
}
.btn-primary { background: var(--accent); color: #0a0b0d; }
.btn-primary:hover { background: #b8f04d; transform: translateY(-2px); }
.btn-ghost { border-color: var(--line); color: var(--text); background: rgba(255,255,255,0.02); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Sections ---------- */
.section { padding: 110px 48px; max-width: 1200px; margin: 0 auto; }
.section-label {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 48px;
}

/* ---------- Game card ---------- */
.game-card {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.game-card-art { position: relative; min-height: 380px; }
.game-card-art img {
  width: 100%; height: 100%;
  object-fit: cover;
  position: absolute; inset: 0;
}
.game-card-body { padding: 48px; display: flex; flex-direction: column; justify-content: center; }
.status {
  align-self: flex-start;
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  border: 1px solid rgba(224, 82, 82, 0.4);
  background: rgba(224, 82, 82, 0.08);
  padding: 5px 12px;
  border-radius: 2px;
  margin-bottom: 20px;
}
.game-card-body h3 {
  font-family: var(--font-display);
  font-size: 2.6rem;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 10px;
}
.tags {
  font-family: var(--font-head);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.game-card-body p.desc { color: var(--muted); margin-bottom: 32px; }

/* ---------- Studio ---------- */
.studio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.studio-text p { color: var(--muted); margin-bottom: 20px; }
.studio-text p strong { color: var(--text); }
.studio-img {
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}

/* ---------- Contact ---------- */
.contact-wrap { text-align: center; max-width: 640px; margin: 0 auto; }
.contact-wrap p { color: var(--muted); margin-bottom: 28px; }
.contact-email {
  font-family: var(--font-head);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: var(--accent);
  letter-spacing: 0.03em;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.contact-email:hover { border-bottom-color: var(--accent); }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 32px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 0.85rem;
}
footer .logo { font-size: 1rem; }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Game page hero ---------- */
.game-hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.game-hero .hero-bg::after {
  background: linear-gradient(to bottom, rgba(10,11,13,0.35) 0%, rgba(10,11,13,0.55) 55%, var(--bg) 100%);
}
.game-hero-content {
  position: relative;
  z-index: 2;
  padding: 0 48px 72px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
.game-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 7rem);
  text-transform: uppercase;
  line-height: 0.95;
}
.game-hero .tagline { margin-top: 16px; }

/* ---------- Features ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 36px;
  transition: border-color 0.25s, transform 0.25s;
}
.feature:hover { border-color: rgba(163,230,53,0.4); transform: translateY(-4px); }
.feature h3 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
  color: var(--text);
}
.feature h3::before {
  content: '//';
  color: var(--accent);
  margin-right: 10px;
}
.feature p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 4px;
  transition: border-color 0.25s;
}
.gallery img:hover { border-color: rgba(163,230,53,0.5); }

/* ---------- Status banner ---------- */
.status-banner {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  padding: 40px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.status-banner h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.status-banner p { color: var(--muted); max-width: 560px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav { padding: 14px 24px; }
  .nav.scrolled { padding: 10px 24px; }
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(75vw, 320px);
    background: rgba(10,11,13,0.97);
    backdrop-filter: blur(16px);
    flex-direction: column;
    justify-content: center;
    gap: 32px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    border-left: 1px solid var(--line);
  }
  .nav-links.open { transform: none; }
  .section { padding: 72px 24px; }
  .game-card { grid-template-columns: 1fr; }
  .game-card-art { min-height: 260px; }
  .game-card-body { padding: 32px 24px; }
  .studio-grid { grid-template-columns: 1fr; gap: 40px; }
  .features { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  footer { flex-direction: column; gap: 12px; padding: 28px 24px; }
  .game-hero-content { padding: 0 24px 56px; }
}
