/*
 * sellmate.io 홈(/, /main) 전용 스타일 (WWW-4).
 * 수치는 2026-11-09 원본 sellmate.io/main 을 1920px(PC)·390px(모바일) 폭에서 잰 값이다.
 * 원본처럼 992px 이상은 PC 블록(.sm-pc), 991px 이하는 모바일 블록(.sm-mo)을 보인다.
 */
.sm-page--main { --smm-navy: #00295f; --smm-gray: #49515c; --smm-blue: #4299ff; --smm-line: #eee; }
.sm-page--main img { max-width: 100%; }
.sm-page--main .sm-mo { display: none; }

/* 섹션 공통 머리(라벨 · 제목 · 설명) */
.sm-sec { padding: 126px 0 120px; }
.sm-sec__head { padding: 0 20px; text-align: center; word-break: keep-all; }
.sm-sec__label { margin: 0 0 16px; color: var(--smm-blue); font-size: 16px; font-weight: 700; line-height: 19px; }
.sm-sec__title { margin: 0; color: var(--smm-navy); font-size: 36px; font-weight: 400; line-height: 53px; }
.sm-sec__title strong { font-weight: 700; }
.sm-sec__desc { margin: 25px 0 0; color: var(--smm-gray); font-size: 18px; line-height: 35px; }

/* 왼쪽·오른쪽으로 계속 흐르는 띠. 트랙에 같은 목록을 세 벌 넣고 한 벌(1/3) 만큼 옮긴다.
   두 벌 길이가 화면보다 길면 빈 곳이 보이지 않는다(PC 고객 사례 한 벌 2728px → 5456px 화면까지, 모바일 로고 4개 줄 520px → 1040px). */
.sm-marquee { overflow: hidden; }
.sm-marquee__track { display: flex; width: max-content; animation: smm-marquee-left var(--smm-marquee-duration, 40s) linear infinite; }
.sm-marquee__track--right { animation-name: smm-marquee-right; }
@keyframes smm-marquee-left { from { transform: translateX(0); } to { transform: translateX(-33.3333%); } }
@keyframes smm-marquee-right { from { transform: translateX(-33.3333%); } to { transform: translateX(0); } }

/* 나타나는 효과(공통 규칙은 layout.css). 효과·시간은 원본 위젯 설정(data-widget-anim·duration)을 2026-11-09 에 읽은 값이다.
   섹션 라벨은 PC 1.5초·모바일 0.7초, 그 밖의 값은 요소의 data-sm-reveal(fade|up)·--sm-reveal-duration 에 적는다. */
.sm-sec__label[data-sm-reveal] { --sm-reveal-duration: 1.5s; }

/* 히어로: 2장 크로스페이드 */
.sm-hero { position: relative; height: 750px; overflow: hidden; }
.sm-hero__slide { position: absolute; inset: 0; background: #ddd center / cover no-repeat; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility 0s linear .7s; }
.sm-hero__slide.is-active { opacity: 1; visibility: visible; transition: opacity .7s ease; }
.sm-hero__inner { display: grid; grid-template-columns: 1fr 1fr; column-gap: 18px; max-width: 1186px; height: 100%; margin: 0 auto; padding: 0 28px; box-sizing: border-box; }
.sm-hero__copy { padding-top: var(--smm-copy-top); }
.sm-hero__text, .sm-hero__visual { display: block; width: 100%; height: auto; }
.sm-hero__visual { margin-top: var(--smm-visual-top); }
.sm-hero__buttons { display: flex; gap: 5px; margin-top: var(--smm-button-gap); }
.sm-hero__button { display: block; line-height: 0; }
.sm-hero__slide--1 { --smm-copy-top: 88px; --smm-button-gap: 59px; --smm-visual-top: 84px; }
.sm-hero__slide--2 { --smm-copy-top: 80px; --smm-button-gap: 99px; --smm-visual-top: 66px; }
.sm-hero__dots { position: absolute; left: 0; right: 0; bottom: 20px; display: flex; justify-content: center; }
.sm-hero__dot { width: 10px; height: 10px; margin: 5px 7px; padding: 0; border: 1px solid #fff; border-radius: 30px; background: transparent; cursor: pointer; }
.sm-hero__dot.is-active { background: #fff; }

/* 고객 사례 */
.sm-stories { background: #f5faff; padding-bottom: 128px; }
.sm-stories__marquee { margin-top: 60px; }
.sm-stories__marquee .sm-marquee__track { --smm-marquee-duration: 37.9s; align-items: flex-start; }
.sm-story { display: block; flex: 0 0 326px; box-sizing: border-box; margin-right: 15px; overflow: hidden; border: 1px solid var(--smm-line); border-radius: 20px; background: #fff; color: inherit; text-decoration: none; }
.sm-story__img { display: block; height: 244px; background: center / cover no-repeat; }
.sm-story__text { display: block; padding: 16px; }
.sm-story__title { display: block; color: var(--smm-navy); font-size: 20px; font-weight: 800; line-height: 28px; }
.sm-story__body { display: block; padding: 16px 12px; }
.sm-story__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 14px; }
.sm-story__tag { padding: 4px 8px; border-radius: 4px; background: #e0eeff; color: #1782ff; font-size: 14px; font-weight: 700; line-height: 23px; }
.sm-story__name { color: #1782ff; font-size: 16px; font-weight: 700; line-height: 26px; }
.sm-story__desc { display: block; margin-top: 12px; color: var(--smm-gray); font-size: 16px; line-height: 26px; letter-spacing: -0.32px; }

/* 솔루션 */
.sm-solutions { background: #fff; }
.sm-solutions__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 360px)); column-gap: 33px; max-width: 1160px; margin: 65px auto 0; padding: 0 20px; box-sizing: content-box; }
.sm-solution { overflow: hidden; border: 1px solid var(--smm-line); border-radius: 40px; background: #fff; }
.sm-solution__img { display: block; width: 100%; height: 272px; object-fit: cover; }
.sm-solution__body { padding: 33px 32px 28px; border-top: 1px solid var(--smm-line); }
.sm-solution__brand { display: flex; align-items: center; gap: 12px; margin: 0; }
.sm-solution__brand img { width: auto; height: 20px; }
.sm-solution__brand span { color: var(--smm-navy); font-size: 14px; font-weight: 500; line-height: 20px; }
.sm-solution__title { margin: 32px 0 0; color: var(--smm-gray); font-size: 20px; font-weight: 700; line-height: 30px; }
.sm-solution__desc { margin: 18px 0 0; color: var(--smm-gray); font-size: 16px; line-height: 26px; }
.sm-solution__more { display: block; margin-top: 22px; color: #9c9c9c; font-size: 16px; font-weight: 700; line-height: 26px; text-align: right; text-decoration: none; }

/* 고객사 */
.sm-clients { padding: 118px 0 200px; background: #fff; }
.sm-clients .sm-sec__desc { margin-top: 20px; }
.sm-clients__button { display: inline-flex; align-items: center; gap: 10px; margin-top: 28px; padding: 14px 24px; border: 1px solid transparent; border-radius: 9px; background: var(--smm-blue); color: #fff; font-size: 16px; line-height: 23px; text-decoration: none; }
.sm-clients__rows { margin-top: 120px; }
.sm-clients__rows .sm-marquee + .sm-marquee { margin-top: 28px; }
.sm-clients__logo { display: block; flex: 0 0 300px; width: 300px; height: 185px; margin-right: 16px; }

/* 제휴사 */
.sm-partners { padding: 120px 20px; background: #253f60; }
.sm-partners .sm-partners__img { display: block; width: 100%; max-width: 1160px; height: auto; margin: 0 auto; }

/* 인사이트 */
.sm-insight { background: #f4f4f4; }
.sm-insight .sm-sec__desc { margin-top: 35px; line-height: 27px; }
.sm-insight__maps { max-width: 1160px; margin: 67px auto 0; padding: 0 20px; box-sizing: content-box; }
.sm-insight__maps .sm-imap + .sm-imap { margin-top: 80px; }

/* 무료 체험 배너 */
.sm-trial__inner { padding: 0 20px; background: center / cover no-repeat; }
.sm-trial__inner .sm-imap { max-width: 1160px; margin: 0 auto; }

/* 992 ~ 1199px: 콘텐츠가 양옆 여백만 남기고 줄어든다 */
@media (max-width: 1199px) {
    .sm-hero { height: 638px; }
    .sm-hero__inner { column-gap: 16px; }
    .sm-hero__slide--1 { --smm-copy-top: 106px; --smm-button-gap: 55px; --smm-visual-top: 109px; }
    .sm-hero__slide--2 { --smm-copy-top: 99px; --smm-button-gap: 90px; --smm-visual-top: 92px; }
    .sm-solutions__grid { column-gap: 20px; }
}

@media (max-width: 991px) {
    .sm-page--main .sm-pc { display: none; }
    .sm-page--main .sm-mo { display: block; }

    .sm-sec { padding: 88px 0 80px; }
    .sm-sec__label { margin-bottom: 12px; color: #3d92f6; font-size: 14px; line-height: 16px; }
    .sm-sec__label[data-sm-reveal] { --sm-reveal-duration: .7s; }
    .sm-sec__title { font-size: 24px; line-height: 30px; }
    .sm-sec__desc { margin-top: 12px; font-size: 16px; line-height: 23px; }

    .sm-hero { height: 750px; }
    .sm-hero__inner { display: block; max-width: 375px; padding: 0 28px; }
    .sm-hero__copy { padding-top: 0; }
    .sm-hero__text { margin-top: var(--smm-copy-top); }
    .sm-hero__buttons { flex-direction: column; align-items: center; gap: 38px; }
    .sm-hero__button img { width: 250px; height: auto; }
    .sm-hero__slide--1 { --smm-copy-top: -1px; --smm-button-gap: 54px; --smm-visual-top: 54px; }
    .sm-hero__slide--2 { --smm-copy-top: -31px; --smm-button-gap: 26px; --smm-visual-top: 26px; }

    .sm-stories { padding-bottom: 76px; }
    .sm-stories__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 12px; margin-top: 32px; padding: 0 12px; scrollbar-width: none; }
    .sm-stories__track::-webkit-scrollbar { display: none; }
    .sm-stories__track .sm-story { flex: 0 0 calc(100% - 24px); max-width: 351px; margin-right: 5px; scroll-snap-align: start; }
    .sm-stories__track .sm-story:last-child { margin-right: 0; }
    .sm-stories__track .sm-story__img { height: 263px; }
    .sm-stories__track .sm-story__text { padding: 10px; }
    .sm-stories__dots { display: flex; justify-content: center; margin-top: 30px; }
    .sm-stories__dots button { width: 10px; height: 10px; margin: 5px 7px; padding: 0; border: 0; border-radius: 30px; background: #d6d6d6; cursor: pointer; }
    .sm-stories__dots button.is-active { background: #869791; }

    .sm-solutions__grid { display: block; max-width: none; margin-top: 30px; padding: 0 12px; }
    .sm-solution { max-width: 351px; margin: 0 auto; border-radius: 32px; }
    .sm-solution__img { height: 135px; }
    .sm-solution + .sm-solution { margin-top: 24px; }
    /* 원본 모바일 카드는 올라오기가 아니라 0.7초 서서히(카드 style 의 PC 시간보다 우선하도록 속성을 직접 쓴다) */
    .sm-solution[data-sm-reveal].is-revealed { animation-name: sm-reveal-fade; animation-duration: .7s; }
    .sm-solution__body { padding: 31px 28px 0; border-top: 0; }
    .sm-solution__title { margin-top: 0; color: var(--smm-navy); line-height: 28px; }
    .sm-solution__desc { margin-top: 22px; font-size: 15px; letter-spacing: -0.2px; }
    /* 원본은 설명이 4줄인 카드(WMS)도 높이를 같게 두려고 줄 간격·여백을 줄였다 */
    .sm-solution--long .sm-solution__desc { margin-top: 12px; line-height: 24px; }
    .sm-solution--long .sm-solution__more { margin-top: 10px; }
    .sm-solution__more { margin: 19px -28px 0; padding: 14px 0 13px; border-top: 1px solid var(--smm-line); color: #888; font-size: 15px; font-weight: 400; line-height: 24px; text-align: center; }
    .sm-solution__arrow { display: inline; margin-left: 4px; color: #cfcfcf; font-size: 24px; vertical-align: top; }

    .sm-clients { padding: 48px 0 70px; background: #fafaff; }
    .sm-clients .sm-sec__desc { margin-top: 33px; font-size: 15px; }
    .sm-clients__button { margin-top: 29px; padding: 9px 18px; font-size: 15px; line-height: 21px; }
    .sm-clients__rows { margin-top: 30px; }
    .sm-clients__rows .sm-marquee + .sm-marquee { margin-top: 8px; }
    .sm-clients__logo { flex-basis: 124px; width: 124px; height: 77px; margin-right: 6px; }

    .sm-partners { padding: 80px 0; }
    .sm-partners__list img { display: block; width: 100%; height: auto; }

    .sm-insight .sm-sec__desc { margin-top: 33px; font-size: 15px; line-height: 23px; }
    .sm-insight__maps { max-width: 335px; margin-top: 45px; padding: 0 20px; }
    .sm-insight__maps .sm-imap + .sm-imap { margin-top: 40px; }

    .sm-trial__inner { padding: 10px 20px; }
    .sm-trial__inner .sm-imap { max-width: 335px; }
}

@media (prefers-reduced-motion: reduce) {
    .sm-marquee__track { animation: none; }
    .sm-hero__slide { transition: none; }
}
