/* ============================================================
   DEMO APPS PAGE – Digi Nexa LLP
   Design System: Blue gradient (#1b8fd6), Poppins, 12px radius
   ============================================================ */

/* --- Shared Section Utilities --- */
.app-section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(27, 143, 214, 0.08);
  color: var(--primary);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
  border: 1px solid rgba(27, 143, 214, 0.12);
}

.app-section-title {
  font-size: 36px;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 18px;
  letter-spacing: -0.3px;
}

.app-section-title span {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== HERO SECTION ===== */
.app-hero {
  margin-top: 70px;
  padding: 90px 0 70px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.app-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.app-hero__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #faf5f9 0%, #f3e8f0 30%, #ede0f0 60%, #f8f4fb 100%);
}

.app-hero__grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(27, 143, 214, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27, 143, 214, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

.app-hero__container {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.app-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(27, 143, 214, 0.08);
  color: var(--primary);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
  border: 1px solid rgba(27, 143, 214, 0.12);
}

.app-hero__badge i {
  font-size: 12px;
}

.app-hero__title {
  font-size: 44px;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.15;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}

.app-hero__title span {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.app-hero__subtitle {
  font-size: 17px;
  color: var(--text-light);
  line-height: 1.7;
  max-width: 640px;
  margin: 0 auto;
}

.app-hero__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-top: 40px;
}

.app-hero__meta-item {
  text-align: center;
}

.app-hero__meta-item strong {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.2;
}

.app-hero__meta-item span {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.app-hero__meta-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* ===== APPS SHOWCASE ===== */
.app-showcase {
  padding: 100px 0;
  background: var(--white);
}

.app-showcase__header {
  text-align: center;
  margin-bottom: 50px;
}

.app-showcase__title {
  font-size: 36px;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.2;
  letter-spacing: -0.3px;
}

.app-showcase__title span {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.app-showcase__underline {
  width: 70px;
  height: 4px;
  border-radius: 4px;
  background: var(--gradient);
  margin: 18px auto 16px;
}

.app-showcase__subtitle {
  font-size: 16px;
  color: var(--text-light);
}

.app-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
}

.app-card {
  flex: 0 0 calc((100% - 22px * 5) / 6);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 34px 16px 26px;
  text-align: center;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.app-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(27, 143, 214, 0.14);
  border-color: rgba(27, 143, 214, 0.18);
}

.app-card__icon {
  width: 68px;
  height: 68px;
  background: rgba(27, 143, 214, 0.08);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: var(--primary);
  margin: 0 auto 18px;
  transition: all 0.3s ease;
}

.app-card:hover .app-card__icon {
  background: var(--gradient);
  color: var(--white);
  transform: scale(1.08);
}

.app-card__name {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}

.app-card__tag {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.4;
}

/* ===== WHAT POWERS THESE APPS ===== */
.app-features {
  padding: 100px 0;
  background: var(--light-bg);
}

.app-features__header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 50px;
}

.app-features__subtitle {
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.7;
}

.app-features__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.app-feature-card {
  background: var(--white);
  border-radius: 16px;
  padding: 36px 28px;
  text-align: center;
  border: 1px solid var(--border);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.app-feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(27, 143, 214, 0.12);
  border-color: rgba(27, 143, 214, 0.15);
}

.app-feature-card__icon {
  width: 64px;
  height: 64px;
  background: rgba(27, 143, 214, 0.08);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--primary);
  margin: 0 auto 20px;
  transition: all 0.3s ease;
}

.app-feature-card:hover .app-feature-card__icon {
  background: var(--gradient);
  color: var(--white);
  transform: scale(1.08);
}

.app-feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}

.app-feature-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
}

/* ===== CTA SECTION ===== */
.app-cta {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.app-cta__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.app-cta__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-purple) 100%);
}

.app-cta__grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(27, 143, 214, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27, 143, 214, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
}

.app-cta__container {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.app-cta__container h2 {
  font-size: 34px;
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 14px;
}

.app-cta__container p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
  margin-bottom: 32px;
}

.app-cta__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.app-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  border: 2px solid transparent;
}

.app-cta__btn--primary {
  background: var(--gradient);
  color: var(--white);
  border-color: transparent;
}

.app-cta__btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(27, 143, 214, 0.35);
}

.app-cta__btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.3);
}

.app-cta__btn--outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

/* ===== SCROLL ANIMATIONS ===== */
.app-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.app-animate--visible {
  opacity: 1;
  transform: translateY(0);
}

.app-animate--delay-1 { transition-delay: 0.08s; }
.app-animate--delay-2 { transition-delay: 0.16s; }
.app-animate--delay-3 { transition-delay: 0.24s; }
.app-animate--delay-4 { transition-delay: 0.32s; }

/* ===== RESPONSIVE ===== */

/* Tablet */
@media (max-width: 1024px) {
  .app-card {
    flex-basis: calc((100% - 22px * 3) / 4);
  }

  .app-features__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 768px) {
  .app-hero {
    padding: 60px 0 40px;
  }

  .app-hero__title {
    font-size: 32px;
  }

  .app-hero__subtitle {
    font-size: 15px;
  }

  .app-hero__meta {
    gap: 18px;
  }

  .app-hero__meta-item strong {
    font-size: 22px;
  }

  .app-showcase {
    padding: 60px 0;
  }

  .app-showcase__title,
  .app-section-title {
    font-size: 28px;
  }

  .app-grid {
    gap: 14px;
  }

  .app-card {
    flex-basis: calc((100% - 14px * 2) / 3);
    padding: 24px 10px 20px;
  }

  .app-card__icon {
    width: 56px;
    height: 56px;
    font-size: 22px;
    margin-bottom: 14px;
  }

  .app-card__name {
    font-size: 14px;
  }

  .app-card__tag {
    font-size: 11px;
  }

  .app-features {
    padding: 60px 0;
  }

  .app-features__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .app-feature-card {
    padding: 28px 24px;
  }

  .app-cta__container h2 {
    font-size: 26px;
  }

  .app-cta__actions {
    flex-direction: column;
    align-items: center;
  }

  .app-cta__btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .app-hero__title {
    font-size: 26px;
  }

  .app-hero__meta {
    gap: 12px;
  }

  .app-hero__meta-item strong {
    font-size: 18px;
  }

  .app-hero__meta-item span {
    font-size: 11px;
  }

  .app-showcase__title,
  .app-section-title {
    font-size: 24px;
  }

  .app-card {
    flex-basis: calc((100% - 14px) / 2);
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .app-animate {
    transition: none;
    opacity: 1;
    transform: none;
  }

  .app-card,
  .app-feature-card {
    transition: none;
  }
}
