/* =====================
   HERO SECTION
   ===================== */
.nb-hero {
  background: var(--gradient-hero);
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 32px 40px;
  position: relative;
  overflow: hidden;
}

/* Soft blob backgrounds */
.nb-hero::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(139,92,246,0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.nb-hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -80px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(245,158,11,0.10) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.nb-hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 28px;
  backdrop-filter: blur(8px);
}

.nb-hero__heading {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 600;
  color: var(--text);
  line-height: 1.15;
  margin: 0 auto 24px;

}

/* Rotating word wrapper */
.nb-hero__heading .gradient-word-wrapper {
  display: inline-grid;
  grid-template-areas: "stack";
  vertical-align: bottom;
  margin-left: 0.15em;
  justify-items: start;
}

/* Rotating words - stacked and hidden by default (Sitting at bottom) */
.nb-hero__heading .gradient-word-wrapper .gradient-word {
  grid-area: stack;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.5s;
  white-space: nowrap;
  background: linear-gradient(135deg, #8b5cf6 0%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Active word visible */
.nb-hero__heading .gradient-word-wrapper .gradient-word.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  z-index: 2;
}

/* Leaving state - animates upwards and out */
.nb-hero__heading .gradient-word-wrapper .gradient-word.leaving {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-20px);
  z-index: 1;
}

.nb-hero__sub {
  font-size: 18px;
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 40px;
  line-height: 1.75;
}

.nb-hero__btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.btn-solid {
  display: inline-flex;
  align-items: center;
  padding: 11px 32px;
  background: var(--blue);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 700;
  transition: var(--transition);
  border: 2px solid var(--blue);
}
.btn-solid:hover {
  background: var(--borderhover4);
  border-color: var(--borderhover4);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(79,70,229,0.3);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 11px 32px;
  background: transparent;
  color: var(--outlinebuttontext);
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 700;
  transition: var(--transition);
  border: 2px solid var(--border3);
}
.btn-ghost:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-2px);
}

/* Hero dashboard preview */
.nb-hero__preview {
  margin-top: 60px;
  width: 100%;
  max-width: 900px;
  background: rgba(255,255,255,0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 1;
}
.nb-hero__preview img { width: 100%; height: auto; }

@media(max-width:768px) {
  .nb-hero { padding: 40px 20px 40px; min-height: auto; }
  .nb-hero__btns { flex-direction: column; align-items: center; }
  .btn-solid, .btn-ghost { width: 100%; justify-content: center; }
  .nb-hero__heading .gradient-word-wrapper {
    margin-left: 0.1em;
  }
}
@media(max-width:568px) {
  .nb-hero { padding: 30px 16px; }
  .nb-hero__heading {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 0 auto 10px;
  }
  .nb-hero__heading .gradient-word-wrapper {
    display: grid;
    grid-template-areas: "stack";
    justify-items: center;
    width: 100%;
    margin-left: 0;
    margin-top: 0.1em;
  }
  .nb-hero__heading .gradient-word-wrapper .gradient-word {
    grid-area: stack;
    width: auto;
    text-align: center;
  }
}
@media(max-width:480px) {
  .nb-hero { padding: 24px 16px; }
  .nb-hero__heading { font-size: 24px; }
  .nb-hero__sub { font-size: 14px; margin-bottom: 24px; }
}
