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

.features {
    background: var(--bg-section);
    position: relative;
}

/* Barely visible dot pattern for texture */
.features .container {
    position: relative;
    z-index: 1;
}

/* Diagonal separator at bottom → transitions into CTA (alt bg) */
.features::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 5.5rem;
    background: var(--bg-section-alt);
    clip-path: polygon(0 100%, 100% 15%, 100% 100%);
    pointer-events: none;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

/* Feature Card */
.feature-card {
    text-align: left;
}

.feature-icon {
    color: var(--primary);
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.feature-icon svg {
    width: 2.25rem;
    height: 2.25rem;
    stroke-width: 1.5;
}

.feature-title {
    margin-bottom: var(--space-xs);
    color: var(--text-primary);
    font-size: 1.1875rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.feature-desc {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

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

.cta {
    background: var(--bg-section-alt);
    position: relative;
    padding: var(--space-3xl) 0 calc(var(--space-3xl) + 3rem);
}

/* Diagonal line pattern */
.cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 1.5rem,
        rgba(61, 90, 128, 0.035) 1.5rem,
        rgba(61, 90, 128, 0.035) 1.5625rem
    );
    pointer-events: none;
}

.cta .container {
    position: relative;
    z-index: 1;
}

.cta-content {
    text-align: center;
    max-width: 40rem;
    margin: 0 auto;
}

/* Override glass-card styles for CTA — no card look, pure editorial */
.cta-content.glass-card {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    border-radius: 0;
}

.cta-content.glass-card::before {
    display: none;
}

.cta-content.glass-card:hover {
    box-shadow: none;
    border-color: transparent;
    transform: none;
}

.cta-title {
    margin-bottom: var(--space-md);
    color: var(--text-primary);
    text-align: center;
}

.cta-subtitle {
    margin-bottom: var(--space-xl);
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    flex-wrap: wrap;
}

.cta-donate-note {
    margin-top: var(--space-2xl);
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 32.5rem;
    margin-left: auto;
    margin-right: auto;
}

/* ==================== Responsive ==================== */
@media (max-width: 968px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .cta {
        padding: var(--space-2xl) 0;
    }

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

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

/* ==================== WAVE SEPARATOR UTILITY ==================== */

/* Wave separator bottom — for last sections before footer */
.wave-separator-bottom {
    padding-bottom: calc(var(--space-3xl) + 3rem);
}

.wave-separator-bottom::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4rem;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 64' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none'%3E%3Cpath d='M0 0C360 64 720 0 1080 48C1260 60 1380 20 1440 0V64H0Z' fill='%23ffffff'/%3E%3C/svg%3E");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 2;
}
