/* ============================================================
   FORSYS-SOLUTIONS.CSS — Forsys AI Product pages
   Used by: body.page-fs
   Covers: RevRamp, LexiShift, RevMove, MnA for Salesforce, AITest, AI Agents
   Depends on: base.css for all design tokens
   ============================================================ */

/* ── HERO ─────────────────────────────────────────────────── */

@keyframes fsHeroFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fs-hero {
  background: var(--gradient-hero);
  padding: calc(var(--nav-h) + 32px) 48px 160px;
  position: relative;
  overflow: hidden;
}

.fs-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(107,72,255,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.fs-hero::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0; height: 80px;
  background: var(--white);
  clip-path: ellipse(55% 100% at 50% 100%);
  pointer-events: none;
}

.fs-hero-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.fs-hero-product {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  animation: fsHeroFadeUp 0.6s 0.05s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.fs-hero-product-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--purple-light);
  border: 1px solid rgba(107,72,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple);
}
.fs-hero-product-icon svg { width: 26px; height: 26px; flex-shrink: 0; }

.fs-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--purple-light);
  border: 1px solid rgba(107,72,255,0.25);
  color: var(--purple);
  font-family: Inter, sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
  animation: fsHeroFadeUp 0.6s 0.1s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.fs-hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(42px, 5.8vw, 80px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.038em;
  color: var(--text-primary);
  margin: 0 auto 20px;
  max-width: 860px;
  animation: fsHeroFadeUp 0.6s 0.18s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.fs-hero-desc {
  font-family: Inter, sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto 36px;
  animation: fsHeroFadeUp 0.6s 0.28s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.fs-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  animation: fsHeroFadeUp 0.6s 0.38s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.fs-hero .btn-hero-primary {
  background: var(--purple); color: #fff;
  box-shadow: 0 6px 24px var(--purple-glow);
}
.fs-hero .btn-hero-primary:hover {
  background: var(--purple-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 32px var(--purple-glow);
}
.fs-hero .btn-hero-secondary {
  color: var(--text-secondary);
  border: 1.5px solid var(--border-strong);
  background: rgba(255,255,255,0.7);
}
.fs-hero .btn-hero-secondary:hover {
  color: var(--text-primary);
  border-color: var(--purple);
  background: var(--white);
}

/* ── PROBLEM STATEMENT ───────────────────────────────────── */
.fs-problem {
  background: var(--white);
  padding: var(--section-pad);
}

.fs-problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.fs-problem-copy .section-label { margin-bottom: 12px; }
.fs-problem-copy .section-title { margin-bottom: 16px; }

.fs-problem-desc {
  font-family: Inter, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.fs-pain-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fs-pain-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 16px 18px;
}

.fs-pain-icon {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 8px;
  background: rgba(255, 59, 48, 0.08);
  border: 1px solid rgba(255, 59, 48, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #E03131;
}

.fs-pain-text {
  font-family: Inter, sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.5;
}

.fs-problem-visual {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card-lg);
  padding: 32px;
}

.fs-problem-visual-title {
  font-family: Inter, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.fs-before-after {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
}

.fs-ba-col {
  background: var(--white);
  border-radius: 12px;
  padding: 16px;
}

.fs-ba-label {
  font-family: Inter, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.fs-ba-label--before { color: #E03131; }
.fs-ba-label--after  { color: #16A34A; }

.fs-ba-items {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fs-ba-items li {
  font-family: Inter, sans-serif;
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.fs-ba-items--before li::before {
  content: '';
  width: 6px; height: 6px; min-width: 6px;
  border-radius: 50%;
  background: #E03131;
}

.fs-ba-items--after li::before {
  content: '';
  width: 6px; height: 6px; min-width: 6px;
  border-radius: 50%;
  background: #16A34A;
}

.fs-ba-arrow {
  color: var(--purple);
  font-size: 20px;
  font-weight: 300;
  text-align: center;
}

/* ── HOW IT WORKS ─────────────────────────────────────────── */
.fs-how {
  background: var(--bg);
  padding: var(--section-pad);
}

.fs-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
  position: relative;
}

.fs-steps::before {
  content: '';
  position: absolute;
  top: 32px;
  left: calc(16.66% + 24px);
  right: calc(16.66% + 24px);
  height: 2px;
  background: linear-gradient(90deg, var(--purple) 0%, var(--teal) 100%);
  opacity: 0.25;
}

.fs-step {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 28px 24px;
  text-align: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.fs-step:hover {
  border-color: var(--purple);
  box-shadow: 0 8px 32px rgba(107,72,255,0.10);
}

.fs-step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-ai);
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.fs-step-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.fs-step-desc {
  font-family: Inter, sans-serif;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ── FEATURES ─────────────────────────────────────────────── */
.fs-features {
  background: var(--white);
  padding: var(--section-pad);
}

.fs-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}

.fs-feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 24px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.fs-feature-card:hover {
  border-color: var(--purple);
  box-shadow: 0 6px 24px rgba(107,72,255,0.09);
  transform: translateY(-3px);
}

.fs-feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--purple-light);
  border: 1.5px solid rgba(107,72,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple);
  margin-bottom: 14px;
  flex-shrink: 0;
}
.fs-feature-icon svg { width: 26px; height: 26px; flex-shrink: 0; }

.fs-feature-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.fs-feature-desc {
  font-family: Inter, sans-serif;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ── USE CASES ────────────────────────────────────────────── */
.fs-usecases {
  background: var(--bg);
  padding: var(--section-pad);
}

.fs-usecase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.fs-usecase-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 24px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.fs-usecase-card:hover {
  border-color: var(--purple);
  box-shadow: 0 6px 24px rgba(107,72,255,0.08);
}

.fs-usecase-industry {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--purple-light);
  color: var(--purple);
  border: 1px solid rgba(107,72,255,0.2);
  font-family: Inter, sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
}

.fs-usecase-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.3;
}

.fs-usecase-desc {
  font-family: Inter, sans-serif;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ── ROI / OUTCOMES ───────────────────────────────────────── */
.fs-outcomes {
  background: var(--white);
  padding: var(--section-pad);
}

.fs-outcomes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 48px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card-lg);
  box-shadow: 0 8px 32px rgba(13,13,43,0.07);
  overflow: hidden;
}

.fs-outcome-item {
  padding: 32px 24px;
  border-right: 1px solid var(--border);
  text-align: center;
}

.fs-outcome-item:last-child { border-right: none; }

.fs-outcome-stat {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 48px;
  font-weight: 800;
  background: var(--gradient-ai);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
}

.fs-outcome-desc {
  font-family: Inter, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 5px;
  line-height: 1.4;
}

.fs-outcome-source {
  font-family: Inter, sans-serif;
  font-size: 11.5px;
  color: var(--text-muted);
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .fs-problem-grid   { grid-template-columns: 1fr; gap: 40px; }
  .fs-feature-grid   { grid-template-columns: repeat(2, 1fr); }
  .fs-outcomes-grid  { grid-template-columns: repeat(2, 1fr); }
  .fs-outcome-item:nth-child(2) { border-right: none; }
  .fs-outcome-item:nth-child(1),
  .fs-outcome-item:nth-child(2) { border-bottom: 1px solid var(--border); }
}

@media (max-width: 768px) {
  .fs-hero { padding: calc(var(--nav-h) + 16px) 24px 100px; }
  .fs-hero-title { font-size: clamp(30px, 8vw, 46px); }
  .fs-hero-desc  { font-size: 15px; }
  .fs-problem,
  .fs-how,
  .fs-features,
  .fs-usecases,
  .fs-outcomes { padding: 64px 24px; }
  .fs-steps          { grid-template-columns: 1fr; }
  .fs-steps::before  { display: none; }
  .fs-feature-grid   { grid-template-columns: 1fr; }
  .fs-usecase-grid   { grid-template-columns: 1fr; }
  .fs-outcomes-grid  { grid-template-columns: 1fr; }
  .fs-outcome-item   { border-right: none; border-bottom: 1px solid var(--border); }
  .fs-outcome-item:last-child { border-bottom: none; }
  .fs-before-after   { grid-template-columns: 1fr; }
  .fs-ba-arrow       { transform: rotate(90deg); }
}

@media (prefers-reduced-motion: reduce) {
  .fs-feature-card,
  .fs-step,
  .fs-usecase-card { transition: none; }
}
