<?php
/**
 * AURA FARMING — Splash Screen
 */
require_once __DIR__ . '/config/config.php';
require_once __DIR__ . '/config/database.php';
require_once __DIR__ . '/includes/functions.php';

// Redireciona se já estiver logado
if (isLoggedIn()) {
    header('Location: ' . SITE_URL . '/pages/home.php');
    exit;
}

$pageTitle  = 'Bem-vindo';
$bodyClass  = 'splash-body';
$showNav    = false;
require_once __DIR__ . '/includes/header.php';
?>

<div class="splash-page">

  <!-- Logo -->
  <div class="logo-splash fade-in">
    <div class="logo-icon" style="font-size:64px;">🌀</div>
    <div class="logo-title">AURA</div>
    <div class="logo-subtitle">F A R M I N G</div>
  </div>

  <!-- Herói -->
  <div class="splash-hero fade-in fade-in-delay-1" role="img" aria-label="Personagem com aura">
    ⚡
  </div>

  <!-- Tagline -->
  <p class="splash-tagline fade-in fade-in-delay-2">
    <span class="text-cyan fw-700">Entre. Farme.</span><br>
    Expanda sua aura.
  </p>

  <!-- CTA -->
  <div style="width:100%;max-width:320px;" class="fade-in fade-in-delay-3">
    <a href="<?= SITE_URL ?>/auth/login.php" class="btn btn-primary" style="font-size:16px;padding:16px;">
      🚀 Começar agora
    </a>
  </div>

  <p class="splash-cta mt-20">
    Já tem conta? <a href="<?= SITE_URL ?>/auth/login.php">Entrar</a>
  </p>

  <!-- Anel de energia -->
  <div class="splash-ring" aria-hidden="true"></div>

</div>

<?php require_once __DIR__ . '/includes/footer.php'; ?>
