/* ===========================
   Quote-to-Cash Homepage
   Additive styles — layered on top of styles.css
   =========================== */

/* Hero eyebrow + refinements */
.hero__eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #02BBEE;
  background: rgba(2, 187, 238, 0.1);
  border: 1px solid rgba(2, 187, 238, 0.25);
  padding: 7px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero__title {
  text-wrap: balance;
}

.hero__title .accent {
  background: linear-gradient(90deg, #825EE7 0%, #02BBEE 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Homepage only: put the gradient payoff clause on its own line */
.hero__title--split .accent {
  display: block;
}

/* Size the headline so each clause fits on one line on desktop */
@media (min-width: 993px) {
  .hero__title {
    font-size: 3rem;
  }
}

.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__note {
  margin-top: 20px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ===========================
   Q2C Lifecycle
   =========================== */
.lifecycle {
  padding: 96px 0;
  background: linear-gradient(180deg, #0F0039 0%, #1C0944 100%);
}

.lifecycle__header {
  text-align: center;
  margin-bottom: 56px;
}

.lifecycle__header .section-title,
.lifecycle__header .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

.lifecycle__flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  position: relative;
}

/* connecting line behind the nodes */
.lifecycle__flow::before {
  content: '';
  position: absolute;
  top: 34px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, #53389E 0%, #825EE7 50%, #02BBEE 100%);
  opacity: 0.4;
  z-index: 0;
}

.lifecycle__stage {
  position: relative;
  z-index: 1;
  text-align: center;
  background: linear-gradient(160deg, rgba(130, 94, 231, 0.14) 0%, rgba(130, 94, 231, 0.03) 100%);
  border: 1px solid rgba(130, 94, 231, 0.25);
  border-radius: 16px;
  padding: 28px 18px 24px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
}

.lifecycle__stage:hover {
  transform: translateY(-6px);
  border-color: rgba(130, 94, 231, 0.5);
  box-shadow: 0 16px 48px rgba(83, 56, 158, 0.35);
}

.lifecycle__node {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #53389E 0%, #42307D 100%);
  border: 2px solid rgba(130, 94, 231, 0.5);
  box-shadow: 0 0 0 6px rgba(16, 3, 41, 1);
}

.lifecycle__node svg {
  width: 30px;
  height: 30px;
  stroke: #ffffff;
  fill: none;
}

.lifecycle__step {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #825EE7;
  margin-bottom: 8px;
}

.lifecycle__stage-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.lifecycle__stage-text {
  font-size: 0.85rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.65);
}

.lifecycle__footnote {
  text-align: center;
  margin-top: 48px;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
}

.lifecycle__footnote strong {
  color: #ffffff;
}

/* ===========================
   Capabilities grid (what we implement)
   =========================== */
.capabilities {
  padding: 96px 0;
  background: linear-gradient(180deg, #1C0944 0%, #100329 100%);
}

.capabilities__header {
  text-align: center;
  margin-bottom: 48px;
}

.capabilities__header .section-title,
.capabilities__header .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

.capabilities__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.capability-card {
  background: linear-gradient(160deg, rgba(130, 94, 231, 0.14) 0%, rgba(130, 94, 231, 0.03) 100%);
  border: 1px solid rgba(130, 94, 231, 0.25);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
}

.capability-card:hover {
  transform: translateY(-4px);
  border-color: rgba(130, 94, 231, 0.5);
  box-shadow: 0 16px 48px rgba(83, 56, 158, 0.3);
}

.capability-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(130, 94, 231, 0.15);
  margin-bottom: 18px;
}

.capability-card__icon svg {
  width: 26px;
  height: 26px;
  stroke: #825EE7;
  fill: none;
}

.capability-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
}

.capability-card__text {
  font-size: 0.92rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
}

/* ===========================
   Problem (name the villain)
   =========================== */
.problem {
  padding: 96px 0;
  background: linear-gradient(180deg, #100329 0%, #0F0039 100%);
}

.problem__header {
  text-align: center;
  margin-bottom: 48px;
}

.problem__header .section-title,
.problem__header .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

.problem__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.problem-card {
  background: linear-gradient(155deg, rgba(130, 94, 231, 0.14) 0%, rgba(130, 94, 231, 0.03) 100%);
  border: 1px solid rgba(130, 94, 231, 0.22);
  border-left: 3px solid #825EE7;
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.problem-card__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #825EE7;
  margin-bottom: 12px;
}

.problem-card__text {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
}

.problem-card__text strong {
  color: #ffffff;
}

.problem__empathy {
  text-align: center;
  max-width: 720px;
  margin: 44px auto 0;
  font-size: 1.15rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
}

.problem__empathy strong {
  color: #ffffff;
}

/* ===========================
   Plan (3 simple steps)
   =========================== */
.plan {
  padding: 96px 0;
  background: linear-gradient(135deg, #100329 0%, #1a0a3e 100%);
}

.plan__header {
  text-align: center;
  margin-bottom: 56px;
}

.plan__header .section-title,
.plan__header .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

.plan__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.plan-step {
  position: relative;
  background: linear-gradient(160deg, rgba(130, 94, 231, 0.16) 0%, rgba(130, 94, 231, 0.04) 100%);
  border: 1px solid rgba(130, 94, 231, 0.28);
  border-radius: 16px;
  padding: 46px 28px 30px;
  text-align: center;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.28);
  transition: all 0.3s ease;
}

.plan-step:hover {
  transform: translateY(-6px);
  border-color: rgba(130, 94, 231, 0.5);
  box-shadow: 0 16px 48px rgba(83, 56, 158, 0.3);
}

.plan-step__number {
  position: absolute;
  top: -26px;
  left: 50%;
  transform: translateX(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(135deg, #6941C6 0%, #53389E 100%);
  border: 4px solid #100329;
  box-shadow: 0 8px 24px rgba(83, 56, 158, 0.5);
}

.plan-step__title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
}

.plan-step__text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
}

.plan__cta {
  text-align: center;
}

/* ===========================
   Stakes (cost of inaction)
   =========================== */
.stakes {
  padding: 96px 0;
  background: linear-gradient(180deg, #1a0a3e 0%, #100329 100%);
}

.stakes__inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.stakes__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 40px;
  text-align: left;
}

.stakes__item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: linear-gradient(155deg, rgba(255, 107, 107, 0.10) 0%, rgba(255, 107, 107, 0.02) 100%);
  border: 1px solid rgba(255, 107, 107, 0.22);
  border-radius: 12px;
  padding: 22px 24px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
}

.stakes__icon {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  margin-top: 1px;
}

.stakes__icon svg {
  width: 26px;
  height: 26px;
  stroke: #ff6b6b;
  fill: none;
}

.stakes__item-text {
  font-size: 0.98rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
}

.stakes__item-text strong {
  color: #ffffff;
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 992px) {
  .lifecycle__flow {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .lifecycle__flow::before {
    display: none;
  }
  .capabilities__grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
  .problem__grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
  .plan__grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto 48px;
    row-gap: 44px;
  }
  .stakes__list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .lifecycle,
  .capabilities,
  .problem,
  .plan,
  .stakes {
    padding: 64px 0;
  }
}

@media (max-width: 480px) {
  .lifecycle__flow {
    grid-template-columns: 1fr;
    max-width: 340px;
    margin: 0 auto;
  }
}
