/* ============================================================
   CompLexity Ecosystem — Design System / Landing Page
   Tema: Roxo + Escuro (Complexity clássico)
   ============================================================ */

/* ---------- Tokens de design (variáveis) ---------- */
:root {
  /* Base escura */
  --bg-0: #08080c;          /* fundo mais profundo */
  --bg-1: #0d0d15;          /* fundo da página */
  --bg-2: #14141f;          /* superfície / cards */
  --bg-3: #1c1c2b;          /* superfície elevada / hover */
  --border: #26263a;        /* bordas sutis */
  --border-strong: #35354f;

  /* Roxo CompLexity */
  --primary: #8b3dff;       /* roxo principal */
  --primary-2: #a855f7;     /* roxo claro */
  --primary-3: #6d28d9;     /* roxo escuro */
  --primary-glow: rgba(139, 61, 255, 0.45);

  /* Estados */
  --online: #22c55e;
  --online-glow: rgba(34, 197, 94, 0.5);
  --offline: #ef4444;
  --warning: #f59e0b;

  /* Texto */
  --text: #f4f4f8;
  --text-muted: #a1a1b5;
  --text-dim: #6b6b82;

  /* Efeitos */
  --radius: 14px;
  --radius-sm: 9px;
  --radius-lg: 22px;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px var(--primary-glow);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);

  /* Tipografia */
  --font-display: "Chakra Petch", "Rajdhani", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

/* Fundo com gradiente radial sutil de roxo */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px circle at 15% -10%, rgba(139, 61, 255, 0.14), transparent 55%),
    radial-gradient(700px circle at 90% 10%, rgba(109, 40, 217, 0.12), transparent 50%),
    var(--bg-1);
}

/* Grid decorativo de fundo */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(139, 61, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 61, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  pointer-events: none;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1.15;
}

.container-c { width: min(1200px, 92%); margin-inline: auto; }

.text-primary-c { color: var(--primary-2); }
.text-muted-c { color: var(--text-muted); }
.text-gradient {
  background: linear-gradient(100deg, var(--primary-2), #d8b4fe 60%, var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Botões ---------- */
.btn-c {
  --btn-bg: var(--bg-3);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--btn-bg);
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-c:hover { transform: translateY(-2px); border-color: var(--primary); }

.btn-primary-c {
  --btn-bg: linear-gradient(100deg, var(--primary-3), var(--primary));
  border-color: transparent;
  box-shadow: 0 6px 22px var(--primary-glow);
}
.btn-primary-c:hover { box-shadow: 0 10px 30px var(--primary-glow); filter: brightness(1.08); }

.btn-ghost-c { background: transparent; }
.btn-lg { padding: 15px 30px; font-size: 1.05rem; }

/* ---------- Chips / badges ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: 100px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}
.dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--text-dim);
}
.dot.online {
  background: var(--online);
  box-shadow: 0 0 0 0 var(--online-glow);
  animation: pulse 2s infinite;
}
.dot.offline { background: var(--offline); }

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 var(--online-glow); }
  70%  { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* ---------- Navbar ---------- */
.navbar-c {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(8, 8, 12, 0.7);
  border-bottom: 1px solid var(--border);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
}
.brand-logo {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--primary), var(--primary-3));
  box-shadow: 0 0 20px var(--primary-glow);
  font-size: 1.2rem;
}
.brand b { color: var(--primary-2); }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
}
.nav-links a:hover { color: var(--text); }
.nav-links a::after {
  content: "";
  position: absolute; left: 0; bottom: -6px;
  width: 0; height: 2px; background: var(--primary);
  transition: var(--transition);
}
.nav-links a:hover::after { width: 100%; }
.nav-actions { display: flex; gap: 12px; align-items: center; }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); font-size: 1.6rem; cursor: pointer; }

/* ---------- Seções ---------- */
section { padding: 90px 0; }
.section-head { text-align: center; margin-bottom: 54px; }
.section-head .eyebrow {
  color: var(--primary-2);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 0.85rem;
}
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); margin-top: 10px; }
.section-head p { color: var(--text-muted); max-width: 620px; margin: 14px auto 0; }

/* ---------- Hero ---------- */
.hero {
  padding: 70px 0 80px;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 15px; border-radius: 100px;
  background: rgba(139, 61, 255, 0.1);
  border: 1px solid rgba(139, 61, 255, 0.3);
  color: var(--primary-2);
  font-size: 0.85rem; font-weight: 600;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  margin-bottom: 20px;
}
.hero p.lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 32px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.hero-stats { display: flex; gap: 34px; flex-wrap: wrap; }
.hero-stat .num {
  font-family: var(--font-display);
  font-size: 1.9rem; font-weight: 700;
  color: var(--text);
}
.hero-stat .lbl { font-size: 0.85rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; }

/* ---------- Card de status do servidor ---------- */
.server-card {
  background: linear-gradient(160deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.server-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-2), transparent);
}
.server-card .map-preview {
  height: 160px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary-3), var(--bg-3));
  display: grid; place-items: center;
  position: relative; overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid var(--border);
}
.server-card .map-preview .map-name {
  font-family: var(--font-display);
  font-size: 1.6rem; font-weight: 700;
  text-shadow: 0 2px 20px rgba(0,0,0,0.6);
  z-index: 1;
}
.server-card .map-preview::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 120%, transparent, rgba(0,0,0,0.5));
}
.server-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
}
.server-head .name { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.server-rows { display: grid; gap: 12px; margin-bottom: 20px; }
.server-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 15px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
}
.server-row .k { color: var(--text-muted); display: flex; align-items: center; gap: 9px; }
.server-row .v { font-weight: 600; font-family: var(--font-display); }
.server-row .v.ip { color: var(--primary-2); cursor: pointer; }

/* Barra de lotação */
.capacity-bar {
  height: 8px; border-radius: 100px;
  background: var(--bg-3); overflow: hidden; margin-top: 4px;
}
.capacity-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  border-radius: 100px;
  transition: width 0.8s ease;
}

/* ---------- Carrossel de servidores ---------- */
.server-carousel { position: relative; }
.server-slides { position: relative; }
.server-slide { display: none; }
.server-slide.active { display: block; animation: slideFade 0.5s ease; }
@keyframes slideFade {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

.slide-tag {
  position: absolute; top: 14px; left: 14px; z-index: 3;
  font-family: var(--font-display); font-weight: 700; font-size: 0.8rem;
  padding: 5px 12px; border-radius: 100px;
  background: rgba(8, 8, 12, 0.65); backdrop-filter: blur(6px);
  border: 1px solid var(--border-strong); color: var(--primary-2);
}

.carousel-controls { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 18px; }
.carousel-arrow {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--border-strong); background: var(--bg-2);
  color: var(--text); font-size: 1.4rem; line-height: 1; cursor: pointer;
  display: grid; place-items: center; transition: var(--transition);
  font-family: var(--font-display);
}
.carousel-arrow:hover { border-color: var(--primary); background: var(--bg-3); transform: translateY(-2px); color: var(--primary-2); }
.carousel-dots { display: flex; gap: 9px; justify-content: center; }
.cdot {
  width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0;
  background: var(--border-strong); cursor: pointer; transition: var(--transition);
}
.cdot:hover { background: var(--primary-2); }
.cdot.active { background: var(--primary); width: 24px; border-radius: 100px; }

/* Card "em construção" */
.soon-preview {
  display: flex !important;
  flex-direction: column; justify-content: center; align-items: center; gap: 10px;
  background: repeating-linear-gradient(45deg,
    var(--bg-3), var(--bg-3) 12px, var(--bg-2) 12px, var(--bg-2) 24px) !important;
}
.soon-badge {
  font-family: var(--font-display); font-weight: 700; z-index: 1;
  background: var(--warning); color: #1a1400;
  padding: 5px 14px; border-radius: 100px; font-size: 0.82rem;
}
.soon-body { padding: 4px 2px 18px; }
.soon-body p { color: var(--text-muted); font-size: 0.95rem; }
.soon-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.soon-tags span {
  font-size: 0.78rem; color: var(--text-muted);
  background: var(--bg-1); border: 1px solid var(--border);
  padding: 5px 11px; border-radius: 100px;
}
.btn-c.is-disabled { opacity: 0.5; pointer-events: none; }

/* ---------- Faixa de estatísticas ---------- */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.stat-box {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
  transition: var(--transition);
}
.stat-box:hover { border-color: var(--primary); transform: translateY(-4px); }
.stat-box .ico { font-size: 1.7rem; margin-bottom: 10px; }
.stat-box .num {
  font-family: var(--font-display);
  font-size: 2.3rem; font-weight: 700;
  color: var(--primary-2);
}
.stat-box .lbl { color: var(--text-muted); font-size: 0.9rem; margin-top: 4px; }

/* ---------- Cards genéricos / grids ---------- */
.card-c {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: var(--transition);
}
.card-c:hover { border-color: var(--border-strong); transform: translateY(-4px); }

/* Ranking */
.rank-list { display: grid; gap: 12px; }
.rank-row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center; gap: 16px;
  padding: 14px 18px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.rank-row:hover { border-color: var(--primary); background: var(--bg-3); }
.rank-pos {
  font-family: var(--font-display); font-weight: 700; font-size: 1.2rem;
  text-align: center; color: var(--text-dim);
}
.rank-row:nth-child(1) .rank-pos { color: #fbbf24; }
.rank-row:nth-child(2) .rank-pos { color: #d1d5db; }
.rank-row:nth-child(3) .rank-pos { color: #d97706; }
.rank-player { display: flex; align-items: center; gap: 13px; }
.rank-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-3));
  border: 2px solid var(--border-strong);
  display: grid; place-items: center; font-weight: 700; font-size: 0.9rem;
}
.rank-name { font-weight: 600; }
.rank-tag { font-size: 0.8rem; color: var(--primary-2); }
.rank-xp { font-family: var(--font-display); font-weight: 700; color: var(--text); }
.rank-xp span { color: var(--text-dim); font-size: 0.8rem; font-weight: 400; }

/* Últimos jogadores */
.players-strip { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.player-chip {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 8px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 100px;
  transition: var(--transition);
}
.player-chip:hover { border-color: var(--primary); }
.player-chip .av {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-2), var(--primary-3));
  display: grid; place-items: center; font-size: 0.8rem; font-weight: 700;
}

/* Comunidade (Discord + Steam) */
.community-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.community-card {
  padding: 34px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  position: relative; overflow: hidden;
  transition: var(--transition);
}
.community-card:hover { transform: translateY(-5px); }
.community-card.discord { background: linear-gradient(150deg, rgba(88, 101, 242, 0.18), var(--bg-2)); }
.community-card.discord:hover { border-color: #5865f2; }
.community-card.steam { background: linear-gradient(150deg, rgba(102, 192, 244, 0.14), var(--bg-2)); }
.community-card.steam:hover { border-color: #66c0f4; }
.community-card .cc-ico { font-size: 2.4rem; margin-bottom: 14px; }
.community-card h3 { font-size: 1.5rem; margin-bottom: 8px; }
.community-card p { color: var(--text-muted); margin-bottom: 22px; }
.community-card .cc-count { font-family: var(--font-display); font-weight: 700; color: var(--text); }

/* Loja / VIP teaser */
.vip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.vip-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  text-align: center;
  position: relative;
  transition: var(--transition);
}
.vip-card:hover { transform: translateY(-6px); border-color: var(--primary); box-shadow: var(--shadow-glow); }
.vip-card.featured { border-color: var(--primary); background: linear-gradient(160deg, rgba(139,61,255,0.12), var(--bg-2)); }
.vip-card.featured::before {
  content: "MAIS POPULAR";
  position: absolute; top: 16px; right: -34px;
  transform: rotate(45deg);
  background: var(--primary); color: #fff;
  font-size: 0.65rem; font-weight: 700; letter-spacing: 1px;
  padding: 4px 40px;
}
.vip-tier { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; }
.vip-price { font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; color: var(--primary-2); margin: 12px 0; }
.vip-price span { font-size: 1rem; color: var(--text-dim); font-weight: 400; }
.vip-feats { display: grid; gap: 11px; margin: 22px 0; text-align: left; }
.vip-feats li { color: var(--text-muted); display: flex; gap: 10px; align-items: center; }
.vip-feats li::before { content: "✓"; color: var(--online); font-weight: 700; }

/* ---------- Footer ---------- */
.footer-c {
  border-top: 1px solid var(--border);
  background: var(--bg-0);
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 40px;
}
.footer-c h4 { font-family: var(--font-display); margin-bottom: 16px; font-size: 1rem; letter-spacing: 1px; }
.footer-c ul { display: grid; gap: 10px; }
.footer-c ul a { color: var(--text-muted); font-size: 0.92rem; transition: var(--transition); }
.footer-c ul a:hover { color: var(--primary-2); }
.footer-about p { color: var(--text-muted); margin: 14px 0; max-width: 320px; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  color: var(--text-dim); font-size: 0.88rem; flex-wrap: wrap; gap: 12px;
}

/* ---------- Animação de entrada ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsivo ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .community-grid, .vip-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--bg-0); padding: 20px; gap: 18px;
    border-bottom: 1px solid var(--border);
  }
}
@media (max-width: 560px) {
  .stats-strip { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 60px 0; }
  .nav-actions .btn-c span.hide-sm { display: none; }
}
