/* ============================================================================
   LANDING PAGE - ANIMATIONS MODERNES
   ============================================================================ */

/* ============================================================================
   1. ANIMATIONS KEYFRAMES
   ============================================================================ */

/* Fade in from bottom */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade in from left */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Fade in from right */
@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Floating animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Pulse glow */
@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(138, 43, 226, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(138, 43, 226, 0.6);
    }
}

/* Gradient animation */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Rotate subtle */
@keyframes rotateSubtle {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

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

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

/* ============================================================================
   2. HERO SECTION ANIMATIONS
   ============================================================================ */

.landing-hero-section {
    animation: fadeInUp 0.8s ease-out;
}

.landing-hero-title {
    animation: fadeInUp 1s ease-out 0.2s both;
    background: linear-gradient(90deg, #8A2BE2, #00D1C5, #8A2BE2);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite, fadeInUp 1s ease-out 0.2s both;
}

.landing-hero-subtitle {
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-cta-button {
    animation: fadeInUp 1s ease-out 0.6s both;
    transition: all 0.3s ease;
}

.hero-cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(138, 43, 226, 0.4);
}

.landing-hero-visual {
    animation: fadeInRight 1s ease-out 0.4s both;
}

/* Modern hero visual SVG animations */
.hero-visual-modern {
    width: 100%;
    height: auto;
    max-width: 500px;
}

.hero-visual-modern .chart-line {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawLine 2s ease-out 0.8s forwards;
}

.hero-visual-modern .chart-area {
    opacity: 0;
    animation: fadeIn 1s ease-out 1.5s forwards;
}

.hero-visual-modern .data-point {
    transform-origin: center;
    animation: popIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) both;
}

.hero-visual-modern .data-point:nth-child(1) {
    animation-delay: 1.8s;
}

.hero-visual-modern .data-point:nth-child(2) {
    animation-delay: 2s;
}

.hero-visual-modern .data-point:nth-child(3) {
    animation-delay: 2.2s;
}

.hero-visual-modern .data-point:nth-child(4) {
    animation-delay: 2.4s;
}

@keyframes drawLine {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes fadeIn {
    to {
        opacity: 0.3;
    }
}

@keyframes popIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ============================================================================
   3. CARDS ANIMATIONS
   ============================================================================ */

.problem-item,
.feature-card {
    animation: scaleIn 0.6s ease-out both;
    transition: all 0.3s ease;
}

.problem-item:nth-child(1) {
    animation-delay: 0.1s;
}

.problem-item:nth-child(2) {
    animation-delay: 0.2s;
}

.problem-item:nth-child(3) {
    animation-delay: 0.3s;
}

.feature-card:nth-child(1) {
    animation-delay: 0.1s;
}

.feature-card:nth-child(2) {
    animation-delay: 0.2s;
}

.feature-card:nth-child(3) {
    animation-delay: 0.3s;
}

.problem-item:hover,
.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 
                0 0 30px rgba(138, 43, 226, 0.4);
}

/* ============================================================================
   4. ICONS ANIMATIONS
   ============================================================================ */

.problem-icon,
.feature-icon {
    transition: all 0.3s ease;
}

.problem-item:hover .problem-icon,
.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.problem-icon svg,
.feature-icon svg {
    animation: bounceSubtle 2s ease-in-out infinite;
}

.problem-item:nth-child(1) .problem-icon svg {
    animation-delay: 0s;
}

.problem-item:nth-child(2) .problem-icon svg {
    animation-delay: 0.3s;
}

.problem-item:nth-child(3) .problem-icon svg {
    animation-delay: 0.6s;
}

/* ============================================================================
   5. SOLUTION SECTION ANIMATIONS
   ============================================================================ */

.solution-visual {
    animation: fadeInLeft 1s ease-out both;
}

.security-illustration-simple {
    width: 100%;
    max-width: 250px;
    height: auto;
    transition: transform 0.3s ease;
}

.solution-visual:hover .security-illustration-simple {
    transform: scale(1.05);
}

.solution-text {
    animation: fadeInRight 1s ease-out 0.2s both;
}

.solution-benefits li {
    animation: fadeInLeft 0.6s ease-out both;
}

.solution-benefits li:nth-child(1) {
    animation-delay: 0.2s;
}

.solution-benefits li:nth-child(2) {
    animation-delay: 0.3s;
}

.solution-benefits li:nth-child(3) {
    animation-delay: 0.4s;
}

.solution-benefits li:nth-child(4) {
    animation-delay: 0.5s;
}

/* ============================================================================
   6. STATS SECTION ANIMATIONS
   ============================================================================ */

.stat-item {
    animation: scaleIn 0.8s ease-out both;
    transition: all 0.3s ease;
}

.stat-item:nth-child(1) {
    animation-delay: 0.1s;
}

.stat-item:nth-child(2) {
    animation-delay: 0.2s;
}

.stat-item:nth-child(3) {
    animation-delay: 0.3s;
}

.stat-item:nth-child(4) {
    animation-delay: 0.4s;
}

.stat-item:hover {
    transform: translateY(-5px) scale(1.05);
}

.stat-number {
    transition: all 0.3s ease;
}

.stat-item:hover .stat-number {
    color: var(--accent-color2);
    text-shadow: 0 0 20px rgba(0, 209, 197, 0.5);
}

/* ============================================================================
   7. CTA SECTION ANIMATIONS - MODERN DESIGN
   ============================================================================ */

.cta-section-modern {
    padding: 100px 20px;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.05) 0%, rgba(0, 209, 197, 0.05) 100%);
    border-radius: 30px;
    margin: 60px 0;
    animation: fadeInUp 1s ease-out both;
}

.cta-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.cta-badge {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(90deg, rgba(138, 43, 226, 0.2), rgba(0, 209, 197, 0.2));
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.cta-title {
    font-size: 3rem;
    font-family: var(--font-primary);
    margin-bottom: 16px;
    background: linear-gradient(90deg, #fff, #00D1C5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.cta-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    line-height: 1.6;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.cta-features-mini {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

.cta-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-color);
    animation: fadeInLeft 0.6s ease-out both;
}

.cta-feature-item:nth-child(1) { animation-delay: 0.5s; }
.cta-feature-item:nth-child(2) { animation-delay: 0.6s; }
.cta-feature-item:nth-child(3) { animation-delay: 0.7s; }

.cta-feature-item svg {
    color: var(--accent-color2);
    flex-shrink: 0;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.cta-button-primary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: linear-gradient(90deg, var(--accent-color1), var(--accent-color2));
    color: white;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.cta-button-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 0.5s;
}

.cta-button-primary:hover::before {
    left: 100%;
}

.cta-button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(138, 43, 226, 0.4);
}

.cta-button-primary .arrow {
    transition: transform 0.3s ease;
}

.cta-button-primary:hover .arrow {
    transform: translateX(4px);
}

.cta-button-secondary {
    display: inline-flex;
    align-items: center;
    padding: 16px 32px;
    background: transparent;
    color: var(--text-color);
    border: 2px solid rgba(138, 43, 226, 0.3);
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-button-secondary:hover {
    border-color: var(--accent-color2);
    background: rgba(0, 209, 197, 0.1);
    transform: translateY(-2px);
}

.cta-trust {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
    animation: fadeInUp 0.8s ease-out 0.9s both;
}

.cta-trust svg {
    color: var(--accent-color2);
}

.cta-stats-card {
    background: rgba(26, 28, 42, 0.6);
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: 20px;
    padding: 32px;
    animation: fadeInRight 1s ease-out 0.6s both;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid rgba(138, 43, 226, 0.1);
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--accent-color1), var(--accent-color2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Responsive */
@media (max-width: 968px) {
    .cta-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .cta-title {
        font-size: 2.2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-button-primary,
    .cta-button-secondary {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================================================
   8. ROADMAP HIGHLIGHT ANIMATIONS
   ============================================================================ */

.roadmap-highlight-section {
    animation: fadeInUp 0.8s ease-out both;
    position: relative;
    overflow: hidden;
}

.roadmap-highlight-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
}

.roadmap-content {
    animation: bounceSubtle 2s ease-in-out infinite;
}

/* ============================================================================
   9. SECTION TITLES ANIMATIONS
   ============================================================================ */

.section-title {
    animation: fadeInUp 0.8s ease-out both;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color1), var(--accent-color2));
    transition: width 0.6s ease;
}

.fade-in-section.is-visible .section-title::after {
    width: 80%;
}

/* ============================================================================
   10. SCROLL REVEAL ANIMATIONS
   ============================================================================ */

.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================================
   11. BUTTON HOVER EFFECTS
   ============================================================================ */

.animated-button {
    position: relative;
    overflow: hidden;
}

.animated-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.animated-button:hover::after {
    width: 300px;
    height: 300px;
}

/* ============================================================================
   12. RESPONSIVE ANIMATIONS
   ============================================================================ */

@media (max-width: 768px) {
    /* Reduce animation intensity on mobile */
    .landing-hero-visual {
        animation: float 8s ease-in-out infinite, fadeInUp 1s ease-out 0.4s both;
    }
    
    .problem-item:hover,
    .feature-card:hover {
        transform: translateY(-5px) scale(1.01);
    }
    
    .stat-item:hover {
        transform: translateY(-3px) scale(1.02);
    }
}

@media (prefers-reduced-motion: reduce) {
    /* Disable animations for users who prefer reduced motion */
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================================================
   13. LOADING STATES
   ============================================================================ */

.loading-shimmer {
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.1) 50%, 
        rgba(255, 255, 255, 0) 100%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

/* ============================================================================
   14. MICRO-INTERACTIONS
   ============================================================================ */

.interactive-card {
    cursor: pointer;
    user-select: none;
}

.interactive-card:active {
    transform: scale(0.98);
}

/* Link hover effects */
a {
    position: relative;
    transition: color 0.3s ease;
}

a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color1), var(--accent-color2));
    transition: width 0.3s ease;
}

a:hover::before {
    width: 100%;
}

/* ============================================================================
   15. STAGGER ANIMATIONS FOR LISTS
   ============================================================================ */

.cta-benefits li {
    animation: fadeInLeft 0.6s ease-out both;
}

.cta-benefits li:nth-child(1) {
    animation-delay: 0.1s;
}

.cta-benefits li:nth-child(2) {
    animation-delay: 0.2s;
}

.cta-benefits li:nth-child(3) {
    animation-delay: 0.3s;
}

/* ============================================================================
   16. PARALLAX EFFECT (Optional - requires JS)
   ============================================================================ */

.parallax-element {
    transition: transform 0.3s ease-out;
}

/* ============================================================================
   17. GLOW EFFECTS
   ============================================================================ */

.glow-on-hover {
    transition: all 0.3s ease;
}

.glow-on-hover:hover {
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.6),
                0 0 40px rgba(0, 209, 197, 0.4);
}

/* ============================================================================
   18. TEXT ANIMATIONS
   ============================================================================ */

.animate-gradient-text {
    background: linear-gradient(90deg, #8A2BE2, #00D1C5, #8A2BE2);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
}

/* ============================================================================
   19. ENTRANCE ANIMATIONS FOR FOOTER
   ============================================================================ */

.site-footer {
    animation: fadeInUp 1s ease-out both;
}

.footer-column {
    animation: fadeInUp 0.8s ease-out both;
}

.footer-column:nth-child(1) {
    animation-delay: 0.1s;
}

.footer-column:nth-child(2) {
    animation-delay: 0.2s;
}

.footer-column:nth-child(3) {
    animation-delay: 0.3s;
}

.footer-column:nth-child(4) {
    animation-delay: 0.4s;
}
