@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@600;700&family=DM+Sans:wght@400;500&display=swap');

:root {
  --bg:     #0a0c0f;
  --bg2:    #0f1217;
  --bg3:    #151820;
  --border: rgba(255,255,255,0.07);
  --border2:rgba(255,255,255,0.13);
  --accent: #f6c90e;
  --accent2:#e05c1a;
  --text:   #e8eaf0;
  --muted:  #6b7280;
  --gold:   #f6c90e;
  --silver: #9ca3af;
  --bronze: #cd7c42;
  --disc:   #5865F2;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

/* BG EFFECTS */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(246,201,14,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 90% 80%, rgba(224,92,26,0.06) 0%, transparent 50%);
}

body::after {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* NAV */
nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2.5rem; height: 64px;
  background: rgba(10,12,15,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }

.logo-img { width: 36px; height: 36px; object-fit: contain; }

.logo-box {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Rajdhani', sans-serif; font-size: 1rem; font-weight: 700;
  color: #000; flex-shrink: 0;
}

.logo-text {
  font-family: 'Rajdhani', sans-serif; font-size: 1.2rem; font-weight: 700;
  color: var(--text); letter-spacing: 0.5px;
}
.logo-text span { color: var(--accent); }

.discord-btn {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.55rem 1.3rem;
  background: var(--disc); color: #fff;
  text-decoration: none; border-radius: 8px;
  font-size: 0.875rem; font-weight: 500;
  box-shadow: 0 2px 16px rgba(88,101,242,0.3);
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.discord-btn:hover { background: #4752c4; transform: translateY(-1px); box-shadow: 0 6px 24px rgba(88,101,242,0.45); }
.discord-btn svg { width: 17px; height: 17px; fill: currentColor; }

/* HERO */
.hero {
  position: relative; z-index: 1;
  text-align: center;
  padding: 5.5rem 1rem 3.5rem;
  max-width: 600px; margin: 0 auto;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.35rem 1rem;
  border: 1px solid rgba(246,201,14,0.3); border-radius: 100px;
  font-size: 0.72rem; font-weight: 500; color: var(--accent);
  letter-spacing: 1px; text-transform: uppercase;
  margin-bottom: 1.5rem;
  background: rgba(246,201,14,0.05);
}

.hero h1 {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  font-weight: 700; line-height: 1.05;
  letter-spacing: -1px; margin-bottom: 1rem;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.hero p { color: var(--muted); font-size: 0.95rem; line-height: 1.7; margin-bottom: 2rem; }

/* STATS */
.stats-bar {
  position: relative; z-index: 1;
  display: flex; justify-content: center; gap: 2.5rem;
  margin-bottom: 3rem; flex-wrap: wrap;
}

.stat { text-align: center; }
.stat-num { font-family: 'Rajdhani', sans-serif; font-size: 1.75rem; font-weight: 700; color: var(--accent); display: block; }
.stat-label { font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }

/* PODIUM */
.leaderboard {
  position: relative; z-index: 1;
  max-width: 700px; margin: 0 auto;
  padding: 0 1rem 2.5rem;
}

.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.25rem;
}

.section-title {
  font-family: 'Rajdhani', sans-serif; font-size: 0.85rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted);
}

.live-badge { display: flex; align-items: center; gap: 0.4rem; font-size: 0.72rem; color: var(--muted); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 8px #22c55e; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.3} }

.podium {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 0.75rem; margin-bottom: 0.75rem;
}

.podium-card {
  position: relative;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 14px; padding: 1.5rem 1rem 1.25rem;
  text-align: center; overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
}
.podium-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
}
.podium-card.r1::before { background: linear-gradient(90deg, var(--accent), var(--accent2)); }
.podium-card.r2::before { background: linear-gradient(90deg, var(--silver), #6b7280); }
.podium-card.r3::before { background: linear-gradient(90deg, var(--bronze), #a05a20); }
.podium-card:hover { transform: translateY(-3px); border-color: var(--border2); }

.podium-rank { font-family: 'Rajdhani', sans-serif; font-size: 2rem; font-weight: 700; margin-bottom: 0.25rem; }
.r1 .podium-rank { color: var(--gold); }
.r2 .podium-rank { color: var(--silver); }
.r3 .podium-rank { color: var(--bronze); }
.podium-card.empty .podium-rank { color: var(--muted); opacity: 0.4; }

.podium-name { font-family: 'Rajdhani', sans-serif; font-size: 1rem; font-weight: 700; margin-bottom: 0.4rem; word-break: break-word; }
.podium-card.empty .podium-name { color: var(--muted); font-style: italic; font-size: 0.85rem; }

.podium-votes { font-size: 0.78rem; color: var(--muted); }
.podium-votes strong { color: var(--text); font-size: 0.9rem; }

/* SERVER LIST */
.server-list { display: flex; flex-direction: column; gap: 5px; margin-bottom: 2.5rem; }

.server-row {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.9rem 1.25rem;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 10px;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
  animation: fadeIn 0.4s ease both;
  position: relative;
}
.server-row::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2.5px;
  background: transparent; transition: background 0.15s; border-radius: 2px 0 0 2px;
}
.server-row:hover { background: var(--bg3); border-color: var(--border2); transform: translateX(4px); }
.server-row:hover::before { background: var(--accent); }
.server-row.empty { opacity: 0.25; pointer-events: none; }

@keyframes fadeIn { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:translateY(0)} }

.row-rank { font-family: 'Rajdhani', sans-serif; font-size: 1rem; font-weight: 700; color: var(--muted); width: 28px; text-align: center; flex-shrink: 0; }
.row-name { font-size: 0.9rem; font-weight: 500; flex: 1; }
.row-name.e { color: var(--muted); font-style: italic; font-size: 0.82rem; font-weight: 400; }

.row-bar-wrap { flex: 0 0 100px; height: 4px; background: rgba(255,255,255,0.05); border-radius: 2px; overflow: hidden; }
.row-bar { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent2)); border-radius: 2px; transition: width 0.8s cubic-bezier(0.4,0,0.2,1); }

.row-votes { font-family: 'Rajdhani', sans-serif; font-size: 0.95rem; font-weight: 700; width: 60px; text-align: right; flex-shrink: 0; }
.row-votes span { font-size: 0.68rem; color: var(--muted); font-family: 'DM Sans', sans-serif; font-weight: 400; margin-left: 2px; }

/* DISCORD SECTION */
.disc-section {
  position: relative; z-index: 1;
  max-width: 700px; margin: 0 auto;
  padding: 0 1rem 5rem;
}

.disc-card {
  background: var(--bg2); border: 1px solid rgba(88,101,242,0.25);
  border-radius: 14px; padding: 2rem 2.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  position: relative; overflow: hidden;
}
.disc-card::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 100% at 100% 50%, rgba(88,101,242,0.06) 0%, transparent 60%);
}

.disc-left h2 { font-family: 'Rajdhani', sans-serif; font-size: 1.4rem; font-weight: 700; margin-bottom: 0.4rem; letter-spacing: 0.3px; }
.disc-left p { font-size: 0.82rem; color: var(--muted); line-height: 1.7; max-width: 300px; }
.disc-left p strong { color: var(--text); }

.btn-disc-big {
  flex-shrink: 0;
  display: flex; align-items: center; gap: 0.65rem;
  padding: 0.85rem 1.75rem;
  background: var(--disc); color: #fff;
  text-decoration: none; border-radius: 9px;
  font-size: 0.9rem; font-weight: 600; white-space: nowrap;
  box-shadow: 0 4px 20px rgba(88,101,242,0.3);
  transition: all 0.2s;
}
.btn-disc-big:hover { background: #4752c4; transform: translateY(-2px); box-shadow: 0 8px 28px rgba(88,101,242,0.45); }
.btn-disc-big svg { width: 19px; height: 19px; fill: currentColor; }

/* FOOTER */
footer {
  position: relative; z-index: 1;
  text-align: center; padding: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.7rem; color: var(--muted);
}
footer a { color: var(--accent); text-decoration: none; }

/* SCROLLBAR */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }

/* MOBILE */
@media (max-width: 600px) {
  nav { padding: 0 1rem; }
  .hero { padding: 3.5rem 1rem 2.5rem; }
  .podium { grid-template-columns: 1fr; }
  .row-bar-wrap { display: none; }
  .leaderboard, .disc-section { padding: 0 0.75rem 2rem; }
  .disc-card { flex-direction: column; text-align: center; padding: 1.5rem; gap: 1.25rem; }
  .disc-left p { max-width: 100%; }
}