<template>
  <section class="page page-product">
    <div class="card">
      <div class="content-wrapper">
        <div class="text-side">
          <div class="title-wrap">
            <h2 class="section-title">
              Customize Keyboard<br />
              Define Chat Style
            </h2>
            <img src="/src/assets/images/two-1.png" class="deco-1" />
            <img src="/src/assets/images/two-2.png" class="deco-2" />
          </div>
          <div class="desc-wrap">
            <p class="section-desc">
              Spice up your keyboard with one-of-a-kind skins and customize its look to the fullest—your chat style is one-of-a-kind, and your keyboard should be too.
            </p>
            
          </div>
          <div class="btns-wrap">
            <div class="download-btns">
              <a href="#"><img src="/src/assets/images/android-two.png" class="btn-img" /></a>
              <a href="#"><img src="/src/assets/images/appStore-two.png" class="btn-img" /></a>
              
            </div>
            
            <img src="/src/assets/images/two-3.png" class="deco-3" />
          </div>
        </div>
      
      </div>
    </div>
    <img src="/src/assets/images/two-phone.png" class="two-phone" />
  </section>
</template>

<script setup>
</script>

<style scoped lang="less">

.page-product {
  width: 100%;
  height: 100vh;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10vh 6vw 12vh 6vw;
  box-sizing: border-box;
  position: relative;
  @media (max-width: 768px) {
    padding: 12vh 4vw 8vh 4vw;
  }
}

.card {
  width: 100%;
  height: 100%;
  background: #02BEAC;
  border-radius: clamp(16px, 2vw, 40px);
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.content-wrapper {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: @gap-section;
  max-width: @content-max;
  width: 100%;
  padding: 0 clamp(30px, 3vw, 100px);
}

.text-side { flex: 1; max-width: clamp(300px, 38vw, 680px); }

.title-wrap {
  position: relative;
  display: inline-block;
}

.desc-wrap {
  position: relative;
}

.btns-wrap {
  position: relative;
  display: inline-block;
}

.deco-1 {
  position: absolute;
  bottom: 0;
  right: -10%;
  width: clamp(40px, 6vw, 140px);
  pointer-events: none;
}

.deco-2 {
  position: absolute;
bottom: -200%;
  right: -10%;
  width: clamp(50px, 14vw, 400px);
  pointer-events: none;
}

.deco-3 {
  position: absolute;
  bottom: -200%;
  left: 0;
  width: clamp(50px, 8vw, 200px);
  pointer-events: none;
}

.section-title {
  font-size: clamp(30px, 3.4vw, 170px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: clamp(12px, 1.2vh, 28px);
  color: #fff;
}

.section-desc {
  font-size: @font-desc;
  line-height: 1.8;
  color: rgb(255, 255, 255);
  margin-bottom: clamp(16px, 5vh, 60px);
}

.download-btns {
  display: flex;
  gap: clamp(10px, 3vw, 35px);
}

.btn-img {
  height: clamp(36px, 6.6vh, 120px);
  width: auto;
  display: block;
  transition: transform 0.3s;
  &:hover { transform: translateY(-2px); }
}

.image-side {
  flex: 1;
  display: flex;
  justify-content: center;
}

.phone-placeholder {
  width: @phone-w-main;
  height: @phone-h-main;
  border: 2px dashed rgba(255, 255, 255, 0.4);
  border-radius: clamp(16px, 1.5vw, 36px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: @font-small;
  background: rgba(255, 255, 255, 0.08);
}

.two-phone {
  position: absolute;
  right: 8vh;
  bottom: -9vh;
  height: clamp(200px, 100vh, 2000px);
  width: auto;
  pointer-events: none;
}

@media (max-width: 768px) {
  .content-wrapper {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 0 24px;
    padding-top: 0;
    margin-top: -20vh;
    position: relative;
    z-index: 2;
  }
  .text-side {
    max-width: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .title-wrap { display: block; width: 100%; text-align: center; }
  .btns-wrap { display: block; width: 100%; text-align: center; }
  .section-title { text-align: center; font-size: clamp(24px, 6vw, 40px); }
  .section-desc { text-align: center; margin-bottom: clamp(12px, 3vh, 32px); }
  .download-btns { justify-content: center; }
  .deco-1 { width: clamp(28px, 8vw, 60px); right: -5%; }
  .deco-2 { display: none; }
  .deco-3 { display: none; }
  .two-phone {
    display: block;
    height: clamp(160px, 38vh, 320px);
    right: 50%;
    transform: translateX(50%);
    bottom: 5%;
    z-index: 1;
  }
  .card {
  width: 100%;
  height: 100%;
  background: #02BEAC;
  border-radius: clamp(16px, 2vw, 40px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

}
</style>
