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

:root {
  --background: #050505;
  --foreground: #ffffff;
  --card: #0a0a0a;
  --card-hover: #111111;
  --primary: #ff6b00;
  --primary-light: #ff9f43;
  --primary-dark: #cc5500;
  --primary-glow: rgba(255, 107, 0, 0.4);
  --primary-glow-soft: rgba(255, 107, 0, 0.12);
  --secondary: #7000ff;
  --muted: #1f1f1f;
  --muted-foreground: #a1a1aa;
  --border: #27272a;
  --accent-bar: 6px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* ========================================
   NOISE / GRAIN OVERLAY (design-elaborado)
   Tira o look "digital flat"
   ======================================== */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-light {
  background: linear-gradient(to bottom, #fff, #888);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-muted {
  color: var(--muted-foreground);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ========================================
   HEADER — glassmorphism
   ======================================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem 0;
  background: rgba(5, 5, 5, 0.7);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  z-index: 100;
  border-bottom: 1px solid rgba(39, 39, 42, 0.5);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.05em;
}

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

nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 24px var(--primary-glow), 0 0 0 1px rgba(255, 107, 0, 0.2);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255, 107, 0, 0.5), 0 0 0 1px rgba(255, 107, 0, 0.4);
  background-color: var(--primary-dark);
}

.btn-secondary {
  background-color: transparent;
  color: #fff;
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background-color: var(--card-hover);
  border-color: var(--muted-foreground);
  transform: translateY(-1px);
}

.btn-lg {
  font-size: 1.2rem;
  padding: 1rem 2.5rem;
  border-radius: 14px;
}

/* ========================================
   HERO — glow radial + background
   ======================================== */
.hero {
  position: relative;
  padding: 10rem 0 8rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Background image */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('assets/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.08;
  z-index: 0;
  pointer-events: none;
}

/* Glow radial principal (design-elaborado) */
.hero::after {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 107, 0, 0.2) 0%, rgba(255, 107, 0, 0.05) 40%, transparent 70%);
  z-index: 0;
  pointer-events: none;
  animation: glow-pulse 6s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.8; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.05); }
}

/* Diagonal stripes decorativas (design-elaborado) */
.hero-stripes {
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
  opacity: 0.04;
}

.hero-stripes::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 20px,
    var(--primary) 20px,
    var(--primary) 21px
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1.25rem;
  border-radius: 2rem;
  background-color: rgba(255, 107, 0, 0.08);
  border: 1px solid rgba(255, 107, 0, 0.2);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  animation: fade-in-up 0.8s ease-out;
}

.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--primary);
  box-shadow: 0 0 8px var(--primary);
  animation: dot-pulse 2s ease-in-out infinite;
}

@keyframes dot-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  animation: fade-in-up 0.8s ease-out 0.1s both;
}

.hero p {
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--muted-foreground);
  max-width: 650px;
  margin: 0 auto 3rem;
  line-height: 1.7;
  animation: fade-in-up 0.8s ease-out 0.2s both;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  animation: fade-in-up 0.8s ease-out 0.3s both;
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================
   PARTNERS — carousel infinito + masks
   ======================================== */
.partners {
  padding: 3.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--card) 0%, var(--background) 100%);
  text-align: center;
  overflow: hidden;
}

.partners p {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
  font-weight: 500;
}

.carousel-container {
  overflow: hidden;
  position: relative;
  width: 100%;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.partners-logos {
  display: flex;
  align-items: center;
  gap: 5rem;
  width: max-content;
  animation: scroll-carousel 25s linear infinite;
}

.partners-logos:hover {
  animation-play-state: paused;
}

.partners-logos img {
  height: 28px;
  filter: grayscale(100%) brightness(180%);
  opacity: 0.5;
  transition: all 0.4s ease;
}

.partners-logos img:hover {
  filter: grayscale(0%) brightness(100%);
  opacity: 1;
}

@keyframes scroll-carousel {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 2.5rem)); }
}

/* ========================================
   METHOD / FEATURES — cards premium
   ======================================== */
.method {
  padding: 8rem 0;
  background-color: var(--background);
  position: relative;
}

/* Glow sutil no fundo da seção */
.method::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--primary-glow-soft) 0%, transparent 70%);
  pointer-events: none;
}

.method-header {
  text-align: center;
  margin-bottom: 5rem;
  position: relative;
}

.section-label {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 1.5rem;
  padding: 0.3rem 1rem;
  border: 1px solid rgba(255, 107, 0, 0.2);
  border-radius: 2rem;
}

.method-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.method-header > p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  position: relative;
}

/* Card com accent bar lateral (design-elaborado) */
.card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem 2rem 2.5rem 2.5rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

/* Accent bar esquerda */
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: var(--accent-bar);
  height: 100%;
  background: linear-gradient(180deg, var(--primary), var(--primary-dark));
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* Glow de fundo no hover */
.card::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--primary-glow-soft) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.card:hover {
  background-color: var(--card-hover);
  border-color: rgba(255, 107, 0, 0.3);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

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

.card:hover::after {
  opacity: 1;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 107, 0, 0.1);
  border: 1px solid rgba(255, 107, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.card-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--primary);
  stroke-width: 1.5;
  fill: none;
}

.card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
}

.card p {
  position: relative;
  z-index: 1;
  line-height: 1.7;
}

/* Número decorativo de fundo (design-elaborado) */
.card-number {
  position: absolute;
  top: -10px;
  right: 10px;
  font-size: 140px;
  font-weight: 900;
  color: var(--foreground);
  opacity: 0.03;
  line-height: 1;
  pointer-events: none;
  z-index: 0;
}

/* ========================================
   POR QUE A ALFA — valores diluídos
   ======================================== */
.why-alfa {
  padding: 8rem 0;
  background: linear-gradient(180deg, var(--background) 0%, rgba(15, 8, 2, 1) 100%);
  position: relative;
  overflow: hidden;
}

.why-alfa-header {
  margin-bottom: 4rem;
}

.why-alfa-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-top: 1.25rem;
}

.why-alfa-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.why-item {
  display: flex;
  align-items: stretch;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.why-item:hover {
  background-color: var(--card-hover);
  border-color: rgba(255, 107, 0, 0.25);
  transform: translateX(8px);
  box-shadow: -8px 0 30px rgba(255, 107, 0, 0.08);
}

.why-item-accent {
  width: var(--accent-bar);
  min-height: 100%;
  background: linear-gradient(180deg, var(--primary), var(--primary-dark));
  flex-shrink: 0;
}

.why-item-content {
  padding: 2rem 2.5rem;
  position: relative;
  flex: 1;
}

.why-number {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary);
  display: block;
  margin-bottom: 0.75rem;
}

.why-item h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.why-item p {
  line-height: 1.7;
  max-width: 700px;
}

/* ========================================
   STATS — números em destaque (design-elaborado)
   ======================================== */
.stats {
  padding: 5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(10, 10, 10, 1) 0%, rgba(20, 12, 5, 1) 100%);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item {
  padding: 2rem;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--border), transparent);
}

.stat-number {
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--muted-foreground);
  font-weight: 400;
}

/* ========================================
   CTA SECTION — gradiente quente
   ======================================== */
.cta-section {
  padding: 8rem 0;
  background: linear-gradient(160deg, #1a0b00 0%, #0a0500 50%, #000 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Glow central */
.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 107, 0, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

/* Stripes decorativas */
.cta-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.cta-section h2 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 1.25rem;
  position: relative;
  letter-spacing: -0.02em;
}

.cta-section p {
  max-width: 550px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

/* ========================================
   FOOTER
   ======================================== */
footer {
  padding: 3rem 0;
  text-align: center;
  border-top: 1px solid var(--border);
  background-color: var(--card);
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  opacity: 0.4;
  transition: opacity 0.3s ease;
}

.footer-logo:hover {
  opacity: 0.7;
}

.footer-logo img {
  height: 22px;
}

.footer-logo span {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

footer p {
  font-size: 0.8rem;
  color: var(--muted-foreground);
}

/* ========================================
   SCROLL ANIMATIONS (IntersectionObserver)
   ======================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
  .container {
    padding: 0 1.25rem;
  }

  nav .btn-secondary {
    display: none;
  }

  .hero {
    padding: 8rem 0 5rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.05rem;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: center;
  }

  .method-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .stat-item:not(:last-child)::after {
    display: none;
  }

  .stat-item {
    border-bottom: 1px solid var(--border);
  }

  .stat-item:last-child {
    border-bottom: none;
  }

  .card-number {
    font-size: 100px;
  }

  .cta-section {
    padding: 5rem 0;
  }

  .why-alfa {
    padding: 5rem 0;
  }

  .why-item:hover {
    transform: translateX(4px);
  }

  .why-item-content {
    padding: 1.5rem;
  }
}
