/* hero-hive.css — Hero Colmeia Digital (index) */

.hive-hero {
  --hive-gold: #f59e0b;
  --hive-amber: #fbbf24;
  --hive-wa: #22c55e;
  --hive-ig: #e1306c;
  --hive-fb: #1877f2;
  position: relative;
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: 6rem 1rem 3rem;
  color: #f1f5f9;
  background: linear-gradient(165deg, #030712 0%, #0b132b 38%, #111827 68%, #1a1508 100%);
}

.hive-hero__bg {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(245, 158, 11, 0.14) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(37, 99, 235, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 50% 35% at 10% 30%, rgba(225, 48, 108, 0.08) 0%, transparent 45%);
}

.hive-hero__grid {
  pointer-events: none;
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100' viewBox='0 0 56 100'%3E%3Cpath d='M28 0 L56 14 L56 42 L28 56 L0 42 L0 14 Z' fill='none' stroke='rgba(251,191,36,0.08)' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 56px 100px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, black 20%, transparent 75%);
}

.hive-hero__canvas {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
}

.hive-hero__layout {
  position: relative;
  z-index: 5;
  display: grid;
  width: 100%;
  max-width: 80rem;
  margin-inline: auto;
  align-items: center;
  gap: 2.5rem;
}

@media (min-width: 1024px) {
  .hive-hero__layout {
    grid-template-columns: 1fr 1.05fr;
    gap: 3rem;
  }
}

/* Telas baixas (mobile landscape) */
@media (max-height: 700px) and (max-width: 1023px) {
  .hive-hero {
    min-height: auto;
    padding-top: 5.5rem;
    padding-bottom: 2.5rem;
  }

  .hive-hero__stage {
    width: min(100%, 17rem);
    margin-inline: auto;
  }

  .hive-hero__scroll-hint {
    display: none;
  }
}

.hive-hero__copy {
  text-align: center;
}

@media (min-width: 1024px) {
  .hive-hero__copy {
    text-align: left;
  }
}

.hive-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  border: 1px solid rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.08);
  padding: 0.4rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fde68a;
  backdrop-filter: blur(8px);
}

.hive-hero__title {
  margin-top: 1.25rem;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hive-hero__title em {
  font-style: normal;
  background: linear-gradient(135deg, #fde68a 0%, #f59e0b 45%, #fbbf24 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hive-hero__subtitle {
  margin-top: 1.25rem;
  max-width: 32rem;
  margin-inline: auto;
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  line-height: 1.65;
  color: #94a3b8;
}

@media (min-width: 1024px) {
  .hive-hero__subtitle {
    margin-inline: 0;
  }
}

.hive-hero__ctas {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

@media (min-width: 1024px) {
  .hive-hero__ctas {
    justify-content: flex-start;
  }
}

.hive-hero__cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  padding: 0.9rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 800;
  color: #0b132b;
  box-shadow: 0 8px 32px rgba(245, 158, 11, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hive-hero__cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(245, 158, 11, 0.45);
}

.hive-hero__cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.9rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #e2e8f0;
  backdrop-filter: blur(8px);
  transition: border-color 0.25s ease, background 0.25s ease;
}

.hive-hero__cta-secondary:hover {
  border-color: rgba(251, 191, 36, 0.45);
  background: rgba(255, 255, 255, 0.08);
}

.hive-hero__metrics {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.5rem;
  font-size: 0.8125rem;
  color: #64748b;
}

@media (min-width: 1024px) {
  .hive-hero__metrics {
    justify-content: flex-start;
  }
}

.hive-hero__metrics li {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.hive-hero__metrics i {
  color: #fbbf24;
}

/* Stage colmeia */
.hive-hero__stage {
  position: relative;
  margin-inline: auto;
  width: min(100%, 28rem);
  aspect-ratio: 1;
  transform: translate(var(--hive-parallax-x, 0), var(--hive-parallax-y, 0));
  transition: transform 0.15s ease-out;
  will-change: transform;
}

.hive-hero__stage-inner {
  position: absolute;
  inset: 0;
  transition: transform 0.15s ease-out;
  will-change: transform;
}

.hive-hero__lines {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.hive-hero__line {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 6 8;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.hive-hero__line.is-active {
  opacity: 1;
  animation: hive-line-flow 1.2s ease-out forwards;
}

.hive-hero__line--wa { stroke: url(#hive-grad-wa); }
.hive-hero__line--ig { stroke: url(#hive-grad-ig); }
.hive-hero__line--fb { stroke: url(#hive-grad-fb); }

@keyframes hive-line-flow {
  from { stroke-dashoffset: 120; opacity: 0.3; }
  to { stroke-dashoffset: 0; opacity: 1; }
}

/* Colmeia central */
.hive-hero__hive {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 58%;
  height: 58%;
  transform: translate(-50%, -50%);
}

.hive-hero__core {
  position: relative;
  display: flex;
  height: 100%;
  width: 100%;
  align-items: center;
  justify-content: center;
}

.hive-hero__core-ring {
  position: absolute;
  inset: -12%;
  border-radius: 50%;
  border: 1px solid rgba(251, 191, 36, 0.25);
  animation: hive-ring-spin 24s linear infinite;
}

.hive-hero__core-ring::before {
  content: '';
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  border: 1px dashed rgba(251, 191, 36, 0.15);
}

@keyframes hive-ring-spin {
  to { transform: rotate(360deg); }
}

.hive-hero__core-pulse {
  position: absolute;
  inset: -8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.25) 0%, transparent 70%);
  opacity: 0;
}

.hive-hero__core-pulse.is-pulsing {
  animation: hive-core-pulse 1.4s ease-out;
}

@keyframes hive-core-pulse {
  0% { opacity: 0; transform: scale(0.85); }
  40% { opacity: 1; transform: scale(1.05); }
  100% { opacity: 0; transform: scale(1.2); }
}

.hive-hero__hex-main {
  position: relative;
  z-index: 2;
  display: flex;
  height: 100%;
  width: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  border: 1px solid rgba(251, 191, 36, 0.45);
  background: linear-gradient(160deg, rgba(251, 191, 36, 0.18) 0%, rgba(11, 19, 43, 0.85) 45%, rgba(15, 23, 42, 0.95) 100%);
  box-shadow:
    0 0 60px rgba(251, 191, 36, 0.2),
    inset 0 0 40px rgba(251, 191, 36, 0.08);
  backdrop-filter: blur(12px);
}

.hive-hero__hex-label {
  margin-top: 0.35rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fde68a;
}

.hive-hero__bee-icon {
  width: 3.5rem;
  height: 3.5rem;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

@media (min-width: 640px) {
  .hive-hero__bee-icon {
    width: 4.5rem;
    height: 4.5rem;
  }
}

/* Hexágonos satélite (decorativos) */
.hive-hero__hex-cell {
  position: absolute;
  width: 18%;
  aspect-ratio: 1 / 1.12;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  animation: hive-hex-float 6s ease-in-out infinite;
}

.hive-hero__hex-cell--1 { left: 8%; top: 18%; animation-delay: 0s; }
.hive-hero__hex-cell--2 { right: 6%; top: 12%; animation-delay: -2s; }
.hive-hero__hex-cell--3 { left: 4%; bottom: 22%; animation-delay: -4s; }
.hive-hero__hex-cell--4 { right: 10%; bottom: 18%; animation-delay: -1s; }
.hive-hero__hex-cell--5 { left: 50%; top: 4%; transform: translateX(-50%); animation-delay: -3s; }

@keyframes hive-hex-float {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(-6px); opacity: 0.85; }
}

.hive-hero__hex-cell--5 {
  animation-name: hive-hex-float-center;
}

@keyframes hive-hex-float-center {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.5; }
  50% { transform: translateX(-50%) translateY(-6px); opacity: 0.85; }
}

/* Canais (flores) */
.hive-hero__channel {
  position: absolute;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  -webkit-tap-highlight-color: transparent;
}

.hive-hero__channel:focus-visible {
  outline: 2px solid #fbbf24;
  outline-offset: 4px;
  border-radius: 0.75rem;
}

.hive-hero__channel-hex {
  display: flex;
  height: 4.5rem;
  width: 4rem;
  align-items: center;
  justify-content: center;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  transition: box-shadow 0.35s ease, border-color 0.35s ease, transform 0.35s ease;
}

@media (min-width: 640px) {
  .hive-hero__channel-hex {
    height: 5.25rem;
    width: 4.75rem;
  }
}

.hive-hero__channel--wa { left: 2%; top: 38%; }
.hive-hero__channel--ig { right: 0; top: 8%; }
.hive-hero__channel--fb { right: 8%; bottom: 6%; }

.hive-hero__channel-hex {
  animation: hive-channel-drift 5.5s ease-in-out infinite;
}

.hive-hero__channel--wa .hive-hero__channel-hex { animation-delay: 0s; }
.hive-hero__channel--ig .hive-hero__channel-hex { animation-delay: -1.8s; }
.hive-hero__channel--fb .hive-hero__channel-hex { animation-delay: -3.2s; }

@keyframes hive-channel-drift {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-6px) scale(1.02); }
}

.hive-hero__channel--wa .hive-hero__channel-hex {
  background: linear-gradient(160deg, rgba(34, 197, 94, 0.35) 0%, rgba(11, 19, 43, 0.8) 100%);
  border-color: rgba(34, 197, 94, 0.45);
}

.hive-hero__channel--ig .hive-hero__channel-hex {
  background: linear-gradient(160deg, rgba(225, 48, 108, 0.35) 0%, rgba(131, 58, 180, 0.25) 50%, rgba(11, 19, 43, 0.8) 100%);
  border-color: rgba(225, 48, 108, 0.45);
}

.hive-hero__channel--fb .hive-hero__channel-hex {
  background: linear-gradient(160deg, rgba(24, 119, 242, 0.35) 0%, rgba(11, 19, 43, 0.8) 100%);
  border-color: rgba(24, 119, 242, 0.45);
}

.hive-hero__channel i,
.hive-hero__channel svg {
  width: 1.75rem;
  height: 1.75rem;
  color: #fff;
}

.hive-hero__channel-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #cbd5e1;
}

.hive-hero__channel:hover,
.hive-hero__channel.is-active {
  transform: scale(1.08);
}

.hive-hero__channel--wa:hover .hive-hero__channel-hex,
.hive-hero__channel--wa.is-active .hive-hero__channel-hex {
  box-shadow: 0 0 32px rgba(34, 197, 94, 0.55);
  border-color: rgba(34, 197, 94, 0.8);
}

.hive-hero__channel--ig:hover .hive-hero__channel-hex,
.hive-hero__channel--ig.is-active .hive-hero__channel-hex {
  box-shadow: 0 0 32px rgba(225, 48, 108, 0.5);
  border-color: rgba(225, 48, 108, 0.75);
}

.hive-hero__channel--fb:hover .hive-hero__channel-hex,
.hive-hero__channel--fb.is-active .hive-hero__channel-hex {
  box-shadow: 0 0 32px rgba(24, 119, 242, 0.55);
  border-color: rgba(24, 119, 242, 0.8);
}

.hive-hero__tooltip {
  position: absolute;
  bottom: calc(100% + 0.5rem);
  left: 50%;
  z-index: 20;
  width: max-content;
  max-width: 11rem;
  translate: -50% 0;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(15, 23, 42, 0.95);
  padding: 0.4rem 0.65rem;
  font-size: 0.6875rem;
  line-height: 1.35;
  color: #e2e8f0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, translate 0.2s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.hive-hero__channel:hover .hive-hero__tooltip,
.hive-hero__channel:focus-visible .hive-hero__tooltip {
  opacity: 1;
  translate: -50% -4px;
}

/* Abelhas digitais */
.hive-bee {
  position: absolute;
  z-index: 8;
  width: 1.75rem;
  height: 1.75rem;
  pointer-events: none;
  opacity: 0.9;
  filter: drop-shadow(0 2px 8px rgba(251, 191, 36, 0.5));
}

.hive-bee svg {
  width: 100%;
  height: 100%;
}

.hive-bee__wing {
  transform-origin: center;
  animation: hive-wing 0.1s ease-in-out infinite alternate;
}

@keyframes hive-wing {
  from { transform: scaleY(0.7); }
  to { transform: scaleY(1); }
}

/* Popover canal */
.hive-popover {
  position: fixed;
  z-index: 100;
  inset: auto;
  max-width: 22rem;
  margin: 0;
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: 1rem;
  padding: 0;
  background: linear-gradient(160deg, #1e293b 0%, #0f172a 100%);
  color: #e2e8f0;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  opacity: 0;
  translate: 0 8px;
  transition: opacity 0.25s ease, translate 0.25s ease;
}

.hive-popover[open] {
  opacity: 1;
  translate: 0 0;
}

.hive-popover::backdrop {
  background: rgba(3, 7, 18, 0.65);
  backdrop-filter: blur(4px);
}

.hive-popover__inner {
  padding: 1.25rem 1.35rem 1.35rem;
}

.hive-popover__head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.hive-popover__icon {
  display: flex;
  height: 2.5rem;
  width: 2.5rem;
  align-items: center;
  justify-content: center;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.hive-popover__icon--wa { background: rgba(34, 197, 94, 0.25); color: #4ade80; }
.hive-popover__icon--ig { background: linear-gradient(135deg, rgba(225, 48, 108, 0.3), rgba(131, 58, 180, 0.3)); color: #f472b6; }
.hive-popover__icon--fb { background: rgba(24, 119, 242, 0.25); color: #60a5fa; }

.hive-popover__title {
  font-size: 1rem;
  font-weight: 800;
}

.hive-popover__text {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: #94a3b8;
}

.hive-popover__close {
  margin-top: 1rem;
  width: 100%;
  border-radius: 0.65rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(255, 255, 255, 0.06);
  padding: 0.55rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #e2e8f0;
  cursor: pointer;
}

.hive-popover__close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.hive-hero__scroll-hint {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  z-index: 6;
  display: flex;
  translate: -50% 0;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
  animation: hive-scroll-bounce 2s ease-in-out infinite;
}

@keyframes hive-scroll-bounce {
  0%, 100% { translate: -50% 0; }
  50% { translate: -50% 6px; }
}

.hive-hero.is-visible .hive-hero__copy {
  animation: hive-fade-up 0.9s ease-out both;
}

.hive-hero.is-visible .hive-hero__stage {
  animation: hive-fade-up 1s ease-out 0.15s both;
}

@keyframes hive-fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hive-hero__stage {
    transform: none !important;
  }

  .hive-bee,
  .hive-hero__core-ring,
  .hive-hero__hex-cell,
  .hive-hero__channel-hex,
  .hive-hero__scroll-hint {
    animation: none !important;
  }

  .hive-hero__line.is-active {
    animation: none;
    opacity: 0.6;
  }

  .hive-hero.is-visible .hive-hero__copy,
  .hive-hero.is-visible .hive-hero__stage {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
