/**
 * MirorLabs × EvoHub — Mês 1 (componentes modulares)
 * Prefixo: ml- (evita conflito com o restante do brand kit)
 */

:root {
  --ml-glass-bg: rgba(255, 255, 255, 0.08);
  --ml-glass-border: rgba(255, 255, 255, 0.18);
  --ml-glass-shadow: 0 8px 32px rgba(14, 44, 90, 0.12);
  --ml-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Hero ---------- */
.ml-hero-gradient {
  background: linear-gradient(145deg, #071b3a 0%, #0e2c5a 28%, #1d4f9a 55%, #2e6fce 78%, #2bc4d8 100%);
  position: relative;
  overflow: hidden;
}

.ml-hero-gradient::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(43, 196, 216, 0.35), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 80%, rgba(255, 213, 0, 0.12), transparent 50%);
  pointer-events: none;
}

.ml-hero-mesh {
  position: absolute;
  inset: 0;
  opacity: 0.4;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.ml-glass {
  background: var(--ml-glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--ml-glass-border);
  box-shadow: var(--ml-glass-shadow);
}

.ml-glass-dark {
  background: rgba(10, 13, 20, 0.45);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Losango marca (cantos arredondados) */
.ml-rhombus {
  border-radius: 0.5rem;
  transform: rotate(45deg);
}

/* ---------- Animações entrada ---------- */
.ml-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ml-ease-out), transform 0.7s var(--ml-ease-out);
}

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

.ml-reveal-delay-1 { transition-delay: 0.08s; }
.ml-reveal-delay-2 { transition-delay: 0.16s; }
.ml-reveal-delay-3 { transition-delay: 0.24s; }
.ml-reveal-delay-4 { transition-delay: 0.32s; }

/* ---------- Cards métricas ---------- */
.ml-metric-card {
  transition: transform 0.35s var(--ml-ease-out), box-shadow 0.35s var(--ml-ease-out);
}

.ml-metric-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 20px 40px -12px rgba(14, 44, 90, 0.15);
}

/* ---------- Mockup browser ---------- */
.ml-browser {
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.06),
    0 24px 48px -12px rgba(14, 44, 90, 0.18);
  transition: transform 0.45s var(--ml-ease-out), box-shadow 0.45s var(--ml-ease-out);
}

.ml-browser:hover {
  transform: translateY(-6px);
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.08),
    0 32px 64px -16px rgba(14, 44, 90, 0.22);
}

.ml-browser-bar {
  height: 36px;
  background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%);
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 6px;
}

.ml-browser-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

/* ---------- Antes / Depois ---------- */
.ml-compare {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .ml-compare {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}

.ml-compare-box {
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  transition: transform 0.3s var(--ml-ease-out);
}

.ml-compare-box:hover {
  transform: scale(1.02);
}

/* ---------- Gráfico crescimento (SVG) ---------- */
.ml-chart-wrap {
  position: relative;
  padding: 1rem 0;
}

.ml-chart-line {
  fill: none;
  stroke: url(#mlGradLine);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 4px 12px rgba(46, 111, 206, 0.35));
}

.ml-chart-area {
  fill: url(#mlGradArea);
  opacity: 0.85;
}

/* ---------- SEO pills ---------- */
.ml-seo-pill {
  transition: transform 0.25s var(--ml-ease-out), border-color 0.25s, background 0.25s;
}

.ml-seo-pill:hover {
  transform: translateY(-2px);
  border-color: rgba(46, 111, 206, 0.45);
  background: rgba(238, 244, 251, 0.95);
}

/* ---------- Impacto ---------- */
.ml-impact-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ml-ease-out), box-shadow 0.35s;
}

.ml-impact-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(43, 196, 216, 0.15), transparent 70%);
  pointer-events: none;
}

.ml-impact-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px -12px rgba(14, 44, 90, 0.12);
}

/* ---------- Etapa timeline ---------- */
.ml-step-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #2bc4d8;
  box-shadow: 0 0 0 4px rgba(43, 196, 216, 0.25);
  flex-shrink: 0;
  margin-top: 6px;
}

/* ---------- Rodapé premium ---------- */
.ml-footer-gradient {
  background: linear-gradient(180deg, #0e2c5a 0%, #071b3a 100%);
}

/* ---------- Float decorativo ---------- */
@keyframes ml-float {
  0%, 100% { transform: translateY(0) rotate(45deg); }
  50% { transform: translateY(-12px) rotate(45deg); }
}

.ml-float-slow {
  animation: ml-float 8s ease-in-out infinite;
}

@keyframes ml-pulse-soft {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.85; }
}

.ml-pulse-ring {
  animation: ml-pulse-soft 3s ease-in-out infinite;
}

/* Barras impacto (CSS) */
.ml-bar-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.ml-bar-track {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.ml-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #2e6fce, #2bc4d8);
  width: 0;
  transition: width 1.15s var(--ml-ease-out);
}

.ml-bar-animate.ml-visible .ml-bar-fill.ml-w92 { width: 92%; }
.ml-bar-animate.ml-visible .ml-bar-fill.ml-w88 { width: 88%; }
.ml-bar-animate.ml-visible .ml-bar-fill.ml-w85 { width: 85%; }
.ml-bar-animate.ml-visible .ml-bar-fill.ml-w95 { width: 95%; }
