@import 'tailwindcss';

/* Custom CSS Variables */
:root {
  --color-primary-50: #f0f9ff;
  --color-primary-100: #e0f2fe;
  --color-primary-200: #bae6fd;
  --color-primary-300: #7dd3fc;
  --color-primary-400: #38bdf8;
  --color-primary-500: #0ea5e9;
  --color-primary-600: #0284c7;
  --color-primary-700: #0369a1;
  --color-primary-800: #075985;
  --color-primary-900: #0c4a6e;
  
  --color-secondary-50: #f0fdf4;
  --color-secondary-100: #dcfce7;
  --color-secondary-200: #bbf7d0;
  --color-secondary-300: #86efac;
  --color-secondary-400: #4ade80;
  --color-secondary-500: #22c55e;
  --color-secondary-600: #16a34a;
  --color-secondary-700: #15803d;
  --color-secondary-800: #166534;
  --color-secondary-900: #14532d;
}

@layer base {
  * {
    @apply border-gray-200;
  }
  
  body {
    @apply bg-gradient-to-br from-blue-50 via-white to-green-50 text-gray-900 font-sans antialiased;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  }

  h1, h2, h3, h4, h5, h6 {
    @apply font-bold text-gray-900 leading-tight;
  }

  h1 {
    @apply text-4xl md:text-5xl lg:text-6xl xl:text-5xl;
  }

  h2 {
    @apply text-3xl md:text-4xl lg:text-5xl xl:text-4xl;
  }

  h3 {
    @apply text-2xl md:text-3xl;
  }

  h4 {
    @apply text-xl md:text-2xl;
  }

  h5 {
    @apply text-lg md:text-xl;
  }

  h6 {
    @apply text-base md:text-lg;
  }

  p {
    @apply text-gray-700 leading-relaxed;
  }

  a {
    @apply text-blue-600 hover:text-blue-700 transition-colors duration-200;
  }
}

@layer components {
  /* Buttons */
  .btn {
    @apply inline-flex items-center justify-center px-6 py-3 text-base font-medium rounded-lg transition-all duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed;
  }

  .btn-primary {
    @apply bg-gradient-to-r from-blue-500 to-blue-600 text-white hover:from-blue-600 hover:to-blue-700 focus:ring-blue-500 shadow-lg hover:shadow-xl transform hover:-translate-y-0.5;
  }

  .btn-secondary {
    @apply bg-gradient-to-r from-green-500 to-green-600 text-white hover:from-green-600 hover:to-green-700 focus:ring-green-500 shadow-lg hover:shadow-xl transform hover:-translate-y-0.5;
  }

  .btn-outline {
    @apply border-2 border-blue-500 text-blue-600 hover:bg-blue-500 hover:text-white focus:ring-blue-500;
  }

  .btn-ghost {
    @apply text-gray-700 hover:bg-gray-100 focus:ring-gray-500;
  }

  .btn-lg {
    @apply px-8 py-4 text-lg;
  }

  .btn-sm {
    @apply px-4 py-2 text-sm;
  }

  /* Cards */
  .card {
    @apply bg-white/70 backdrop-blur-sm border border-gray-200/50 rounded-xl shadow-lg hover:shadow-xl transition-all duration-300;
  }

  .card-hover {
    @apply transform hover:-translate-y-2 hover:shadow-2xl;
  }

  .card-gradient {
    @apply bg-gradient-to-br from-white/80 to-blue-50/80 backdrop-blur-sm;
  }

  /* Hero Sections */
  .hero-section {
    @apply relative min-h-screen flex items-center justify-center bg-gradient-to-br from-blue-50 via-white to-green-50 overflow-hidden;
  }

  .hero-content {
    @apply text-center max-w-4xl xl:max-w-5xl mx-auto px-4 relative z-10;
  }

  .hero-title {
    @apply text-5xl md:text-6xl lg:text-7xl xl:text-6xl font-bold bg-gradient-to-r from-blue-600 to-green-600 bg-clip-text text-transparent mb-6;
  }

  .hero-subtitle {
    @apply text-xl md:text-2xl xl:text-xl text-gray-700 mb-8 leading-relaxed;
  }

  /* Sections */
  .section {
    @apply py-16 md:py-24 xl:py-20;
  }

  .section-title {
    @apply text-3xl md:text-4xl lg:text-5xl xl:text-4xl font-bold text-center mb-4 bg-gradient-to-r from-blue-600 to-green-600 bg-clip-text text-transparent;
  }

  .section-subtitle {
    @apply text-lg md:text-xl xl:text-lg text-gray-600 text-center mb-12 max-w-3xl mx-auto;
  }

  /* Grid Layouts */
  .grid-2 {
    @apply grid grid-cols-1 md:grid-cols-2 gap-8;
  }

  .grid-3 {
    @apply grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8;
  }

  .grid-4 {
    @apply grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-6;
  }

  /* Navigation */
  .nav {
    @apply bg-white/90 backdrop-blur-md border-b border-gray-200/50 fixed top-0 left-0 right-0 z-50;
  }

  .nav-container {
    @apply max-w-7xl mx-auto px-4 sm:px-6 lg:px-8;
  }

  .nav-content {
    @apply flex items-center justify-between h-16;
  }

  .nav-logo {
    @apply text-2xl font-bold bg-gradient-to-r from-blue-600 to-green-600 bg-clip-text text-transparent;
  }

  .nav-toggle {
    @apply md:hidden flex flex-col items-center justify-center w-8 h-8 space-y-1 bg-transparent border-none cursor-pointer;
  }

  .hamburger-line {
    @apply w-6 h-0.5 bg-gray-700 transition-all duration-300;
  }

  .nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    @apply rotate-45 translate-y-2;
  }

  .nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
    @apply opacity-0;
  }

  .nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    @apply -rotate-45 -translate-y-2;
  }

  .nav-menu {
    @apply hidden md:flex items-center space-x-8;
  }

  .nav-menu.active {
    @apply flex flex-col absolute top-full left-0 right-0 bg-white/95 backdrop-blur-md border-t border-gray-200/50 py-4 space-y-2 space-x-0 shadow-lg;
  }

  .nav-link {
    @apply text-gray-700 hover:text-blue-600 transition-colors duration-200 font-medium px-4 py-2 block md:px-0 md:py-0 md:inline;
  }

  .nav-menu.active .nav-link {
    @apply text-center;
  }

  /* Features */
  .feature-card {
    @apply bg-white/70 backdrop-blur-sm p-8 rounded-xl border border-gray-200/50 hover:shadow-xl transition-all duration-300;
  }

  .feature-icon {
    @apply w-12 h-12 bg-gradient-to-br from-blue-500 to-green-500 rounded-lg flex items-center justify-center text-white mb-4 transition-transform duration-300;
  }

  .feature-title {
    @apply text-xl font-semibold text-gray-900 mb-3;
  }

  .feature-description {
    @apply text-gray-600 leading-relaxed;
  }

  .feature-list {
    @apply text-left mt-4 text-gray-600 space-y-1;
  }

  .success-metrics {
    @apply text-green-600 font-bold mt-4;
  }

  .roi-calculator {
    @apply text-center mt-12 p-8 bg-white rounded-xl border border-gray-200;
  }

  .roi-title {
    @apply text-xl font-semibold text-gray-900 mb-4;
  }

  .roi-content {
    @apply text-gray-600;
  }

  .revenue-metrics {
    @apply text-green-600 font-bold text-xl;
  }

  .disclaimer {
    @apply text-center mt-8 p-6 bg-gray-50 rounded-lg;
  }

  .disclaimer-text {
    @apply text-gray-600 italic;
  }

  /* Stats */
  .stat-card {
    @apply text-center p-6 bg-white/50 backdrop-blur-sm rounded-lg border border-gray-200/50;
  }

  .stat-number {
    @apply text-3xl md:text-4xl xl:text-3xl font-bold bg-gradient-to-r from-blue-600 to-green-600 bg-clip-text text-transparent;
  }

  .stat-label {
    @apply text-gray-600 mt-2;
  }

  /* Steps */
  .step {
    @apply bg-white/70 backdrop-blur-sm p-8 rounded-xl border border-gray-200/50 hover:shadow-xl transition-all duration-300 text-center;
  }

  .step-number {
    @apply w-12 h-12 bg-gradient-to-br from-blue-500 to-green-500 rounded-lg flex items-center justify-center text-white mb-4 transition-transform duration-300 text-xl font-bold mx-auto;
  }

  /* Background variants */
  .bg-light {
    @apply bg-gray-50/50;
  }

  .cta-section {
    @apply bg-gradient-to-br from-blue-500 to-green-500 text-white;
  }

  /* Additional layout utilities */
  .section-header {
    @apply text-center mb-16;
  }

  .card-icon {
    @apply text-4xl mb-4;
  }

  .btn-large {
    @apply px-10 py-5 text-xl;
  }

  /* Forms */
  .form-group {
    @apply mb-6;
  }

  .form-label {
    @apply block text-sm font-medium text-gray-700 mb-2;
  }

  .form-input {
    @apply w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent transition-all duration-200 bg-white/70 backdrop-blur-sm;
  }

  .form-textarea {
    @apply w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent transition-all duration-200 bg-white/70 backdrop-blur-sm resize-y min-h-[120px];
  }

  /* Utilities */
  .container-padding {
    @apply px-4 sm:px-6 lg:px-8;
  }

  .max-width {
    @apply max-w-7xl xl:max-w-6xl mx-auto;
  }

  .text-gradient {
    @apply bg-gradient-to-r from-blue-600 to-green-600 bg-clip-text text-transparent;
  }

  .bg-pattern {
    background-image: 
      radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
      radial-gradient(circle at 80% 20%, rgba(34, 197, 94, 0.1) 0%, transparent 50%),
      radial-gradient(circle at 40% 80%, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
  }

  /* Footer */
  .footer {
    @apply bg-gray-900 text-white;
  }

  .footer-content {
    @apply max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12;
  }

  .footer-section {
    @apply mb-8 md:mb-0;
  }

  .footer-title {
    @apply text-lg font-semibold mb-4;
  }

  .footer-link {
    @apply text-gray-300 hover:text-white transition-colors duration-200;
  }

  /* Animations */
  .fade-in {
    @apply opacity-0 translate-y-8 transition-all duration-700;
  }

  .fade-in.active {
    @apply opacity-100 translate-y-0;
  }

  .slide-up {
    @apply transform translate-y-4 opacity-0 transition-all duration-500;
  }

  .slide-up.active {
    @apply translate-y-0 opacity-100;
  }
}

/* Responsive Design Enhancements */
@media (max-width: 768px) {
  .hero-title {
    @apply text-4xl;
  }
  
  .section-title {
    @apply text-2xl md:text-3xl;
  }
  
  .btn {
    @apply w-full sm:w-auto;
  }
}

/* Desktop optimizations */
@media (min-width: 1280px) {
  .hero-section {
    @apply min-h-[90vh];
  }
  
  .feature-card {
    @apply p-6;
  }
  
  .step {
    @apply p-6;
  }
  
  .card {
    @apply p-6;
  }
  
  .btn-lg {
    @apply px-6 py-3 text-base;
  }
  
  .btn-large {
    @apply px-8 py-4 text-lg;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    @apply transition-none;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .card, .feature-card {
    @apply border-2 border-gray-400;
  }
}

/* Focus styles for better accessibility */
.btn:focus,
.form-input:focus,
.form-textarea:focus {
  @apply outline-none ring-2 ring-offset-2;
}