/* ============================================================
   funnel-parallax.css — Estilos da Landing Page do Ecossistema
   
   Componentes visuais, palco de contra-paralaxe 1-para-1, mini-UIs
   e adaptações responsivas (desktop / tablet / mobile 50/50).
   ============================================================ */

/* ─── RESET & CANVAS BASE ─── */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Ambient background glow */
.ambient-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: var(--z-canvas);
  background: 
    radial-gradient(circle at 15% 20%, rgba(56, 189, 248, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 60%, rgba(168, 85, 247, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 50% 90%, rgba(251, 146, 60, 0.06) 0%, transparent 40%);
}

.grid-lines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: var(--z-canvas);
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 48px 48px;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 var(--page-gutter);
  position: relative;
  z-index: var(--z-stage);
}

/* ─── DYNAMIC ISLAND: Canonical definitions live in site-shell.css ─── */

/* ─── TOP NAV ACTIONS CANÔNICO (FLOATING TOP RIGHT) ─── */
.top-nav-actions {
  position: absolute;
  top: var(--island-inset-y);
  right: var(--page-gutter);
  z-index: var(--z-nav);
  display: flex;
  align-items: center;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-link {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: all 0.2s var(--ease-spring);
}

.nav-link:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.06);
}

.btn-glass {
  padding: 7px 18px;
  border-radius: var(--radius-pill);
  background: var(--theme-surface-pill);
  border: 1px solid var(--theme-card-border-strong);
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  box-shadow: var(--specular-highlight), var(--shadow-float);
  backdrop-filter: var(--theme-card-blur);
  -webkit-backdrop-filter: var(--theme-card-blur);
  transition: all 0.2s var(--ease-spring);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
}

/* ─── HERO SECTION ─── */
.hero-section {
  min-height: 90vh;
  min-height: 90dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: calc(var(--island-inset-y) + 180px);
  padding-bottom: 80px;
  position: relative;
  text-align: center;
  box-sizing: border-box;
}

h1.hero-title,
.hero-title-main,
.hero-title-sub {
  color: var(--theme-text-primary);
  background: none;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: initial;
}

h1.hero-title {
  font-size: clamp(2rem, 4.8vw, 3.4rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.03em;
  margin-top: 0;
  margin-bottom: 22px;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.hero-title-main {
  display: block;
  margin-bottom: 6px;
}

.hero-title-sub {
  display: block;
  font-weight: 700;
}

.hl-orange {
  background: linear-gradient(135deg, var(--primitive-orange-400) 0%, var(--primitive-orange-600) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

.hl-blue {
  background: linear-gradient(135deg, var(--primitive-cyan-400) 0%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

p.hero-subtitle {
  color: var(--text-muted);
  font-size: clamp(1rem, 2vw, 1.15rem);
  max-width: 760px;
  margin: 0 auto 24px;
  line-height: 1.6;
}

/* ─── HERO CTAS (BOTÃO ÚNICO) ─── */
.hero-cta-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 12px auto 0;
}

.cta-primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--primitive-orange-400) 0%, var(--primitive-orange-600) 100%);
  color: var(--primitive-slate-950);
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.25);
  transition: all 0.3s var(--ease-spring);
}

.cta-primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(249, 115, 22, 0.4);
}

.hero-cta-helper {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ─── INTEGRATED PARALLAX CARD SECTION (O GRANDE CONTAINER NATIVO) ─── */
.funnel-scroll-track {
  position: relative;
  width: 100%;
  height: 500vh; /* scroll range controlado (5 slides) */
  margin: 20px 0 60px;
}

.sticky-card-viewport {
  position: sticky;
  top: 80px;
  height: calc(100vh - 95px);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
}

.immersive-stage {
  width: 100%;
  max-width: 1140px;
  height: 100%;
  min-height: 600px;
  position: relative;
  overflow: visible;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 0 20px;
  align-items: center;
}

/* Coluna da Esquerda (Narrativa Dinâmica dos Passos) */
.card-left-narrative {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 30px;
  position: relative;
  z-index: var(--z-narrative);
}

.narrative-slide {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 240px;
  margin-top: -120px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.45s var(--ease-spring);
  pointer-events: none;
}

.narrative-slide.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.slide-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 14px;
  align-self: flex-start;
}

.badge-step-3 {
  background: rgba(168, 85, 247, 0.15);
  color: var(--primary-purple);
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.slide-title {
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 800;
  color: var(--theme-text-primary);
  line-height: 1.25;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.slide-desc {
  font-size: 0.95rem;
  color: var(--text-sub);
  line-height: 1.6;
  margin-bottom: 18px;
}

/* Coluna da Direita (O Palco Visual Integrado: Funil ➔ Gerente) */
.card-right-stage {
  position: relative;
  width: 100%;
  height: 100%;
  padding-top: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

/* ─── STAGE LAYERS: PALCO VISUAL UNIFICADO & SINCRONIZADO 1-TO-1 ─── */
.stage-funnel-layer,
.stage-manager-layer,
.feature-card-layer {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.45s var(--ease-spring), transform 0.45s var(--ease-spring);
  z-index: var(--z-stage);
  width: 100%;
  height: 100%;
}

.stage-funnel-layer.active,
.stage-manager-layer.active,
.feature-card-layer.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.funnel-canvas-svg {
  width: 100%;
  height: 100%;
  max-height: 480px;
}

/* Nascentes de Tráfego */
.traffic-source-badge {
  position: absolute;
  z-index: var(--z-card);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--theme-surface-pill);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.25);
  transition: all 0.3s ease;
  pointer-events: none;
}

.src-google { top: 40px; left: 18%; color: var(--primary-cyan); font-weight: bold; font-size: 13px; }
.src-instagram { top: 30px; right: 20%; color: var(--primitive-pink-400); font-size: 13px; }
.src-ai { top: 85px; right: 12%; color: var(--primary-purple); font-size: 12px; }
.src-link { top: 80px; left: 14%; color: var(--primitive-emerald-400); font-size: 12px; }

/* Cliente Viajante */
.traveling-customer {
  position: absolute;
  left: 50%;
  top: 60px;
  transform: translate(-50%, 0);
  z-index: var(--z-customer);
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  will-change: top, transform, opacity;
  transition: opacity 0.25s ease;
}

.customer-bubble {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primitive-slate-700) 0%, var(--primitive-slate-800) 100%);
  border: 2px solid var(--primary-cyan);
  box-shadow: 0 0 22px rgba(56, 189, 248, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-cyan);
}

.emily-halo-indicator {
  position: absolute;
  right: 18%;
  top: 235px;
  z-index: var(--z-card);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.5);
  color: var(--primary-cyan);
  font-size: 0.72rem;
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
  transform: translateX(10px);
  pointer-events: none;
}

.emily-halo-indicator.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Feature Card Box (Vitrine Ultraleve) */
.feature-card-box {
  width: 100%;
  max-width: 360px;
  background: var(--theme-surface-popover);
  border: 1px solid var(--theme-card-border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float);
  backdrop-filter: var(--theme-card-blur);
  pointer-events: auto;
}

/* Manager Chat Card (Emily Gerente) */
.manager-chat-card {
  width: 100%;
  max-width: 380px;
  background: var(--theme-surface-popover);
  border: 1px solid var(--theme-card-border-strong);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-float);
  display: flex;
  flex-direction: column;
  gap: 12px;
  backdrop-filter: var(--theme-card-blur);
}

.manager-header-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 10px;
}

.manager-avatar-mini {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.manager-avatar-mini img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.manager-speech-bubble {
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-size: 0.82rem;
  color: #e2e8f0;
  line-height: 1.45;
}

.audio-player-mock {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--theme-surface-popover);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 6px 12px;
  border-radius: 10px;
  margin-top: 10px;
}

.play-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary-cyan);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: bold;
}

.audio-wave {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 2px;
  height: 16px;
}

.audio-bar {
  width: 3px;
  background: rgba(56, 189, 248, 0.85);
  border-radius: 2px;
  transform-origin: bottom;
  animation: audioWavePulse 1.2s ease-in-out infinite alternate;
}

.audio-bar:nth-child(1) { animation-delay: 0.1s; }
.audio-bar:nth-child(2) { animation-delay: 0.3s; }
.audio-bar:nth-child(3) { animation-delay: 0.15s; }
.audio-bar:nth-child(4) { animation-delay: 0.4s; }
.audio-bar:nth-child(5) { animation-delay: 0.25s; }
.audio-bar:nth-child(6) { animation-delay: 0.5s; }
.audio-bar:nth-child(7) { animation-delay: 0.2s; }

@keyframes audioWavePulse {
  0% { transform: scaleY(0.35); opacity: 0.6; }
  100% { transform: scaleY(1.15); opacity: 1; }
}

.owner-response-bubble {
  align-self: flex-end;
  background: linear-gradient(135deg, #1e3a8a 0%, #172554 100%);
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 14px 14px 4px 14px;
  padding: 10px 14px;
  font-size: 0.8rem;
  color: #ecfdf5;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* ─── CARD NOTÍCIA OPEN GRAPH (EXAME: 80% usam IA para pesquisa) ─── */
.og-news-card {
  width: 100%;
  max-width: 360px;
  background: var(--theme-surface-popover);
  border: 1px solid var(--theme-card-border-strong);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-float), 0 0 20px rgba(56, 189, 248, 0.1);
  backdrop-filter: var(--theme-card-blur);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  pointer-events: auto;
  transition: transform 0.25s var(--ease-spring), border-color 0.25s ease, box-shadow 0.25s ease;
}

.og-news-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(245, 158, 11, 0.2);
}

.og-card-image-wrap {
  width: 100%;
  height: 130px;
  position: relative;
  background: var(--primitive-slate-700);
  overflow: hidden;
}

.og-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.og-news-card:hover .og-card-img {
  transform: scale(1.05);
}

.og-badge-press {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--primitive-red-600);
  color: var(--primitive-white);
  font-size: 0.68rem;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.06em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

/* ─── CLASSES DE COMPONENTES (EXTRAÍDAS DOS INLINE STYLES) ─── */
.manager-agent-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--theme-text-primary);
}

.manager-agent-status {
  font-size: 0.68rem;
  color: var(--primitive-emerald-400);
}

.manager-summary-text {
  margin: 6px 0;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--primitive-slate-300);
}

.audio-player-time {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.audio-bar-h6  { height: 6px; }
.audio-bar-h12 { height: 12px; }
.audio-bar-h8  { height: 8px; }
.audio-bar-h14 { height: 14px; }
.audio-bar-h10 { height: 10px; }
.audio-bar-h15 { height: 15px; }
.audio-bar-h7  { height: 7px; }

.chat-footer-caption {
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-muted);
  padding-top: 2px;
}

.feature-card-box--vejano {
  border-color: rgba(251, 146, 60, 0.4);
  padding: 18px 20px;
}

.feature-card-tagline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 6px;
}

.feature-card-pill-orange {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--primary-orange);
  background: rgba(251, 146, 60, 0.15);
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  border: 1px solid rgba(251, 146, 60, 0.3);
}

.feature-card-domain {
  font-size: 0.74rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.feature-card-headline {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--theme-text-primary);
  margin-bottom: 6px;
}

.feature-card-description {
  font-size: 0.86rem;
  color: var(--text-sub);
  line-height: 1.5;
  margin: 0;
}

/* Helpers para Mini-UIs dos Casos de Uso */
.text-cyan { color: var(--primary-cyan); }
.text-emerald { color: var(--primitive-emerald-400); }
.text-orange { color: var(--primary-orange); }
.text-purple { color: var(--primary-purple); }
.text-slate { color: var(--primitive-slate-300); }
.text-muted-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: normal;
}
.mini-audit-score-denom {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.mini-pillar-span-2 {
  grid-column: span 2;
}

.footer-center-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.og-card-content {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.og-card-domain {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  text-transform: lowercase;
}

.og-external-icon {
  font-size: 0.75rem;
  opacity: 0.75;
  transition: transform 0.2s ease;
}

.og-news-card:hover .og-external-icon {
  transform: translate(1px, -1px);
  opacity: 1;
}

.og-card-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.35;
}

/* ─── SEÇÃO DE CASOS DE USO (CANÔNICA) ─── */
.solutions-section {
  padding: 90px 0 60px;
  position: relative;
  z-index: 5;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: #fff;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 620px;
  margin: 0 auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(56, 189, 248, 0.1);
  color: var(--primary-cyan);
  border: 1px solid rgba(56, 189, 248, 0.25);
  margin-bottom: 14px;
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 380px));
  justify-content: center;
  gap: 24px;
}

.solution-card {
  padding: 28px 24px;
  background: rgba(30, 41, 59, 0.45);
  border: 1px solid var(--theme-card-border-color);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--specular-highlight);
  transition: transform 0.25s var(--ease-spring), border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
  min-height: 380px;
}

.solution-card:hover {
  transform: translateY(-4px);
  border-color: var(--theme-card-border-hover);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.solution-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-main);
}

.solution-card p.solution-desc {
  color: var(--text-sub);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 16px;
}

/* ─── MINI-UI 1: EQUIPE (PRIMEIRA FUNCIONÁRIA) ─── */
.mini-ui-team {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.mini-ui-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 6px;
}

.mini-team-member {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.mini-member-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mini-avatar-chip {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  flex-shrink: 0;
}

.mini-avatar-chip.blue {
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  color: #fff;
}

.mini-avatar-chip.purple {
  background: linear-gradient(135deg, #7c3aed, #c084fc);
  color: #fff;
}

.mini-member-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: #f8fafc;
  line-height: 1.2;
}

.mini-member-role {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.mini-member-metric {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: #34d399;
  background: rgba(52, 211, 153, 0.1);
  padding: 2px 7px;
  border-radius: 4px;
  white-space: nowrap;
}

/* ─── MINI-UI 2: MULTICANAL (INBOX UNIFICADO) ─── */
.mini-ui-inbox {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.mini-inbox-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.mini-inbox-lead {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
}

.channel-badge-mini {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  flex-shrink: 0;
}

.badge-insta { background: rgba(225, 48, 108, 0.2); color: #f43f5e; }
.badge-whats { background: rgba(34, 197, 94, 0.2); color: #22c55e; }
.badge-tg { background: rgba(56, 189, 248, 0.2); color: #38bdf8; }

.mini-inbox-msg {
  font-size: 0.76rem;
  color: var(--text-sub);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 170px;
}

.mini-inbox-status {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}

/* ─── MINI-UI 3: NUDGE (RECUPERAÇÃO & RETORNO) ─── */
.mini-ui-nudge {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(251, 146, 60, 0.25);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.mini-nudge-lead {
  font-size: 0.78rem;
  font-weight: 600;
  color: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mini-nudge-draft {
  background: rgba(30, 41, 59, 0.6);
  border-left: 2px solid #fb923c;
  padding: 6px 10px;
  border-radius: 0 6px 6px 0;
  font-size: 0.74rem;
  color: var(--text-sub);
  line-height: 1.4;
  font-style: italic;
}

.mini-nudge-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(34, 197, 94, 0.18);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #86efac;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 6px;
}

/* ─── MINI-UI 4: DIAGNÓSTICO DE PERFIL ─── */
.mini-ui-audit {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.mini-audit-score-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mini-audit-score {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 800;
  color: #34d399;
  line-height: 1;
}

.mini-audit-pill {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #86efac;
  background: rgba(34, 197, 94, 0.15);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.mini-audit-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--text-sub);
}

.mini-pillar-item {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.03);
  padding: 4px 6px;
  border-radius: 4px;
}

.solution-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary-cyan);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}

.solution-card:hover .solution-link {
  color: #bae6fd;
}

/* ─── LIVE TEST BAR (COMPACT CANONICAL DOGFOODING) ─── */
.live-test-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 28px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.85) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  margin: 40px 0 0;
  flex-wrap: wrap;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.live-test-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.live-test-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 10px #22c55e;
  animation: islandPulse 2.4s infinite;
  flex-shrink: 0;
}

.live-test-info h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}

.live-test-info p {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin: 0;
}

.live-test-channels {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.live-channel-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.live-channel-btn.insta {
  background: linear-gradient(135deg, #e1306c 0%, #fd1d1d 50%, #f77737 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(225, 48, 108, 0.3);
}

.live-channel-btn.insta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(225, 48, 108, 0.5);
}

.live-channel-btn.whats, .live-channel-btn.tg {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-sub);
}

.live-channel-btn.whats:hover, .live-channel-btn.tg:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
  transform: translateY(-2px);
}

/* ─── CANONICAL FOOTER ─── */
footer {
  text-align: center;
  padding: 48px 20px 64px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-hint);
  font-size: 0.85rem;
  position: relative;
  z-index: 5;
}

.footer-channels {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}

.footer-channel-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(30, 41, 59, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-sub);
  text-decoration: none;
  box-shadow: var(--specular-highlight), 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: all 0.2s var(--ease-spring);
}

.footer-channel-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer-channel-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--text-main);
  transform: translateY(-2px);
  box-shadow: var(--specular-highlight), 0 6px 20px rgba(0, 0, 0, 0.25);
}

.footer-links {
  font-size: 0.85rem;
  color: var(--text-hint);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--primary-cyan);
}

/* ─── RESPONSIVE: TABLET & DESKTOP COMPACTO (<= 960px) ─── */
@media (max-width: 960px) {
  .container {
    padding: 0 20px;
  }
  .sticky-card-viewport {
    top: 68px;
    height: calc(100vh - 80px);
    max-height: 600px;
    padding: 0 14px;
    align-items: flex-start;
  }
  .immersive-stage {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    height: auto;
    min-height: auto;
    gap: 12px;
    padding: 0 8px;
  }
  .card-left-narrative {
    height: 165px;
    min-height: 165px;
    padding-top: 14px;
    text-align: center;
    position: relative;
  }
  .narrative-slide {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
  }
  .slide-badge {
    align-self: center;
    margin-bottom: 10px;
  }
  .card-right-stage {
    height: 290px;
    padding-top: 0;
    overflow: visible;
  }
  .solutions-grid {
    grid-template-columns: minmax(280px, 380px);
    justify-content: center;
    gap: 20px;
  }
  .solution-card {
    padding: 24px 20px;
    min-height: auto;
  }
  .live-test-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 20px;
      margin: 28px 0 0;
  }
  .live-test-channels {
    width: 100%;
  }
}

/* ─── RESPONSIVE: MOBILE FIRST 50/50 SPLIT (<= 600px) ─── */
@media (max-width: 600px) {
  .container {
    padding: 0 var(--page-gutter);
  }
  .top-nav-actions {
    display: flex;
    top: var(--island-inset-y);
    right: var(--page-gutter);
  }
  .top-nav-actions .nav-link {
    display: none;
  }
  .btn-glass {
    padding: 6px 14px;
    font-size: 0.82rem;
  }
  .hero-section {
    min-height: 88vh;
    min-height: 88dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: calc(var(--island-inset-y) + 140px);
    padding-bottom: 60px;
    box-sizing: border-box;
  }
  h1.hero-title {
    font-size: clamp(1.85rem, 7.6vw, 2.35rem);
    line-height: 1.22;
    margin-top: 0;
    margin-bottom: 14px;
    padding: 0;
    width: 100%;
    max-width: 100%;
    background: none;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
    color: var(--theme-text-primary);
  }
  .hero-title-main {
    margin-bottom: 4px;
  }
  p.hero-subtitle {
    font-size: 0.94rem;
    line-height: 1.5;
    max-width: 100%;
    padding: 0;
    margin: 0 auto 18px;
  }
  .hero-cta-group {
    width: 100%;
    gap: 10px;
  }
  .hero-cta-btn {
    width: 100%;
    padding: 13px 20px;
    font-size: 0.92rem;
  }
  .sticky-card-viewport {
    top: 56px;
    height: calc(100vh - 66px);
    height: calc(100dvh - 66px);
    display: flex;
    align-items: stretch;
    padding: 4px var(--page-gutter) 12px;
    box-sizing: border-box;
  }
  .immersive-stage {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 8px;
    padding: 0;
    box-sizing: border-box;
  }
  .card-left-narrative {
    flex: 0 0 42%;
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
  }
  .narrative-slide {
    position: absolute;
    inset: 0;
    top: auto;
    height: auto;
    margin-top: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    text-align: center;
    padding: 0 5px 15px; /* give slight side padding, push up from bottom */
    margin: 0;
    box-sizing: border-box;
    width: 100%;
  }
  .slide-badge {
    align-self: center;
    margin-bottom: 6px;
  }
  .slide-title {
    font-size: 1.15rem;
    margin-bottom: 5px;
    line-height: 1.2;
    width: 100%;
  }
  .slide-desc {
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 0;
    max-width: 100%;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding: 0;
  }
  .card-right-stage {
    flex: 0 0 58%;
    width: 100%;
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow: visible;
    padding: 0;
    box-sizing: border-box;
  }
  .solutions-grid {
    gap: 16px;
  }
  .solution-card {
    padding: 20px 16px;
    border-radius: var(--radius-md);
  }
  .mini-audit-pillars {
    grid-template-columns: 1fr;
  }
}

/* ─── CASOS DE USO EDITORIAL (APP STORE STYLE) ─── */
.editorial-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 400px;
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  border-radius: var(--radius-xl);
  overflow: hidden;
  text-decoration: none;
  background: var(--theme-surface-popover);
  border: 1px solid var(--theme-card-border-strong);
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease, border-color 0.3s ease;
}

.editorial-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
  border-color: rgba(56, 189, 248, 0.4);
}

.editorial-card-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--theme-surface-sunken);
}

.editorial-card-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.6s ease;
}

.editorial-card:hover .editorial-card-bg img {
  transform: scale(1.04);
}

.editorial-gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 11, 20, 0.95) 0%, rgba(7, 11, 20, 0.6) 24%, rgba(7, 11, 20, 0.1) 45%, transparent 60%);
}

.editorial-card-content {
  position: relative;
  z-index: 2;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.editorial-text {
  flex: 1;
  min-width: 0;
}

.editorial-text h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.editorial-cta-btn {
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.82rem;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.2s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}

.editorial-card:hover .editorial-cta-btn {
  background: var(--primary-cyan);
  color: var(--primitive-slate-950);
  border-color: var(--primary-cyan);
}

@media (max-width: 600px) {
  .editorial-card {
    height: 400px;
    max-width: 360px;
  }
  .editorial-card-content {
    padding: 14px 16px;
    flex-direction: row;
    align-items: center;
  }
  .editorial-text h3 {
    font-size: 1.05rem;
  }
  .editorial-cta-btn {
    width: auto;
    padding: 6px 12px;
    font-size: 0.78rem;
  }
}

/* ─── BACK TO TOP BUTTON ─── */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--theme-surface-pill);
  border: 1px solid var(--theme-card-border-strong);
  color: var(--theme-text-primary);
  box-shadow: var(--shadow-float);
  backdrop-filter: var(--theme-card-blur);
  -webkit-backdrop-filter: var(--theme-card-blur);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: all 0.3s var(--ease-spring);
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--theme-border-subtle);
  transform: translateY(-4px);
}

@media (max-width: 600px) {
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }
}
