:root {
    color-scheme: light;
    --accent: #5B6CFF;
    --accent-light: #7B8AFF;
    --accent-dark: #4A57D6;
    --gradient-primary: linear-gradient(135deg, #5B6CFF 0%, #4A57D6 100%);
    --gradient-secondary: linear-gradient(135deg, #7B8AFF 0%, #5B6CFF 100%);
    --shadow-sm: 0 2px 4px -1px rgba(91, 108, 255, 0.1), 0 1px 2px -1px rgba(91, 108, 255, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(91, 108, 255, 0.15), 0 4px 6px -2px rgba(91, 108, 255, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(91, 108, 255, 0.2), 0 10px 10px -5px rgba(91, 108, 255, 0.08);
}

* {
    box-sizing: border-box
}

html {
    background: linear-gradient(to bottom right, #f8faff 0%, #f3f4f6 50%, #f8faff 100%);
    min-height: 100vh;
}

body {
    background-image:
        radial-gradient(circle at 20% 80%, rgba(91, 108, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(123, 138, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(91, 108, 255, 0.03) 0%, transparent 50%);
    min-height: 100vh;
}

html:focus-within {
    scroll-behavior: smooth
}

@media (prefers-reduced-motion: reduce) {
    html:focus-within {
        scroll-behavior: auto
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Screen-reader only utility aligned with Tailwind's sr-only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0
}

/* Toast container transition assist */
#toast {
    will-change: opacity
}

/* Card hover effects */
.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* Button animations */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-100%);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover::before {
    transform: translateX(0);
}

/* Gradient text */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Section backgrounds */
.section-gradient {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.6) 100%);
    backdrop-filter: blur(10px);
}

/* Feature cards */
.feature-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
    border: 1px solid rgba(91, 108, 255, 0.1);
    backdrop-filter: blur(10px);
}

/* FAQ details animation */
details[open] summary~* {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero image enhancement */
.hero-image {
    box-shadow: 0 25px 50px -12px rgba(91, 108, 255, 0.25);
}

/* Pulse animation for CTA */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }
}

.pulse-animation {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Blob animation */
@keyframes blob {
    0% {
        transform: translate(0px, 0px) scale(1);
    }

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }

    100% {
        transform: translate(0px, 0px) scale(1);
    }
}

.animate-blob {
    animation: blob 7s infinite;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

.animation-delay-4000 {
    animation-delay: 4s;
}

/* Apple-inspired shadows */
.shadow-apple-sm {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.06);
}

.shadow-apple-md {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.shadow-apple-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Feature icon styles */
.feature-icon-emerald {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.3), 0 2px 4px -1px rgba(16, 185, 129, 0.2);
}

.feature-icon-white {
    background: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}