/* ===== COLORS (change these to re-theme the whole site) ===== */
:root {
  --bg: #07070d;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-hover: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --text: #ececf4;
  --muted: #9b9bb4;
  --violet: #8b5cf6;
  --cyan: #22d3ee;
  --pink: #f472b6;
  --discord: #5865f2;
  --glow: 0 0 40px rgba(139, 92, 246, 0.35);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

h1, h2, h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.icon {
  width: 1.1em;
  height: 1.1em;
  flex-shrink: 0;
  vertical-align: -0.15em;
}

main {
  position: relative;
  z-index: 1;
}

/* ===== GLOWING BACKGROUND ===== */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.45;
  animation: float 18s ease-in-out infinite;
}

.blob-1 {
  width: 520px;
  height: 520px;
  background: var(--violet);
  top: -160px;
  left: -120px;
}

.blob-2 {
  width: 440px;
  height: 440px;
  background: var(--cyan);
  top: 30%;
  right: -160px;
  opacity: 0.3;
  animation-delay: -6s;
}

.blob-3 {
  width: 380px;
  height: 380px;
  background: var(--pink);
  bottom: -140px;
  left: 30%;
  opacity: 0.25;
  animation-delay: -12s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(60px, 40px) scale(1.1); }
  66%      { transform: translate(-40px, 60px) scale(0.95); }
}

/* Faint grid lines that fade out toward the edges */
.grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 0%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, black 20%, transparent 70%);
}

/* ===== NAVIGATION ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 6%;
  background: rgba(7, 7, 13, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.1rem;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  box-shadow: var(--glow);
}

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

.nav nav a {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

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

.nav .nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--panel);
}

.nav .nav-btn:hover {
  border-color: var(--discord);
  box-shadow: 0 0 20px rgba(88, 101, 242, 0.5);
}

/* ===== HERO ===== */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  padding: 90px 6% 70px;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-text {
  max-width: 600px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--panel);
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 24px;
  transition: border-color 0.2s;
}

.pill b {
  color: var(--text);
}

.pill:hover {
  border-color: var(--violet);
}

/* The pulsing green "live" dot */
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70%  { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 800;
  margin-bottom: 20px;
}

.gradient-text {
  background: linear-gradient(90deg, var(--violet), var(--cyan), var(--pink), var(--violet));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 6s linear infinite;
}

@keyframes shine {
  to { background-position: 300% 0; }
}

.subtitle {
  font-size: 1.15rem;
  color: var(--muted);
  margin-bottom: 32px;
}

.subtitle b {
  color: var(--text);
}

/* ===== BUTTONS ===== */
.buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.buttons.center {
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 12px;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--violet), #6d28d9);
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.45);
}

.btn-primary:hover {
  box-shadow: 0 0 45px rgba(139, 92, 246, 0.75);
}

.btn-ghost {
  border: 1px solid var(--border);
  background: var(--panel);
}

.btn-ghost:hover {
  background: var(--panel-hover);
}

.btn-discord {
  background: var(--discord);
  box-shadow: 0 0 30px rgba(88, 101, 242, 0.45);
}

.btn-discord:hover {
  box-shadow: 0 0 45px rgba(88, 101, 242, 0.75);
}

/* ===== HERO ORB (game icon + spinning rings) ===== */
.orb {
  position: relative;
  width: 300px;
  height: 300px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}

.ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  padding: 2px;
  background: conic-gradient(from 0deg, var(--violet), transparent 30%, var(--cyan), transparent 70%, var(--violet));
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  animation: spin 8s linear infinite;
}

.ring-2 {
  inset: 28px;
  animation-duration: 12s;
  animation-direction: reverse;
  opacity: 0.6;
}

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

.orb-inner {
  position: relative;
  width: 180px;
  height: 180px;
  border-radius: 36px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: 0 0 80px rgba(139, 92, 246, 0.5), 0 0 140px rgba(34, 211, 238, 0.25);
  animation: bob 5s ease-in-out infinite;
}

.orb-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.orb-fallback {
  font-size: 4.5rem;
}

.orb-inner img:not([hidden]) + .orb-fallback {
  display: none;
}

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

/* ===== CARDS (glass panels used everywhere) ===== */
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.25s, border-color 0.25s, background 0.25s, box-shadow 0.25s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 92, 246, 0.5);
  background: var(--panel-hover);
  box-shadow: 0 10px 40px rgba(139, 92, 246, 0.15);
}

/* ===== STATS ===== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 6%;
}

.stat {
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  margin-bottom: 12px;
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.25);
}

.number {
  font-size: 2.2rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff, #b9b9d0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.label {
  color: var(--muted);
  font-size: 0.95rem;
}

.stats-note {
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 14px;
  position: relative;
  z-index: 1;
}

/* ===== SECTIONS ===== */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 90px 6% 0;
}

.section-head {
  text-align: center;
  margin-bottom: 40px;
}

.section-head h2,
.about h2,
.join h2 {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 800;
  margin: 10px 0 8px;
}

.section-head p {
  color: var(--muted);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--violet);
}

/* ===== FEATURES ===== */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.feature {
  padding: 26px;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(34, 211, 238, 0.15));
  border: 1px solid rgba(139, 92, 246, 0.35);
  color: #c4b5fd;
  font-size: 1.2rem;
}

.feature h3,
.chapter h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.feature p,
.chapter p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ===== CHAPTERS ===== */
.chapters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}

.chapter {
  padding: 26px;
}

.chip {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.3);
}

.chip-pink {
  color: var(--pink);
  background: rgba(244, 114, 182, 0.1);
  border-color: rgba(244, 114, 182, 0.3);
}

/* ===== OTHER GAMES ===== */
.game-card {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 18px;
  max-width: 680px;
  margin: 0 auto;
}

.game-thumb {
  width: 96px;
  height: 96px;
  border-radius: 18px;
  overflow: hidden;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 2.5rem;
  background: rgba(255, 255, 255, 0.05);
}

.game-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-thumb img:not([hidden]) + span {
  display: none;
}

.game-info {
  flex: 1;
}

.game-info h3 {
  font-size: 1.2rem;
}

.game-info p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 4px 0 8px;
}

.game-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--cyan);
}

.game-arrow {
  color: var(--muted);
  font-size: 1.4rem;
  transition: transform 0.2s, color 0.2s;
}

.game-card:hover .game-arrow {
  transform: translateX(4px);
  color: var(--text);
}

/* ===== ABOUT ===== */
.about {
  padding: 50px;
  text-align: center;
}

.about p {
  color: var(--muted);
  max-width: 680px;
  margin: 0 auto;
  font-size: 1.08rem;
}

/* ===== TEAM ===== */
.team {
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
}

.member {
  width: 260px;
  padding: 30px 24px;
  text-align: center;
}

.avatar {
  position: relative;
  width: 96px;
  height: 96px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 2.2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px rgba(139, 92, 246, 0.6), var(--glow);
  overflow: hidden;
}

.avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #1c1c2b;
}

.member h3 {
  font-size: 1.2rem;
}

.role {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fbbf24;
  font-size: 0.9rem;
  margin: 4px 0 18px;
}

.profile-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-size: 0.9rem;
  font-weight: 500;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.profile-link:hover {
  border-color: var(--violet);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.35);
}

/* ===== JOIN ===== */
.join {
  padding: 60px 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-color: rgba(88, 101, 242, 0.4);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(88, 101, 242, 0.25), transparent 70%),
    var(--panel);
}

.join p {
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 28px;
}

/* ===== FOOTER ===== */
.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 50px 6% 40px;
  margin-top: 90px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 14px;
}

.footer-links a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-size: 1.1rem;
  transition: color 0.2s, border-color 0.2s;
}

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

/* ===== SCROLL ANIMATION (things fade up as you scroll to them) ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.card.reveal {
  transition: opacity 0.7s ease, transform 0.7s ease, border-color 0.25s, background 0.25s, box-shadow 0.25s;
}

/* Cards keep their hover lift after they've revealed */
.card.reveal.visible:hover {
  transform: translateY(-4px);
  transition-delay: 0s;
}

/* ===== PHONES / SMALL SCREENS ===== */
@media (max-width: 860px) {
  .hero {
    flex-direction: column-reverse;
    text-align: center;
    padding: 50px 16px 40px;
    gap: 40px;
  }

  .buttons {
    justify-content: center;
  }

  .orb {
    width: 230px;
    height: 230px;
  }

  .orb-inner {
    width: 140px;
    height: 140px;
    border-radius: 28px;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 16px;
    gap: 12px;
  }

  .number {
    font-size: 1.7rem;
  }

  .section {
    padding: 70px 16px 0;
  }

  .about {
    padding: 34px 22px;
  }
}

@media (max-width: 640px) {
  .nav {
    padding: 12px 16px;
  }

  .hide-mobile {
    display: none;
  }

  .game-card {
    gap: 14px;
  }

  .game-thumb {
    width: 72px;
    height: 72px;
  }

  .game-arrow {
    display: none;
  }
}

/* People who turn off animations in Windows settings get a still page */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
