* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  min-height: 100vh;
  background: #020208;
  font-family: 'DM Mono', monospace;
  color: #fff;
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #020208; }
::-webkit-scrollbar-thumb { background: rgba(0, 245, 255, 0.15); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0, 245, 255, 0.4); }

:root {
  --cyan: #00f5ff;
  --purple: #a855f7;
  --pink: #f472b6;
  --dark: #020208;
  --card-bg: rgba(6, 6, 18, 0.55);
  --card-border: rgba(0, 245, 255, 0.12);
  --font-heading: 'Outfit', sans-serif;
  --font-mono: 'DM Mono', monospace;
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(0, 245, 255, 0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 245, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
}

.scanlines {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 0, 0, 0.08) 2px, rgba(0, 0, 0, 0.08) 4px);
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: rgba(2, 2, 8, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-logo {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 22px;
  color: #fff;
  text-decoration: none;
  letter-spacing: 1px;
}

.logo-dot {
  color: var(--cyan);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-link:hover { color: #fff; }

.nav-btn {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: #000;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.nav-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(0, 245, 255, 0.3);
}

.nav-btn-outline {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.2s;
}

.nav-btn-outline:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

/* Buttons */
.btn-primary {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: #000;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 245, 255, 0.35);
}

.btn-full { width: 100%; }

.btn-secondary {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 12px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.btn-secondary:hover {
  border-color: var(--purple);
  color: #fff;
  background: rgba(168, 85, 247, 0.08);
}

.btn-small {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
  background: rgba(0, 245, 255, 0.08);
  border: 1px solid rgba(0, 245, 255, 0.25);
  color: var(--cyan);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-small:hover {
  background: rgba(0, 245, 255, 0.15);
  border-color: var(--cyan);
}

/* Loading */
.loading-state {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  z-index: 500;
}

.loading-state p {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

.loader {
  width: 32px;
  height: 32px;
  border: 2px solid rgba(0, 245, 255, 0.15);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Footer */
.footer {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 32px;
  font-family: var(--font-heading);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer a {
  color: var(--cyan);
  text-decoration: none;
  font-weight: 600;
}

.footer a:hover { text-decoration: underline; }
