@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');
@import url('./variables.css');

/* Reset e Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-center {
  text-align: center;
}

.hidden {
  display: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 700;
}

.highlight {
  color: var(--primary);
  position: relative;
  display: inline-block;
}

/* Header */
.header {
  padding: 1rem 0;
  text-align: center;
  background-color: #F5F5F5;
  position: sticky;
  top: 0;
  z-index: 100;
  
}

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

.logo {
  height: 40px;
  width: auto;
  object-fit: contain;
}

/* Components */
.badge {
  display: inline-block;
  background-color: var(--bg-body);
  color: var(--text-muted);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1rem;
  border: 1px solid #e5e7eb;
}

/* Hero Section */
.hero {
  text-align: center;
  position: relative;
  width: 100%;
  background-image: url('../images/Frame 2.png');
  background-size: 100% auto;
  background-position: center bottom;
  background-repeat: no-repeat;
}

.hero-container{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 489px;
  padding: 20px;
  width: 360px;
  margin: 0 auto;
}


.hero-title {
  font-size: 46px;
  line-height: 1.1;
  margin-bottom: 1rem;
  color: #111;
  font-weight: 500;
}

.highlight-text {
  color: var(--primary);
  border-bottom: 4px solid var(--secondary);
}

.hero-subtitle {
  color: var(--text-muted);
  margin-bottom: 8px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  font-size: 14px;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  display: inline-block;
  cursor: pointer;
  border: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.hero-image-placeholder {
  position: relative;
  z-index: 1;
  background: #f0f0f0;
  border-radius: 1rem;
  height: 300px;
  margin-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed #ccc;
}

.hero-image-placeholder span {
  color: #ccc;
}

.small-text {
  margin-top: 2rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  text-align: center;
}

@media (min-width: 768px) {
  .small-text {
    font-size: 24px;
  }

  .logos-grid img[src*="google"] {
    width: 180px;
    height: 95px;
    object-fit: contain;
  }

  .logos-grid img[src*="aws"] {
    width: 141px;
    height: 141px;
    object-fit: contain;
  }

  .logos-grid img[src*="canastra"] {
    width: 141px;
    height: 41px;
    object-fit: contain;
  }
}

/* Logos */
.logos-grid {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
  margin-top: 1rem;
  flex-wrap: wrap;
  opacity: 0.7;
  text-align: center;
}

.logo-text {
  font-weight: 700;
  color: var(--text-light);
  font-size: 1rem;
}

.logo-img {
  height: 24px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.logo-img:hover {
  opacity: 1;
}

/* Section Common */
.section-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #111;
  font-weight: 500;
}

.section-subtitle {
  color: #000;
  margin-bottom: 2rem;
  line-height: 1.6;
  font-weight: 300;
}

.highlight-text-purple {
  color: var(--secondary);
}

/* Features Section */
.features {
  padding: 3rem 0;
  text-align: center;
}

/* Filter Pills */
.filter-pills {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.pill {
  padding: 0.5rem 1.5rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  background: white;
  border: 1px solid #e5e7eb;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pill.active {
  background: linear-gradient(90deg, #9747FF 0%, #5B2B99 100%);
  color: white;
  border-color: transparent;
}

/* Feature Card */
.feature-card {
  background: white;
  border-radius: 2rem;
  padding: 2rem;
  text-align: left;
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.feature-card.agent-content {
  display: flex;
  flex-direction: column;
}

.agent-info {
  display: flex;
  flex-direction: column;
  order: 1;
}

.agent-activities {
  display: flex;
  align-items: center;
  justify-content: center;
  order: 2;
}

.agent-cta {
  order: 3;
  margin-top: 2rem;
}

.activity-image {
  max-width: 100%;
  height: auto;
  border-radius: 1rem;
}

.feature-card .agent-title {
  font-size: 48px;
  margin-bottom: 1rem;
  text-align: left;
  font-weight: 300;
}

.feature-card .agent-title .highlight {
  color: #9747FF;
}

.feature-card .agent-desc {
  font-size: 21px;
  color: #4C4C4C;
  text-align: left;
  margin-bottom: 2rem;
}

.agent-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.agent-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.agent-intro {
  font-size: 0.875rem;
  color: var(--text-muted);
  box-shadow: 0px 3.7px 7.39px 0px rgba(151, 71, 255, 0.04);
  padding: 5px 11px;
  border-radius: 100px;
}

/* Mock UI Stack */
.mock-ui-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 2rem 0;
}

.mock-ui-item {
  background: white;
  padding: 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  border: 1px solid var(--bg-body);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-main);
}

.fake-audio-wave {
  color: var(--primary);
  font-weight: 900;
  letter-spacing: 2px;
}

/* Testimonials */
.testimonials {
  padding: 3rem 0;
  text-align: center;
  overflow: hidden;
}

.testimonials-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
  max-height: 600px;
  mask-image: linear-gradient(to bottom, transparent 0%, black 5%, black 95%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 5%, black 95%, transparent 100%);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.testimonials-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  overflow: hidden;
}

/* Coluna do meio - anima de cima para baixo */
.testimonials-column-center {
  animation: slideDown 20s linear infinite;
}

/* Colunas laterais - animam de baixo para cima */
.testimonials-column-left,
.testimonials-column-right {
  animation: slideUp 20s linear infinite;
}

@keyframes slideDown {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-50%);
  }
}

@keyframes slideUp {
  0% {
    transform: translateY(-50%);
  }
  100% {
    transform: translateY(0);
  }
}

.review-card {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  text-align: left;
  width: 100%;
  flex-shrink: 0;
}

.review-text {
  font-size: 1rem;
  color: var(--text-main);
  font-weight: 500;
  margin-bottom: 1.5rem;
  line-height: 1.6;
  font-style: italic;
}

.reviewer-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.reviewer-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

.reviewer-name {
  font-weight: 700;
  color: #111;
}

.reviewer-role {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Footer CTA */
.footer-cta {
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.footer-cta .container {
  position: relative;
  z-index: 1;
}

.footer-graphic-left,
.footer-graphic-right {
  position: absolute;
  width: 80px;
  height: auto;
  opacity: 0.8;
  z-index: 0;
}

.footer-graphic-left {
  left: 1rem;
  bottom: 2rem;
  transform: rotate(15deg);
}

.footer-graphic-right {
  right: 1rem;
  bottom: 4rem;
  transform: rotate(-15deg);
}

/* Animations */
/* Animações de Scroll */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-up {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger effect - delay entre elementos */
.stagger-item {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.stagger-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Desktop Responsive */
@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }

  /* Hero */
  .hero {
    text-align: left;
    background-image: url('../images/Frame-web.png');
    background-size: auto 100%;
    background-position: center center;
    background-repeat: no-repeat;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 4rem 0;
  }

  .hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    width: 100%;
    height: auto;
    padding: 4rem 2rem;
    margin: 0 auto;
  }

  .hero .container {
    height: auto;
    width: 100%;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero-title {
    font-size: 98px;
    font-weight: 500;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
    font-size: 24px;
    text-align: center;
  }

  .hero-image-placeholder {
    margin-top: 0;
  }

  /* Logos */
  .logos-grid {
    justify-content: center;
    margin-top: 2rem;
  }

  /* Features */
  .features {
    padding: 6rem 0;
  }

  .section-title {
    font-size: 3rem;
  }

  .feature-card.agent-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem;
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
  }
  
  .feature-card.agent-content[style*="display: none"] {
    display: none !important;
  }

  .feature-card.agent-content .agent-info {
    display: flex;
    flex-direction: column;
    order: 1;
  }

  .feature-card.agent-content .agent-activities {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    order: 2;
  }

  .feature-card.agent-content .agent-cta {
    order: 3;
    margin-top: 0;
    grid-column: 1 / -1;
  }

  .feature-card.agent-content .activity-image {
    max-width: 100%;
    height: auto;
  }

  /* Testimonials */
  .testimonials-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    max-height: 500px;
  }

  .testimonials-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
  }

  .review-card {
    width: 100%;
  }

  .testimonials h2 {
    margin-bottom: 4rem;
  }

  /* Melhorar animações no desktop */
  .fade-in,
  .slide-up,
  .slide-left,
  .slide-right,
  .scale-in {
    transition-duration: 1s;
  }

  .fade-in {
    transform: translateY(50px);
  }

  .slide-up {
    transform: translateY(80px);
  }

  .slide-left {
    transform: translateX(-80px);
  }

  .slide-right {
    transform: translateX(80px);
  }

  .scale-in {
    transform: scale(0.85);
  }

  /* Animação suave para cards de agentes quando aparecem */
  .feature-card.agent-content.visible {
    animation: cardAppear 0.8s ease-out;
  }

  @keyframes cardAppear {
    0% {
      opacity: 0;
      transform: scale(0.95) translateY(20px);
    }
    100% {
      opacity: 1;
      transform: scale(1) translateY(0);
    }
  }
}

/* Lead Form Styles */
.lead-form-section {
  padding: 3rem 0;
  text-align: center;
}

.lead-form {
  max-width: 600px;
  margin: 2rem auto 0;
  background: white;
  border-radius: 2rem;
  padding: 2rem;
  box-shadow: var(--shadow-md);
  position: relative;
}

.form-page {
  display: none;
  animation: fadeIn 0.3s ease-in;
}

.form-page.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-intro {
  margin-bottom: 2rem;
}

.form-intro-text {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-style: italic;
}

.form-group {
  margin-bottom: 2rem;
  text-align: left;
}

.form-label {
  display: block;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.form-description {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: white;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.form-input::placeholder {
  color: var(--text-light);
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.radio-option {
  display: flex;
  align-items: flex-start;
  padding: 1rem;
  border: 2px solid var(--color-border);
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
  background: white;
}

.radio-option:hover {
  border-color: var(--primary-light);
  background: rgba(139, 92, 246, 0.02);
}

.radio-option input[type="radio"] {
  margin-right: 0.75rem;
  margin-top: 0.25rem;
  cursor: pointer;
  accent-color: var(--primary);
}

.radio-option input[type="radio"]:checked + .radio-content {
  color: var(--primary);
}

.radio-option input[type="radio"]:checked + .radio-content .radio-title {
  color: var(--primary);
}

.radio-option input[type="radio"]:checked {
  accent-color: var(--primary);
}

/* For browsers that support :has() */
@supports selector(:has(*)) {
  .radio-option:has(input[type="radio"]:checked) {
    border-color: var(--primary);
    background: rgba(139, 92, 246, 0.05);
  }
}

/* Fallback for browsers without :has() support */
.radio-option.checked {
  border-color: var(--primary);
  background: rgba(139, 92, 246, 0.05);
}

.scale-option.checked span {
  color: var(--primary);
}

.radio-content {
  flex: 1;
}

.radio-title {
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.radio-description {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.scale-group {
  margin-top: 1rem;
}

.scale-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.scale-inputs {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

.scale-option {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

.scale-option input[type="radio"] {
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 0.5rem;
  cursor: pointer;
  accent-color: var(--primary);
}

.scale-option span {
  font-weight: 600;
  color: var(--text-main);
  font-size: 1rem;
}

.scale-option input[type="radio"]:checked + span,
.scale-option input[type="radio"]:checked ~ span {
  color: var(--primary);
}

/* For browsers that support :has() */
@supports selector(:has(*)) {
  .scale-option:has(input[type="radio"]:checked) span {
    color: var(--primary);
  }
}

.form-navigation {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
}

.btn-secondary {
  background: white;
  color: var(--text-main);
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: var(--bg-body);
  border-color: var(--text-muted);
}

.form-next-btn,
.form-submit-btn {
  width: 100%;
  margin-top: 1rem;
}

.form-success {
  text-align: center;
  padding: 2rem 0;
}

.form-loading {
  text-align: center;
  padding: 2rem 0;
}

.form-loading p {
  color: var(--text-muted);
  font-size: 1rem;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.form-success-title {
  font-size: 2rem;
  color: var(--text-main);
  margin-bottom: 1rem;
  font-weight: 600;
}

.form-success-text {
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.6;
  font-size: 1rem;
}

.form-success-cta {
  color: var(--text-main);
  font-weight: 600;
  margin-bottom: 2rem;
  font-size: 1.125rem;
}

.form-progress {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.progress-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-border);
  transition: all 0.3s;
}

.progress-dot.active {
  background: var(--primary);
  width: 24px;
  border-radius: 4px;
}

@media (min-width: 768px) {
  .lead-form {
    padding: 3rem;
  }
  
  .form-success-title {
    font-size: 2.5rem;
  }
  
  .radio-group {
    gap: 1rem;
  }
  
  .radio-option {
    padding: 1.25rem;
  }
}