@layer base {
 :root {
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-serif: 'DM Sans', Georgia, serif;
    --color-primary: #3b82f6;
    --color-primary-dark: #2563eb;
    --color-primary-light: #dbeafe;
    --color-text: #1e293b;
    --color-text-light: #64748b;
    --color-text-muted: #94a3b8;
    --color-border: #e2e8f0;
    --color-border-light: #f1f5f9;
    --color-bg: #ffffff;
    --color-bg-light: #f8fafc;
    --color-bg-dark: #1e293b;
}
  
  body {
    font-family: var(--font-sans);
    @apply bg-stone-50 text-stone-900 antialiased;
  }

  h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    letter-spacing: -0.02em;
  }
}

/* Elegant scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  @apply bg-linear-to-b from-stone-300 to-stone-400 rounded-full;
  border: 2px solid transparent;
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
  @apply from-stone-400 to-stone-500;
}

/* Elegant drop cap for first paragraph */
.drop-cap::first-letter {
  @apply float-left text-6xl font-serif font-bold leading-none mr-2 text-stone-900;
  margin-top: 0.1em;
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}


/* Smooth header scroll transition - FIX FOR BORDER FLICKER */
#main-header {
    border-bottom: 1px solid transparent;
}

#main-header.scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
    border-bottom-color: rgba(226, 232, 240, 0.5);
}

/* Mobile menu slide animation */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar { width: 4px; }
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,.3);
    border-radius: 4px;
}
/* Animation Keyframes and Utilities */

/* Fade Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Slide Animations */
@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideLeft {
    from {
        transform: translateX(20px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideRight {
    from {
        transform: translateX(-20px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Scale Animations */
@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes scaleOut {
    from {
        transform: scale(1);
        opacity: 1;
    }
    to {
        transform: scale(0.9);
        opacity: 0;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

/* Bounce Animation */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Shake Animation */
@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-10px);
    }
    75% {
        transform: translateX(10px);
    }
}

/* Spin Animation */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Rotate Animations */
@keyframes rotateIn {
    from {
        transform: rotate(-180deg);
        opacity: 0;
    }
    to {
        transform: rotate(0);
        opacity: 1;
    }
}

/* Flip Animations */
@keyframes flipInX {
    from {
        transform: perspective(400px) rotateX(-90deg);
        opacity: 0;
    }
    to {
        transform: perspective(400px) rotateX(0);
        opacity: 1;
    }
}

@keyframes flipInY {
    from {
        transform: perspective(400px) rotateY(-90deg);
        opacity: 0;
    }
    to {
        transform: perspective(400px) rotateY(0);
        opacity: 1;
    }
}

/* Zoom Animations */
@keyframes zoomIn {
    from {
        transform: scale(0.3);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes zoomOut {
    from {
        transform: scale(1);
        opacity: 1;
    }
    to {
        transform: scale(0.3);
        opacity: 0;
    }
}

/* Elastic Animations */
@keyframes elasticIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Wiggle Animation */
@keyframes wiggle {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-5deg);
    }
    75% {
        transform: rotate(5deg);
    }
}

/* Heartbeat Animation */
@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    14% {
        transform: scale(1.1);
    }
    28% {
        transform: scale(1);
    }
    42% {
        transform: scale(1.1);
    }
    56% {
        transform: scale(1);
    }
}

/* Swing Animation */
@keyframes swing {
    20% {
        transform: rotate(15deg);
    }
    40% {
        transform: rotate(-10deg);
    }
    60% {
        transform: rotate(5deg);
    }
    80% {
        transform: rotate(-5deg);
    }
    100% {
        transform: rotate(0deg);
    }
}

/* Glow Animation */
@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(59, 130, 246, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.8);
    }
}

/* Shimmer Animation */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* Gradient Animation */
@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Typing Animation */
@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

/* Progress Bar Animation */
@keyframes progress {
    from {
        width: 0%;
    }
    to {
        width: 100%;
    }
}

/* Ripple Effect */
@keyframes ripple {
    from {
        transform: scale(0);
        opacity: 1;
    }
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Utility Classes for Animations */
.animate-fade-in {
    animation: fadeIn 0.6s ease-out;
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.animate-fade-in-down {
    animation: fadeInDown 0.6s ease-out;
}

.animate-fade-in-left {
    animation: fadeInLeft 0.6s ease-out;
}

.animate-fade-in-right {
    animation: fadeInRight 0.6s ease-out;
}

.animate-slide-up {
    animation: slideUp 0.3s ease-out;
}

.animate-slide-down {
    animation: slideDown 0.3s ease-out;
}

.animate-scale-in {
    animation: scaleIn 0.3s ease-out;
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

.animate-bounce {
    animation: bounce 1s ease-in-out infinite;
}

.animate-shake {
    animation: shake 0.5s ease-in-out;
}

.animate-spin {
    animation: spin 1s linear infinite;
}

.animate-wiggle {
    animation: wiggle 0.5s ease-in-out;
}

.animate-heartbeat {
    animation: heartbeat 1.5s ease-in-out infinite;
}

.animate-glow {
    animation: glow 2s ease-in-out infinite;
}

/* Animation Delays */
.delay-100 {
    animation-delay: 100ms;
}

.delay-200 {
    animation-delay: 200ms;
}

.delay-300 {
    animation-delay: 300ms;
}

.delay-400 {
    animation-delay: 400ms;
}

.delay-500 {
    animation-delay: 500ms;
}

/* Animation Durations */
.duration-fast {
    animation-duration: 0.3s;
}

.duration-normal {
    animation-duration: 0.6s;
}

.duration-slow {
    animation-duration: 1s;
}

/* Animation Timing Functions */
.ease-linear {
    animation-timing-function: linear;
}

.ease-in {
    animation-timing-function: ease-in;
}

.ease-out {
    animation-timing-function: ease-out;
}

.ease-in-out {
    animation-timing-function: ease-in-out;
}

/* Hover Animations */
.hover-lift:hover {
    transform: translateY(-4px);
    transition: transform 0.3s ease;
}

.hover-grow:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.hover-shrink:hover {
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.hover-rotate:hover {
    transform: rotate(5deg);
    transition: transform 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
    transition: box-shadow 0.3s ease;
}

/* Transition Utilities */
.transition-fast {
    transition: all 0.15s ease;
}

.transition-normal {
    transition: all 0.3s ease;
}

.transition-slow {
    transition: all 0.5s ease;
}

/* Loading Skeleton */
.skeleton {
    background: linear-gradient(
        90deg,
        #f0f0f0 25%,
        #e0e0e0 50%,
        #f0f0f0 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* Scroll Animation Trigger */
.scroll-animate {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Component Specific Styles */

/* Service Cards */
.service-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    transform: translateY(-4px);
}

/* Pricing Cards */
.pricing-card {
    transition: all 0.3s ease;
}

.pricing-card.popular {
    transform: scale(1.05);
}

.pricing-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Testimonial Cards */
.testimonial-card {
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-2px);
}

/* FAQ Accordion */
.faq-content {
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-button:hover .faq-icon {
    transform: scale(1.1);
}

/* Blog Cards */
.blog-card-image {
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-card:hover .blog-card-image {
    transform: scale(1.05);
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.25);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(59, 130, 246, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: white;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: #1e293b;
    transform: translateY(-2px);
}

/* Input Fields */
input[type="text"],
input[type="email"],
input[type="password"],
textarea {
    transition: all 0.2s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Checkbox Styles */
input[type="checkbox"]:checked {
    background-color: #3b82f6;
    border-color: #3b82f6;
}

/* Card Shadows */
.card-hover-shadow {
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.card-hover-shadow:hover {
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Stats Counter */
.stat-counter {
    font-variant-numeric: tabular-nums;
    transition: all 0.3s ease;
}

/* Progress Bar */
.progress-bar {
    height: 4px;
    background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
    transition: width 0.3s ease;
}

/* Badge Styles */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.badge-primary {
    background: #dbeafe;
    color: #1e40af;
}

.badge-success {
    background: #dcfce7;
    color: #166534;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
}

/* Avatar Styles */
.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    font-weight: 600;
    overflow: hidden;
}

.avatar-sm {
    width: 2rem;
    height: 2rem;
    font-size: 0.875rem;
}

.avatar-md {
    width: 3rem;
    height: 3rem;
    font-size: 1rem;
}

.avatar-lg {
    width: 4rem;
    height: 4rem;
    font-size: 1.25rem;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 2rem 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e2e8f0;
}

.divider::before {
    margin-right: 1rem;
}

.divider::after {
    margin-left: 1rem;
}

/* Loading Spinner */
.spinner {
    border: 2px solid #f3f4f6;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

.spinner-sm {
    width: 1rem;
    height: 1rem;
}

.spinner-md {
    width: 1.5rem;
    height: 1.5rem;
}

.spinner-lg {
    width: 2rem;
    height: 2rem;
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 50;
    animation: fadeIn 0.2s ease;
}

.modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    z-index: 51;
    animation: slideUp 0.3s ease;
}

/* Tooltip */
.tooltip {
    position: absolute;
    background: #1e293b;
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    white-space: nowrap;
    z-index: 100;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.tooltip.show {
    opacity: 1;
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    min-width: 12rem;
    padding: 0.5rem;
    z-index: 50;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    pointer-events: none;
}

.dropdown-menu.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: #475569;
    transition: all 0.2s ease;
    cursor: pointer;
}

.dropdown-item:hover {
    background: #f1f5f9;
    color: #1e293b;
}

/* Alert Messages */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #64748b;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumb-item:not(:last-child)::after {
    content: '/';
    color: #cbd5e1;
}

.breadcrumb-item a {
    color: #64748b;
    transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
    color: #3b82f6;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
}

.tab {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    color: #64748b;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.tab:hover {
    color: #1e293b;
}

.tab.active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #64748b;
    transition: all 0.2s ease;
    cursor: pointer;
}

.pagination-item:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.pagination-item.active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

.pagination-item:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Table Styles */
.table-container {
    overflow-x: auto;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table thead {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #64748b;
}

.table td {
    padding: 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.table tbody tr:hover {
    background: #f8fafc;
}

.table tbody tr:last-child td {
    border-bottom: none;
}
.perspective-1000 { perspective: 1000px; }
.preserve-3d { transform-style: preserve-3d; }
.backface-hidden { backface-visibility: hidden; }
.rotate-y-180 { transform: rotateY(180deg); }

/* Logo Slider */
.logo-track {
    animation: scroll-left 30s linear infinite;
}
@keyframes scroll-left {
    to { transform: translateX(-100%); }
}

/* Fade In */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .6s ease, transform .6s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* FAQ Accordion */
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
}

/* Underline Animation */
.link-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s ease;
}
.link-underline:hover::after {
    transform: scaleX(1);
}

/* Mobile Menu */
#mobile-menu {
    animation: slideDown .3s ease-out;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* -------------------------------------------------
   Core Animations (from MagicPatterns – cleaned)
------------------------------------------------- */

/* Fade + slide (used with Alpine x-intersect) */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-right {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity .7s ease, transform .7s ease;
}
.fade-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-left {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity .7s ease, transform .7s ease;
}
.fade-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* -------------------------------------------------
   Slow pulse (hero blobs, trust dots)
------------------------------------------------- */
@keyframes pulseSlow {
  0%,100% { transform: scale(1); opacity: .5; }
  50% { transform: scale(1.05); opacity: .75; }
}
.animate-pulse-slow {
  animation: pulseSlow 4s ease-in-out infinite;
}

/* -------------------------------------------------
   Gradient bar animation (process cards)
------------------------------------------------- */
.gradient-bar {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s ease;
}
.group:hover .gradient-bar {
  transform: scaleX(1);
}

/* -------------------------------------------------
   Infinite logo scroll (CSS only)
------------------------------------------------- */
@keyframes scrollLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.animate-scroll {
  display: flex;
  width: max-content;
  animation: scrollLeft 40s linear infinite;
}

/* Pause scroll on hover */
.animate-scroll:hover {
  animation-play-state: paused;
}

/* -------------------------------------------------
   Glass / blur cards (funnel)
------------------------------------------------- */
.glass-card {
  background: rgba(255,255,255,.65);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.5);
}

/* -------------------------------------------------
   Pricing emphasis
------------------------------------------------- */
.pricing-popular {
  box-shadow: 0 20px 40px rgba(37,99,235,.15);
  border-color: #2563eb;
}

/* -------------------------------------------------
   Core Animations (from MagicPatterns – cleaned)
------------------------------------------------- */

/* Fade + slide (used with Alpine x-intersect) */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-right {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity .7s ease, transform .7s ease;
}
.fade-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-left {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity .7s ease, transform .7s ease;
}
.fade-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* -------------------------------------------------
   Slow pulse (hero blobs, trust dots)
------------------------------------------------- */
@keyframes pulseSlow {
  0%,100% { transform: scale(1); opacity: .5; }
  50% { transform: scale(1.05); opacity: .75; }
}
.animate-pulse-slow {
  animation: pulseSlow 4s ease-in-out infinite;
}

/* -------------------------------------------------
   Gradient bar animation (process cards)
------------------------------------------------- */
.gradient-bar {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s ease;
}
.group:hover .gradient-bar {
  transform: scaleX(1);
}

/* -------------------------------------------------
   Infinite logo scroll (CSS only)
------------------------------------------------- */
@keyframes scrollLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.animate-scroll {
  display: flex;
  width: max-content;
  animation: scrollLeft 40s linear infinite;
}

/* Pause scroll on hover */
.animate-scroll:hover {
  animation-play-state: paused;
}

/* -------------------------------------------------
   Glass / blur cards (funnel)
------------------------------------------------- */
.glass-card {
  background: rgba(255,255,255,.65);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.5);
}

/* -------------------------------------------------
   Pricing emphasis
------------------------------------------------- */
.pricing-popular {
  box-shadow: 0 20px 40px rgba(37,99,235,.15);
  border-color: #2563eb;
}


     @keyframes fadeInUp{from{opacity:0;transform:translateY(30px)}to{opacity:1;transform:translateY(0)}}
        @keyframes fadeInLeft{from{opacity:0;transform:translateX(-20px)}to{opacity:1;transform:translateX(0)}}
        @keyframes fadeInRight{from{opacity:0;transform:translateX(50px)}to{opacity:1;transform:translateX(0)}}
        @keyframes scaleIn{from{opacity:0;transform:scale(.9)}to{opacity:1;transform:scale(1)}}
        @keyframes pulse{0%,100%{transform:scale(1);opacity:1}50%{transform:scale(1.05);opacity:.8}}
        .animate-on-scroll{opacity:0}.animate-on-scroll.visible{animation:fadeInUp .8s ease-out forwards}
        .animate-fade-left{opacity:0}.animate-fade-left.visible{animation:fadeInLeft .5s ease-out forwards}
        .animate-fade-right{opacity:0}.animate-fade-right.visible{animation:fadeInRight .8s ease-out forwards}
        .animate-scale-in{opacity:0}.animate-scale-in.visible{animation:scaleIn .5s ease-out forwards}
        .animate-pulse-slow{animation:pulse 3s infinite ease-in-out}
        .transition-all{transition:all .3s ease}
        .group:hover .group-hover\:scale-110{transform:scale(1.1)}
        .group:hover .group-hover\:gap-3{gap:.75rem}
        .group:hover .group-hover\:text-blue-600{color:rgb(37 99 235)}
        .hover\:-translate-y-1:hover{transform:translateY(-.25rem)}
        .hover\:-translate-y-2:hover{transform:translateY(-.5rem)}
        .hover\:shadow-xl:hover{box-shadow:0 20px 25px -5px rgb(0 0 0/.1),0 8px 10px -6px rgb(0 0 0/.1)}
        .faq-content{max-height:0;overflow:hidden;transition:max-height .3s ease-out}
        .faq-content.active{max-height:500px}
        .faq-icon{transition:transform .3s ease}.faq-icon.active{transform:rotate(45deg)}
        
        
/* Magnetic Button Effect */
.magnetic-button {
    position: relative;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.magnetic-button:hover {
    transform: scale(1.05);
}

/* Ripple Effect on Click */
.ripple-effect {
    position: relative;
    overflow: hidden;
}

.ripple-effect::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, #ffffff 10%, transparent 10.01%);
    background-repeat: no-repeat;
    background-position: 50%;
    transform: scale(10, 10);
    opacity: 0;
    transition: transform 0.5s, opacity 1s;
}

.ripple-effect:active::after {
    transform: scale(0, 0);
    opacity: 0.3;
    transition: 0s;
}

/* ============================================
   GLASSMORPHISM EFFECTS
   ============================================ */

.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
}

.glass-card-dark {
    background: rgba(31, 41, 55, 0.7);
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============================================
   MORPHING SHAPES
   ============================================ */

@keyframes morph {
    0%, 100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
    50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }
}

.morphing-shape {
    animation: morph 8s ease-in-out infinite;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* ============================================
   TEXT ANIMATIONS
   ============================================ */

/* Gradient Text Animation */
@keyframes gradient-flow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.gradient-text-animated {
    background: linear-gradient(
        -45deg,
        #ee7752,
        #e73c7e,
        #23a6d5,
        #23d5ab
    );
    background-size: 400% 400%;
    animation: gradient-flow 15s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Typewriter Effect */
@keyframes typewriter {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}

.typewriter {
    overflow: hidden;
    border-right: 3px solid #333;
    white-space: nowrap;
    animation: typewriter 4s steps(40) 1s 1 normal both,
               blink 0.75s step-end infinite;
}

/* Text Reveal Animation */
@keyframes text-reveal {
    0% {
        clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
    }
    100% {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
}

.text-reveal {
    animation: text-reveal 1.5s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

/* ============================================
   PARTICLE EFFECTS
   ============================================ */

@keyframes float-particle {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(20px);
        opacity: 0;
    }
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(59, 130, 246, 0.5);
    border-radius: 50%;
    animation: float-particle 8s ease-in-out infinite;
}

.particle:nth-child(2) { animation-delay: 1s; left: 20%; }
.particle:nth-child(3) { animation-delay: 2s; left: 40%; }
.particle:nth-child(4) { animation-delay: 3s; left: 60%; }
.particle:nth-child(5) { animation-delay: 4s; left: 80%; }

/* ============================================
   3D CARD EFFECTS
   ============================================ */

.card-3d {
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.card-3d:hover {
    transform: perspective(1000px) rotateY(10deg) rotateX(5deg) scale(1.05);
}

.card-3d::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.3) 0%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: translateZ(50px);
    opacity: 0;
    transition: opacity 0.6s;
}

.card-3d:hover::before {
    opacity: 1;
}

/* ============================================
   LOADING ANIMATIONS
   ============================================ */

/* Skeleton Loader */
@keyframes skeleton-loading {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.skeleton {
    background: linear-gradient(
        90deg,
        #f0f0f0 25%,
        #e0e0e0 50%,
        #f0f0f0 75%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

/* Dot Pulse Loader */
@keyframes dot-pulse {
    0%, 80%, 100% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    40% {
        opacity: 1;
        transform: scale(1);
    }
}

.dot-pulse {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3b82f6;
    animation: dot-pulse 1.4s infinite ease-in-out;
}

.dot-pulse:nth-child(1) { animation-delay: -0.32s; }
.dot-pulse:nth-child(2) { animation-delay: -0.16s; }

/* ============================================
   HOVER EFFECTS
   ============================================ */

/* Glow on Hover */
.glow-hover {
    transition: all 0.3s ease;
}

.glow-hover:hover {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5),
                0 0 40px rgba(59, 130, 246, 0.3);
}

/* Border Animation */
@keyframes border-dance {
    0%, 100% {
        clip-path: polygon(
            0% 0%, 0% 0%, 0% 0%, 0% 0%, 
            0% 0%, 0% 0%, 0% 0%
        );
    }
    12.5% {
        clip-path: polygon(
            0% 0%, 100% 0%, 100% 0%, 100% 0%, 
            100% 0%, 0% 0%, 0% 0%
        );
    }
    37.5% {
        clip-path: polygon(
            0% 0%, 100% 0%, 100% 100%, 100% 100%, 
            100% 100%, 0% 100%, 0% 0%
        );
    }
    62.5% {
        clip-path: polygon(
            0% 0%, 100% 0%, 100% 100%, 0% 100%, 
            0% 100%, 0% 100%, 0% 0%
        );
    }
    87.5% {
        clip-path: polygon(
            0% 0%, 100% 0%, 100% 100%, 0% 100%, 
            0% 0%, 0% 0%, 0% 0%
        );
    }
}

.border-dance::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid #3b82f6;
    animation: border-dance 4s linear infinite;
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */

/* Parallax Layers */
.parallax-slow {
    transform: translateY(calc(var(--scroll) * -0.5px));
}

.parallax-medium {
    transform: translateY(calc(var(--scroll) * -1px));
}

.parallax-fast {
    transform: translateY(calc(var(--scroll) * -2px));
}

/* Reveal on Scroll */
@keyframes reveal-up {
    from {
        opacity: 0;
        transform: translateY(100px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal-on-scroll {
    opacity: 0;
}

.reveal-on-scroll.revealed {
    animation: reveal-up 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

/* ============================================
   ADVANCED TRANSITIONS
   ============================================ */

/* Elastic Bounce */
.elastic-bounce {
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.elastic-bounce:hover {
    transform: scale(1.1);
}

/* Smooth Scale */
.smooth-scale {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.smooth-scale:hover {
    transform: scale(1.05);
}

/* ============================================
   NOTIFICATION ANIMATIONS
   ============================================ */

@keyframes slide-in-right {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slide-out-right {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

.notification-enter {
    animation: slide-in-right 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.notification-exit {
    animation: slide-out-right 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ============================================
   COUNT UP ANIMATION
   ============================================ */

.count-up {
    font-variant-numeric: tabular-nums;
    transition: transform 0.3s ease;
}

/* ============================================
   GRADIENT BORDERS
   ============================================ */

.gradient-border {
    position: relative;
    background: white;
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, 
                  linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, 
          linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

/* ============================================
   STAGGERED ANIMATIONS
   ============================================ */

.stagger-item {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.stagger-item:nth-child(1) { animation-delay: 0.1s; }
.stagger-item:nth-child(2) { animation-delay: 0.2s; }
.stagger-item:nth-child(3) { animation-delay: 0.3s; }
.stagger-item:nth-child(4) { animation-delay: 0.4s; }
.stagger-item:nth-child(5) { animation-delay: 0.5s; }
.stagger-item:nth-child(6) { animation-delay: 0.6s; }

/* ============================================
   IMAGE ZOOM ON HOVER
   ============================================ */

.image-zoom-container {
    overflow: hidden;
}

.image-zoom {
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.image-zoom-container:hover .image-zoom {
    transform: scale(1.2);
}

/* ============================================
   SMOOTH UNDERLINE ANIMATION
   ============================================ */

.underline-animated {
    position: relative;
}

.underline-animated::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: width 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.underline-animated:hover::after {
    width: 100%;
}

/* ============================================
   PERFORMANCE OPTIMIZATIONS
   ============================================ */

/* GPU Acceleration */
.gpu-accelerated {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Will Change for Performance */
.will-change-transform {
    will-change: transform;
}

.will-change-opacity {
    will-change: opacity;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 768px) {
    /* Disable complex animations on mobile */
    .card-3d:hover {
        transform: scale(1.02);
    }
    
    .morphing-shape {
        animation: none;
    }
}

/* ============================================
   REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}