/* Enhanced Audience Section - Inspired by Why Different cards */

.audience-enhanced {
    padding: 80px 20px 60px;
    background: #ffffff;
    overflow: visible;
}

.audience-enhanced .container.compact {
    padding: 0;
    max-width: 100%;
}

.audience-enhanced .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 1rem;
}

.audience-enhanced .section-subtitle {
    font-size: 1.125rem;
    color: #6b7280;
    text-align: center;
    margin-bottom: 3rem;
}

/* Use Cases Container */
.use-cases {
    position: relative;
    max-width: 1000px;
    margin: 0 auto 3rem;
    min-height: 500px;
}

/* Individual Use Case - Clean card layout */
.use-case {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.4s ease;
    pointer-events: none;
}

.use-case.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    position: relative;
}

/* Use Case Header */
.use-case-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.use-case-badge {
    display: inline-block;
    padding: 8px 16px;
    background: #11b782;
    color: white;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 6px;
}

.use-case-persona {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.persona-avatar {
    width: 48px;
    height: 48px;
    background: #11b782;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.persona-avatar::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #11b782;
    opacity: 0.2;
    animation: avatarPulse 3s ease-in-out infinite;
}

@keyframes avatarPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.2;
    }

    50% {
        transform: scale(1.15);
        opacity: 0;
    }
}

.persona-avatar svg {
    width: 24px;
    height: 24px;
    color: white;
}

.persona-info h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.125rem;
}

.persona-info p {
    color: #9ca3af;
    font-size: 0.875rem;
}

/* Two-column layout inspired by comparison cards */
.use-case-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

/* Cards with floating animation */
.use-case-problem,
.use-case-solution {
    background: #fafafa;
    border-radius: 16px;
    padding: 32px;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

/* Subtle float animation */
.use-case.active .use-case-problem {
    animation: floatLeft 6s ease-in-out infinite;
}

.use-case.active .use-case-solution {
    animation: floatRight 6s ease-in-out infinite 0.5s;
}

@keyframes floatLeft {

    0%,
    100% {
        transform: translateY(0);
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    }

    50% {
        transform: translateY(-6px);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
    }
}

@keyframes floatRight {

    0%,
    100% {
        transform: translateY(0);
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    }

    50% {
        transform: translateY(-6px);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
    }
}

/* Green accent line animation */
.use-case-solution::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg,
            transparent,
            rgba(17, 183, 130, 0.5),
            transparent);
    animation: cardScan 8s linear infinite;
}

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

    100% {
        left: 100%;
    }
}

.problem-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #1a1a1a;
    margin-bottom: 20px;
    display: inline-block;
    padding-bottom: 8px;
    border-bottom: 2px solid #e5e7eb;
}

.solution-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #11b782;
    margin-bottom: 20px;
    display: inline-block;
    padding-bottom: 8px;
    border-bottom: 2px solid #11b782;
}

.problem-content p {
    color: #4b5563;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Solution points with green accents */
.solution-points {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.solution-points li {
    position: relative;
    padding-left: 32px;
    color: #374151;
    font-size: 0.95rem;
    line-height: 1.7;
}

.solution-points li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 20px;
    height: 20px;
    background: #11b782;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.solution-points li::after {
    content: '✓';
    position: absolute;
    left: 4px;
    top: 6px;
    color: white;
    font-size: 12px;
    font-weight: bold;
}

/* Navigation Dots with green active state */
.use-case-nav {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}

.nav-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e5e7eb;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    position: relative;
}

.nav-dot:hover {
    background: rgba(17, 183, 130, 0.3);
    transform: scale(1.1);
}

.nav-dot.active {
    background: #11b782;
    width: 28px;
    border-radius: 5px;
}

.nav-dot.active::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(17, 183, 130, 0.3);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: navPulse 2s ease-in-out infinite;
}

@keyframes navPulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 1;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0;
    }
}

/* CTA Section */
.use-case-cta {
    text-align: center;
    margin-top: 3rem;
    padding-bottom: 2rem;
}

.cta-question {
    font-size: 1.125rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.use-case-cta .btn-primary {
    padding: 0.875rem 2rem;
    font-size: 1rem;
    background: #11b782;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.use-case-cta .btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.use-case-cta .btn-primary:hover {
    background: #0fa271;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(17, 183, 130, 0.3);
}

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

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .audience-enhanced {
        padding: 40px 10px;
    }

    .audience-enhanced .container.compact {
        padding: 0 10px;
    }

    .audience-enhanced .section-title {
        font-size: 2rem;
    }

    .use-cases {
        min-height: 600px;
        margin: 0 0 2rem;
    }

    .use-case {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
    }

    .use-case.active {
        position: relative;
    }

    .use-case-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .use-case-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .use-case-problem,
    .use-case-solution {
        padding: 20px 16px;
        border-radius: 12px;
    }

    .solution-points li {
        font-size: 0.875rem;
        padding-left: 28px;
        line-height: 1.6;
    }

    .solution-points li::before {
        width: 18px;
        height: 18px;
        top: 6px;
    }

    .solution-points li::after {
        left: 3px;
        top: 4px;
        font-size: 11px;
    }

    .use-case-cta .btn-primary {
        width: 100%;
        max-width: 300px;
    }

    /* Disable float animations on mobile */
    .use-case.active .use-case-problem,
    .use-case.active .use-case-solution {
        animation: none;
    }
}

/* Tablet adjustments */
@media (max-width: 1024px) {
    .use-cases {
        margin: 0 20px 3rem;
    }
}

/* Very small screens */
@media (max-width: 480px) {
    .audience-enhanced {
        padding: 30px 5px;
    }

    .audience-enhanced .container.compact {
        padding: 0 8px;
    }

    .audience-enhanced .section-title {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }

    .audience-enhanced .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
        padding: 0 10px;
    }

    .use-case-header {
        margin-bottom: 1.5rem;
    }

    .use-case-badge {
        font-size: 11px;
        padding: 6px 12px;
    }

    .persona-avatar {
        width: 40px;
        height: 40px;
    }

    .persona-avatar svg {
        width: 20px;
        height: 20px;
    }

    .persona-info h3 {
        font-size: 1rem;
    }

    .persona-info p {
        font-size: 0.8125rem;
    }

    .use-case-problem,
    .use-case-solution {
        padding: 18px 14px;
        margin-bottom: 12px;
    }

    .problem-label,
    .solution-label {
        font-size: 11px;
        margin-bottom: 16px;
        padding-bottom: 6px;
    }

    .problem-content p,
    .solution-points li {
        font-size: 0.8125rem;
        line-height: 1.5;
    }

    .solution-points {
        gap: 12px;
    }

    .solution-points li {
        padding-left: 24px;
    }

    .solution-points li::before {
        width: 16px;
        height: 16px;
        top: 5px;
    }

    .solution-points li::after {
        left: 2px;
        top: 3px;
        font-size: 10px;
    }

    .nav-dot {
        width: 8px;
        height: 8px;
    }

    .nav-dot.active {
        width: 24px;
    }

    .use-case-cta {
        margin-top: 2rem;
    }

    .cta-question {
        font-size: 1rem;
        margin-bottom: 1rem;
        padding: 0 10px;
    }
}