/**
 * Deferred CSS
 * Non-critical styles loaded asynchronously
 * These load after first paint
 */

/* =====================
   Services Section
   ===================== */
.services {
  padding: 5rem 0;
  background: #fff;
}

.services__grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.service-card {
  padding: 2rem;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  transition: all 0.3s;
}

.service-card:hover {
  border-color: #4361ee;
  box-shadow: 0 10px 40px rgba(67, 97, 238, 0.1);
  transform: translateY(-4px);
}

.service-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f4ff;
  border-radius: 12px;
  color: #4361ee;
  margin-bottom: 1.25rem;
}

.service-card__title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text, #1d1d1f);
  margin-bottom: 0.75rem;
}

.service-card__desc {
  color: var(--color-text-muted, #666);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: #4361ee;
  transition: gap 0.2s;
}

.service-card__link:hover {
  gap: 0.75rem;
}

/* =====================
   Stats Section
   ===================== */
.stats {
  padding: 4rem 0;
  background: #1a1a2e;
}

.stats__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(2, 1fr);
  text-align: center;
}

@media (min-width: 768px) {
  .stats__container {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat__number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.5rem;
}

.stat__label {
  color: #aaa;
  font-size: 0.9375rem;
}

/* =====================
   How It Works
   ===================== */
.how-it-works {
  padding: 5rem 0;
  background: #fff;
}

.steps {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.step {
  text-align: center;
  padding: 2rem;
}

.step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: #4361ee;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  border-radius: 50%;
  margin-bottom: 1.5rem;
}

.step__title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text, #1d1d1f);
  margin-bottom: 0.75rem;
}

.step__desc {
  color: var(--color-text-muted, #666);
}

/* =====================
   Technologies
   ===================== */
.technologies {
  padding: 5rem 0;
  background: #f8f9ff;
}

.technologies__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.tech-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.tech-category {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.tech-category__title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text, #1d1d1f);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #4361ee;
}

.tech-category__list {
  list-style: none;
}

.tech-category__list li {
  padding: 0.5rem 0;
  color: var(--color-text-muted, #666);
  border-bottom: 1px solid #eee;
}

.tech-category__list li:last-child {
  border-bottom: none;
}

/* =====================
   Benefits
   ===================== */
.benefits {
  padding: 5rem 0;
  background: #fff;
}

.benefits__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.benefits__grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.benefit-card {
  padding: 1.75rem;
  background: #f8f9ff;
  border-radius: 12px;
  border-left: 4px solid #4361ee;
}

.benefit-card__title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text, #1d1d1f);
  margin-bottom: 0.5rem;
}

.benefit-card__desc {
  color: var(--color-text-muted, #666);
  line-height: 1.6;
}

/* =====================
   Engagement Models
   ===================== */
.engagement {
  padding: 5rem 0;
  background: #f8f9ff;
}

.engagement__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.engagement__grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.engagement-card {
  position: relative;
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid #eee;
  text-align: center;
}

.engagement-card--featured {
  border-color: #4361ee;
  box-shadow: 0 10px 40px rgba(67, 97, 238, 0.15);
}

.engagement-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #4361ee;
  color: #fff;
  padding: 0.25rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.engagement-card__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text, #1d1d1f);
  margin-bottom: 0.75rem;
}

.engagement-card__desc {
  color: var(--color-text-muted, #666);
  margin-bottom: 1.5rem;
}

.engagement-card__features {
  list-style: none;
  text-align: left;
  margin-bottom: 2rem;
}

.engagement-card__features li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--color-text-muted, #666);
}

.engagement-card__features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #4361ee;
  font-weight: 700;
}

/* =====================
   FAQ Section
   ===================== */
.faq {
  padding: 5rem 0;
  background: #fff;
}

.faq__container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
}

.faq-item__question {
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  color: var(--color-text, #1d1d1f);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
}

.faq-item__question::-webkit-details-marker {
  display: none;
}

.faq-item__question::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 400;
  color: #4361ee;
  transition: transform 0.2s;
}

.faq-item[open] .faq-item__question::after {
  content: "−";
}

.faq-item__answer {
  padding: 0 1.5rem 1.25rem;
  color: var(--color-text-muted, #666);
  line-height: 1.7;
}

/* =====================
   CTA Section
   ===================== */
.cta {
  padding: 5rem 0;
  background: linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%);
  text-align: center;
}

.cta__container {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.cta__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
}

.cta__text {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

.cta .btn--primary {
  background: #fff;
  color: #4361ee;
  border-color: #fff;
}

.cta .btn--primary:hover {
  background: rgba(255, 255, 255, 0.9);
}

/* =====================
   Footer
   ===================== */
.fast-footer {
  background: #1a1a2e;
  color: #fff;
  padding: 4rem 0 0;
}

.fast-footer__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.fast-footer__top {
  display: grid;
  gap: 2rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
  .fast-footer__top {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.fast-footer__logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  display: block;
  margin-bottom: 1rem;
}

.fast-footer__tagline {
  color: #aaa;
  line-height: 1.6;
}

.fast-footer__heading {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.fast-footer__links ul,
.fast-footer__contact ul {
  list-style: none;
}

.fast-footer__links li,
.fast-footer__contact li {
  margin-bottom: 0.75rem;
}

.fast-footer__links a,
.fast-footer__contact a {
  color: #aaa;
  transition: color 0.2s;
}

.fast-footer__links a:hover,
.fast-footer__contact a:hover {
  color: #fff;
}

.fast-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 0;
}

.fast-footer__copyright {
  color: #aaa;
  font-size: 0.875rem;
}

.fast-footer__legal {
  display: flex;
  gap: 1.5rem;
}

.fast-footer__legal a {
  color: #aaa;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.fast-footer__legal a:hover {
  color: #fff;
}

/* =====================
   Animations
   ===================== */
@media (prefers-reduced-motion: no-preference) {
  .service-card,
  .step,
  .benefit-card,
  .engagement-card,
  .tech-category {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
  }

  .service-card:nth-child(1) {
    animation-delay: 0.1s;
  }
  .service-card:nth-child(2) {
    animation-delay: 0.2s;
  }
  .service-card:nth-child(3) {
    animation-delay: 0.3s;
  }
  .service-card:nth-child(4) {
    animation-delay: 0.4s;
  }

  @keyframes fadeInUp {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* =====================
   Utilities
   ===================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
