/* Hero Text Sharpening */
.moltbot-hero__title {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
  letter-spacing: -0.04em;
  line-height: 1.0;
}

/* Workflow Showcase - Before/After Component */

.workflow-showcase {
  background: #0a0a0f;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  padding: 0;
  margin: 2rem 0;
  overflow: hidden;
}

.workflow-showcase__header {
  padding: 2rem;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
}

.workflow-showcase__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.5rem;
}

.workflow-showcase__subtitle {
  font-size: 1rem;
  color: #9ca3af;
  margin: 0;
}

/* Category Tabs */
.workflow-showcase__categories {
  display: flex;
  gap: 0;
  overflow-x: auto;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: #050508;
  padding: 0 1rem;
}

.workflow-showcase__categories::-webkit-scrollbar {
  display: none;
}

.workflow-category-tab {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: #9ca3af;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.workflow-category-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.03);
}

.workflow-category-tab--active {
  color: #22d3ee;
  border-bottom-color: #22d3ee;
  background: rgba(34, 211, 238, 0.05);
}

.workflow-category-tab__count {
  padding: 0.15rem 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
}

.workflow-category-tab--active .workflow-category-tab__count {
  background: rgba(34, 211, 238, 0.2);
  color: #22d3ee;
}

/* Workflow Grid */
.workflow-showcase__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem;
  padding: 1.5rem;
}

@media (max-width: 768px) {
  .workflow-showcase__grid {
    grid-template-columns: 1fr;
    padding: 1rem;
  }
}

/* Workflow Card */
.workflow-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.75rem;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.workflow-card:hover {
  border-color: rgba(34, 211, 238, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.workflow-card--expanded {
  border-color: rgba(34, 211, 238, 0.5);
  box-shadow: 0 8px 40px rgba(34, 211, 238, 0.1);
}

.workflow-card__header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
}

.workflow-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(34, 211, 238, 0.1);
  border-radius: 0.5rem;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.workflow-card__info {
  flex: 1;
  min-width: 0;
}

.workflow-card__title {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 0.25rem;
}

.workflow-card__desc {
  font-size: 0.85rem;
  color: #9ca3af;
  margin: 0;
  line-height: 1.4;
}

.workflow-card__expand {
  color: #9ca3af;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.workflow-card__expand--rotated {
  transform: rotate(180deg);
}

/* Before/After Comparison */
.workflow-card__comparison {
  overflow: hidden;
}

.workflow-card__comparison-inner {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.comparison-section {
  padding: 1rem 1.25rem;
}

.comparison-section--before {
  background: rgba(248, 113, 113, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.comparison-section--after {
  background: rgba(34, 211, 238, 0.05);
}

.comparison-section__header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.comparison-section__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.comparison-section--before .comparison-section__badge {
  background: rgba(248, 113, 113, 0.2);
  color: #f87171;
}

.comparison-section--after .comparison-section__badge {
  background: rgba(34, 211, 238, 0.2);
  color: #22d3ee;
}

.comparison-section__title {
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  margin: 0;
}

.comparison-section--before .comparison-section__title {
  color: #fca5a5;
}

.comparison-section--after .comparison-section__title {
  color: #67e8f9;
}

/* Requirements/Tools List */
.requirements-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.requirements-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #d1d5db;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.requirements-list li:last-child {
  margin-bottom: 0;
}

.requirements-list li svg {
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.comparison-section--before .requirements-list li svg {
  color: #f87171;
}

.comparison-section--after .requirements-list li svg {
  color: #22d3ee;
}

/* Code snippet in comparison */
.comparison-code {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 0.375rem;
  padding: 0.75rem;
  margin-top: 0.75rem;
  font-family: 'DM Mono', 'Fira Code', monospace;
  font-size: 0.7rem;
  color: #a8b2c3;
  overflow-x: auto;
  white-space: pre;
}

/* Datasources Pills */
.datasources {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-top: 0.5rem;
}

.datasource-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.5rem;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 999px;
  font-size: 0.65rem;
  color: #c4b5fd;
  font-weight: 500;
}

.datasource-arrow {
  color: #9ca3af;
  font-size: 0.6rem;
}

/* Stats Footer */
.workflow-showcase__footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.workflow-stat {
  text-align: center;
}

.workflow-stat__value {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  color: #22d3ee;
  font-family: 'DM Mono', 'Fira Code', monospace;
}

.workflow-stat__label {
  font-size: 0.8rem;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* CTA in showcase */
.workflow-showcase__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem;
  background: rgba(34, 211, 238, 0.03);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.workflow-showcase__cta-text {
  font-size: 1.1rem;
  color: #fff;
  margin: 0;
}

.workflow-showcase__cta-text strong {
  color: #22d3ee;
}

/* Animation classes for Framer Motion fallback */
@media (prefers-reduced-motion: reduce) {
  .workflow-card,
  .workflow-card__expand,
  .workflow-category-tab {
    transition: none;
  }
}

/* Loading state */
.workflow-showcase__loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem;
  color: #9ca3af;
}

.workflow-showcase__loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(34, 211, 238, 0.2);
  border-top-color: #22d3ee;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
