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

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

@layer base {
  :root {
    --background: 160 50% 5%;
    --foreground: 0 0% 100%;
    --card: 160 35% 8%;
    --card-foreground: 0 0% 100%;
    --popover: 160 35% 8%;
    --popover-foreground: 0 0% 100%;
    --primary: 160 84% 39%;
    --primary-foreground: 160 50% 5%;
    --secondary: 30 30% 15%;
    --secondary-foreground: 35 40% 88%;
    --muted: 160 30% 12%;
    --muted-foreground: 160 12% 58%;
    --accent: 30 55% 40%;
    --accent-foreground: 35 40% 95%;
    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 0 0% 98%;
    --border: 160 18% 15%;
    --input: 160 18% 15%;
    --ring: 160 84% 39%;
    --chart-1: 160 84% 39%;
    --chart-2: 30 55% 40%;
    --chart-3: 160 50% 25%;
    --chart-4: 35 60% 50%;
    --chart-5: 140 60% 45%;
    --radius: 0.5rem;
    --font-heading: 'Inter', ui-sans-serif, system-ui, sans-serif;
    --font-body: 'Inter', ui-sans-serif, system-ui, sans-serif;
    --font-display: 'Inter', ui-sans-serif, system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    --sidebar-background: 160 35% 8%;
    --sidebar-foreground: 35 40% 88%;
    --sidebar-primary: 160 84% 39%;
    --sidebar-primary-foreground: 160 50% 5%;
    --sidebar-accent: 30 55% 40%;
    --sidebar-accent-foreground: 35 40% 95%;
    --sidebar-border: 160 18% 15%;
    --sidebar-ring: 160 84% 39%;
  }

  .dark {
    --background: 160 50% 5%;
    --foreground: 0 0% 100%;
    --card: 160 35% 8%;
    --card-foreground: 0 0% 100%;
    --popover: 160 35% 8%;
    --popover-foreground: 0 0% 100%;
    --primary: 160 84% 39%;
    --primary-foreground: 160 50% 5%;
    --secondary: 30 30% 15%;
    --secondary-foreground: 35 40% 88%;
    --muted: 160 30% 12%;
    --muted-foreground: 160 12% 58%;
    --accent: 30 55% 40%;
    --accent-foreground: 35 40% 95%;
    --destructive: 0 62.8% 30.6%;
    --destructive-foreground: 0 0% 98%;
    --border: 160 18% 15%;
    --input: 160 18% 15%;
    --ring: 160 84% 39%;
    --chart-1: 160 84% 39%;
    --chart-2: 30 55% 40%;
    --chart-3: 160 50% 25%;
    --chart-4: 35 60% 50%;
    --chart-5: 140 60% 45%;
    --sidebar-background: 160 35% 8%;
    --sidebar-foreground: 35 40% 88%;
    --sidebar-primary: 160 84% 39%;
    --sidebar-primary-foreground: 160 50% 5%;
    --sidebar-accent: 30 55% 40%;
    --sidebar-accent-foreground: 35 40% 95%;
    --sidebar-border: 160 18% 15%;
    --sidebar-ring: 160 84% 39%;
  }
}

@layer base {
  * {
    @apply border-border outline-ring/50;
  }

  body {
    @apply bg-background text-foreground font-body;
  }
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 4px;
}
::-webkit-scrollbar-track {
  background: hsl(160 50% 5%);
}
::-webkit-scrollbar-thumb {
  background: hsl(160 84% 39% / 0.3);
  border-radius: 2px;
}
::-webkit-scrollbar-thumb:hover {
  background: hsl(160 84% 39% / 0.5);
}

/* Circuit line animation */
@keyframes circuit-pulse {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.6; }
}

/* Unmask reveal animation */
@keyframes unmask-left {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}

/* Glow pulse */
@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 20px hsl(160 84% 39% / 0.2); }
  50% { box-shadow: 0 0 40px hsl(160 84% 39% / 0.4); }
}

.animate-glow-pulse {
  animation: glow-pulse 3s ease-in-out infinite;
}