.hero {
  position: relative;
  padding: 100px 0 50px;
  background: var(--white);
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  align-items: center;
  z-index: 1;
}

.hero-copy h1 {
  font-family: "Outfit", sans-serif;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  line-height: 1.1;
  margin-bottom: 16px;
}

.hero-copy p {
  color: var(--ink-soft);
  max-width: 520px;
}

.hero-copy {
  animation: fade-up 0.8s ease both;
}

.hero-art {
  position: relative;
  min-height: 360px;
  background: url("../../assets/images/delivery-box-stopwatch.webp") center/contain no-repeat;
  animation: fade-up 0.9s ease 0.1s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 24px 0;
}

.logo-meta {
  display: flex;
  gap: 40px;
  color: var(--ink-muted-light);
  font-size: 1.5rem;
  justify-content: center;
  padding-bottom: 18px;
}

.logo-strip {
  padding: 50px 0 50px;
  background: #f8f8f8;
  position: relative;
  z-index: 2;
}

.logo-row {
  display: flex;
  gap: 64px;
  color: var(--ink-muted-light);
  font-weight: 600;
  flex-wrap: wrap;
  justify-content: center;
}

.features {
  padding: 75px 0 100px;
  background:
    radial-gradient(circle at left 210%, #e8efff 0 60%, transparent 60%) no-repeat,
    var(--white);
  position: relative;
}

.features-task-box {
  position: absolute;
  left: -8%;
  bottom: -6%;
  width: min(300px, 42vw);
  height: auto;
  display: block;
  z-index: 2;
  pointer-events: none;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 36px;
  align-items: end;
}

.features-image {
  min-height: 380px;
  border-radius: 50%;
  background:
    url("../../assets/images/delivery-man.webp") center 50%/100% no-repeat,
    #f1f2f8;
  box-shadow: var(--shadow);
  aspect-ratio: 1;
  width: min(420px, 90vw);
  margin: 0;
  justify-self: start;
  position: relative;
}

.features-content {
  display: grid;
  gap: 20px;
}

.split-title {
  font-family: "Outfit", sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  font-weight: 600;
  line-height: 1.2;
}

.split-title br {
  content: "";
}

.feature-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 35px;
}

.feature-card ul {
  list-style: none;
  display: grid;
  gap: 6px;
  color: var(--ink-soft);
  padding-left: 0;
  text-align: left;
}

.feature-card ul li::before {
  content: "•";
  color: var(--primary);
  margin-right: 6px;
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border: 0;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 20px;
  color: #ff7ad9;
  position: absolute;
  top: -26px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 10px 20px rgba(71, 60, 173, 0.25);
}

.feature-icon svg {
  width: 50px;
  height: 50px;
  color: #ff7ad9;
  display: block;
}

.feature-icon .icon-x {
  width: 40px;
  height: 40px;
}

::where(.feature-card, .insight-card) {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  display: grid;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

::where(.feature-card, .insight-card):hover {
  transform: translateY(-6px) scale(1.02);
  border-color: var(--primary);
}

.feature-card {
  gap: 10px;
  place-items: center;
  padding: 50px 20px 20px 20px;
  box-shadow: 0 14px 30px rgba(50, 60, 110, 0.12);
  position: relative;
  justify-items: center;
  background-color: #FFFFFF;
  border-radius: 35px;
}

.feature-card:hover {
  box-shadow: 0 22px 40px rgba(50, 60, 110, 0.18);
}

.merchant-band {
  background: var(--primary);
  color: var(--white);
  padding: 75px 0 100px;
}

.band-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  align-items: center;
}

.band-grid > * {
  padding: 20px;
}

.merchant-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  align-items: start;
  width: min(90vw, 100%);
  max-width: 700px;
}

.merchant-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.merchant-photo {
  width: 100%;
  border-radius: 16px;
  margin-bottom: 10px;
  background-size: cover;
  background-position: center;
  aspect-ratio: 1 / 2;
  box-shadow: 0 6px 18px rgba(50, 40, 90, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.merchant-card:hover .merchant-photo {
  transform: translateY(-6px) rotate(-1deg);
  box-shadow: 0 18px 35px rgba(50, 60, 110, 0.18);
}

.merchant-card:nth-child(1) .merchant-photo,
.merchant-card:nth-child(3) .merchant-photo {
  margin-top: 32px;
}

.merchant-card:nth-child(2) .merchant-photo {
  margin-top: 0;
}

.photo-1 {
  background-image: url("../../assets/images/photo-1.webp");
}

.photo-2 {
  background-image: url("../../assets/images/photo-2.webp");
}

.photo-3 {
  background-image: url("../../assets/images/photo-3.webp");
}

.kicker {
  padding: 25px 45px 25px 0;
}

.insights {
  padding: 75px 0 50px;
  background: var(--white);
}

.section-head {
  margin-bottom: 24px;
  text-align: center;
  width: min(90vw, 100%);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.section-head h2 {
  font-family: "Outfit", sans-serif;
  font-size: clamp(2rem, 3.8vw, 2.8rem);
  line-height: 1.1;
  margin-bottom: 12px;
}

.section-head p {
  color: var(--ink-soft);
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 60px;
  width: min(90vw, 100%);
  max-width: 70%;
  padding-top: 20px;
  margin-left: auto;
  margin-right: auto;
}

.insight-card {
  padding: 15px 10px;
  box-shadow: 0 18px 36px rgba(50, 60, 110, 0.12);
  justify-items: center;
  align-items: start;
}

.insight-card:hover {
  box-shadow: 0 24px 44px rgba(50, 60, 110, 0.18);
}

.insight-card .icon {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
}

.insight-card .icon img {
  width: 120%;
  height: 120%;
  object-fit: contain;
  display: block;
}

.insight-card p {
  padding: 0 12px;
}

.how {
  padding: 40px 0 100px;
  background:
    radial-gradient(circle at 30% 75%, #e8efff 0 40%, transparent 40%) no-repeat,
    var(--white);
}

.how-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 700px) minmax(0, 1fr);
  align-items: stretch;
  gap: clamp(16px, 4vw, 40px);
}

.how-side {
  display: flex;
  justify-content: center;
  padding: 10px 0;
  position: relative;
  z-index: 2;
}

.how-side-left {
  align-items: flex-end;
}

.how-side-right {
  align-items: flex-start;
}

.how-side-img {
  width: min(320px, 36vw);
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.how-side-img-left {
  transform: rotate(-55deg) translateY(5%);
  transform-origin: center;
  margin-right: -18%;
}

.how-card {
  position: relative;
  background: linear-gradient(180deg, #fdc8f4 0%, #7f44e6 100%);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 40px) clamp(22px, 5vw, 40px) clamp(40px, 5vw, 60px);
  text-align: center;
  box-shadow: var(--shadow);
  width: min(90vw, 100%);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  z-index: 1;
}

.how-card h2 {
  font-family: "Outfit", sans-serif;
  font-size: clamp(2rem, 5vw, 2.8rem);
  margin-bottom: 16px;
  line-height: 1.1;
  color: var(--white);
}

.how-card > p {
  margin-bottom: 32px;
  color: var(--white);
}

.how-card ol {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 32px;
  max-width: 80%;
  margin-left: auto;
  margin-right: auto;
}

.how-card li {
  border-radius: 16px;
  padding: 32px 28px;
  text-align: center;
}

.how-card li span {
  font-size: 1rem;
  color: var(--white);
  font-weight: 600;
  display: inline-block;
  background: rgba(255, 255, 255, 0.3);
  padding: 6px 25px;
  border-radius: 8px;
  margin-bottom: 8px;
}

.how-card li h3 {
  font-family: "Outfit", sans-serif;
  font-size: clamp(1.2rem, 4vw, 1.6rem);
  margin: 12px 0 8px 0;
  color: var(--white);
  font-weight: 400;
}

.how-card li p {
  margin: 0;
  color: var(--white);
}

@media (max-width: 1100px) {
  .hero-grid {
    gap: 28px;
  }

  .features-grid,
  .band-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .features-image {
    justify-self: center;
  }

  .merchant-cards {
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
    width: 100%;
    max-width: 100%;
  }

  .merchant-card .merchant-photo {
    margin-top: 0;
  }

  .merchant-card {
    flex: 0 0 calc((100% - 32px) / 3);
    min-width: 0;
  }

  .insight-grid {
    grid-template-columns: repeat(3, minmax(200px, 1fr));
    max-width: 90%;
    gap: 30px;
  }

  .how-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    justify-items: center;
  }

  .how-side {
    display: flex;
    align-items: center;
    padding: 0;
    width: 100%;
  }

  .how-side-left {
    order: 1;
    margin-bottom: -22%;
    justify-content: flex-end;
    padding-right: 12px;
  }

  .how-card {
    order: 2;
  }

  .how-side-right {
    order: 3;
    margin-top: -22%;
    justify-content: flex-start;
  }

  .how-side-img-left {
    margin-right: 0;
    transform: rotate(-55deg) translateY(5%) translateX(8%);
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 70px 0 40px;
  }

  .hero-copy h1,
  .hero-copy p {
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
    flex-direction: column;
    align-items: stretch;
  }

  .hero-art {
    min-height: 260px;
  }

  .logo-meta {
    font-size: 1.1rem;
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .logo-row {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    text-align: center;
  }

  .features-image {
    width: min(320px, 90vw);
    min-height: 320px;
  }

  .features-task-box {
    width: min(240px, 62vw);
    bottom: 0;
  }

  .feature-cards {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .merchant-cards {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .insight-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .how-card {
    max-width: 90vw;
    margin-left: auto;
    margin-right: auto;
  }

  .how {
    padding-top: 0;
    padding-bottom: 60px;
  }
}
