/* ============================================
   Premium Card Components
   High-End Clean Minimalist Design
   Inspired by modern SaaS/Tech aesthetic
   ============================================ */

/* ============================================
   Core Card Styles
   ============================================ */

/* Premium Base Card */
.why-card {
  background: var(--bg, #FFFFFF);
  border-radius: 20px;
  padding: 32px 28px;
  text-align: center;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  position: relative;
  overflow: hidden;
}

.why-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(180deg, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.why-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.why-card:hover::before {
  opacity: 1;
}

/* Icon Container - Orange Circle */
.why-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #F59E0B 0%, #F97316 100%);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.35);
  font-size: 24px;
  transition: all 0.4s ease;
}

.why-card:hover .why-icon {
  transform: scale(1.1);
  box-shadow: 0 12px 32px rgba(245, 158, 11, 0.45);
}

/* Card Title - Dark Navy */
.why-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1E293B;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

/* Card Description - Medium Gray */
.why-card p {
  font-size: 14px;
  color: #64748B;
  line-height: 1.6;
  margin: 0;
}

/* ============================================
   Service Card - Premium Style
   ============================================ */

.service-card {
  background: var(--bg, #FFFFFF);
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
  border-color: rgba(245, 158, 11, 0.2);
}

/* Service Icon - Gradient Circle */
.service-card .card-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
  color: #D97706;
  transition: all 0.3s ease;
}

.service-card:hover .card-icon {
  background: linear-gradient(135deg, #F59E0B 0%, #F97316 100%);
  color: white;
  transform: rotate(5deg) scale(1.05);
}

.service-card .card-icon-success {
  background: linear-gradient(135deg, #D1FAE5 0%, #A7F3D0 100%);
  color: #059669;
}

.service-card:hover .card-icon-success {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: white;
}

.service-card .card-icon-warning {
  background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
  color: #D97706;
}

.service-card:hover .card-icon-warning {
  background: linear-gradient(135deg, #F59E0B 0%, #F97316 100%);
  color: white;
}

.service-card .card-icon-primary {
  background: linear-gradient(135deg, #DBEAFE 0%, #BFDBFE 100%);
  color: #2563EB;
}

.service-card:hover .card-icon-primary {
  background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%);
  color: white;
}

/* Service Title */
.service-card .card-title {
  font-size: 17px;
  font-weight: 700;
  color: #1E293B;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

/* Service Text */
.service-card .card-text {
  font-size: 14px;
  color: #64748B;
  line-height: 1.65;
}

/* ============================================
   Blog Card - Premium Style
   ============================================ */

.blog-card {
  background: var(--bg, #FFFFFF);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
  text-decoration: none;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.blog-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-card:hover .blog-image img {
  transform: scale(1.08);
}

.blog-content {
  padding: 24px;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: #94A3B8;
  margin-bottom: 12px;
}

.blog-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.blog-title {
  font-size: 17px;
  font-weight: 700;
  color: #1E293B;
  line-height: 1.4;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
}

.blog-card:hover .blog-title {
  color: #F59E0B;
}

.blog-excerpt {
  font-size: 14px;
  color: #64748B;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================
   Feature Card - Stats
   ============================================ */

.stats-card {
  background: var(--bg, #FFFFFF);
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  transition: all 0.4s ease;
}

.stats-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.stats-number {
  font-size: 42px;
  font-weight: 800;
  color: #F59E0B;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.stats-label {
  font-size: 14px;
  color: #64748B;
  font-weight: 500;
}

/* ============================================
   Feature Item
   ============================================ */

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 0;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
  flex-shrink: 0;
}

.feature-content h4 {
  font-size: 16px;
  font-weight: 700;
  color: #1E293B;
  margin-bottom: 4px;
}

.feature-content p {
  font-size: 14px;
  color: #64748B;
  line-height: 1.5;
  margin: 0;
}

/* ============================================
   Testimonial Card - Premium
   ============================================ */

.testimonial-card {
  background: var(--bg, #FFFFFF);
  border-radius: 24px;
  padding: 40px 32px;
  position: relative;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

.testimonial-quote {
  font-size: 20px;
  line-height: 1.7;
  color: #334155;
  font-style: italic;
  margin-bottom: 24px;
  padding-top: 20px;
}

.testimonial-quote::before {
  content: '"';
  position: absolute;
  top: 24px;
  left: 28px;
  font-size: 64px;
  color: #FEF3C7;
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-author {
  font-size: 16px;
  font-weight: 700;
  color: #1E293B;
}

.testimonial-role {
  font-size: 13px;
  color: #94A3B8;
  margin-top: 4px;
}

/* ============================================
   Pricing Card - Premium
   ============================================ */

.pricing-card {
  background: var(--bg, #FFFFFF);
  border-radius: 24px;
  padding: 40px 32px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
  transition: all 0.4s ease;
  position: relative;
  border: 2px solid transparent;
}

.pricing-card:hover {
  border-color: #F59E0B;
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(245, 158, 11, 0.15);
}

.pricing-card.featured {
  border-color: #F59E0B;
  background: linear-gradient(180deg, #FFFBEB 0%, #FFFFFF 100%);
}

.pricing-card.featured::before {
  content: 'Popular';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #F59E0B 0%, #F97316 100%);
  color: white;
  padding: 6px 20px;
  border-radius: 24px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pricing-price {
  font-size: 52px;
  font-weight: 800;
  color: #1E293B;
  line-height: 1;
  letter-spacing: -0.03em;
}

.pricing-price span {
  font-size: 16px;
  font-weight: 500;
  color: #94A3B8;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 28px 0;
}

.pricing-features li {
  padding: 14px 0;
  border-bottom: 1px solid #F1F5F9;
  color: #64748B;
  font-size: 14px;
}

.pricing-features li:last-child {
  border-bottom: none;
}

/* ============================================
   CTA Card
   ============================================ */

.cta-card {
  background: linear-gradient(135deg, #F59E0B 0%, #F97316 100%);
  border-radius: 28px;
  padding: 56px 40px;
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(245, 158, 11, 0.35);
}

.cta-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 80%;
  height: 150%;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 60%);
}

.cta-card-title {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.cta-card-text {
  font-size: 16px;
  opacity: 0.9;
  margin-bottom: 28px;
  line-height: 1.6;
}

/* ============================================
   Card Grid Layouts
   ============================================ */

.why-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1024px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .why-grid {
    grid-template-columns: 1fr;
  }
}

.services-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

.blog-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Button Styles (for CTA cards)
   ============================================ */

.btn-cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  background: white;
  color: #F59E0B;
  font-weight: 700;
  font-size: 15px;
  border-radius: 14px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.btn-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.btn-cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  background: transparent;
  color: white;
  font-weight: 700;
  font-size: 15px;
  border-radius: 14px;
  text-decoration: none;
  border: 2px solid rgba(255,255,255,0.4);
  transition: all 0.3s ease;
}

.btn-cta-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.6);
}