/* ----------- 공통 스타일 ------------ */
.section-title {
  font-size: 20px;
  font-weight: 500;
  line-height: 40px;
  margin-bottom: 0;
  min-height: 40px;
  display: flex;
  justify-content: flex-start;
  height: 40px;

  @media (min-width: 480px) and (max-width: 808px) {
    font-size: 24px;
  }

  @media (min-width: 809px) and (max-width: 1080px) {
    font-size: 28px;
  }

  @media (min-width: 1080px) {
    font-size: 32px;
  }
}

main section:has(.content-wrap) {
  padding-top: 60px;
  padding-bottom: 60px;

  @media (min-width: 809px) {
    padding-top: 120px;
    padding-bottom: 120px;
  }

  &.customer-slide {
    padding-bottom: 0;
  }

  &.runway-workflow {
    padding-top: 0;
  }
}

.runway-workflow .workflow-card .card-description,
.runway-features .features-card .card-description {
  font-size: 16px;
  line-height: 22px;
  font-weight: 400;
  margin: 0;

  p {
    margin: 0 0 8px 0;

    &:last-child {
      margin-bottom: 0;
    }
  }
}

@media (min-width: 809px) {
  .section-title {
    font-size: 40px;
    line-height: 52px;
    min-height: 80px;
  }
  .runway-workflow .workflow-card .card-description,
  .runway-features .features-card .card-description {
    font-size: 16px;
    line-height: 24px;
  }
}

@media (max-width: 809px) {
  .desktop-only {
    display: none;
  }
}

/* ----------- carousel 공통 스타일 ------------ */
.carousel-container {
  position: relative;
}

.carousel-list {
  display: flex;
  flex-direction: row;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 10px;

  @media (min-width: 809px) {
    gap: 32px;
  }

  .workflow-card,
  .features-card {
    width: 100%;
    max-width: 450px;
    min-width: 300px;
    padding: 24px;
    border-radius: 24px;
    overflow: hidden;
  }

  .testimonials-card {
    width: 100%;
    max-width: 450px;
    min-width: 300px;
    padding: 24px;
    border-radius: 24px;
    overflow: hidden;
    @media (min-width: 809px) {
      max-width: 720px;
    }
  }

  @media (max-width: 809px) {
    .testimonials-card {
      max-width: 450px;
    }
  }
}

.carousel-list::-webkit-scrollbar {
  display: none;
}

.carousel-controls {
  position: absolute;
  top: 50%;
  left: -24px;
  right: -24px;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  z-index: 8;
}

.carousel-btn {
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  pointer-events: auto;
}

.carousel-btn:hover:not(:disabled) {
  background: rgba(0, 0, 0, 0.7);
  transform: scale(1.05);
}

.carousel-btn:disabled {
  opacity: 0.2;
  cursor: not-allowed;
}

.carousel-btn img {
  width: 24px;
  height: 24px;
}

.carousel-btn.prev img {
  transform: rotate(180deg);
}

.carousel-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;

  @media (min-width: 480px) {
    display: none;
  }
}

.carousel-pagination-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.carousel-pagination-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d1d1d1;
  transition: all 0.3s ease;
}

.carousel-pagination-dot.active {
  background: #333;
  transform: scale(1.2);
}

@media (max-width: 480px) {
  .carousel-controls {
    left: -16px;
    right: -16px;
  }
  .carousel-btn {
    width: 40px;
    height: 40px;
  }
  .carousel-btn img {
    width: 20px;
    height: 20px;
  }
}

/* ----------- 히어로 영역 ------------ */
.runway-hero {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 48px 16px;
  margin-top: 64px;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  gap: 32px;
  @media (min-width: 809px) {
    padding: 80px;
  }
}
.runway-hero > .runway-hero__background {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -2;
  width: 100%;
  height: 100%;
}
.runway-hero > .runway-hero__background video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: inset(0 0 5px 0);
}
.runway-hero > .runway-hero__content-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 40px;
  width: 100%;
}
.runway-hero > .runway-hero__content-wrapper > .runway-hero__title {
  color: var(--color-black-solid, black);
  font-size: 28px;
  font-weight: 600;
  text-align: left;
  width: 100%;
  margin: 0;
  line-height: 1.3;
  letter-spacing: -0.2px;
  text-wrap: balance;

  .mobile-break {
    display: block;
  }

  .desktop-break {
    display: block;
  }

  @media (min-width: 480px) {
    font-size: 32px;

    .mobile-break:not(.desktop-break) {
      display: none;
    }
  }

  @media (min-width: 809px) {
    .mobile-break:not(.desktop-break) {
      display: none;
    }
  }

  @media (min-width: 809px) and (max-width: 1080px) {
    font-size: 48px;
  }

  @media (min-width: 1080px) {
    font-size: 64px;
    width: unset;
    max-width: 900px;
  }

  .mo_br {
    display: block;
    @media (min-width: 809px) {
      display: none;
    }
  }

  .pc_br {
    display: none;
    @media (min-width: 809px) {
      display: block;
    }
  }
}
.runway-hero > .runway-hero__content-wrapper > .runway-hero__image-wrapper {
  width: 100%;
}
.runway-hero > .runway-hero__content-wrapper > .runway-hero__image-wrapper .runway-hero__image {
  width: 100%;
  max-width: 900px;
  height: auto;
  border-radius: 5px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}
.runway-hero > .runway-hero__cta {
  display: inline-flex;
  height: 56px;
  padding: 12px 24px;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
  border-radius: 100px;
  outline: 1px solid #2b2b3b;
  outline-offset: -1px;
  text-decoration: none;
  background: transparent;
  color: #2b2b3b;
  font-family: 'Pretendard', sans-serif;
}
.runway-hero > .runway-hero__cta .runway-hero__cta-text {
  font-size: 18px;
  font-weight: 500;
  line-height: 20px;
}
.runway-hero > .runway-hero__cta .runway-hero__cta-icon-wrapper {
  width: 24px;
  height: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.runway-hero > .runway-hero__cta .runway-hero__cta-icon {
  width: 12px;
  height: 9px;
  background-color: #2b2b3b;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 12 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11.5303 5.53033C11.8232 5.23744 11.8232 4.76256 11.5303 4.46967L6.75736 -0.303301C6.46447 -0.596195 5.98959 -0.596195 5.6967 -0.303301C5.40381 0.0104129 5.40381 0.485288 5.6967 0.778182L9.91882 5L5.6967 9.22182C5.40381 9.51471 5.40381 9.98959 5.6967 10.2825C5.98959 10.5754 6.46447 10.5754 6.75736 10.2825L11.5303 5.53033ZM0.5 5.75H11V4.25H0.5V5.75Z' fill='black'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 12 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11.5303 5.53033C11.8232 5.23744 11.8232 4.76256 11.5303 4.46967L6.75736 -0.303301C6.46447 -0.596195 5.98959 -0.596195 5.6967 -0.303301C5.40381 0.0104129 5.40381 0.485288 5.6967 0.778182L9.91882 5L5.6967 9.22182C5.40381 9.51471 5.40381 9.98959 5.6967 10.2825C5.98959 10.5754 6.46447 10.5754 6.75736 10.2825L11.5303 5.53033ZM0.5 5.75H11V4.25H0.5V5.75Z' fill='black'/%3E%3C/svg%3E");
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
}
@media (min-width: 809px) {
  .runway-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.3);
    z-index: -1;
  }
  .runway-hero > .runway-hero__background {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: none;
  }
  .runway-hero > .runway-hero__content-wrapper {
    gap: 32px;
  }
  .runway-hero > .runway-hero__content-wrapper > .runway-hero__image-wrapper .runway-hero__image {
    border-radius: 12px;
  }
  .runway-hero > .runway-hero__cta {
    background: rgba(255, 255, 255, 0.3);
  }
}

/* ----------- 워크플로우 영역 ------------ */
.runway-workflow {
  background-color: #ffffff;
}
.runway-workflow .container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto;
}
.runway-workflow .workflow-card-list {
  gap: 24px;
}
.runway-workflow .section-title-wrap {
  padding: 0;
}
.runway-workflow .workflow-card {
  position: relative;
  min-height: 330px;
  flex-shrink: 0;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
}
.runway-workflow .workflow-card .card-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex-grow: 1;
  @media (min-width: 1200px) {
    padding-bottom: 120px;
  }
}
.runway-workflow .workflow-card .card-text-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.runway-workflow .workflow-card .card-title {
  font-size: 24px;
  font-weight: 500;
  line-height: 32px;
  margin: 0;
}
.runway-workflow .workflow-card .card-image-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.runway-workflow .card-data-integration {
  background-color: #dff8ff;
}
.runway-workflow .card-infrastructure {
  background-color: #ffdfdf;
}
.runway-workflow .card-model-development {
  background-color: #ebdfff;
  .card-image-placeholder {
    margin-right: -24px;
    @media (min-width: 1200px) {
      margin-right: -32px;
    }
  }
}
.runway-workflow .card-model-deployment {
  background-color: #dfe3ff;
}
@media (min-width: 1200px) {
  .runway-workflow .container {
    gap: 32px;
  }
  .workflow-carousel {
    position: static;
  }
  .runway-workflow .workflow-card-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto;
    grid-template-areas:
      'lg-card lg-card md-card'
      'sm-card-1 sm-card-2 md-card';
    gap: 32px;
    overflow-x: visible;
    scroll-snap-type: none;
  }
  .runway-workflow .section-title-wrap {
    text-align: left;
    margin-bottom: 0;
  }
  .runway-workflow .workflow-card {
    width: auto;
    max-width: none;
    padding: 32px;
    height: auto;
    min-height: unset;
    flex-shrink: 1;
  }
  .runway-workflow .workflow-card.card-sm {
    position: relative;
    padding-bottom: 200px;
  }
  .runway-workflow .workflow-card .card-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 20px;
    padding-bottom: 0;
  }
  .runway-workflow .workflow-card .card-text-group {
    width: 100%;
    gap: 8px;
    flex-shrink: 0;
    align-items: flex-start;
  }
  .runway-workflow .workflow-card .card-title {
    font-size: 32px;
    line-height: 40px;
  }
  .runway-workflow .workflow-card.card-data-integration .card-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
  .runway-workflow .workflow-card.card-data-integration .card-text-group {
    width: 50%;
  }
  .runway-workflow .card-data-integration {
    grid-area: lg-card;
  }
  .runway-workflow .card-model-development {
    grid-area: md-card;
  }
  .runway-workflow .card-infrastructure {
    grid-area: sm-card-1;
  }
  .runway-workflow .card-model-deployment {
    grid-area: sm-card-2;
  }
  .workflow-carousel-controls,
  .workflow-pagination {
    display: none;
  }
}

/* ----------- 피처 영역 ------------ */
.runway-features {
  background-color: #f1f3fb;
}
.runway-features .container {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto;
}
.runway-features .features-card-list {
  gap: 24px;
}
.runway-features .features-card {
  min-height: 320px;
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  flex-shrink: 0;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
}
.runway-features .features-card .card-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
  flex-grow: 1;
}
.runway-features .features-card .card-icon-wrapper {
  width: 24px;
  height: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}
.runway-features .features-card .card-icon {
  width: 100%;
  height: 100%;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
.runway-features .features-card .card-icon-1 {
  background-image: url('/images/runway/feature-card-header-symbol-1.svg');
}
.runway-features .features-card .card-icon-2 {
  background-image: url('/images/runway/feature-card-header-symbol-2.svg');
}
.runway-features .features-card .card-icon-3 {
  background-image: url('/images/runway/feature-card-header-symbol-3.svg');
}
.runway-features .features-card .card-icon-4 {
  background-image: url('/images/runway/feature-card-header-symbol-4.svg');
}
.runway-features .features-card .card-text-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.runway-features .features-card .card-title {
  font-size: 32px;
  font-weight: 500;
  line-height: 42px;
  margin: 0;
  color: #000000;
}

.features-carousel.no-left-fade .features-card-list {
  -webkit-mask-image: linear-gradient(to right, rgb(0, 0, 0, 1) 0%, rgb(0, 0, 0, 1) 92.5%, rgb(0, 0, 0, 0) 100%);
  mask-image: linear-gradient(to right, rgb(0, 0, 0, 1) 0%, rgb(0, 0, 0, 1) 92.5%, rgb(0, 0, 0, 0) 100%);
}
.features-carousel.no-right-fade .features-card-list {
  -webkit-mask-image: linear-gradient(to right, rgb(0, 0, 0, 0) 0%, rgb(0, 0, 0, 1) 7.5%, rgb(0, 0, 0, 1) 100%);
  mask-image: linear-gradient(to right, rgb(0, 0, 0, 0) 0%, rgb(0, 0, 0, 1) 7.5%, rgb(0, 0, 0, 1) 100%);
}
.features-carousel.no-left-fade.no-right-fade .features-card-list {
  -webkit-mask-image: none;
  mask-image: none;
}

@media (min-width: 809px) {
  .runway-features .features-card .card-title {
    font-size: 32px;
    line-height: 42px;
  }
}

/* ----------- 고객 후기 영역 ------------ */
.runway-testimonials {
  background-color: #f1f3fb;
}
.runway-testimonials .container {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto;
}
.runway-testimonials .testimonials-card {
  background: linear-gradient(102deg, #e9ecff, #a5adff);
  flex-shrink: 0;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  min-height: 360px;
}
.runway-testimonials .testimonials-card .testimonial-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
  flex-grow: 1;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.runway-testimonials .testimonials-card .testimonial-quote p {
  font-size: 24px;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(0, 0, 0, 0.9);
  margin: 0;
  white-space: normal;
}
.runway-testimonials .testimonials-card .testimonial-author p {
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: rgba(11, 18, 33, 0.8);
  margin: 0;
}
/* mobile responsive for testimonials */
@media (max-width: 480px) {
  .runway-testimonials .testimonials-card {
    padding: 32px 24px;
    min-height: 280px;
  }
  .runway-testimonials .testimonials-card .testimonial-quote p {
    font-size: 20px;
  }
  .runway-testimonials .testimonials-card .testimonial-content {
    gap: 40px;
  }
}

/* ----------- CTA Footer 영역 ------------ */
.cta-footer {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 20px;
  overflow: hidden;
  background-color: #000000;
  min-height: 560px;
}
.cta-footer__video-background {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cta-footer__video-background video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: 400px;
  max-height: 400px;
  transform: scale(1.5);
}
.cta-footer__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  text-align: left;
  width: 100%;
  max-width: 1400px;
  position: relative;
  z-index: 2;
}
.cta-footer__content h2 {
  font-size: 32px;
  font-weight: 400;
  line-height: 1.3;
  color: #ffffff;
  margin: 0;
  @media (min-width: 1440px) {
    font-size: 60px;
  }
}
.cta-footer__content p {
  font-size: 20px;
  font-weight: 300;
  line-height: 1.2;
  color: #ffffff;
  margin: 0;
}
.cta-footer__button {
  display: inline-flex;
  height: 56px;
  padding: 0 24px;
  background: transparent;
  border: 1px solid #ffffff;
  border-radius: 100px;
  justify-content: center;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 500;
  text-decoration: none;
  margin-top: 16px;
  transition: all 0.3s ease;
}
.cta-footer__button:hover {
  background: #ffffff;
  color: #000000;
}
.cta-footer__button:hover .arrow-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10' viewBox='0 0 12 10' fill='none'%3E%3Cpath d='M11.6628 4.07363L7.53193 0.210913C7.24733 -0.0703044 6.78404 -0.0703044 6.49944 0.210913C6.21484 0.49213 6.21484 0.947869 6.49944 1.22909L9.50994 4.03163H0.662791C0.296698 4.03163 0 4.32375 0 4.68463C0 5.0455 0.296698 5.33763 0.662791 5.33763H9.50994L6.49944 8.14017C6.21484 8.42138 6.21484 8.87712 6.49944 9.15834C6.78404 9.43956 7.24733 9.43956 7.53193 9.15834L11.6628 5.29562C11.9462 5.0155 11.9462 4.35375 11.6628 4.07363Z' fill='%23000000'/%3E%3C/svg%3E");
}
.cta-footer__button .arrow-icon {
  width: 24px;
  height: 24px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10' viewBox='0 0 12 10' fill='none'%3E%3Cpath d='M11.6628 4.07363L7.53193 0.210913C7.24733 -0.0703044 6.78404 -0.0703044 6.49944 0.210913C6.21484 0.49213 6.21484 0.947869 6.49944 1.22909L9.50994 4.03163H0.662791C0.296698 4.03163 0 4.32375 0 4.68463C0 5.0455 0.296698 5.33763 0.662791 5.33763H9.50994L6.49944 8.14017C6.21484 8.42138 6.21484 8.87712 6.49944 9.15834C6.78404 9.43956 7.24733 9.43956 7.53193 9.15834L11.6628 5.29562C11.9462 5.0155 11.9462 4.35375 11.6628 4.07363Z' fill='%23ffffff'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  transition: all 0.3s ease;
}
/* mobile responsive for cta footer */
@media (max-width: 809px) {
  .cta-footer {
    padding: 40px 20px;
    min-height: 400px;
  }
  .cta-footer__video-background {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    z-index: 0;
    opacity: 1;
  }
  .cta-footer__video-background video {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    opacity: 0.8;
  }
  .cta-footer__content h2 {
    font-size: 28px;
  }
  .cta-footer__content p {
    font-size: 18px;
  }
}

/* TODO: Refactor specialized pages to use .mid-banner instead of .industry-copyright */
/* Mid Banner */
.mid-banner {
  position: relative;
  display: flex;
  align-items: end;
  min-height: 520px;
  height: 70vh;

  .container {
    height: 100%;
    display: flex;
    align-items: end;
    padding: 0 10px;
    @media (min-width: 809px) {
      padding: 0 40px;
    }
  }

  p {
    position: relative;
    z-index: 2;
    color: #fff;
    line-height: 1.3;
    font-size: 32px;
    margin: 0 0 60px;
    font-weight: 600;
    @media (min-width: 809px) {
      font-size: 52px;
      margin-bottom: 100px;
    }
    @media (min-width: 1440px) {
      font-size: 64px;
      margin-bottom: 160px;
    }
  }

  img {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
  }
}

.mobile-hidden {
  @media (max-width: 809px) {
    display: none;
  }
}
