@if (! empty($features))
    <section class="home-features">
        <div class="container">
            <div class="text-center mb-4 mb-lg-5">
                <h2 class="home-section-title">Why choose us</h2>
                <p class="home-section-subtitle mx-auto">Everything you need to run your platform efficiently, securely, and at scale.</p>
            </div>
            <div class="row g-4">
                @foreach ($features as $index => $feature)
                    @php
                        $icons = ['bi-graph-up-arrow', 'bi-people-fill', 'bi-shield-check'];
                        $icon = $icons[$index % count($icons)];
                    @endphp
                    <div class="col-md-4">
                        <div class="home-feature-card">
                            <div class="home-feature-icon">
                                <i class="bi {{ $icon }}"></i>
                            </div>
                            <h3 class="home-feature-title">{{ $feature }}</h3>
                            <p class="home-feature-text">Built for teams that need reliable tools without the complexity.</p>
                        </div>
                    </div>
                @endforeach
            </div>
        </div>
    </section>
@endif
