/* ============================================
   BARBOSA TRADER — LANDING PAGE
   Fiel ao design do lovable.app
   ============================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #000000;
  --fg: #ffffff;
  --fg-muted: #94a3b8;
  --green-glow: rgba(0, 200, 80, 0.18);
  --green-glow-2: rgba(0, 255, 100, 0.08);
  --border-radius-pill: 9999px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  min-height: 100vh;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0.75rem 1.5rem;
}

.header-inner {
  display: flex;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
}

.logo-img {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  object-fit: cover;
}

.logo-text {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: -0.01em;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 4rem;
  background: var(--bg);
}

/* Subtle radial glow behind the image */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 65%;
  height: 100%;
  background: radial-gradient(ellipse at 80% 50%, rgba(0, 180, 60, 0.22) 0%, rgba(0, 80, 30, 0.10) 40%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, var(--bg), transparent);
  pointer-events: none;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  min-height: calc(100vh - 4rem);
}

.hero-text {
  flex: 0 0 auto;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hero-h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--fg);
  text-transform: uppercase;
}

.hero-h2 {
  font-size: clamp(1rem, 2.5vw, 1.375rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--fg);
  text-transform: uppercase;
  opacity: 0.9;
}

.hero-image-wrap {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 58%;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  /* Left-side gradient fade so it blends into the dark background */
  mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.3) 15%, black 30%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.3) 15%, black 30%);
}

/* ===== CTA BUTTON ===== */
.btn-cta {
  display: inline-block;
  background: #ffffff;
  color: #000000;
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  border-radius: var(--border-radius-pill);
  padding: 0.875rem 2rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
  align-self: flex-start;
}

.btn-cta:hover {
  transform: scale(1.03);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.4);
}

.btn-cta.large {
  font-size: 1rem;
  padding: 1rem 2.5rem;
}

/* Pulse animation */
@keyframes ctaPulse {
  0%, 100% {
    box-shadow:
      0 0 0 0 rgba(255, 255, 255, 0.4),
      0 0 20px rgba(255, 255, 255, 0.15);
  }
  50% {
    box-shadow:
      0 0 0 14px rgba(255, 255, 255, 0),
      0 0 40px rgba(255, 255, 255, 0.3);
  }
}

.btn-cta.pulse {
  animation: ctaPulse 2.2s ease-in-out infinite;
}

/* ===== SOCIAL PROOF ===== */
.social-proof {
  background: var(--bg);
  padding: 4rem 0 5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.social-proof .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.proof-badge {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  padding: 1rem 1.75rem;
  text-align: center;
}

.proof-text {
  font-size: clamp(0.875rem, 2vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--fg);
  text-transform: uppercase;
}

/* ===== CAROUSEL ===== */
.carousel-wrapper {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.carousel {
  overflow: hidden;
  border-radius: 1rem;
  background: #0a0a0a;
}

.carousel-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.carousel-slide {
  min-width: 100%;
  flex-shrink: 0;
}

.carousel-slide img {
  width: 100%;
  display: block;
  border-radius: 1rem;
  object-fit: cover;
  max-height: 520px;
}

/* Prev/Next buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  z-index: 10;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.carousel-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.carousel-btn.prev {
  left: -1.25rem;
}

.carousel-btn.next {
  right: -1.25rem;
}

/* Dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.dot.active {
  background: #ffffff;
  transform: scale(1.3);
}

/* ===== FOOTER CTA ===== */
.footer-cta {
  background: var(--bg);
  padding: 3rem 0 4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-cta .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-subtext {
  font-size: 0.8125rem;
  color: var(--fg-muted);
  letter-spacing: 0.02em;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero-content {
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding-bottom: 3rem;
    min-height: calc(100svh - 4rem);
  }

  .hero-image-wrap {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 100%;
    opacity: 0.5;
  }

  .hero-img {
    mask-image: linear-gradient(to top, transparent 0%, rgba(0,0,0,0.5) 20%, black 50%);
    -webkit-mask-image: linear-gradient(to top, transparent 0%, rgba(0,0,0,0.5) 20%, black 50%);
    object-position: center top;
  }

  .hero-text {
    max-width: 100%;
    position: relative;
    z-index: 4;
  }

  .btn-cta {
    align-self: center;
  }

  .carousel-btn.prev {
    left: 0.25rem;
  }

  .carousel-btn.next {
    right: 0.25rem;
  }
}

@media (max-width: 480px) {
  .hero-h1 {
    font-size: 2rem;
  }

  .hero-h2 {
    font-size: 1rem;
  }

  .btn-cta {
    font-size: 0.8125rem;
    padding: 0.75rem 1.5rem;
  }

  .btn-cta.large {
    font-size: 0.875rem;
    padding: 0.875rem 1.75rem;
  }
}
