:root {
  --bg: #f8f8f8;
  --bg-claro: #fff;
  --text: #333;
  --text-claro: #444;
  --primary: #4caf50;
  --primary-dark: #388e3c;
  --accent: #ffe082;
  --font: "Inter", sans-serif;
  --shadow: rgba(0, 0, 0, 0.1);
  --border: #e0e0e0;
}

[data-theme="dark"] {
  --bg: #1a1a1a;
  --bg-claro: #2a2a2a;
  --text: #f8f8f8;
  --text-claro: #fff;
  --shadow: rgba(255, 255, 255, 0.05);
  --border: #404040;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--text);
  scroll-behavior: smooth;
  transition: background-color 0.3s ease, color 0.3s ease;
}

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

.container {
  width: 100%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  align-items: center;
  gap: 3rem;
}

.container-hero {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
}

.header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  background-color: var(--text);
  color: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
  transition: background-color 0.3s ease;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav a {
  font-weight: 600;
  transition: opacity 0.3s ease;
}

.nav a:hover {
  opacity: 0.8;
}

#btn-tema {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

#sun-icon {
  color: #ffd700;
}

#moon-icon {
  color: #000000;
}

#btn-tema:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

#btn-tema svg {
  transition: transform 0.3s ease;
}

#btn-tema:hover svg {
  transform: rotate(15deg);
}

.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}

.hero-texto {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 1.5rem;
}

.hero-texto h1 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.hero-texto p {
  font-size: 1.2rem;
  color: var(--text-claro);
  line-height: 1.6;
}

.hero-texto,
.hero-img {
  min-width: 320px;
}

.hero-img {
  max-width: 400px;
  width: 100%;
}

.btn {
  background: var(--primary);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  display: inline-block;
  transition: all 0.3s ease;
  cursor: pointer;
  font-weight: 600;
  border: none;
  font-family: inherit;
}

.btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.beneficios,
.download {
  background-color: var(--bg-claro);
  transition: background-color 0.3s ease;
}

.beneficios,
.depoimentos,
.download,
.hero {
  padding: 6rem 3rem;
}

.beneficios,
.depoimentos,
.download {
  text-align: center;
}

.beneficios h2,
.depoimentos h2,
.download h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.download-texto {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}

.cards {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--text);
  color: var(--bg);
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 20px var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  transition: all 0.3s ease;
  min-height: 80px;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px var(--shadow);
}

.usuarios {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.usuarios figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-width: 300px;
  text-align: center;
  padding: 1.5rem;
  background-color: var(--bg-claro);
  border-radius: 15px;
  box-shadow: 0 4px 15px var(--shadow);
  transition: all 0.3s ease;
}

.usuarios figure:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px var(--shadow);
}

.usuarios img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary);
}

.footer {
  text-align: center;
  padding: 2rem;
  background: var(--bg);
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.modal.show {
  display: flex;
}

.modal-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  background: var(--bg-claro);
  color: var(--text);
  padding: 2rem;
  border-radius: 15px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transform: scale(0.7);
  opacity: 0;
  transition: all 0.3s ease;
}

.modal.show .modal-content {
  transform: scale(1);
  opacity: 1;
}

.modal-content input {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.modal-content input:focus {
  outline: none;
  border-color: var(--primary);
}

#fechar-modal {
  position: absolute;
  right: 1rem;
  top: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text);
  transition: opacity 0.3s ease;
}

#fechar-modal:hover {
  opacity: 0.7;
}

.logo .texto-claro {
  fill: var(--bg);
}

.hero-img .parte-cinza {
  fill: var(--text);
  transition: fill 0.3s ease;
}

.placeholder-img {
  width: 80px;
  height: 80px;
  background: linear-gradient(45deg, var(--primary), var(--primary-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 1.5rem;
  border: 3px solid var(--primary);
}

@media (max-width: 768px) {
  .header {
    justify-content: center;
    gap: 1rem;
  }

  .hero-texto h1 {
    font-size: 2rem;
  }

  .beneficios,
  .depoimentos,
  .download,
  .hero {
    padding: 3rem 1.5rem;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .usuarios {
    flex-direction: column;
    align-items: center;
  }
}