.allergen-scan-section {
  position: relative;
  overflow: hidden;
  padding: 120px 0;
  background: #ea6f8a;
}

.as-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 560px);
  gap: 72px;
  align-items: center;
}

.as-visual {
  position: relative;
  min-height: 760px;
  display: flex;
  align-items: center;
  justify-content: center;
}



.as-accent-line {
  position: absolute;
  left: 8%;
  top: 46%;
  width: 260px;
  height: 22px;
  background: #5AE98B;
  border-radius: 999px;
  transform: rotate(-30deg);
  z-index: 1;
}

.as-qr-badge {
  position: absolute;
  left: 2%;
  top: 52%;
  transform: translateY(-50%);
  z-index: 3;
}

.as-qr-badge__image {
  width: 170px;
  height: auto;
  display: block;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.14));
}

.as-phone {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.as-phone-wrap {
  position: relative;
  width: min(100%, 320px);
  margin: 0 auto;
}

.as-qr-overlay {
  position: absolute;
  left: -48%;
  top: 24%;
  width: 180px;
  z-index: 5;
  pointer-events: none;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.25));
  animation: qrFloat 6s ease-in-out infinite;
}

@keyframes qrFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

.as-phone__image {
  width: min(100%, 430px);
  height: auto;
  display: block;
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.18));
}

.as-video {
  width: min(100%, 320px);
  height: auto;
  border-radius: 28px;
  display: block;
  border: 4px solid var(--secondary-color);

  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
}

.as-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.as-eyebrow {
  margin: 0 0 18px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.58);
}

.as-title {
  margin: 0 0 26px;
  font-size: clamp(3rem, 5vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  color: #111;
}

.as-text {
  max-width: 520px;
  margin: 0 0 28px;
  font-size: 1.22rem;
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.72);
}

.as-points {
  margin: 0 0 36px;
  padding: 0;
  list-style: none;
}

.as-points li {
  position: relative;
  margin: 0 0 10px;
  padding-left: 18px;
  font-size: 1rem;
  line-height: 1.5;
  color: rgba(0, 0, 0, 0.78);
}

.as-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #5AE98B;
  transform: translateY(-50%);
}

.as-card {
  width: min(100%, 520px);
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.as-card__image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
  box-shadow: 0 24px 40px rgba(0, 0, 0, 0.12);
}

.as-phone {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.as-device-mobile {
  position: relative;
  width: min(100%, 420px);
}

.as-device-frame {
  display: block;
  width: 100%;
  height: auto;
  position: relative;
  z-index: 3;
}

.as-device-screen {
  position: absolute;
  top: 3.2%;
  left: 6.4%;
  width: 87.2%;
  height: 93.2%;
  overflow: hidden;
  border-radius: 2rem;
  z-index: 2;
  background: #000;
}

.as-device-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.allergen-scan-section .device,
.allergen-scan-section .device-mobile {
  position: relative;
  inset: auto;
  top: auto;
  left: auto;
  right: auto;
  bottom: auto;
  transform: none;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.allergen-scan-section .device img {
  display: block;
  width: 100%;
  height: auto;
}

.allergen-scan-section .device-shadow,
.allergen-scan-section .shadow-ambient,
.allergen-scan-section .shadow-contact {
  pointer-events: none;
}

@media (max-width: 1100px) {
  .as-layout {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .as-visual {
    min-height: 620px;
  }

  .as-copy {
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .allergen-scan-section {
    padding: 88px 0;
  }

  .as-qr-overlay {
    position: absolute;
    left: -25%;
    top: 20%;
  } 

  .as-layout {
    gap: 40px;
  }

  .as-visual {
    min-height: auto;
    padding-top: 25px;
  }

  .as-accent-line {
    left: 16%;
    top: 44%;
    width: 180px;
    height: 16px;
  }

  .as-qr-badge {
    left: 0;
    top: 58%;
  }

  .as-qr-badge__image {
    width: 120px;
  }

  .as-phone__image {
    width: min(100%, 320px);
  }

  .as-title {
    font-size: clamp(2.4rem, 11vw, 3.6rem);
  }

  .as-text {
    font-size: 1.05rem;
  }

  .as-card {
    padding: 12px;
    border-radius: 18px;
  }

  .as-card__image {
    border-radius: 14px;
  }
}