/* ════════════════════════════════
   main.css — 메인 랜딩 페이지 전용
   main_landing_green.html 에서만 사용
   공통 스타일 → common.css
   히어로 슬라이더 → hero-slider.css
   팝업 배너 → popup.css
   ════════════════════════════════ */

/* ── 레이아웃 기본 ── */
/* .container / h2 / .section-subtitle / section → common.css */

/* ════════════════════════════════
   회사소개 섹션
   ════════════════════════════════ */
.company-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: white;
}

.company-section-wrap {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

.company-section-wrap h2 {
    text-align: center;
}

.company-inner {
    display: flex;
    gap: 6rem;
    align-items: flex-start;
    margin-top: 3rem;
}

.company-left {
    flex: 1;
    min-width: 0;
}

.company-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--dark-color);
    line-height: 1.5;
    margin-bottom: 3rem;
}

.company-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem 3rem;
}

.cstat-card {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.cstat-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #888;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.cstat-value {
    display: flex;
    align-items: baseline;
    gap: 0.1rem;
    line-height: 1;
}

.cstat-num {
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cstat-plus {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.company-right {
    flex: 1.2;
    min-width: 0;
    padding-top: 0.5rem;
}

.company-body {
    font-size: 1.05rem;
    color: #444;
    line-height: 1.9;
    margin-bottom: 1.4rem;
}

.company-link {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.7rem 2rem;
    border-radius: 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.2s;
}

.company-link:hover {
    opacity: 0.88;
    transform: translateY(-2px);
}

/* ════════════════════════════════
   로드맵 섹션
   ════════════════════════════════ */
.roadmap-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--light-gray);
}

.roadmap-wrap {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

.roadmap-wrap h2 {
    text-align: center;
}

.roadmap-viewport {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    margin-top: 3rem;
    cursor: grab;
    user-select: none;
}
.roadmap-viewport:active { cursor: grabbing; }

.roadmap-hline {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), var(--secondary-color), transparent);
    transform: translateY(-50%);
    z-index: 0;
}

.roadmap-center-indicator {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 20;
    pointer-events: none;
}

.rci-top {
    width: 2px;
    flex: 1;
    background: linear-gradient(180deg, transparent, var(--secondary-color));
}

.rci-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: 4px solid white;
    box-shadow: 0 0 0 4px var(--secondary-color);
    flex-shrink: 0;
}

.rci-bottom {
    width: 2px;
    flex: 1;
    background: linear-gradient(180deg, var(--secondary-color), transparent);
}

.roadmap-track {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 0;
}

.roadmap-item {
    width: 280px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    cursor: pointer;
    transition: opacity 0.3s;
    opacity: 0.5;
}
.roadmap-item.active { opacity: 1; }

.roadmap-top {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 0.6rem;
    gap: 0.3rem;
}

.roadmap-phase {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary-color);
}

.roadmap-year {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark-color);
}

.roadmap-dot-row {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    position: relative;
    z-index: 5;
}

.roadmap-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ccc;
    border: 3px solid white;
    box-shadow: 0 0 0 2px #ccc;
    transition: all 0.3s;
}
.roadmap-item.active .roadmap-dot {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 0 0 3px var(--secondary-color);
    transform: scale(1.3);
}

.roadmap-bottom {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 0.6rem;
    text-align: center;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.roadmap-mini-title {
    font-size: 1rem;
    font-weight: 600;
    color: #555;
    line-height: 1.4;
}
.roadmap-item.active .roadmap-mini-title { color: var(--dark-color); }

.roadmap-detail {
    margin-top: 2.5rem;
    padding: 2rem 2.5rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    transition: opacity 0.2s ease, transform 0.2s ease;
    text-align: center;
}
.roadmap-detail.is-changing {
    opacity: 0;
    transform: translateY(8px);
}

.rd-phase {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.rd-year {
    font-size: 2.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.rd-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.8rem;
}

.rd-desc {
    font-size: 1.05rem;
    color: #666;
    line-height: 1.8;
}

.roadmap-hint {
    text-align: center;
    margin-top: 1.2rem;
    font-size: 0.82rem;
    color: #aaa;
    letter-spacing: 1px;
}

/* ════════════════════════════════
   서비스 섹션 — 카드 덱
   ════════════════════════════════ */
.services {
    background: var(--light-gray);
    width: 100%;
    padding: 4rem 0;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.services .container { width: 100%; }

.service-deck-wrap {
    position: relative;
    height: 560px;
    margin-top: 2rem;
}

.sdc-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 50;
    background: white;
    border: none;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-color);
}
.sdc-nav--prev { left: 0; }
.sdc-nav--next { right: 0; }
.sdc-nav:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 6px 25px rgba(126,211,33,0.35);
}

.service-deck {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: grab;
}
.service-deck:active { cursor: grabbing; }

.service-deck-card {
    position: absolute;
    width: 460px;
    height: 520px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 24px;
    background: white;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    overflow: hidden;
    will-change: transform, opacity;
    cursor: pointer;
}
.service-deck-card.active {
    box-shadow: 0 20px 60px rgba(0,0,0,0.18);
}

.sdc-accent {
    height: 5px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.sdc-body {
    padding: 2.8rem 3rem;
    height: calc(100% - 5px);
    display: flex;
    flex-direction: column;
}

.sdc-tag {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.sdc-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.sdc-desc {
    font-size: 1.05rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 1.6rem;
}

.sdc-list {
    list-style: none;
    flex: 1;
}
.sdc-list li {
    padding: 0.5rem 0 0.5rem 1.4rem;
    position: relative;
    color: #444;
    font-size: 1rem;
    font-weight: 500;
}
.sdc-list li::before {
    content: '▶';
    position: absolute;
    left: 0;
    top: 0.55rem;
    color: var(--primary-color);
    font-size: 0.65rem;
}

.sdc-cta {
    display: block;
    text-align: right;
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 1rem;
    margin-top: auto;
    padding-top: 1rem;
    transition: color 0.2s;
}
.sdc-cta:hover { color: var(--primary-color); }

.sdc-dots {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 2rem;
}
.sdc-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: #ccc;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}
.sdc-dot.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    width: 28px;
    border-radius: 5px;
}

.service-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.service-category {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    height: 450px;
}

.service-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.service-category:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.service-category h3 {
    margin-bottom: 1rem;
    color: var(--dark-color);
    font-size: 1.5rem;
    font-weight: 600;
}

.service-list {
    list-style: none;
    margin-top: 1.5rem;
}

.service-list li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
    color: #333;
    font-weight: 500;
}

.service-list li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 0.8rem;
}

.card-footer {
    margin-top: auto;
    display: block;
    text-align: right;
    padding: 1rem;
    font-weight: bold;
    text-decoration: none;
    color: var(--secondary-color);
    transition: color 0.3s;
    position: absolute;
    bottom: 0;
    right: 0;
}

.card-footer:hover {
    color: var(--accent-color);
}

/* ════════════════════════════════
   서비스 모달
   ════════════════════════════════ */
/* .modal / .modal-content / .close → common.css */

.modal-title .highlight {
    background: linear-gradient(135deg, #7B2CBF, #a42ded);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    filter: drop-shadow(0px 2px 3px rgba(0, 0, 0, 0.15));
}

.example-title { font-weight: bold; }
.example-desc  { font-size: 14px; }

/* ════════════════════════════════
   주요 고객 (Swiper 슬라이더)
   ════════════════════════════════ */
.business-partner {
    background: white;
}

.case-studies-swiper {
    width: 100%;
    height: auto;
}

.case-studies-swiper .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    box-sizing: border-box;
}

.case-studies-swiper .swiper-slide img {
    max-width: 100%;
    height: 60px;
    object-fit: contain;
}

/* ════════════════════════════════
   반응형
   ════════════════════════════════ */
@media (max-width: 1024px) {
    .company-inner {
        flex-direction: column;
        gap: 3rem;
    }

    .company-stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .company-stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .cstat-num { font-size: 3rem; }

    .roadmap-viewport { height: 180px; }
}

@media (max-width: 600px) {
    .company-section {
        min-height: unset;
    }

    .company-section-wrap {
        padding: 4rem 1.4rem;
        text-align: center;
    }

    .company-inner {
        flex-direction: column;
        gap: 2rem;
        margin-top: 2rem;
    }

    .company-title {
        font-size: 1.25rem;
        margin-bottom: 2rem;
    }

    .company-stats-grid {
        grid-template-columns: 1fr 1fr;
        justify-items: center;
    }

    .cstat-label {
        font-size: 0.82rem;
    }

    .cstat-num {
        font-size: 2.6rem;
    }

    .cstat-plus {
        font-size: 1.4rem;
    }

    .company-right {
        padding-top: 0;
    }

    .company-body {
        font-size: 0.95rem;
        line-height: 1.8;
        text-align: left;
    }

    .company-link {
        display: block;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .company-stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .roadmap-detail {
        padding: 1.5rem;
    }

    .roadmap-phase {
        font-size: 0.72rem;
        letter-spacing: 1px;
    }

    .roadmap-year {
        font-size: 1.1rem;
    }

    .roadmap-mini-title {
        font-size: 0.82rem;
    }

    .rd-year {
        font-size: 2rem;
    }

    .rd-title {
        font-size: 1.2rem;
    }

    .rd-desc {
        font-size: 0.9rem;
    }
}

/* ── 서비스 섹션 모바일 반응형 ── */
@media (max-width: 600px) {
    .services {
        padding: 3rem 0;
    }

    /* deck-wrap 높이를 명시 → service-deck(height:100%)과 카드가 맞춰짐 */
    .service-deck-wrap {
        height: 480px;
        margin-top: 1.5rem;
    }

    .service-deck-card {
        width: calc(100vw - 60px); /* 좌우 30px 여백 */
        height: 460px;
    }

    .sdc-body {
        padding: 1.8rem 1.6rem;
    }

    .sdc-title {
        font-size: 1.4rem;
    }

    .sdc-desc {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }

    .sdc-list li {
        font-size: 0.9rem;
        padding: 0.35rem 0 0.35rem 1.2rem;
    }

    .sdc-nav {
        width: 36px;
        height: 36px;
        font-size: 1.4rem;
    }
}
