@php
    $variant = $variant ?? 'default';
    $heroUrl = $content['hero_image_url'] ?? null;
@endphp

@if ($heroUrl)
    <div class="home-hero-image home-hero-image-{{ $variant }}">
        <img src="{{ $heroUrl }}" alt="{{ \App\Support\HomepageSettings::plainText($content['headline'] ?? config('app.name')) }}" loading="lazy">
    </div>
@else
    <div class="home-hero-fallback home-hero-fallback-{{ $variant }}">
        <div class="home-hero-fallback-inner">
            <div class="home-hero-fallback-badge">
                <i class="bi bi-stars"></i>
                <span>Platform preview</span>
            </div>
            <div class="home-hero-fallback-grid">
                <div class="home-hero-fallback-stat">
                    <strong>98%</strong>
                    <small>Uptime</small>
                </div>
                <div class="home-hero-fallback-stat">
                    <strong>24/7</strong>
                    <small>Support</small>
                </div>
                <div class="home-hero-fallback-stat">
                    <strong>150+</strong>
                    <small>Integrations</small>
                </div>
                <div class="home-hero-fallback-stat">
                    <strong>10k+</strong>
                    <small>Active users</small>
                </div>
            </div>
        </div>
    </div>
@endif
