/* ========================================
   HOME PAGE CSS - Dias Intermediações
   Estilos específicos da página inicial
======================================== */

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 12rem; 
  padding-bottom: var(--space-3xl);
  overflow: hidden;
}

.hero__background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-hero);
  z-index: -1;
}

.hero__background::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 20s ease-in-out infinite;
}

.hero__background::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(109, 40, 217, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 15s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(50px, 50px);
  }
}

.hero__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
  margin-bottom: var(--space-3xl);
}

.hero__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 1rem 2rem;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-full);
  color: var(--purple-light);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 1px;
  width: fit-content;
  animation-delay: 0.1s;
  margin-top: 1rem; /* Adiciona espaço extra no topo */
}

.hero__badge svg {
  color: var(--purple-primary);
}

.hero__title {
  font-size: clamp(var(--fs-4xl), 5vw, var(--fs-6xl));
  font-weight: var(--fw-extrabold);
  line-height: var(--lh-tight);
  color: var(--text-primary);
  animation-delay: 0.2s;
}

.hero__description {
  font-size: var(--fs-lg);
  color: var(--text-secondary);
  line-height: var(--lh-relaxed);
  max-width: 600px;
  animation-delay: 0.3s;
}

.hero__cta {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  animation-delay: 0.4s;
}

/* Hero Image/Visual */
.hero__image {
  position: relative;
  animation-delay: 0.5s;
}

.hero__image-wrapper {
  position: relative;
  width: 100%;
  height: 500px;
}

.hero__visual {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__visual-circle {
  position: absolute;
  border-radius: 50%;
  border: 2px solid var(--border-primary);
  animation: pulse 3s ease-in-out infinite;
}

.hero__visual-circle--1 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
  animation-delay: 0s;
}

.hero__visual-circle--2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(109, 40, 217, 0.08) 0%, transparent 70%);
  animation-delay: 1s;
}

.hero__visual-circle--3 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.05) 0%, transparent 70%);
  animation-delay: 2s;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

/* Hero Stats */
.hero__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
  animation-delay: 0.6s;
}

/* Responsivo Hero */
@media (max-width: 1024px) {
  .hero__content {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .hero__image {
    order: 0; /* Garante que fique na ordem natural (depois do texto) */
    margin-top: 2rem; /* Dá um respiro entre o botão e a imagem */
  }

  .hero__image-wrapper {
    height: 400px;
  }

  .hero__visual-circle--1 {
    width: 250px;
    height: 250px;
  }

  .hero__visual-circle--2 {
    width: 330px;
    height: 330px;
  }

  .hero__visual-circle--3 {
    width: 400px;
    height: 400px;
  }
}

@media (max-width: 768px) {
  .hero {
    padding-top: 8rem;
    min-height: auto;
  }

  .hero__cta {
    flex-direction: column;
  }

  .hero__cta .btn {
    width: 100%;
    justify-content: center;
  }

  .hero__stats {
    grid-template-columns: 1fr;
  }

  .hero__image-wrapper {
    height: 300px;
  }

  .hero__visual-circle--1 {
    width: 200px;
    height: 200px;
  }

  .hero__visual-circle--2 {
    width: 260px;
    height: 260px;
  }

  .hero__visual-circle--3 {
    width: 300px;
    height: 300px;
  }
}

/* ===== SERVICES SECTION ===== */
.services {
  background: var(--bg-primary);
  position: relative;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-lg);
}

@media (max-width: 768px) {
  .services__grid {
    grid-template-columns: 1fr;
  }
}

/* ===== ABOUT SECTION ===== */
.about {
  background: var(--bg-secondary);
  position: relative;
}

.about__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.about__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.about__description {
  font-size: var(--fs-lg);
  color: var(--text-secondary);
  line-height: var(--lh-relaxed);
}

.about__description strong {
  color: var(--purple-light);
  font-weight: var(--fw-semibold);
}

.about__features {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.about__image {
  position: relative;
}

.about__image-wrapper {
  position: relative;
  width: 100%;
  height: 500px;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.about__visual {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(109, 40, 217, 0.1) 100%);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.about__visual::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse 4s ease-in-out infinite;
}

@media (max-width: 1024px) {
  .about__content {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .about__image-wrapper {
    height: 400px;
  }
}

@media (max-width: 768px) {
  .about__image-wrapper {
    height: 300px;
  }
}

/* ===== CTA SECTION ===== */
.cta {
  position: relative;
  background: var(--bg-secondary);
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 1000px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.cta__content {
  position: relative;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-3xl);
  background: rgba(139, 92, 246, 0.05);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(10px);
}

.cta__title {
  font-size: clamp(var(--fs-3xl), 4vw, var(--fs-5xl));
  margin-bottom: var(--space-md);
  line-height: var(--lh-tight);
}

.cta__description {
  font-size: var(--fs-lg);
  color: var(--text-secondary);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-lg);
}

@media (max-width: 768px) {
  .cta__content {
    padding: var(--space-xl);
  }

  .cta__content .btn {
    width: 100%;
  }
}

/* ===== SCROLL REVEAL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.hero-visual-container {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 500px;
}

/* Círculos concêntricos animados */
.hero-visual__circles {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual__circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--border-primary);
  animation: heroCirclePulse 4s ease-in-out infinite;
}

.hero-visual__circle:nth-child(1) {
  width: 100%;
  height: 100%;
  animation-delay: 0s;
}

.hero-visual__circle:nth-child(2) {
  width: 80%;
  height: 80%;
  animation-delay: 0.5s;
}

.hero-visual__circle:nth-child(3) {
  width: 60%;
  height: 60%;
  animation-delay: 1s;
}

.hero-visual__circle:nth-child(4) {
  width: 40%;
  height: 40%;
  border-color: var(--purple-primary);
  opacity: 0.3;
  animation-delay: 1.5s;
}

@keyframes heroCirclePulse {
  0%, 100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.02);
  }
}

/* Glow central */
.hero-visual__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, var(--purple-glow) 0%, transparent 70%);
  z-index: 0;
  animation: heroGlowPulse 3s ease-in-out infinite;
}

[data-theme="light"] .hero-visual__glow {
  background: radial-gradient(circle, rgba(124, 58, 237, 0.15) 0%, transparent 70%);
}

@keyframes heroGlowPulse {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

/* Linhas de conexão SVG */
.hero-visual__lines {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-visual__line {
  stroke: var(--purple-primary);
  stroke-width: 1;
  fill: none;
  stroke-dasharray: 5, 5;
  animation: heroDash 20s linear infinite;
  opacity: 0.3;
}

[data-theme="light"] .hero-visual__line {
  opacity: 0.4;
}

@keyframes heroDash {
  to {
    stroke-dashoffset: -100;
  }
}

/* Nós de conexão */
.hero-visual__node {
  position: absolute;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px var(--purple-glow);
  z-index: 5;
  transition: all var(--transition-base);
}

.hero-visual__node:hover {
  transform: scale(1.1);
  border-color: var(--purple-primary);
}

[data-theme="light"] .hero-visual__node {
  background: var(--bg-primary);
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.15);
}

.hero-visual__node svg {
  width: 24px;
  height: 24px;
  fill: var(--purple-light);
}

.hero-visual__node--1 { top: 5%; left: 15%; animation: heroFloat 3s ease-in-out infinite; }
.hero-visual__node--2 { top: 20%; right: 5%; animation: heroFloat 3s ease-in-out infinite 0.5s; }
.hero-visual__node--3 { bottom: 25%; right: 8%; animation: heroFloat 3s ease-in-out infinite 1s; }
.hero-visual__node--4 { bottom: 10%; left: 10%; animation: heroFloat 3s ease-in-out infinite 1.5s; }
.hero-visual__node--5 { top: 45%; left: 2%; animation: heroFloat 3s ease-in-out infinite 2s; }

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Partículas */
.hero-visual__particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.hero-visual__particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--purple-light);
  border-radius: 50%;
  opacity: 0;
  animation: heroSparkle 2s ease-in-out infinite;
}

.hero-visual__particle:nth-child(1) { top: 30%; left: 20%; animation-delay: 0s; }
.hero-visual__particle:nth-child(2) { top: 15%; right: 25%; animation-delay: 0.3s; }
.hero-visual__particle:nth-child(3) { bottom: 35%; right: 15%; animation-delay: 0.6s; }
.hero-visual__particle:nth-child(4) { bottom: 20%; left: 25%; animation-delay: 0.9s; }
.hero-visual__particle:nth-child(5) { top: 50%; left: 8%; animation-delay: 1.2s; }
.hero-visual__particle:nth-child(6) { top: 25%; left: 40%; animation-delay: 1.5s; }

@keyframes heroSparkle {
  0%, 100% { opacity: 0; transform: scale(0); }
  50% { opacity: 1; transform: scale(1); }
}

/* Mockup do celular */
.hero-visual__phone {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 180px;
  height: 360px;
  background: linear-gradient(145deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  border-radius: 32px;
  padding: 8px;
  box-shadow: 
    0 25px 80px var(--purple-glow),
    0 10px 40px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-primary);
  z-index: 10;
}

[data-theme="light"] .hero-visual__phone {
  background: linear-gradient(145deg, #ffffff 0%, #f3f4f6 100%);
  box-shadow: 
    0 25px 80px rgba(124, 58, 237, 0.2),
    0 10px 40px rgba(0, 0, 0, 0.1);
}

.hero-visual__screen {
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  border-radius: 24px;
  overflow: hidden;
  position: relative;
}

[data-theme="light"] .hero-visual__screen {
  background: #f9fafb;
}

/* Notch */
.hero-visual__notch {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 20px;
  background: var(--bg-secondary);
  border-radius: 10px;
  z-index: 5;
}

[data-theme="light"] .hero-visual__notch {
  background: #e5e7eb;
}

/* Interface Stories */
.hero-visual__stories {
  padding: 40px 12px 12px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Progress bars */
.hero-visual__progress {
  display: flex;
  gap: 3px;
  margin-bottom: 12px;
}

.hero-visual__progress-bar {
  flex: 1;
  height: 2px;
  background: var(--border-secondary);
  border-radius: 2px;
  overflow: hidden;
}

.hero-visual__progress-bar--active .hero-visual__progress-fill {
  animation: heroProgressFill 3s linear infinite;
}

.hero-visual__progress-bar--completed .hero-visual__progress-fill {
  width: 100%;
}

.hero-visual__progress-fill {
  height: 100%;
  background: var(--text-primary);
  width: 0;
}

@keyframes heroProgressFill {
  0% { width: 0; }
  100% { width: 100%; }
}

/* Story header */
.hero-visual__story-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.hero-visual__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gradient-primary);
  padding: 2px;
}

.hero-visual__avatar-inner {
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

[data-theme="light"] .hero-visual__avatar-inner {
  background: #f9fafb;
}

.hero-visual__avatar-icon {
  width: 16px;
  height: 16px;
  fill: var(--purple-primary);
}

.hero-visual__story-info {
  flex: 1;
}

.hero-visual__username {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-primary);
}

.hero-visual__time {
  font-size: 8px;
  color: var(--text-secondary);
}

/* Story content */
.hero-visual__story-content {
  flex: 1;
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.1) 0%, rgba(139, 92, 246, 0.05) 100%);
  border-radius: 12px;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

[data-theme="light"] .hero-visual__story-content {
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.08) 0%, rgba(124, 58, 237, 0.03) 100%);
}

.hero-visual__story-content::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(var(--border-primary) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-primary) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.3;
}

.hero-visual__emoji {
  font-size: 32px;
  margin-bottom: 8px;
  animation: heroBounce 2s ease-in-out infinite;
  position: relative;
  z-index: 1;
}

@keyframes heroBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.hero-visual__story-text {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
  position: relative;
  z-index: 1;
}

.hero-visual__story-subtext {
  font-size: 8px;
  color: var(--text-secondary);
  position: relative;
  z-index: 1;
}

/* Metrics */
.hero-visual__metrics {
  display: flex;
  justify-content: space-around;
  margin-top: 12px;
  padding: 8px;
  background: rgba(139, 92, 246, 0.1);
  border-radius: 8px;
}

[data-theme="light"] .hero-visual__metrics {
  background: rgba(124, 58, 237, 0.08);
}

.hero-visual__metric {
  text-align: center;
}

.hero-visual__metric-value {
  font-size: 12px;
  font-weight: 700;
  color: var(--purple-light);
  display: block;
}

.hero-visual__metric-label {
  font-size: 6px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}


/* =============================================
   ABOUT VISUAL COMPONENT
   Substitui o .about__visual existente
============================================= */

.about-visual-container {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 450px;
  background: linear-gradient(145deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-primary);
  overflow: hidden;
  box-shadow: var(--shadow-glow);
  transition: all var(--transition-base);
}

[data-theme="light"] .about-visual-container {
  background: linear-gradient(145deg, #ffffff 0%, #f9fafb 100%);
  box-shadow: var(--shadow-lg);
}

/* Background glows */
.about-visual__bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.about-visual__bg-glow--1 {
  width: 300px;
  height: 300px;
  top: -100px;
  right: -100px;
  background: var(--purple-primary);
  opacity: 0.3;
}

.about-visual__bg-glow--2 {
  width: 200px;
  height: 200px;
  bottom: -50px;
  left: -50px;
  background: var(--purple-secondary);
  opacity: 0.2;
}

[data-theme="light"] .about-visual__bg-glow--1 {
  opacity: 0.15;
}

[data-theme="light"] .about-visual__bg-glow--2 {
  opacity: 0.1;
}

/* Grid pattern */
.about-visual__grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(var(--border-secondary) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-secondary) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 0.5;
}

[data-theme="light"] .about-visual__grid {
  opacity: 0.3;
}

/* Decorative circles */
.about-visual__deco-circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--border-primary);
  z-index: 1;
}

.about-visual__deco-circle--1 {
  width: 120px;
  height: 120px;
  top: -40px;
  left: -40px;
}

.about-visual__deco-circle--2 {
  width: 80px;
  height: 80px;
  bottom: 60px;
  right: -20px;
}

/* Connection dots */
.about-visual__dots {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.about-visual__dot {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--purple-primary);
  border-radius: 50%;
  opacity: 0.4;
  animation: aboutDotPulse 2s ease-in-out infinite;
}

.about-visual__dot:nth-child(1) { top: 15%; left: 25%; animation-delay: 0s; }
.about-visual__dot:nth-child(2) { top: 35%; right: 20%; animation-delay: 0.4s; }
.about-visual__dot:nth-child(3) { bottom: 40%; left: 15%; animation-delay: 0.8s; }
.about-visual__dot:nth-child(4) { top: 25%; left: 60%; animation-delay: 1.2s; }

@keyframes aboutDotPulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.5); }
}

/* Floating badges */
.about-visual__badge {
  position: absolute;
  background: var(--gradient-primary);
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-full);
  box-shadow: 0 8px 24px var(--purple-glow);
  z-index: 20;
  animation: aboutBadgeFloat 3s ease-in-out infinite;
}

.about-visual__badge--1 {
  top: 24px;
  right: 24px;
  animation-delay: 0s;
}

.about-visual__badge--2 {
  bottom: 100px;
  right: 20px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.3);
  animation-delay: 1s;
}

@keyframes aboutBadgeFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Content */
.about-visual__content {
  position: relative;
  z-index: 10;
  height: 100%;
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
}

/* Header */
.about-visual__header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.about-visual__logo {
  width: 48px;
  height: 48px;
  background: var(--gradient-primary);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px var(--purple-glow);
}

.about-visual__logo svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

.about-visual__header-text {
  flex: 1;
}

.about-visual__title {
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  color: var(--text-primary);
  margin-bottom: 2px;
}

.about-visual__subtitle {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
}

/* Team grid */
.about-visual__team {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.about-visual__member {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.about-visual__member-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 2px solid var(--border-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-xs);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-base);
}

[data-theme="light"] .about-visual__member-avatar {
  background: #f3f4f6;
}

.about-visual__member-avatar::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: var(--gradient-primary);
  border-radius: 50%;
  z-index: -1;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.about-visual__member:hover .about-visual__member-avatar::before {
  opacity: 1;
}

.about-visual__member:hover .about-visual__member-avatar {
  transform: translateY(-4px);
  border-color: transparent;
}

.about-visual__member-avatar svg {
  width: 36px;
  height: 36px;
  fill: var(--purple-light);
}

.about-visual__member-avatar--featured {
  width: 80px;
  height: 80px;
  border-color: var(--purple-primary);
}

.about-visual__member-avatar--featured svg {
  width: 42px;
  height: 42px;
}

.about-visual__member-name {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  margin-bottom: 2px;
}

.about-visual__member-role {
  font-size: var(--fs-xs);
  color: var(--text-secondary);
}

/* Stats row */
.about-visual__stats {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.about-visual__stat {
  flex: 1;
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-sm);
  text-align: center;
  transition: all var(--transition-base);
}

[data-theme="light"] .about-visual__stat {
  background: rgba(124, 58, 237, 0.05);
}

.about-visual__stat:hover {
  background: rgba(139, 92, 246, 0.12);
  border-color: var(--purple-primary);
  transform: translateY(-2px);
}

.about-visual__stat-number {
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  margin-bottom: 4px;
}

.about-visual__stat-label {
  font-size: var(--fs-xs);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Quote section */
.about-visual__quote {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-md);
  background: rgba(139, 92, 246, 0.05);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-secondary);
  position: relative;
}

[data-theme="light"] .about-visual__quote {
  background: rgba(124, 58, 237, 0.03);
}

.about-visual__quote-icon {
  position: absolute;
  top: 12px;
  left: 16px;
  width: 24px;
  height: 24px;
  opacity: 0.3;
}

.about-visual__quote-icon svg {
  width: 100%;
  height: 100%;
  fill: var(--purple-primary);
}

.about-visual__quote-text {
  font-size: var(--fs-base);
  font-style: italic;
  color: var(--text-secondary);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-sm);
  padding-left: var(--space-xs);
}

.about-visual__quote-author {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding-left: var(--space-xs);
}

.about-visual__author-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-visual__author-avatar svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}

.about-visual__author-info {
  flex: 1;
}

.about-visual__author-name {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
}

.about-visual__author-title {
  font-size: var(--fs-xs);
  color: var(--text-secondary);
}


/* =============================================
   RESPONSIVO - HERO VISUAL
============================================= */

@media (max-width: 1024px) {
  .hero-visual-container {
    min-height: 400px;
  }

  .hero-visual__phone {
    width: 150px;
    height: 300px;
  }

  .hero-visual__node {
    width: 40px;
    height: 40px;
  }

  .hero-visual__node svg {
    width: 20px;
    height: 20px;
  }
}

/* =============================================
   CORREÇÃO RESPONSIVO - HERO VISUAL (MOBILE)
============================================= */

@media (max-width: 768px) {
  .hero-visual-container {
    min-height: 380px; /* Aumentei um pouco a altura da área geral */
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* 1. Aumentar o tamanho do celular */
  .hero-visual__phone {
    width: 180px;  /* Antes estava 120px (muito pequeno). Voltei para 180px */
    height: 340px; /* Antes estava 240px. Aumentei para caber o conteúdo */
    border-radius: 28px;
    padding: 8px;
  }

  .hero-visual__screen {
    border-radius: 20px;
  }

  /* 2. Ajustar os nós flutuantes para não ficarem em cima do celular */
  .hero-visual__node {
    width: 36px;
    height: 36px;
  }
  
  /* Afastar um pouco os nós do centro para não cobrir o celular maior */
  .hero-visual__node--1 { top: 0%; left: 5%; }
  .hero-visual__node--2 { top: 15%; right: 0%; }
  .hero-visual__node--3 { bottom: 15%; right: 5%; }
  .hero-visual__node--4 { bottom: 5%; left: 5%; }

  .hero-visual__node svg {
    width: 18px;
    height: 18px;
  }

  /* 3. Ajustar o conteúdo interno do celular */
  .hero-visual__stories {
    padding: 35px 10px 10px; /* Ajuste do padding para o notch não cobrir */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Distribui melhor o espaço vertical */
    height: 100%;
  }

  .hero-visual__story-content {
    padding: 10px;
    flex: 1; /* Ocupa o espaço disponível */
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 0; /* Importante para o flexbox não estourar */
  }

  .hero-visual__emoji {
    font-size: 28px; /* Tamanho legível */
    margin-bottom: 8px;
    flex-shrink: 0; /* Impede o emoji de ser esmagado */
  }

  .hero-visual__story-text {
    font-size: 11px;
    line-height: 1.2;
  }

  /* 4. CORREÇÃO CRÍTICA DAS MÉTRICAS (Números grudados) */
  .hero-visual__metrics {
    display: flex;
    justify-content: space-between; /* Garante espaço entre eles */
    gap: 4px; /* Adiciona um espaço mínimo de segurança */
    padding: 8px 4px;
    margin-top: auto; /* Empurra para o final */
  }

  .hero-visual__metric {
    flex: 1; /* Distribui largura igual para todos */
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-visual__metric-value {
    font-size: 11px; /* Aumentei um pouco */
    white-space: nowrap; /* Impede que o número quebre linha */
  }
  
  .hero-visual__metric-label {
    font-size: 7px;
    margin-top: 2px;
  }
}


/* =============================================
   RESPONSIVO - ABOUT VISUAL
============================================= */

@media (max-width: 1024px) {
  .about-visual-container {
    min-height: 420px;
  }

  .about-visual__content {
    padding: var(--space-md);
  }

  .about-visual__member-avatar {
    width: 60px;
    height: 60px;
  }

  .about-visual__member-avatar--featured {
    width: 68px;
    height: 68px;
  }

  .about-visual__stat-number {
    font-size: var(--fs-xl);
  }
}

@media (max-width: 768px) {
  .about-visual-container {
    min-height: 400px;
  }

  .about-visual__content {
    padding: var(--space-sm);
  }

  .about-visual__team {
    gap: var(--space-xs);
  }

  .about-visual__member-avatar {
    width: 52px;
    height: 52px;
  }

  .about-visual__member-avatar svg {
    width: 28px;
    height: 28px;
  }

  .about-visual__member-avatar--featured {
    width: 60px;
    height: 60px;
  }

  .about-visual__stats {
    gap: var(--space-xs);
  }

  .about-visual__stat {
    padding: var(--space-xs);
  }

  .about-visual__stat-number {
    font-size: var(--fs-lg);
  }

  .about-visual__stat-label {
    font-size: 8px;
  }

  .about-visual__quote-text {
    font-size: var(--fs-sm);
  }

  .about-visual__badge {
    font-size: 8px;
    padding: 4px 8px;
  }

  .about-visual__badge--1 {
    top: 16px;
    right: 16px;
  }

  .about-visual__badge--2 {
    bottom: 80px;
    right: 12px;
  }
}

/* Adicione isso ao final do seu arquivo CSS para sobrescrever as regras anteriores */

@media (max-width: 768px) {
  /* 1. Remove a altura fixa do wrapper externo */
  .about__image-wrapper {
    height: auto !important; 
    min-height: auto !important;
    overflow: visible; /* Permite que sombras ou detalhes vazem se necessário */
  }

  /* 2. Ajusta o container visual para crescer com o conteúdo */
  .about-visual-container {
    height: auto !important;
    min-height: auto !important;
    padding-bottom: 2rem; /* Espaço extra no final para não colar na borda */
  }

  /* 3. Ajuste opcional para o Hero Phone (primeira imagem) não ficar cortado se a tela for muito pequena */
  .hero__image-wrapper {
    height: auto !important;
    min-height: 400px; /* Mantém um tamanho mínimo para o Hero */
    display: flex;
    align-items: center;
    justify-content: center;
  }
}


@media (max-width: 1024px) {
  .hero {
    padding-top: 11rem; /* Aumentei de padrão para 11rem */
  }
}

@media (max-width: 768px) {
  .hero {
    padding-top: 10rem; /* Aumentei de 8rem para 10rem */
    min-height: auto;
  }

  .hero__badge {
    font-size: 10px; /* Reduz um pouco no mobile se necessário */
    padding: 0.8rem 1.5rem;
    margin-top: 0.5rem;
  }

  .hero__content {
    padding-top: 1rem; /* Adiciona padding extra no conteúdo */
  }
}

/* Garantir que o header não cubra o conteúdo */
@media (max-width: 480px) {
  .hero {
    padding-top: 11rem; /* Aumenta ainda mais em telas muito pequenas */
  }
}
