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

@layer base {
  * {
    box-sizing: border-box;
  }
  
  html {
    scroll-behavior: smooth;
  }
  
  body {
    background-color: #060608;
    color: #e2e8f0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  
  ::selection {
    background-color: rgba(59, 130, 246, 0.2);
  }
}

@layer components {
  .text-gradient {
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  
  .btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
  }
  
  .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.5);
  }
  
  .glass-card {
    background: rgba(10, 12, 20, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.4s ease;
  }
  
  .glass-card:hover {
    border-color: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
  }
  
  .bg-grid {
    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;
  }
  
  .conn-line {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: dash 3s ease-in-out infinite;
  }
  
  .conn-line.active {
    stroke-width: 4;
    filter: url(#glow-dot);
  }
  
  .node-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .node-card:hover {
    transform: translateY(-4px) scale(1.05);
    cursor: pointer;
  }
  
  .node-label {
    opacity: 0.6;
    transition: opacity 0.3s ease;
  }
  
  .node-card:hover + .node-label {
    opacity: 1;
  }
}

@layer utilities {
  .transition-all-ease {
    transition: all 0.3s ease;
  }
}

@keyframes dash {
  0%, 100% {
    stroke-dashoffset: 100;
    opacity: 0.3;
  }
  50% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
}

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

@keyframes pulse-slow {
  0%, 100% {
    opacity: 0.4;
  }
  50% {
    opacity: 0.8;
  }
}

@keyframes spin-slow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.faq-btn {
  transition: all 0.3s ease;
}

.faq-btn:hover {
  background-color: rgba(255, 255, 255, 0.03);
}

.faq-icon {
  transition: transform 0.3s ease;
}

.faq-btn.active .faq-icon {
  transform: rotate(45deg);
}

.faq-body {
  transition: all 0.3s ease;
}

.faq-btn.active + .faq-body {
  max-height: 100px;
  opacity: 1;
}

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

.animate-pulse-slow {
  animation: pulse-slow 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

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

@media (max-width: 768px) {
  .platform-node {
    transform: scale(0.85);
  }
}
