* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #07080a;
  color: #d0d0d0;
  font-family: 'Inter', sans-serif;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  cursor: none;
}

#canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
  cursor: none;
}

.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #000000;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.9);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: transform 0.12s ease-out, opacity 0.2s ease, border-color 0.2s ease;
}

.cursor-dot.active {
  opacity: 1;
}

.cursor-dot.pressed {
  transform: translate(-50%, -50%) scale(1.6);
  border-color: rgba(0, 240, 255, 0.6);
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.35);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
  height: 60px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(7, 8, 10, 0.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 10;
  cursor: none;
}

.logo a {
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
  color: #e0e0e0;
  opacity: 0.8;
  transition: opacity 0.2s ease;
  cursor: none;
}

.logo a:hover {
  opacity: 1;
}

nav a {
  text-decoration: none;
  margin-left: 1.5rem;
  font-size: 0.95rem;
  color: #777777;
  transition: color 0.2s ease;
  cursor: none;
}

nav a:hover {
  color: #ffffff;
}

nav a.active {
  color: #ffffff;
  font-weight: 700;
}

.nav-symbol-pulse {
  display: inline-block;
  opacity: 0.9;
}

.hallucination-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 100px;
  background: rgba(12, 14, 18, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #888888;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.5px;
  cursor: none;
  outline: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hallucination-toggle:hover {
  background: rgba(20, 24, 32, 0.8);
  border-color: rgba(255, 255, 255, 0.25);
  color: #cccccc;
  transform: translateY(-1px);
}

.hallucination-toggle.active {
  background: rgba(18, 26, 38, 0.85);
  border-color: rgba(0, 240, 255, 0.5);
  color: #00f0ff;
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.25), inset 0 0 12px rgba(0, 240, 255, 0.1);
}

.hallucination-symbol {
  font-size: 1.05rem;
  line-height: 1;
}

.hallucination-toggle.active .hallucination-symbol {
  animation: pulseSymbol 2.4s ease-in-out infinite;
}

@keyframes pulseSymbol {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.25); opacity: 1; filter: drop-shadow(0 0 6px #00f0ff); }
}

@media (max-width: 600px) {
  .site-header {
    padding: 0 1rem;
  }
  nav a {
    margin-left: 0.8rem;
    font-size: 0.85rem;
  }
  .hallucination-toggle {
    bottom: 16px;
    right: 16px;
    padding: 6px 12px;
    font-size: 0.72rem;
  }
  .cursor-dot {
    display: none;
  }
}
