/* ==================== BASE STYLES ==================== */

html {
  font-size: 14px;
  scroll-behavior: smooth;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #2c3e50;
  line-height: 1.6;
}

/* ==================== FOCUS STATES ==================== */

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/* ==================== TYPOGRAPHY ==================== */

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #1a202c;
}

.display-1, .display-2, .display-3, .display-4 {
  font-weight: 800;
  letter-spacing: -0.02em;
}

.lead {
  font-size: 1.15rem;
  font-weight: 400;
  color: #4a5568;
}

/* ==================== BUTTONS ==================== */

.btn {
  font-weight: 600;
  padding: 0.625rem 1.5rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  border: none;
}

.btn-lg {
  padding: 0.875rem 2rem;
  font-size: 1.1rem;
  border-radius: 0.75rem;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.btn-outline-primary {
  border: 2px solid #667eea;
  color: #667eea;
}

.btn-outline-primary:hover {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-color: transparent;
  transform: translateY(-2px);
}

.hover-scale {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-scale:hover {
  transform: scale(1.05);
}

.rounded-pill {
  border-radius: 50rem !important;
}

/* ==================== CARDS ==================== */

.card {
  border: none;
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.shadow-sm {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

.shadow-lg {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

.shadow-2xl {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
}

/* ==================== PRICING CARDS ==================== */

#pricing-plans .card {
  border-radius: 1.25rem;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: #ffffff;
  position: relative;
}

#pricing-plans .card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

#pricing-plans .card:hover::before {
  transform: scaleX(1);
}

#pricing-plans .card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(102, 126, 234, 0.2);
}

#pricing-plans .card.border-primary {
  border: 2px solid #667eea;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.02) 0%, rgba(118, 75, 162, 0.02) 100%);
}

#pricing-plans .card-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: #1a202c;
  margin-bottom: 0.75rem;
}

#pricing-plans .card-body {
  padding: 2.5rem 2rem;
}

#pricing-plans .display-4 {
  font-size: 3rem;
  font-weight: 800;
  color: #667eea;
  line-height: 1;
}

#pricing-plans .text-muted {
  color: #718096 !important;
}

#pricing-plans .list-unstyled li {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

#pricing-plans .list-unstyled li:last-child {
  border-bottom: none;
}

#pricing-plans .list-unstyled li:hover {
  padding-left: 0.5rem;
  color: #667eea;
}

#pricing-plans .bi-check-circle-fill {
  font-size: 1.2rem;
  margin-right: 0.75rem;
}

#pricing-plans .badge {
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

#pricing-plans .btn {
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
}

#pricing-plans .btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

#pricing-plans .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.6);
}

#pricing-plans .btn-outline-primary {
  border: 2px solid #667eea;
  background: transparent;
  color: #667eea;
}

#pricing-plans .btn-outline-primary:hover {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-color: transparent;
}

/* ==================== HERO SECTION ==================== */

.hero-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
  overflow: hidden;
}

.hero-bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.1;
  background-image: 
    radial-gradient(circle at 20% 50%, white 2px, transparent 2px),
    radial-gradient(circle at 80% 80%, white 2px, transparent 2px),
    radial-gradient(circle at 40% 20%, white 1px, transparent 1px);
  background-size: 50px 50px, 80px 80px, 100px 100px;
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

.text-gradient {
  background: linear-gradient(135deg, #ffd89b 0%, #19547b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title {
  line-height: 1.15;
  letter-spacing: -0.02em;
}

/* ==================== FEATURES SECTION ==================== */

.feature-card {
  padding: 2rem;
  background: white;
  border-radius: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
}

.feature-card:hover {
/*  transform: translateY(-8px);*/
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
  border-color: transparent;
}

.feature-icon-wrapper {
  position: relative;
  display: inline-block;
}

.feature-icon-bg {
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  opacity: 0.1;
 
}

.feature-icon-lg {
  font-size: 2.5rem;
  position: relative;
  z-index: 1;
}

/* ==================== STATS SECTION ==================== */

.stats-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.stats-bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.05;
  background-image: 
    linear-gradient(30deg, white 12%, transparent 12.5%, transparent 87%, white 87.5%, white),
    linear-gradient(150deg, white 12%, transparent 12.5%, transparent 87%, white 87.5%, white);
  background-size: 50px 50px;
}

.stat-item-enhanced {
  padding: 2rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.stat-item-enhanced:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.05);
}

.counter {
  display: inline-block;
}

/* ==================== TESTIMONIALS ==================== */

.testimonial-card {
  padding: 2rem;
  background: white;
  border-radius: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
  height: 100%;
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}

.testimonial-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-right: 1rem;
}

.stars i {
  font-size: 1.1rem;
}

/* ==================== CTA SECTION ==================== */

.cta-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.cta-bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.1;
  background-image: 
    repeating-linear-gradient(45deg, white 0px, white 10px, transparent 10px, transparent 20px),
    repeating-linear-gradient(-45deg, white 0px, white 10px, transparent 10px, transparent 20px);
}

/* ==================== DASHBOARD MOCKUP ==================== */

.dashboard-mockup {
  animation: slideInRight 1s ease;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.mockup-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.stat-card {
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: scale(1.05);
}

/* ==================== FLOATING ELEMENTS ==================== */

.floating-element {
  position: absolute;
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  animation: floatAnim 3s ease-in-out infinite;
}

.floating-1 {
  top: 10%;
  right: 10%;
  animation-delay: 0s;
}

.floating-2 {
  bottom: 20%;
  right: 5%;
  animation-delay: 1s;
}

.floating-3 {
  top: 50%;
  right: 15%;
  animation-delay: 2s;
}

@keyframes floatAnim {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

/* ==================== BADGE STYLES ==================== */

.badge {
  font-weight: 600;
  padding: 0.5em 1em;
  border-radius: 0.5rem;
}

.bg-opacity-10 {
  --bs-bg-opacity: 0.1;
}

.bg-opacity-25 {
  --bs-bg-opacity: 0.25;
}

/* ==================== RESPONSIVE UTILITIES ==================== */

@media (max-width: 768px) {
  .display-2 {
    font-size: 2.5rem;
  }
  
  .display-3 {
    font-size: 2rem;
  }
  
  #pricing-plans .card-body {
    padding: 2rem 1.5rem;
  }
  
  #pricing-plans .display-4 {
    font-size: 2.5rem;
  }
}

/* ==================== ANIMATIONS ==================== */

[data-aos] {
  transition-duration: 0.8s;
}

/* ==================== FOOTER ==================== */

.footer {
  background: #f8f9fa;
  padding: 3rem 0 1rem;
  margin-top: 5rem;
}

.footer h5, .footer h6 {
  font-weight: 700;
  color: #1a202c;
}

.footer a {
  transition: color 0.2s ease;
}

.footer a:hover {
  color: #667eea !important;
}

/* ==================== NAVBAR ==================== */

.navbar {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  padding: 1rem 0;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 800;
}

.nav-link {
  font-weight: 500;
  transition: all 0.2s ease;
  padding: 0.5rem 1rem !important;
  border-radius: 0.5rem;
}

.nav-link:hover {
  background: rgba(102, 126, 234, 0.1);
  color: #667eea !important;
}

/* ==================== FORM INPUTS ==================== */

.form-control {
  border-radius: 0.5rem;
  border: 1px solid #e2e8f0;
  padding: 0.75rem 1rem;
  transition: all 0.2s ease;
}

.form-control:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* ==================== UTILITIES ==================== */

.text-white-50 {
  color: rgba(255, 255, 255, 0.7) !important;
}

.bg-light {
  background-color: #f8f9fa !important;
}

.text-muted {
  color: #718096 !important;
}

/* ==================== ACCESSIBILITY ==================== */

:focus-visible {
  outline: 2px solid #667eea;
  outline-offset: 2px;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid #667eea;
  outline-offset: 2px;
}

/* ==================== PRINT STYLES ==================== */

@media print {
  .navbar, .footer, .cta-section {
    display: none;
  }
}