/**
 * Fundwork — additional styles.
 * Styles for the new "AI era / projects find specialists" block only.
 */

/* Main section wrapper for the new AI-era block. */
.ai-era-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 90% 10%, rgba(99, 102, 241, 0.14), transparent 28%),
    radial-gradient(circle at 8% 90%, rgba(16, 185, 129, 0.09), transparent 26%),
    #f8f9ff;
  border-top: 1px solid rgba(99, 102, 241, 0.08);
  border-bottom: 1px solid rgba(99, 102, 241, 0.08);
}

/* Large card containing the text and illustration. */
.ai-era-card {
  position: relative;
  min-height: 430px;
  padding: 58px 64px;
  overflow: hidden;
  border: 1px solid rgba(99, 102, 241, 0.16);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 28px 80px rgba(55, 48, 163, 0.10);
}

/* Small label above the title. */
.ai-era-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 13px;
  border-radius: 999px;
  background: #eef2ff;
  color: #4f46e5;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
}

/* Icon inside the section label. */
.ai-era-kicker svg {
  width: 17px;
  height: 17px;
}

/* Main title of the AI-era block. */
.ai-era-content h2 {
  max-width: 800px;
  margin-top: 18px;
  font-size: clamp(38px, 3.3vw, 58px);
  line-height: 1.03;
  font-weight: 900;
  letter-spacing: -0.045em;
  color: #111827;
}

/* Highlighted part of the title. */
.ai-era-content h2 span {
  color: #5b5ce2;
}

/* Supporting paragraphs in the new block. */
.ai-era-content > p {
  max-width: 790px;
  margin-top: 22px;
  color: #64748b;
  font-size: 17px;
  line-height: 1.75;
}

/* Visual comparison between the old and new marketplace models. */
.ai-era-thesis {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  padding: 12px;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

/* Both model labels in the comparison row. */
.ai-era-old,
.ai-era-new {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 58px;
  padding: 12px 16px;
  border-radius: 13px;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

/* Old marketplace model label. */
.ai-era-old {
  color: #64748b;
  background: #fff;
  text-decoration: line-through;
  text-decoration-color: #f87171;
  text-decoration-thickness: 2px;
}

/* New Fundwork marketplace model label. */
.ai-era-new {
  color: #4338ca;
  background: #eef2ff;
  box-shadow: inset 0 0 0 1px rgba(99, 102, 241, .14);
}

/* Icons inside both comparison labels. */
.ai-era-old svg,
.ai-era-new svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

/* Arrow between old and new models. */
.ai-era-arrow {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  color: #818cf8;
}

/* Final explanatory paragraph. */
.ai-era-content .ai-era-final {
  color: #334155;
  font-weight: 600;
}

/* Right-side conceptual illustration. */
.ai-era-visual {
  position: relative;
  min-height: 330px;
}

/* Central AI node in the illustration. */
.ai-era-orb {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  display: grid;
  width: 112px;
  height: 112px;
  place-items: center;
  transform: translate(-50%, -50%);
  border-radius: 32px;
  color: #fff;
  background: linear-gradient(145deg, #6366f1, #8b5cf6);
  box-shadow: 0 22px 50px rgba(99, 102, 241, .30);
}

/* AI icon size. */
.ai-era-orb svg {
  width: 48px;
  height: 48px;
}

/* Project card positioned above the AI node. */
.ai-era-project {
  position: absolute;
  z-index: 4;
  top: 5px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 17px;
  transform: translateX(-50%);
  border: 1px solid #ddd6fe;
  border-radius: 14px;
  color: #4f46e5;
  background: #fff;
  box-shadow: 0 12px 35px rgba(30, 41, 59, .10);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
}

/* Project-card icon. */
.ai-era-project svg {
  width: 19px;
  height: 19px;
}

/* Candidate nodes around the AI node. */
.ai-era-person {
  position: absolute;
  z-index: 4;
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border: 6px solid #fff;
  border-radius: 50%;
  color: #64748b;
  background: #e2e8f0;
  box-shadow: 0 10px 30px rgba(30, 41, 59, .13);
}

/* Candidate icon size. */
.ai-era-person svg {
  width: 25px;
  height: 25px;
}

/* First candidate position. */
.person-one {
  left: 2%;
  bottom: 38px;
}

/* Second candidate position. */
.person-two {
  right: 1%;
  bottom: 38px;
}

/* Selected candidate position and emphasis. */
.person-three {
  right: 10%;
  top: 70px;
  width: 74px;
  height: 74px;
  color: #047857;
  background: #d1fae5;
  box-shadow: 0 12px 34px rgba(16, 185, 129, .22);
}

/* Decorative connector lines between project, AI and specialists. */
.ai-era-line {
  position: absolute;
  z-index: 1;
  height: 2px;
  transform-origin: left center;
  background: linear-gradient(90deg, rgba(99, 102, 241, .08), rgba(99, 102, 241, .45));
}

/* Connector line to the first candidate. */
.line-one {
  left: 17%;
  bottom: 85px;
  width: 35%;
  transform: rotate(-22deg);
}

/* Connector line to the second candidate. */
.line-two {
  left: 51%;
  bottom: 86px;
  width: 34%;
  transform: rotate(22deg);
}

/* Connector line to the selected candidate. */
.line-three {
  left: 53%;
  top: 142px;
  width: 29%;
  transform: rotate(-17deg);
  background: linear-gradient(90deg, rgba(16, 185, 129, .15), rgba(16, 185, 129, .65));
}
