/* ================ Global Improvements ================ */
:root {
  --animation-timing: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ================ Hero Section ================ */

.hero-content {
  padding: 2rem;
  animation: fadeInUp 1s var(--animation-timing) forwards;
  opacity: 0;
  animation-delay: 0.3s;
}

.hero-image {
  position: relative;
  height: 100%;
  animation: fadeIn 1s var(--animation-timing) forwards;
  animation-delay: 0.5s;
  opacity: 0;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  animation: fadeIn 0.5s ease forwards;
  animation-delay: 1s;
  opacity: 0;
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ================ Trust Badges ================ */
.trust-badges {
  background-color: white;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 110%);
  padding: 3rem 0 5rem 0;
  text-align: center;
  margin-bottom: 40px;
  box-shadow: var(--shadow);
}

.badges-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 1rem 0;
}

.badges-grid img {
  height: 40px;
  width: auto;
  opacity: 0.7;
  transition: all 0.3s ease;
  filter: grayscale(100%);
}

.badges-grid img:hover {
  opacity: 1;
  filter: grayscale(0%);
}

/* ================ Stats Section ================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.stat-card {
  background-color: white;
  padding: 2rem;
  border-radius: 0.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.3s var(--animation-timing);
  transform: translateY(20px);
  opacity: 0;
  animation: fadeInUp 0.8s var(--animation-timing) forwards;
}

.stat-card:nth-child(1) { animation-delay: 0.2s; }
.stat-card:nth-child(2) { animation-delay: 0.4s; }
.stat-card:nth-child(3) { animation-delay: 0.6s; }
.stat-card:nth-child(4) { animation-delay: 0.8s; }

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.stat-icon {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

/* ================ Lead Types ================ */
.types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.type-card {
  background-color: white;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s var(--animation-timing);
  transform: translateY(20px);
  opacity: 0;
}

.type-card .card-content{
  padding: 10px 20px;
}

.type-card:nth-child(1) { animation: fadeInUp 0.8s var(--animation-timing) forwards 0.2s; }
.type-card:nth-child(2) { animation: fadeInUp 0.8s var(--animation-timing) forwards 0.4s; }
.type-card:nth-child(3) { animation: fadeInUp 0.8s var(--animation-timing) forwards 0.6s; }

.type-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.type-image {
  height: 200px;
  overflow: hidden;
}

.type-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--animation-timing);
}

.type-card:hover .type-image img {
  transform: scale(1.05);
}

/* ================ How It Works ================ */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.step {
  position: relative;
  padding: 2rem;
  background-color: white;
  border-radius: 0.5rem;
  box-shadow: var(--shadow);
  transition: all 0.3s var(--animation-timing);
  transform: translateY(20px);
  opacity: 0;
}

.step:nth-child(1) { animation: fadeInUp 0.8s var(--animation-timing) forwards 0.2s; }
.step:nth-child(2) { animation: fadeInUp 0.8s var(--animation-timing) forwards 0.4s; }
.step:nth-child(3) { animation: fadeInUp 0.8s var(--animation-timing) forwards 0.6s; }

.step:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.step-number {
  position: absolute;
  top: -20px;
  left: -20px;
  width: 50px;
  height: 50px;
  background-color: var(--secondary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
}

.step-image {
  height: 180px;
  border-radius: 0.25rem;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.step-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--animation-timing);
}

.step:hover .step-image img {
  transform: scale(1.05);
}

/* ================ Success Stories ================ */
.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-top: 3rem;
  background-color: white;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: var(--shadow);
  opacity: 0;
  animation: fadeInUp 1s var(--animation-timing) forwards;
  animation-delay: 0.3s;
}

.story-content h3 {
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.agent-info {
  display: flex;
  align-items: center;
  margin-top: 1.5rem;
}

.agent-info img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-right: 1rem;
  object-fit: cover;
}

.story-image {
  border-radius: 0.25rem;
  overflow: hidden;
}

.story-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s var(--animation-timing);
}

.story:hover .story-image img {
  transform: scale(1.03);
}

/* ================ Testimonials ================ */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial {
  background-color: white;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: var(--shadow);
  position: relative;
  transition: all 0.3s var(--animation-timing);
  transform: translateY(20px);
  opacity: 0;
}

.testimonial:nth-child(1) { animation: fadeInUp 0.8s var(--animation-timing) forwards 0.2s; }
.testimonial:nth-child(2) { animation: fadeInUp 0.8s var(--animation-timing) forwards 0.4s; }
.testimonial:nth-child(3) { animation: fadeInUp 0.8s var(--animation-timing) forwards 0.6s; }

.testimonial:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.testimonial-author {
  display: flex;
  align-items: center;
  margin-top: 1.5rem;
}

.testimonial-author img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 1rem;
  object-fit: cover;
}

/* ================ Comparison Section ================ */
.comparison {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  position: relative;
  overflow: hidden;
}

.comparison:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('assets/img/comparison-bg.svg') no-repeat center center;
  background-size: cover;
  opacity: 0.03;
  z-index: 0;
}

.comparison .section-title h2 {
  position: relative;
  display: inline-block;
}

.comparison .section-title h2:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 2px;
}

.comparison-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  position: relative;
  z-index: 1;
}

.comparison-column {
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
  position: relative;
  overflow: hidden;
}

.comparison-column.premium {
  border-top: 4px solid var(--primary);
  transform: translateY(-20px);
  animation: floatUp 1s ease forwards;
}

.comparison-column.basic {
  border-top: 4px solid #e2e8f0;
  animation: floatUp 1s ease 0.2s forwards;
  opacity: 0;
}

.comparison-column.premium:hover {
  transform: translateY(-25px);
  box-shadow: 0 15px 40px rgba(37, 99, 235, 0.15);
}

.comparison-column.basic:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.comparison-header {
  text-align: center;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #f1f5f9;
  position: relative;
}

.ribbon {
  position: absolute;
  top: 15px;
  right: 20px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.comparison-header .logo-wrapper{
  justify-content: center;
}

.comparison-header h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.comparison-column.premium .comparison-header h3 {
  color: var(--primary);
}

.rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #64748b;
  font-size: 0.9rem;
}

.rating i {
  color: #f59e0b;
}

.comparison-column.basic .rating i:last-of-type,
.comparison-column.basic .rating i:nth-last-child(2) {
  color: #e2e8f0;
}

.feature-list {
  list-style: none;
  margin-bottom: 2rem;
}

.feature-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
}

.feature-item:hover {
  background: #f8fafc;
}

.feature-item i {
  font-size: 1.5rem;
  margin-top: 0.2rem;
}

.comparison-column.premium .feature-item i {
  color: var(--primary);
}

.comparison-column.basic .feature-item i {
  color: #94a3b8;
}

.feature-item h4 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.feature-item p {
  font-size: 0.9rem;
  color: #64748b;
}

.comparison-cta {
  text-align: center;
  margin-top: auto;
}

.comparison-footnote {
  text-align: center;
  margin-top: 2rem;
  padding: 1rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.comparison-footnote p {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--dark);
  font-weight: 500;
}

.comparison-footnote i {
  color: var(--primary);
  font-size: 1.2rem;
}

/* Animations */
@keyframes floatUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================ Responsive Adjustments ================ */
@media (max-width: 992px) {
  
  .hero-image {
    order: -1;
    height: 400px;
  }
  
  .story {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .steps {
    grid-template-columns: 1fr;
  }
  
  .badges-grid img {
    height: 30px;
  }
  
  .comparison-cards {
    grid-template-columns: 1fr;
  }
  
  .comparison-column.premium {
    transform: none;
    animation: floatUp 1s ease forwards;
  }
  
  .comparison-column.basic {
    animation: floatUp 1s ease 0.2s forwards;
  }
}

@media (max-width: 576px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .step-number {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .feature-item {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  
  .feature-item i {
    margin-bottom: 0.5rem;
  }
  .comparison-header .logo-wrapper{
    padding-top: 20px
  }
  .comparison-footnote p {
    flex-direction: column;
    gap: 0.5rem;
  }
}