@tailwind base;
@tailwind components;
@tailwind utilities;

:root { --foreground-rgb: 248, 250, 252; }

body {
  color: rgb(var(--foreground-rgb));
  background: 
    radial-gradient(circle at 15% 50%, rgba(79, 70, 229, 0.12), transparent 25%), 
    radial-gradient(circle at 85% 30%, rgba(124, 58, 237, 0.12), transparent 25%),
    linear-gradient(to bottom, #020617, #0f172a);
  min-height: 100vh;
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.05em;
}

.glass-panel {
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 1px solid rgba(255, 255, 255, 0.03);
  border-right: 1px solid rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(0, 0, 0, 0.3);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.glass-panel:hover {
  background: rgba(30, 41, 59, 0.75);
  border-color: rgba(99, 102, 241, 0.4);
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.6), 0 0 30px rgba(99, 102, 241, 0.15);
}

.font-dense { letter-spacing: -0.02em; line-height: 1.2; }
.font-relaxed-reading { letter-spacing: 0.08em; line-height: 2.2; text-align: left !important; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.animate-float { animation: float 6s ease-in-out infinite; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }
.animate-fade-in { animation: fadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards; }

.perspective-1000 { perspective: 1000px; }