/* =========================================================================
   Shadowmatic Labs — site.css
   Single-file stylesheet. No bootstrap, no jquery, no FontAwesome.
   Design system: industrial-brutalist + cinematic dark + one magenta accent.
   ========================================================================= */

/* ------- tokens ------- */
:root {
  --bg: #0A0A0B;
  --surface-1: #141416;
  --surface-2: #1C1C1F;
  --line: #26262A;
  --line-strong: #3A3A3F;
  --text: #F4F4F2;
  --text-mute: #8A8A92;
  --text-dim: #52525A;
  --accent: #5BFFB0;
  --accent-ink: #062014;
  --accent-soft: rgba(91, 255, 176, 0.10);
  --accent-glow: rgba(91, 255, 176, 0.55);

  --f-display: 'Anton', 'Bebas Neue', 'Oswald', system-ui, sans-serif;
  --f-body: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'IBM Plex Mono', 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;

  --container: 1280px;
  --gutter: clamp(20px, 4vw, 48px);

  --ease: cubic-bezier(0.2, 0, 0, 1);
  --dur: 220ms;
}

/* ------- reset ------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, video, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--accent); color: var(--accent-ink); }

/* ------- layout ------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section { padding: clamp(72px, 12vw, 160px) 0; border-top: 1px solid var(--line); }
.section:first-of-type { border-top: 0; }

/* ------- type ------- */
.eyebrow {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin: 0 0 24px;
}
.eyebrow .dot { color: var(--accent); }

.display {
  font-family: var(--f-display);
  font-weight: 400;
  letter-spacing: 0.005em;
  line-height: 0.92;
  text-transform: uppercase;
  margin: 0;
}
.display--xl { font-size: clamp(56px, 11vw, 168px); }
.display--lg { font-size: clamp(48px, 8vw, 120px); }
.display--md { font-size: clamp(36px, 5vw, 72px); }

.lede {
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.5;
  color: var(--text-mute);
  max-width: 56ch;
  margin: 24px 0 0;
}

.label-mono {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
}

/* ------- nav ------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(10, 10, 11, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav__brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color var(--dur) var(--ease);
}
.nav__brand-name { color: var(--text); font-weight: 500; }
.nav__brand:hover .nav__brand-name { color: var(--accent); }
.nav__links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
  transition: color var(--dur) var(--ease);
}
.nav__links a:hover { color: var(--text); }
.nav__toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line-strong);
  width: 40px; height: 40px;
  color: var(--text);
  padding: 0;
}
.nav__toggle svg { margin: auto; }

@media (max-width: 720px) {
  .nav__links { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 0; }
  .nav__links.is-open { display: flex; }
  .nav__links a { display: block; padding: 14px var(--gutter); }
  .nav__toggle { display: inline-flex; align-items: center; justify-content: center; }
}

/* ------- hero ------- */
.hero {
  position: relative;
  min-height: clamp(620px, 100vh, 900px);
  display: flex;
  align-items: end;
  padding-top: 64px;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -2;
  background-image: url('../assets/img/background.png');
  background-size: cover;
  background-position: center;
  filter: saturate(0.85) brightness(0.55);
}
.hero__bg::after {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 60% at 50% 100%, rgba(91, 255, 176, 0.09), transparent 60%),
    linear-gradient(180deg, rgba(10,10,11,0.72) 0%, rgba(10,10,11,0.30) 35%, rgba(10,10,11,0.85) 80%, var(--bg) 100%);
}
.hero__grid {
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(80% 60% at 50% 50%, #000, transparent 75%);
}
.hero__content {
  padding: 0 var(--gutter) clamp(56px, 8vw, 96px);
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
}
.hero__wordmark {
  display: block;
  width: min(880px, 80vw);
  height: auto;
  margin: 0 0 clamp(72px, 10vw, 140px);
  opacity: 0.98;
  filter: drop-shadow(0 8px 40px rgba(0,0,0,0.55));
}
.hero__caption {
  font-family: var(--f-mono);
  font-size: clamp(11px, 1vw, 13px);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.hero__caption .bar {
  display: inline-block;
  width: 28px; height: 1px;
  background: var(--accent);
  vertical-align: middle;
}
.hero__caption .accent { color: var(--accent); }
.hero__caption a {
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.hero__caption a:hover { color: var(--text); border-bottom-color: var(--accent); }
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ------- section heading block ------- */
.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: clamp(40px, 6vw, 72px);
}
@media (min-width: 900px) {
  .section-head--split {
    grid-template-columns: 1fr 1fr;
    align-items: end;
    gap: 48px;
  }
}

/* magazine-style section numeral marker */
.section-mark {
  display: inline-flex;
  align-items: baseline;
  gap: 18px;
  font-family: var(--f-display);
  font-size: clamp(40px, 5vw, 72px);
  line-height: 0.95;
  letter-spacing: 0.02em;
  color: var(--accent);
  margin: 0 0 8px;
}
.section-mark span {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.32em;
  color: var(--text-mute);
  text-transform: uppercase;
  position: relative;
  top: -0.4em;
}
.section-mark span::before {
  content: '';
  display: inline-block;
  width: 24px; height: 1px;
  background: var(--accent);
  vertical-align: middle;
  margin-right: 12px;
  position: relative;
  top: -3px;
}

/* ------- "now playing" SBX 5K block ------- */
.game-feature {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 56px);
  margin-bottom: clamp(56px, 8vw, 96px);
}
@media (min-width: 900px) {
  .game-feature { grid-template-columns: 1.4fr 1fr; align-items: stretch; }
}

.video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--surface-1);
  border: 1px solid var(--line);
  overflow: hidden;
}
.video-wrap iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}

.game-meta {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  background: var(--surface-1);
  border: 1px solid var(--line);
}
.game-meta dl { display: grid; grid-template-columns: 1fr 2fr; gap: 16px 24px; margin: 0; }
.game-meta dt { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-dim); margin: 0; }
.game-meta dd { margin: 0; font-size: 14px; color: var(--text); }
.game-meta dd .live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: middle; box-shadow: 0 0 10px var(--accent); }

/* ------- buttons ------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn--primary:hover {
  background: #FFFFFF;
  color: var(--accent-ink);
}
.btn--ghost {
  border-color: var(--line-strong);
  color: var(--text);
}
.btn--ghost:hover {
  border-color: var(--text);
  background: var(--surface-1);
}
.btn svg { width: 16px; height: 16px; }

.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ------- gif feature grid ------- */
.feature-grid {
  display: grid;
  gap: clamp(16px, 2vw, 24px);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .feature-grid { grid-template-columns: repeat(4, 1fr); } }

.feature {
  background: var(--surface-1);
  border: 1px solid var(--line);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.feature:hover { border-color: var(--accent); transform: translateY(-2px); }
.feature__media {
  aspect-ratio: 16 / 9;
  background: var(--surface-2);
  overflow: hidden;
  position: relative;
}
.feature__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.feature__body { padding: 18px 20px 22px; }
.feature__label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.feature__label::before {
  content: '';
  display: inline-block;
  width: 14px; height: 1px;
  background: var(--accent);
}
.feature__title {
  font-family: var(--f-display);
  font-size: 28px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1;
  margin: 0 0 10px;
}
.feature__desc { font-size: 13.5px; color: var(--text-mute); margin: 0; line-height: 1.5; }

/* ------- roster (next-up) ------- */
.roster-grid {
  display: grid;
  gap: clamp(16px, 2vw, 24px);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .roster-grid { grid-template-columns: repeat(2, 1fr); } }

.roster-card {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--surface-1);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  transition: border-color var(--dur) var(--ease);
}
.roster-card--live { background-image: linear-gradient(135deg, rgba(91,255,176,0.07), transparent 60%); }
.roster-card--tba { color: var(--text-mute); }
.roster-card--tba::after {
  content: '';
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg, transparent, transparent 22px, rgba(255,255,255,0.018) 22px, rgba(255,255,255,0.018) 44px);
  pointer-events: none;
}
.roster-card:hover { border-color: var(--line-strong); }
.roster-card__num {
  font-family: var(--f-display);
  font-size: clamp(80px, 12vw, 160px);
  line-height: 0.9;
  letter-spacing: 0.02em;
  color: var(--text);
}
.roster-card--tba .roster-card__num { color: var(--text-dim); }
.roster-card__foot {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  position: relative;
  z-index: 1;
}
.roster-card__title {
  font-family: var(--f-display);
  font-size: clamp(28px, 3vw, 40px);
  text-transform: uppercase;
  line-height: 1;
  margin: 0;
}
.roster-card__status {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-mute);
  text-align: right;
}
.roster-card--live .roster-card__status { color: var(--accent); }
.roster-card--live .roster-card__status .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 8px; box-shadow: 0 0 10px var(--accent); vertical-align: middle; }

/* ------- about ------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
@media (min-width: 900px) { .about-grid { grid-template-columns: 1.1fr 1fr; } }
.about-body p { font-size: clamp(16px, 1.3vw, 18px); line-height: 1.65; color: var(--text-mute); margin: 0 0 16px; }
.about-body p strong { color: var(--text); font-weight: 500; }

/* ------- join ------- */
.join {
  text-align: left;
  background:
    radial-gradient(60% 60% at 80% 0%, rgba(91,255,176,0.05), transparent 70%),
    var(--bg);
}
.join__cta { margin-top: 32px; }

/* ------- footer ------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 28px;
  background: var(--bg);
}
.footer__inner {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .footer__inner { grid-template-columns: 1.4fr 1fr 1fr; } }

.footer__brand img { height: 28px; width: auto; opacity: 0.85; margin-bottom: 16px; }
.footer__tag { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-dim); }
.footer__col h4 {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin: 0 0 16px;
  font-weight: 400;
}
.footer__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer__col a { font-size: 14px; color: var(--text); transition: color var(--dur) var(--ease); display: inline-flex; align-items: center; gap: 10px; }
.footer__col a:hover { color: var(--accent); }
.footer__col a svg { width: 16px; height: 16px; opacity: 0.9; }
.footer__bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ------- back-to-top ------- */
.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 44px; height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-1);
  border: 1px solid var(--line-strong);
  color: var(--text);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
  z-index: 40;
}
.to-top.is-visible { opacity: 1; pointer-events: auto; }
.to-top:hover { border-color: var(--accent); transform: translateY(-2px); }

/* ------- SBX deep-page hero ------- */
.sbx-hero {
  position: relative;
  padding: clamp(120px, 16vw, 200px) 0 clamp(64px, 10vw, 120px);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
}
.sbx-hero::before {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 50% at 80% 30%, rgba(91,255,176,0.07), transparent 70%),
    linear-gradient(180deg, var(--surface-1), var(--bg));
}
.sbx-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: end;
}
@media (min-width: 900px) { .sbx-hero__grid { grid-template-columns: 1.3fr 1fr; } }
.sbx-hero__title {
  font-family: var(--f-display);
  font-size: clamp(72px, 16vw, 240px);
  line-height: 0.86;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  margin: 16px 0 0;
}
.sbx-hero__sub { color: var(--text-mute); font-size: clamp(16px, 1.4vw, 20px); max-width: 50ch; margin: 24px 0 0; }
.sbx-hero__cta { margin-top: 32px; }
