/* ═══════════════════════════════════════
   FEATURES PAGE — Rebhni Design System v2
   ═══════════════════════════════════════ */

/* --- Features Hero --- */
.features-hero {
    padding-top: 100px;
    text-align: center;
}

/* --- Stats Overview --- */
.stats-grid {
    gap: 24px;
}

.stat-card {
    text-align: center;
    padding: 32px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--gray-800, rgba(255, 255, 255, 0.08));
    border-radius: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(13, 148, 136, 0.12);
}

.stat-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--teal), var(--teal-light, #2DD4BF));
    border-radius: 14px;
    font-size: 1.4rem;
    color: #fff;
}

.stat-card h3 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--teal-light, #2DD4BF);
    margin-top: 4px;
}

.stat-card p {
    color: var(--gray-400, #9CA3AF);
    font-size: 0.9rem;
    margin-top: 6px;
}

/* --- Core Features Grid --- */
.features-grid {
    gap: 24px;
}

.feature-card {
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(13, 148, 136, 0.1);
}

.feature-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--teal), var(--teal-light, #2DD4BF));
    border-radius: 12px;
    font-size: 1.3rem;
    color: #fff;
    flex-shrink: 0;
}

.feature-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white, #fff);
    margin: 0;
}

.feature-card p {
    color: var(--gray-400, #9CA3AF);
    font-size: 0.9rem;
    line-height: 1.75;
    margin: 0;
}

/* --- Comparison Table --- */
.comparison-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 16px;
    border: 1px solid var(--gray-200, #E5E7EB);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 500px;
}

.comparison-table thead {
    background: var(--gray-100, #F3F4F6);
}

.comparison-table th {
    padding: 16px 24px;
    font-weight: 700;
    font-size: 0.95rem;
    text-align: center;
    color: var(--gray-900, #111827);
    border-bottom: 2px solid var(--gray-200, #E5E7EB);
}

.comparison-table th:first-child {
    text-align: start;
}

.comparison-table td {
    padding: 14px 24px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--gray-700, #374151);
    border-bottom: 1px solid var(--gray-200, #E5E7EB);
}

.comparison-table td:first-child {
    text-align: start;
    font-weight: 500;
}

.comparison-table tbody tr:hover {
    background: var(--gray-50, #F9FAFB);
}

.highlight-col {
    background: rgba(13, 148, 136, 0.06);
}

.comparison-table thead .highlight-col {
    background: var(--teal, #0D9488);
    color: #fff !important;
    border-radius: 0;
}

.check-yes {
    color: var(--teal, #0D9488);
    font-size: 1.1rem;
}

.check-no {
    color: var(--red, #EF4444);
    font-size: 1.1rem;
}

.check-partial {
    color: var(--gray-400, #9CA3AF);
    font-size: 1.1rem;
}

/* --- Integrations --- */
.integrations-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.integration-group h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white, #fff);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--teal, #0D9488);
    display: inline-block;
}

.integration-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.integration-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 110px;
    height: 100px;
    padding: 16px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--gray-800, rgba(255, 255, 255, 0.08));
    border-radius: 12px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.integration-logo:hover {
    transform: translateY(-2px);
    border-color: var(--teal, #0D9488);
}

.integration-logo img {
    max-height: 32px;
    max-width: 80px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.integration-logo span {
    font-size: 0.75rem;
    color: var(--gray-400, #9CA3AF);
    text-align: center;
}

.integration-logo i {
    font-size: 2rem;
    color: var(--gray-300, #D1D5DB);
}

.more-badge {
    background: rgba(13, 148, 136, 0.1);
    border-color: var(--teal, #0D9488);
    cursor: default;
}

.more-count {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--teal-light, #2DD4BF);
    text-align: center;
    line-height: 1.4;
}

/* --- Security Section --- */
.security-grid {
    gap: 24px;
}

.security-card {
    padding: 28px 24px;
    text-align: center;
    transition: transform 0.3s ease;
}

.security-card:hover {
    transform: translateY(-4px);
}

.security-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.2), rgba(13, 148, 136, 0.05));
    border: 1px solid var(--teal, #0D9488);
    border-radius: 12px;
    font-size: 1.3rem;
    color: var(--teal-light, #2DD4BF);
}

.security-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--white, #fff);
    margin-bottom: 8px;
}

.security-card p {
    color: var(--gray-400, #9CA3AF);
    font-size: 0.85rem;
    line-height: 1.7;
}

/* --- CTA Section --- */
.cta-section {
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.12), rgba(13, 148, 136, 0.03));
    border-top: 1px solid rgba(13, 148, 136, 0.2);
    border-bottom: 1px solid rgba(13, 148, 136, 0.2);
}

.cta-trust {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    color: var(--gray-400, #9CA3AF);
    font-size: 0.85rem;
}

.cta-trust i {
    color: var(--teal, #0D9488);
    margin-inline-end: 4px;
}

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */

@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .features-hero {
        padding-top: 72px;
    }

    .stats-grid,
    .features-grid,
    .security-grid {
        grid-template-columns: 1fr;
    }

    .stat-card h3 {
        font-size: 2rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 10px 14px;
        font-size: 0.8rem;
    }

    .integration-logo {
        width: 90px;
        height: 85px;
        padding: 12px 8px;
    }

    .cta-trust {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .integration-logos {
        gap: 10px;
    }

    .integration-logo {
        width: 80px;
        height: 75px;
    }

    .feature-card {
        padding: 24px 20px;
    }
}
