/* ===== ARC CTA SECTION ===== */
.arc-cta {
    background: #0a0a0a;
    padding: 0 40px 120px;
    position: relative;
    overflow: hidden;
}

.arc-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 217, 213, 0.3), transparent);
}

/* Bottom fade — hides cut-off arc bottom */
.arc-cta::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 220px;
    background: linear-gradient(to bottom, transparent, #0a0a0a);
    pointer-events: none;
    z-index: 20;
}

.arc-cta-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

/* Arc wrapper — JS positions everything inside */
.arc-cta-wrapper {
    position: relative;
    width: 100%;
    height: 700px;
}

/* Image cards — JS sets left, top, transform */
.cta-arc-img {
    position: absolute;
    width: 110px;
    height: 145px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: box-shadow 0.35s ease;
}

.cta-arc-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cta-arc-img:hover {
    box-shadow: 0 20px 48px rgba(0, 217, 213, 0.2);
    z-index: 5;
}

/* Text content */
.arc-cta-content {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 520px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 25;
}

.arc-cta-heading {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -1px;
    margin-bottom: 14px;
    line-height: 1.15;
}

.arc-heading-accent {
    color: #00D9D5;
}

.arc-cta-subtitle {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.95rem;
    line-height: 1.75;
    max-width: 400px;
    margin-bottom: 32px;
}

/* Buttons */
.arc-cta-buttons {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
}

.arc-cta-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #00D9D5;
    color: #000000;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.arc-cta-btn-primary:hover {
    background: #00b8b5;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 217, 213, 0.35);
}

.arc-cta-btn-primary svg {
    transition: transform 0.3s ease;
}

.arc-cta-btn-primary:hover svg {
    transform: translateX(4px);
}

.arc-cta-btn-secondary {
    display: inline-flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.25),
        inset 0 -1px 0 rgba(0,0,0,0.3),
        0 6px 0 rgba(0,0,0,0.3),
        0 10px 22px rgba(0,0,0,0.4);
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.arc-cta-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.13);
    color: #ffffff;
    border-color: rgba(0, 217, 213, 0.4);
    transform: translateY(-2px);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.3),
        inset 0 -1px 0 rgba(0,0,0,0.2),
        0 8px 0 rgba(0,0,0,0.22),
        0 14px 30px rgba(0,217,213,0.15);
}

.arc-cta-btn-secondary:active {
    transform: translateY(2px);
    box-shadow:
        inset 0 2px 6px rgba(0,0,0,0.3),
        0 2px 0 rgba(0,0,0,0.2);
}

/* ===== SCROLL ANIMATIONS ===== */
.cta-arc-img.scroll-hidden {
    opacity: 0;
    visibility: hidden;
}

.cta-arc-img.scroll-visible {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.55s;
}

.arc-cta-heading.scroll-hidden,
.arc-cta-subtitle.scroll-hidden,
.arc-cta-buttons.scroll-hidden {
    opacity: 0;
    transform: translateY(24px);
}

.arc-cta-heading.scroll-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.arc-cta-subtitle.scroll-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.arc-cta-buttons.scroll-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .arc-cta {
        padding: 60px 16px 80px;
    }

    .arc-cta-wrapper {
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* Arc image area on top */
    .cta-arc-img {
        width: 78px;
        height: 102px;
        border-radius: 12px;
    }

    /* Reserve space for the arc images at top */
    .arc-cta-wrapper::before {
        content: '';
        display: block;
        height: 220px;
        width: 100%;
    }

    /* Text content below the arc */
    .arc-cta-content {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        width: 100%;
        max-width: 340px;
        margin-top: 24px;
        padding: 0 8px;
    }

    /* Keep arc images absolutely positioned within the top 220px */
    .arc-cta-wrapper {
        position: relative;
    }

    .arc-cta-heading {
        font-size: 1.6rem;
    }

    .arc-cta-subtitle {
        font-size: 0.85rem;
        max-width: 100%;
        margin-bottom: 24px;
    }

    .arc-cta-btn-primary,
    .arc-cta-btn-secondary {
        padding: 12px 24px;
        font-size: 0.75rem;
    }
}
