.email-template-showcase {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  padding: 6rem 2rem;
  background: linear-gradient(135deg, #6cf1, #6cf3, #9cf1);
  position: relative;
  overflow: hidden;
  flex-wrap: wrap;
}
footer{
    margin: 0;
}

.email-template-showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, #fff3 0, transparent 60%);
  pointer-events: none;
}

.template-content {
  flex: 1 1 400px;
  z-index: 1;
  color: #444;
  max-width: 560px;
}

.template-content h2 {
  font-size: 2.6rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.template-content p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  opacity: 0.95;
}

.template-content ul {
  list-style: disc;
  padding: 0;
  margin-bottom: 2rem;
  padding-left: 1.2rem;
}

.template-content ul li {
  margin-bottom: 0.5rem;
  position: relative;
}

main{overflow-x: hidden;}

.btn-gradient {
  display: inline-block;
  padding: 0.9rem 1.6rem;
  background: linear-gradient(90deg, #4a90e2, #6cf);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 0.7rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 8px 20px #0002;
}

.btn-gradient:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px #0003;
}

.template-visual {
  flex: 1 1 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.mockup {
  width: 300px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 30px #0002;
  overflow: hidden;
  transform: rotate(-3deg);
  animation: float 6s ease-in-out infinite;
}

.mockup-header {
  height: 40px;
  background: linear-gradient(90deg, #ddd, #f5f5f5);
}

.mockup-body {
  padding: 1.5rem;
}

.mockup-line {
  height: 10px;
  background: #e0e0e0;
  border-radius: 4px;
  margin-bottom: 12px;
}

.mockup-line.large { width: 90%; }
.mockup-line.medium { width: 70%; }
.mockup-line.short { width: 50%; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-10px) rotate(-3deg); }
}

/* responsive */
@media (max-width: 900px) {
  .email-template-showcase {
    flex-direction: column-reverse;
    text-align: center;
    gap: 3rem;
    padding: 4rem 1.5rem;
  }

  .template-content ul{
    text-align: left;
  }

  .template-content {
    max-width: 100%;
  }

  .template-content h2 {
    font-size: 2.2rem;
  }

  .mockup {
    transform: none;
    animation: float 6s ease-in-out infinite;
  }
}

.email-info {
    padding: 0 2rem 2rem;
    position: relative;
    overflow: visible;
    max-width: none;
}

.email-info::before {
  content: "";
  position: absolute;
  bottom: -60px;
  right: -80px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, #6cf2 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
}
.email-info::after {
  content: "";
  position: absolute;
  left: -60px;
  top: 50px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #6cf2 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

.email-info-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  max-width: 1100px;
  margin: 0 auto;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.email-info-content {
  flex: 1 1 480px;
}

.email-info h2 {
  font-size: 2.4rem;
  margin-bottom: 1.2rem;
  color: #222;
}

.email-info p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #444;
  margin-bottom: 1rem;
}

.email-info strong {
  color: #6cf;
  font-weight: 600;
}

.email-info-visual {
  flex: 1 1 340px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mail-mockup {
  width: 320px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px #0001;
  overflow: hidden;
  animation: floatMail 6s ease-in-out infinite;
}

.mail-header {
  height: 42px;
  background: linear-gradient(90deg, #6cf1, #9cf2);
}

.mail-body {
  padding: 1.6rem;
}

.mail-line {
  height: 10px;
  background: #e9e9e9;
  border-radius: 4px;
  margin-bottom: 12px;
}

.mail-line.large { width: 90%; }
.mail-line.medium { width: 70%; }
.mail-line.short { width: 50%; }

.how-it-works{padding: 0 1rem;}

@keyframes floatMail {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (max-width: 900px) {
  .email-info-inner {
    flex-direction: column;
    text-align: center;
    gap: 2.5rem;
  }

  .email-info h2 {
    font-size: 2rem;
  }

  .mail-mockup {
    width: 260px;
  }
}
