/* ==========================================
   PIXEL-PERFECT ALIGNMENT FIXES
   Responsive alignment optimizations for all screen sizes
   ========================================== */

/* ==========================================
   1. BUTTON ALIGNMENT & CONSISTENCY FIXES
   ========================================== */

/* 🔧 FIX: Ensure all buttons have consistent padding, border-radius, and font-size */
.btn,
.btn-primary,
.btn-secondary,
.btn-outline,
.cta-btn {
  /* Consistent sizing */
  min-height: 48px;
  padding: 0.875rem 1.75rem;
  
  /* Perfect centering */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  
  /* Consistent border radius */
  border-radius: 0.75rem;
  
  /* Typography */
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  
  /* Prevent layout shift */
  white-space: nowrap;
  text-decoration: none;
  
  /* Touch optimization */
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
  
  /* Smooth transitions */
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 🔧 FIX: Button responsive sizing */
@media (max-width: 575px) {
  .btn,
  .btn-primary,
  .btn-secondary,
  .btn-outline {
    width: 100%;
    max-width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }
}

@media (min-width: 576px) and (max-width: 767px) {
  .btn,
  .btn-primary,
  .btn-secondary,
  .btn-outline {
    min-width: 180px;
    max-width: 280px;
    padding: 0.875rem 1.75rem;
  }
}

@media (min-width: 768px) {
  .btn,
  .btn-primary,
  .btn-secondary,
  .btn-outline {
    min-width: 160px;
    max-width: 280px;
  }
}

/* 🔧 FIX: Hero action buttons perfect alignment */
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  width: 100%;
}

@media (max-width: 767px) {
  .hero-actions {
    flex-direction: column;
    gap: 0.875rem;
  }
  
  .hero-actions .btn {
    width: 100%;
    max-width: 100%;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  
  .hero-actions .btn {
    min-width: 240px;
    max-width: 280px;
  }
}

@media (min-width: 992px) {
  .hero-actions {
    justify-content: flex-start;
    flex-direction: row;
    gap: 1rem;
  }
}

/* ==========================================
   2. TEXT & ICON ALIGNMENT FIXES
   ========================================== */

/* 🔧 FIX: Perfect vertical centering for icons in buttons */
.btn svg,
.btn-primary svg,
.btn-secondary svg,
.btn-outline svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  vertical-align: middle;
  margin: 0;
}

/* 🔧 FIX: Hero title and description centering */
/* Mobile-first: Center on mobile, left-align on desktop */
@media (max-width: 991px) {
  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center !important;
    text-align: center !important;
    width: 100%;
  }
  
  .hero-title {
    margin: 0 auto 1.25rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
  }
  
  .hero-description {
    margin: 0 auto 2rem;
    line-height: 1.65;
    max-width: 100%;
  }
  
  .hero-badge {
    margin: 0 auto 1.5rem;
  }
}

/* ==========================================
   3. HERO STATS ALIGNMENT FIXES
   ========================================== */

/* 🔧 FIX: Perfect hero stats alignment and spacing */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
  width: 100%;
  padding: 2rem 1rem;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  border-radius: 1rem;
  border: 1px solid rgba(124, 58, 237, 0.1);
}

@media (max-width: 767px) {
  .hero-stats {
    flex-direction: row;
    gap: 1rem;
    margin-top: 2rem;
    padding: 1.5rem 1rem;
  }
}

@media (max-width: 575px) {
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    display: grid;
    gap: 1.5rem;
  }
}

/* On index page (homepage), stats should align left on desktop */
.hero-container .hero-stats {
  justify-content: center;
}

@media (min-width: 992px) {
  .hero-container .hero-stats {
    justify-content: flex-start;
    flex-wrap: nowrap;
    background: transparent;
    backdrop-filter: none;
    border: none;
    padding: 0;
    margin-top: 2.5rem;
  }
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-width: 100px;
  padding: 0.5rem;
}

.stat-number {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.5rem;
  display: block;
  background: linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.875rem;
  font-weight: 600;
  opacity: 0.85;
  line-height: 1.4;
  display: block;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (max-width: 575px) {
  .stat-number {
    font-size: 1.75rem;
  }
  
  .stat-label {
    font-size: 0.75rem;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .stat-number {
    font-size: 2rem;
  }
  
  .stat-label {
    font-size: 0.8125rem;
  }
}

/* ==========================================
   4. HERO FEATURE CARDS ALIGNMENT FIXES
   ========================================== */

/* 🔧 FIX: Perfect card grid alignment and centering */
.hero-features-grid {
  display: grid;
  gap: 1rem;
  width: 100%;
  margin: 0 auto;
}

@media (max-width: 359px) {
  .hero-features-grid {
    grid-template-columns: 1fr;
    gap: 0.875rem;
    max-width: 100%;
  }
}

@media (min-width: 360px) and (max-width: 575px) {
  .hero-features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.875rem;
    max-width: 100%;
  }
}

@media (min-width: 576px) and (max-width: 767px) {
  .hero-features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 100%;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .hero-features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    max-width: 100%;
  }
}

@media (min-width: 992px) {
  .hero-features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 550px;
  }
}

/* 🔧 FIX: Perfect card content centering */
.hero-feature-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.625rem;
  padding: 1.5rem 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(124, 58, 237, 0.15);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.hero-feature-card h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  color: #1a1a1a;
}

.hero-feature-card p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.4;
  color: #6b7280;
}

/* 🔧 FIX: Icon perfect centering */
.feature-icon-hero {
  width: 52px;
  height: 52px;
  min-width: 52px;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.875rem;
  background: linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
  color: white;
  box-shadow: 0 8px 16px rgba(124, 58, 237, 0.3);
  flex-shrink: 0;
  margin-bottom: 0.25rem;
}

.feature-icon-hero svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .feature-icon-hero {
    width: 56px;
    height: 56px;
    min-width: 56px;
    min-height: 56px;
  }
  
  .feature-icon-hero svg {
    width: 30px;
    height: 30px;
  }
}

@media (min-width: 992px) {
  .feature-icon-hero {
    width: 64px;
    height: 64px;
    min-width: 64px;
    min-height: 64px;
  }
  
  .feature-icon-hero svg {
    width: 32px;
    height: 32px;
  }
}

/* ==========================================
   5. QUICK LINKS CARD ALIGNMENT FIXES
   ========================================== */

/* 🔧 FIX: Quick links perfect grid and centering */
.quick-links-grid {
  display: grid;
  gap: 1.5rem;
  width: 100%;
  margin: 0 auto;
}

@media (max-width: 575px) {
  .quick-links-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0 1rem;
  }
}

@media (min-width: 576px) and (max-width: 767px) {
  .quick-links-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .quick-links-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .quick-links-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
  }
}

@media (min-width: 1200px) {
  .quick-links-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
}

/* 🔧 FIX: Quick link card content centering */
.quick-link-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1rem;
  padding: 2rem 1.5rem;
  border-radius: 1rem;
  transition: all 0.3s ease;
  background: white;
  border: 2px solid rgba(124, 58, 237, 0.1);
  text-decoration: none;
  min-height: 180px;
}

.quick-link-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  background: linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
  color: white;
  flex-shrink: 0;
}

.quick-link-icon svg {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.quick-link-card h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  color: #1a1a1a;
}

.quick-link-card p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: #6b7280;
}

@media (max-width: 575px) {
  .quick-link-card {
    padding: 1.75rem 1.25rem;
    min-height: 160px;
  }
  
  .quick-link-icon {
    width: 56px;
    height: 56px;
  }
  
  .quick-link-icon svg {
    width: 28px;
    height: 28px;
  }
  
  .quick-link-card h3 {
    font-size: 1.125rem;
  }
  
  .quick-link-card p {
    font-size: 0.875rem;
  }
}

/* ==========================================
   6. SECTION HEADER ALIGNMENT FIXES
   ========================================== */

/* 🔧 FIX: Section headers perfect centering */
.section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-bottom: 3rem;
  width: 100%;
}

.section-title {
  margin: 0 auto 1rem;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  text-align: center;
}

.section-subtitle {
  margin: 0 auto;
  font-size: clamp(1rem, 3vw, 1.25rem);
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 700px;
  text-align: center;
}

@media (max-width: 575px) {
  .section-header {
    margin-bottom: 2rem;
    padding: 0 1rem;
  }
}

/* ==========================================
   6A. TEMPLATES SECTION SPECIFIC FIXES
   ========================================== */

/* 🔧 FIX: Templates grid perfect alignment */
.templates-grid {
  display: grid;
  gap: clamp(1.25rem, 2vw, 2rem);
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

/* Mobile first - single column */
@media (max-width: 767px) {
  .templates-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 0 1rem;
    max-width: 500px;
  }
}

/* Tablet - 2 columns */
@media (min-width: 768px) and (max-width: 1199px) {
  .templates-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

/* Desktop - 3 columns */
@media (min-width: 1200px) {
  .templates-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

/* 🔧 FIX: Template card perfect centering */
.template-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  align-items: stretch;
}

.template-content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem;
  flex: 1;
}

.template-content h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  color: #1a1a1a;
  text-align: left;
}

.template-content p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: #6b7280;
  text-align: left;
  flex: 1;
}

/* Template preview centering */
.template-preview,
.template-preview-img,
.preview-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.preview-placeholder {
  height: 100%;
  min-height: 200px;
}

/* Template badges alignment */
.template-badges {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 0.75rem;
}

.template-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

/* Template actions alignment */
.template-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(124, 58, 237, 0.1);
  background: rgba(124, 58, 237, 0.02);
}

.template-select-btn,
.template-preview-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  transition: all 0.3s ease;
  white-space: nowrap;
  min-height: 40px;
}

@media (max-width: 575px) {
  .template-actions {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .template-select-btn,
  .template-preview-btn {
    width: 100%;
  }
}

/* Filter tabs alignment */
.templates-filters {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2.5rem;
  width: 100%;
}

.filter-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.5rem;
  background: rgba(124, 58, 237, 0.05);
  border-radius: 0.75rem;
}

.filter-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  transition: all 0.3s ease;
  white-space: nowrap;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #6b7280;
  min-height: 40px;
}

.filter-tab.active,
.filter-tab:hover {
  background: white;
  color: #7c3aed;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.15);
}

@media (max-width: 575px) {
  .filter-tabs {
    width: 100%;
    padding: 0.5rem;
  }
  
  .filter-tab {
    flex: 1;
    min-width: 0;
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
  }
}

/* Pro templates promo alignment */
.pro-templates-promo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 2rem;
  border-radius: 1.5rem;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(139, 92, 246, 0.05));
  border: 2px solid rgba(124, 58, 237, 0.15);
}

.promo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.25rem;
  border-radius: 2rem;
  background: white;
  color: #7c3aed;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.15);
}

.promo-title {
  margin: 0 auto 1rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
}

.promo-description {
  margin: 0 auto 2rem;
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  line-height: 1.6;
  max-width: 600px;
  color: #6b7280;
}

.promo-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.promo-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-width: 100px;
}

.promo-stat-number {
  font-size: 1.75rem;
  font-weight: 800;
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.promo-stat-label {
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.3;
}

.promo-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 575px) {
  .pro-templates-promo {
    padding: 2rem 1.5rem;
  }
  
  .promo-stats {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .promo-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .promo-actions .btn {
    width: 100%;
  }
}

/* ==========================================
   7. FORM INPUT & SEARCH ALIGNMENT FIXES
   ========================================== */

/* 🔧 FIX: Search input and button perfect alignment */
.search-container,
.input-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

@media (max-width: 575px) {
  .search-container,
  .input-group {
    flex-direction: column;
    gap: 0.75rem;
  }
}

.search-input,
input[type="search"],
input[type="text"].search {
  flex: 1;
  min-height: 48px;
  padding: 0.875rem 1.25rem;
  border-radius: 0.75rem;
  border: 2px solid rgba(124, 58, 237, 0.2);
  font-size: 1rem;
  line-height: 1.5;
  background: white;
  transition: all 0.3s ease;
  width: 100%;
}

.search-input:focus,
input[type="search"]:focus,
input[type="text"].search:focus {
  outline: none;
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

@media (max-width: 575px) {
  .search-input,
  input[type="search"],
  input[type="text"].search {
    width: 100%;
  }
}

.search-button,
.input-group .btn {
  flex-shrink: 0;
  min-height: 48px;
  padding: 0.875rem 1.75rem;
  border-radius: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
}

@media (max-width: 575px) {
  .search-button,
  .input-group .btn {
    width: 100%;
  }
}

/* ==========================================
   8. CTA SECTION ALIGNMENT FIXES
   ========================================== */

/* 🔧 FIX: CTA content perfect centering */
.cta-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.cta-content h2 {
  margin: 0 auto 1rem;
  font-size: clamp(2rem, 5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
}

.cta-content p {
  margin: 0 auto 2rem;
  font-size: clamp(1rem, 3vw, 1.25rem);
  line-height: 1.6;
  max-width: 600px;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  width: 100%;
}

@media (max-width: 575px) {
  .cta-actions {
    flex-direction: column;
    gap: 0.875rem;
  }
  
  .cta-actions .btn {
    width: 100%;
    max-width: 100%;
  }
}

@media (min-width: 576px) and (max-width: 767px) {
  .cta-actions {
    flex-direction: column;
    gap: 1rem;
  }
  
  .cta-actions .btn {
    min-width: 240px;
    max-width: 320px;
  }
}

/* ==========================================
   9. TESTIMONIAL CARD ALIGNMENT FIXES
   ========================================== */

/* 🔧 FIX: Testimonial cards perfect centering */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: 2rem;
  border-radius: 1rem;
  background: white;
  border: 2px solid rgba(124, 58, 237, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  height: 100%;
  text-align: left;
}

.testimonial-rating {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.testimonial-text {
  flex: 1;
  font-size: 1rem;
  line-height: 1.6;
  color: #4b5563;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  width: 100%;
}

.author-avatar {
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
  color: white;
  font-weight: 700;
  font-size: 1.125rem;
  flex-shrink: 0;
}

.author-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  flex: 1;
}

.author-info h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  color: #1a1a1a;
}

.author-info p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.4;
  color: #6b7280;
}

/* ==========================================
   10. STEP CARD ALIGNMENT FIXES
   ========================================== */

/* 🔧 FIX: Steps container perfect alignment */
.steps-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  width: 100%;
}

@media (max-width: 991px) {
  .steps-container {
    flex-direction: column;
    gap: 2rem;
  }
}

.step-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: 1rem;
  background: white;
  border: 2px solid rgba(124, 58, 237, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  flex: 1;
  min-width: 280px;
  max-width: 320px;
}

@media (max-width: 575px) {
  .step-card {
    min-width: 100%;
    max-width: 100%;
    padding: 1.75rem 1.25rem;
  }
}

.step-number {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
  color: white;
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}

.step-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: #7c3aed;
  flex-shrink: 0;
}

.step-icon svg {
  width: 48px;
  height: 48px;
}

.step-card h3 {
  margin: 0 0 0.75rem 0;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  color: #1a1a1a;
}

.step-card p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #6b7280;
}

/* ==========================================
   11. CONTAINER & SPACING CONSISTENCY
   ========================================== */

/* 🔧 FIX: Container perfect centering and spacing */
.container {
  width: 100%;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1rem, 3vw, 2rem);
  padding-right: clamp(1rem, 3vw, 2rem);
}

@media (max-width: 575px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Section spacing consistency */
section.section,
.section {
  padding-top: clamp(3rem, 8vw, 6rem);
  padding-bottom: clamp(3rem, 8vw, 6rem);
  width: 100%;
}

@media (max-width: 575px) {
  section.section,
  .section {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
}

/* ==========================================
   12. HOVER & FOCUS STATE FIXES
   ========================================== */

/* 🔧 FIX: Consistent hover states for all interactive elements */
.btn:hover,
.btn-primary:hover,
.btn-secondary:hover,
.btn-outline:hover,
.quick-link-card:hover,
.hero-feature-card:hover,
.testimonial-card:hover,
.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -8px rgba(124, 58, 237, 0.25);
}

/* Touch device optimization */
@media (hover: none) and (pointer: coarse) {
  .btn:hover,
  .btn-primary:hover,
  .btn-secondary:hover,
  .btn-outline:hover,
  .quick-link-card:hover,
  .hero-feature-card:hover,
  .testimonial-card:hover,
  .step-card:hover {
    transform: none;
  }
  
  .btn:active,
  .btn-primary:active,
  .btn-secondary:active,
  .btn-outline:active {
    transform: scale(0.98);
    opacity: 0.9;
  }
}

/* 🔧 FIX: Focus states for accessibility */
.btn:focus-visible,
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.btn-outline:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(124, 58, 237, 0.5);
  outline-offset: 2px;
}

/* ==========================================
   13. SCROLL HINT ALIGNMENT FIX
   ========================================== */

/* 🔧 FIX: Scroll indicator perfect centering */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  animation: bounce 2s infinite;
  z-index: 10;
  cursor: pointer;
}

.scroll-indicator span {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
  white-space: nowrap;
}

.scroll-indicator svg {
  width: 24px;
  height: 24px;
  color: var(--primary);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

@media (max-width: 575px) {
  .scroll-indicator {
    bottom: 1.5rem;
  }
  
  .scroll-indicator span {
    font-size: 0.8125rem;
  }
  
  .scroll-indicator svg {
    width: 20px;
    height: 20px;
  }
}

/* ==========================================
   14. GRID & FLEXBOX CONSISTENCY
   ========================================== */

/* 🔧 FIX: All grids use consistent gap and alignment */
.features-grid,
.pricing-grid,
.templates-grid,
.testimonials-grid,
.team-grid,
.services-grid {
  display: grid;
  gap: clamp(1rem, 2vw, 2rem);
  width: 100%;
  align-items: start;
}

/* All cards maintain equal height */
.feature-card,
.pricing-card,
.template-card,
.testimonial-card,
.team-card,
.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* ==========================================
   15. TYPOGRAPHY PERFECT ALIGNMENT
   ========================================== */

/* 🔧 FIX: All headings perfectly aligned */
h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-weight: 700;
}

/* Paragraph spacing */
p {
  margin-top: 0;
  margin-bottom: 1rem;
  line-height: 1.6;
}

p:last-child {
  margin-bottom: 0;
}

/* List alignment */
ul, ol {
  margin: 0;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

li:last-child {
  margin-bottom: 0;
}

/* ==========================================
   16. FINAL PIXEL-PERFECT ADJUSTMENTS
   ========================================== */

/* 🔧 FIX: Remove any accidental margins/padding */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Perfect box-sizing */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Prevent horizontal scroll */
html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  position: relative;
}

/* Image alignment */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* SVG alignment */
svg {
  display: block;
}

/* End of Pixel-Perfect Alignment Fixes */
