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

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

/* Weltklasse Design System - Fusion AI */

@layer base {
  :root {
    /* Premium Color Palette */
    --background: 0 0% 100%;
    --foreground: 224 15% 12%;

    --card: 0 0% 100%;
    --card-foreground: 224 15% 12%;

    --popover: 0 0% 100%;
    --popover-foreground: 224 15% 12%;

    --primary: 221 83% 53%;
    --primary-foreground: 0 0% 100%;

    --secondary: 220 13% 97%;
    --secondary-foreground: 224 15% 12%;

    --muted: 220 8% 96%;
    --muted-foreground: 220 6% 46%;

    --accent: 151 83% 47%;
    --accent-foreground: 0 0% 100%;

    --destructive: 0 84% 60%;
    --destructive-foreground: 0 0% 100%;

    --border: 220 8% 92%;
    --input: 220 8% 92%;
    --ring: 221 83% 53%;

    /* Premium Design Tokens */
    --gradient-primary: linear-gradient(135deg, hsl(221, 83%, 53%) 0%, hsl(221, 83%, 58%) 100%);
    --gradient-hero: linear-gradient(135deg, hsl(221, 83%, 53%) 0%, hsl(151, 83%, 47%) 100%);
    --gradient-subtle: linear-gradient(135deg, hsl(0, 0%, 100%) 0%, hsl(220, 13%, 99%) 100%);
    --gradient-card: linear-gradient(145deg, hsl(0, 0%, 100%) 0%, hsl(220, 8%, 98%) 100%);
    
    /* Premium Shadows */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-card: 0 2px 8px -2px rgba(0, 0, 0, 0.08), 0 4px 12px -4px rgba(0, 0, 0, 0.08);
    --shadow-button: 0 1px 2px 0 rgba(0, 0, 0, 0.06), 0 1px 3px 1px rgba(0, 0, 0, 0.1);
    
    /* Premium Animations */
    --transition-fast: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: all 400ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --transition-bounce: all 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* Premium Layout */
    --radius-xs: 0.25rem;
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;
    --radius-button: 0.875rem;
    --max-width: 1200px;
    --section-spacing: 7rem;
    --section-spacing-mobile: 4rem;
    --header-height: 5rem;

    /* Premium Typography Scale */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;
    --text-7xl: 4.5rem;

    /* Sidebar Variables */
    --sidebar-background: 0 0% 98%;
    --sidebar-foreground: 240 5.3% 26.1%;
    --sidebar-primary: 240 5.9% 10%;
    --sidebar-primary-foreground: 0 0% 98%;
    --sidebar-accent: 240 4.8% 95.9%;
    --sidebar-accent-foreground: 240 5.9% 10%;
    --sidebar-border: 220 13% 91%;
    --sidebar-ring: 217.2 91.2% 59.8%;
  }

  .dark {
    --background: 222.2 84% 4.9%;
    --foreground: 210 40% 98%;

    --card: 222.2 84% 4.9%;
    --card-foreground: 210 40% 98%;

    --popover: 222.2 84% 4.9%;
    --popover-foreground: 210 40% 98%;

    --primary: 210 40% 98%;
    --primary-foreground: 222.2 47.4% 11.2%;

    --secondary: 217.2 32.6% 17.5%;
    --secondary-foreground: 210 40% 98%;

    --muted: 217.2 32.6% 17.5%;
    --muted-foreground: 215 20.2% 65.1%;

    --accent: 217.2 32.6% 17.5%;
    --accent-foreground: 210 40% 98%;

    --destructive: 0 62.8% 30.6%;
    --destructive-foreground: 210 40% 98%;

    --border: 217.2 32.6% 17.5%;
    --input: 217.2 32.6% 17.5%;
    --ring: 212.7 26.8% 83.9%;
    --sidebar-background: 240 5.9% 10%;
    --sidebar-foreground: 240 4.8% 95.9%;
    --sidebar-primary: 224.3 76.3% 48%;
    --sidebar-primary-foreground: 0 0% 100%;
    --sidebar-accent: 240 3.7% 15.9%;
    --sidebar-accent-foreground: 240 4.8% 95.9%;
    --sidebar-border: 240 3.7% 15.9%;
    --sidebar-ring: 217.2 91.2% 59.8%;
  }

  * {
    @apply border-border;
  }

  html {
    scroll-behavior: smooth;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    font-feature-settings: "kern";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  body {
    @apply bg-background text-foreground antialiased;
    line-height: 1.47059;
    font-weight: 400;
    letter-spacing: -0.022em;
  }

  /* Apple Typography System */
  h1, h2, h3, h4, h5, h6 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    font-weight: 600;
    line-height: 1.07143;
    letter-spacing: -0.003em;
  }

  h1 { 
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.05;
  }

  h2 { 
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.08333;
  }

  h3 { 
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    letter-spacing: -0.007em;
    line-height: 1.16667;
  }

  p {
    font-weight: 400;
    line-height: 1.47059;
    letter-spacing: -0.022em;
    color: hsl(var(--muted-foreground));
  }

  .text-gradient {
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  /* Premium Container System */
  .container-fusion {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
  }

  @media (min-width: 768px) {
    .container-fusion {
      padding: 0 2rem;
    }
  }

  @media (min-width: 1024px) {
    .container-fusion {
      padding: 0 3rem;
    }
  }

  /* Premium Grid System */
  .grid-fusion {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
  }

  @media (max-width: 768px) {
    .grid-fusion {
      gap: 1.5rem;
    }
  }

  /* Premium Section Spacing */
  .section-spacing {
    padding: var(--section-spacing-mobile) 0;
  }

  @media (min-width: 768px) {
    .section-spacing {
      padding: var(--section-spacing) 0;
    }
  }

  /* Premium Focus States */
  .focus-ring {
    @apply focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2 focus-visible:ring-offset-background;
  }
}

@layer utilities {
  /* Premium Backgrounds */
  .gradient-primary {
    background: var(--gradient-primary);
  }
  
  .gradient-hero {
    background: var(--gradient-hero);
  }
  
  .gradient-subtle {
    background: var(--gradient-subtle);
  }

  .gradient-card {
    background: var(--gradient-card);
  }
  
  /* Premium Shadows */
  .shadow-xs {
    box-shadow: var(--shadow-xs);
  }

  .shadow-sm {
    box-shadow: var(--shadow-sm);
  }

  .shadow-md {
    box-shadow: var(--shadow-md);
  }

  .shadow-lg {
    box-shadow: var(--shadow-lg);
  }

  .shadow-xl {
    box-shadow: var(--shadow-xl);
  }

  .shadow-2xl {
    box-shadow: var(--shadow-2xl);
  }

  .shadow-card {
    box-shadow: var(--shadow-card);
  }

  .shadow-button {
    box-shadow: var(--shadow-button);
  }
  
  /* Premium Transitions */
  .transition-fast {
    transition: var(--transition-fast);
  }

  .transition-smooth {
    transition: var(--transition-smooth);
  }
  
  .transition-spring {
    transition: var(--transition-spring);
  }

  .transition-bounce {
    transition: var(--transition-bounce);
  }

  /* Premium Animations */
  .hover-lift {
    transition: var(--transition-smooth);
  }

  .hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
  }

  .hover-scale {
    transition: var(--transition-smooth);
  }

  .hover-scale:hover {
    transform: scale(1.02);
  }

  .hover-glow:hover {
    box-shadow: 0 0 0 1px hsl(var(--primary) / 0.2), 0 0 20px hsl(var(--primary) / 0.1);
  }

  /* Logo Carousel Animation */
  @keyframes scroll {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(-50%);
    }
  }

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

  .animate-scroll:hover {
    animation-play-state: paused;
  }

  @keyframes float {
    0%, 100% {
      transform: translateY(0px);
    }
    50% {
      transform: translateY(-10px);
    }
  }

  .animate-float {
    animation: float 6s ease-in-out infinite;
  }

  @keyframes fade-in-up {
    0% {
      opacity: 0;
      transform: translateY(30px);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .animate-fade-in-up {
    animation: fade-in-up 0.8s ease-out;
  }

  /* Premium Typography */
  .text-balance {
    text-wrap: balance;
  }

  .text-pretty {
    text-wrap: pretty;
  }

  /* Premium Interactive Elements */
  .glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
  }

  /* Premium Spacing */
  .space-section {
    margin-top: var(--section-spacing);
  }

  @media (max-width: 768px) {
    .space-section {
      margin-top: var(--section-spacing-mobile);
    }
  }
}