/**
 * Features Page - Clean Professional Design
 * Modern business aesthetic with sharp lines, clear hierarchy, and professional polish
 */

/* ============================================
   HERO SECTION
   ============================================ */

.features-hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #0A5FAD 0%, #073d73 100%);
    position: relative;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: var(--p4-blue);
    color: white;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-badge i {
    font-size: 1rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 24px;
}

.hero-description {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 32px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 32px;
}

.stat-item {
    text-align: left;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--p4-orange);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Hero Visual */
.hero-image {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.feature-modules-visual {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 400px;
}

.module-icon {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    font-size: 2.5rem;
    color: #ffffff;
    transition: all 0.3s ease;
}

.module-icon:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

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

.features-section {
    padding: 80px 0;
    background: white;
}

.section-header {
    margin-bottom: 64px;
}

.section-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(10, 95, 173, 0.1);
    color: var(--p4-blue);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--p4-blue-700);
    margin-bottom: 16px;
}

.section-description {
    font-size: 1.125rem;
    color: var(--p4-grey-600);
    max-width: 700px;
    margin: 0 auto;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
}

/* Feature Card */
.feature-card {
    background: white;
    border: 2px solid var(--p4-grey-200);
    border-radius: 12px;
    padding: 32px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: var(--p4-blue);
    box-shadow: 0 8px 32px rgba(10, 95, 173, 0.12);
    transform: translateY(-4px);
}

.feature-icon-box {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 2rem;
    margin-bottom: 20px;
    color: white;
}

.feature-icon-box.bg-blue {
    background: var(--p4-blue);
}

.feature-icon-box.bg-orange {
    background: var(--p4-orange);
}

.feature-icon-box.bg-green {
    background: #10b981;
}

.feature-icon-box.bg-purple {
    background: #8b5cf6;
}

.feature-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--p4-blue-700);
    margin-bottom: 12px;
}

.feature-desc {
    font-size: 1rem;
    color: var(--p4-grey-600);
    line-height: 1.6;
    margin-bottom: 20px;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 0.9375rem;
    color: var(--p4-grey-700);
}

.feature-list li i {
    color: var(--p4-blue);
    font-size: 0.875rem;
}

.feature-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--p4-blue);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9375rem;
    transition: gap 0.3s ease;
}

.feature-link:hover {
    gap: 12px;
    color: var(--p4-blue-700);
}

/* ============================================
   ENTERPRISE SECTION
   ============================================ */

.enterprise-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

.enterprise-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: var(--p4-orange);
    color: white;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.enterprise-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--p4-blue-700);
    margin-bottom: 20px;
}

.enterprise-description {
    font-size: 1.125rem;
    color: var(--p4-grey-600);
    line-height: 1.6;
    margin-bottom: 32px;
}

.enterprise-features {
    margin-bottom: 32px;
}

.enterprise-feature-item {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: white;
    border: 2px solid var(--p4-grey-200);
    border-radius: 12px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.enterprise-feature-item:hover {
    border-color: var(--p4-blue);
    box-shadow: 0 4px 16px rgba(10, 95, 173, 0.1);
}

.ef-icon {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 95, 173, 0.1);
    border-radius: 10px;
    color: var(--p4-blue);
    font-size: 1.75rem;
}

.ef-content h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--p4-blue-700);
    margin-bottom: 8px;
}

.ef-content p {
    font-size: 0.9375rem;
    color: var(--p4-grey-600);
    margin: 0;
}

/* Enterprise Visual */
.enterprise-visual {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 40px;
}

.ev-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 32px 24px;
    background: white;
    border: 2px solid var(--p4-grey-200);
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
}

.ev-item:hover {
    border-color: var(--p4-blue);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(10, 95, 173, 0.12);
}

.ev-item i {
    font-size: 2rem;
    color: var(--p4-blue);
}

.ev-item span {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--p4-grey-700);
}

/* ============================================
   COMPARE SECTION
   ============================================ */

.compare-section {
    background: white;
}

.compare-card {
    height: 100%;
}

.compare-card-inner {
    background: white;
    border: 2px solid var(--p4-grey-200);
    border-radius: 12px;
    padding: 32px 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
}

.compare-card:hover .compare-card-inner {
    border-color: var(--p4-blue);
    box-shadow: 0 8px 32px rgba(10, 95, 173, 0.15);
    transform: translateY(-6px);
}

.compare-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--p4-blue) 0%, #073d73 100%);
    border-radius: 12px;
    color: white;
    font-size: 1.75rem;
    margin-bottom: 20px;
}

.compare-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--p4-blue-700);
    margin-bottom: 12px;
    line-height: 1.3;
}

.compare-card-desc {
    font-size: 0.9375rem;
    color: var(--p4-grey-600);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.compare-link {
    display: inline-flex;
    align-items: center;
    color: var(--p4-blue);
    font-weight: 600;
    font-size: 0.9375rem;
    transition: gap 0.3s ease;
    gap: 6px;
}

.compare-card:hover .compare-link {
    gap: 10px;
    color: var(--p4-orange);
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--p4-blue) 0%, var(--p4-blue-700) 100%);
    color: white;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-description {
    font-size: 1.25rem;
    margin-bottom: 32px;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-stats {
        gap: 30px;
    }

    .feature-modules-visual {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .module-icon {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }

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

    .enterprise-title {
        font-size: 2rem;
    }

    .cta-title {
        font-size: 2rem;
    }
}

@media (max-width: 767px) {
    .compare-card-inner {
        padding: 24px 20px;
    }

    .compare-icon {
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
    }

    .compare-card-title {
        font-size: 1rem;
    }

    .compare-card-desc {
        font-size: 0.875rem;
    }

    .features-hero {
        padding: 80px 0 60px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1.125rem;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 24px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-cta .btn {
        width: 100%;
        justify-content: center;
    }

    .feature-modules-visual {
        grid-template-columns: repeat(2, 1fr);
        max-width: 300px;
    }

    .module-icon {
        width: 70px;
        height: 70px;
        font-size: 1.75rem;
    }

    .features-section {
        padding: 60px 0;
    }

    .section-header {
        margin-bottom: 48px;
    }

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

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

    .features-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .feature-card {
        padding: 24px;
    }

    .feature-icon-box {
        width: 56px;
        height: 56px;
        font-size: 1.75rem;
    }

    .feature-name {
        font-size: 1.25rem;
    }

    .enterprise-section {
        padding: 60px 0;
    }

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

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

    .enterprise-feature-item {
        flex-direction: column;
        padding: 20px;
    }

    .ef-icon {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
    }

    .enterprise-visual {
        grid-template-columns: 1fr;
        padding: 20px 0;
    }

    .cta-section {
        padding: 60px 0;
    }

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

    .cta-description {
        font-size: 1.125rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn {
        width: 100%;
    }
}

@media (max-width: 575px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .stat-item {
        flex: 1 1 45%;
    }

    .stat-number {
        font-size: 1.75rem;
    }

    .stat-label {
        font-size: 0.8125rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .enterprise-title {
        font-size: 1.5rem;
    }

    .cta-title {
        font-size: 1.5rem;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .feature-card:hover,
    .module-icon:hover,
    .ev-item:hover {
        transform: none;
    }
}

/* Focus states for keyboard navigation */
.feature-link:focus,
.btn:focus {
    outline: 3px solid var(--p4-orange);
    outline-offset: 2px;
}
