/* =====================================================================
   main.css — Estilos Globais | Alpha Diagnóstico | Dark Navy + Gold
   ===================================================================== */

/* ─── Variáveis de Design — Dark Navy + Gold ──────────────────────────── */
:root {
  /* Cores base */
  --dark:       #0A0F1E;   /* Navy mais escuro */
  --dark2:      #151B2E;   /* Navy claro (navy-light) */
  --dark3:      #1E293B;   /* Navy border / navy-muted */

  /* Dourado — identidade visual Alpha */
  --gold:       #C9A84C;
  --gold-light: #DDB96B;

  /* Texto */
  --text:       #F1F5F9;   /* slate-100 */
  --muted:      #94A3B8;   /* slate-400 */

  /* Bordas */
  --border:     rgba(201, 168, 76, 0.2);
  --border-nav: #1E293B;

  /* Semânticas */
  --success:    #10B981;   /* emerald-500 */
  --warning:    #F59E0B;   /* amber-500 */
  --danger:     #EF4444;   /* red-500 */
}

/* ─── Reset Completo ──────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--dark);
  color: var(--text);
  font-family: 'Manrope', 'DM Sans', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* ─── Dot-grid texture — fundo sutil dourado ──────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 1;
  background-image: radial-gradient(circle at 2px 2px, rgba(201,168,76,0.06) 1px, transparent 0);
  background-size: 40px 40px;
}

/* ─── Header Fixo ─────────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(10, 15, 30, 0.85);
  border-bottom: 1px solid var(--border-nav);
}

.logo {
  font-family: 'Manrope', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

.logo span {
  color: var(--gold);
}

.header-badge {
  font-family: 'Manrope', 'DM Mono', monospace, sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--border);
  padding: 6px 14px;
}

/* ─── Hero Section ────────────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
  text-align: center;
  position: relative;
  z-index: 1;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Radial glow dourado central */
#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse 80% 60% at 50% 50%,
    rgba(201, 168, 76, 0.05) 0%,
    transparent 70%
  );
}

/* Badge superior — estilo Stitch */
.hero-tag {
  display: inline-block;
  padding: 4px 16px;
  border: 1px solid rgba(201, 168, 76, 0.3);
  background: rgba(201, 168, 76, 0.05);
  font-family: 'Manrope', monospace, sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
}

#hero h1 {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

#hero h1 em {
  color: var(--gold);
  font-style: normal;
}

.hero-subtitle {
  font-family: 'Manrope', 'DM Sans', sans-serif;
  font-size: 1rem;
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto 44px;
  line-height: 1.75;
  font-weight: 300;
}

#btn-iniciar {
  background: var(--gold);
  color: var(--dark);
  font-family: 'Manrope', monospace, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 18px 52px;
  border: none;
  cursor: pointer;
  font-weight: 900;
  border-radius: 0;
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}

#btn-iniciar:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(201, 168, 76, 0.3);
}

.hero-prova {
  font-family: 'Manrope', 'DM Mono', monospace, sans-serif;
  font-size: 0.65rem;
  color: var(--muted);
  margin-top: 20px;
  letter-spacing: 0.1em;
  opacity: 0.7;
}

/* ─── Linha decorativa ────────────────────────────────────────────────── */
.hero-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
  justify-content: center;
}

.hero-divider-line {
  width: 40px;
  height: 1px;
  background: var(--border);
}

/* ─── Progress Bar ────────────────────────────────────────────────────── */
#progress-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 48px 0;
  gap: 4px;
  position: relative;
  z-index: 1;
  animation: fadeIn 0.5s ease forwards;
}

.step-dot {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Manrope', monospace, sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.4s, opacity 0.4s;
}

.step-dot.active {
  color: var(--gold);
}

.step-dot.done {
  color: var(--muted);
  opacity: 0.6;
}

.step-num {
  width: 28px;
  height: 28px;
  border: 1px solid var(--border-nav);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-family: 'Manrope', monospace, sans-serif;
  flex-shrink: 0;
  transition: border-color 0.4s, background 0.4s, color 0.4s;
}

.step-dot.active .step-num {
  border-color: var(--gold);
  background: rgba(201, 168, 76, 0.1);
  color: var(--gold);
}

.step-dot.done .step-num {
  border-color: rgba(201, 168, 76, 0.3);
  background: rgba(201, 168, 76, 0.05);
}

.step-line {
  width: 48px;
  height: 1px;
  background: var(--border-nav);
  margin: 0 4px;
  flex-shrink: 0;
}

/* ─── Container Principal do Formulário ───────────────────────────────── */
#form-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  position: relative;
  z-index: 1;
  animation: fadeIn 0.5s ease forwards;
}

/* ─── Utilitários ─────────────────────────────────────────────────────── */
.hidden {
  display: none !important;
}

/* ─── Scrollbar customizada ───────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: var(--dark2);
}

::-webkit-scrollbar-thumb {
  background: var(--gold);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold-light);
}

/* ─── Transições suaves ───────────────────────────────────────────────── */
a, button, input, select, textarea, [role="button"] {
  transition: all 0.3s ease;
}

/* ─── Animações ───────────────────────────────────────────────────────── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%       { transform: translateX(-6px); }
  40%       { transform: translateX(6px); }
  60%       { transform: translateX(-4px); }
  80%       { transform: translateX(4px); }
}

@keyframes loadingBar {
  from { width: 0%; }
  to   { width: 85%; }
}

@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 1; }
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-16px);
  }
}

/* ─── Responsivo: Mobile ──────────────────────────────────────────────── */
@media (max-width: 600px) {
  .site-header {
    padding: 16px 20px;
  }

  .header-badge {
    display: none;
  }

  #progress-bar {
    padding: 24px 16px 0;
  }

  .step-dot span {
    display: none;
  }

  .step-line {
    width: 28px;
  }
}

@media (max-width: 480px) {
  #hero {
    padding: 100px 20px 60px;
  }
}
