/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    overflow-x: hidden;
}

/* CSS Variables for Aurora Colors - Monochromatic */
:root {
    --white: rgba(255, 255, 255, 0.08);
    --black: rgba(0, 0, 0, 0.08);
    --transparent: transparent;
    --gray-light: rgba(240, 240, 245, 0.01);
    --gray-mid: rgba(220, 220, 230, 0.015);
    --gray-soft: rgba(235, 235, 240, 0.01);
}

/* Aurora Background Animation */
@keyframes aurora {
    from {
        background-position: 50% 50%, 50% 50%;
    }
    to {
        background-position: 350% 50%, 350% 50%;
    }
}

.aurora-gradient {
    --white-gradient: repeating-linear-gradient(
        100deg,
        var(--white) 0%,
        var(--white) 7%,
        var(--transparent) 10%,
        var(--transparent) 12%,
        var(--white) 16%
    );
    --dark-gradient: repeating-linear-gradient(
        100deg,
        var(--black) 0%,
        var(--black) 7%,
        var(--transparent) 10%,
        var(--transparent) 12%,
        var(--black) 16%
    );
    --aurora: repeating-linear-gradient(
        100deg,
        var(--gray-light) 10%,
        var(--gray-mid) 15%,
        var(--gray-soft) 20%,
        var(--gray-light) 25%
    );
    
    background-image: var(--white-gradient), var(--aurora);
    background-size: 300%, 200%;
    background-position: 50% 50%, 50% 50%;
    filter: blur(3px) invert;
}

.dark .aurora-gradient {
    background-image: var(--dark-gradient), var(--aurora);
    filter: blur(3px);
}

.aurora-gradient::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--white-gradient), var(--aurora);
    background-size: 200%, 100%;
    background-attachment: fixed;
    mix-blend-mode: difference;
    animation: aurora 60s linear infinite;
}

.dark .aurora-gradient::after {
    background-image: var(--dark-gradient), var(--aurora);
}

/* Glassmorphism */
.glass-card {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(147, 51, 234, 0.2);
}

.glass-input {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.glass-input:focus {
    transform: scale(1.02);
    outline: none;
}

/* Feature Cards - Equal Heights */
.feature-card {
    min-height: 240px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Floating Animation */
@keyframes floating {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
    }
    33% {
        transform: translateY(-20px) translateX(10px);
    }
    66% {
        transform: translateY(-10px) translateX(-10px);
    }
}

.floating {
    animation: floating 8s ease-in-out infinite;
}

.floating-delayed {
    animation: floating 8s ease-in-out infinite;
    animation-delay: 2s;
}

/* New: Slower Floating for Background Orbs */
@keyframes float-slow {
    0%, 100% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(20px, -30px);
    }
    50% {
        transform: translate(-15px, -20px);
    }
    75% {
        transform: translate(10px, -40px);
    }
}

.float-slow {
    animation: float-slow 20s ease-in-out infinite;
}

.float-slow-delayed {
    animation: float-slow 20s ease-in-out infinite;
    animation-delay: 5s;
}

.float-slow-delayed-2 {
    animation: float-slow 20s ease-in-out infinite;
    animation-delay: 10s;
}

/* Pulse Animation for Orbs */
@keyframes pulse-orb {
    0%, 100% {
        opacity: 0.15;
        transform: scale(1);
    }
    50% {
        opacity: 0.25;
        transform: scale(1.1);
    }
}

.pulse-orb {
    animation: pulse-orb 6s ease-in-out infinite;
}

/* Pulse Ring Animation */
@keyframes pulse-ring {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.1);
    }
}

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

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

.fade-in-delay-1 {
    animation: fadeIn 0.6s ease-out 0.2s forwards;
    opacity: 0;
}

.fade-in-delay-2 {
    animation: fadeIn 0.6s ease-out 0.4s forwards;
    opacity: 0;
}

.fade-in-delay-3 {
    animation: fadeIn 0.6s ease-out 0.6s forwards;
    opacity: 0;
}

/* Slide In from Left */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.8s ease-out forwards;
}

/* Slide In from Right */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.8s ease-out forwards;
}

/* Scale In Animation */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.scale-in {
    animation: scaleIn 0.5s ease-out forwards;
}

/* Bounce Animation */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.bounce {
    animation: bounce 2s ease-in-out infinite;
}

/* Shimmer Effect */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.shimmer {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    background-size: 1000px 100%;
    animation: shimmer 3s infinite;
}

/* Spin Animation */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.spin {
    animation: spin 1s linear infinite;
}

/* Glow Effect */
@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
    }
    50% {
        box-shadow: 0 0 40px rgba(168, 85, 247, 0.8);
    }
}

.glow {
    animation: glow 2s ease-in-out infinite;
}

/* Feature Card Stagger Animation */
.feature-card-1 {
    animation: fadeIn 0.6s ease-out 0.1s forwards;
    opacity: 0;
}

.feature-card-2 {
    animation: fadeIn 0.6s ease-out 0.2s forwards;
    opacity: 0;
}

.feature-card-3 {
    animation: fadeIn 0.6s ease-out 0.3s forwards;
    opacity: 0;
}

.feature-card-4 {
    animation: fadeIn 0.6s ease-out 0.4s forwards;
    opacity: 0;
}

/* Button Hover Effects */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 60px rgba(168, 85, 247, 0.4);
}

.btn-primary:active {
    transform: scale(0.98);
}

/* Form Input Focus Animation */
@keyframes input-focus {
    0% {
        box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.4);
    }
    100% {
        box-shadow: 0 0 0 4px rgba(168, 85, 247, 0);
    }
}

.glass-input:focus {
    animation: input-focus 0.6s ease-out;
}

/* Loading Spinner */
@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}

.spinner {
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spinner 0.8s linear infinite;
}

/* Success Checkmark Animation */
@keyframes checkmark {
    0% {
        stroke-dashoffset: 100;
    }
    100% {
        stroke-dashoffset: 0;
    }
}

.checkmark {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: checkmark 0.8s ease-out forwards;
}

/* Ripple Effect */
@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    animation: ripple 0.6s ease-out;
}

/* Background Gradient Animation */
@keyframes gradient-background {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.animated-gradient {
    background-size: 200% 200%;
    animation: gradient-background 20s ease infinite;
}

/* Utility Classes */
.transition-all {
    transition: all 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

.hover-scale-sm:hover {
    transform: scale(1.02);
}

.hover-lift:hover {
    transform: translateY(-4px);
}

/* Responsive Animations */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}