/* ================= DESIGN SYSTEM ================= */

:root {
  /* marca */
  --primary-dark: #0d1728;
  /* neutros */
  --white: #ffffff;
  --black: #000000;
  /* cinzas elegantes */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-300: #d1d5db;
  --gray-600: #4b5563;
  --gray-900: #111827;
  /* acento */
  --accent-soft: rgba(13, 23, 40, 0.08);
}

/* ================= BASE ================= */

html,
body {
  scroll-behavior: smooth;
  /* overflow-x: hidden !important; */
}

body {
  background: var(--white);
  color: var(--gray-900);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Normalização de Inputs de Data no Mobile */

input[type="date"] {
  position: relative;
  -webkit-appearance: none;
  -moz-appearance: none;
       appearance: none;
}

/* Forçar cor preta no texto selecionado em alguns navegadores mobile */

input[type="date"]::-webkit-datetime-edit {
  color: #111827;
}

/* Placeholder fake se o campo estiver vazio (alguns navegadores escondem o texto) */

input[type="date"]:invalid::-webkit-datetime-edit {
  color: #9ca3af;
}

/* ================= HEADER ================= */

header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 60;
  /* Glassmorphism */
  background-color: rgba(13, 23, 40, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.header-hidden {
  transform: translateY(-100%);
}

.header-scrolled {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
}

/* compatibilidade tailwind */

.bg-primary {
  background-color: var(--primary-dark);
}

/* navegação */

.nav-link {
  color: var(--white);
  font-weight: 500;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.nav-link:hover {
  opacity: 1;
}

/* botões header */

.header-btn-primary {
  background-color: var(--white);
  color: var(--primary-dark);
  font-weight: 600;
  padding: 0.6rem 1.4rem;
  border-radius: 9999px;
  transition: all 0.25s ease;
}

.header-btn-primary:hover {
  background-color: var(--gray-100);
}

.header-btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: var(--white);
  font-weight: 500;
  padding: 0.6rem 1.4rem;
  border-radius: 9999px;
  transition: all 0.25s ease;
}

.header-btn-secondary:hover {
  background-color: var(--white);
  color: var(--primary-dark);
}

@media (max-width: 768px) {
  .header-btn-primary,
  .header-btn-secondary {
    padding: 0.5rem 0.8rem;
    font-size: 0.85rem;
  }
}

/* ================= HERO ================= */

.hero {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(13, 23, 40, 0.65) 0%,
      rgba(13, 23, 40, 0.85) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  text-align: center;
}

.hero-title {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 1.2rem;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--gray-100);
  margin: 0 auto 2.2rem;
  max-width: 36rem;
}

/* ações hero */

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

@media (min-width: 768px) {
  .hero-actions {
    flex-direction: row;
    justify-content: center;
  }
}

/* ================= BOTÕES ================= */

.btn-primary {
  background: var(--primary-dark);
  color: var(--white);
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-primary:hover {
  background: #0b1322;
  transform: translateY(-1px);
}

.btn-link {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  opacity: 0.8;
}

.btn-link:hover {
  opacity: 1;
  text-decoration: underline;
}

/* ================= ANIMAÇÕES ================= */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ================= COMO FUNCIONA ================= */

#como-funciona .step {
  opacity: 0.35;
  transition: opacity 0.35s ease;
}

#como-funciona .step.active {
  opacity: 1;
}

#como-funciona .step-circle {
  background-color: var(--gray-300);
  transition: background-color 0.3s ease;
  flex-shrink: 0;
}

#como-funciona .step-circle.active {
  background-color: var(--primary-dark);
}

/* desktop */

@media (min-width: 768px) {
  #como-funciona .timeline-line {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: var(--gray-300);
    transform: translateY(-50%);
    z-index: 0;
  }

  #como-funciona .progress-line {
    position: absolute;
    left: 0;
    top: 50%;
    height: 1px;
    background: var(--primary-dark);
    transform: translateY(-50%);
    width: 0%;
    transition: width 0.4s ease;
    z-index: 1;
  }

  #como-funciona .step {
    text-align: center;
  }

  #como-funciona .step-circle {
    margin: 0 auto;
    position: relative;
    z-index: 2;
  }
}

/* mobile */

@media (max-width: 767px) {
  #como-funciona {
    padding: 4rem 0;
  }

  #como-funciona .grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  #como-funciona .step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    text-align: left;
    opacity: 1;
  }

  #como-funciona .timeline-line,
  #como-funciona .progress-line {
    display: none;
  }
}