<section class="relative overflow-hidden pt-28 pb-20 lg:pt-36 lg:pb-28"
         style="background: #f8fafc;"
         aria-label="Seção principal">

    {{-- Dot grid background --}}
    <div class="absolute inset-0 pointer-events-none" aria-hidden="true"
         style="background-image: radial-gradient(circle, #d1d9e6 1px, transparent 1px); background-size: 28px 28px; opacity: 0.45;"></div>

    {{-- Decorative blobs --}}
    <div class="absolute top-0 right-0 w-96 h-96 rounded-full opacity-40 pointer-events-none"
         style="background: radial-gradient(circle, rgba(37,184,126,0.25) 0%, transparent 70%); transform: translate(30%, -30%);"></div>
    <div class="absolute bottom-0 left-0 w-80 h-80 rounded-full opacity-25 pointer-events-none"
         style="background: radial-gradient(circle, rgba(30,58,95,0.18) 0%, transparent 70%); transform: translate(-30%, 30%);"></div>

    <div class="relative z-10 max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
        <div class="grid lg:grid-cols-2 gap-14 items-center">

            {{-- Left: Copy --}}
            <div class="space-y-7">

                {{-- Badge --}}
                <div class="reveal">
                    <span class="badge badge-green">
                        <span class="w-1.5 h-1.5 rounded-full animate-pulse" style="background: #25b87e;"></span>
                        Contabilidade do futuro, hoje
                    </span>
                </div>

                {{-- Headline --}}
                <div class="reveal" style="transition-delay: 0.08s;">
                    <h1 class="display-xl">
                        Contabilidade <span class="text-gradient-green">inteligente</span><br>
                        para empresas que<br>
                        querem <span style="color: #25b87e;">crescer.</span>
                    </h1>
                </div>

                {{-- Subheadline --}}
                <div class="reveal" style="transition-delay: 0.16s;">
                    <p class="text-lg leading-relaxed max-w-xl" style="color: #565656;">
                        Transformamos burocracia em estratégia com
                        <strong style="color: #1e3a5f;">tecnologia</strong>,
                        <strong style="color: #1e3a5f;">automação</strong> e
                        atendimento consultivo de alto padrão.
                    </p>
                </div>

                {{-- CTAs --}}
                <div class="reveal flex flex-col sm:flex-row gap-3" style="transition-delay: 0.24s;">
                    <a href="{{ route('contato') }}" class="btn-primary">
                        Abrir minha empresa
                        <svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 7l5 5m0 0l-5 5m5-5H6"/>
                        </svg>
                    </a>
                    <a href="https://wa.me/556332197100" target="_blank" rel="noopener"
                       class="btn-secondary">
                        <svg class="w-4 h-4" style="color: #25D366;" fill="currentColor" viewBox="0 0 24 24">
                            <path d="M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413Z"/>
                        </svg>
                        Falar com especialista
                    </a>
                </div>

                {{-- Trust indicators --}}
                <div class="reveal flex flex-wrap items-center gap-6 pt-2" style="transition-delay: 0.32s;">
                    @php
                        $trust = [
                            '+30 anos de experiência',
                            'Atendimento nacional',
                            '100% digital',
                        ];
                    @endphp
                    @foreach($trust as $item)
                        <div class="flex items-center gap-2">
                            <svg class="w-4 h-4 flex-shrink-0" style="color: #25b87e;" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2.5" d="M5 13l4 4L19 7"/>
                            </svg>
                            <span class="text-sm font-medium" style="color: #4b5563;">{{ $item }}</span>
                        </div>
                    @endforeach
                </div>
            </div>

            {{-- Right: Dashboard Mockup --}}
            <div class="reveal-right relative" style="transition-delay: 0.16s;">
                <div class="relative animate-float-slow">

                    {{-- Main Dashboard Card --}}
                    <div class="dashboard-widget p-6 rounded-2xl">
                        {{-- Dashboard header --}}
                        <div class="flex items-center justify-between mb-5">
                            <div>
                                <p class="text-xs font-medium uppercase tracking-wider" style="color: #94a3b8;">Dashboard Financeiro</p>
                                <p class="font-bold text-lg mt-0.5" style="color: #1e3a5f;">Visão Geral</p>
                            </div>
                            <span class="badge badge-green">
                                <span class="w-1.5 h-1.5 rounded-full animate-pulse" style="background: #25b87e;"></span>
                                Ao vivo
                            </span>
                        </div>

                        {{-- Metric rows --}}
                        @php
                            $dashMetrics = [
                                ['label' => 'Faturamento Mensal', 'value' => 'R$ 248.500', 'change' => '+12,4%'],
                                ['label' => 'Imposto Economizado', 'value' => 'R$ 31.200',  'change' => '-18,2%'],
                                ['label' => 'Lucro Líquido',       'value' => 'R$ 89.300',  'change' => '+8,7%'],
                            ];
                        @endphp
                        <div class="space-y-2.5 mb-5">
                            @foreach($dashMetrics as $metric)
                                <div class="flex items-center justify-between p-3 rounded-xl" style="background: #f8fafc; border: 1px solid #e2e8f0;">
                                    <div>
                                        <p class="text-xs" style="color: #94a3b8;">{{ $metric['label'] }}</p>
                                        <p class="font-semibold text-sm mt-0.5" style="color: #1e3a5f;">{{ $metric['value'] }}</p>
                                    </div>
                                    <span class="badge badge-green text-xs">{{ $metric['change'] }}</span>
                                </div>
                            @endforeach
                        </div>

                        {{-- Mini chart --}}
                        <div class="space-y-2">
                            <p class="text-xs uppercase tracking-wider" style="color: #94a3b8;">Performance Trimestral</p>
                            <div class="flex items-end gap-1.5 h-14">
                                @php $bars = [40, 65, 45, 80, 60, 90, 75, 95, 70, 88, 92, 100]; @endphp
                                @foreach($bars as $i => $bar)
                                    <div class="flex-1 rounded-t transition-all duration-500"
                                         style="height: {{ $bar }}%; background: linear-gradient(to top, #25b87e, #1e9b68); opacity: {{ 0.4 + ($i / count($bars)) * 0.6 }};"></div>
                                @endforeach
                            </div>
                        </div>
                    </div>

                    {{-- Floating notification card --}}
                    <div class="absolute -top-4 -right-4 dashboard-widget px-4 py-3 rounded-xl animate-float"
                         style="animation-delay: 0.8s; min-width: 190px;">
                        <div class="flex items-center gap-3">
                            <div class="w-8 h-8 rounded-lg flex items-center justify-center flex-shrink-0"
                                 style="background: #e8f8f1;">
                                <svg class="w-4 h-4" style="color: #25b87e;" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                                    <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 7h8m0 0v8m0-8l-8 8-4-4-6 6"/>
                                </svg>
                            </div>
                            <div>
                                <p class="text-xs font-semibold" style="color: #1e3a5f;">Imposto reduzido</p>
                                <p class="text-xs" style="color: #94a3b8;">Economia de R$ 8.400</p>
                            </div>
                        </div>
                    </div>

                    {{-- Floating status card --}}
                    <div class="absolute -bottom-4 -left-4 dashboard-widget px-4 py-3 rounded-xl animate-float"
                         style="animation-delay: 1.6s; min-width: 165px;">
                        <div class="flex items-center gap-2">
                            <div class="w-7 h-7 rounded-lg flex items-center justify-center"
                                 style="background: #eff6ff;">
                                <svg class="w-3.5 h-3.5" style="color: #2563eb;" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                                    <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"/>
                                </svg>
                            </div>
                            <div>
                                <p class="text-xs font-semibold" style="color: #1e3a5f;">Obrigações em dia</p>
                                <p class="text-xs" style="color: #25b87e;">Tudo sincronizado</p>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</section>
