/*
 * Tema principal para o site Fala Brasil.
 * Utiliza cores inspiradas na bandeira brasileira e fontes modernas
 * para criar uma interface elegante e responsiva.
 */

/* Variáveis de cores e fontes para fácil manutenção */
:root {
  --primary-color: #12c76a; /* verde vibrante */
  --secondary-color: #ffd24a; /* amarelo intenso */
  --dark-bg: #050c0b; /* fundo principal escuro */
  --section-bg: #0b1516; /* fundo para seções */
  --card-bg: #0f1d1d; /* fundo de cards */
  --light-text: #f6f7f8; /* texto principal claro */
  --muted-text: #b9c0c2; /* texto secundário */
  --accent-teal: #1ad1c0; /* acento complementar */
  --body-font: 'Open Sans', sans-serif;
  --heading-font: 'Montserrat', sans-serif;
}

/* Reset básico para uma base consistente */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--body-font);
  line-height: 1.6;
  background: radial-gradient(circle at top, rgba(26, 209, 192, 0.12), transparent 45%),
    radial-gradient(circle at 20% 20%, rgba(255, 210, 74, 0.18), transparent 35%),
    var(--dark-bg);
  color: var(--light-text);
}

/* Cabeçalho fixo com sombra para destaque */
header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  background: rgba(5, 12, 11, 0.88);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  z-index: 1000;
}

header .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Ajuste do logo para usar uma imagem fornecida pelo usuário */
.logo {
  display: flex;
  align-items: center;
}

/* Ajuste a altura da imagem do logotipo para caber no cabeçalho */
.logo img {
  height: 52px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.25));
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 1.5rem;
}

nav ul li a {
  color: var(--light-text);
  text-decoration: none;
  font-weight: 500;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: color 0.3s ease, background 0.3s ease, border 0.3s ease;
}

nav ul li a:hover {
  color: var(--dark-bg);
  background: var(--secondary-color);
  border-color: rgba(255, 210, 74, 0.4);
}

/* Botão de menu para dispositivos móveis */
.menu-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--light-text);
  cursor: pointer;
}

/* Seção heroica com imagem de fundo */
.hero {
  height: 100vh;
  background-image: linear-gradient(120deg, rgba(5, 12, 11, 0.6), rgba(5, 12, 11, 0.2)),
    url('new-icone-app.jpeg');
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 80px; /* compensa o cabeçalho fixo */
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(5, 12, 11, 0.55), rgba(5, 12, 11, 0.8));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
  color: var(--light-text);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 70% 30%, rgba(18, 199, 106, 0.22), transparent 45%),
    url('new-icone-app.jpeg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: auto, min(78vw, 760px);
  opacity: 0.12;
  z-index: 2;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.04) 0,
    rgba(255, 255, 255, 0.04) 2px,
    transparent 2px,
    transparent 12px
  );
  opacity: 0.35;
  z-index: 2;
  pointer-events: none;
}

/* Logotipo exibido dentro da hero section */
.hero-logo {
  width: 200px;
  height: auto;
  margin: 0 auto 1rem auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.35));
}

.hero-logo--float {
  animation: float-logo 6s ease-in-out infinite;
}

@keyframes float-logo {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  margin-bottom: 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dark-bg);
  background: var(--secondary-color);
  font-weight: 600;
}

.hero-content h1 {
  font-size: 4.3rem;
  font-family: var(--heading-font);
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.35rem;
  margin-bottom: 2rem;
}

.btn {
  background: var(--primary-color);
  color: var(--dark-bg);
  padding: 0.8rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: background 0.3s ease, transform 0.3s ease;
}

.btn:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--light-text);
  border: 1px solid rgba(246, 247, 248, 0.4);
}

.btn-ghost:hover {
  background: rgba(246, 247, 248, 0.15);
  color: var(--light-text);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-badges {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 0.95rem;
  color: var(--muted-text);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(15, 29, 29, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-badge i {
  color: var(--secondary-color);
}

.hero-badge--tech {
  background: linear-gradient(120deg, rgba(26, 209, 192, 0.35), rgba(18, 199, 106, 0.25));
  border: 1px solid rgba(26, 209, 192, 0.55);
  color: #e9fffb;
  box-shadow: 0 0 18px rgba(26, 209, 192, 0.35);
}

.hero-badge--tech i {
  color: var(--accent-teal);
}

section {
  padding: 4rem 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Estilos de seções genéricas */
.sobre,
.funcionalidades,
.tecnologias,
.screenshots,
.como-funciona,
.privacidade,
.termos,
.contato {
  background: var(--section-bg);
}

.sobre h2,
.funcionalidades h2,
.screenshots h2,
.como-funciona h2,
.privacidade h2,
.termos h2,
.contato h2 {
  font-family: var(--heading-font);
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
  color: var(--primary-color);
}

.sobre p,
.como-funciona p,
.funcionalidades p,
.screenshots p,
.privacidade p,
.termos p,
.contato p {
  max-width: 800px;
  margin: 0 auto 1rem;
  text-align: center;
  color: var(--muted-text);
}

/* Grade de funcionalidades */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.feature {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.feature--highlight {
  background: linear-gradient(140deg, rgba(26, 209, 192, 0.12), rgba(15, 29, 29, 0.95));
  border-color: rgba(26, 209, 192, 0.35);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
}

.feature--highlight .feature-icon {
  font-size: 3.2rem;
  color: var(--accent-teal);
  text-shadow: 0 0 20px rgba(26, 209, 192, 0.55);
}

.feature--highlight h3 {
  color: #e7fff9;
}

.feature--highlight:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.5);
  border-color: rgba(26, 209, 192, 0.65);
}

/* Tecnologias */
.tecnologias {
  background: linear-gradient(120deg, rgba(5, 12, 11, 0.85), rgba(26, 209, 192, 0.08));
}

.tecnologias h2 {
  color: var(--secondary-color);
}

.tecnologias p {
  color: #d7dee0;
  max-width: 760px;
  margin: 0 auto 2rem;
  text-align: center;
}

/* Screenshots */
.screenshots {
  background: linear-gradient(120deg, rgba(26, 209, 192, 0.08), rgba(11, 21, 22, 0.96));
}

.screenshots h2 {
  color: var(--accent-teal);
}

.screenshots-lead {
  color: #cfe6e2;
  margin-bottom: 2rem;
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.4rem;
}

.shot-card {
  margin: 0;
  background: rgba(10, 20, 20, 0.92);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.42);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.shot-card:hover {
  transform: translateY(-6px);
  border-color: rgba(26, 209, 192, 0.55);
}

.shot-card img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  background: #081012;
}

.shot-card figcaption {
  padding: 1rem 1.1rem 1.2rem;
  display: grid;
  gap: 0.4rem;
}

.shot-card h3 {
  font-family: var(--heading-font);
  font-size: 1.15rem;
  color: var(--secondary-color);
}

.shot-card p {
  text-align: left;
  margin: 0;
  color: #c7d0d2;
}

@media (max-width: 768px) {
  .shot-card img {
    height: 380px;
  }
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 1rem;
}

.tech-card {
  background: var(--card-bg);
  padding: 2.2rem;
  border-radius: 16px;
  border: 1px solid rgba(26, 209, 192, 0.2);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  text-align: left;
  position: relative;
  overflow: hidden;
}

.tech-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(26, 209, 192, 0.16), transparent 60%);
  opacity: 0.8;
  pointer-events: none;
}

.tech-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(26, 209, 192, 0.18);
  border: 1px solid rgba(26, 209, 192, 0.45);
  margin-bottom: 1rem;
  color: var(--accent-teal);
  font-size: 1.6rem;
  box-shadow: 0 0 20px rgba(26, 209, 192, 0.25);
}

.tech-card h3 {
  font-family: var(--heading-font);
  font-size: 1.5rem;
  margin-bottom: 0.6rem;
  color: #e7fff9;
}

.tech-card p {
  margin: 0;
  color: #c6d0d3;
  text-align: left;
}

.feature h3 {
  font-family: var(--heading-font);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.feature p {
  color: #bbbbbb;
}

.feature:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 210, 74, 0.4);
}

/* Como funciona com cores alternadas */
.como-funciona {
  background: linear-gradient(120deg, rgba(18, 199, 106, 0.08), rgba(11, 21, 22, 0.9));
}

.como-funciona h2 {
  color: var(--secondary-color);
}

.como-funciona p {
  color: #d0d0d0;
}

/* Politica de privacidade */
.privacidade {
  background: linear-gradient(130deg, rgba(255, 210, 74, 0.08), rgba(11, 21, 22, 0.92));
}

.privacy-header {
  text-align: left;
  max-width: 960px;
  margin: 0 auto 2.5rem;
}

.privacy-kicker {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 0.75rem;
}

.privacy-header h2 {
  text-align: left;
  color: var(--secondary-color);
  margin-bottom: 0.6rem;
}

.privacy-updated {
  color: rgba(246, 247, 248, 0.7);
  font-size: 0.95rem;
  margin-bottom: 1.4rem;
}

.privacy-header p {
  text-align: left;
  color: #d6dde0;
  margin-left: 0;
}

.privacy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.privacy-card {
  background: rgba(15, 29, 29, 0.88);
  border-radius: 14px;
  padding: 1.6rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.privacy-card h3 {
  font-family: var(--heading-font);
  font-size: 1.35rem;
  color: var(--primary-color);
}

.privacy-card h4 {
  font-size: 1rem;
  color: #e9f7f1;
  margin-top: 0.5rem;
}

.privacy-card p,
.privacy-card li {
  color: #c7d0d2;
  text-align: left;
  margin: 0;
}

.privacy-card ul {
  padding-left: 1.2rem;
  display: grid;
  gap: 0.4rem;
}

.privacy-card a {
  color: var(--secondary-color);
  font-weight: 600;
  text-decoration: none;
}

.privacy-card a:hover {
  color: #ffe466;
  text-decoration: underline;
}

/* Termos de uso */
.termos {
  background: radial-gradient(circle at top right, rgba(18, 199, 106, 0.18), transparent 55%),
    linear-gradient(120deg, rgba(5, 12, 11, 0.9), rgba(255, 210, 74, 0.08));
}

.terms-header {
  text-align: left;
  max-width: 960px;
  margin: 0 auto 2.5rem;
}

.terms-kicker {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.75rem;
}

.terms-header h2 {
  text-align: left;
  color: var(--primary-color);
  margin-bottom: 0.6rem;
}

.terms-updated {
  color: rgba(246, 247, 248, 0.7);
  font-size: 0.95rem;
  margin-bottom: 1.4rem;
}

.terms-header p {
  text-align: left;
  color: #d6dde0;
  margin-left: 0;
}

.terms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.terms-card {
  background: rgba(10, 20, 20, 0.88);
  border-radius: 14px;
  padding: 1.6rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.terms-card h3 {
  font-family: var(--heading-font);
  font-size: 1.35rem;
  color: var(--secondary-color);
}

.terms-card p,
.terms-card li {
  color: #c7d0d2;
  text-align: left;
  margin: 0;
}

.terms-card ul {
  padding-left: 1.2rem;
  display: grid;
  gap: 0.4rem;
}

.terms-card a {
  color: var(--secondary-color);
  font-weight: 600;
  text-decoration: none;
}

.terms-card a:hover {
  color: #ffe466;
  text-decoration: underline;
}

/* Formulário de contato */
.contato form {
  max-width: 600px;
  margin: 2rem auto 0;
  display: flex;
  flex-direction: column;
}

.contato input,
.contato textarea {
  padding: 1rem;
  margin-bottom: 1rem;
  border: none;
  border-radius: 8px;
  background: #1f2a2f;
  color: #ffffff;
  font-size: 1rem;
}

.contato input::placeholder,
.contato textarea::placeholder {
  color: #7c8a90;
}

.contato button {
  background: var(--secondary-color);
  color: var(--dark-bg);
  padding: 0.8rem;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-family: var(--heading-font);
  cursor: pointer;
  transition: background 0.3s ease;
}

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

/* Destaque para contatos (e-mail/telefone) */
.contact-details {
  margin-top: 1rem;
}

.contact-details a,
footer a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 600;
}

.contact-details a:hover,
footer a:hover {
  color: #ffe466;
}

/* Rodapé */
footer {
  background: #081012;
  padding: 2rem 0;
  text-align: center;
}

footer p {
  color: #7c8a90;
  margin-bottom: 1rem;
}

footer .social a {
  color: var(--secondary-color);
  margin: 0 0.5rem;
  font-size: 1.3rem;
  transition: color 0.3s ease;
}

footer .social a:hover {
  color: #ffe466;
}

/* Botão flutuante de áudio */
.audio-toggle {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1001;
  background: var(--secondary-color);
  color: var(--dark-bg);
  border: none;
  border-radius: 999px;
  padding: 0.7rem 1.2rem;
  font-family: var(--heading-font);
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, background 0.2s ease;
}

.hero-content > * {
  opacity: 0;
  transform: translateY(12px);
  animation: hero-reveal 0.8s ease forwards;
}

.hero-content > *:nth-child(1) {
  animation-delay: 0.1s;
}

.hero-content > *:nth-child(2) {
  animation-delay: 0.2s;
}

.hero-content > *:nth-child(3) {
  animation-delay: 0.3s;
}

.hero-content > *:nth-child(4) {
  animation-delay: 0.4s;
}

.hero-content > *:nth-child(5) {
  animation-delay: 0.5s;
}

.hero-content > *:nth-child(6) {
  animation-delay: 0.6s;
}

@keyframes hero-reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.audio-toggle:hover {
  background: #ffe466;
  transform: translateY(-2px);
}

.audio-toggle:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

/* Responsividade */
@media (max-width: 768px) {
  nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 20px;
    background: rgba(10, 15, 18, 0.95);
    padding: 1rem;
    border-radius: 8px;
  }
  nav ul.active {
    display: flex;
  }
  .menu-toggle {
    display: block;
  }
  .hero-content h1 {
    font-size: 2.8rem;
  }
  .hero-content p {
    font-size: 1.1rem;
  }
  .hero-logo {
    width: 150px;
  }
  .hero-actions {
    flex-direction: column;
  }
  .hero-badges {
    font-size: 0.85rem;
  }
}
