/* Marketing page custom styles */

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #52525b;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #71717a;
}

/* Glass Effect */
.glass {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.dark .glass {
  background: rgba(10, 10, 10, 0.8);
}

/* Subtle Grid Background */
.bg-grid {
  background-size: 40px 40px;
  background-image: linear-gradient(to right, rgba(0,0,0,0.03) 1px, transparent 1px),
                    linear-gradient(to bottom, rgba(0,0,0,0.03) 1px, transparent 1px);
}
.dark .bg-grid {
  background-image: linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px),
                    linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px);
}

/* Logo theme switching - light mode default */
.logo-dark { display: none !important; }
.logo-light { display: block !important; }

/* Dark mode - swap logos */
.dark .logo-dark { display: block !important; }
.dark .logo-light { display: none !important; }

/* Staggered animation delays */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* Scroll-triggered animations */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.6s ease;
}

.reveal.animate-ready {
  opacity: 0;
  transform: translateY(20px);
}

.reveal.animate-ready.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Strikethrough effect */
.strikethrough {
  position: relative;
  display: inline-block;
}

.strikethrough::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 3px;
  background: #ef4444;
  transform: rotate(-2deg);
}

/* FAQ accordion icon rotation */
.faq-icon-rotated {
  transform: rotate(45deg);
}

/* Checkmark list */
.check-list li {
  position: relative;
  padding-left: 1.75rem;
}

.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.25rem;
  width: 1rem;
  height: 1rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%236366f1'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

/* Input validation shake */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.input-error {
  border-color: #ef4444 !important;
  animation: shake 0.5s ease-in-out;
}

/* Autofill styling fix */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px white inset !important;
  -webkit-text-fill-color: #171717 !important;
  transition: background-color 5000s ease-in-out 0s;
}

.dark input:-webkit-autofill,
.dark input:-webkit-autofill:hover,
.dark input:-webkit-autofill:focus,
.dark input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px #0a0a0a inset !important;
  -webkit-text-fill-color: #fafafa !important;
}

/* Workflow step active state */
.workflow-step.active {
  border-color: #6366f1 !important;
  background: rgba(99, 102, 241, 0.05);
}

.dark .workflow-step.active {
  background: rgba(99, 102, 241, 0.1);
}
