/* ═══════════════════════════════════════
   HERO — KonvertAI
═══════════════════════════════════════ */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  position: relative;
  overflow-x: hidden;
}

/* ── Orbs de fundo ── */
.hero-orb-1 {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 70vw;
  max-width: 860px;
  aspect-ratio: 1;
  background: radial-gradient(circle at 50% 50%,
    rgba(91, 33, 182, 0.22) 0%,
    rgba(6, 182, 212, 0.06) 55%,
    transparent 75%);
  pointer-events: none;
  z-index: 0;
  animation: orb 9s ease-in-out infinite;
}

.hero-orb-2 {
  position: absolute;
  bottom: -15%;
  left: -8%;
  width: 50vw;
  max-width: 600px;
  aspect-ratio: 1;
  background: radial-gradient(circle at 50% 50%,
    rgba(91, 33, 182, 0.12) 0%,
    transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: orb 12s ease-in-out infinite reverse;
}

@keyframes orb {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.07); }
}

/* ── K watermark ── */
.hero-watermark {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: 55vw;
  max-width: 700px;
  height: auto;
  opacity: 0.04;
  pointer-events: none;
  z-index: 0;
}

/* ── Grid decorativa ── */
.hero-grid-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(91, 33, 182, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 33, 182, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
}

/* ── Grid layout ── */
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 5rem;
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-copy {
  max-width: 580px;
}

.hero-title {
  margin-bottom: 1.5rem;
}

.hero-sub {
  margin-bottom: 2.5rem;
}

.hero-ctas {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

/* ── Métricas ── */
.hero-meta {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  padding-top: 2.5rem;
  border-top: 1px solid var(--c-border);
}

.hero-stat-num {
  font-size: 1.85rem;
  font-weight: 800;
  background: var(--g-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.hero-stat-label {
  font-size: 0.78rem;
  color: var(--c-text-3);
  line-height: 1.45;
}

/* ── Chat mockup ── */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-visual::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(91, 33, 182, 0.25), transparent 70%);
  pointer-events: none;
}

.mockup {
  width: 270px;
  background: var(--c-bg2);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 24px;
  padding: 1rem;
  box-shadow: var(--s-card), 0 0 0 1px rgba(124, 58, 237, 0.1), 0 32px 80px rgba(0, 0, 0, 0.4);
  position: relative;
  z-index: 2;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* ── Mockup status badge ── */
.mockup-status {
  position: absolute;
  top: -12px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--c-bg3);
  border: 1px solid var(--c-border-p);
  border-radius: var(--r-full);
  padding: 0.3rem 0.75rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--c-green);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.mockup-status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-green);
  animation: pulse-dot 2s ease-in-out infinite;
}

/* ── Mockup header ── */
.mockup-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--c-bg3);
  border-radius: 14px;
  margin-bottom: 0.85rem;
}

.mockup-avatar {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  background: var(--g-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(91, 33, 182, 0.4);
}

.mockup-avatar svg {
  width: 22px;
  height: 22px;
}

.mockup-name {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1;
  margin-bottom: 0.15rem;
}

.mockup-online {
  font-size: 0.68rem;
  color: var(--c-green);
}

/* ── Chat messages ── */
.chat {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0 0.25rem;
}

.msg {
  max-width: 83%;
  padding: 0.6rem 0.85rem;
  border-radius: 12px;
  font-size: 0.74rem;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(6px);
}

.msg.in {
  background: var(--c-bg3);
  align-self: flex-start;
  border-bottom-left-radius: 3px;
}

.msg.out {
  background: linear-gradient(135deg, var(--c-roxo), var(--c-roxo-v));
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 3px;
}

.msg.show {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.35s ease;
}

.msg-tick {
  font-size: 0.58rem;
  opacity: 0.55;
  margin-top: 0.2rem;
  text-align: right;
}

/* ── Typing indicator ── */
.typing-ind {
  display: flex;
  gap: 3px;
  align-items: center;
  padding: 0.6rem 0.85rem;
  background: var(--c-bg3);
  border-radius: 12px 12px 12px 3px;
  align-self: flex-start;
  opacity: 0;
}

.typing-ind.show {
  opacity: 1;
}

.typing-ind span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--c-roxo-l);
  animation: bounce 1.1s ease-in-out infinite;
}

.typing-ind span:nth-child(2) { animation-delay: 0.15s; }
.typing-ind span:nth-child(3) { animation-delay: 0.3s; }

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-copy {
    max-width: 100%;
  }

  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-ctas {
    justify-content: center;
  }

  .hero-meta {
    justify-content: center;
  }

  .hero-visual {
    margin-top: 2rem;
    overflow: visible;
    justify-content: center;
  }

  .hero-visual::before {
    display: none;
  }

  .mockup {
    width: 240px;
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .hero-meta {
    gap: 1.5rem;
  }
}
