/* ========================================
   Hero — SaaS variant (.page-title-bar--saas)
   Reusable hero block extracted from write-tool.css.
   Depends on the variables defined in /css/styles.css
   (--primary, --gray-*, --font-heading, etc.)
   ======================================== */

.page-title-bar--saas {
  background-image: url('https://assets.writecream.com/outer/assets/svgs/ptb-bg-7.svg') !important;
  background-color: #f3f5fb;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 64px 20px 110px;
  position: relative;
  overflow: hidden;
  border-bottom: none;
  color: var(--gray-800);
}

/* Decorative solid blobs (no gradients) */
.wt-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  --wt-mx: 0px;
  --wt-my: 0px;
  transition: translate 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  translate: var(--wt-mx) var(--wt-my);
}

.wt-blob--a {
  width: 420px;
  height: 420px;
  top: -160px;
  left: -120px;
  background: rgba(42, 65, 232, 0.10);
  filter: blur(60px);
  animation: wt-float-a 14s ease-in-out infinite;
}

.wt-blob--b {
  width: 360px;
  height: 360px;
  bottom: -180px;
  right: -100px;
  background: rgba(124, 58, 237, 0.08);
  filter: blur(70px);
  animation: wt-float-b 18s ease-in-out infinite;
}

.wt-blob--c {
  width: 220px;
  height: 220px;
  top: 30%;
  right: 12%;
  background: rgba(34, 197, 94, 0.07);
  filter: blur(50px);
  animation: wt-float-c 12s ease-in-out infinite;
}

@keyframes wt-float-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(40px, 30px) scale(1.08); }
}

@keyframes wt-float-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-50px, -30px) scale(1.12); }
}

@keyframes wt-float-c {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(20px, -25px) scale(1.10); }
  66%      { transform: translate(-25px, 15px) scale(0.95); }
}

.page-title-bar--saas .page-title-bar__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}

.page-title-bar--saas h1 {
  font-size: 56px;
  max-width: 920px;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--gray-800);
}

.wt-hero__subtitle {
  max-width: 720px;
  font-size: 19px;
  line-height: 1.55;
  color: var(--gray-600);
  margin: -6px 0 0;
}

.wt-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  background: rgba(42, 65, 232, 0.10);
  border: 1px solid rgba(42, 65, 232, 0.25);
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: 999px;
  text-transform: uppercase;
}

.wt-eyebrow i {
  color: var(--primary);
  font-size: 12px;
}

.wt-eyebrow__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
  position: relative;
}

.wt-eyebrow__dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #22c55e;
  animation: wt-dot-ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes wt-dot-ping {
  0%   { transform: scale(1);   opacity: 0.7; }
  80%, 100% { transform: scale(2.6); opacity: 0; }
}

/* Hero content fade-up on load */
.page-title-bar--saas .wt-eyebrow,
.page-title-bar--saas h1,
.wt-hero__subtitle {
  opacity: 0;
  transform: translateY(12px);
  animation: wt-fade-up 0.7s ease-out forwards;
}

.page-title-bar--saas .wt-eyebrow { animation-delay: 0.05s; }
.page-title-bar--saas h1          { animation-delay: 0.15s; }
.wt-hero__subtitle                { animation-delay: 0.25s; }

@keyframes wt-fade-up {
  to { opacity: 1; transform: translateY(0); }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .wt-blob--a, .wt-blob--b, .wt-blob--c,
  .wt-eyebrow__dot::after,
  .page-title-bar--saas .wt-eyebrow,
  .page-title-bar--saas h1,
  .wt-hero__subtitle {
    animation: none;
  }
  .page-title-bar--saas .wt-eyebrow,
  .page-title-bar--saas h1,
  .wt-hero__subtitle {
    opacity: 1;
    transform: none;
  }
}

/* Responsive */
@media (max-width: 900px) {
  .page-title-bar--saas {
    padding: 64px 16px 60px;
  }
  .page-title-bar--saas h1 {
    font-size: 36px;
  }
  .wt-hero__subtitle {
    font-size: 16px;
  }
  .wt-blob--c {
    display: none;
  }
}

@media (max-width: 600px) {
  .page-title-bar--saas {
    padding: 52px 14px 48px;
  }
  .page-title-bar--saas h1 {
    font-size: 28px;
  }
  .wt-blob--a,
  .wt-blob--b {
    width: 240px;
    height: 240px;
  }
}
