/* ========================================
   ROBÔ FOREX - Landing Page
   Theme: Dark + Tiffany (#06EDF4)
   ======================================== */

/* ========== CSS VARIABLES ========== */
:root {
  /* Colors */
  --color-bg: #000000;
  --color-bg-elevated: #0a0a0f;
  --color-bg-card: #0d0d14;
  --color-surface: #12121a;
  
  --color-primary: #06EDF4;
  --color-primary-dark: #05c4ca;
  --color-primary-glow: rgba(6, 237, 244, 0.4);
  --color-primary-soft: rgba(6, 237, 244, 0.1);
  
  --color-text: #ffffff;
  --color-text-muted: #8a8a9a;
  --color-text-soft: #c0c0cc;
  
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-hover: rgba(6, 237, 244, 0.3);
  
  /* Typography */
  --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-family: var(--font-body);
  
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.25rem;
  --fs-2xl: 1.5rem;
  --fs-3xl: 2rem;
  --fs-4xl: 2.5rem;
  --fs-5xl: 3.5rem;
  --fs-6xl: 4.5rem;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --duration-slow: 500ms;
  
  /* Z-index */
  --z-bg: -1;
  --z-base: 1;
  --z-float: 10;
  --z-header: 100;
}

/* ========== RESET ========== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden; /* Corta elementos que saem da lateral */
}

html {
  overflow-x: hidden;
  background-color: var(--color-bg);
}

@media (max-width: 768px) {
  html, body {
    margin: 0;
    padding: 0;
  }
}

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

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

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

/* ========== UTILITIES ========== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.text-gradient {
  background: linear-gradient(135deg, var(--color-primary) 0%, #00ff88 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-4xl);
}

.section-tag {
  display: inline-block;
  padding: var(--space-xs) var(--space-md);
  background: var(--color-primary-soft);
  border: 1px solid var(--color-border-hover);
  border-radius: var(--radius-full);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-lg);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(var(--fs-3xl), 5vw, var(--fs-5xl));
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: var(--space-lg);
}

.section-subtitle {
  font-size: var(--fs-lg);
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: 700;
  border-radius: var(--radius-lg);
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: var(--color-bg);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 40px var(--color-primary-glow);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--glow {
  box-shadow: 0 0 20px var(--color-primary-glow);
  animation: pulse-glow 2.5s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 15px var(--color-primary-glow);
    transform: scale(1);
    filter: brightness(1);
  }
  50% {
    box-shadow: 0 0 30px var(--color-primary-glow), 0 0 45px rgba(0, 212, 170, 0.3);
    transform: scale(1.02);
    filter: brightness(1.1);
  }
}

.btn--large {
  padding: var(--space-lg) var(--space-2xl);
  font-size: var(--fs-lg);
}

.btn svg {
  transition: transform var(--duration-fast) var(--ease-out);
}

.btn:hover svg {
  transform: translateX(4px);
}

/* ========== HERO ========== */
.hero {
  position: relative;
  padding: var(--space-4xl) 0;
  overflow: hidden;
  min-height: 100vh;
}

@media (min-width: 769px) {
  .hero {
    min-height: 100vh;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 0;
    margin: 0;
  }
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  min-height: 100vh;
}

.hero__bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 0;
  display: none; /* Escondido por padrão, mostrado apenas no desktop */
}

/* Garantir que o background seja visível no desktop */
@media (min-width: 769px) {
  .hero__bg-img {
    display: block;
  }
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.5;
  z-index: 1;
}

.hero__glow--1 {
  width: 600px;
  height: 600px;
  background: var(--color-primary);
  top: -200px;
  right: -100px;
  animation: pulse 8s ease-in-out infinite;
}

.hero__glow--2 {
  width: 400px;
  height: 400px;
  background: #00ff88;
  bottom: -100px;
  left: -100px;
  animation: pulse 10s ease-in-out infinite reverse;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(6, 237, 244, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 237, 244, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
  z-index: 1;
}

.hero__logo {
  position: absolute;
  top: var(--space-2xl);
  left: 50%;
  transform: translateX(-50%);
  z-index: calc(var(--z-base) + 1);
  animation: fadeIn 0.8s var(--ease-out) both;
}

.hero__logo-img {
  height: 100px;
  width: auto;
  object-fit: contain;
}

.hero__image-wrapper {
  display: none; /* Escondido no desktop */
}

.hero__image {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  aspect-ratio: 3 / 4;
  margin-top: calc(var(--space-2xl) + 100px);
  z-index: var(--z-base);
  animation: fadeIn 0.8s var(--ease-out) 0.2s both;
}

.hero__image-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__content--desktop {
  display: block;
}

.hero__content--mobile {
  display: none;
}

.hero__blur {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, var(--color-bg));
  z-index: calc(var(--z-base) + 1);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: calc(var(--z-base) + 1);
  margin-top: var(--space-3xl);
  padding-bottom: var(--space-4xl);
}

.hero__content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

/* Desktop: conteúdo posicionado abaixo do queixo do homem */
@media (min-width: 769px) {
  .hero {
    min-height: 100vh;
    max-height: 100vh;
    overflow: hidden;
  }
  
  .hero__logo--desktop {
    display: none !important;
  }
  
  .hero__content--desktop {
    max-width: 90%;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    padding: 0 var(--space-lg);
    box-sizing: border-box;
  }
  
  .hero__content--desktop .hero__title {
    font-size: clamp(1.75rem, 2.5vw, 2.8rem);
    white-space: normal;
    max-width: 100%;
    margin-bottom: var(--space-sm);
    line-height: 1.2;
  }
  
  .hero__content--desktop .hero__subtitle {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: var(--space-md);
    line-height: 1.5;
    font-size: clamp(0.9rem, 1.1vw, 1.125rem);
    padding: 0 var(--space-md);
  }
  
  .hero__content--desktop .btn {
    width: 100%;
    max-width: 100%;
    padding: var(--space-md) var(--space-xl);
    font-size: clamp(1rem, 1.2vw, 1.125rem);
    justify-content: center;
  }
  
  /* Trustpilot review image - desktop */
  .hero__trustpilot--desktop {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: var(--space-lg);
    padding: 0;
  }
  
  .hero__trustpilot--desktop .hero__trustpilot-img {
    width: 100%;
    max-width: 500px;
    height: auto;
    object-fit: contain;
    display: block;
    opacity: 0.95;
  }
  
  .hero__container--desktop {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-height: 100vh;
    max-height: 100vh;
    padding-top: 35vh;
    padding-bottom: var(--space-lg);
    padding-left: var(--space-lg);
    padding-right: var(--space-lg);
    box-sizing: border-box;
    overflow: hidden;
  }
  
  /* Badge posicionado logo abaixo do queixo */
  .hero__content--desktop .hero__badge {
    margin-bottom: var(--space-sm);
    margin-top: 0;
    font-size: clamp(0.75rem, 0.9vw, 0.875rem);
  }
  
  /* Trustpilot review image - desktop */
  .hero__trustpilot--desktop {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: var(--space-lg);
    padding: 0;
  }
  
  .hero__trustpilot--desktop .hero__trustpilot-img {
    width: 100%;
    max-width: 500px;
    height: auto;
    object-fit: contain;
    display: block;
    opacity: 0.95;
  }
}

/* Desktop médio (tablets grandes e laptops pequenos) */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero__content--desktop {
    max-width: 95%;
    padding: 0 var(--space-md);
  }
  
  .hero__container--desktop {
    padding-top: 33vh;
    padding-left: var(--space-md);
    padding-right: var(--space-md);
  }
  
  .hero__content--desktop .hero__subtitle {
    padding: 0 var(--space-sm);
  }
}

/* Desktop grande */
@media (min-width: 1025px) {
  .hero__content--desktop {
    max-width: 900px;
    padding: 0;
  }
  
  .hero__container--desktop {
    padding-top: 38vh;
    padding-left: var(--space-lg);
    padding-right: var(--space-lg);
  }
  
  .hero__content--desktop .hero__subtitle {
    max-width: 700px;
    padding: 0;
  }
  
  .hero__content--desktop .btn {
    max-width: 700px;
  }
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xs) var(--space-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: var(--fs-sm);
  color: var(--color-text-soft);
  margin-bottom: var(--space-xl);
  animation: fadeInUp 0.6s var(--ease-out) both;
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  background: #00ff88;
  border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(var(--fs-4xl), 6vw, var(--fs-6xl));
  font-weight: 600;
  line-height: 1.05;
  margin-bottom: var(--space-lg);
  animation: fadeInUp 0.6s var(--ease-out) 0.1s both;
}

.hero__subtitle {
  font-size: var(--fs-lg);
  color: var(--color-text);
  margin-bottom: var(--space-2xl);
  max-width: 500px;
  animation: fadeInUp 0.6s var(--ease-out) 0.2s both;
}

.hero__content .btn {
  animation: fadeInUp 0.6s var(--ease-out) 0.3s both;
}

.hero__stats {
  display: flex;
  gap: var(--space-2xl);
  margin-top: var(--space-3xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--color-border);
  animation: fadeInUp 0.6s var(--ease-out) 0.4s both;
}

.stat__number {
  display: block;
  font-size: var(--fs-2xl);
  font-weight: 800;
  color: var(--color-primary);
}

.stat__label {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
}

/* Hero Visual */
.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  animation: fadeInRight 0.8s var(--ease-out) 0.3s both;
}

.hero__mockup {
  position: relative;
  width: 100%;
  max-width: 500px;
}

.hero__robot-img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 60px var(--color-primary-glow));
  animation: float 6s ease-in-out infinite;
}

.hero__mockup-glow {
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle, var(--color-primary-glow) 0%, transparent 70%);
  z-index: -1;
  animation: pulse 4s ease-in-out infinite;
}

/* Scroll Indicator */
.hero__scroll-indicator {
  position: absolute;
  bottom: var(--space-2xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: var(--color-text-muted);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  animation: fadeIn 1s var(--ease-out) 1s both;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--color-primary), transparent);
  animation: scrollBounce 2s ease-in-out infinite;
}

/* Floating Elements */
.floating-elements {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: var(--z-float);
}

.floating-el {
  position: absolute;
  opacity: 0.6;
}

.floating-el img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.floating-el--1 {
  top: 15%;
  left: 10%;
  animation: floatRandom1 12s ease-in-out infinite;
}

.floating-el--2 {
  top: 60%;
  right: 8%;
  animation: floatRandom2 14s ease-in-out infinite;
}

.floating-el--3 {
  bottom: 20%;
  left: 5%;
  animation: floatRandom3 10s ease-in-out infinite;
}

/* ========== BENEFITS (SEGUNDA DOBRA) ========== */
.benefits {
  padding: 0 0 var(--space-5xl) 0;
  position: relative;
  overflow: hidden;
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 0;
}

/* Remover espaçamento entre ai-forex e benefits */
.ai-forex + .benefits {
  margin-top: 0;
  padding-top: 0;
}

.benefits .container {
  padding-top: 0;
}

/* Texto centralizado */
.section-header--left {
  text-align: center;
  margin: 0 auto;
  max-width: 700px;
  padding-top: var(--space-sm);
}

/* Quando há logo antes do container, reduzir padding */
.benefits__logo-spacer + .container .section-header--left {
  padding-top: 0;
}

.section-header--left .section-subtitle {
  margin: 0 auto;
}

/* Imagem do robô - centralizada */
.benefits__robot-img {
  display: block;
  margin: var(--space-3xl) auto 0;
  width: 100%;
  max-width: 500px;
  height: auto;
  position: relative;
  z-index: var(--z-base);
}

/* Carrossel após o robô */
.benefits__carousel-bottom {
  margin: 0 auto;
  width: 100%;
}

@media (max-width: 768px) {
  .benefits__robot-img {
    max-width: 400px;
    margin-top: var(--space-2xl);
  }
}

@media (max-width: 480px) {
  .benefits__robot-img {
    max-width: 300px;
  }
}

/* ========== CARROSSEL DE FAIXAS ========== */
.benefits__carousel-wrapper {
  position: relative;
  margin: 0;
  padding: 0;
  width: 100%;
  overflow: hidden;
}

.benefits__carousel {
  display: flex;
  flex-direction: row;
  gap: 0;
  padding: 0;
  overflow: hidden;
  scroll-behavior: smooth;
  pointer-events: none;
  user-select: none;
}

.benefits__carousel-img {
  flex: 0 0 auto;
  width: 100%;
  max-width: 500px;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0;
  padding: 0;
}

/* Título da seção benefits bem próximo do carrossel */
.benefits__title-close {
  margin-top: var(--space-md);
  margin-bottom: var(--space-lg);
}

/* Quando há logo antes do container, aumentar espaçamento do título para não ficar colado */
.benefits__logo-spacer + .container .benefits__title-close {
  margin-top: var(--space-xl);
}

@media (max-width: 768px) {
  .benefits__carousel-img {
    max-width: 400px;
  }
  
  .benefits__title-close {
    margin-top: var(--space-sm);
    margin-bottom: var(--space-md);
  }
}

@media (max-width: 480px) {
  .benefits__carousel-img {
    max-width: 300px;
  }
  
  .benefits__title-close {
    margin-top: var(--space-xs);
    margin-bottom: var(--space-sm);
  }
}

.benefits__bg {
  position: absolute;
  inset: 0;
  z-index: var(--z-bg);
}

.benefits__gradient {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, var(--color-primary-soft) 0%, transparent 70%);
  filter: blur(80px);
}

.benefits__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  margin-bottom: var(--space-4xl);
}

.benefit-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.benefit-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-out);
}

.benefit-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-border-hover);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.benefit-card:hover::before {
  opacity: 1;
}

.benefit-card__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-soft);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-lg);
}

.benefit-card__icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--color-primary);
}

.benefit-card__title {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.benefit-card__text {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

.benefits__cta {
  text-align: center;
  padding: var(--space-lg) 0;
  margin: 0;
}

/* Desktop: botões grandes e centralizados */
@media (min-width: 769px) {
  .benefits__cta .btn {
    width: 100%;
    max-width: 700px;
    padding: var(--space-lg) var(--space-2xl);
    font-size: var(--fs-lg);
    justify-content: center;
  }
}

/* ========== TESTIMONIALS ========== */
.testimonials {
  padding: var(--space-xl) 0 var(--space-5xl);
}

/* Carrossel de depoimentos */
.testimonials__carousel {
  display: flex;
  gap: 16px;
  padding: 16px 24px;
  margin: 0 -24px var(--space-xl);
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  touch-action: auto; /* Permite scroll vertical da página */
}

.testimonials__carousel::-webkit-scrollbar {
  display: none;
}

/* Imagens de depoimento */
.testimonial-img {
  flex-shrink: 0;
  width: 220px;
  height: auto;
  border-radius: var(--radius-lg);
  object-fit: cover;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none; /* Permite que os eventos passem para o carrossel */
}

@media (max-width: 480px) {
  .testimonial-img {
    width: 180px;
    border-radius: var(--radius-md);
  }
}

@media (max-width: 380px) {
  .testimonial-img {
    width: 160px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
  }
}

@media (hover: hover) {
  .testimonial-img:hover {
    transform: scale(1.02);
  }
}

.testimonials__cta {
  text-align: center;
}

/* Desktop: botões grandes e centralizados */
@media (min-width: 769px) {
  .testimonials__cta .btn {
    width: 100%;
    max-width: 700px;
    padding: var(--space-lg) var(--space-2xl);
    font-size: var(--fs-lg);
    justify-content: center;
  }
}

.testimonials__cta-text {
  font-size: var(--fs-xl);
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
}

/* ========== FOOTER ========== */
.footer {
  padding: var(--space-2xl) 0;
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.footer__text {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
}

.footer__disclaimer {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  opacity: 0.6;
  max-width: 600px;
  margin: 0 auto;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% { 
    opacity: 0.5;
    transform: scale(1);
  }
  50% { 
    opacity: 0.7;
    transform: scale(1.1);
  }
}

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

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

@keyframes scrollBounce {
  0%, 100% { 
    transform: scaleY(1);
    opacity: 1;
  }
  50% { 
    transform: scaleY(1.5);
    opacity: 0.5;
  }
}

@keyframes floatRandom1 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(20px, -30px) rotate(5deg); }
  50% { transform: translate(-10px, -50px) rotate(-5deg); }
  75% { transform: translate(30px, -20px) rotate(3deg); }
}

@keyframes floatRandom2 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(-30px, 20px) rotate(-8deg); }
  66% { transform: translate(20px, -30px) rotate(5deg); }
}

@keyframes floatRandom3 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(40px, -40px) rotate(10deg); }
}

/* Scroll-triggered animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s var(--ease-out);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero__content {
    max-width: 100%;
  }
  
  .hero__subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero__stats {
    justify-content: center;
  }
  
  .hero__visual {
    order: -1;
    margin-bottom: var(--space-2xl);
  }
  
  .hero__mockup {
    max-width: 350px;
  }
  
  .benefits__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
}

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: 0;
    background-color: var(--color-bg);
    position: relative;
    display: block;
    margin: 0;
  }
  
  .hero__bg {
    display: none; /* Esconde os glows e background desktop no mobile */
  }
  
  .hero__logo--desktop {
    display: none;
  }
  
  .hero__container--desktop {
    display: none;
  }
  
  .hero__content--desktop {
    display: none;
  }
  
  .hero__content--mobile {
    display: block;
  }
  
  .benefits {
    margin-top: 0;
    padding-top: var(--space-5xl);
  }
  
  /* Image wrapper - ocupa toda a viewport */
  .hero__image-wrapper {
    display: block;
    position: relative;
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background-color: var(--color-bg);
  }
  
  .hero__image-img {
    width: 100%;
    height: 100vh;
    display: block;
    object-fit: cover;
    object-position: center top;
  }
  
  /* Logo centralizado bem acima do badge - mobile */
  .hero__logo--mobile {
    display: none;
  }
  
  .hero__logo--mobile .hero__logo-img {
    height: clamp(90px, 14vw, 135px);
    width: auto;
    object-fit: contain;
    max-width: 100%;
  }
  
  /* Conteúdo posicionado na parte inferior - sobreposto na imagem */
  .hero__content--mobile {
    position: absolute;
    bottom: 70px; /* Altura do carrossel + margem */
    left: 0;
    right: 0;
    padding: var(--space-md) var(--space-lg) var(--space-lg);
    z-index: calc(var(--z-base) + 1);
    text-align: center;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    background: linear-gradient(to top, rgba(5,5,8,1) 0%, rgba(5,5,8,0.98) 40%, rgba(5,5,8,0.9) 70%, transparent 100%);
  }
  
  .hero__badge {
    font-size: var(--fs-xs);
    padding: var(--space-xs) var(--space-sm);
    margin-bottom: 0;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(8px);
    align-self: center;
  }
  
  .hero__title {
    font-size: clamp(1.8rem, 7.5vw, 2.8rem);
    margin-bottom: var(--space-xs);
    line-height: 1.12;
    text-shadow: 0 2px 15px rgba(0,0,0,0.9);
    color: var(--color-text);
    font-weight: 700;
    letter-spacing: -0.02em;
  }
  
  .hero__subtitle {
    font-size: 0.9rem;
    margin-bottom: 0;
    text-shadow: 0 1px 8px rgba(0,0,0,0.8);
    line-height: 1.5;
    color: var(--color-text-soft);
    max-width: 100%;
  }
  
  .hero__cta-mobile {
    width: 100%;
    justify-content: center;
    padding: var(--space-md) var(--space-lg);
    font-size: var(--fs-base);
    font-weight: 700;
    margin-top: var(--space-sm);
  }
  
  /* Trustpilot review image - mobile */
  .hero__trustpilot {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: var(--space-md);
    padding: 0 var(--space-md);
  }
  
  .hero__trustpilot-img {
    width: 100%;
    max-width: 400px;
    height: auto;
    object-fit: contain;
    display: block;
    opacity: 0.95;
  }
  
  .hero__blur {
    display: none;
  }
  
  .hero__scroll-indicator {
    display: none;
  }
}

/* ========== CARROSSEL DIVISOR NA PARTE INFERIOR DO HERO ========== */
.hero__carousel-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: calc(var(--z-base) + 2);
  margin: 0;
  padding: var(--space-xs) 0;
  background-color: var(--color-bg);
}

@media (max-width: 480px) {
  .hero__carousel-divider {
    padding: 6px 0;
  }
}

/* ========== IA APLICADA AO FOREX ========== */
.ai-forex {
  padding: var(--space-lg) 0;
  position: relative;
  background-color: var(--color-bg);
  margin: 0;
  margin-top: -1px; /* Remove gap entre seções */
}

.ai-forex .container {
  padding: 0 var(--space-lg);
}

.ai-forex__header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--space-xl);
  position: relative;
}

/* Desktop: carrossel antes do título da seção ai-forex */
@media (min-width: 769px) {
  .ai-forex {
    position: relative;
    padding-top: 100px;
    margin-top: 0;
  }
  
  /* Carrossel duplicado antes do título (visível apenas no desktop) */
  .benefits__carousel-ai-forex {
    display: block !important;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1;
    margin: 0;
    padding: var(--space-xs) 0;
    background-color: var(--color-bg);
    overflow: hidden;
  }
  
  .benefits__carousel-ai-forex .benefits__carousel {
    display: flex;
  }
  
  .ai-forex .container {
    position: relative;
    z-index: 2;
  }
  
  .ai-forex__header {
    margin-top: 0;
    padding-top: calc(var(--space-2xl) + 80px);
    position: relative;
    z-index: 1;
  }
}

/* Mobile: esconder o carrossel duplicado */
@media (max-width: 768px) {
  .benefits__carousel-ai-forex {
    display: none;
  }
}

.ai-forex__title {
  font-family: var(--font-heading);
  font-size: clamp(var(--fs-3xl), 5vw, var(--fs-5xl));
  font-weight: 600;
  line-height: 1.1;
  margin: 0;
}

.ai-forex__mockup-wrapper {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  perspective: 2000px;
  padding: 0 var(--space-lg);
}

.ai-forex__mockup {
  width: 100%;
  margin: 0 auto;
  position: relative;
  transform-style: preserve-3d;
  transform-origin: center center;
}

/* Base do notebook (teclado) */
.ai-forex__base {
  width: 100%;
  height: 40px;
  background: linear-gradient(to bottom, #2a2a2a 0%, #1a1a1a 100%);
  border: 2px solid #4a4a4a;
  border-top: none;
  border-radius: 0 0 12px 12px;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.ai-forex__base::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 4px;
  background: #0a0a0a;
  border-radius: 2px;
}

/* Tela do notebook */
.ai-forex__screen {
  width: 100%;
  padding: 12px;
  background: #1a1a1a;
  border: 6px solid #4a4a4a;
  border-bottom: 8px solid #3a3a3a;
  border-radius: 8px 8px 0 0;
  box-shadow: 
    0 0 #0000004d, 
    0 9px 20px #0000004a, 
    0 37px 37px #00000042, 
    0 84px 50px #00000026, 
    0 149px 60px #0000000a, 
    0 233px 65px #00000003,
    inset 0 0 20px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  position: relative;
  aspect-ratio: 16 / 10;
}

/* Webcam notch */
.ai-forex__screen::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 6px;
  background: #0a0a0a;
  border-radius: 0 0 8px 8px;
  z-index: 2;
}

/* Hinge (dobradiça) */
.ai-forex__hinge {
  width: 100%;
  height: 8px;
  background: linear-gradient(to bottom, #3a3a3a 0%, #2a2a2a 50%, #1a1a1a 100%);
  border-left: 2px solid #4a4a4a;
  border-right: 2px solid #4a4a4a;
  position: relative;
  z-index: 1;
}

.ai-forex__hinge::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  height: 2px;
  background: #0a0a0a;
}

.ai-forex__screen-img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 4px;
  object-fit: cover;
  object-position: center top;
}

@media (max-width: 768px) {
  .ai-forex {
    padding: var(--space-lg) 0;
  }
  
  .ai-forex .container {
    padding: 0 var(--space-md);
  }
  
  .ai-forex__header {
    margin-bottom: var(--space-lg);
  }
  
  .ai-forex__mockup-wrapper {
    padding: 0;
  }
  
  .ai-forex__screen {
    padding: 6px;
    border-width: 3px;
  }
  
  .ai-forex__base {
    height: 25px;
  }
  
  .ai-forex__base::before {
    width: 120px;
    height: 2px;
  }
  
  .ai-forex__hinge {
    height: 6px;
  }
}

@media (max-width: 480px) {
  .ai-forex {
    padding: var(--space-md) 0;
  }
  
  .ai-forex__mockup-wrapper {
    padding: 0 var(--space-sm);
  }
  
  .ai-forex__screen {
    padding: 4px;
    border-width: 2px;
  }
  
  .ai-forex__base {
    height: 20px;
  }
  
  .ai-forex__base::before {
    width: 100px;
    height: 2px;
  }
  
  .ai-forex__hinge {
    height: 5px;
  }
}

/* ========== LOGO ENTRE CARROSSEL E TÍTULO ========== */
.benefits__logo-spacer {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: var(--space-xl) 0;
  margin: 0;
  background-color: var(--color-bg);
  position: relative;
  z-index: calc(var(--z-base) + 1);
}

.benefits__logo-spacer-img {
  height: 180px;
  width: auto;
  object-fit: contain;
  opacity: 0.9;
  animation: fadeIn 0.8s var(--ease-out) both;
  display: block;
}

@media (max-width: 768px) {
  .benefits__logo-spacer {
    padding: var(--space-lg) 0;
  }
  
  .benefits__logo-spacer-img {
    height: clamp(120px, 15vw, 150px);
  }
}

@media (max-width: 480px) {
  .benefits__logo-spacer {
    padding: var(--space-md) 0;
  }
  
  .benefits__logo-spacer-img {
    height: clamp(100px, 12vw, 130px);
  }
}


/* Telas muito pequenas (iPhone SE, etc) */
@media (max-width: 380px) {
  .hero__logo--mobile {
    top: clamp(250px, 38vh, 320px);
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }
  
  .hero__logo--mobile .hero__logo-img {
    height: clamp(75px, 16vw, 95px);
  }
  
  .hero__content--mobile {
    padding: var(--space-sm) var(--space-md) var(--space-lg);
    gap: 4px;
  }
  
  .hero__title {
    font-size: clamp(1.6rem, 6.5vw, 2.1rem);
    margin-bottom: 4px;
  }
  
  .hero__subtitle {
    font-size: 0.85rem;
    line-height: 1.4;
    max-width: 100%;
  }
  
  .hero__cta-mobile {
    padding: var(--space-sm) var(--space-md);
    font-size: var(--fs-sm);
    margin-top: var(--space-xs);
  }
}

/* Telas médias (iPhone 12-15) */
@media (min-width: 381px) and (max-width: 430px) {
  .hero__logo--mobile {
    top: clamp(270px, 39vh, 340px);
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }
  
  .hero__logo--mobile .hero__logo-img {
    height: clamp(85px, 15vw, 110px);
  }
  
  .hero__content--mobile {
    padding: var(--space-md) var(--space-lg) var(--space-xl);
    gap: var(--space-xs);
  }
  
  .hero__title {
    font-size: clamp(1.9rem, 7.5vw, 2.6rem);
  }
  
  .hero__subtitle {
    font-size: 0.95rem;
    line-height: 1.5;
  }
  
  .hero__cta-mobile {
    padding: var(--space-md) var(--space-lg);
    font-size: var(--fs-base);
  }
}

/* Telas maiores (iPhone Plus, Pro Max) */
@media (min-width: 431px) and (max-width: 480px) {
  .hero__logo--mobile {
    top: clamp(290px, 40vh, 360px);
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }
  
  .hero__logo--mobile .hero__logo-img {
    height: clamp(95px, 13vw, 120px);
  }
  
  .hero__content--mobile {
    padding: var(--space-lg) var(--space-lg) var(--space-xl);
    gap: var(--space-sm);
  }
  
  .hero__title {
    font-size: clamp(2.1rem, 8vw, 3rem);
  }
  
  .hero__subtitle {
    font-size: 1rem;
    line-height: 1.5;
  }
  
  .hero__cta-mobile {
    padding: var(--space-md) var(--space-lg);
    font-size: var(--fs-base);
  }
}

/* Tablets pequenos em portrait */
@media (min-width: 481px) and (max-width: 768px) {
  .hero__logo--mobile {
    top: clamp(300px, 41vh, 380px);
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }
  
  .hero__logo--mobile .hero__logo-img {
    height: clamp(105px, 11vw, 130px);
  }
  
  .hero__content--mobile {
    padding: var(--space-lg) var(--space-xl) var(--space-2xl);
    gap: var(--space-sm);
  }
  
  .hero__title {
    font-size: clamp(2.4rem, 8.5vw, 3.2rem);
  }
  
  .hero__subtitle {
    font-size: 1.05rem;
    line-height: 1.5;
  }
  
  .hero__cta-mobile {
    padding: var(--space-lg) var(--space-xl);
    font-size: var(--fs-lg);
  }
}

@media (max-width: 640px) {
  
  .hero__stats {
    flex-direction: column;
    gap: var(--space-lg);
  }
  
  .benefits__grid {
    grid-template-columns: 1fr;
  }
  
  .floating-elements {
    display: none;
  }
  
  .hero__scroll-indicator {
    display: none;
  }
  
  .btn--large {
    padding: var(--space-md) var(--space-xl);
    font-size: var(--fs-base);
  }
  
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
}

