.gradient-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    overflow: hidden;
    z-index: 1;
}

/* 움직이는 그라데이션 테두리 */
.gradient-btn::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: inherit;

    background: linear-gradient(
            90deg,
            #ffffff,
            #67FFED,
            #E8FF80,
            #ffffff,
            #67FFED,
            #E8FF80
    );
    background-size: 300% 100%;
    animation: borderFlow 4s linear infinite;

    z-index: -2;
}

/* 안쪽 버튼 영역 */
.gradient-btn::after {
    content: "";
    position: absolute;
    inset: 2px;
    border-radius: inherit;

    background: linear-gradient(90deg, #2962ff, #3d5afe);

    z-index: -1;
}

/* Hover */
.gradient-btn:hover {
    box-shadow:
            0 0 15px rgba(103,255,237,.45),
            0 0 35px rgba(232,255,128,.25);
}

@keyframes borderFlow {
    from {
        background-position: 0% 50%;
    }
    to {
        background-position: 300% 50%;
    }
}

/* 웨이브 바 */
#wave {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 55%;
    z-index: 2;

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 22px;

    pointer-events: none;

    /* 양 끝은 흐리게, 가운데만 선명하게 */
    -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,.5) 0%, rgba(0,0,0,1) 30%, rgba(0,0,0,1) 70%, rgba(0,0,0,.5) 100%);
    mask-image: linear-gradient(to right, rgba(0,0,0,.5) 0%, rgba(0,0,0,1) 30%, rgba(0,0,0,1) 70%, rgba(0,0,0,.5) 100%);
}

.wave-bar {
    width: 60px;
    height: 220px;

    border-radius: 999px;

    background: linear-gradient(
            to top,
            rgba(255,255,255,0.00) 0%,
            rgba(255,255,255,0.03) 8%,
            rgba(255,255,255,0.08) 16%,
            rgba(255,255,255,0.16) 26%,
            rgba(255,255,255,0.28) 38%,
            rgba(255,255,255,0.42) 50%,
            rgba(255,255,255,0.58) 62%,
            rgba(255,255,255,0.72) 74%,
            rgba(255,255,255,0.82) 86%,
            rgba(255,255,255,0.70) 100%
    );

    box-shadow: 0 0 12px rgba(255,255,255,.08);

    will-change: height;
    transition: height .05s linear;
}

/* 모바일용 웨이브 (막대 크기는 유지, 개수만 JS에서 줄임) */
@media (max-width: 640px) {
    #wave {
        height: 40%;
    }
}

/* 헤더 투명→흰 배경 전환, .inner 1440px 정렬, 로고/gnb 24px 오프셋은 convert/css/styles.css에서 전역으로 처리 */

/* 하나의 흐름 / Flow / Automation / Orchestration 텍스트 그라데이션 */
.text-gradient {
    background: linear-gradient(to bottom, rgba(0,170,255,.58), rgba(1,134,245,.9), rgba(168,216,255,1));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* 고객사 로고 마퀴 */
.client-section {
    padding: 60px 0 80px;
}

.client-marquee-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.client-marquee {
    overflow: hidden;
    width: 100%;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 5%, #000 95%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, #000 5%, #000 95%, transparent 100%);
}

/* 이동은 js/home/clientLogos.js가 requestAnimationFrame으로 transform을 직접 제어
   (hover/화면 진입-이탈 시 급정지 없이 서서히 가속/감속되도록 하기 위함) */
.client-track {
    display: flex;
    width: max-content;
    will-change: transform;
}

.client-card {
    flex: 0 0 auto;
    width: 160px;
    height: 90px;
    margin: 0 12px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.client-card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* 모바일용 고객사 로고 */
@media (max-width: 640px) {
    .client-section {
        padding: 40px 0 50px;
    }

    .client-marquee-group {
        gap: 10px;
    }

    .client-card {
        width: 100px;
        height: 60px;
        margin: 0 6px;
        padding: 10px;
        border-radius: 8px;
    }
}

/* 스크롤 리빌: 요소가 뷰포트에 들어오면 방향/형태별로 서서히 나타남 (js/home/index.js의 initScrollReveal)
   섹션마다 다른 느낌을 주기 위해 up(아래→위) / left·right(좌우 슬라이드) / scale(확대) / fade(단순 페이드) 5종을 구분해서 사용 */
.reveal-up,
.reveal-left,
.reveal-right,
.reveal-scale,
.reveal-fade {
    opacity: 0;
    transition: opacity .7s cubic-bezier(.25,.8,.25,1), transform .7s cubic-bezier(.25,.8,.25,1);
    transition-delay: var(--reveal-delay, 0s);
}

.reveal-up { transform: translateY(28px); }
.reveal-left { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }
.reveal-scale { transform: scale(.9); }
.reveal-fade { transform: none; }

.reveal-up.is-visible,
.reveal-left.is-visible,
.reveal-right.is-visible,
.reveal-scale.is-visible,
.reveal-fade.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .reveal-up,
    .reveal-left,
    .reveal-right,
    .reveal-scale,
    .reveal-fade {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* 모바일에서는 스크롤 리빌 모션을 끄고 항상 최종 상태로 바로 보여줌 */
@media (max-width: 767px) {
    .reveal-up,
    .reveal-left,
    .reveal-right,
    .reveal-scale,
    .reveal-fade {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* 모바일 글씨 크기 상한: 헤딩 18px, 본문 16px */
@media (max-width: 767px) {
    h1, h2, h3, h4 { font-size: 18px !important; line-height: 1.4 !important; }
    p { font-size: 16px !important; line-height: 1.6 !important; }
}

/* UiPath 파트너 배지 섹션 */
.uipath-section {
    background: rgba(148, 206, 255, 0.15);
}

.uipath-badge-box {
    display: inline-flex;
    align-items: center;
    gap: 40px;
    background: transparent;
    border-radius: 0;
    padding: 15px 85px;
    border: 5px solid;
    border-image: linear-gradient(to bottom, #FA4616 0%, #FFFFFF 50%, #0BA2B3 100%) 1;
}

/* 홈 화면 뉴스 카드 (js/home/index.js의 renderMainNewsList가 tmpl/home/mainNewsList.html을 렌더링해 채움) */
.news-card {
    display: block;
    cursor: pointer;
    border: 1px solid #F2F2F2;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: rgba(99, 99, 99, 0.15) 0px 2px 6px 0px;
    transition: transform .25s ease, box-shadow .25s ease, opacity .7s cubic-bezier(.25,.8,.25,1);
    text-decoration: none;
    color: inherit;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: rgba(99, 99, 99, 0.25) 0px 8px 16px 0px;
}

.news-card-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f2f2f2;
}

.news-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-card-body {
    padding: 20px;
}

.news-card-date {
    font-size: 13px;
    color: #999;
    margin-bottom: 8px;
}

.news-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #111;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-desc {
    font-size: 14px;
    color: #777;
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-more {
    font-size: 13px;
    font-weight: 600;
    color: #2563EB;
}

#casesTrack::-webkit-scrollbar,
#casesTrackEn::-webkit-scrollbar {
    display: none;
}

@media (max-width: 640px) {
    .uipath-badge-box {
        gap: 12px;
        padding: 14px 18px;
    }
}