:root {
  --primary-purple: #8930B0;
  --light-purple: #D97DFF;
  --dark-text: #422343;
  --background: #FFF3FA;
  --light-background: #FDE7F9;
  --success-green: #00C853;
  --neon-green: #00FF88;
  --white: #FFFFFF;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Manrope', sans-serif;
  background-color: var(--background);
  color: var(--dark-text);
  line-height: 1.6;
}

/* NAVBAR */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 5%;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-purple);
  letter-spacing: -0.5px;
}

/* BUTTONS */
a {
  text-decoration: none;
}

.btn-primary {
  background-color: var(--light-background);
  color: var(--primary-purple);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--light-purple);
  color: var(--white);
}

.btn-gradient {
  background: linear-gradient(135deg, var(--primary-purple), var(--light-purple));
  color: var(--white);
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: inline-block;
}

.btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(137, 48, 176, 0.2);
}

.btn-outline {
  border: 2px solid var(--primary-purple);
  color: var(--primary-purple);
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  display: inline-block;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background-color: var(--primary-purple);
  color: var(--white);
}

/* HERO SECTION */
.hero {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 4rem 5%;
  max-width: 1200px;
  margin: 0 auto;
  min-height: calc(100vh - 80px);
  gap: 2rem;
}

.hero-content {
  flex: 1.2;
  max-width: 600px;
  z-index: 2;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--primary-purple);
  letter-spacing: -1px;
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-visual {
  flex: 0.8;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
  position: relative;
}

/* PHONE MOCKUP */
.phone-mockup {
  width: min(320px, 80vw);
  height: auto;
  aspect-ratio: 9 / 18.5;
  background-color: var(--white);
  border-radius: clamp(20px, 5vw, 40px);
  box-shadow: 0 25px 50px rgba(66, 35, 67, 0.15);
  border: clamp(4px, 1vw, 8px) solid var(--light-background);
  position: relative;
  overflow: hidden;
  transform: rotateY(-5deg) rotateX(5deg);
  transition: transform 0.5s ease;
  font-size: 0.9em; /* Escala o conteúdo interno proporcionalmente */
}

/* Escalonamento do conteúdo interno do celular */
@media (max-width: 1000px) {
  .phone-mockup {
    font-size: 0.8em;
  }
}

.phone-mockup:hover {
  transform: rotateY(0deg) rotateX(0deg);
}

.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 35%;
  height: 4%;
  background-color: var(--light-background);
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
  z-index: 10;
}

.app-screen {
  padding: 12% 8% 8%;
  height: 100%;
  background-color: #FAFAFA;
  display: flex;
  flex-direction: column;
}

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.greeting {
  font-weight: 800;
  font-size: 1.2rem;
}

.avatar {
  width: 40px;
  height: 40px;
  background-color: var(--light-purple);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.app-balance-card {
  background: linear-gradient(135deg, var(--primary-purple), var(--light-purple));
  color: var(--white);
  padding: 1.25rem;
  border-radius: 20px;
  margin-bottom: 1rem;
  box-shadow: 0 10px 20px rgba(137, 48, 176, 0.2);
}

.app-balance-card p {
  font-size: 0.8rem;
  margin-bottom: 0.25rem;
  opacity: 0.9;
}

.app-balance-card h2 {
  font-size: 1.75rem;
}

.app-growth-card {
  background-color: var(--white);
  padding: 1rem;
  border-radius: 20px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 10px 20px rgba(137, 48, 176, 0.05);
}

.growth-icon {
  width: 40px;
  height: 40px;
  background-color: rgba(0, 255, 136, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.growth-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.growth-title {
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--dark-text);
}

.growth-value {
  text-align: right;
  display: flex;
  flex-direction: column;
}

.v-amount {
  color: var(--success-green);
  font-weight: 900;
  font-size: 1.1rem;
}

.v-label {
  color: var(--success-green);
  font-size: 0.55rem;
  font-weight: 900;
  letter-spacing: 1px;
}

.app-section h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.task-item {
  background-color: var(--white);
  padding: 1rem;
  border-radius: 15px;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.task-info {
  display: flex;
  flex-direction: column;
}

.task-title {
  font-weight: 600;
  font-size: 0.95rem;
}

.task-reward {
  color: var(--success-green);
  font-size: 0.85rem;
  font-weight: bold;
}

.task-check {
  width: 24px;
  height: 24px;
  border: 2px solid var(--light-background);
  border-radius: 50%;
}

/* FEATURES SECTION */
.features-section {
  background-color: var(--white);
  padding: 5rem 5%;
  text-align: center;
}

.features-section h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 3rem;
  color: var(--primary-purple);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background-color: var(--background);
  padding: 2.5rem;
  border-radius: 20px;
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

/* CTA SECTION */
.cta-section {
  padding: 6rem 5%;
  background: linear-gradient(135deg, var(--light-background), var(--background));
  text-align: center;
}

.cta-container {
  max-width: 600px;
  margin: 0 auto;
}

.cta-container h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
  color: var(--primary-purple);
}

.waitlist-form {
  margin-top: 2rem;
  display: flex;
  gap: 0.5rem;
}

.waitlist-form input {
  flex: 1;
  padding: 1rem 1.5rem;
  border: 2px solid var(--light-purple);
  border-radius: 50px;
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  min-width: 0; /* Impede que o input quebre o flex no mobile */
}

.waitlist-form input:focus {
  border-color: var(--primary-purple);
}

/* FOOTER */
footer {
  text-align: center;
  padding: 2rem;
  background-color: var(--white);
  color: var(--dark-text);
  opacity: 0.7;
}

/* RESPONSIVE OVERRIDES */
@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 2rem;
    gap: 4rem;
  }
  
  .hero-content {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .hero-buttons {
    justify-content: center;
  }

  .hero-visual {
    width: 100%;
    order: 2;
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: 1rem 5%;
  }

  .logo {
    font-size: 1.2rem;
  }

  .btn-primary {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }

  .waitlist-form {
    flex-direction: column;
    gap: 1rem;
  }

  .waitlist-form button {
    width: 100%;
  }

  .feature-card {
    padding: 1.5rem;
  }
}