:root {
  --bg: #07120c;
  --bg-elevated: #0e1b13;
  --border: rgba(160, 210, 170, 0.14);
  --text: #eef7ee;
  --text-muted: #8fa89a;
  --accent: #9be05a;
  --accent-dim: #4c7a35;
  --accent-soft: rgba(155, 224, 90, 0.14);
  --on-accent: #0b1a08;
  --radius: 14px;
  --max-width: 1160px;
  font-size: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

a { color: inherit; }

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

/* ---------- Navbar ---------- */

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 18, 12, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand__mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  object-fit: cover;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

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

.nav-links .btn { padding: 9px 18px; font-size: 0.88rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
  cursor: pointer;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }

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

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

.btn--secondary:hover { border-color: var(--accent); }

/* ---------- Pulse / live indicators ---------- */

.pulse-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(155, 224, 90, 0.6);
  animation: pulse 2s infinite;
  margin-right: 6px;
  vertical-align: middle;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(155, 224, 90, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(155, 224, 90, 0); }
  100% { box-shadow: 0 0 0 0 rgba(155, 224, 90, 0); }
}

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

.hero {
  position: relative;
  padding: 88px 0 56px;
  background:
    radial-gradient(ellipse 90% 55% at 15% -10%, rgba(155, 224, 90, 0.14), transparent),
    var(--bg);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 56px;
}

.hero-copy .eyebrow {
  display: inline-flex;
  align-items: center;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.hero-copy h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}

.hero-copy p.lead {
  max-width: 520px;
  margin: 0 0 32px;
  color: var(--text-muted);
  font-size: 1.08rem;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.mini-stack {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mini-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 2px solid var(--bg);
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: -12px;
}

.mini-avatar:first-child { margin-left: 0; }

.mini-stack p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* ---------- Live analytics card ---------- */

.live-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.live-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.live-card__value {
  font-size: clamp(2.6rem, 5vw, 3.4rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  min-height: 1.2em;
}

.live-card__label {
  margin: 4px 0 18px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.live-card__chart {
  width: 100%;
  height: 90px;
  display: block;
  margin-bottom: 14px;
}

.live-card__foot {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

/* ---------- Stats row ---------- */

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

.stat-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
}

.stat-value {
  display: block;
  font-size: clamp(1.6rem, 3.6vw, 2.1rem);
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
  min-height: 1.2em;
}

.stat-fade-in { animation: fadeIn 0.5s ease; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@media (prefers-reduced-motion: reduce) {
  .stat-fade-in { animation: none; }
  .pulse-dot { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Section shell ---------- */

section { padding: 88px 0; }

.section-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head .eyebrow { display: block; margin-bottom: 12px; }

.eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}

.section-head p {
  color: var(--text-muted);
  font-size: 1.02rem;
}

/* ---------- Game cards ---------- */

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.game-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.game-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.game-card__image {
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  background-color: #0e1b13;
}

.game-card__body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.game-card__body h3 {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.game-card__body p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  flex: 1;
}

.game-card__stats {
  display: flex;
  gap: 24px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.game-card__stats .stat-value {
  font-size: 1.15rem;
  color: var(--text);
}

.game-card__stats .stat-label {
  font-size: 0.75rem;
}

.section-cta { text-align: center; margin-top: 44px; }

/* ---------- About / services grid ---------- */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.info-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}

.info-card h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.info-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

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

.careers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.careers-copy h2 { margin-top: 12px; }

.careers-copy p {
  color: var(--text-muted);
  font-size: 1rem;
}

.careers-note {
  color: var(--text) !important;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 0.92rem !important;
}

.careers-copy .btn { margin-top: 18px; }

.roles-list {
  border-top: 1px solid var(--border);
}

.role-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 4px;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  transition: padding-left 0.15s ease;
}

.role-row:hover { padding-left: 8px; }

.role-tag {
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---------- Contact form ---------- */

.contact-form {
  max-width: 640px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

.form-row { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }

label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

input, select, textarea {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
}

input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

textarea { resize: vertical; min-height: 110px; }

.form-status {
  margin: 0;
  font-size: 0.9rem;
  min-height: 1.2em;
}

.form-status--success { color: var(--accent); font-weight: 600; }
.form-status--error { color: #e07a7a; }

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

footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}

.footer-links {
  display: flex;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

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

.footer-note {
  width: 100%;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-top: 16px;
}

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

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .careers-grid { grid-template-columns: 1fr; gap: 32px; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px;
    display: none;
    gap: 16px;
  }
  .nav-links--open { display: flex; }
  .nav-toggle { display: block; }
  .form-row { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr; }
}

/* ---------- Page loader ---------- */

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  background: var(--bg);
  transition: opacity 0.5s ease;
}

.page-loader--hidden {
  opacity: 0;
  pointer-events: none;
}

.page-loader__logo {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: cover;
  animation: loaderPulse 1.6s ease-in-out infinite;
}

.page-loader__spinner {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  animation: loaderSpin 0.9s linear infinite;
}

@keyframes loaderPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.92); opacity: 0.75; }
}

@keyframes loaderSpin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .page-loader__logo { animation: none; }
  .page-loader__spinner { animation: none; }
}