@import "tailwindcss";

@layer base {
  :root {
    --bg-primary: #FFFFFF;
    --bg-secondary: #F6F8FB;
    --accent-primary: #00F0FF;
    --accent-glow: rgba(0, 240, 255, 0.25);
    --accent-soft: rgba(0, 240, 255, 0.12);
    --text-primary: #14151A;
    --text-muted: #5B5F6B;
    --border-subtle: #E4E7EC;
    --success: #16A34A;
    --warning: #D97706;
  }

  body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    overflow-x: hidden;
  }
}

/* Custom Component Utilities & Micro-Animations */
@layer components {
  /* Card Base - Soft Light SaaS Elevation */
  .card-dark {
    background-color: #F6F8FB;
    border: 1px solid #E4E7EC;
    border-radius: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.03);
  }
  
  .card-dark:hover {
    border-color: #00A8B5;
    transform: translateY(-4px);
    box-shadow: 0 12px 30px -4px rgba(0, 168, 181, 0.12);
  }

  /* Elevated Primary Featured Card */
  .card-elevated {
    background-color: #FFFFFF;
    border: 1px solid #E4E7EC;
    border-radius: 1rem;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
  }

  .card-elevated:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -10px rgba(0, 168, 181, 0.15);
  }

  /* Pulse Status Badges */
  .pulse-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-family: monospace;
    font-weight: 700;
    letter-spacing: 0.05em;
    background-color: rgba(0, 240, 255, 0.12);
    color: #00A8B5;
    border: 1px solid rgba(0, 168, 181, 0.3);
  }

  /* Primary Vibrant Gradient Button */
  .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.8rem 1.75rem;
    border-radius: 9999px;
    font-weight: 800;
    font-size: 0.875rem;
    letter-spacing: 0.02em;
    background: linear-gradient(135deg, #00F0FF 0%, #00A8B5 100%);
    color: #0A0A0F;
    border: 1px solid rgba(0, 240, 255, 0.4);
    box-shadow: 0 4px 18px -2px rgba(0, 240, 255, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
  }

  .btn-primary:hover {
    background: linear-gradient(135deg, #26F4FF 0%, #00BFCE 100%);
    transform: translateY(-2.5px) scale(1.01);
    box-shadow: 0 8px 25px -2px rgba(0, 240, 255, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  }

  .btn-primary:active {
    transform: translateY(0px) scale(0.98);
  }

  .btn-primary svg, .btn-primary i {
    transition: transform 0.25s ease;
  }

  .btn-primary:hover svg, .btn-primary:hover i {
    transform: translateX(4px);
  }

  /* Secondary Glass Outline Button */
  .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.8rem 1.75rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.875rem;
    background: #FFFFFF;
    color: #14151A;
    border: 1.5px solid #E4E7EC;
    box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.04);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
  }

  .btn-secondary:hover {
    background: #F6F8FB;
    border-color: #00A8B5;
    color: #00A8B5;
    transform: translateY(-2.5px);
    box-shadow: 0 8px 20px -4px rgba(0, 168, 181, 0.18);
  }

  .btn-secondary:active {
    transform: translateY(0px) scale(0.98);
  }

  .btn-secondary svg, .btn-secondary i {
    transition: transform 0.25s ease;
  }

  .btn-secondary:hover svg, .btn-secondary:hover i {
    transform: translateX(4px);
  }

  /* Ambient Glow Container Background */
  .bg-ambient-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1200px;
    height: 600px;
    background: radial-gradient(circle at 50% 0%, rgba(0, 240, 255, 0.08) 0%, rgba(139, 92, 246, 0.04) 50%, transparent 80%);
    pointer-events: none;
    z-index: 0;
  }
}

/* Custom Keyframe Animations */
@keyframes floatSlow {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(0.5deg);
  }
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
  }
  50% {
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.45);
  }
}

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

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

.animate-float-delayed {
  animation: floatSlow 7s ease-in-out infinite 2s;
}

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

.animate-marquee {
  display: flex;
  width: 200%;
  animation: marqueeScroll 25s linear infinite;
}

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

/* FAQ Accordion Styling */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0, 1, 0, 1), opacity 0.3s ease;
  opacity: 0;
}

.faq-item.active .faq-answer {
  max-height: 400px;
  opacity: 1;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
  color: #00A8B5;
}
