/**
 * 파일 경로: /assets/css/home.css
 * 파일명: home.css
 * 설명: 조달메이트 공개 메인 랜딩페이지 - 실제 데이터 슬라이더와 업무흐름 애니메이션
 */

.page-home .site-main {
    overflow: hidden;
    background: var(--page-bg);
}

.home-hero {
    position: relative;
    padding: 34px 0 38px;
}

.home-hero::before {
    position: absolute;
    top: -160px;
    left: 50%;
    width: 920px;
    height: 520px;
    transform: translateX(-15%);
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--brand) 8%, transparent), transparent 70%);
    pointer-events: none;
    content: "";
}

.home-hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(390px, .88fr);
    gap: 72px;
    align-items: center;
}

.home-hero-copy h1 {
    max-width: 800px;
    margin: 18px 0 20px;
    color: var(--text);
    font-size: clamp(38px, 4.2vw, 54px);
    line-height: 1.42;
    letter-spacing: -.06em;
}

.home-hero-copy h1 span {
    color: var(--text);
}


.home-hero-copy .home-hero-line {
    display: block;
    white-space: nowrap;
}

.home-hero-copy > p {
    max-width: 690px;
    margin: 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.75;
}

.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.home-hero-actions .btn {
    min-height: 48px;
    padding: 0 20px;
}

.home-stat-row {
    display: flex;
    flex-wrap: wrap;
    gap: 34px;
    margin-top: 38px;
}

.home-stat-row > div {
    display: grid;
    grid-template-columns: auto auto;
    align-items: baseline;
    gap: 0 4px;
}

.home-stat-row span {
    grid-column: 1 / -1;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.home-stat-row strong {
    color: var(--text);
    font-size: 23px;
    letter-spacing: -.03em;
}

.home-stat-row small {
    color: var(--muted);
    font-size: 11px;
}

.home-live-panel {
    position: relative;
    padding: 24px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--surface);
    box-shadow: 0 24px 70px rgba(15, 23, 42, .09);
}

.home-live-panel::after {
    position: absolute;
    right: -80px;
    bottom: -110px;
    width: 230px;
    height: 230px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--brand) 6%, transparent);
    content: "";
}

.home-live-head {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 15px;
}

.home-live-head > div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.home-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, .35);
    animation: homeLivePulse 1.9s infinite;
}

.home-live-steps {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 8px;
}

.home-live-step {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    min-height: 66px;
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: 12px;
    transition: .35s ease;
}

.home-live-step > span {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 9px;
    background: var(--surface-2);
    color: var(--muted);
    font-size: 10px;
    font-weight: 900;
    transition: .35s ease;
}

.home-live-step small,
.home-live-step strong {
    display: block;
}

.home-live-step small {
    color: var(--muted);
    font-size: 10px;
}

.home-live-step strong {
    margin-top: 3px;
    color: var(--text);
    font-size: 12px;
}

.home-live-step b {
    color: var(--muted);
    font-size: 10px;
}

.home-live-step.is-active {
    border-color: color-mix(in srgb, var(--brand) 30%, var(--line));
    background: color-mix(in srgb, var(--brand) 6%, var(--surface));
    transform: translateX(4px);
}

.home-live-step.is-active > span {
    background: var(--brand);
    color: #fff;
}

.home-live-step.is-active b {
    color: var(--brand);
}

.home-live-progress {
    position: relative;
    z-index: 1;
    height: 4px;
    margin-top: 15px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--surface-2);
}

.home-live-progress i {
    display: block;
    width: 25%;
    height: 100%;
    border-radius: inherit;
    background: var(--brand);
    transition: width .4s ease;
}

.home-section {
    padding: 36px 0;
}

.home-section:nth-of-type(even) {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface-2) 50%, var(--page-bg));
}

.home-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 26px;
}

.home-section-head h2 {
    margin: 9px 0 0;
    color: var(--text);
    font-size: 30px;
    line-height: 1.25;
    letter-spacing: -.045em;
}

.home-section-head p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

.home-kicker {
    color: var(--brand);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .08em;
}

.home-slider-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 7px;
}

.home-slider-actions button {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--surface);
    color: var(--text);
    font: inherit;
    font-size: 21px;
    line-height: 1;
    cursor: pointer;
}

.home-slider-actions button:hover {
    border-color: color-mix(in srgb, var(--brand) 30%, var(--line));
    background: var(--brand-soft);
    color: var(--brand);
}

.home-slider-actions a {
    margin-left: 5px;
    color: var(--brand);
    font-size: 11px;
    font-weight: 850;
    text-decoration: none;
}

.home-slider {
    position: relative;
    overflow: hidden;
}

.home-slider-track {
    display: grid;
    grid-auto-columns: calc((100% - 36px) / 3);
    grid-auto-flow: column;
    gap: 18px;
    overflow-x: auto;
    padding: 2px 2px 14px;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.home-product-slider .home-slider-track {
    grid-auto-columns: calc((100% - 54px) / 4);
}

.home-slider-track::-webkit-scrollbar {
    display: none;
}

.home-bid-card,
.home-product-card {
    min-width: 0;
    scroll-snap-align: start;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    color: inherit;
    text-decoration: none;
    transition: border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease;
}

.home-bid-card:hover,
.home-product-card:hover {
    transform: translateY(-3px);
    border-color: #93b4f5;
    background: #eef4ff;
    box-shadow: 0 16px 34px rgba(37, 99, 235, .08);
}

html[data-theme="dark"] .home-bid-card:hover,
html[data-theme="dark"] .home-product-card:hover {
    border-color: #3b82f6;
    background: #17243a;
}

.home-bid-card {
    display: flex;
    min-height: 238px;
    flex-direction: column;
    padding: 18px;
}

.home-bid-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 9px;
}

.home-category,
.home-bid-status {
    display: inline-flex;
    align-items: center;
    min-height: 23px;
    padding: 0 7px;
    border-radius: 999px;
    background: var(--surface-2);
    color: var(--muted);
    font-size: 9px;
    font-weight: 850;
}

.home-bid-status.is-open {
    background: color-mix(in srgb, #16a34a 12%, var(--surface));
    color: #15803d;
}

.home-bid-title {
    display: -webkit-box;
    min-height: 48px;
    margin-top: 16px;
    overflow: hidden;
    color: var(--text);
    font-size: 15px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.home-bid-meta {
    display: grid;
    gap: 4px;
    margin-top: 11px;
    color: var(--muted);
    font-size: 10px;
}

.home-bid-meta span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-bid-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.home-bid-bottom > div:last-child {
    text-align: right;
}

.home-bid-bottom small,
.home-bid-bottom strong {
    display: block;
}

.home-bid-bottom small {
    color: var(--muted);
    font-size: 9px;
}

.home-bid-bottom strong {
    margin-top: 4px;
    color: var(--text);
    font-size: 11px;
}

.home-product-card {
    display: flex;
    min-height: 220px;
    flex-direction: column;
    padding: 18px;
}

.home-product-code {
    color: var(--brand);
    font-size: 10px;
    font-weight: 850;
}

.home-product-card > strong {
    margin-top: 14px;
    color: var(--text);
    font-size: 16px;
}

.home-product-card > p {
    display: -webkit-box;
    margin: 8px 0 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.6;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.home-product-category {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 9px;
}

.home-product-category i {
    font-style: normal;
}

.home-empty-card {
    display: grid;
    min-height: 180px;
    place-items: center;
    border: 1px dashed var(--line);
    border-radius: 14px;
    color: var(--muted);
    font-size: 12px;
}

.home-section-head-centered {
    justify-content: center;
    text-align: center;
}

.home-section-head-centered > div {
    max-width: 800px;
}

.home-workflow {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 36px;
}

.home-workflow-line {
    position: absolute;
    z-index: 0;
    top: 36px;
    right: 12.5%;
    left: 12.5%;
    height: 3px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--line);
}

.home-workflow-line i {
    display: block;
    width: 0;
    height: 100%;
    background: var(--brand);
    transition: width .55s ease;
}

.home-workflow-step {
    position: relative;
    z-index: 1;
    min-height: 230px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: var(--surface);
    transition: .4s ease;
}

.home-workflow-no {
    position: absolute;
    top: 14px;
    right: 15px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 900;
}

.home-workflow-icon {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface-2);
    color: var(--muted);
    font-size: 21px;
    font-weight: 900;
    transition: .4s ease;
}

.home-workflow-step > strong {
    display: block;
    margin-top: 28px;
    color: var(--text);
    font-size: 16px;
}

.home-workflow-step > p {
    margin: 9px 0 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.65;
}

.home-workflow-step > small {
    display: inline-flex;
    margin-top: 15px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 800;
}

.home-workflow-step.is-active {
    transform: translateY(-7px);
    border-color: color-mix(in srgb, var(--brand) 42%, var(--line));
    box-shadow: 0 16px 38px rgba(37, 99, 235, .10);
}

.home-workflow-step.is-active .home-workflow-icon {
    border-color: var(--brand);
    background: var(--brand);
    color: #fff;
    box-shadow: 0 0 0 7px color-mix(in srgb, var(--brand) 9%, transparent);
}

.home-workflow-step.is-active > small {
    color: var(--brand);
}

.home-workflow-demo {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
    gap: 34px;
    align-items: center;
    margin-top: 46px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surface);
}

.home-demo-window {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: var(--page-bg);
    box-shadow: 0 18px 40px rgba(15, 23, 42, .08);
}

.home-demo-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 42px;
    padding: 0 13px;
    border-bottom: 1px solid var(--line);
    background: var(--surface);
}

.home-demo-bar > i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--line);
}

.home-demo-bar > span {
    margin-left: 7px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 800;
}

.home-demo-body {
    display: grid;
    grid-template-columns: 150px 1fr;
    min-height: 300px;
}

.home-demo-body > aside {
    display: grid;
    align-content: start;
    gap: 6px;
    padding: 18px 12px;
    border-right: 1px solid var(--line);
    background: var(--surface);
}

.home-demo-body > aside span {
    padding: 9px 10px;
    border-radius: 7px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 750;
    transition: .35s ease;
}

.home-demo-body > aside span.is-active {
    background: var(--brand-soft);
    color: var(--brand);
    transform: translateX(4px);
}

.home-demo-content {
    padding: 20px;
}

.home-demo-search {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 70px;
    gap: 8px;
}

.home-demo-search i,
.home-demo-search b {
    height: 32px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--surface);
}

.home-demo-search b {
    background: var(--brand);
}

.home-demo-list {
    display: grid;
    gap: 8px;
    margin-top: 15px;
}

.home-demo-list > div {
    display: grid;
    grid-template-columns: 70px 1fr 88px;
    gap: 9px;
    align-items: center;
    min-height: 46px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    transition: .35s ease;
}

.home-demo-list > div.is-active {
    transform: translateX(6px);
    border-color: color-mix(in srgb, var(--brand) 38%, var(--line));
    background: color-mix(in srgb, var(--brand) 5%, var(--surface));
}

.home-demo-list span,
.home-demo-list b,
.home-demo-list em {
    display: block;
    height: 7px;
    border-radius: 999px;
    background: var(--line);
}

.home-demo-list b {
    width: 78%;
}

.home-demo-list em {
    width: 70%;
    justify-self: end;
}

.home-demo-copy > span {
    color: var(--brand);
    font-size: 10px;
    font-weight: 900;
}

.home-demo-copy > strong {
    display: block;
    margin-top: 9px;
    color: var(--text);
    font-size: 24px;
    line-height: 1.35;
    letter-spacing: -.035em;
}

.home-demo-copy > p {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.75;
}

.home-demo-copy > a {
    display: inline-flex;
    gap: 6px;
    margin-top: 18px;
    color: var(--brand);
    font-size: 11px;
    font-weight: 850;
    text-decoration: none;
}

.home-benefit-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.home-benefit-grid article {
    display: flex;
    min-height: 230px;
    flex-direction: column;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: var(--surface);
    transition: .2s ease;
}

.home-benefit-grid article:hover {
    transform: translateY(-4px);
    border-color: #93b4f5;
}

.home-benefit-grid article > span {
    color: var(--brand);
    font-size: 10px;
    font-weight: 900;
}

.home-benefit-grid article > strong {
    margin-top: 28px;
    color: var(--text);
    font-size: 16px;
}

.home-benefit-grid article > p {
    margin: 9px 0 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.65;
}

.home-benefit-grid article > a {
    margin-top: auto;
    padding-top: 15px;
    color: var(--brand);
    font-size: 10px;
    font-weight: 850;
    text-decoration: none;
}

.home-cta {
    padding: 10px 0 36px;
}

.home-cta-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 38px;
    padding: 36px 38px;
    border: 1px solid color-mix(in srgb, var(--brand) 26%, var(--line));
    border-radius: 20px;
    background:
        radial-gradient(circle at 90% 10%, color-mix(in srgb, var(--brand) 10%, transparent), transparent 36%),
        var(--surface);
}

.home-cta-card h2 {
    margin: 10px 0 0;
    color: var(--text);
    font-size: 31px;
    line-height: 1.3;
    letter-spacing: -.045em;
}

.home-cta-card p {
    max-width: 760px;
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.7;
}

.home-cta-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
}

.home-cta-actions .btn {
    min-height: 44px;
}

[data-home-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s ease, transform .6s ease;
}

[data-home-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes homeLivePulse {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .34); }
    70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

html[data-layout="wide"] .home-hero-copy h1 {
    font-size: clamp(42px, 3.8vw, 58px);
}

html[data-layout="wide"] .home-section-head h2 {
    font-size: 33px;
}

@media (max-width: 1100px) {
    .home-hero-grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .home-live-panel {
        max-width: 720px;
    }

    .home-slider-track {
        grid-auto-columns: calc((100% - 18px) / 2);
    }

    .home-product-slider .home-slider-track {
        grid-auto-columns: calc((100% - 36px) / 3);
    }

    .home-workflow {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-workflow-line {
        display: none;
    }

    .home-benefit-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .home-section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .home-workflow-demo {
        grid-template-columns: 1fr;
    }

    .home-demo-body {
        grid-template-columns: 115px 1fr;
    }

    .home-cta-card {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 620px) {
    .home-hero-copy .home-hero-line {
        white-space: normal;
    }

    .home-hero {
        padding: 24px 0 28px;
    }

    .home-hero-copy h1 {
        font-size: 32px;
    }

    .home-hero-copy > p {
        font-size: 15px;
    }

    .home-stat-row {
        gap: 20px;
    }

    .home-section {
        padding: 28px 0;
    }

    .home-section-head h2 {
        font-size: 26px;
    }

    .home-slider-track,
    .home-product-slider .home-slider-track {
        grid-auto-columns: 86%;
    }

    .home-workflow,
    .home-benefit-grid {
        grid-template-columns: 1fr;
    }

    .home-workflow-step {
        min-height: 200px;
    }

    .home-workflow-demo {
        padding: 16px;
    }

    .home-demo-body {
        grid-template-columns: 1fr;
    }

    .home-demo-body > aside {
        grid-template-columns: repeat(4, 1fr);
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .home-demo-body > aside span {
        padding: 7px 5px;
        text-align: center;
    }

    .home-demo-content {
        padding: 14px;
    }

    .home-demo-search {
        grid-template-columns: repeat(3, 1fr);
    }

    .home-demo-search b {
        display: none;
    }

    .home-cta {
        padding-bottom: 28px;
    }

    .home-cta-card {
        padding: 26px 22px;
    }

    .home-cta-card h2 {
        font-size: 25px;
    }

    .home-cta-actions {
        width: 100%;
    }

    .home-cta-actions .btn {
        flex: 1 1 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-live-dot,
    [data-home-reveal] {
        animation: none !important;
        transition: none !important;
    }

    [data-home-reveal] {
        opacity: 1;
        transform: none;
    }

    .home-slider-track {
        scroll-behavior: auto;
    }
}
