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

/* ChatSKU Design System — Dark Navy / Teal B2B SaaS */

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

@layer base {
  :root {
    /* Dark theme as default */
    --background: 222 47% 5%;
    --foreground: 210 40% 96%;

    --card: 222 40% 8%;
    --card-foreground: 210 40% 96%;

    --popover: 222 40% 8%;
    --popover-foreground: 210 40% 96%;

    /* Teal accent */
    --primary: 174 72% 48%;
    --primary-foreground: 222 47% 5%;

    --secondary: 222 32% 14%;
    --secondary-foreground: 210 40% 96%;

    --muted: 222 32% 12%;
    --muted-foreground: 215 20% 55%;

    --accent: 174 72% 48%;
    --accent-foreground: 222 47% 5%;

    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 210 40% 98%;

    --border: 222 32% 16%;
    --input: 222 32% 14%;
    --ring: 174 72% 48%;

    --radius: 0.625rem;

    /* Custom tokens */
    --navy-deep: 222 47% 5%;
    --navy-card: 222 40% 8%;
    --navy-elevated: 222 35% 11%;
    --navy-border: 222 32% 16%;
    --teal: 174 72% 48%;
    --teal-glow: 174 80% 60%;
    --teal-dim: 174 60% 35%;
    --electric-blue: 210 100% 60%;
    --text-dim: 215 20% 55%;

    --sidebar-background: 222 40% 7%;
    --sidebar-foreground: 210 40% 90%;
    --sidebar-primary: 174 72% 48%;
    --sidebar-primary-foreground: 222 47% 5%;
    --sidebar-accent: 222 32% 14%;
    --sidebar-accent-foreground: 210 40% 96%;
    --sidebar-border: 222 32% 14%;
    --sidebar-ring: 174 72% 48%;
  }

  .dark {
    --background: 222 47% 5%;
    --foreground: 210 40% 96%;
    --card: 222 40% 8%;
    --card-foreground: 210 40% 96%;
    --popover: 222 40% 8%;
    --popover-foreground: 210 40% 96%;
    --primary: 174 72% 48%;
    --primary-foreground: 222 47% 5%;
    --secondary: 222 32% 14%;
    --secondary-foreground: 210 40% 96%;
    --muted: 222 32% 12%;
    --muted-foreground: 215 20% 55%;
    --accent: 174 72% 48%;
    --accent-foreground: 222 47% 5%;
    --destructive: 0 62.8% 30.6%;
    --destructive-foreground: 210 40% 98%;
    --border: 222 32% 16%;
    --input: 222 32% 14%;
    --ring: 174 72% 48%;
  }
}

@layer base {
  * {
    @apply border-border;
  }

  html {
    scroll-behavior: smooth;
  }

  body {
    @apply bg-background text-foreground;
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
  }
}

@layer utilities {
  .text-gradient-teal {
    background: linear-gradient(135deg, hsl(var(--teal)), hsl(var(--electric-blue)));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  .glow-teal {
    box-shadow: 0 0 30px hsl(var(--teal) / 0.25), 0 0 60px hsl(var(--teal) / 0.1);
  }

  .glow-teal-sm {
    box-shadow: 0 0 12px hsl(var(--teal) / 0.3);
  }

  .bg-grid {
    background-image: 
      linear-gradient(hsl(var(--border) / 0.4) 1px, transparent 1px),
      linear-gradient(90deg, hsl(var(--border) / 0.4) 1px, transparent 1px);
    background-size: 40px 40px;
  }

  .bg-radial-teal {
    background: radial-gradient(ellipse 80% 60% at 50% -10%, hsl(var(--teal) / 0.12) 0%, transparent 70%);
  }

  .card-elevated {
    background: hsl(var(--navy-elevated));
    border: 1px solid hsl(var(--navy-border));
  }

  .animate-fade-up {
    animation: fadeUp 0.6s ease forwards;
  }

  .animate-fade-in {
    animation: fadeIn 0.5s ease forwards;
  }

  @keyframes fadeUp {
    from {
      opacity: 0;
      transform: translateY(24px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  @keyframes typing {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
  }

  .typing-dot {
    animation: typing 1.2s ease-in-out infinite;
  }

  .typing-dot:nth-child(2) {
    animation-delay: 0.2s;
  }

  .typing-dot:nth-child(3) {
    animation-delay: 0.4s;
  }

  .animate-marquee {
    animation: marquee 25s linear infinite;
  }

  @keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
  }
}
