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

:root {
  --bg: #0a0a0a;
  --sidebar-bg: #111111;
  --sidebar-width: 56px;
  --nav-btn-hover: #1e1e1e;
  --nav-btn-active: #2a2a2a;
  --text-primary: #e8e8e8;
  --text-secondary: #666666;
  --text-muted: #444444;
  --card-bg: #141414;
  --card-border: #222222;
  --card-hover: #1c1c1c;
  --input-bg: #141414;
  --input-border: #2a2a2a;
  --accent-glow: rgba(255,255,255,0.04);
  --discord-blue: #5865F2;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  display: flex;
}

/* ─── Canvas ─────────────────────────────────── */
#particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* ─── Sidebar ─────────────────────────────────── */
.sidebar {
  position: relative;
  z-index: 10;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--sidebar-bg);
  border-right: 1px solid #1a1a1a;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 8px 0;
  flex-shrink: 0;
}

.sidebar-top,
.sidebar-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.nav-btn svg {
  width: 18px;
  height: 18px;
}

.nav-btn:hover {
  background: var(--nav-btn-hover);
  color: var(--text-primary);
}

.nav-btn.active {
  background: var(--nav-btn-active);
  color: var(--text-primary);
}

.nav-btn:active {
  transform: scale(0.92);
}

/* ─── Main ─────────────────────────────────── */
.main {
  flex: 1;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 5;
}

/* ─── Hero ─────────────────────────────────── */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  animation: fadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

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

/* ─── Logo ─────────────────────────────────── */
.logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(64px, 8vw, 100px);
  letter-spacing: -2px;
  color: #d0d0d0;
  line-height: 1;
  position: relative;
  text-shadow:
    0 0 80px rgba(255,255,255,0.06),
    0 0 160px rgba(255,255,255,0.03);
  animation: logoGlow 4s ease-in-out infinite alternate;
}

@keyframes logoGlow {
  from { text-shadow: 0 0 60px rgba(255,255,255,0.04), 0 0 120px rgba(255,255,255,0.02); }
  to   { text-shadow: 0 0 100px rgba(255,255,255,0.10), 0 0 200px rgba(255,255,255,0.05); }
}

/* ─── Tagline ─────────────────────────────────── */
.tagline {
  font-size: 13px;
  font-weight: 300;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  margin-top: 6px;
  margin-bottom: 28px;
}

/* ─── Search ─────────────────────────────────── */
.search-wrapper {
  position: relative;
  width: min(460px, 80vw);
  margin-bottom: 20px;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  pointer-events: none;
}

.search-input {
  width: 100%;
  height: 44px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 22px;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  font-weight: 400;
  padding: 0 18px 0 40px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-input:focus {
  border-color: #3a3a3a;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.03);
}

/* ─── Quick Links ─────────────────────────────────── */
.quick-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.quick-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 14px 14px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 400;
  min-width: 82px;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.15s ease,
    box-shadow 0.2s ease;
  animation: fadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.quick-card:nth-child(1) { animation-delay: 0.08s; }
.quick-card:nth-child(2) { animation-delay: 0.14s; }
.quick-card:nth-child(3) { animation-delay: 0.20s; }
.quick-card:nth-child(4) { animation-delay: 0.26s; }
.quick-card:nth-child(5) { animation-delay: 0.32s; }

.quick-card:hover {
  background: var(--card-hover);
  border-color: #333333;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.quick-card:active {
  transform: translateY(0px) scale(0.97);
}

.quick-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #1e1e1e;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.quick-icon svg {
  border-radius: 4px;
}

.github-icon {
  background: #1a1a1a;
}

.partners-icon {
  background: #1e1e1e;
}

.discord-icon {
  background: var(--discord-blue);
}

/* ─── Status Bar ─────────────────────────────────── */
.status-bar {
  position: fixed;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  pointer-events: none;
}

/* ─── Scrollbar ─────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #2a2a2a; border-radius: 3px; }
