/* ==========================================================================
   Vanguard — dark esports / gaming guild theme
   ========================================================================== */

:root {
  --bg: #0a0a0d;
  --bg-alt: #101013;
  --bg-card: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.09);
  --text: #f2f2f5;
  --text-dim: #a4a4ae;
  --text-dimmer: #6a6a74;
  --accent: #ff2b45;
  --accent-2: #39ffb0;
  --accent-text: #0a0a0d;

  --container-width: 1160px;
  --radius: 10px;
  --radius-lg: 16px;
  --font: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3 { line-height: 1.15; font-weight: 800; letter-spacing: -0.01em; text-transform: uppercase; }

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

.section { padding: 100px 0; position: relative; z-index: 1; }
.section-alt { background: linear-gradient(180deg, transparent, rgba(255, 43, 69, 0.05), transparent); }

.section-head { text-align: center; max-width: 620px; margin: 0 auto 56px; }
.section-head .eyebrow { display: block; margin-bottom: 12px; }
.section-head h2 { font-size: clamp(26px, 4vw, 38px); margin-bottom: 14px; }
.section-head p { color: var(--text-dim); font-size: 16px; text-transform: none; }

.eyebrow {
  display: inline-block;
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Demo-only banner
   ========================================================================== */

.demo-banner {
  position: relative;
  z-index: 2;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 16px;
}
.demo-banner a { color: #fff; text-decoration: underline; }

/* Background texture: scanlines + angular shapes
   ========================================================================== */

.scanlines {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.015),
    rgba(255, 255, 255, 0.015) 1px,
    transparent 1px,
    transparent 3px
  );
  opacity: 0.5;
}

.bg-shapes { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.shape { position: absolute; opacity: 0.14; filter: blur(2px); }
.shape-1 {
  width: 620px; height: 620px; top: -220px; right: -180px;
  background: linear-gradient(135deg, var(--accent), transparent 70%);
  clip-path: polygon(30% 0%, 100% 0%, 100% 70%, 60% 100%, 0% 60%);
}
.shape-2 {
  width: 460px; height: 460px; bottom: -160px; left: -140px;
  background: linear-gradient(135deg, var(--accent-2), transparent 70%);
  clip-path: polygon(0% 20%, 70% 0%, 100% 100%, 20% 100%);
}
.shape-3 {
  width: 320px; height: 320px; top: 40%; left: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
  opacity: 0.06;
}

/* Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 4px;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { transform: translateY(-2px); }

.btn-glow { box-shadow: 0 0 0 0 rgba(255, 43, 69, 0.6); }
.btn-glow:hover { box-shadow: 0 8px 32px -6px rgba(255, 43, 69, 0.75); }

.btn-ghost { background: rgba(255, 255, 255, 0.03); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent-2); color: var(--accent-2); }

.btn-lg { padding: 16px 34px; font-size: 15px; }

/* Header / Nav
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 18px 0;
  background: rgba(10, 10, 13, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { font-size: 21px; font-weight: 900; color: var(--text); letter-spacing: 0.02em; }
.logo span { color: var(--accent); }

.main-nav ul { display: flex; gap: 32px; }
.main-nav a { font-size: 13px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-dim); transition: color 0.15s ease; }
.main-nav a:hover { color: var(--accent-2); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
}
.nav-toggle span { display: block; width: 16px; height: 2px; margin: 0 auto; background: var(--text); }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero + glitch text
   ========================================================================== */

.hero { padding: 140px 0 90px; text-align: center; position: relative; z-index: 1; }
.hero-inner { max-width: 780px; margin: 0 auto; }
.hero .eyebrow { margin-bottom: 22px; }
.hero p.lead { font-size: 18px; color: var(--text-dim); max-width: 600px; margin: 0 auto 36px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.glitch {
  position: relative;
  font-size: clamp(32px, 6vw, 58px);
  margin-bottom: 22px;
  color: var(--text);
}
.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0; right: 0;
  overflow: hidden;
}
.glitch::before {
  color: var(--accent);
  clip-path: inset(0 0 55% 0);
  animation: glitch-a 4.5s infinite linear;
}
.glitch::after {
  color: var(--accent-2);
  clip-path: inset(55% 0 0 0);
  animation: glitch-b 4.5s infinite linear;
}
@keyframes glitch-a {
  0%, 88%, 100% { transform: translate(0, 0); opacity: 0; }
  90% { transform: translate(-4px, -1px); opacity: 0.8; }
  92% { transform: translate(3px, 1px); opacity: 0.8; }
  94% { transform: translate(-2px, 0); opacity: 0.8; }
  96% { opacity: 0; }
}
@keyframes glitch-b {
  0%, 89%, 100% { transform: translate(0, 0); opacity: 0; }
  91% { transform: translate(4px, 1px); opacity: 0.8; }
  93% { transform: translate(-3px, -1px); opacity: 0.8; }
  95% { transform: translate(2px, 0); opacity: 0.8; }
  97% { opacity: 0; }
}

/* Stats band
   ========================================================================== */

.stats-band { padding: 60px 0; background: linear-gradient(135deg, rgba(255, 43, 69, 0.12), rgba(57, 255, 176, 0.06)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-value { display: block; font-size: 38px; font-weight: 900; color: var(--accent-2); font-variant-numeric: tabular-nums; }
.stat-label { font-size: 12px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.08em; }

/* Games ticker (marquee)
   ========================================================================== */

.games-ticker {
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  padding: 18px 0;
  background: var(--bg-alt);
  position: relative;
  z-index: 1;
}
.ticker-track {
  display: flex;
  gap: 20px;
  width: max-content;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--text-dimmer);
  animation: ticker-scroll 26s linear infinite;
}
.ticker-track span:nth-child(odd) { color: var(--text-dim); }
@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Glass cards
   ========================================================================== */

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

.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  backdrop-filter: blur(10px);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.glass-card:hover { transform: translateY(-4px); border-color: rgba(255, 43, 69, 0.4); background: rgba(255, 255, 255, 0.06); }

.card-icon { font-size: 26px; margin-bottom: 16px; }
.glass-card h3 { font-size: 16px; margin-bottom: 8px; }
.glass-card p { color: var(--text-dim); font-size: 14px; text-transform: none; }

/* Roster
   ========================================================================== */

.roster-card { text-align: center; }
.roster-avatar {
  width: 64px; height: 64px;
  margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 18px;
  color: #0a0a0d;
  background: var(--tag-color, var(--accent));
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}
.roster-role { color: var(--text-dim); font-size: 13px; text-transform: none; }

/* Screenshot swiper
   ========================================================================== */

.swiper {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  outline: none;
}
.swiper:focus-visible { border-color: var(--accent-2); }

.swiper-viewport { overflow: hidden; }
.swiper-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  touch-action: pan-y;
  cursor: grab;
}
.swiper-track.is-dragging { transition: none; cursor: grabbing; }

.swiper-slide { flex: 0 0 100%; position: relative; }

.game-shot {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}
.game-shot::before {
  content: "";
  position: absolute;
  inset: 0;
  clip-path: polygon(0% 100%, 0% 55%, 12% 40%, 24% 58%, 38% 32%, 52% 50%, 66% 28%, 80% 46%, 100% 20%, 100% 100%);
  background: rgba(0, 0, 0, 0.3);
}

.game-shot--neon { background: linear-gradient(160deg, #1a0a2e, #3d0f4a 45%, #ff2b6e 130%); }
.game-shot--desert { background: linear-gradient(160deg, #3a1f0a, #a85a2a 55%, #ffcf7a 140%); }
.game-shot--arctic { background: linear-gradient(160deg, #041a2e, #0f4c6b 55%, #bdf3ff 140%); }
.game-shot--jungle { background: linear-gradient(160deg, #06210f, #14522a 55%, #8ee06a 140%); }
.game-shot--space { background: linear-gradient(160deg, #03040f, #241a4a 55%, #6a3dff 140%); }
.game-shot--arena { background: linear-gradient(160deg, #1a0505, #5a1010 55%, #ff5533 140%); }

/* HUD overlay elements — common to every slide */

.hud-rec {
  position: absolute; top: 16px; left: 16px;
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.08em;
  color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}
.hud-rec i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: blink 1.2s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

.hud-minimap {
  position: absolute; top: 16px; right: 16px;
  width: 64px; height: 64px;
  border: 2px solid rgba(255,255,255,0.6);
  border-radius: 50%;
  background: rgba(0,0,0,0.4);
}
.hud-minimap i {
  position: absolute; top: 50%; left: 50%;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-2);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 8px 2px rgba(57, 255, 176, 0.7);
}

.hud-killfeed {
  position: absolute; top: 92px; right: 16px;
  text-align: right;
  font-size: 11px; font-weight: 700;
  color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,0.7);
  line-height: 1.8;
  max-width: 65%;
}

.hud-crosshair {
  position: absolute; top: 50%; left: 50%;
  width: 20px; height: 20px;
  transform: translate(-50%, -50%);
}
.hud-crosshair::before, .hud-crosshair::after {
  content: ""; position: absolute; background: rgba(255,255,255,0.85);
}
.hud-crosshair::before { top: 50%; left: 0; right: 0; height: 2px; transform: translateY(-50%); }
.hud-crosshair::after { left: 50%; top: 0; bottom: 0; width: 2px; transform: translateX(-50%); }

.hud-ammo {
  position: absolute; bottom: 16px; right: 16px;
  font-size: 20px; font-weight: 900; font-variant-numeric: tabular-nums;
  color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

.hud-health {
  position: absolute; bottom: 20px; left: 16px;
  width: 140px; height: 8px;
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 999px;
  overflow: hidden;
}
.hud-health em { display: block; height: 100%; background: var(--accent-2); }

.map-tag {
  position: absolute; bottom: 0; left: 50%;
  transform: translateX(-50%);
  padding: 6px 18px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase;
  color: #fff;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  border-top: 1px solid rgba(255,255,255,0.15);
}

.swiper-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(10, 10, 13, 0.6);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.15s ease, border-color 0.15s ease;
  z-index: 2;
}
.swiper-arrow:hover { background: var(--accent); border-color: var(--accent); }
.swiper-prev { left: 14px; }
.swiper-next { right: 14px; }

.swiper-dots {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px;
  z-index: 2;
}
.swiper-dots button {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: none; cursor: pointer; padding: 0;
  transition: background 0.15s ease, transform 0.15s ease;
}
.swiper-dots button.is-active { background: var(--accent-2); transform: scale(1.3); }

/* CTA banner
   ========================================================================== */

.cta-banner { text-align: center; max-width: 640px; margin: 0 auto; }
.cta-banner h2 { font-size: clamp(26px, 4vw, 36px); margin-bottom: 14px; }
.cta-banner p { color: var(--text-dim); font-size: 16px; margin-bottom: 32px; text-transform: none; }

/* Footer
   ========================================================================== */

.site-footer { border-top: 1px solid var(--border); padding: 32px 0; text-align: center; position: relative; z-index: 1; }
.footer-bottom p { color: var(--text-dimmer); font-size: 13px; }

/* Scroll reveal
   ========================================================================== */

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Responsive
   ========================================================================== */

@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(10, 10, 13, 0.98);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .main-nav.is-open { max-height: 320px; }
  .main-nav ul { flex-direction: column; padding: 8px 24px 20px; gap: 4px; }
  .main-nav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--border); }
  .header-actions .btn { display: none; }
  .nav-toggle { display: flex; }
  .stats-grid { grid-template-columns: 1fr; gap: 32px; }
  .hud-minimap, .hud-killfeed { display: none; }
  .hud-health { width: 100px; }
}
