/* --- VARIÁVEIS DE COR (Paleta SafraSmart) --- */
:root {
  --primary-green: #69BC39;
  --dark-green: #4A8528;
  --light-green: #E6F3DD;
  --text-dark: #333333;
  --text-grey: #7C7C7C;
  --bg-light: #F5F7F4;
  --white: #FFFFFF;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

/* --- HEADER --- */
header {
  background-color: var(--white);
  padding: 1.5rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.6rem;
  font-weight: 700;
  color: #8BC34A;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s;
}

.logo:hover {
  transform: scale(1.05);
}

/* Ajuste para o logo caso seja uma imagem */
.logo img.navbar-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

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

nav a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: color 0.3s;
}

nav a:hover {
  color: var(--primary-green);
}

.btn-cta {
  background-color: var(--primary-green);
  color: var(--white);
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  display: inline-block;
}

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

/* --- HERO SECTION --- */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5rem 5%;
  background: linear-gradient(135deg, var(--bg-light) 0%, var(--white) 100%);
  min-height: 80vh;
  gap: 3rem;
}

.hero-text {
  flex: 1;
  max-width: 600px;
}

.hero-text h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.hero-text h1 span {
  color: var(--primary-green);
}

.hero-text p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-grey);
  margin-bottom: 2.5rem;
}

.store-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-store {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background-color: #111;
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 12px;
  text-decoration: none;
  transition: transform 0.2s;
}

.btn-store:hover {
  transform: translateY(-3px);
}

.btn-store small {
  display: block;
  font-size: 0.7rem;
  font-weight: 300;
}

.btn-store strong {
  font-size: 1.1rem;
}

.hero-img {
  flex: 1;
  display: flex;
  justify-content: center;
  position: relative;
}

/* --- MOCKUP DO CELULAR (CORRIGIDO) --- */
.phone-mockup {
  width: 300px;
  height: 600px;
  background: #000;
  border-radius: 40px;
  border: 8px solid #333;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(105, 188, 57, 0.3); /* Sombra verde */
}

/* Removemos o background-image daqui pois estamos usando <img> no HTML */
.phone-screen-container {
  width: 100%;
  height: 100%;
  background: #000;
  border-radius: 30px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- FEATURES SECTION --- */
.features {
  padding: 5rem 5%;
  background-color: var(--white);
  text-align: center;
}

.features h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  margin-bottom: 3rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.feature-card {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: 20px;
  border: 1px solid #eee;
  transition: all 0.3s;
  text-align: left;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  border-color: var(--primary-green);
}

.icon-box {
  width: 60px;
  height: 60px;
  background-color: var(--light-green);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.icon-box i {
  font-size: 1.5rem;
  color: var(--primary-green);
}

.feature-card h3 {
  margin-bottom: 1rem;
  color: var(--text-dark);
  font-size: clamp(1.1rem, 2vw, 1.3rem);
}

.feature-card p {
  color: var(--text-grey);
  font-size: clamp(0.9rem, 1.5vw, 0.95rem);
}

/* --- CTA FINAL --- */
.cta-section {
  background-color: #1A1A1A;
  color: var(--white);
  padding: 5rem 5%;
  text-align: center;
}

.cta-section h2 {
  margin-bottom: 2rem;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

/* --- FOOTER --- */
footer {
  background-color: var(--white);
  padding: 2rem 5%;
  text-align: center;
  color: var(--text-grey);
  border-top: 1px solid #eee;
}

.footer-link {
  color: var(--text-grey);
  margin: 0 10px;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-link:hover {
  color: var(--primary-green);
}

/* ============================================ */
/* RESPONSIVIDADE TOTAL */
/* ============================================ */

/* Tablets (768px - 1024px) */
@media (max-width: 1024px) {
  header {
    padding: 1.2rem 4%;
  }

  .hero {
    padding: 4rem 4%;
    gap: 2rem;
  }

  .phone-mockup {
    width: 250px;
    height: 500px;
    border-width: 8px;
  }

  .phone-screen-container {
    border-radius: 26px;
  }

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

/* Mobile Grande (481px - 768px) */
@media (max-width: 768px) {
  header {
    padding: 1rem 4%;
    flex-wrap: wrap;
    gap: 1rem;
  }

  nav {
    order: 3;
    width: 100%;
    margin-top: 1rem;
  }

  nav ul {
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
  }

  .logo {
    font-size: 1.4rem;
  }

  .logo img.navbar-logo {
    width: 45px;
    height: 45px;
  }

  .btn-cta {
    padding: 0.7rem 1.2rem;
    font-size: 0.9rem;
  }

  .hero {
    flex-direction: column;
    text-align: center;
    padding: 3rem 4%;
    min-height: auto;
  }

  .hero-text {
    max-width: 100%;
  }

  .hero-text h1 {
    margin-bottom: 1rem;
  }

  .hero-text p {
    margin-bottom: 2rem;
  }

  .store-buttons {
    justify-content: center;
  }

  .phone-mockup {
    width: 220px;
    height: 440px;
    border-width: 7px;
  }

  .phone-screen-container {
    border-radius: 24px;
  }

  .features {
    padding: 3rem 4%;
  }

  .features h2 {
    margin-bottom: 2rem;
  }

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

  .cta-section {
    padding: 3rem 4%;
  }
}

/* Mobile Pequeno (até 480px) */
@media (max-width: 480px) {
  header {
    padding: 1rem 3%;
  }

  .logo {
    font-size: 1.2rem;
  }

  .logo img.navbar-logo {
    width: 40px;
    height: 40px;
  }

  nav ul {
    gap: 1rem;
    font-size: 0.9rem;
  }

  .btn-cta {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }

  .hero {
    padding: 2rem 3%;
  }

  .hero-text h1 {
    font-size: 1.8rem;
  }

  .hero-text p {
    font-size: 0.95rem;
  }

  .store-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  .btn-store {
    width: 100%;
    justify-content: center;
    padding: 1rem;
  }

  .phone-mockup {
    width: 200px;
    height: 400px;
    border-width: 6px;
  }

  .phone-screen-container {
    border-radius: 22px;
  }

  .features {
    padding: 2.5rem 3%;
  }

  .feature-card {
    padding: 1.5rem;
  }

  .icon-box {
    width: 50px;
    height: 50px;
  }

  .icon-box i {
    font-size: 1.3rem;
  }

  .cta-section {
    padding: 2.5rem 3%;
  }

  footer {
    padding: 1.5rem 3%;
    font-size: 0.9rem;
  }
}
/* --- PÁGINAS LEGAIS (Termos e Privacidade) --- */
.legal-main {
  padding: 4rem 5%;
  background-color: var(--white);
  min-height: 80vh;
}

.legal-container {
  max-width: 800px;
  margin: 0 auto;
}

.legal-container h1 {
  font-size: 2.5rem;
  color: var(--primary-green);
  margin-bottom: 2rem;
  text-align: center;
}

.legal-container h2 {
  font-size: 1.5rem;
  color: var(--text-dark);
  margin-top: 2rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--light-green);
  padding-bottom: 0.5rem;
}

.legal-container p, .legal-container li {
  color: var(--text-grey);
  margin-bottom: 1rem;
  text-align: justify;
}

.legal-container ul {
  margin-left: 2rem;
  margin-bottom: 1rem;
}

.last-updated {
  display: block;
  text-align: center;
  color: #999;
  font-size: 0.9rem;
  margin-bottom: 3rem;
}
