/* Modern Features Page - Consistent with Site Design */

/* Hero Section */

.featuresHero {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a8a 100%);
    color: white;
    padding: 5rem 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.featuresHero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.featuresHero .container {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.featuresHero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.featuresHero p {
    font-size: 1.25rem;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

/* Features Grid */

.featuresGrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 4rem 0;
    max-width: 1200px;
    margin: 0 auto;
}

/* Feature Card */

.featureCard {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.featureCard:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: #cbd5e0;
}

/* Featured Card */

.featureCard--featured {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 50%, #ffffff 100%);
    border: 2px solid #10b981;
    box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.1), 0 2px 4px -1px rgba(16, 185, 129, 0.06);
}

.featureCard--featured:hover {
    border-color: #059669;
    box-shadow: 0 20px 25px -5px rgba(16, 185, 129, 0.15), 0 10px 10px -5px rgba(16, 185, 129, 0.08);
}

.featureBadge {
    position: absolute;
    top: -10px;
    right: 1.5rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.35rem 0.75rem;
    border-radius: 100px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

/* Feature Icon */

.featureIcon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    font-size: 1.5rem;
}

.featureIcon--cnam { background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%); }

.featureIcon--cnam svg { color: #2563eb; }

.featureIcon--messaging { background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%); }

.featureIcon--messaging svg { color: #db2777; }

.featureIcon--lrn { background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%); }

.featureIcon--lrn svg { color: #059669; }

.featureIcon--spam { background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%); }

.featureIcon--spam svg { color: #dc2626; }

.featureIcon--compliance { background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%); }

.featureIcon--compliance svg { color: #4f46e5; }

.featureIcon--developer { background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%); }

.featureIcon--developer svg { color: #d97706; }

.featureIcon--enterprise { background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%); }

.featureIcon--enterprise svg { color: #9333ea; }

.featureIcon--analytics { background: linear-gradient(135deg, #ccfbf1 0%, #99f6e4 100%); }

.featureIcon--analytics svg { color: #0d9488; }

.featureIcon--reporting { background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%); }

.featureIcon--reporting svg { color: #0284c7; }

.featureIcon svg {
    width: 28px;
    height: 28px;
}

/* Card Content */

.featureCard h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: #1e293b;
    font-weight: 700;
    line-height: 1.3;
}

.featureCard h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.featureCard h3 a:hover {
    color: #2563eb;
}

.featureCard > p {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
    flex-grow: 0;
}

/* Feature List */

.featureList {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
}

.featureList li {
    padding: 0.5rem 0;
    color: #475569;
    position: relative;
    padding-left: 1.75rem;
    line-height: 1.5;
    font-size: 0.9rem;
    border-bottom: 1px solid #f1f5f9;
}

.featureList li:last-child {
    border-bottom: none;
}

.featureList li:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.7rem;
    width: 16px;
    height: 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2322c55e'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}

.featureList li a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

.featureList li a:hover {
    text-decoration: underline;
}

/* CTA Section */

.ctaSection {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a8a 100%);
    padding: 5rem 1rem;
    text-align: center;
    color: white;
}

.ctaSection h2 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.ctaSection p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.ctaButton {
    display: inline-block;
    background: white;
    color: #1e3a5f;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.ctaButton:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */

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

@media (max-width: 768px) {
    .featuresHero h1 {
        font-size: 2.25rem;
    }

    .featuresHero p {
        font-size: 1.1rem;
    }

    .featuresGrid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .featureCard {
        padding: 1.5rem;
    }

    .ctaSection h2 {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .featuresHero {
        padding: 3rem 1rem;
    }

    .featuresHero h1 {
        font-size: 1.75rem;
    }

    .featureIcon {
        width: 48px;
        height: 48px;
    }

    .featureIcon svg {
        width: 24px;
        height: 24px;
    }
}
