/* ==================== */
/* FEATURES SECTION     */
/* ==================== */

.features {
    padding: 5rem 0;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    position: relative;
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.features .section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.features-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: #2563eb;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    border: 1px solid #bfdbfe;
}

.features-title {
    font-size: 2.5rem;
    color: #0f172a;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.features-description {
    font-size: 1.1rem;
    color: #64748b;
    line-height: 1.6;
}

/* Feature Tabs Navigation */
.features-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    padding: 0.5rem;
    background: #f1f5f9;
    border-radius: 16px;
    max-width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.feature-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.25rem;
    background: transparent;
    border: none;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.feature-tab i {
    font-size: 1rem;
}

.feature-tab:hover {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
}

.feature-tab.active {
    background: white;
    color: #3b82f6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Feature Content */
.features-content {
    position: relative;
}

.feature-panel {
    display: none;
    animation: fadeIn 0.4s ease;
}

.feature-panel.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-showcase {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: stretch;
    background: white;
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    position: relative;
}

/* Feature Info */
.feature-info {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding-top: 0.5rem;
}

.feature-icon {
    position: absolute;
    top: 2rem;
    left: 2rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 12px;
    flex-shrink: 0;
    z-index: 2;
}

.feature-info-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.feature-info > p {
    font-size: 1.1rem;
    color: #64748b;
    line-height: 1.7;
    margin: 0;
}

.feature-benefits {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.feature-benefits li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    color: #334155;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.feature-benefits li:hover {
    background: #eff6ff;
    transform: translateX(5px);
}

.feature-benefits i {
    color: #22c55e;
    font-size: 1rem;
    flex-shrink: 0;
}

.feature-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.75rem;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: fit-content;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.feature-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.feature-cta-btn i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.feature-cta-btn:hover i {
    transform: translateX(3px);
}

/* Feature Visual / GIF Display */
.feature-visual {
    position: relative;
}

.feature-mockup {
    background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

.mockup-header {
    background: rgba(15, 23, 42, 0.95);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mockup-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.mockup-dot.red {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 0 6px rgba(239, 68, 68, 0.4);
}

.mockup-dot.yellow {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 0 6px rgba(245, 158, 11, 0.4);
}

.mockup-dot.green {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.4);
}

.mockup-screen {
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.mockup-screen::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 30% 20%, rgba(59, 130, 246, 0.1), transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(139, 92, 246, 0.1), transparent 50%);
    pointer-events: none;
}

.mockup-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

/* Floating decorations */
.feature-visual::before {
    content: '';
    position: absolute;
    top: -15px;
    right: -15px;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    border-radius: 20px;
    opacity: 0.15;
    z-index: -1;
}

.feature-visual::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: -10px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);
    border-radius: 12px;
    opacity: 0.15;
    z-index: -1;
}

/* Mobile: Vertical tabs / Accordion style */
@media (max-width: 1024px) {
    .feature-showcase {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 2rem;
    }

    .feature-visual {
        order: -1;
    }

    .feature-icon {
        top: 1.5rem;
        left: 1.5rem;
    }

    .feature-info-header h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .features {
        padding: 3rem 0;
    }

    .features-title {
        font-size: 1.75rem;
    }

    .features-description {
        font-size: 1rem;
    }

    .features-tabs {
        gap: 0.25rem;
        padding: 0.375rem;
        border-radius: 12px;
        width: 100%;
        max-width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .features-tabs::-webkit-scrollbar {
        display: none;
    }

    .feature-tab {
        padding: 0.75rem 1rem;
        font-size: 0.8rem;
        border-radius: 10px;
    }

    .feature-tab span {
        display: none;
    }

    .feature-tab i {
        font-size: 1.1rem;
    }

    .feature-showcase {
        padding: 1.25rem;
        border-radius: 16px;
        gap: 1.5rem;
    }

    .feature-icon {
        width: 40px;
        height: 40px;
        top: 1rem;
        right: 1rem;
        border-radius: 10px;
    }

    .feature-icon i {
        font-size: 1rem;
    }

    .feature-info-header h3 {
        font-size: 1.25rem;
    }

    .feature-info > p {
        font-size: 0.95rem;
    }

    .feature-benefits li {
        font-size: 0.9rem;
        padding: 0.625rem 0.875rem;
    }

    .feature-cta-btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
        width: 100%;
        justify-content: center;
    }

    .mockup-header {
        padding: 8px 12px;
    }

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

/* Extra small screens */
@media (max-width: 480px) {
    .features .section-header {
        margin-bottom: 2rem;
    }

    .features-tabs {
        margin-bottom: 2rem;
    }

    .feature-info-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
} 