/**
 * AI Development — Referral Outreach page styles.
 */

.pps-ai-ref-page .site-header:not(.is-scrolled) {
  background: rgba(15, 10, 40, 0.4);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.pps-ai-ref-page .site-header:not(.is-scrolled) .primary-menu > li > a,
.pps-ai-ref-page .site-header:not(.is-scrolled) .site-branding,
.pps-ai-ref-page .site-header:not(.is-scrolled) .nav-toggle {
  color: #fff;
}

.ai-ref-page {
  overflow-x: clip;
}

/* ---- Hero ---- */
.ai-ref-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(5.5rem, 11vw, 8rem) 0 clamp(4rem, 8vw, 6rem);
  color: #fff;
  background: linear-gradient(145deg, #0f0a28 0%, #1a1040 32%, #1e3a5f 68%, #0e7c86 100%);
}

.ai-ref-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ai-ref-hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(167, 139, 250, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(167, 139, 250, 0.07) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 85% 75% at 50% 35%, #000 15%, transparent 78%);
}

.ai-ref-hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  animation: ai-ref-float 14s ease-in-out infinite;
}

.ai-ref-hero__orb--1 {
  width: 460px;
  height: 460px;
  top: -10%;
  right: -6%;
  background: rgba(167, 139, 250, 0.35);
}

.ai-ref-hero__orb--2 {
  width: 340px;
  height: 340px;
  bottom: -10%;
  left: -5%;
  background: rgba(45, 212, 191, 0.28);
  animation-delay: -4s;
}

.ai-ref-hero__orb--3 {
  width: 200px;
  height: 200px;
  top: 35%;
  left: 40%;
  background: rgba(59, 130, 246, 0.22);
  animation-delay: -2s;
}

@keyframes ai-ref-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-14px, 18px) scale(1.05); }
}

.ai-ref-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.ai-ref-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c4b5fd !important;
  background: rgba(167, 139, 250, 0.14) !important;
  border: 1px solid rgba(167, 139, 250, 0.28);
}

.ai-ref-eyebrow::before {
  display: none !important;
}

.ai-ref-hero__title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
  margin: 1rem 0;
  max-width: 14ch;
  color: #fff;
}

.ai-ref-hero__subtitle {
  font-family: var(--pps-font-display);
  font-size: clamp(1.08rem, 2.1vw, 1.28rem);
  font-weight: 600;
  color: #a5f3fc;
  margin: 0 0 1.25rem;
  max-width: 34rem;
  line-height: 1.45;
}

.ai-ref-hero__lead {
  font-size: 1.05rem;
  line-height: 1.78;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 1.85rem;
  max-width: 36rem;
}

.ai-ref-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.ai-ref-hero__badges li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.ai-ref-hero__badges i {
  color: #c4b5fd;
}

.ai-ref-btn-glow {
  box-shadow: 0 0 0 1px rgba(167, 139, 250, 0.3), 0 14px 36px rgba(14, 124, 134, 0.38);
}

.ai-ref-btn-ghost {
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  background: rgba(255, 255, 255, 0.12) !important;
  box-shadow: none !important;
}

.ai-ref-btn-ghost:hover {
  color: #fff !important;
  border-color: #c4b5fd !important;
  background: rgba(167, 139, 250, 0.18) !important;
}

/* ---- Hero visual ---- */
.ai-ref-hero__visual {
  position: relative;
  display: grid;
  gap: 1rem;
}

.ai-ref-float {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 0.9rem;
  border-radius: var(--pps-radius);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--pps-line);
  box-shadow: var(--pps-shadow-lg);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--pps-ink-soft);
  animation: ai-ref-float 9s ease-in-out infinite;
}

.ai-ref-float i {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #7c3aed;
  background: rgba(124, 58, 237, 0.1);
}

.ai-ref-float--speed {
  top: -3%;
  right: 0;
}

.ai-ref-float--booked {
  bottom: 18%;
  left: -3%;
  animation-delay: -2s;
}

.ai-ref-float--booked i {
  color: var(--pps-primary);
  background: var(--pps-primary-soft);
}

.ai-ref-pipeline {
  display: flex;
  align-items: stretch;
  gap: 0.35rem;
  padding: 1rem;
  border-radius: var(--pps-radius-lg);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.ai-ref-pipeline__stage {
  flex: 1;
  display: grid;
  gap: 0.35rem;
  justify-items: center;
  text-align: center;
  padding: 0.75rem 0.4rem;
  border-radius: var(--pps-radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ai-ref-pipeline__stage--active {
  background: rgba(167, 139, 250, 0.16);
  border-color: rgba(167, 139, 250, 0.32);
  box-shadow: 0 0 20px rgba(167, 139, 250, 0.15);
}

.ai-ref-pipeline__stage--done {
  background: rgba(45, 212, 191, 0.12);
  border-color: rgba(45, 212, 191, 0.28);
}

.ai-ref-pipeline__icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 0.85rem;
  color: #c4b5fd;
  background: rgba(167, 139, 250, 0.18);
}

.ai-ref-pipeline__stage--done .ai-ref-pipeline__icon {
  color: var(--pps-accent);
  background: rgba(45, 212, 191, 0.18);
}

.ai-ref-pipeline__stage strong {
  font-size: 0.72rem;
  line-height: 1.3;
}

.ai-ref-pipeline__stage small {
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.35;
}

.ai-ref-pipeline__arrow {
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.65rem;
  flex-shrink: 0;
}

.ai-ref-inbox {
  border-radius: var(--pps-radius-lg);
  background: rgba(8, 12, 28, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.ai-ref-inbox__bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.ai-ref-inbox__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.ai-ref-inbox__dot:nth-child(1) { background: #f87171; }
.ai-ref-inbox__dot:nth-child(2) { background: #fbbf24; }
.ai-ref-inbox__dot:nth-child(3) { background: #34d399; }

.ai-ref-inbox__label {
  margin-left: 0.3rem;
  font-size: 0.76rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
}

.ai-ref-inbox__count {
  margin-left: auto;
  font-size: 0.7rem;
  font-weight: 700;
  color: #c4b5fd;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ai-ref-inbox__list {
  list-style: none;
  margin: 0;
  padding: 0.65rem;
  display: grid;
  gap: 0.5rem;
}

.ai-ref-inbox__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem;
  border-radius: var(--pps-radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.ai-ref-inbox__item--new {
  border-color: rgba(167, 139, 250, 0.25);
  background: rgba(167, 139, 250, 0.08);
}

.ai-ref-inbox__item--done {
  border-color: rgba(45, 212, 191, 0.22);
  background: rgba(45, 212, 191, 0.06);
}

.ai-ref-inbox__badge {
  flex-shrink: 0;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #c4b5fd;
  background: rgba(167, 139, 250, 0.18);
}

.ai-ref-inbox__badge--warm {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.15);
}

.ai-ref-inbox__badge--done {
  color: #34d399;
  background: rgba(52, 211, 153, 0.15);
}

.ai-ref-inbox__item strong {
  display: block;
  font-size: 0.82rem;
  color: #fff;
}

.ai-ref-inbox__item span {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.55);
}

.ai-ref-inbox__item em {
  margin-left: auto;
  font-style: normal;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.4);
  white-space: nowrap;
}

/* ---- Metrics ---- */
.ai-ref-metrics {
  position: relative;
  z-index: 2;
  margin-top: -2.75rem;
  padding-bottom: 0.5rem;
}

.ai-ref-metrics__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.ai-ref-metric {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem 1.35rem;
  border-radius: var(--pps-radius-lg);
  background: var(--pps-surface-elevated);
  border: 1px solid var(--pps-line);
  box-shadow: var(--pps-shadow);
  transition: transform 0.25s var(--pps-ease), box-shadow 0.25s var(--pps-ease);
}

.ai-ref-metric:hover {
  transform: translateY(-4px);
  box-shadow: var(--pps-shadow-lg);
}

.ai-ref-metric__icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 16px;
  font-size: 1.2rem;
  color: #7c3aed;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.12), rgba(167, 139, 250, 0.16));
  border: 1px solid rgba(124, 58, 237, 0.12);
}

.ai-ref-metric h2 {
  font-size: 1.12rem;
  margin: 0 0 0.4rem;
}

.ai-ref-metric p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--pps-muted);
}

/* ---- Workflow timeline ---- */
.ai-ref-workflow {
  background: linear-gradient(180deg, #f5f3ff 0%, var(--pps-surface) 100%);
}

.ai-ref-workflow__intro {
  max-width: 44rem;
  margin: 0 auto 2.5rem;
  text-align: center;
  font-size: 1.02rem;
  line-height: 1.78;
  color: var(--pps-muted);
}

.ai-ref-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  counter-reset: none;
}

.ai-ref-timeline__step {
  position: relative;
  padding: 1.5rem 1.25rem;
  border-radius: var(--pps-radius-lg);
  background: var(--pps-surface-elevated);
  border: 1px solid var(--pps-line);
  box-shadow: var(--pps-shadow-sm);
  transition: transform 0.25s var(--pps-ease), border-color 0.25s var(--pps-ease);
}

.ai-ref-timeline__step:hover {
  transform: translateY(-3px);
  border-color: rgba(124, 58, 237, 0.2);
}

.ai-ref-timeline__step::after {
  content: "\f061";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  top: 50%;
  right: -0.85rem;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 0.6rem;
  color: #7c3aed;
  background: var(--pps-surface-elevated);
  border: 1px solid var(--pps-line);
  box-shadow: var(--pps-shadow-sm);
  z-index: 1;
}

.ai-ref-timeline__step:last-child::after {
  display: none;
}

.ai-ref-timeline__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 0.85rem;
  border-radius: 12px;
  font-family: var(--pps-font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #7c3aed, #0e7c86);
}

.ai-ref-timeline__body h3 {
  font-size: 1.02rem;
  margin: 0 0 0.45rem;
}

.ai-ref-timeline__body p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--pps-muted);
}

/* ---- Growth stack ---- */
.ai-ref-stack {
  padding-block: clamp(3rem, 6vw, 5rem);
}

.ai-ref-stack__shell {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: var(--pps-radius-xl);
  color: #fff;
  background: linear-gradient(145deg, #0f0a28 0%, #1a1040 45%, #0e3d4a 100%);
  border: 1px solid rgba(167, 139, 250, 0.2);
  box-shadow: var(--pps-shadow-lg);
}

.ai-ref-stack__glow {
  position: absolute;
  top: -30%;
  right: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(167, 139, 250, 0.2);
  filter: blur(80px);
  pointer-events: none;
}

.ai-ref-stack__head {
  position: relative;
  z-index: 1;
  max-width: 44rem;
  margin-bottom: 2rem;
}

.ai-ref-stack__eyebrow {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c4b5fd;
}

.ai-ref-stack__title {
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  margin: 0 0 0.75rem;
  color: #fff;
}

.ai-ref-stack__lead {
  font-family: var(--pps-font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: #a5f3fc;
  margin: 0 0 1rem;
  line-height: 1.45;
}

.ai-ref-stack__intro {
  margin: 0 0 1rem;
  font-size: 0.98rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.78);
}

.ai-ref-stack__note {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  background: rgba(45, 212, 191, 0.12);
  border: 1px solid rgba(45, 212, 191, 0.25);
}

.ai-ref-stack__note i {
  color: var(--pps-accent);
}

.ai-ref-stack__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.ai-ref-stack__card {
  padding: 1.35rem;
  border-radius: var(--pps-radius-lg);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  transition: transform 0.25s var(--pps-ease), background 0.25s var(--pps-ease);
}

.ai-ref-stack__card:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.09);
}

.ai-ref-stack__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 0.85rem;
  border-radius: 14px;
  font-size: 1.05rem;
  color: #c4b5fd;
  background: rgba(167, 139, 250, 0.15);
}

.ai-ref-stack__card h3 {
  font-size: 1.02rem;
  margin: 0 0 0.45rem;
  color: #fff;
}

.ai-ref-stack__card p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
}

.ai-ref-stack__closing {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.78);
  max-width: 44rem;
}

/* ---- FAQ ---- */
.ai-ref-faq {
  background: var(--pps-surface);
}

.ai-ref-faq .faq-list {
  background: var(--pps-surface-elevated);
  border: 1px solid var(--pps-line);
  border-radius: var(--pps-radius-lg);
  padding: 0.5rem;
  box-shadow: var(--pps-shadow-sm);
}

/* ---- CTA ---- */
.ai-ref-cta-panel {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(2rem, 4vw, 2.75rem);
  border-radius: var(--pps-radius-xl);
  color: #fff;
  background: linear-gradient(135deg, #0f0a28 0%, #1a1040 50%, #0e7c86 100%);
  box-shadow: var(--pps-shadow-lg);
}

.ai-ref-cta-panel__glow {
  position: absolute;
  top: -40%;
  right: -6%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(167, 139, 250, 0.22);
  filter: blur(70px);
  pointer-events: none;
}

.ai-ref-cta-panel .pps-section-title {
  color: #fff;
  margin-bottom: 0.65rem;
}

.ai-ref-cta-panel p {
  margin: 0;
  max-width: 36rem;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.7;
}

/* ---- Responsive ---- */
@media (max-width: 991.98px) {
  .ai-ref-hero__inner {
    grid-template-columns: 1fr;
  }

  .ai-ref-hero__title {
    max-width: none;
  }

  .ai-ref-hero__visual {
    order: -1;
    max-width: 560px;
    margin: 0 auto;
  }

  .ai-ref-metrics__grid,
  .ai-ref-timeline,
  .ai-ref-stack__grid {
    grid-template-columns: 1fr;
  }

  .ai-ref-metrics {
    margin-top: 1.5rem;
  }

  .ai-ref-timeline__step::after {
    display: none;
  }

  .ai-ref-cta-panel {
    flex-direction: column;
    align-items: flex-start;
  }

  .ai-ref-pipeline {
    flex-wrap: wrap;
    justify-content: center;
  }

  .ai-ref-pipeline__arrow {
    display: none;
  }

  .ai-ref-pipeline__stage {
    flex: 1 1 calc(50% - 0.5rem);
    min-width: 120px;
  }
}

@media (max-width: 575.98px) {
  .ai-ref-float {
    display: none;
  }

  .ai-ref-pipeline__stage {
    flex: 1 1 100%;
  }
}
