/*** AI Solutions Page — page-scoped styles (loaded only by ai-solutions.html) ***/

/* Scoped Roboto typography — this page only, rest of the site keeps its
   existing Open Sans / Playfair Display identity */
body.ai-solutions-page {
  font-family: "Roboto", sans-serif;
}

body.ai-solutions-page h1,
body.ai-solutions-page h2,
body.ai-solutions-page h3,
body.ai-solutions-page h4,
body.ai-solutions-page h5,
body.ai-solutions-page h6 {
  font-family: "Roboto", sans-serif;
  color: #1F2937;
}

body.ai-solutions-page .section-title .sub-style,
body.ai-solutions-page .sub-title {
  font-family: "Roboto", sans-serif;
}

/*** Shared surface tokens ***/
.ai-solutions-page .ai-card {
  background: #ffffff;
  border: 1px solid rgba(109, 40, 217, 0.12);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(109, 40, 217, 0.06);
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.ai-solutions-page .ai-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(109, 40, 217, 0.14);
}

.ai-solutions-page .ai-section {
  padding: 80px 0;
}

.ai-solutions-page .ai-section-alt {
  background: linear-gradient(180deg, #FAF7FF 0%, #ffffff 100%);
}

/*** Hero Start ***/
.ai-hero {
  padding: 170px 0 100px 0;
  background: radial-gradient(circle at 85% 20%, rgba(196, 181, 253, 0.35), transparent 55%),
    linear-gradient(180deg, #ffffff 0%, #FAF7FF 100%);
  overflow: hidden;
}

.ai-hero .ai-hero-subtitle {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #4B5563;
  max-width: 560px;
}

.ai-hero-graphic {
  width: 100%;
  height: auto;
}

.ai-hero-graphic circle.ai-node {
  animation: ai-node-pulse 3.6s ease-in-out infinite;
}

.ai-hero-graphic circle.ai-node:nth-child(2n) {
  animation-delay: 0.6s;
}

.ai-hero-graphic circle.ai-node:nth-child(3n) {
  animation-delay: 1.2s;
}

@keyframes ai-node-pulse {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 0.4; }
}

@media (prefers-reduced-motion: reduce) {
  .ai-hero-graphic circle.ai-node {
    animation: none;
  }
}
/*** Hero End ***/

/*** Feature / Product Overview cards reuse .service-item styling from
     style.css — no extra overrides needed here. ***/

/*** Flow Diagram Start — reused for DocParser flow, ConversaAI workflow,
     and both architecture diagrams ***/
.flow-diagram {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0;
  overflow-x: auto;
  padding: 8px 4px 24px 4px;
}

.flow-step {
  flex: 0 0 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 16px;
  background: #ffffff;
  border: 1px solid rgba(109, 40, 217, 0.15);
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(109, 40, 217, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.flow-step:hover {
  transform: translateY(-4px);
  border-color: rgba(109, 40, 217, 0.35);
  box-shadow: 0 14px 28px rgba(109, 40, 217, 0.12);
}

.flow-step .flow-step-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #FAF7FF;
  margin-bottom: 14px;
  color: #6D28D9;
  font-size: 1.35rem;
}

.flow-step .flow-step-label {
  font-weight: 600;
  font-size: 0.95rem;
  color: #1F2937;
  margin: 0;
}

.flow-connector {
  flex: 0 0 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #C4B5FD;
  font-size: 1.25rem;
}

@media (max-width: 768px) {
  .flow-diagram {
    flex-direction: column;
    overflow-x: visible;
  }

  .flow-step {
    flex: 1 1 auto;
    width: 100%;
  }

  .flow-connector {
    flex: 0 0 auto;
    padding: 6px 0;
    transform: rotate(90deg);
  }
}
/*** Flow Diagram End ***/

/*** Tech Stack Start ***/
.tech-category-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #6D28D9;
  margin-bottom: 16px;
}

.tech-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  height: 100%;
}

.tech-badge i {
  font-size: 1.1rem;
  color: #6D28D9;
  flex: 0 0 auto;
}

.tech-badge span {
  font-weight: 500;
  color: #1F2937;
  font-size: 0.95rem;
}
/*** Tech Stack End ***/

/*** Structured Cards (AI Agents / AI Models) Start ***/
.structured-card {
  padding: 32px 28px;
  height: 100%;
}

.structured-card .structured-card-icon {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: #FAF7FF;
  color: #6D28D9;
  font-size: 1.3rem;
  margin-bottom: 18px;
}

.structured-card h5 {
  margin-bottom: 16px;
}

.structured-card .structured-row {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid rgba(109, 40, 217, 0.08);
  font-size: 0.9rem;
}

.structured-card .structured-row:first-of-type {
  border-top: none;
}

.structured-card .structured-row-label {
  flex: 0 0 130px;
  font-weight: 600;
  color: #6D28D9;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.5px;
  padding-top: 2px;
}

.structured-card .structured-row-value {
  color: #4B5563;
  flex: 1 1 auto;
}
/*** Structured Cards End ***/

/*** Case Study Accordion Start ***/
.case-study-item {
  background: #ffffff;
  border: 1px solid rgba(109, 40, 217, 0.15);
  border-radius: 16px;
  margin-bottom: 20px;
  overflow: hidden;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.case-study-item:hover {
  box-shadow: 0 14px 30px rgba(109, 40, 217, 0.1);
  border-color: rgba(109, 40, 217, 0.3);
}

.case-study-header {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  padding: 24px 28px;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
}

.case-study-header .case-study-icon {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #FAF7FF;
  color: #6D28D9;
  font-size: 1.2rem;
}

.case-study-header .case-study-heading {
  flex: 1 1 auto;
}

.case-study-header .case-study-heading h5 {
  margin: 0 0 4px 0;
}

.case-study-header .case-study-heading p {
  margin: 0;
  color: #6B7280;
  font-size: 0.9rem;
}

.case-study-header .case-study-chevron {
  flex: 0 0 auto;
  color: #6D28D9;
  transition: transform 0.3s ease;
}

.case-study-header[aria-expanded="true"] .case-study-chevron {
  transform: rotate(180deg);
}

.case-study-body-inner {
  padding: 4px 28px 28px 28px;
  border-top: 1px solid rgba(109, 40, 217, 0.1);
}

.case-study-field {
  padding: 14px 0;
}

.case-study-field-label {
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #6D28D9;
  margin-bottom: 6px;
}

.case-study-field-value {
  color: #4B5563;
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0;
}
/*** Case Study Accordion End ***/

/*** Metrics Dashboard Start ***/
.metric-card {
  padding: 36px 20px;
  text-align: center;
}

.metric-card .metric-icon {
  color: #C4B5FD;
  font-size: 1.5rem;
  margin-bottom: 14px;
}

.metric-card .counter-value {
  display: block;
  font-size: 2.4rem;
  font-weight: 700;
  color: #6D28D9;
  line-height: 1.2;
}

.metric-card .metric-label {
  color: #6B7280;
  font-size: 0.9rem;
  margin: 6px 0 0 0;
}
/*** Metrics Dashboard End ***/
