/* ==========================================================================
   BRIXVEN — Hero
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
}

.hero__bg-gradient {
  position: absolute;
  inset: -20%;
  z-index: -1;
  background:
    radial-gradient(38% 45% at 12% 18%, rgba(94, 234, 212, 0.12) 0%, transparent 70%),
    radial-gradient(45% 50% at 88% 12%, rgba(139, 127, 255, 0.1) 0%, transparent 70%),
    radial-gradient(50% 50% at 50% 100%, rgba(94, 234, 212, 0.05) 0%, transparent 70%);
  animation: hero-gradient-drift 24s ease-in-out infinite alternate;
}

@keyframes hero-gradient-drift {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-3%, 2%) scale(1.06); }
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-huge);
  align-items: center;
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-lg);
}

.hero__headline {
  margin-top: var(--space-sm);
}

.hero__line-mask {
  display: block;
  overflow: hidden;
}

.hero__line {
  display: block;
  opacity: 0;
  transform: translateY(110%);
}

.hero__subheadline {
  max-width: 480px;
  font-size: 1.05rem;
}

.hero__flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: var(--text-label);
  font-weight: var(--weight-medium);
  color: var(--color-gray);
}

.hero__flow-arrow {
  color: var(--color-border);
}

.hero__flow-highlight {
  color: var(--color-primary-hover);
  font-weight: var(--weight-semibold);
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.hero__stats {
  margin-top: var(--space-md);
  grid-template-columns: repeat(4, auto);
  gap: var(--space-lg);
  width: 100%;
}

.hero__stats .stat-card {
  text-align: left;
}

.hero__stats .stat-card__value {
  font-size: 1.75rem;
}

/* ---- Dashboard mockup ---- */

.hero__visual {
  position: relative;
  perspective: 1400px;
}

.hero-dashboard {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  transform-style: preserve-3d;
  will-change: transform;
}

.hero-dashboard__main {
  position: absolute;
  inset: 8% 4%;
  border-radius: var(--radius-section);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.hero-dashboard__main-head {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.hero-dashboard__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-success);
  box-shadow: 0 0 0 4px rgba(0, 200, 83, 0.15);
}

.hero-dashboard__chart {
  background: var(--color-light);
  border-radius: var(--radius-input);
  padding: var(--space-md);
}

.hero-dashboard__lead-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.hero-dashboard__lead-list li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--color-light);
  border-radius: var(--radius-input);
  padding: 10px 12px;
}

.hero-dashboard__avatar {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--color-primary-tint);
  color: var(--color-primary-hover);
  font-size: 0.7rem;
  font-weight: var(--weight-semibold);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-dashboard__lead-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

/* ---- Floating widgets ---- */

.hero-dashboard__widget {
  position: absolute;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 14px 16px;
  border-radius: var(--radius-card);
  max-width: 230px;
  will-change: transform;
}

.hero-dashboard__widget-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.hero-dashboard__widget--lead {
  top: 0%;
  left: -8%;
}

.hero-dashboard__widget--call {
  top: 38%;
  right: -12%;
  position: absolute;
}

.hero-dashboard__widget--calendar {
  bottom: 10%;
  left: -10%;
}

.hero-dashboard__widget--reviews {
  bottom: -4%;
  right: 2%;
}

.hero-dashboard__ring {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid var(--color-accent-bright);
  opacity: 0;
  animation: hero-ring-pulse 2.4s ease-out infinite;
}

@keyframes hero-ring-pulse {
  0%   { opacity: 0.5; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.12); }
}

.hero-dashboard__waveform {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 18px;
}

.hero-dashboard__waveform i {
  width: 2px;
  height: 100%;
  background: var(--color-primary);
  border-radius: 2px;
  animation: hero-waveform 1s ease-in-out infinite;
}

.hero-dashboard__waveform i:nth-child(2) { animation-delay: 0.1s; }
.hero-dashboard__waveform i:nth-child(3) { animation-delay: 0.2s; }
.hero-dashboard__waveform i:nth-child(4) { animation-delay: 0.3s; }
.hero-dashboard__waveform i:nth-child(5) { animation-delay: 0.4s; }

@keyframes hero-waveform {
  0%, 100% { transform: scaleY(0.3); }
  50% { transform: scaleY(1); }
}

.hero-dashboard__date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-input);
  background: var(--color-primary);
  color: var(--color-white);
  flex-shrink: 0;
}

.hero-dashboard__date-day {
  font-family: var(--font-heading);
  font-weight: var(--weight-bold);
  font-size: 1.1rem;
  line-height: 1;
}

.hero-dashboard__date-month {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

@media (max-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }
  .hero__visual {
    max-width: 480px;
    margin-inline: auto;
  }
  .hero__stats {
    grid-template-columns: repeat(2, auto);
  }
}

@media (max-width: 560px) {
  .hero__ctas .btn { width: 100%; }
  .hero-dashboard__widget { max-width: 180px; padding: 10px 12px; }
}
