/* ============================================
   SEÇÃO 01 — HERO
   ============================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 100px;
  background: var(--gradient-hero-mesh);
  overflow: hidden;
}

/* Camadas de fundo */
.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__grid-lines {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image:
    linear-gradient(90deg, var(--color-green) 1px, transparent 1px),
    linear-gradient(0deg, var(--color-green) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 20%, transparent 80%);
}

.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: orbFloat 12s ease-in-out infinite;
}

.hero__orb--1 {
  top: -10%;
  right: 5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 168, 107, 0.12) 0%, transparent 70%);
}

.hero__orb--2 {
  bottom: -15%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 168, 107, 0.08) 0%, transparent 70%);
  animation-delay: -6s;
}

.hero__orb--3 {
  top: 40%;
  left: 30%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(15, 23, 42, 0.04) 0%, transparent 70%);
  animation-delay: -3s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -30px) scale(1.05); }
  66% { transform: translate(-15px, 20px) scale(0.95); }
}

/* Layout */
.hero .container {
  position: relative;
  z-index: 2;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
}

/* Conteúdo esquerdo */
.hero__content {
  max-width: 600px;
}

.hero__badge {
  margin-bottom: 28px;
}

.hero__title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2rem, 3.8vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--color-black);
  margin-bottom: 24px;
}

.hero__subtitle {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.75;
  color: var(--color-gray);
  margin-bottom: 40px;
  max-width: 520px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 56px;
}

.hero__stats {
  display: flex;
  gap: 40px;
}

.hero__stat-value {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 28px;
  letter-spacing: -0.02em;
  color: var(--color-black);
  line-height: 1;
  margin-bottom: 4px;
}

.hero__stat-value span {
  color: var(--color-green);
}

.hero__stat-label {
  font-size: 13px;
  color: var(--color-gray);
  font-weight: 500;
}

/* Composição visual direita */
.hero__visual {
  position: relative;
  height: 580px;
}

.hero__visual-main {
  position: absolute;
  inset: 40px 0 40px 40px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-float);
}

.hero__visual-main::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius-lg) + 2px);
  background: var(--gradient-image-ring);
  z-index: -1;
}

.hero__visual-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__visual-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.1) 0%,
    transparent 40%,
    rgba(0,168,107,0.08) 100%
  );
}

/* Cards flutuantes */
.hero__float {
  position: absolute;
  z-index: 10;
  animation: floatCard 6s ease-in-out infinite;
}

.hero__float--dashboard {
  top: 0;
  left: 0;
  width: 220px;
  padding: 20px;
  animation-delay: 0s;
}

.hero__float--kpi {
  bottom: 60px;
  left: -20px;
  padding: 16px 20px;
  animation-delay: -2s;
}

.hero__float--device {
  top: 80px;
  right: -10px;
  width: 140px;
  padding: 12px;
  animation-delay: -4s;
}

.hero__float--ai {
  bottom: 20px;
  right: 20px;
  padding: 14px 18px;
  animation-delay: -1s;
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero__dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.hero__dash-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 11px;
  color: var(--color-graphite);
  letter-spacing: 0.02em;
}

.hero__dash-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-green);
  box-shadow: 0 0 12px var(--color-green-glow);
}

.hero__dash-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 64px;
  margin-bottom: 12px;
}

.hero__dash-bar {
  flex: 1;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--color-green) 0%, rgba(0,168,107,0.3) 100%);
  animation: barGrow 1.2s var(--ease-out) 1s both;
}

.hero__dash-bar:nth-child(1) { height: 40%; animation-delay: 1s; }
.hero__dash-bar:nth-child(2) { height: 65%; animation-delay: 1.1s; }
.hero__dash-bar:nth-child(3) { height: 85%; animation-delay: 1.2s; }
.hero__dash-bar:nth-child(4) { height: 55%; animation-delay: 1.3s; }
.hero__dash-bar:nth-child(5) { height: 70%; animation-delay: 1.4s; }

@keyframes barGrow {
  from { transform: scaleY(0); transform-origin: bottom; }
  to { transform: scaleY(1); }
}

.hero__dash-metric {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 22px;
  color: var(--color-black);
  letter-spacing: -0.02em;
}

.hero__dash-metric small {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-green);
  margin-left: 4px;
}

.hero__kpi-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero__kpi-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--gradient-green-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-green);
}

.hero__kpi-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.hero__kpi-text strong {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  color: var(--color-black);
}

.hero__kpi-text span {
  font-size: 11px;
  color: var(--color-gray);
}

.hero__device-screen {
  width: 100%;
  aspect-ratio: 9/16;
  border-radius: 12px;
  background: linear-gradient(180deg, #0F172A 0%, #1E293B 100%);
  padding: 8px;
  overflow: hidden;
}

.hero__device-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  opacity: 0.9;
}

.hero__ai-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-graphite);
}

.hero__ai-tag svg {
  width: 16px;
  height: 16px;
  stroke: var(--color-green);
  stroke-width: 2;
  fill: none;
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--color-gray);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  z-index: 5;
}

.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(180deg, var(--color-green) 0%, transparent 100%);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(0.8); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* Responsive */
@media (max-width: 1200px) {
  .hero__grid { gap: 40px; }
  .hero__visual { height: 500px; }
}

@media (max-width: 1024px) {
  .hero {
    padding: 120px 0 80px;
    min-height: auto;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .hero__content { max-width: 100%; text-align: center; }
  .hero__subtitle { margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }
  .hero__stats { justify-content: center; }

  .hero__visual {
    height: 440px;
    max-width: 520px;
    margin: 0 auto;
  }

  .hero__float--dashboard { width: 180px; }
  .hero__float--device { width: 110px; }
}

@media (max-width: 640px) {
  .hero__stats { flex-direction: column; gap: 20px; align-items: center; }
  .hero__visual { height: 380px; }
  .hero__float--kpi { left: 0; }
  .hero__float--device { right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__badge, .hero__title, .hero__subtitle,
  .hero__actions, .hero__stats, .hero__visual, .hero__scroll {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
  .hero__float { animation: none !important; }
  .hero__orb { animation: none !important; }
}
