:root {
  --bg: #07080c;
  --bg-soft: #0c0e14;
  --panel: #11141c;
  --line: #1e2330;
  --text: #eef1f7;
  --muted: #9aa3b5;
  --accent: #7cf2c8;
  --accent-2: #8b7cf6;
  --radius: 18px;
  --max: 1180px;
  --font-display: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

/* subtle film grain / grid overlay */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px, 64px 64px;
  mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 75%);
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0;
}

a { color: inherit; text-decoration: none; }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px 28px;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid transparent;
}

.nav.scrolled { border-bottom-color: var(--line); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 14px;
}

.brand em { font-style: normal; color: var(--muted); }

.brand-mark {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  color: #05120d;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  font-size: 12px;
}

.nav-links { display: flex; gap: 28px; font-size: 14px; color: var(--muted); }
.nav-links a:hover { color: var(--text); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 10px;
  padding: 8px 14px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.mobile-menu {
  display: grid;
  gap: 4px;
  padding: 8px 28px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}

.mobile-menu[hidden] { display: none; }
.mobile-menu a { padding: 10px 0; color: var(--muted); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 108px 28px 96px;
  z-index: 1;
}

.hero-glow {
  position: absolute;
  top: -140px;
  left: 50%;
  width: 720px;
  height: 480px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(124, 242, 200, 0.16), rgba(139, 124, 246, 0.10), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 20px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1 {
  font-size: clamp(44px, 8vw, 92px);
  max-width: 16ch;
}

.accent {
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  margin: 28px 0 0;
  max-width: 56ch;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 19px);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  border: 1px solid transparent;
  transition: transform 0.18s ease, opacity 0.18s ease, border-color 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #06100c;
  font-weight: 600;
}

.btn-ghost { border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: #35405a; }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  margin: 64px 0 0;
  padding: 26px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}
.hero-stats strong { display: block; font-family: var(--font-display); font-size: 28px; }
.hero-stats span { font-size: 13px; color: var(--muted); }

/* ---------- sections ---------- */
.section { max-width: var(--max); margin: 0 auto; padding: 88px 28px; position: relative; z-index: 1; }

.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); }
.section-head p { margin: 0; color: var(--muted); max-width: 34ch; }
.section h2 { font-size: clamp(28px, 4vw, 40px); }

.games { display: grid; gap: 22px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.game-featured { grid-column: 1 / -1; }

.game {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.game:hover { border-color: #34405a; transform: translateY(-3px); }

.game-art { position: relative; aspect-ratio: 16 / 7; }
.game-featured .game-art { aspect-ratio: 21 / 8; }

.art-1 { background: radial-gradient(120% 120% at 20% 10%, #14483f 0%, #0a1a24 45%, #060a10 100%), #060a10; }
.art-2 { background: radial-gradient(120% 120% at 80% 0%, #3b2b57 0%, #161226 50%, #08070d 100%), #08070d; }
.art-3 { background: radial-gradient(120% 120% at 50% 0%, #1f3a52 0%, #101a26 55%, #070a0f 100%), #070a0f; }

.game-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(115deg, rgba(255,255,255,0.045) 0 2px, transparent 2px 9px);
  opacity: 0.5;
}

.badge {
  position: absolute;
  left: 18px;
  top: 18px;
  z-index: 2;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(124, 242, 200, 0.14);
  color: var(--accent);
  border: 1px solid rgba(124, 242, 200, 0.3);
}

.game-body { padding: 24px; }
.game-meta { display: flex; gap: 14px; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.game h3 { font-size: 24px; margin: 10px 0 8px; }
.game p { margin: 0 0 16px; color: var(--muted); max-width: 54ch; }

.link { font-size: 14px; color: var(--accent); }
.link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- studio split ---------- */
.split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: start; }
.body-copy { color: var(--muted); margin: 20px 0 0; max-width: 52ch; }

.skills { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.skills li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.skills span { color: var(--muted); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; }

/* ---------- contact ---------- */
.contact-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(28px, 6vw, 64px);
  background:
    radial-gradient(90% 140% at 100% 0%, rgba(139,124,246,0.14), transparent 60%),
    radial-gradient(80% 120% at 0% 100%, rgba(124,242,200,0.10), transparent 60%),
    var(--bg-soft);
  text-align: left;
}
.contact-card p { color: var(--muted); max-width: 46ch; margin: 16px 0 28px; }

.socials { display: flex; flex-wrap: wrap; gap: 22px; margin: 32px 0 0; padding: 0; list-style: none; font-size: 14px; }
.socials a { color: var(--muted); }
.socials a:hover { color: var(--text); }

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 36px 28px 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  position: relative;
  z-index: 1;
}

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .game:hover { transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .games { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .nav-links { display: none; }
  .nav-toggle { display: inline-block; }
  .hero { padding: 72px 22px 64px; }
  .section { padding: 64px 22px; }
  .hero-stats { gap: 28px; }
}
