/* ============================================================
   SOLUTIONS.CSS — Platform Solutions pages
   Used by: body.page-solutions
   Covers: Salesforce, Conga+PROS, Oracle solution sub-pages
   Depends on: base.css for all design tokens
   ============================================================ */

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

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

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

.sol-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;
}

.sol-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;
}

.sol-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;
}

.sol-hero-logos {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  animation: solHeroFadeUp 0.6s 0.05s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.sol-hero-logo {
  height: 36px;
  width: auto;
  opacity: 0.85;
  filter: none;
}

.sol-hero-logo--color {
  filter: none;
  opacity: 0.9;
}

.sol-hero-logo--dark {
  opacity: 1;
}

.sol-hero-logo-sep {
  width: 1px;
  height: 32px;
  background: var(--border-strong);
}

.sol-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: solHeroFadeUp 0.6s 0.1s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.sol-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: solHeroFadeUp 0.6s 0.18s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.sol-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: solHeroFadeUp 0.6s 0.28s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

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

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

/* ── PARTNERSHIP OVERVIEW ─────────────────────────────────── */
.sol-overview {
  background: var(--white);
  padding: var(--section-pad);
}

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

.sol-overview-copy .section-label { margin-bottom: 12px; }
.sol-overview-copy .section-title { margin-bottom: 16px; }

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

.sol-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.sol-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-family: Inter, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sol-badge--primary {
  background: var(--purple-light);
  color: var(--purple);
  border: 1px solid rgba(107,72,255,0.2);
}

.sol-badge--teal {
  background: rgba(0,180,216,0.08);
  color: #0097B2;
  border: 1px solid rgba(0,180,216,0.2);
}

.sol-badge--green {
  background: #DCFCE7;
  color: #16A34A;
  border: 1px solid #BBF7D0;
}

.sol-overview-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.sol-overview-stat {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 20px 22px;
  text-align: center;
}

.sol-overview-stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 38px;
  font-weight: 800;
  background: var(--gradient-ai);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 4px;
  display: block;
}

.sol-overview-stat-label {
  font-family: Inter, sans-serif;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ── SOLUTION SCOPE ───────────────────────────────────────── */
.sol-scope {
  background: var(--bg);
  padding: var(--section-pad);
}

.sol-scope-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.sol-scope-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

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

.sol-scope-card:hover {
  border-color: var(--purple);
  box-shadow: 0 8px 32px rgba(107,72,255,0.10);
  transform: translateY(-3px);
}

.sol-scope-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: 16px;
  flex-shrink: 0;
}
.sol-scope-icon svg { width: 26px; height: 26px; flex-shrink: 0; }

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

.sol-scope-desc {
  font-family: Inter, sans-serif;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.sol-scope-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sol-scope-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: Inter, sans-serif;
  font-size: 12.5px;
  color: var(--text-secondary);
}

.sol-scope-list li::before {
  content: '';
  width: 5px;
  height: 5px;
  min-width: 5px;
  border-radius: 50%;
  background: var(--purple);
}

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

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

.sol-feature-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 22px 24px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.sol-feature-icon {
  width: 52px;
  height: 52px;
  min-width: 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);
  flex-shrink: 0;
}
.sol-feature-icon svg { width: 26px; height: 26px; flex-shrink: 0; }

.sol-feature-body { flex: 1; }

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

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

/* ── INTEGRATION & TECH ───────────────────────────────────── */
.sol-tech {
  background: var(--bg);
  padding: var(--section-pad);
}

.sol-tech-layout {
  display: grid;
  /*grid-template-columns: 1fr 1fr;*/
  gap: 64px;
  align-items: center;
  margin-top: 48px;
}

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

.sol-tech-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sol-tech-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-family: Inter, sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: border-color 0.15s ease, color 0.15s ease;
}

.sol-tech-chip:hover {
  border-color: var(--purple);
  color: var(--purple);
}

.sol-tech-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card-lg);
  padding: 32px;
}

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

.sol-tech-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: var(--bg);
  border-radius: 10px;
  margin-bottom: 8px;
}

.sol-tech-row:last-child { margin-bottom: 0; }

.sol-tech-row-label {
  font-family: Inter, sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-primary);
}

.sol-tech-row-badge {
  font-family: Inter, sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--purple);
  background: var(--purple-light);
  border: 1px solid rgba(107,72,255,0.2);
  padding: 2px 9px;
  border-radius: var(--radius-pill);
}

/* ── CUSTOMER RESULTS ─────────────────────────────────────── */
.sol-results {
  background: var(--white);
  padding: var(--section-pad);
}

.sol-results-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  max-width: 900px;
  margin: 48px auto 0;
  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;
}

.sol-result-item {
  padding: 32px 28px;
  border-right: 1px solid var(--border);
  text-align: center;
}

.sol-result-item:last-child { border-right: none; }

.sol-result-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;
  display: block;
}

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

.sol-result-client {
  font-family: Inter, sans-serif;
  font-size: 11.5px;
  color: var(--text-muted);
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .sol-scope-grid       { grid-template-columns: repeat(2, 1fr); }
  .sol-scope-grid--3    { grid-template-columns: repeat(2, 1fr); }
  .sol-overview-grid    { grid-template-columns: 1fr; gap: 40px; }
  .sol-tech-layout      { grid-template-columns: 1fr; gap: 40px; }
  .sol-results-grid     { grid-template-columns: repeat(2, 1fr); }
  .sol-result-item:nth-child(2) { border-right: none; }
  .sol-result-item:nth-child(1),
  .sol-result-item:nth-child(2) { border-bottom: 1px solid var(--border); }
}

@media (max-width: 768px) {
  .sol-hero {
    padding: calc(var(--nav-h) + 16px) 24px 100px;
  }

  .sol-hero-title { font-size: clamp(30px, 8vw, 46px); }
  .sol-hero-desc  { font-size: 15px; }

  .sol-overview,
  .sol-scope,
  .sol-features,
  .sol-tech,
  .sol-results { padding: 64px 24px; }

  .sol-scope-grid       { grid-template-columns: 1fr; }
  .sol-scope-grid--3    { grid-template-columns: 1fr; }
  .sol-feature-grid     { grid-template-columns: 1fr; }
  .sol-results-grid     { grid-template-columns: 1fr; max-width: 100%; }
  .sol-result-item      { border-right: none; border-bottom: 1px solid var(--border); }
  .sol-result-item:last-child { border-bottom: none; }
  .sol-overview-stats   { grid-template-columns: 1fr; }
  .sol-tech-panel       { margin-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .sol-scope-card,
  .sol-feature-card,
  .sol-tech-chip { transition: none; }
}
