/* --- HOVER STATE FLUIDI --- */
a, button, .btn, .feature-card, .plan-card {
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

/* --- MOUSE SPOTLIGHT (Card Effetto Vetro/Luce) --- */
.feature-card, .plan-card {
    position: relative;
    overflow: hidden;
    /* Assicurati che lo sfondo base sia scuro/opaco a sufficienza per vedere il bagliore */
    background: rgba(255, 255, 255, 0.05); 
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-card::before, .plan-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: inherit;
    padding: 2px; /* spessore bordo */
    background: radial-gradient(
        600px circle at var(--mouse-x) var(--mouse-y), 
        rgba(37, 99, 235, 0.4), /* Colore primary della luce */
        transparent 40%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.feature-card::after, .plan-card::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(
        800px circle at var(--mouse-x) var(--mouse-y), 
        rgba(37, 99, 235, 0.06), 
        transparent 40%
    );
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: -1;
}

.feature-card:hover::before, .plan-card:hover::before,
.feature-card:hover::after, .plan-card:hover::after {
    opacity: 1;
}


/* --- TEXT REVEAL --- */
.reveal-text {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
}

.reveal-text .word {
    display: inline-block;
    transform: translateY(115%);
    opacity: 0;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease;
}

.reveal-text.active .word {
    transform: translateY(0);
    opacity: 1;
}

/* --- BOTTONI MAGNETICI --- */
.magnetic-btn {
    display: inline-block;
    /* La transizione qui serve solo per il ritorno alla posizione originale */
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}
.magnetic-btn:hover {
    transition: none; /* Rimuoviamo la transizione durante il movimento del mouse per evitare lag */
}
