/* ============================================================
   ONYX INTERACTIVE — dark cinematic theme
   Onyx black + electric violet + cyan neon
   ============================================================ */

:root {
  --bg: #06060b;
  --bg-2: #0a0a13;
  --surface: #10101c;
  --surface-2: #141424;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(167, 139, 250, 0.45);
  --text: #f2f2f7;
  --muted: #9d9db2;
  --muted-2: #6f6f86;
  --violet: #8b5cf6;
  --violet-bright: #a78bfa;
  --cyan: #22d3ee;
  --font-display: "Space Grotesk", "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --nav-h: 68px;
  --radius: 16px;
  --max-w: 1180px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}

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

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

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

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

h2 { font-size: clamp(2rem, 4.5vw, 3.1rem); font-weight: 700; }
h2 .dim { color: var(--muted); font-weight: 600; }

p { margin: 0; }

.container {
  width: min(var(--max-w), 92%);
  margin-inline: auto;
}

/* ---------- Eyebrow / section headers ---------- */

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--violet-bright);
  margin-bottom: 14px;
}

.section { padding: 110px 0; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--border); }

.section-head { max-width: 760px; margin-bottom: 56px; }
.section-lead { margin-top: 18px; color: var(--muted); font-size: 1.06rem; max-width: 640px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--violet), #6d28d9 55%, #0e7490);
  color: #fff;
  box-shadow: 0 8px 28px rgba(139, 92, 246, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(139, 92, 246, 0.5);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  background: rgba(139, 92, 246, 0.12);
}

.btn-small { padding: 10px 20px; font-size: 0.88rem; }

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(6, 6, 11, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.nav.scrolled {
  border-bottom-color: var(--border);
  background: rgba(6, 6, 11, 0.9);
}

.nav-inner {
  width: min(var(--max-w), 92%);
  height: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; }

.brand-mark { display: inline-flex; filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.55)); }

.brand-name {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

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

.nav-links {
  display: flex;
  gap: 30px;
  margin-left: auto;
}

.nav-links a {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding: 6px 0;
  position: relative;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--violet), var(--cyan));
  transition: width 0.25s ease;
}

.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  padding: 0 10px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 60px) 0 90px;
  overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; }

.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(139, 92, 246, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 92, 246, 0.07) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 30%, transparent 75%);
}

.hero-glow { position: absolute; border-radius: 50%; filter: blur(90px); }

.glow-violet {
  width: 560px; height: 560px;
  top: -160px; left: -120px;
  background: rgba(139, 92, 246, 0.28);
  animation: drift 14s ease-in-out infinite alternate;
}

.glow-cyan {
  width: 480px; height: 480px;
  bottom: -180px; right: -100px;
  background: rgba(34, 211, 238, 0.16);
  animation: drift 18s ease-in-out infinite alternate-reverse;
}

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(40px, 30px) scale(1.12); }
}

.hero-inner { position: relative; z-index: 1; }

.hero-title {
  font-size: clamp(3.4rem, 11vw, 8.2rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 10px 0 26px;
  display: flex;
  flex-direction: column;
}

.word-onyx {
  background: linear-gradient(100deg, #fff 10%, var(--violet-bright) 45%, var(--cyan) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-shadow: 0 0 60px rgba(139, 92, 246, 0.35);
}

.word-interactive {
  font-size: clamp(1.05rem, 3.2vw, 2.1rem);
  font-weight: 600;
  letter-spacing: 0.42em;
  color: var(--muted);
  margin-top: 14px;
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  font-weight: 600;
  margin-bottom: 16px;
}

.hero-sub { color: var(--muted); font-size: 1.08rem; max-width: 620px; }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 54px;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-meta strong { color: var(--text); font-family: var(--font-display); font-size: 1.05rem; }
.hero-meta i { width: 1px; height: 18px; background: var(--border); }

.scroll-hint {
  position: absolute;
  bottom: 26px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted-2);
  display: flex; gap: 8px; align-items: center;
  transition: color 0.2s ease;
}

.scroll-hint:hover { color: var(--violet-bright); }
.scroll-hint span { animation: bob 1.8s ease-in-out infinite; display: inline-block; }

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* ---------- Games ---------- */

.games-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.game-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.game-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(139, 92, 246, 0.15), 0 8px 40px rgba(139, 92, 246, 0.18);
}

.game-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }

.game-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.6s ease;
}

.game-card:hover .game-media img { transform: scale(1.06); filter: saturate(1.1); }

.game-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(6, 6, 11, 0.55));
  pointer-events: none;
}

.game-badge {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 1;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(6, 6, 11, 0.72);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(167, 139, 250, 0.5);
  color: #e9e4ff;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.game-body { padding: 24px 26px 26px; }

.game-body h3 { font-size: 1.45rem; margin-bottom: 12px; }

.game-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }

.game-tags span {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.25);
  padding: 4px 10px;
  border-radius: 999px;
}

.game-hook { color: var(--text); font-size: 1rem; margin-bottom: 14px; }
.game-meta { color: var(--muted); font-size: 0.9rem; margin-bottom: 4px; }
.game-publisher { color: var(--muted-2); font-size: 0.84rem; }

/* ---------- Studio ---------- */

.studio-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 70px;
  align-items: center;
}

.studio-grid p { color: var(--muted); margin-top: 18px; font-size: 1.04rem; }
.studio-grid p:first-of-type { margin-top: 22px; }

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.stat:hover { border-color: var(--border-strong); transform: translateY(-3px); }

.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(120deg, var(--violet-bright), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.stat-suffix { font-size: 1.6rem; }

.stat-label { display: block; margin-top: 10px; color: var(--muted); font-size: 0.9rem; }

/* ---------- Capabilities ---------- */

.caps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.cap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.cap:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
  background: var(--surface-2);
}

.cap-num {
  display: block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--cyan);
  margin-bottom: 18px;
}

.cap h3 { font-size: 1.22rem; margin-bottom: 10px; }
.cap p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Careers ---------- */

.careers {
  padding: 100px 0;
  background:
    radial-gradient(ellipse 70% 90% at 50% 120%, rgba(139, 92, 246, 0.22), transparent 65%),
    var(--bg-2);
  border-top: 1px solid var(--border);
}

.careers-inner { text-align: center; max-width: 720px; }
.careers-inner .eyebrow { margin-bottom: 12px; }
.careers-inner h2 { margin-bottom: 16px; }
.careers-inner p { color: var(--muted); font-size: 1.05rem; }
.careers-ctas { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 34px; }

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 34px;
  background: #040409;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 28px;
  margin-bottom: 40px;
}

.footer-brand p { color: var(--muted); margin-top: 10px; font-size: 0.95rem; }

.footer-links { display: flex; gap: 26px; }

.footer-links a {
  font-family: var(--font-display);
  font-size: 0.92rem;
  color: var(--muted);
  transition: color 0.2s ease;
}

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

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted-2);
  font-size: 0.85rem;
}

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--reveal-delay, 0s);
}

.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-glow, .scroll-hint span { animation: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .caps-grid { grid-template-columns: repeat(2, 1fr); }
  .studio-grid { gap: 44px; }
}

@media (max-width: 860px) {
  .games-grid { grid-template-columns: 1fr; }
  .studio-grid { grid-template-columns: 1fr; }
  .section { padding: 80px 0; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    margin-left: 0;
    background: rgba(6, 6, 11, 0.97);
    border-bottom: 1px solid var(--border);
    padding: 8px 4%;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a { padding: 14px 4px; font-size: 1rem; border-bottom: 1px solid var(--border); }
  .nav-links a:last-child { border-bottom: none; }
  .nav-links a::after { display: none; }

  .nav-toggle { display: flex; }
  .nav-actions .btn-small { display: none; }

  .hero { padding-top: calc(var(--nav-h) + 36px); }
  .hero-meta i { display: none; }
  .scroll-hint { display: none; }
}

@media (max-width: 560px) {
  .caps-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat { padding: 20px 16px; }
  .stat-num { font-size: 2rem; }
  .hero-ctas .btn { width: 100%; }
  .careers-ctas .btn { width: 100%; }
}
