body {
  font-family: 'Manrope', system-ui, sans-serif;
  background: #09090b;
  color: #f4f4f5;
}

.font-display { font-family: 'Syne', system-ui, sans-serif; }

/* Animations */
@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
@keyframes slideIn {
  0% { opacity: 0; transform: translateX(-20px); }
  100% { opacity: 1; transform: translateX(0); }
}
.animate-fade-up { animation: fadeUp 0.6s ease-out both; }
.animate-fade-in { animation: fadeIn 0.5s ease-out both; }
.animate-slide-in { animation: slideIn 0.5s ease-out both; }

/* Noise texture overlay */
.noise::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
  pointer-events: none;
  z-index: 1;
}

/* Grid pattern */
.grid-pattern {
  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;
}

/* Red accent line */
.accent-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, #ef4444, transparent);
}

/* Glow effects */
.red-glow { box-shadow: 0 0 40px rgba(239,68,68,0.12); }
.red-glow-hover:hover { box-shadow: 0 0 50px rgba(239,68,68,0.2); }

/* Stagger delays */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }

/* Nav glass effect */
.nav-glass {
  background: rgba(8,8,10,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* Link underline animation */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: #ef4444;
  transition: width 0.3s ease;
}
.nav-link:hover::after {
  width: 100%;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #08080a; }
::-webkit-scrollbar-thumb { background: #25252e; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #35353f; }

/* Smooth scroll */
html { scroll-behavior: smooth; }

/* Prose theme overrides */
.prose.prose-invert {
  --tw-prose-body: #d4d4d8;
  --tw-prose-headings: #fafafa;
  --tw-prose-lead: #d4d4d8;
  --tw-prose-links: #ef4444;
  --tw-prose-bold: #fafafa;
  --tw-prose-counters: #a1a1aa;
  --tw-prose-bullets: #71717a;
  --tw-prose-hr: #3f3f46;
  --tw-prose-quotes: #d4d4d8;
  --tw-prose-quote-borders: #ef4444;
  --tw-prose-captions: #a1a1aa;
  --tw-prose-th-borders: #52525b;
  --tw-prose-td-borders: #3f3f46;
}
.prose.prose-invert a:hover { color: #fca5a5; }
.prose.prose-invert table { border-color: #3f3f46; }
.prose.prose-invert th { padding: 0.75rem 1rem; text-align: left; }
.prose.prose-invert td { padding: 0.75rem 1rem; }

/* Mobile bar safe area */
@media (max-width: 1023px) {
  body { padding-bottom: 60px; }
}