/* ==============================================
   HERO SECTION - Styles CSS
   ============================================== */

/* Hero Section - Design Ultra-Moderne */
.jace-hero {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0f0f0f 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: white;
    position: relative;
    overflow: hidden;
    padding-top: 80px; /* Espace pour éviter le chevauchement avec le header fixe */
}

.jace-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 25% 25%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 75% 75%, rgba(124, 58, 237, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.jace-hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.jace-hero-content {
    max-width: 650px;
}

/* Hero Tag */
.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(124, 58, 237, 0.2) 100%);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 50px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: #8b5cf6;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

/* Hero Title */
.jace-hero-title {
    font-size: clamp(3rem, 6vw, 5.8rem);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, 
        #ffffff 0%, 
        #e5e7eb 25%, 
        #8b5cf6 50%, 
        #7c3aed 75%, 
        #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradient-shift 4s ease-in-out infinite;
}

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

/* Hero Subtitle */
.jace-hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.7;
    color: #94a3b8;
    margin-bottom: 2.5rem;
    font-weight: 400;
    max-width: 550px;
}

/* Hero Features */
.hero-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    color: #cbd5e1;
}

.hero-feature-icon {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.jace-cta-button {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: #ffffff;
    border: none;
    padding: 1rem 2rem;
    border-radius: 16px;
    font-size: 1.125rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
    text-transform: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.jace-cta-button:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.5);
}

.secondary-button {
    background: transparent;
    color: #94a3b8;
    border: 2px solid rgba(148, 163, 184, 0.3);
    padding: 1rem 2rem;
    border-radius: 16px;
    font-size: 1.125rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.secondary-button:hover {
    border-color: rgba(148, 163, 184, 0.6);
    color: #ffffff;
    background: rgba(148, 163, 184, 0.1);
}

/* Hero Social Proof - Version compacte */
.hero-social-proof {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.95) 100%);
    border: 1px solid rgba(139, 92, 246, 0.35);
    border-radius: 18px;
    padding: 1.25rem;
    backdrop-filter: blur(25px);
    box-shadow: 0 6px 24px rgba(139, 92, 246, 0.12);
    transition: all 0.3s ease;
}

.hero-social-proof:hover {
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 12px 40px rgba(139, 92, 246, 0.15);
    transform: translateY(-2px);
}

.social-proof-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.social-proof-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #e2e8f0;
}

.social-proof-badge {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
}

.social-proof-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.jace-user-avatars {
    display: flex;
    margin-left: -0.5rem;
    margin-bottom: 0.25rem;
}

.jace-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(139, 92, 246, 0.6);
    margin-left: -0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
}

.jace-user-avatar:hover {
    transform: translateY(-4px) scale(1.1);
    border-color: rgba(139, 92, 246, 0.8);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3);
    z-index: 10;
}

.jace-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.jace-user-avatar.loading {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    animation: loading-shimmer 1.5s infinite;
    position: relative;
    overflow: hidden;
}

.jace-user-avatar.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.jace-user-avatar:nth-child(1) { background: linear-gradient(135deg, #ef4444, #dc2626); }
.jace-user-avatar:nth-child(2) { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.jace-user-avatar:nth-child(3) { background: linear-gradient(135deg, #06b6d4, #0891b2); }
.jace-user-avatar:nth-child(4) { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.jace-user-avatar:nth-child(5) { background: linear-gradient(135deg, #f59e0b, #d97706); }

.social-proof-text {
    color: #cbd5e1;
    font-size: 0.875rem;
    line-height: 1.5;
    font-weight: 500;
}

.social-proof-number {
    color: #8b5cf6;
    font-weight: 800;
    font-size: 0.95rem;
}

/* Trust Badges - Compacts */
.trust-badges {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.trust-badge {
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 10px;
    padding: 0.375rem 0.75rem;
    font-size: 0.7rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.trust-badge:hover {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(71, 85, 105, 0.6);
    color: #e2e8f0;
}

/* Video Section */
/* Right Section - Container pour vidéo + communauté */
.jace-right-section {
    display: flex;
    flex-direction: column;
    gap: 0.90rem; /* Espace légèrement augmenté entre vidéo et communauté */
    height: 100%;
    padding-top: 1rem; /* Moins d'espace au-dessus */
}

.jace-video-section {
    position: relative;
    flex: 0 0 auto; /* Ne pas étendre la vidéo pour laisser place à la communauté */
}

.jace-video-container {
    position: relative;
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 50%, #0369a1 100%);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.3);
}

.jace-video-container:hover {
    transform: scale(1.03) rotateY(5deg);
    box-shadow: 0 20px 50px rgba(14, 165, 233, 0.4);
}

.jace-video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.3) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.jace-play-btn {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.9) 0%, rgba(0, 0, 0, 0.8) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.jace-play-btn:hover {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.9) 0%, rgba(245, 158, 11, 0.8) 100%);
    transform: scale(1.1);
    border-color: rgba(251, 191, 36, 0.5);
}

.jace-video-title {
    position: absolute;
    top: 2rem;
    left: 2rem;
    right: 2rem;
}

.jace-video-title h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.jace-video-controls {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 0.75rem;
}

.jace-video-progress {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    margin: 0 1rem;
    position: relative;
    overflow: hidden;
}

.jace-video-progress::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 30%;
    height: 100%;
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    border-radius: 2px;
}

.jace-video-time {
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Video Modal */
.video-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(8px);
}

.video-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    width: 1000px;
    aspect-ratio: 16/9;
}

.video-modal iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
}

.video-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    color: #fff;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.video-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-delay-1 { animation-delay: 0.2s; }
.animate-delay-2 { animation-delay: 0.4s; }
.animate-delay-3 { animation-delay: 0.6s; }
.animate-delay-4 { animation-delay: 0.8s; }
.animate-delay-5 { animation-delay: 1.0s; }

/* Effet de particules en arrière-plan */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: rgba(251, 191, 36, 0.1);
    border-radius: 50%;
    animation: particle-float 8s infinite linear;
}

@keyframes particle-float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.5;
    }
    90% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* ==============================================
   OPTIMISATIONS TOUCH MOBILE GÉNÉRALES
   ============================================== */

/* Amélioration des interactions tactiles */
@media (pointer: coarse) and (hover: none) {
    .jace-cta-button,
    .jace-video-container,
    .jace-user-avatar,
    .trust-badge {
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        user-select: none;
    }

    /* Feedback tactile instantané */
    .jace-cta-button:active {
        transform: translateY(2px) scale(0.96);
        transition: transform 0.1s ease-out;
    }

    .jace-video-container:active {
        transform: scale(0.97);
        transition: transform 0.1s ease-out;
    }

    .jace-user-avatar:active {
        transform: scale(0.85);
        transition: transform 0.1s ease-out;
    }

    /* Désactiver les effets hover sur mobile */
    .jace-cta-button:hover,
    .jace-video-container:hover,
    .jace-user-avatar:hover,
    .trust-badge:hover,
    .hero-social-proof:hover {
        transform: none;
    }
}

/* Optimisations pour lecteurs d'écran */
@media (prefers-reduced-motion: reduce) {
    .jace-hero-title,
    .particles,
    .particle,
    .animate-fade-in-up,
    .animate-float {
        animation: none !important;
        transition: none !important;
    }
}

/* ==============================================
   RESPONSIVE DESIGN
   ============================================== */

/* Tablettes */
@media (max-width: 1024px) {
    .jace-hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .jace-hero-content {
        max-width: none;
    }

    .hero-features {
        align-items: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    /* Nouvelle section droite en responsive */
    .jace-right-section {
        gap: 0.75rem; /* Réduit sur tablette aussi */
        padding-top: 1.5rem; /* Réduit le padding sur tablette */
    }

    .social-proof-content {
        justify-content: center;
    }

    .trust-badges {
        justify-content: center;
    }
}

/* Mobiles - Optimisé */
@media (max-width: 768px) {
    .jace-hero {
        padding-top: 70px; /* Padding réduit sur mobile */
        min-height: 100vh; /* Assure une hauteur complète */
    }

    .jace-hero-container {
        padding: 1rem 1.25rem;
        gap: 2.5rem;
        grid-template-columns: 1fr;
    }

    .jace-hero-content {
        order: 1; /* Contenu en premier sur mobile */
        text-align: center;
        max-width: 100%;
    }

    .jace-right-section {
        order: 2; /* Section droite en second */
    }

    .hero-tag {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
        margin-bottom: 1.25rem;
        border-radius: 25px;
        font-weight: 600;
    }

    .jace-hero-title {
        font-size: clamp(2.25rem, 8.5vw, 3.5rem);
        margin-bottom: 1.25rem;
        line-height: 1.1;
        letter-spacing: -0.02em;
    }

    .jace-hero-subtitle {
        font-size: 1.125rem;
        line-height: 1.6;
        margin-bottom: 2rem;
        color: #a8b4c8;
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-features {
        gap: 0.75rem;
        margin-bottom: 2.5rem;
        max-width: 100%;
    }

    .hero-feature {
        font-size: 1rem;
        padding: 0.5rem 0;
        justify-content: center;
        text-align: left;
        max-width: 320px;
        margin: 0 auto;
    }

    .hero-feature-icon {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 2.5rem;
        align-items: center;
    }

    .jace-cta-button {
        width: 100%;
        max-width: 280px;
        padding: 1.125rem 1.5rem;
        font-size: 1.125rem;
        font-weight: 700;
        border-radius: 14px;
        box-shadow: 0 6px 24px rgba(139, 92, 246, 0.4);
        touch-action: manipulation;
    }

    .jace-cta-button:active {
        transform: translateY(1px) scale(0.98);
    }

    /* Optimisations vidéo et social proof mobile */
    .jace-video-section {
        margin-bottom: 1.5rem;
    }

    .jace-video-container {
        border-radius: 16px;
        min-height: 200px;
        touch-action: manipulation;
    }

    .jace-video-container:active {
        transform: scale(0.98);
    }

    .jace-video-title h3 {
        font-size: 1.125rem;
        font-weight: 700;
    }

    .jace-play-btn {
        width: 56px;
        height: 56px;
        box-shadow: 0 8px 32px rgba(139, 92, 246, 0.5);
    }

    .hero-social-proof {
        padding: 1.25rem;
        border-radius: 20px;
        border: 1px solid rgba(139, 92, 246, 0.3);
        background: rgba(139, 92, 246, 0.08);
    }

    .social-proof-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 1rem;
    }

    .social-proof-title {
        font-size: 0.9rem;
        font-weight: 600;
    }

    .social-proof-badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.75rem;
        border-radius: 12px;
    }

    .social-proof-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        align-items: center;
    }

    .jace-user-avatars {
        justify-content: center;
        margin: 0;
        gap: 0.25rem;
    }

    .jace-user-avatar {
        width: 42px;
        height: 42px;
        margin-left: -0.375rem;
        border: 3px solid rgba(139, 92, 246, 0.3);
        font-size: 0.875rem;
        font-weight: 600;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .jace-user-avatar:hover {
        transform: translateY(-4px) scale(1.1);
        border-color: rgba(139, 92, 246, 0.6);
        z-index: 10;
    }

    .social-proof-text {
        font-size: 0.9rem;
        line-height: 1.5;
        font-weight: 500;
        max-width: 280px;
    }

    .social-proof-number {
        font-size: 1.1rem;
        font-weight: 800;
    }

    .trust-badges {
        margin-top: 1rem;
        gap: 0.5rem;
        justify-content: center;
        flex-wrap: wrap;
    }

    .trust-badge {
        font-size: 0.75rem;
        padding: 0.5rem 0.875rem;
        border-radius: 12px;
        font-weight: 600;
        border: 1px solid rgba(139, 92, 246, 0.3);
        background: rgba(139, 92, 246, 0.1);
        touch-action: manipulation;
        min-height: 36px;
        display: flex;
        align-items: center;
        gap: 0.375rem;
    }

    .trust-badge:active {
        transform: scale(0.95);
    }

    /* Ajustements pour la nouvelle structure */
    .jace-right-section {
        gap: 0.75rem; /* Réduit sur mobile aussi */
        padding-top: 1rem;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
}

/* Petits mobiles - Ultra-optimisé */
@media (max-width: 480px) {
    .jace-hero {
        padding-top: 65px;
        padding-bottom: 2rem;
    }

    .jace-hero-container {
        padding: 0.875rem 1rem;
        gap: 2rem;
    }

    .hero-tag {
        font-size: 0.8rem;
        padding: 0.375rem 0.875rem;
        margin-bottom: 1rem;
    }

    .jace-hero-title {
        font-size: clamp(1.875rem, 9vw, 2.75rem);
        margin-bottom: 1rem;
        line-height: 1.05;
    }

    .jace-hero-subtitle {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 1.75rem;
        max-width: 95%;
    }

    .hero-features {
        gap: 0.5rem;
        margin-bottom: 2rem;
    }

    .hero-feature {
        font-size: 0.9rem;
        padding: 0.375rem 0;
        max-width: 300px;
    }

    .hero-feature-icon {
        width: 16px;
        height: 16px;
    }

    .hero-buttons {
        margin-bottom: 2rem;
    }

    .jace-cta-button {
        max-width: 260px;
        padding: 1rem 1.25rem;
        font-size: 1rem;
        border-radius: 12px;
    }

    /* Optimisations vidéo petits écrans */
    .jace-video-section {
        margin-bottom: 1.25rem;
    }

    .jace-video-container {
        min-height: 180px;
        border-radius: 14px;
    }

    .jace-video-title h3 {
        font-size: 1rem;
    }

    .jace-play-btn {
        width: 48px;
        height: 48px;
    }

    /* Social proof compact */
    .hero-social-proof {
        padding: 1rem;
        border-radius: 16px;
    }

    .social-proof-header {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        margin-bottom: 0.875rem;
    }

    .social-proof-title {
        font-size: 0.8rem;
        text-align: center;
    }

    .social-proof-badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.6rem;
    }

    .social-proof-content {
        gap: 0.875rem;
    }

    .jace-user-avatar {
        width: 36px;
        height: 36px;
        font-size: 0.75rem;
        margin-left: -0.25rem;
        border-width: 2px;
    }

    .jace-user-avatars {
        gap: 0.125rem;
    }

    .social-proof-text {
        font-size: 0.8rem;
        max-width: 260px;
    }

    .social-proof-number {
        font-size: 1rem;
    }

    .trust-badges {
        gap: 0.375rem;
        margin-top: 0.875rem;
    }

    .trust-badge {
        font-size: 0.7rem;
        padding: 0.375rem 0.75rem;
        min-height: 32px;
        border-radius: 10px;
    }

    /* Structure droite ultra-compacte */
    .jace-right-section {
        gap: 0.5rem; /* Gap minimal sur petits écrans */
        padding-top: 0.75rem;
        max-width: 350px;
    }

    /* Optimisations touch */
    .jace-cta-button:active,
    .jace-video-container:active,
    .trust-badge:active {
        transform: translateY(1px) scale(0.96);
    }

    .jace-user-avatar:active {
        transform: scale(0.9);
    }
}

/* === CTA Mobile Optimization Styles === */

.cta-mobile-optimized {
    position: relative;
    -webkit-overflow-scrolling: touch;
}

/* CTA Tag Mobile */
.cta-tag {
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: rgba(139, 92, 246, 0.1);
}

.cta-tag:active {
    transform: scale(0.96);
    background: rgba(139, 92, 246, 0.15);
}

/* CTA Title Mobile */
.cta-title {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* CTA Subtitle Mobile */
.cta-subtitle {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

/* CTA Stats Mobile Grid */
.cta-stats {
    -webkit-overflow-scrolling: touch;
}

.cta-stat {
    transition: all 0.2s ease;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.cta-stat:active {
    transform: scale(0.95);
    background: rgba(139, 92, 246, 0.1) !important;
}

/* CTA Buttons Ultra Mobile */
.cta-buttons {
    -webkit-overflow-scrolling: touch;
}

.cta-primary,
.cta-secondary {
    -webkit-tap-highlight-color: transparent;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: none;
    border: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.cta-primary:focus,
.cta-secondary:focus {
    outline: 2px solid rgba(139, 92, 246, 0.5);
    outline-offset: 2px;
}

.cta-primary:active {
    transform: scale(0.96) !important;
}

.cta-secondary:active {
    transform: scale(0.96) !important;
}

/* CTA Note Mobile */
.cta-note {
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* Mobile Responsive Improvements */
@media (max-width: 640px) {
    .cta-mobile-optimized {
        padding: 2.5rem 0;
    }

    .cta-tag {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
        margin-bottom: 1rem;
    }

    .cta-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
        margin-bottom: 0.75rem;
        line-height: 1.2;
        padding: 0 0.5rem;
    }

    .cta-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
        line-height: 1.4;
        padding: 0 0.75rem;
        max-width: 90%;
    }

    .cta-stats {
        margin-bottom: 1.5rem;
        gap: 0.5rem;
        max-width: 320px;
    }

    .cta-stat {
        padding: 0.75rem 0.5rem;
        border-radius: 0.75rem;
        background: rgba(17, 24, 39, 0.5) !important;
        border: 1px solid rgba(139, 92, 246, 0.2);
        min-height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .cta-stat span {
        font-size: 0.75rem;
        font-weight: 600;
        text-align: center;
        line-height: 1.2;
    }

    .cta-buttons {
        gap: 0.75rem;
        padding: 0 0.75rem;
        max-width: 280px;
    }

    .cta-primary,
    .cta-secondary {
        min-height: 52px;
        font-size: 0.95rem;
        font-weight: 600;
        border-radius: 1rem;
        padding: 0.875rem 1.25rem;
    }

    .cta-primary {
        box-shadow: 0 8px 32px rgba(139, 92, 246, 0.3);
    }

    .cta-secondary {
        border-width: 1.5px;
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }

    .cta-note {
        font-size: 0.75rem;
        margin-top: 1rem;
        padding: 0 1rem;
        line-height: 1.4;
    }
}

/* Ultra Small Mobile (iPhone SE, etc.) */
@media (max-width: 375px) {
    .cta-mobile-optimized {
        padding: 2rem 0;
    }

    .cta-title {
        font-size: clamp(1.375rem, 7vw, 1.75rem);
        margin-bottom: 0.5rem;
    }

    .cta-subtitle {
        font-size: 0.85rem;
        margin-bottom: 1.25rem;
        max-width: 95%;
    }

    .cta-stats {
        max-width: 300px;
        gap: 0.375rem;
    }

    .cta-stat {
        padding: 0.625rem 0.375rem;
        min-height: 55px;
    }

    .cta-stat span {
        font-size: 0.7rem;
    }

    .cta-buttons {
        max-width: 260px;
        gap: 0.625rem;
    }

    .cta-primary,
    .cta-secondary {
        min-height: 48px;
        font-size: 0.9rem;
        padding: 0.75rem 1rem;
        border-radius: 0.875rem;
    }

    .cta-note {
        font-size: 0.7rem;
        padding: 0 1.25rem;
    }
}

/* Landscape Mobile Optimization */
@media (max-height: 500px) and (orientation: landscape) {
    .cta-mobile-optimized {
        padding: 1.5rem 0;
    }

    .cta-title {
        margin-bottom: 0.5rem;
    }

    .cta-subtitle {
        margin-bottom: 1rem;
    }

    .cta-stats {
        margin-bottom: 1rem;
    }

    .cta-note {
        margin-top: 0.75rem;
    }
}

/* Touch and Accessibility Improvements */
@media (pointer: coarse) {
    .cta-tag,
    .cta-stat,
    .cta-primary,
    .cta-secondary {
        min-height: 44px; /* iOS touch target minimum */
    }

    .cta-primary:hover,
    .cta-secondary:hover {
        transform: none; /* Disable hover effects on touch devices */
    }

    .cta-primary:active,
    .cta-secondary:active {
        transform: scale(0.96);
        transition-duration: 0.1s;
    }
}

/* High DPI / Retina Display Optimization */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .cta-title,
    .cta-subtitle,
    .cta-note {
        -webkit-font-smoothing: subpixel-antialiased;
    }
}

/* Dark Mode Enhancements for CTA */
@media (prefers-color-scheme: dark) {
    .cta-stat {
        background: rgba(17, 24, 39, 0.6) !important;
        border-color: rgba(139, 92, 246, 0.25);
    }
    
    .cta-secondary {
        background: rgba(17, 24, 39, 0.7);
        border-color: rgba(139, 92, 246, 0.5);
    }
}

/* Reduced Motion Preferences */
@media (prefers-reduced-motion: reduce) {
    .cta-tag,
    .cta-stat,
    .cta-primary,
    .cta-secondary {
        transition: none;
    }

    .cta-primary:active,
    .cta-secondary:active,
    .cta-stat:active,
    .cta-tag:active {
        transform: none;
    }
} 