/* ============================================
   SaaS Dashboard Hero Section
   Inspired by modern analytics glass UI
   ============================================ */

.saas-hero {
  position: relative;
  min-height: 100vh;
  padding: calc(var(--nav-h) + 2.5rem) 0 4rem;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(165deg, #0b0f19 0%, #111827 55%, #0b0f19 100%);
}

.saas-hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.saas-hero__glow--1 {
  width: 420px;
  height: 420px;
  top: 10%;
  left: -8%;
  background: rgba(11, 201, 101, 0.18);
  animation: glowPulse 8s ease-in-out infinite;
}

.saas-hero__glow--2 {
  width: 360px;
  height: 360px;
  bottom: 5%;
  right: -5%;
  background: rgba(59, 130, 246, 0.12);
  animation: glowPulse 10s ease-in-out infinite reverse;
}

.saas-hero__glow--3 {
  width: 280px;
  height: 280px;
  top: 40%;
  left: 45%;
  background: rgba(0, 255, 136, 0.08);
  animation: glowPulse 7s ease-in-out infinite 1s;
}

@keyframes glowPulse {
  0%,
  100% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.12);
  }
}

.saas-hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black, transparent);
  pointer-events: none;
  z-index: 0;
}

.saas-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3rem;
  align-items: center;
  width: min(1180px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.saas-hero__copy .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(11, 201, 101, 0.12);
  border: 1px solid rgba(0, 255, 136, 0.25);
  color: #0bc965;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.saas-hero__copy h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.15rem;
}

.saas-hero__copy h1 .accent {
  background: linear-gradient(135deg, #00ff88, #0bc965);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.saas-hero__copy .lead {
  color: #9ca3af;
  font-size: 1.08rem;
  max-width: 460px;
  margin-bottom: 2rem;
}

.saas-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

/* ---------- Dashboard Card ---------- */
.dash-stage {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 0.5rem;
}

.dash-card {
  position: relative;
  width: min(100%, 440px);
  border-radius: 24px;
  background: rgba(17, 24, 39, 0.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 0 0 1px rgba(0, 255, 136, 0.05),
    0 0 60px rgba(11, 201, 101, 0.12),
    0 25px 60px rgba(0, 0, 0, 0.45);
  padding: 1.5rem;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  animation: cardFloat 6s ease-in-out infinite;
}

.dash-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow:
    0 0 0 1px rgba(0, 255, 136, 0.15),
    0 0 80px rgba(11, 201, 101, 0.2),
    0 30px 70px rgba(0, 0, 0, 0.5);
}

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

.dash-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.avatar-stack {
  display: flex;
  align-items: center;
}

.avatar-stack .avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 800;
  color: #fff;
  border: 2px solid #111827;
  margin-left: -10px;
  transition: transform 0.25s ease, z-index 0s;
}

.avatar-stack .avatar:first-child {
  margin-left: 0;
}

.avatar-stack .avatar:hover {
  transform: scale(1.12) translateY(-2px);
  z-index: 5;
}

.avatar--jd {
  background: linear-gradient(135deg, #0bc965, #059347);
}

.avatar--mk {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.avatar--sl {
  background: linear-gradient(135deg, #a855f7, #7c3aed);
}

.avatar--more {
  background: rgba(255, 255, 255, 0.1);
  color: #d1d5db;
  font-size: 0.65rem;
}

.dash-card__status {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: #9ca3af;
  font-weight: 600;
}

.dash-card__status .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00ff88;
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.8);
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

/* Analytics bars */
.analytics-bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.55rem;
  height: 160px;
  padding: 0.5rem 0.25rem 1rem;
  margin-bottom: 1rem;
}

.analytics-bars .bar {
  flex: 1;
  border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg, #00ff88 0%, #059347 100%);
  box-shadow: 0 0 16px rgba(0, 255, 136, 0.25);
  transform-origin: bottom;
  animation: barGrow 1.4s ease-out both, barPulse 3s ease-in-out infinite;
  transition: filter 0.3s ease, box-shadow 0.3s ease;
}

.analytics-bars .bar:hover {
  filter: brightness(1.15);
  box-shadow: 0 0 24px rgba(0, 255, 136, 0.5);
}

.analytics-bars .bar:nth-child(1) {
  height: 45%;
  animation-delay: 0.05s, 1.4s;
}
.analytics-bars .bar:nth-child(2) {
  height: 70%;
  animation-delay: 0.15s, 1.5s;
}
.analytics-bars .bar:nth-child(3) {
  height: 55%;
  animation-delay: 0.25s, 1.6s;
}
.analytics-bars .bar:nth-child(4) {
  height: 90%;
  animation-delay: 0.35s, 1.7s;
}
.analytics-bars .bar:nth-child(5) {
  height: 62%;
  animation-delay: 0.45s, 1.8s;
}
.analytics-bars .bar:nth-child(6) {
  height: 78%;
  animation-delay: 0.55s, 1.9s;
}
.analytics-bars .bar:nth-child(7) {
  height: 40%;
  animation-delay: 0.65s, 2s;
}
.analytics-bars .bar:nth-child(8) {
  height: 85%;
  animation-delay: 0.75s, 2.1s;
}

@keyframes barGrow {
  from {
    transform: scaleY(0);
    opacity: 0.3;
  }
  to {
    transform: scaleY(1);
    opacity: 1;
  }
}

@keyframes barPulse {
  0%,
  100% {
    opacity: 0.85;
  }
  50% {
    opacity: 1;
  }
}

/* Payment card bottom */
.payment-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.15rem;
  border-radius: 16px;
  background: rgba(11, 15, 25, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.payment-card:hover {
  border-color: rgba(0, 255, 136, 0.3);
  box-shadow: 0 0 24px rgba(0, 255, 136, 0.12);
}

.payment-card__label {
  font-size: 0.78rem;
  color: #9ca3af;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.payment-card__amount {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}

.payment-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(11, 201, 101, 0.15);
  color: #00ff88;
  box-shadow: 0 0 16px rgba(0, 255, 136, 0.2);
}

/* Floating widgets */
.float-widget {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.1rem;
  border-radius: 16px;
  background: rgba(17, 24, 39, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 0 30px rgba(0, 0, 0, 0.35),
    0 0 24px rgba(11, 201, 101, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: widgetFloat 5s ease-in-out infinite;
}

.float-widget:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow:
    0 0 36px rgba(0, 0, 0, 0.4),
    0 0 32px rgba(11, 201, 101, 0.18);
}

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

.float-widget__icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.float-widget__label {
  font-size: 0.72rem;
  color: #9ca3af;
  font-weight: 600;
  margin-bottom: 0.1rem;
}

.float-widget__value {
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
}

.float-widget--compliance {
  top: 8%;
  right: 0;
  animation-delay: 0.3s;
}

.float-widget--compliance .float-widget__icon {
  background: rgba(11, 201, 101, 0.18);
  color: #00ff88;
  box-shadow: 0 0 16px rgba(0, 255, 136, 0.25);
}

.float-widget--team {
  top: 42%;
  left: -4%;
  animation-delay: 0.8s;
}

.float-widget--team .float-widget__icon {
  background: rgba(168, 85, 247, 0.18);
  color: #c084fc;
}

.float-widget--payment {
  bottom: 12%;
  right: -2%;
  animation-delay: 1.2s;
}

.float-widget--payment .float-widget__icon {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.25);
}

/* Responsive */
@media (max-width: 980px) {
  .saas-hero__inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }

  .saas-hero__copy .lead {
    margin-inline: auto;
  }

  .saas-hero__actions {
    justify-content: center;
  }

  .saas-hero__copy .eyebrow {
    margin-inline: auto;
  }

  .dash-stage {
    min-height: 420px;
  }

  .float-widget--team {
    left: 0;
  }

  .float-widget--compliance,
  .float-widget--payment {
    right: 0;
  }
}

@media (max-width: 640px) {
  .saas-hero {
    padding-top: calc(var(--nav-h) + 1.5rem);
    min-height: auto;
  }

  .dash-card {
    width: 100%;
    padding: 1.15rem;
  }

  .analytics-bars {
    height: 120px;
  }

  .float-widget {
    padding: 0.65rem 0.85rem;
    gap: 0.55rem;
  }

  .float-widget__icon {
    width: 32px;
    height: 32px;
  }

  .float-widget__value {
    font-size: 0.85rem;
  }

  .float-widget--compliance {
    top: 0;
  }

  .float-widget--team {
    top: auto;
    bottom: 28%;
    left: 0;
  }

  .float-widget--payment {
    bottom: 0;
  }

  .payment-card__amount {
    font-size: 1.3rem;
  }
}
