@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;900&family=JetBrains+Mono:wght@400;700&display=swap');

:root {
  --primary: #00e5ff;
  --primary-dark: #0072ff;
  --accent: #ffd54f;
  --purple: #7c4dff;
  --pink: #ff4081;
  --green: #00ff88;
  --bg: #060918;
  --bg-2: #0d1228;
  --card: rgba(26,31,58,.7);
  --card-hover: rgba(35,41,72,.95);
  --text: #e8ecff;
  --text-muted: #8892b0;
  --border: rgba(42,49,85,.6);
  --radius: 20px;
  --glow: 0 0 40px rgba(0,229,255,.4);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: var(--primary); text-decoration: none; }
code, pre { font-family: 'JetBrains Mono', monospace; }

#bgCanvas {
  position: fixed; inset: 0;
  z-index: -1;
  opacity: .6;
  pointer-events: none;
}

/* ===== NAVBAR ===== */
.navbar {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
  background: rgba(6,9,24,.75);
  backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(0,229,255,.15);
}
.nav-brand {
  display: flex; align-items: center; gap: 12px;
  font-weight: 800; font-size: 20px;
  color: var(--text);
}
.logo-svg { display: flex; filter: drop-shadow(0 0 12px rgba(0,229,255,.6)); }
.brand-name {
  background: linear-gradient(90deg, #00e5ff, #7c4dff, #ffd54f);
  background-size: 200% auto;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shine 3s linear infinite;
}
@keyframes shine { to { background-position: 200% center; } }
.nav-links { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav-links a {
  color: var(--text-muted);
  padding: 8px 12px; border-radius: 10px;
  font-size: 13.5px; font-weight: 600;
  transition: all .3s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--text);
  background: rgba(0,229,255,.1);
  box-shadow: 0 0 20px rgba(0,229,255,.2);
}
.nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 22px; cursor: pointer; }

/* ===== LIVE BAR ===== */
.live-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 10px 24px;
  background: linear-gradient(90deg, rgba(0,229,255,.08), rgba(124,77,255,.08));
  border-bottom: 1px solid rgba(0,229,255,.1);
  font-size: 13px; color: var(--text-muted);
}
.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: pulse 1.5s infinite;
}
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(1.3)} }
#liveCount { color: var(--primary); font-weight: 800; font-size: 15px; }
.divider { opacity: .3; }

/* ===== HERO ===== */
.hero {
  position: relative;
  padding: 100px 24px 80px;
  text-align: center; overflow: hidden;
  min-height: 60vh;
  display: flex; align-items: center; justify-content: center;
}
.hero-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; }
.hero-content { position: relative; z-index: 1; max-width: 800px; }
.hero-title {
  font-size: clamp(36px, 7vw, 64px);
  font-weight: 900; margin-bottom: 20px;
  line-height: 1.1;
  text-shadow: 0 0 40px rgba(0,229,255,.3);
}
.gradient-text {
  background: linear-gradient(90deg, #00e5ff, #7c4dff, #ff4081, #ffd54f);
  background-size: 300% auto;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shine 4s linear infinite;
}
.hero-sub { font-size: clamp(16px, 2.5vw, 20px); color: var(--text-muted); margin-bottom: 36px; }
.hero-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px;
  border-radius: 12px;
  font-size: 15px; font-weight: 700;
  border: none; cursor: pointer;
  transition: all .3s;
  font-family: inherit;
  position: relative; overflow: hidden;
}
.btn-primary {
  background: linear-gradient(135deg, #00e5ff, #0072ff);
  color: #fff;
  box-shadow: 0 4px 25px rgba(0,229,255,.5);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(0,229,255,.7); }
.btn-secondary {
  background: rgba(26,31,58,.8);
  color: var(--text);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
}
.btn-secondary:hover { background: var(--card-hover); border-color: var(--primary); }
.btn-small { padding: 8px 16px; font-size: 13px; }

/* ===== SECTION ===== */
.section-title {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 900; text-align: center;
  margin-bottom: 48px;
}
.section { max-width: 1200px; margin: 0 auto; padding: 60px 24px; }

/* ===== FOOTER ===== */
footer {
  text-align: center;
  padding: 40px 24px;
  color: var(--text-muted);
  font-size: 13px;
  border-top: 1px solid var(--border);
  margin-top: 60px;
}
footer a { color: var(--primary); font-weight: 600; }

/* ===== MODAL ===== */
.modal {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.85);
  z-index: 999; padding: 24px;
  overflow-y: auto;
  backdrop-filter: blur(8px);
}
.modal.open { display: flex; align-items: center; justify-content: center; animation: fadeIn .3s; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-content {
  background: linear-gradient(135deg, rgba(26,31,58,.95), rgba(13,18,40,.95));
  border: 1px solid rgba(0,229,255,.3);
  border-radius: 24px;
  padding: 40px;
  max-width: 720px; width: 100%;
  position: relative;
  box-shadow: 0 20px 80px rgba(0,229,255,.3);
  backdrop-filter: blur(20px);
  max-height: 90vh; overflow-y: auto;
}
.modal-close {
  position: absolute; top: 18px; right: 18px;
  background: rgba(13,18,40,.8);
  border: 1px solid var(--border);
  color: var(--text);
  width: 40px; height: 40px;
  border-radius: 50%; cursor: pointer;
  font-size: 16px;
  transition: all .3s;
}
.modal-close:hover { background: var(--pink); border-color: var(--pink); }

/* ===== TOAST ===== */
.toast {
  position: fixed; bottom: 30px; right: 30px;
  background: linear-gradient(135deg, rgba(26,31,58,.98), rgba(13,18,40,.98));
  border: 1px solid var(--primary);
  color: var(--text);
  padding: 16px 24px;
  border-radius: 14px;
  box-shadow: 0 10px 40px rgba(0,229,255,.4);
  z-index: 9999;
  font-weight: 600; font-size: 14px;
  transform: translateX(400px);
  transition: transform .4s cubic-bezier(.68,-.55,.27,1.55);
  backdrop-filter: blur(20px);
}
.toast.show { transform: translateX(0); }
.toast.success { border-color: var(--green); box-shadow: 0 10px 40px rgba(0,255,136,.4); }
.toast.error { border-color: var(--pink); box-shadow: 0 10px 40px rgba(255,64,129,.4); }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #00e5ff, #7c4dff);
  border-radius: 10px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links {
    display: none; position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: rgba(6,9,24,.98);
    padding: 16px;
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(20px);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .hero { padding: 60px 20px 50px; }
  .modal-content { padding: 28px 22px; }
  .toast { left: 20px; right: 20px; bottom: 20px; }
}
