/* =========================================================
   Zap Works — Studio site stylesheet
   Dark theme, responsive, inspired by modern Roblox studios
   ========================================================= */

:root {
  --bg: #07070b;
  --bg-soft: #0d0d13;
  --bg-card: #14141c;
  --bg-elevated: #1b1b26;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f4f5f7;
  --text-soft: #a9adbb;
  --text-dim: #6c7280;
  --accent: #2f6bff;
  --accent2: #7a4bff;
  --accent-hover: #4a80ff;
  --accent-soft: rgba(47, 107, 255, 0.14);
  --cyan: #35e0ff;
  --green: #31d158;
  --grad: linear-gradient(120deg, var(--accent), var(--accent2));
  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1200px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Space Grotesk", "Inter", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

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

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

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

button {
  font-family: inherit;
  cursor: pointer;
}

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

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.92rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}

/* shine sweep on hover */
.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -130%;
  width: 55%;
  height: 100%;
  transform: skewX(-20deg);
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.6s ease;
  z-index: 1;
  pointer-events: none;
}

.btn:hover::after {
  left: 135%;
}

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 24px rgba(47, 107, 255, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 44px rgba(47, 107, 255, 0.7);
}

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

.btn-outline:hover {
  border-color: var(--accent);
  color: #fff;
  background: linear-gradient(120deg, rgba(47, 107, 255, 0.14), rgba(122, 75, 255, 0.14));
  box-shadow: 0 10px 30px rgba(47, 107, 255, 0.25);
}

.btn .arrow {
  font-size: 1em;
  transition: transform 0.2s ease;
}

.btn:hover .arrow {
  transform: translateX(3px);
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  background: rgba(12, 12, 17, 0.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 72px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  font-family: var(--font-display);
}

.nav__logo {
  display: grid;
  place-items: center;
}

.nav__logo .brand-bolt {
  width: 26px;
  height: 26px;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 4px;
  margin-left: 10px;
}

.nav__links a {
  padding: 8px 16px;
  border-radius: 999px;
  color: var(--text-soft);
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav__links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.nav__links a.active {
  color: var(--text);
  background: var(--accent-soft);
}

.nav__social {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav__cta {
  margin-left: 8px;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  color: var(--text-soft);
  background: var(--bg-card);
  transition: all 0.2s ease;
}

.icon-btn:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--bg-elevated);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

.nav__toggle {
  display: none;
  margin-left: auto;
  background: transparent;
  border: none;
  color: var(--text);
}

/* ---------- Mobile nav ---------- */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  padding: 24px;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}

.mobile-nav.open {
  transform: translateY(0);
}

.mobile-nav__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.mobile-nav a {
  font-size: 1.5rem;
  font-weight: 700;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-soft);
}

.mobile-nav a.active {
  color: var(--accent);
}

.mobile-nav__social {
  margin-top: 32px;
  display: flex;
  gap: 12px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 92px 0;
  overflow: hidden;
}

.hero__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 1fr;
  opacity: 0.42;
}

.hero__backdrop .tile {
  background-size: cover;
  background-position: center;
  filter: brightness(0.78) saturate(1.1);
}

.hero__backdrop .tile--fallback {
  background: linear-gradient(135deg, #2f6bff, #7a4bff);
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7, 7, 11, 0.95) 14%, rgba(7, 7, 11, 0.7) 44%, rgba(7, 7, 11, 0.16) 76%),
    linear-gradient(180deg, rgba(7, 7, 11, 0.5), rgba(7, 7, 11, 0.18) 42%, rgba(7, 7, 11, 0.95));
}

.hero__layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 430px);
  gap: 64px;
  align-items: center;
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 620px;
}

.hero__featured {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero__float {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  min-height: 410px;
}

.hero__fcard {
  position: absolute;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--bg-card);
  transition: opacity 0.4s ease;
  animation: fcardfloat 6s ease-in-out infinite;
}

.hero__fcard--0 { --r: -7deg; width: 60%; height: 38%; top: 2%; left: 0; z-index: 1; }
.hero__fcard--1 { --r: 6deg; width: 58%; height: 36%; top: 32%; right: 0; z-index: 2; animation-delay: -2s; }
.hero__fcard--2 { --r: -3deg; width: 62%; height: 38%; bottom: 0; left: 9%; z-index: 3; animation-delay: -4s; }

@keyframes fcardfloat {
  0%, 100% { transform: rotate(var(--r)) translateY(0); }
  50% { transform: rotate(var(--r)) translateY(-16px); }
}

.hero__fcard .art {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #2f6bff, #7a4bff);
  overflow: hidden;
}

.hero__fcard .art img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero__fcard .art .shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 32%, rgba(0, 0, 0, 0.82) 100%);
}

.hero__fcard .body {
  position: relative;
  z-index: 1;
  display: block;
  padding: 14px 16px;
  color: #fff;
}

.hero__fcard .ttl {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-display);
}

.hero__fcard .by {
  display: block;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.8rem;
  margin-top: 4px;
}

.hero__fcard .by .rbx-verified {
  width: 13px;
  height: 13px;
  display: inline-block;
  vertical-align: middle;
  margin-left: 2px;
}

.hero__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 400px at 15% 0%, rgba(47, 107, 255, 0.2), transparent 70%),
    radial-gradient(560px 380px at 92% 15%, rgba(122, 75, 255, 0.14), transparent 70%),
    radial-gradient(300px 300px at 78% 70%, rgba(53, 224, 255, 0.08), transparent 70%);
  pointer-events: none;
}

/* Floating lightning bolts behind the hero content */
.hero__bolt {
  position: absolute;
  z-index: 0;
  color: rgba(139, 59, 255, 0.16);
  pointer-events: none;
  animation: float 7s ease-in-out infinite;
}

.hero__bolt svg {
  width: 100%;
  height: 100%;
}

.hero__bolt--1 { width: 130px; height: 130px; right: 6%; top: 6%; }
.hero__bolt--2 { width: 90px; height: 90px; right: 34%; bottom: 18%; color: rgba(53, 224, 255, 0.12); animation-delay: -2.5s; }
.hero__bolt--3 { width: 70px; height: 70px; left: 44%; top: 8%; color: rgba(122, 75, 255, 0.14); animation-delay: -4s; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(8deg); }
  50% { transform: translateY(-18px) rotate(14deg); }
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 620px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-soft);
  font-size: 0.82rem;
  margin-bottom: 22px;
  background: rgba(255, 255, 255, 0.02);
}

.hero__eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.4rem);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
  font-family: var(--font-display);
}

.hero h1 .highlight {
  background: linear-gradient(120deg, var(--accent), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.h1-bolt {
  width: 0.85em;
  height: 0.85em;
  display: inline-block;
  vertical-align: baseline;
  margin-left: 10px;
  filter: drop-shadow(0 0 14px rgba(255, 255, 255, 0.5));
}

.hero__lead {
  color: var(--text-soft);
  font-size: 1.15rem;
  max-width: 560px;
  margin-bottom: 34px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.marquee {
  margin-top: 80px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  overflow: hidden;
}

.marquee__row {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
}

.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-dim);
  font-weight: 700;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.marquee__item::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Section heading ---------- */
.section {
  padding: 90px 0;
}

.section--soft {
  background: var(--bg-soft);
}

.section__tag {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.section__title {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  font-family: var(--font-display);
}

.section__sub {
  color: var(--text-soft);
  margin-top: 10px;
  max-width: 520px;
}

/* ---------- Stats ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 260px;
  transition: transform 0.2s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}

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

.stat-card__value {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.delta {
  margin-left: 8px;
  font-size: 0.7em;
  vertical-align: middle;
}

.delta-up { color: var(--green); }
.delta-down { color: #ff5b6a; }

/* live numbers: glow green/red on change + pop tween */
.num-up {
  color: var(--green);
  text-shadow: 0 0 18px rgba(49, 209, 88, 0.55);
}

.num-down {
  color: #ff5b6a;
  text-shadow: 0 0 18px rgba(255, 91, 106, 0.55);
}

.pop {
  animation: numpop 0.5s ease;
}

.group-card__members {
  display: inline-block;
}

@keyframes numpop {
  0% { transform: scale(1.16); }
  100% { transform: scale(1); }
}

.stat-card__label {
  color: var(--text-soft);
  font-size: 0.95rem;
  max-width: 300px;
}

.stat-card__link {
  margin-top: auto;
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.stat-card__link:hover {
  color: var(--accent);
}

.stat-card__gfx {
  position: absolute;
  inset: auto 0 0 auto;
  width: 180px;
  height: 100px;
  opacity: 0.85;
  pointer-events: none;
}

/* ---------- Live activity chart ---------- */
.live-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
  overflow: hidden;
}

.live-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(120deg, rgba(47,107,255,.5), transparent 40%, rgba(53,224,255,.35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.live-card__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.live-card__metrics {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.metric {
  text-align: right;
}

.metric__label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-dim);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: 4px;
}

.metric__label .pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.8); }
}

.metric__value {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

.metric__value.up { color: var(--green); }
.metric__value.down { color: #ff6b6b; }

.live-chart {
  position: relative;
}

.live-chart__ylabels {
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 34px;
  width: 46px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  color: var(--text-dim);
  font-size: 0.74rem;
  font-weight: 600;
  padding-right: 8px;
  pointer-events: none;
}

.live-chart svg {
  display: block;
  width: 100%;
  height: 250px;
  overflow: visible;
}

#liveChart {
  margin-left: 54px;
  position: relative;
}

.game-card__art--img {
  background-size: cover;
  background-position: center;
}

.live-chart__axis {
  margin-left: 54px;
  display: flex;
  justify-content: space-between;
  color: var(--text-dim);
  font-size: 0.78rem;
  margin-top: 10px;
}

.live-chart__line {
  fill: none;
  stroke: url(#lineGrad);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 8px rgba(139, 59, 255, 0.55));
}

.live-chart__area {
  fill: url(#areaGrad);
}

.live-chart__grid line {
  stroke: rgba(255, 255, 255, 0.05);
  stroke-width: 1;
}

.live-chart__dot {
  fill: #fff;
  stroke: var(--accent);
  stroke-width: 3;
  filter: drop-shadow(0 0 10px var(--accent));
}

.live-chart__halo {
  fill: rgba(139, 59, 255, 0.25);
}

.live-chart__hover {
  fill: rgba(139, 59, 255, 0.22);
}

.live-chart__hoverdot {
  fill: #fff;
  stroke: var(--accent);
  stroke-width: 3;
  filter: drop-shadow(0 0 8px var(--accent));
}

.live-chart__tip {
  position: absolute;
  display: none;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  pointer-events: none;
  white-space: nowrap;
  z-index: 5;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4);
}

.live-chart__tip b {
  font-weight: 700;
}

.live-chart__tip-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 6px;
  vertical-align: 1px;
}

/* ---------- Featured games ---------- */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 20px;
}

.game-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  aspect-ratio: 16 / 10;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}

.game-card__art {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.game-card__art::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.72) 100%);
}

.game-card__players {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
}

.game-card__players .live {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px rgba(49, 209, 88, 0.9);
}

.game-card__body {
  position: relative;
  z-index: 1;
  padding: 16px;
}

.game-card__title {
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.3;
  margin-bottom: 6px;
}

.game-card__by {
  color: var(--text-soft);
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.game-card__by .rbx-verified,
.group-card__name .rbx-verified {
  width: 14px;
  height: 14px;
  display: inline-block;
  vertical-align: middle;
  margin-left: 2px;
  transform: rotate(-6deg);
  flex: 0 0 auto;
}

/* ---------- Artists (thumbnails) ---------- */
.art-a {
  background:
    radial-gradient(200px 200px at 30% 20%, rgba(139, 59, 255, 0.5), transparent 70%),
    linear-gradient(135deg, #1b2b5e, #0a3a4a);
}
.art-b {
  background:
    radial-gradient(200px 200px at 70% 20%, rgba(255, 99, 71, 0.5), transparent 70%),
    linear-gradient(135deg, #5e1b2b, #3a0a0a);
}
.art-c {
  background:
    radial-gradient(200px 200px at 40% 30%, rgba(31, 216, 122, 0.5), transparent 70%),
    linear-gradient(135deg, #1b5e3a, #0a2f3a);
}
.art-d {
  background:
    radial-gradient(200px 200px at 60% 20%, rgba(255, 194, 47, 0.5), transparent 70%),
    linear-gradient(135deg, #5e4a1b, #3a2f0a);
}
.art-e {
  background:
    radial-gradient(200px 200px at 30% 20%, rgba(185, 47, 255, 0.5), transparent 70%),
    linear-gradient(135deg, #2b1b5e, #0a133a);
}
.art-f {
  background:
    radial-gradient(200px 200px at 70% 20%, rgba(47, 188, 255, 0.5), transparent 70%),
    linear-gradient(135deg, #12394a, #0a0a3a);
}

.game-card__art .shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.8;
}

/* ---------- CTA banner ---------- */
.cta {
  background: linear-gradient(120deg, var(--accent), #1a3f8f);
  border-radius: var(--radius);
  padding: 56px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cta h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  max-width: 560px;
}

.cta p {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.85);
  max-width: 540px;
}

.cta .btn {
  background: #fff;
  color: #0b0b0f;
}

/* ---------- Page hero (sub pages) ---------- */
.page-hero {
  padding: 60px 0 20px;
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.page-hero p {
  color: var(--text-soft);
  margin-top: 14px;
  max-width: 580px;
}

.page-hero.section--center p {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Sort bar ---------- */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 28px 0 34px;
  flex-wrap: wrap;
}

.toolbar__label {
  color: var(--text-soft);
  font-size: 0.9rem;
}

.sort-group {
  display: inline-flex;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px;
  gap: 2px;
}

.sort-btn {
  border: none;
  background: transparent;
  color: var(--text-soft);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.sort-btn:hover {
  color: var(--text);
}

.sort-btn.active {
  background: var(--accent);
  color: #fff;
}

/* ---------- About / Team ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
}

.about-lead {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
}

.about-lead p {
  color: var(--text-soft);
  font-size: 1.05rem;
}

.about-lead p + p {
  margin-top: 16px;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.stat-mini {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  text-align: center;
}

.stat-mini__value {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.stat-mini__label {
  color: var(--text-soft);
  font-size: 0.82rem;
  margin-top: 4px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 18px;
}

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

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

.team-card__avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.5rem;
  color: #fff;
}

.team-card__name {
  font-weight: 700;
  font-size: 1.05rem;
}

.team-card__role {
  color: var(--text-soft);
  font-size: 0.86rem;
  margin-top: 4px;
}

.team-card__social {
  margin-top: 14px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.contact-card h3 {
  font-size: 1.05rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-card h3 svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

.contact-card p {
  color: var(--text-soft);
  font-size: 0.92rem;
}

.contact-card a {
  color: var(--text);
  font-weight: 600;
}

.contact-card a:hover {
  color: var(--accent);
}

.form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

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

.field label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-soft);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s ease;
}

.field textarea {
  resize: vertical;
  min-height: 130px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form__status {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  display: none;
}

.form__status.ok { display: block; background: var(--accent-soft); color: var(--text); }
.form__status.err { display: block; background: rgba(255, 80, 80, 0.15); color: #ff9e9e; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
  background: var(--bg-soft);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  color: var(--text-soft);
  margin-top: 16px;
  max-width: 320px;
  font-size: 0.95rem;
}

.footer-col h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  color: var(--text-soft);
  font-size: 0.95rem;
}

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

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--text-dim);
  font-size: 0.85rem;
}

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

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

/* ---------- Live groups / discord ---------- */
.group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.group-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.group-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  background: var(--bg-elevated);
}

.group-card__badge {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  background-size: cover;
  background-position: center;
}

.group-card__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.group-card__name {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  font-weight: 700;
  font-size: 0.98rem;
}

.group-card__name-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.group-card__members {
  color: var(--text-soft);
  font-size: 0.85rem;
}

.group-card__chev {
  margin-left: auto;
  color: var(--text-dim);
  font-size: 1.3rem;
  line-height: 1;
}

.game-card__visits {
  margin-top: 6px;
  color: var(--text-dim);
  font-size: 0.8rem;
}

.grid-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-dim);
  padding: 40px 0;
}

/* ---------- Centered section heading + accent underline ---------- */
.section__header--center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.accent-underline {
  width: 64px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  margin: 16px auto 0;
}

.section--center {
  text-align: center;
}

.section--center .section__sub {
  margin: 12px auto 0;
}

/* ---------- Acquisition feature cards ---------- */
.acq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 22px;
}

.acq-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.acq-card:hover {
  transform: translateY(-3px);
  border-color: var(--card-color, var(--accent));
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.5), 0 0 40px color-mix(in srgb, var(--card-color, var(--accent)) 40%, transparent);
}

.acq-card:hover h3 {
  color: var(--card-color, var(--accent));
}

.acq-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  flex: 0 0 auto;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.acq-card__icon svg {
  width: 24px;
  height: 24px;
}

.acq-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  font-family: var(--font-display);
}

.acq-card p {
  color: var(--text-soft);
  font-size: 0.95rem;
}

.acq-note {
  margin-top: 28px;
  text-align: center;
  color: var(--text-soft);
  font-size: 1rem;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Partners (animated banner) ---------- */
.partners {
  overflow: hidden;
}

.partners--banner {
  display: flex;
  align-items: center;
  gap: 40px;
  width: 100%;
}

.partners__title {
  flex: 0 0 auto;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  font-family: var(--font-display);
}

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

.partners__marquee {
  flex: 1;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.partners__track {
  display: flex;
  align-items: center;
  width: max-content;
  white-space: nowrap;
}

.partners__group {
  display: flex;
  align-items: center;
  gap: 64px;
  padding-right: 64px;
}

.partner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  opacity: 0.9;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.partner img {
  height: 34px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
  filter: grayscale(1) invert(1) brightness(1.05) contrast(0.9);
  opacity: 0.95;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

.partner:hover {
  opacity: 1;
}

.partner:hover img {
  filter: none;
  opacity: 1;
}

.partner__fallback {
  display: none;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #b9bec9;
}

/* full-width partner band */
.partners-band {
  background: linear-gradient(180deg, #191a23, #0d0d13);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 44px 0;
}

.partners-band .partners__title {
  color: var(--text);
}

/* ---------- About big card ---------- */
.about-big-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 56px 48px;
  text-align: center;
}

.about-big-card p {
  color: var(--text-soft);
  font-size: 1.12rem;
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.7;
}

.about-big-card .btn {
  margin-top: 30px;
}

/* ---------- Careers ---------- */
.job-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.job-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.job-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}

.job-card__info {
  flex: 1;
  min-width: 0;
}

.job-card__title {
  font-weight: 700;
  font-size: 1.15rem;
  font-family: var(--font-display);
}

.job-card__meta {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.job-card__desc {
  color: var(--text-soft);
  font-size: 0.92rem;
  margin-top: 12px;
  max-width: 720px;
}

.perk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

/* colored hover glow for cards (uses --card-color, falls back to accent) */
.group-card:hover,
.stat-card:hover,
.job-card:hover,
.game-card:hover {
  border-color: var(--card-color, var(--accent));
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5), 0 0 34px color-mix(in srgb, var(--card-color, var(--accent)) 38%, transparent);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav__links,
  .nav__cta { display: none; }
  .nav__toggle { display: grid; }
  .nav__social { margin-left: auto; }
  .nav__social .nav__cta-text { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; }
  .cta { padding: 40px 28px; }
  .hero__layout { grid-template-columns: 1fr; gap: 44px; }
  .hero__featured { max-width: 460px; }
  .hero__backdrop { grid-template-columns: repeat(4, 1fr); opacity: 0.28; }
}

@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .hero { padding: 70px 0 60px; }
  .section { padding: 60px 0; }
  .form__row { grid-template-columns: 1fr; }
  .stat-card { min-height: 220px; }
  .live-card { padding: 22px; }
  .live-chart svg { height: 190px; }
  .live-card__metrics { gap: 20px; }
  .metric__value { font-size: 1.3rem; }
  .about-big-card { padding: 32px 22px; }
  .about-big-card p { font-size: 1rem; }
  .acq-card { padding: 24px 20px; }
  .partners__row { gap: 36px; }
}
