/* ============================================
   VARIÁVEIS CSS
   ============================================ */
:root {
  /* Cores Principais */
  --primary: #0f7cbf;
  --primary-light: #3fa3e5;

  /* Cores de Ação */
  --cta: #22c55e;
  --cta-hover: #16a34a;

  /* Cores Neutras */
  --accent-dark: #1e293b;
  --accent-light: #e2e8f0;
  --gray-dark: #475569;
  --gray-medium: #6b7280;
  --gray-light: #9ca3af;

  /* Cores de Background */
  --bg-dark: #0a0a0a;
  --bg-light: #f6f7f6;
  --bg-footer: #1f2937;
  --bg-footer-border: #374151;

  /* Cores de Estado */
  --success: #22c55e;
  --error: #dc2626;
  --white: #ffffff;

  /* Espaçamentos */
  --spacing-xs: 5px;
  --spacing-sm: 10px;
  --spacing-md: 20px;
  --spacing-lg: 40px;
  --spacing-xl: 60px;
  --spacing-2xl: 80px;
  --spacing-3xl: 100px;

  /* Containers */
  --container-max: 1200px;

  /* Transições */
  --transition: 0.3s ease;

  /* Tipografia */
  --font-family: "Inter", sans-serif;
  --line-height-base: 1.6;
  --line-height-tight: 1.2;
}

/* ============================================
   RESET E BASE
   ============================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  line-height: var(--line-height-base);
  color: var(--gray-dark);
  background-color: var(--bg-light);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ============================================
   UTILITÁRIOS
   ============================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.flex-gap-sm {
  display: flex;
  gap: var(--spacing-sm);
}

/* ============================================
   COMPONENTES - CTA BUTTON
   ============================================ */
.cta {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  background: var(--cta);
  border-radius: 12px;
  transition: all var(--transition);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
  animation: pulse 1.8s ease-in-out infinite;
  cursor: pointer;
}

.cta:hover {
  background: var(--cta-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
}

.cta__icon {
  height: 20px;
  width: auto;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
  }
  50% {
    transform: scale(1.03);
    box-shadow: 0 6px 18px rgba(34, 197, 94, 0.45);
  }
}

/* ============================================
   SEÇÕES - HERO
   ============================================ */
.hero {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-sm);
  padding: 30px var(--spacing-md) var(--spacing-2xl);
  flex-direction: row-reverse;
}

.hero__image-wrapper {
  max-width: 650px;
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.hero__image {
  height: 90vw;
  max-height: 400px;
  width: auto;
}

.hero__content {
  display: flex;
  flex-direction: column;
  max-width: 550px;
}

.hero__title {
  font-size: clamp(30px, 4vw, 40px);
  line-height: clamp(35px, 4vw, 45px);
  font-weight: 800;
  text-align: left;
}

.hero__title--primary {
  color: var(--primary);
  margin-bottom: var(--spacing-xs);
}

.hero__title--secondary {
  color: var(--primary-light);
  margin-bottom: 15px;
}

.hero__description {
  font-size: clamp(15px, 4vw, 16px);
  line-height: 25px;
  margin-bottom: var(--spacing-md);
}

.hero__cta-wrapper {
  display: flex;
  margin-bottom: var(--spacing-md);
}

.hero__feature {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.hero__feature-icon {
  height: 20px;
  width: auto;
  flex-shrink: 0;
}

.hero__feature-text {
  font-size: clamp(15px, 4vw, 16px);
}

/* ============================================
   SEÇÕES - PROBLEMA
   ============================================ */
.problem {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 50px;
  padding: 30px var(--spacing-md) var(--spacing-2xl);
  margin-bottom: 50px;
}

.problem__title-wrapper {
  width: 100%;
  margin-bottom: -20px;
}

.problem__title {
  font-size: clamp(30px, 4vw, 40px);
  font-weight: 800;
  color: var(--primary);
  text-align: center;
}

.problem__content {
  max-width: 550px;
}

.problem__text {
  font-size: clamp(16px, 4vw, 18px);
  line-height: clamp(30px, 4vw, 35px);
}

.problem__icon {
  height: 20px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
}

.problem__image {
  height: 90vw;
  max-height: 400px;
  max-width: 450px;
}

/* ============================================
   SEÇÕES - COMO FUNCIONA
   ============================================ */
.how-it-works {
  padding: 0 var(--spacing-md);
  margin-bottom: 50px;
}

.how-it-works__title {
  font-size: clamp(30px, 4vw, 40px);
  font-weight: 800;
  color: var(--primary);
  text-align: center;
  margin-bottom: 40px;
}

.steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--spacing-md);
  margin-top: var(--spacing-xl);
}

.step {
  flex: 1 1 300px;
  max-width: 350px;
  padding: var(--spacing-lg) 24px;
  text-align: center;
}

.step__number {
  width: 60px;
  height: 60px;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--white);
  background: var(--primary);
  border-radius: 50%;
}

.step__title {
  font-size: clamp(20px, 4vw, 20px);
  font-weight: 600;
  color: var(--accent-dark);
  margin-bottom: var(--spacing-xs);
}

.step__description {
  font-size: clamp(15px, 4vw, 16px);
  color: var(--gray-medium);
  line-height: var(--line-height-base);
}

/* ============================================
   SEÇÕES - CTA FINAL
   ============================================ */
.final-cta {
  padding: var(--spacing-3xl) 0;
  background: linear-gradient(135deg, var(--primary) 0%, #0c5a8f 100%);
  color: var(--white);
  text-align: center;
}

.final-cta__title {
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 700;
  margin-bottom: 16px;
}

.final-cta__subtitle {
  font-size: clamp(18px, 4vw, 24px);
  margin-bottom: var(--spacing-lg);
  opacity: 0.95;
}

.final-cta__button-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: var(--spacing-md);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: var(--spacing-xl) 0 var(--spacing-lg);
  background: var(--bg-footer);
  color: var(--gray-light);
  text-align: center;
}

.footer__brand {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--white);
}

.footer__description {
  font-size: 1.1rem;
  line-height: var(--line-height-base);
  margin-bottom: 32px;
}

.footer__copyright {
  font-size: 0.95rem;
  padding-top: 32px;
  border-top: 1px solid var(--bg-footer-border);
}

/* ============================================
   MEDIA QUERIES
   ============================================ */
@media screen and (min-width: 840px) {
  /* Hero */
  .hero {
    padding: var(--spacing-2xl) var(--spacing-md);
    gap: 50px;
  }

  .hero__content {
    width: 35vw;
    max-width: 650px;
  }

  .hero__image {
    height: 50vw;
    max-height: 500px;
  }

  /* Problem */
  .problem {
    gap: 0;
  }

  .problem__title-wrapper {
    margin-bottom: 50px;
  }

  .problem__content {
    width: 45vw;
    max-width: 650px;
  }

  .problem__image {
    height: 50vw;
    max-height: 500px;
  }
}
