<?php
declare(strict_types=1);
session_start();

if ($_SERVER['REQUEST_METHOD'] === 'POST') {
    $_SESSION = [];
    session_regenerate_id(true);
    header('Location: wizard.php?step=1');
    exit;
}
?>
<!doctype html>
<html lang="pt-br">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Gerador de Orçamento Profissional Climatiza</title>
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap" rel="stylesheet">
    <link rel="stylesheet" href="assets/css/style.css">
</head>
<body class="landing-body">
    <main class="landing-container">
        <section class="hero-card">
            <div class="badge">Climatiza • Sistema Web</div>
            <h1>Gerador de Orçamento Profissional Climatiza</h1>
            <p class="hero-text">
                Crie orçamentos profissionais, personalize serviços, visualize em tempo real
                e exporte em PDF com um fluxo simples, bonito e responsivo.
            </p>

            <div class="hero-grid">
                <div class="hero-feature">3 modelos prontos</div>
                <div class="hero-feature">Wizard em 5 etapas</div>
                <div class="hero-feature">Preview antes do PDF</div>
                <div class="hero-feature">Compatível com celular</div>
            </div>

            <form method="post" class="hero-actions">
                <button type="submit" class="btn btn-primary btn-lg">Começar agora</button>
                <a href="wizard.php?step=1" class="btn btn-secondary btn-lg">Continuar assistente</a>
            </form>
        </section>
    </main>
</body>
</html>
