/* =========================================
   Buttons & Interactions
   ========================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 15px;
    border-radius: 99px;
    /* Pill shape */
    transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    text-decoration: none;
    cursor: pointer;
    border: none;
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, #8B5CF6, #EC4899);
    background-size: 200% 200%;
    color: white;
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.4);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    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;
}

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

.btn-primary:hover {
    background: linear-gradient(135deg, #7C3AED, #DB2777);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 12px 32px rgba(139, 92, 246, 0.5), 0 0 40px rgba(236, 72, 153, 0.3);
    animation: buttonGlow 2s ease-in-out infinite;
}

@keyframes buttonGlow {
    0%, 100% {
        box-shadow: 0 12px 32px rgba(139, 92, 246, 0.5), 0 0 40px rgba(236, 72, 153, 0.3);
    }
    50% {
        box-shadow: 0 12px 32px rgba(139, 92, 246, 0.6), 0 0 60px rgba(236, 72, 153, 0.5);
    }
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--purple);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.3);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 17px;
}

/* =========================================
   Cards & Content Boxes
   ========================================= */

.card {
    background: white;
    border-radius: 20px;
    border: 1px solid var(--gray-100);
    padding: 32px;
    transition: all 0.3s ease;
}

.card:hover {
    border-color: var(--gray-200);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* Feature Icon Box */
.feature-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--gray-50);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
}

/* =========================================
   Integration Marquee
   ========================================= */

.logo-marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 40px 0;
    /* Fade masks on left/right edges */
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.logo-track {
    display: flex;
    width: fit-content;
    gap: 48px;
    /* Space between logos */
    animation: scroll 40s linear infinite;
    /* Optional: Pause on hover */
}

/* If you want hover pause, remove comments below */
.logo-marquee-container:hover .logo-track {
    animation-play-state: paused;
}

/* Animation Keyframes */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        /* Move left by exactly half the total width (the width of one set of items) */
        /* Since we have 2 sets, moving 50% of the *track* width works effectively 
           if calculated correctly, but standard translation is usually based on 
           moving by -50% if the sets are equal width. */
        transform: translateX(-50%);
    }
}

.logo-item {
    flex: 0 0 auto;
    /* Prevent shrinking */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    opacity: 0.6;
    transition: all 0.3s ease;
    cursor: default;
}

.logo-item img {
    height: 40px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.logo-item .logo-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-500);
    transition: all 0.3s ease;
}

/* Hover State */
.logo-item:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.logo-item:hover img {
    filter: grayscale(0%);
}

.logo-item:hover .logo-name {
    color: var(--gray-900);
}


/* =========================================
   FAQ Components
   ========================================= */

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--primary-light);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 24px;
    background: none;
    border: none;
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-900);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: inherit;
    line-height: 1.4;
}

.faq-icon {
    font-size: 12px;
    color: var(--gray-400);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
    /* Use a custom SVG or shape? Standard triangle is fine but let's make it nice */
}

/* Active State */
.faq-item.active {
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(0, 122, 255, 0.08);
}

.faq-item.active .faq-question {
    color: var(--primary);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    color: var(--primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--gray-50);
}

.faq-item.active .faq-answer {
    max-height: 500px;
    /* Arbitrary large number for transition */
}

.faq-answer-content {
    padding: 0 24px 24px 24px;
    color: var(--gray-600);
    line-height: 1.7;
    font-size: 16px;
}