@tailwind base;
@tailwind components;
@tailwind utilities;

/* KlinIQ brand utilities - Updated to use only specified colors */
.brand-bg {
  background-color: #23527C;
}

/* Dark Blue */
.brand-bg-hover:hover {
  background-color: #1d4567;
}

.brand-text {
  color: #23527C;
}

/* Dark Blue */
.brand-text-light {
  color: #C0DCE0;
}

/* Light Blue */
.brand-border {
  border-color: #23527C;
}

/* Dark Blue */
.brand-border-light {
  border-color: #C0DCE0;
}

/* Light Blue */
.brand-bg-light {
  background-color: #C0DCE0;
}

/* Light Blue */
.brand-ring:focus-visible {
  --tw-ring-color: #23527C;
}

/* Additional brand colors */
.brand-red {
  color: #EF4444;
}

/* Red for urgency */
.brand-red-bg {
  background-color: #EF4444;
}

.brand-gold {
  color: #F59E0B;
}

/* Gold for premium */
.brand-gold-bg {
  background-color: #F59E0B;
}

/* Color rotation backgrounds */
.bg-dark-section {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

.bg-light-section {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.bg-dark-blue-section {
  background: linear-gradient(135deg, #23527C 0%, #1d4567 100%);
}

.bg-light-blue-section {
  background: linear-gradient(135deg, #C0DCE0 0%, #a8c7cc 100%);
}

/* Enhanced hover and pop effects */
.pop-hover:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(35, 82, 124, 0.3);
}

.pop-cta {
  box-shadow: 0 4px 15px rgba(35, 82, 124, 0.4);
}

.pop-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(35, 82, 124, 0.5);
}

.glow-text {
  text-shadow: 0 0 20px rgba(192, 220, 224, 0.5);
}

.pulse-glow {
  animation: pulseGlow 2s infinite;
}

/* Icon glow effects - Updated to use only brand colors */
.icon-glow:hover {
  filter: drop-shadow(0 0 8px rgba(192, 220, 224, 0.6));
  /* Light Blue */
  transition: filter 0.8s ease;
}

.icon-glow-brand:hover {
  filter: drop-shadow(0 0 12px rgba(35, 82, 124, 0.8));
  /* Dark Blue */
  transition: filter 0.8s ease;
}

.icon-glow-light-blue:hover {
  filter: drop-shadow(0 0 10px rgba(192, 220, 224, 0.8));
  /* Light Blue */
  transition: filter 0.8s ease;
}

.icon-glow-red:hover {
  filter: drop-shadow(0 0 10px rgba(239, 68, 68, 0.8));
  /* Red for urgency */
  transition: filter 0.8s ease;
}

.icon-glow-gold:hover {
  filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.8));
  /* Gold for premium */
  transition: filter 0.8s ease;
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(35, 82, 124, 0.3);
  }
  50% {
    box-shadow: 0 0 30px rgba(35, 82, 124, 0.6);
  }
}

/* Card + badge stand-ins for shadcn/ui */
.card {
  @apply rounded-2xl border border-gray-700/50 bg-gray-800/50 shadow;
}

.card-solid {
  @apply rounded-2xl shadow;
}

.card-content {
  @apply p-4;
}

.badge {
  @apply inline-flex items-center gap-2 rounded-full border px-3 py-1.5 text-sm font-medium;
}

/* Simple "animate in" helper when section becomes visible */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

/* Enhanced Scroll to Top Button Styles */
.scroll-to-top-btn {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.scroll-to-top-btn:hover {
  box-shadow:
    0 20px 40px rgba(38, 89, 133, 0.3),
    0 10px 20px rgba(38, 89, 133, 0.2),
    0 0 30px rgba(38, 89, 133, 0.4);
}

/* Icon rotation animation on hover */
.scroll-to-top-btn:hover i {
  transform: rotate(-6deg) scale(1.05) translateY(-1px);
}

/* Smooth transition for all icon animations */
.scroll-to-top-btn i {
  transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Custom shadow size for scroll button */
.shadow-3xl {
  box-shadow:
    0 35px 60px rgba(0, 0, 0, 0.3),
    0 15px 30px rgba(0, 0, 0, 0.2),
    0 0 40px rgba(35, 82, 124, 0.3);
}

/* Smooth entrance animation */
.scroll-to-top-enter {
  animation: scrollToTopEnter 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

@keyframes scrollToTopEnter {
  0% {
    transform: translateY(20px) scale(0.8);
    opacity: 0;
  }
  50% {
    transform: translateY(-5px) scale(1.05);
    opacity: 0.8;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

/* Additional animations */
@keyframes fadeBlink {
  0%, 100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

.blink {
  animation: fadeBlink 2s infinite;
}

.blink-delay-1 {
  animation-delay: 0s;
}

.blink-delay-2 {
  animation-delay: 0.5s;
}

.blink-delay-3 {
  animation-delay: 1s;
}

/* Slow Tada Animation for Mascot */
@keyframes tada-slow {
  0% {
    transform: scale(1) rotate(0deg);
  }
  10%, 20% {
    transform: scale(0.9) rotate(-3deg);
  }
  30%, 50%, 70%, 90% {
    transform: scale(1.1) rotate(3deg);
  }
  40%, 60%, 80% {
    transform: scale(1.1) rotate(-3deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
  }
}

.animate-tada-slow {
  animation: tada-slow 4s ease-in-out infinite;
}

/* Comprehensive Mobile Responsiveness */
@media (max-width: 768px) {
  /* Typography Optimization */
  h1 {
    font-size: 1.875rem !important;
    line-height: 1.2 !important;
  }

  h2 {
    font-size: 1.5rem !important;
    line-height: 1.3 !important;
  }

  h3 {
    font-size: 1.25rem !important;
    line-height: 1.4 !important;
  }

  h4 {
    font-size: 1.125rem !important;
    line-height: 1.4 !important;
  }

  h5 {
    font-size: 1rem !important;
    line-height: 1.5 !important;
  }

  h6 {
    font-size: 0.875rem !important;
    line-height: 1.5 !important;
  }

  /* Body text optimization */
  p,
  .text-base {
    font-size: 0.9375rem !important;
    line-height: 1.6 !important;
  }

  .text-sm {
    font-size: 0.8125rem !important;
    line-height: 1.5 !important;
  }

  .text-xs {
    font-size: 0.75rem !important;
    line-height: 1.4 !important;
  }

  /* Container and spacing optimization */
  .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  /* Section padding optimization */
  section {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }

  /* Card and component optimization */
  .card,
  .rounded-2xl,
  .bg-white\/90 {
    padding: 1rem !important;
  }

  /* Button optimization */
  .inline-flex.items-center {
    padding: 0.35rem 1.5rem !important;
  }

  /* Grid optimization */
  .grid {
    gap: 1rem !important;
  }

  .grid-cols-1 {
    gap: 1rem !important;
  }

  /* Stats and metrics optimization */
  .text-3xl,
  .text-2xl,
  .text-xl {
    font-size: 1.25rem !important;
    line-height: 1.2 !important;
  }

  /* Spacing optimization */
  .space-y-6>*+* {
    margin-top: 1rem !important;
  }

  .space-y-4>*+* {
    margin-top: 0.75rem !important;
  }

  .space-y-3>*+* {
    margin-top: 0.5rem !important;
  }

  /* Image optimization */
  img {
    max-width: 100% !important;
    height: auto !important;
  }

  /* Logo optimization */
  .h-10 {
    height: 2rem !important;
  }

  .h-14 {
    height: 2.5rem !important;
  }

  /* Interactive elements */
  button,
  a[role="button"],
  .cursor-pointer {
    min-height: 44px !important;
    padding: 0.75rem 1rem !important;
  }

  /* Navigation optimization */
  header nav {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    height: 3.5rem !important;
  }

  /* Mobile menu optimization */
  #mobile-menu {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
  }

  #mobile-menu a {
    padding: 0.75rem 0 !important;
    font-size: 1rem !important;
  }

  /* Form elements optimization */
  input,
  textarea,
  select {
    font-size: 16px !important;
    padding: 0.75rem !important;
  }

  /* Touch and interaction optimization */
  * {
    -webkit-tap-highlight-color: rgba(35, 82, 124, 0.1) !important;
    touch-action: manipulation !important;
  }

  /* Remove hover effects on touch devices */
  @media (hover: none) and (pointer: coarse) {
    .hover\:bg-gray-800:hover,
    .hover\:text-white:hover,
    .hover\:shadow-xl:hover {
      background-color: transparent !important;
      color: inherit !important;
      box-shadow: none !important;
    }
  }

  /* Better mobile readability */
  .leading-tight {
    line-height: 1.3 !important;
  }

  .leading-relaxed {
    line-height: 1.7 !important;
  }

  /* Optimize for very small screens */
  @media (max-width: 480px) {
    h1 {
      font-size: 1.75rem !important;
    }

    h2 {
      font-size: 1.375rem !important;
    }

    h3 {
      font-size: 1.125rem !important;
    }

    .container {
      padding-left: 0.75rem !important;
      padding-right: 0.75rem !important;
    }

    section {
      padding-top: 2rem !important;
      padding-bottom: 2rem !important;
    }

    /* Extra small device optimizations */
    .text-lg {
      font-size: 1rem !important;
    }

    .text-xl {
      font-size: 1.125rem !important;
    }

    /* Button sizing for very small screens */
    button,
    a[role="button"] {
      min-height: 40px !important;
      font-size: 0.875rem !important;
    }

    /* Grid spacing for very small screens */
    .grid {
      gap: 0.75rem !important;
    }

    /* Hero section mobile spacing to account for fixed header */
    .mobile-hero-spacing {
        padding-top: 6rem !important;
    }

    /* General section mobile spacing for sections that might be affected by fixed header */
    .mobile-section-spacing {
        padding-top: 4rem !important;
    }
  }
}

/* Enhanced mobile responsiveness for scroll button */
@media (max-width: 768px) {
  .scroll-to-top-btn {
    bottom: 1rem !important;
    right: 1rem !important;
    width: 3rem !important;
    height: 3rem !important;
  }

  .scroll-to-top-btn i {
    width: 1.25rem !important;
    height: 1.25rem !important;
  }
}

/* ===== PREMIUM GLASS MORPHISM EFFECTS ===== */

/* Premium Glass Button Base */
.premium-glass {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Primary Glass CTA - Brand Colors */
.premium-glass-primary {
  background: rgba(35, 82, 124, 0.9);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    0 20px 40px rgba(35, 82, 124, 0.3),
    0 10px 20px rgba(35, 82, 124, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.premium-glass-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 1.2s ease;
}

.premium-glass-primary:hover::before {
  left: 100%;
}

.premium-glass-primary:hover {
  background: rgba(35, 82, 124, 0.95);
  box-shadow:
    0 30px 60px rgba(35, 82, 124, 0.4),
    0 15px 30px rgba(35, 82, 124, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}

/* Secondary Glass CTA */
.premium-glass-secondary {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 2px solid rgba(35, 82, 124, 0.2);
  box-shadow:
    0 15px 30px rgba(35, 82, 124, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.premium-glass-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.8);
  box-shadow:
    0 25px 50px rgba(255, 255, 255, 0.15),
    0 15px 30px rgba(255, 215, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Navigation Glass Effect */
.premium-glass-nav {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.premium-glass-nav:hover {
  background: rgba(35, 82, 124, 0.08);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-color: rgba(35, 82, 124, 0.2);
  box-shadow:
    0 8px 24px rgba(35, 82, 124, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

/* Mobile Menu Glass Effect */
.premium-glass-mobile {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.premium-glass-mobile:hover {
  background: rgba(35, 82, 124, 0.1);
  border-color: rgba(35, 82, 124, 0.3);
  box-shadow:
    0 12px 32px rgba(35, 82, 124, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* Stats Cards Glass Effect */
.premium-glass-stats {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 215, 0, 0.1);
  box-shadow:
    0 8px 24px rgba(35, 82, 124, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.premium-glass-stats:hover {
  background: rgba(255, 215, 0, 0.05);
  border-color: rgba(255, 215, 0, 0.2);
  box-shadow:
    0 16px 40px rgba(35, 82, 124, 0.12),
    0 8px 20px rgba(255, 215, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: translateY(-6px) scale(1.02);
}

/* Performance Cards Glass Effect */
.premium-glass-perf {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow:
    0 12px 28px rgba(35, 82, 124, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.premium-glass-perf:hover {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow:
    0 20px 48px rgba(245, 158, 11, 0.2),
    0 12px 24px rgba(35, 82, 124, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    /* Golden glow shadow effect */
    0 0 40px rgba(255, 215, 0, 0.2),
    0 0 80px rgba(255, 215, 0, 0.1),
    0 0 120px rgba(255, 215, 0, 0.05);
  transform: translateY(-2px);
}

/* Enhanced Hover Glow Effects */
.premium-glow-primary:hover {
  filter: drop-shadow(0 0 20px rgba(35, 82, 124, 0.4));
}

/* Gold CTA Button Glow Effect */
.premium-glass-primary[style*="background: linear-gradient(135deg, #CFB53B"]:hover {
  filter: drop-shadow(0 0 25px rgba(207, 181, 59, 0.5));
}

.premium-glow-secondary:hover {
  filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.15));
}

.premium-glow-nav:hover {
  filter: drop-shadow(0 0 10px rgba(35, 82, 124, 0.2));
}

/* Golden Glow Effects for Performance Tracker */
.premium-glow-gold:hover {
  filter: drop-shadow(0 0 25px rgba(255, 215, 0, 0.25));
}

.premium-glow-gold-shadow {
  position: relative;
}

.premium-glow-gold-shadow::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.05) 0%, transparent 70%);
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.8s ease;
  z-index: -1;
}

.premium-glow-gold-shadow:hover::before {
  opacity: 1;
}

/* Premium Glass Effect for Proof Section Cards */
.premium-glass-proof {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 215, 0, 0.2);
  box-shadow:
    0 25px 50px rgba(0, 0, 0, 0.3),
    0 15px 30px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

.premium-glass-proof::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.05), transparent);
  transition: left 1.0s ease;
}

.premium-glass-proof:hover::before {
  left: 100%;
}

.premium-glass-proof:hover {
  border-color: rgba(255, 215, 0, 0.25);
  box-shadow:
    0 35px 70px rgba(0, 0, 0, 0.4),
    0 20px 40px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    /* Golden glow effect */
    0 0 50px rgba(255, 215, 0, 0.1),
    0 0 100px rgba(255, 215, 0, 0.05);
  transform: translateY(-3px);
}

/* Glass effect for proof section icons */
.premium-glass-icon-proof {
  background: rgba(30, 41, 59, 0.8);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 215, 0, 0.15);
  box-shadow:
    0 8px 16px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.premium-glass-icon-proof:hover {
  background: rgba(30, 41, 59, 0.9);
  border-color: rgba(255, 215, 0, 0.2);
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Premium Glass Effect for Feature Grid Cards */
.premium-glass-feature {
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 215, 0, 0.25);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.25),
    0 10px 20px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  position: relative;
  overflow: hidden;
}

.premium-glass-feature::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.04), transparent);
  transition: left 1.2s ease;
}

.premium-glass-feature:hover::before {
  left: 100%;
}

.premium-glass-feature:hover {
  border-color: rgba(255, 215, 0, 0.2);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.35),
    0 15px 30px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    /* Golden glow effect */
    0 0 40px rgba(255, 215, 0, 0.08),
    0 0 80px rgba(255, 215, 0, 0.04);
  transform: translateY(-4px);
}

/* Glass effect for feature section icons */
.premium-glass-feature-icon {
  background: rgba(30, 41, 59, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 215, 0, 0.2);
  box-shadow:
    0 6px 12px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.premium-glass-feature-icon:hover {
  background: rgba(30, 41, 59, 0.95);
  border-color: rgba(255, 215, 0, 0.25);
  box-shadow:
    0 10px 20px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Premium Animation Classes */
.premium-transition {
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.premium-transform-hover:hover {
  transform: translateY(-2px) scale(1.005);
}

/* Enhanced Icon Glow on Hover */
.premium-icon-glow:hover svg,
.premium-icon-glow:hover i {
  filter: drop-shadow(0 0 12px rgba(35, 82, 124, 0.6));
  transform: scale(1.05) rotate(3deg);
  transition: all 0.8s ease;
}

/* Tablet-specific adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
  .tablet-reduced-padding {
    padding: 1.5rem !important;
  }

  /* Reduce glass effects on tablets for performance */
  .premium-glass-primary,
  .premium-glass-secondary,
  .premium-glass-nav,
  .premium-glass-mobile,
  .premium-glass-stats,
  .premium-glass-perf {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
}

/* Mobile optimizations for glass effects */
@media (max-width: 768px) {
  .premium-glass-primary,
  .premium-glass-secondary,
  .premium-glass-nav,
  .premium-glass-mobile,
  .premium-glass-stats,
  .premium-glass-perf {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-width: 1px;
  }

  .premium-glass-primary:hover,
  .premium-glass-secondary:hover,
  .premium-glass-nav:hover,
  .premium-glass-mobile:hover,
  .premium-glass-stats:hover,
  .premium-glass-perf:hover {
    transform: translateY(-2px) scale(1.005);
  }

  /* Reduce golden glow intensity on mobile for performance */
  .premium-glass-perf:hover {
    box-shadow:
      0 15px 35px rgba(245, 158, 11, 0.15),
      0 8px 18px rgba(35, 82, 124, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.15),
      0 0 25px rgba(255, 215, 0, 0.1),
      0 0 50px rgba(255, 215, 0, 0.05);
  }

  .premium-glow-gold:hover {
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.15));
  }

  /* Mobile optimizations for proof section cards */
  .premium-glass-proof {
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
  }

  .premium-glass-proof:hover {
    transform: translateY(-1px);
    box-shadow:
      0 25px 50px rgba(0, 0, 0, 0.3),
      0 15px 30px rgba(0, 0, 0, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.05),
      0 0 30px rgba(255, 215, 0, 0.05),
      0 0 60px rgba(255, 215, 0, 0.02);
  }

  .premium-glass-icon-proof {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  /* Mobile optimizations for feature cards */
  .premium-glass-feature {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .premium-glass-feature:hover {
    transform: translateY(-2px);
    box-shadow:
      0 20px 40px rgba(0, 0, 0, 0.25),
      0 10px 20px rgba(0, 0, 0, 0.15),
      inset 0 1px 0 rgba(255, 255, 255, 0.03),
      0 0 25px rgba(255, 215, 0, 0.04),
      0 0 50px rgba(255, 215, 0, 0.02);
  }

  .premium-glass-feature-icon {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  /* ===== MOBILE PRICING SECTION OPTIMIZATIONS ===== */
  
  /* Pricing section mobile improvements */
  .pricing-section-mobile {
    padding: 2rem 1rem !important;
  }

  /* Pricing grid mobile optimization */
  .pricing-grid-mobile {
    gap: 1.5rem !important;
    padding: 0 0.5rem !important;
  }

  /* Pricing card mobile improvements */
  .pricing-card-mobile {
    padding: 1.5rem !important;
    margin-bottom: 1rem !important;
    border-radius: 1rem !important;
  }

  /* Pricing card header mobile optimization */
  .pricing-header-mobile h3 {
    font-size: 1.25rem !important;
    line-height: 1.3 !important;
    margin-bottom: 0.75rem !important;
  }

  .pricing-price-mobile {
    font-size: 2rem !important;
    line-height: 1.2 !important;
    margin-bottom: 1rem !important;
  }

  .pricing-price-mobile span {
    font-size: 1rem !important;
  }

  /* Pricing card content mobile optimization */
  .pricing-content-mobile {
    margin-bottom: 1.5rem !important;
  }

  .pricing-content-mobile p {
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
    margin-bottom: 1rem !important;
  }

  /* Pricing features list mobile optimization */
  .pricing-features-mobile h4 {
    font-size: 1rem !important;
    margin-bottom: 0.75rem !important;
  }

  .pricing-features-mobile ul {
    gap: 0.75rem !important;
  }

  .pricing-features-mobile li {
    font-size: 0.85rem !important;
    line-height: 1.4 !important;
    gap: 0.5rem !important;
  }

  .pricing-features-mobile li i {
    width: 1rem !important;
    height: 1rem !important;
    margin-top: 0.125rem !important;
  }

  /* Pricing CTA button mobile optimization */
  .pricing-cta-mobile {
    padding: 0.875rem 1.5rem !important;
    font-size: 0.9rem !important;
    min-height: 48px !important;
    border-radius: 0.75rem !important;
  }

  .pricing-cta-mobile i {
    width: 1rem !important;
    height: 1rem !important;
  }

  /* Most Popular badge mobile optimization */
  .popular-badge-mobile {
    font-size: 0.8rem !important;
    padding: 0.5rem 1rem !important;
    top: -0.75rem !important;
  }

  /* FAQ section mobile optimization */
  .faq-mobile {
    margin-top: 2rem !important;
  }

  .faq-item-mobile {
    margin-bottom: 0.75rem !important;
    border-radius: 0.75rem !important;
  }

  .faq-toggle-mobile {
    padding: 1rem !important;
  }

  .faq-toggle-mobile h4 {
    font-size: 0.95rem !important;
    line-height: 1.4 !important;
    padding-right: 1rem !important;
  }

  .faq-toggle-mobile i {
    width: 1.25rem !important;
    height: 1.25rem !important;
  }

  .faq-content-mobile {
    padding: 0 1rem 1rem 1rem !important;
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
  }

  /* Pricing section heading mobile optimization */
  .pricing-heading-mobile h2 {
    font-size: 2rem !important;
    line-height: 1.2 !important;
    margin-bottom: 1.5rem !important;
  }

  /* Footer text mobile optimization */
  .pricing-footer-mobile {
    margin-top: 2rem !important;
    font-size: 0.85rem !important;
    line-height: 1.5 !important;
    padding: 0 1rem !important;
  }
}

/* Gold CTA Button with Premium Glass Effects */
.premium-glass-primary[style*="background: linear-gradient(135deg, #CFB53B"] {
  background: linear-gradient(135deg, #CFB53B 0%, #B8941F 100%) !important;
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    0 20px 40px rgba(207, 181, 59, 0.3),
    0 10px 20px rgba(207, 181, 59, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.premium-glass-primary[style*="background: linear-gradient(135deg, #CFB53B"]:hover {
  background: linear-gradient(135deg, #D4A843 0%, #C19B1F 100%) !important;
  box-shadow:
    0 30px 60px rgba(207, 181, 59, 0.4),
    0 15px 30px rgba(207, 181, 59, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}

.premium-glass-primary[style*="background: linear-gradient(135deg, #CFB53B"]::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 1.2s ease;
}

.premium-glass-primary[style*="background: linear-gradient(135deg, #CFB53B"]:hover::before {
  left: 100%;
}

/* Consistent justified text for testimonial cards - cross-browser compatible */
.testimonial-justify {
  text-align: justify;
  text-justify: inter-word;
}

/* Testimonial cards equal height fix for cross-platform compatibility */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  align-items: stretch;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 220px;
}

.testimonial-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-text {
  flex: 1;
  display: flex;
  align-items: center;
  min-height: 60px;
}

/* Scrolling Text Animation */
.scrolling-container {
  position: relative;
  width: 100%;
  height: 60px;
  overflow: hidden;
  display: flex;
  align-items: center;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.scrolling-text {
  position: absolute;
  display: inline-block;
  white-space: nowrap;
  font-size: 1.25rem;
  font-weight: 600;
  color: white;
  animation: scrollText 40s linear infinite;
  padding-right: 100vw;
}

.scrolling-text:nth-child(2) {
  animation-delay: -20s;
}

@keyframes scrollText {
  0% {
    transform: translateX(100vw);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* Responsive adjustments for scrolling text */
@media (max-width: 768px) {
  .scrolling-text {
    font-size: 1rem;
    animation: scrollText 25s linear infinite;
    padding-right: 150vw;
  }
  .scrolling-text:nth-child(2) {
    animation-delay: -12.5s;
  }
  .scrolling-container {
    height: 50px;
  }
}
