/* AI Product Index Styles - Converted from LESS to CSS */

/* CSS Variables */
:root {
  --ai-text-color: #1b2337;
  --ai-primary-color: #635ff2;
  --interactive-animation: all 0.3s cubic-bezier(0.42, 0, 0.58, 1);
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Proba_Pro_Regular', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--ai-text-color);
  line-height: 1.5;
}

/* Interactive Animation Utility */
.interactive-animation {
  transition: var(--interactive-animation);
}

/* Flex Utility */
.flex {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Main Container */
.ai_product_index {
  width: 100vw;
  height: 100%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 100%);
}

.ai_product_index_container {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: scroll;
  scroll-behavior: smooth;
}

.ai_product_index_container::-webkit-scrollbar {
  display: none;
  scrollbar-width: none;
}

/* Header Styles */
.ai_product_index__header {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  z-index: 999;
  height: 72px;
  background-color: transparent;
  padding: 0 16px;
  box-sizing: border-box;
  transition: width 0.38s, top 0.3s, background 0.52s, box-shadow 0.52s;
  display: flex;
  width: 100%;
  max-width: 1920px;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto;
}

.ai_product_index__header.header__fiexd {
  left: 50%;
  transform: translateX(-50%);
  top: 20px;
  max-width: 1200px !important;
  height: 72px;
  padding: 25px 24px;
  border-radius: 16px;
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(2px);
}

.ai_product_index__header.header__fiexd::before {
  content: '';
  position: absolute;
  left: -1px;
  top: -1px;
  border-radius: 16px;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  box-sizing: border-box;
  border: 1px solid rgba(0, 0, 0, 0.03);
  z-index: -1;
}

/* Mobile Header */
.ai_product_mobile_header {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  z-index: 999;
  width: 100%;
  height: 54px;
  background-color: transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3px 4px;
  box-sizing: border-box;
}

.ai_product_mobile_header.header__fiexd {
  position: fixed;
  top: 0;
  background-color: #ffffff;
}

/* Logo */
.ai_product_logo {
  width: 78px;
  height: 40px;
  background-image: url('../img/logo.svg');
  background-position: center;
  background-size: cover;
  display: inline-block;
  background-repeat: no-repeat;
}

.ai_product_mobile_header .ai_product_logo {
  width: 58px;
  height: 30px;
  background: url('../img/logo.svg') no-repeat center;
  background-size: contain;
  margin-right: 8px;
}

/* Section Common Styles */
.index_section_public {
  display: flex;
  width: 100%;
  min-width: 1200px;
  max-width: 1200px;
  justify-content: flex-start;
  align-items: center;
  flex-direction: column;
  margin: 0 auto;
}

.index_section_public.mobile {
  min-width: 0;
}

/* Banner Section */
.ai_product_index__banner {
  height: 850px;
  padding-top: 172px;
  max-width: none !important;
  background-image: url('../img/index_banner_bg.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  border-bottom-left-radius: 120px;
  position: relative;
}

.ai_product_index__banner.mobile {
  height: auto;
  min-width: 0;
  padding-top: 114px;
  padding-bottom: 104px;
  padding-left: 20px;
  padding-right: 20px;
}

.banner_top_title {
  width: 680px;
  height: 202px;
  color: var(--ai-text-color);
  font-size: 72px;
  font-style: normal;
  font-weight: 700;
  font-family: 'Proba_Pro_Regular', sans-serif;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-height: 140%;
  margin-bottom: 32px;
  text-align: center;
  overflow: hidden;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.ai_product_index__banner.mobile .banner_top_title {
  width: 100%;
  font-size: 24px;
  margin-bottom: 16px;
}

.banner_top_desc {
  width: 640px;
  color: #1b2337;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 30px;
  margin-bottom: 56px;
  text-align: center;
}

.ai_product_index__banner.mobile .banner_top_desc {
  width: 100%;
  font-size: 12px;
  margin-bottom: 40px;
}

/* Video Section */
.ai_product_index__video {
  z-index: 2;
  position: relative;
  background-color: #fff;
  height: 720px;
  margin: -202px auto 0 !important;
  border-radius: 16px;
  outline: 8px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0px 16px 40px 0px rgba(0, 0, 0, 0.05);
  background-image: url('../img/index_banner_video.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.ai_product_index__video.mobile {
  width: 100%;
  height: auto;
  padding: 0 20px 0 20px;
  box-sizing: border-box;
  margin: -45px auto 0 !important;
  min-width: 0;
}

.ai_product_index__video.mobile img {
  width: 100%;
}

.banner__video {
  position: absolute;
  left: 536px;
  top: calc(92px + 56px);
  width: 480px;
  height: 480px;
  overflow: hidden;
}

.banner__video video {
  object-fit: cover;
  border-radius: 16px;
  width: 100%;
  height: 100%;
}

/* Scenes Section */
.ai_product_index__scenes {
  padding-top: 200px;
  flex-direction: column;
}

.scenes__top__title {
  min-width: 812px;
  max-width: max-content;
  color: #1b2337;
  text-align: center;
  font-size: 56px;
  font-style: normal;
  font-weight: 700;
  line-height: 140%;
  min-height: 156px;
  height: max-content;
  margin-bottom: 32px;
  font-family: 'Proba_Pro_Regular', sans-serif;
}

.scenes__top__desc {
  width: 100%;
  height: 30px;
  color: #505a71;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 180%;
  text-align: center;
}

/* Scenes List */
.ai_product_index__scenes_list {
  width: 100%;
  height: 684px;
  padding-top: 110px;
  box-sizing: border-box;
}

.scenes_list__ul {
  display: flex;
  padding: 1px 170px 148px;
}

.scenes_list__ul_li {
  position: relative;
  width: 328px;
  height: 374px;
  margin-bottom: 32px;
  padding: 16px 16px 24px 16px;
  box-sizing: border-box;
  flex-shrink: 0;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  outline: 1px solid transparent;
  border-radius: 32px;
  transition: var(--interactive-animation);
}

.scenes_list__ul_li:not(:last-child) {
  margin-right: 8px;
}

.scenes_list__ul_li_img {
  transition: var(--interactive-animation);
  width: 296px;
  height: 264px;
  flex-shrink: 0;
  border-radius: 16px;
  background-color: #ebeef5;
  margin-bottom: 24px;
  object-fit: cover;
}

.scenes_list__ul_li_desc {
  width: 100%;
  height: 46px;
  background-color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.desc_left {
  width: calc(100% - 30px - 40px);
  height: 46px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0 8px;
}

.desc_left h5 {
  width: 100%;
  height: 22px;
  color: #000;
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: 22px;
}

.desc_right {
  opacity: 0;
  width: 40px;
  height: 40px;
  background-color: var(--ai-primary-color);
  border-radius: 50%;
  margin-left: 30px;
  position: relative;
}

.desc_right::before {
  position: absolute;
  left: 50%;
  top: 50%;
  content: '';
  transform: translate(-50%, -50%);
  background-image: url('../img/index_product_sprite.svg');
  background-repeat: no-repeat;
  background-position: -206px -16px;
  width: 20px;
  height: 16px;
}

.scenes_list__ul_li:hover {
  height: 406px;
  margin-bottom: 0;
  background-color: #fff;
  outline: 1px solid #ebeef5;
  box-shadow: 0px 8px 32px 0px rgba(0, 0, 0, 0.03);
}

.scenes_list__ul_li:hover .scenes_list__ul_li_img {
  width: 296px;
  height: 296px;
}

.scenes_list__ul_li:hover .desc_right {
  opacity: 1;
}

/* Step Section */
.ai_product_index__step {
  padding-top: 200px;
}

.ai_product_index__step.mobile {
  padding: 60px 20px 0 20px;
}

.step_section__title {
  width: 100%;
  text-align: center;
  color: #1b2337;
  font-size: 48px;
  font-style: normal;
  font-weight: 700;
  line-height: 140%;
  min-height: 68px;
  height: max-content;
  margin-bottom: 110px;
  font-family: 'Proba_Pro_Regular', sans-serif;
}

.ai_product_index__step.mobile .step_section__title {
  font-size: 24px;
  line-height: 33px;
  margin-bottom: 36px;
  min-height: 0;
}

.step_section__results_des {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  width: 100%;
  list-style: none;
}

.step_section__results_des_item {
  height: 426px;
  width: 588px;
  background-color: #f1f3f9;
  border-radius: 22px;
  position: relative;
  box-sizing: border-box;
  padding: 40px 56px 0 56px;
}

.step_section__results_des_item:first-child {
  width: 1200px;
  height: 526px;
  margin-bottom: 24px;
}

.step_section__results_des_item h5 {
  color: #1b2337;
  font-size: 24px;
  font-weight: 700;
  line-height: 34px;
  height: 34px;
  margin-bottom: 8px;
}

.step_section__results_des_item p {
  color: #505a71;
  font-size: 16px;
  font-weight: 400;
  line-height: 180%;
}

.results_img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  left: 0;
  top: 0;
}

.step_section__results_des_item:first-child .results_img {
  object-fit: contain;
}

/* Mobile step styles */
.ai_product_index__step.mobile .step_section__results_des_item {
  width: 100%;
  height: auto;
  padding: 20px 20px 0 20px;
  margin-bottom: 16px;
}

.ai_product_index__step.mobile .step_section__results_des_item:first-child {
  width: 100%;
  height: auto;
  margin-bottom: 16px;
  padding-bottom: 20px;
}

.ai_product_index__step.mobile .step_section__results_des_item h5 {
  font-size: 14px;
  line-height: 19px;
  height: auto;
}

.ai_product_index__step.mobile .step_section__results_des_item p {
  color: #505a71;
  font-size: 12px;
  line-height: 21px;
}

.ai_product_index__step.mobile .results_img {
  position: relative;
  width: 100%;
  height: auto;
  margin-top: 17px;
}

/* Editor Section */
.ai_product_index__editor {
  padding-top: 200px;
  box-sizing: border-box;
}

.ai_product_index__editor.mobile {
  padding: 60px 20px 60px 20px;
}

.editor_section__top__title {
  width: 800px;
  text-align: center;
  color: #1b2337;
  font-size: 48px;
  font-style: normal;
  font-weight: 700;
  line-height: 140%;
  min-height: 68px;
  height: max-content;
  margin-bottom: 110px;
  font-family: 'Proba_Pro_Regular', sans-serif;
}

.ai_product_index__editor.mobile .editor_section__top__title {
  font-size: 24px;
  line-height: 33px;
  margin-bottom: 36px;
  width: auto;
  min-height: auto;
}

.editor_section__list {
  margin-bottom: 160px;
  box-sizing: border-box;
  display: flex;
}

.ai_product_index__editor.mobile .editor_section__list {
  width: 100%;
  margin-bottom: 174px;
}

.editor_section__list__left,
.editor_section__list__right {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.editor_section__list li {
  width: 220px;
  height: 260px;
  background-color: #f1f3f9;
  border-radius: 24px;
  list-style: none;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}

/* Domain tool background images */
.list__left_item.a { background-image: url('../img/domain-tool/01.png'); }
.list__left_item.b { background-image: url('../img/domain-tool/02.png'); }
.list__left_item.c { background-image: url('../img/domain-tool/03.png'); }
.list__left_item.d { width: 466px; background-image: url('../img/domain-tool/04.png'); }
.list__left_item.e { background-image: url('../img/domain-tool/05.png'); }
.list__left_item.f { width: 310px; background-image: url('../img/domain-tool/06.png'); }
.list__left_item.g { width: 378px; background-image: url('../img/domain-tool/07.png'); }
.list__right_item.h { width: 466px; height: 544px; background-image: url('../img/domain-tool/08.png'); }
.list__right_item.i { background-image: url('../img/domain-tool/09.png'); }
.list__right_item.j { background-image: url('../img/domain-tool/10.png'); }

/* Mobile editor styles */
.ai_product_index__editor.mobile .editor_section__list li {
  width: 61px;
  height: 72px;
  border-radius: 5px;
}

.ai_product_index__editor.mobile .list__left_item.d { width: 130px; }
.ai_product_index__editor.mobile .list__left_item.f { width: 86px; }
.ai_product_index__editor.mobile .list__left_item.g { width: 105px; }
.ai_product_index__editor.mobile .list__right_item.h { width: 130px; height: 151px; }

.editor_section__bottom {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  height: 64px;
  display: flex;
  justify-content: space-between;
  list-style: none;
}

.editor_section__bottom li {
  width: 160px;
  height: 64px;
}

/* Footer Section */
.ai_product_index__footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1200px;
  height: auto;
  margin: 0 auto;
}

.ai_product_index__footer.mobile {
  width: 100%;
  height: auto;
  min-width: 0;
}

.ai_product_index__footer p {
  height: 16px;
  color: #8693ab;
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  margin: 48px 0;
}

.ai_product_index__footer.mobile p {
  margin: 0 auto;
  margin-top: 20px;
  margin-bottom: 40px;
}

/* Scroll Slider Styles */
.scroll-slider {
  box-sizing: border-box;
  position: relative;
}

.scroll-slider-body {
  height: 100%;
  overflow-x: scroll;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overscroll-behavior-x: none;
  box-sizing: border-box;
  scroll-behavior: smooth;
  display: flex;
  justify-content: space-between;
}

.scroll-slider-body::-webkit-scrollbar {
  display: none;
}

.scroll-slider-body-view {
  display: flex;
  justify-content: space-between;
}

.scroll-slider-body-view_list {
  width: max-content;
  white-space: nowrap;
  position: relative;
  transition: var(--interactive-animation);
  font-size: 0;
}

.slider_switch__box_left,
.slider_switch__box_right {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #fff;
  border: 2px solid #fff;
  pointer-events: none;
  position: relative;
  transition: var(--interactive-animation);
}

.slider_switch__box_left.show,
.slider_switch__box_right.show {
  pointer-events: all;
  border: 2px solid var(--ai-text-color);
}

.slider_switch__box_left span,
.slider_switch__box_right span {
  display: inline-block;
  width: 36px;
  height: 16px;
  background-repeat: no-repeat;
  background-image: url('../img/index_product_sprite.svg');
  background-position: -54px -16px;
}

.slider_switch__box_left.show span,
.slider_switch__box_right.show span {
  background-position: -6px -16px;
}

.slider_switch__box_left:hover,
.slider_switch__box_right:hover {
  border: 2px solid var(--ai-primary-color);
  background-color: var(--ai-primary-color);
}

.slider_switch__box_left:hover span,
.slider_switch__box_right:hover span {
  background-position: -102px -16px;
}

.slider_switch__box_left span {
  transform: rotate(0.5turn);
}

/* Observer Animation */
.observer_move {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* iPad Styles */
@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) {
  .ai_product_index__banner {
    min-width: 0;
    height: auto;
    padding-top: 114px;
    padding-bottom: 110px;
  }

  .banner_top_title {
    font-size: 32px;
  }

  .banner_top_desc {
    font-size: 12px;
  }

  .index_section_public {
    min-width: 0;
  }

  .ai_product_index__scenes {
    padding-top: 60px;
  }

  .scenes__top__title {
    font-size: 32px;
    min-width: 0;
    min-height: 0;
    margin-bottom: 16px;
  }

  .scenes__top__desc {
    font-size: 12px;
  }

  .ai_product_index__scenes_list {
    padding-top: 81px;
  }

  .scenes_list__ul {
    padding: 0;
  }

  .ai_product_index__step {
    padding-top: 128px;
  }

  .step_section__title {
    font-size: 32px;
    margin-bottom: 36px;
  }

  .step_section__results_des {
    padding-left: 20px;
    padding-right: 20px;
  }

  .step_section__results_des_item {
    width: 100%;
    margin-bottom: 20px;
  }

  .ai_product_index__editor {
    padding-top: 36px;
  }

  .editor_section__top__title {
    font-size: 24px;
    margin-bottom: 36px;
  }

  .editor_section__list {
    width: 100%;
    box-sizing: border-box;
    padding-left: 20px;
    padding-right: 20px;
    margin-bottom: 287px;
  }

  .editor_section__list li {
    width: 134px;
    height: 167px;
    border-radius: 5px;
  }

  .list__left_item.d { width: 268px; }
  .list__left_item.f { width: 188px; }
  .list__left_item.g { width: 228px; }
  .list__right_item.h { width: 282px; height: 329px; }
}

/* Mobile and Desktop Header Control */
@media (max-width: 768px) {
  /* Mobile: Show mobile header, hide desktop header */
  .ai_product_index__header {
    display: none !important;
  }
  
  .ai_product_mobile_header {
    display: flex !important;
  }
  
  /* Mobile: Show mobile video, hide desktop video */
  .banner__video {
    display: none !important;
  }
  
  .mobile-video {
    display: block !important;
    width: 100%;
  }
  
  /* Mobile: Hide scenes section */
  .ai_product_index__scenes,
  .ai_product_index__scenes_list {
    display: none !important;
  }
  
  /* Apply mobile styles automatically */
  .ai_product_index__banner {
    height: auto !important;
    min-width: 0 !important;
    padding-top: 114px !important;
    padding-bottom: 104px !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  
  .ai_product_index__video {
    width: 100% !important;
    height: auto !important;
    padding: 0 20px 0 20px !important;
    box-sizing: border-box !important;
    margin: -45px auto 0 !important;
    min-width: 0 !important;
  }
  
  .index_section_public {
    min-width: 0 !important;
  }
  
  .ai_product_index__step {
    padding: 60px 20px 0 20px !important;
  }
  
  .ai_product_index__editor {
    padding: 60px 20px 60px 20px !important;
  }
  
  .ai_product_index__footer {
    width: 100% !important;
    height: auto !important;
    min-width: 0 !important;
  }
  
  /* Hide editor videos on mobile */
  .editor_section__bottom {
    display: none !important;
  }
}

@media (min-width: 769px) {
  /* Desktop: Show desktop header, hide mobile header */
  .ai_product_index__header {
    display: flex !important;
  }
  
  .ai_product_mobile_header {
    display: none !important;
  }
  
  /* Desktop: Show desktop video, hide mobile video */
  .banner__video {
    display: block !important;
  }
  
  .mobile-video {
    display: none !important;
  }
  
  /* Desktop: Show scenes section */
  .ai_product_index__scenes,
  .ai_product_index__scenes_list {
    display: flex !important;
  }
  
  .ai_product_index__scenes_list {
    display: block !important;
  }
}
