/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: #f9f9f9;
  color: #111;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* TOP BAR */
.hero-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1.2rem 0 2rem;
  margin: 0 auto;
  border-bottom: 1px solid #e6e6e6;
  background: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
  border-radius: 12px;
  margin-bottom: 50px;
}

.logo-wrapper {
  display: flex;
  align-items: center;
}

.logo {
  height: 100px;
  max-height: 100px;
}

/* BUTTONS */
.download-btn,
.primary,
.secondary {
  background-color: #000;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.2s ease, transform 0.1s ease;
  outline: none;
}

.download-btn:hover,
.primary:hover,
.secondary:hover {
  background-color: #4c68ff;
  color: #fff;
}

.download-btn.dark {
  background-color: #222;
}

.primary {
  background: #4c68ff;
}

.secondary {
  background: transparent;
  color: #4c68ff;
  border: 2px solid #4c68ff;
}

.download-btn:focus,
.primary:focus,
.secondary:focus {
  outline: 2px solid #4c68ff;
  outline-offset: 2px;
}

/* Touch feedback */
.download-btn:active,
.primary:active,
.secondary:active {
  transform: scale(0.98);
}

/* HERO SECTION */
.hero {
  text-align: center;
  position: relative;
  background: #fff;
  padding-bottom: 4rem;
}

.hero-tag {
  color: #999;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 2.5rem;
}

.hero-title span {
  color: #4c68ff;
}

.hero-center {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto 3rem;
  padding: 0 1rem;
}

.hero-phone {
  width: 260px;
  z-index: 2;
  position: relative;
}

/* Floating cards */
.floating-card {
  position: absolute;
  background: #fff;
  border-radius: 16px;
  padding: 0.75rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  font-size: 0.75rem;
  width: 140px;
  text-align: center;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.floating-card img {
  width: 100%;
  max-height: 80px;
  object-fit: contain;
}

.card-left {
  top: 10%;
  left: -110px;
}

.card-right {
  top: 10%;
  right: -110px;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0 1rem;
}

.hero-buttons .primary,
.hero-buttons .secondary {
  min-width: 160px;
  max-width: 200px;
  width: 100%;
}

/* CUSTOM MODULES SECTION */
.custom-section {
  padding: 6rem 2rem 3rem;
  background: #fff;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem;
}

.custom-content {
  display: flex;
  max-width: 1200px;
  gap: 3rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.text-block {
  flex: 1;
  min-width: 280px;
}

.text-block h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.text-block h2 span {
  color: #4c68ff;
}

.text-block p {
  color: #444;
  max-width: 480px;
  margin-bottom: 1.5rem;
}

.image-block {
  flex: 1;
  min-width: 280px;
  text-align: center;
}

.summary-mockup {
  width: 100%;
  max-width: 360px;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* INFO SECTIONS */
.info-section {
  background: #fff;
  padding: 4rem 2rem;
  text-align: center;
}

.info-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.info-section .tagline {
  color: #4c68ff;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.info-section ul {
  list-style: none;
  padding: 0;
  margin: 1rem auto 0;
  max-width: 600px;
  text-align: left;
}

.info-section ol {
  margin: 1rem auto;
  max-width: 600px;
  padding-left: 1.2rem;
  text-align: left;
}

.info-section li {
  margin-bottom: 0.5rem;
}

.agent-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.5rem;
  text-align: left;
}

.agent-list li {
  margin-bottom: 0.5rem;
}

/* AGENTS SECTION */
.agents-section {
  background: #f0f3ff;
  padding: 5rem 2rem;
  text-align: center;
}

.agents-section h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.agent-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.agent-card {
  background: #fff;
  padding: 1rem 1.5rem;
  border-radius: 15px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
  font-weight: 600;
  min-width: 140px;
  transition: transform 0.2s;
  cursor: pointer;
}

.agent-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 24px rgba(76, 104, 255, 0.2);
}

/* HOW SECTION */
.how-section {
  background: #fff;
  padding: 6rem 2rem;
  text-align: center;
}

.how-content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.how-content p {
  color: #555;
  margin-bottom: 2rem;
}

.how-img {
  max-width: 420px;
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

/* TESTIMONIAL SECTION */
.testimonial-section {
  background: #f9f9f9;
  padding: 6rem 2rem;
  text-align: center;
}

.testimonial-section h2 {
  font-size: 2rem;
  margin-bottom: 3rem;
}

.testimonials {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 800px;
  margin: auto;
}

.testimonial {
  background: #fff;
  padding: 1.5rem 2rem;
  border-radius: 15px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  font-size: 0.95rem;
}

.testimonial span {
  display: block;
  margin-top: 1rem;
  font-style: italic;
  color: #777;
}

/* CTA SECTION */
.cta-section {
  background: #4c68ff;
  color: #fff;
  padding: 5rem 2rem;
  text-align: center;
}

.cta-section h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.cta-section p {
  margin-bottom: 2rem;
  font-size: 1rem;
}

.cta-section .primary {
  background: #fff;
  color: #4c68ff;
  font-weight: bold;
}

.fade-in {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.6s ease-out;
}

.fade-trigger {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
  will-change: opacity, transform;
}

.fade-trigger.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.site-footer {
  background-color: #f1f1f1;
  padding: 1rem 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: #444;
  border-top: 1px solid #ddd;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  justify-content: center;
  align-items: center;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.modal-overlay.visible {
  display: flex;
}

.modal {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  max-width: 400px;
  width: 90%;
  position: relative;
  text-align: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.modal input {
  width: 100%;
  padding: 0.75rem;
  margin: 0.75rem 0;
  border: 1px solid #ddd;
  border-radius: 6px;
}

.modal button {
  background: #4c68ff;
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 600;
}

.close-btn {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  font-size: 1.2rem;
  cursor: pointer;
}

#scrollToTop {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s;
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  font-size: 24px;
  width: 50px;
  height: 50px;
  background-color: #4c68ff;
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  justify-content: center;
  align-items: center;
}

#scrollToTop.visible {
  opacity: 1;
  visibility: visible;
}

#scrollToTop:hover {
  background-color: #384ecc;
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: all 0.6s ease-out;
}

.slide-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: all 0.6s ease-out;
}

.slide-in-left.visible,
.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.social-links img {
  width: 24px;
  height: 24px;
  filter: grayscale(100%);
  transition: filter 0.2s ease, transform 0.2s ease;
}

.social-links img:hover {
  filter: none;
  transform: scale(1.1);
}

@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 0px rgba(255, 255, 255, 0.3);
  }

  50% {
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
  }

  100% {
    box-shadow: 0 0 0px rgba(255, 255, 255, 0.3);
  }
}

.cta-section .primary {
  animation: pulse-glow 2s infinite;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero-top-bar {
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.2rem;
    border-radius: 0;
  }

  .logo {
    height: 88px;
    max-height: 88px;
  }

  .hero-title {
    font-size: 1.9rem;
    padding: 0 1rem;
  }

  .hero-tag {
    font-size: 0.75rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
  }

  .hero-buttons .primary,
  .hero-buttons .secondary {
    width: 100%;
    max-width: 260px;
    margin: 0 auto;
  }

  .hero-phone {
    width: 180px;
  }

  .card-left,
  .card-right {
    display: none;
  }

  .custom-section {
    padding: 3rem 1rem;
  }

  .custom-content {
    flex-direction: column;
    text-align: center;
  }

  .text-block h2 {
    font-size: 1.6rem;
  }

  .text-block p {
    font-size: 0.9rem;
    margin: 1rem 0;
  }

  .summary-mockup {
    max-width: 260px;
  }

  .agents-section h2,
  .how-content h2,
  .testimonial-section h2,
  .cta-section h2 {
    font-size: 1.6rem;
  }

  .agent-cards {
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
  }

  .how-img {
    max-width: 280px;
  }

  .testimonials {
    padding: 0 1rem;
  }

  .download-btn {
    font-size: 0.85rem;
    padding: 0.6rem 1.3rem;
  }
}

@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    max-width: 960px;
    margin: 0 auto;
  }
}