/*
 * AI 솔루션 페이지 (#nt-ai) — 단가표(#nt-price) 디자인 시스템 계승
 * 이미지 기반 AI 소개를 텍스트 및 반응형 컴포넌트로 전면 교체
 */

#nt-ai {
    --na-navy: #0B2540;
    --na-blue: #1E79B4;
    --na-blue-dark: #12507A;
    --na-blue-light: #3898D4;
    --na-blue-tint: #EBF4FA;
    --na-red: #D9383A;
    --na-ink: #111827;       /* 또렷한 검정 */
    --na-body: #1F2937;      /* 본문 텍스트 (명확한 다크) */
    --na-muted: #4B5B6B;     /* 설명문 텍스트 */
    --na-line: #D1D5DB;      /* 보더 라인 */
    --na-line-soft: #EDF1F5;
    --na-surface: #F8FAFC;
    --na-card-bg: #FFFFFF;
    --na-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --na-shadow: 0 0 0 1px rgba(11, 37, 64, 0.08), 0 14px 32px -16px rgba(11, 37, 64, 0.22);

    display: flex;
    flex-direction: column;
    gap: 64px;
    margin: 0 auto;
    padding: 0 0 40px;
    color: var(--na-body);
    font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: -0.01em;
    text-align: left;
    word-break: keep-all;
    overflow-wrap: break-word;
    -webkit-font-smoothing: antialiased;
}

#nt-ai,
#nt-ai *,
#nt-ai *::before,
#nt-ai *::after {
    box-sizing: border-box;
}

#nt-ai p,
#nt-ai h2,
#nt-ai h3,
#nt-ai h4,
#nt-ai ul,
#nt-ai ol,
#nt-ai dl,
#nt-ai dt,
#nt-ai dd {
    margin: 0;
    padding: 0;
}

/* ==========================================================================
   Hero 헤더 및 네비게이션 (단가표 hero와 동일한 radial/linear 그라데이션)
   ========================================================================== */
.nt-ai__hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 56px 40px 36px;
    border: 1px solid #E3ECF4;
    border-radius: 32px;
    background:
        radial-gradient(760px 260px at 50% -12%, rgba(30, 121, 180, 0.16), rgba(30, 121, 180, 0) 70%),
        radial-gradient(420px 200px at 92% 112%, rgba(114, 191, 172, 0.22), rgba(114, 191, 172, 0) 70%),
        linear-gradient(180deg, #F4F9FD 0%, #FFFFFF 100%);
    text-align: center;
}

/* 단가표와 같은 색깔 그라데이션 타이틀 */
.nt-ai__title {
    font-size: 44px !important;
    font-weight: 800;
    line-height: 1.25 !important;
    letter-spacing: -0.035em;
    margin-bottom: 4px;
    background: linear-gradient(135deg, #0B2540 10%, #1E79B4 85%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nt-ai__nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    list-style: none;
    margin-top: 4px;
}

.nt-ai__nav a {
    display: inline-flex;
    align-items: center;
    padding: 9px 18px;
    background: #FFFFFF;
    border: 1px solid #D5E3EF;
    border-radius: 8px;
    color: #111827;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: var(--na-shadow-sm);
}

.nt-ai__nav a:hover {
    border-color: var(--na-blue);
    color: var(--na-blue);
    background: var(--na-blue-tint);
}

/* ==========================================================================
   섹션 헤딩 (단가표 '구매·임차 가격 한눈에 보기' 규격과 동일)
   ========================================================================== */
.nt-ai__section {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.nt-ai__section-head {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* 단가표 nt-price__heading (32px, 800, line-height 1.3, letter-spacing -0.03em) */
.nt-ai__heading {
    display: block;
    color: #0B2540;
    font-size: 32px !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
    letter-spacing: -0.03em !important;
    margin: 0;
}

/* ==========================================================================
   단가표(MES 모듈 기초정보관리) 카드 스타일 시스템
   ========================================================================== */
.nt-ai__module-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.nt-ai__module-grid--quad {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.nt-ai__module-grid--dual {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.nt-ai__module {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border-radius: 20px;
    background: #FFFFFF;
    border: 1px solid #D5E3EF;
    box-shadow: var(--na-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nt-ai__module:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 0 1px rgba(30, 121, 180, 0.2), 0 16px 36px -12px rgba(11, 37, 64, 0.25);
}

/* 모듈 헤더: 단가표의 파란 그라데이션 머리 띠 */
.nt-ai__module-head {
    padding: 18px 22px 16px;
    background: linear-gradient(135deg, #12507A 0%, #1E79B4 100%);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    min-height: 74px;
}

.nt-ai__module-name {
    color: #FFFFFF !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    line-height: 1.35 !important;
    letter-spacing: -0.02em;
    margin: 0;
}

.nt-ai__module-name-sub {
    display: block;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    opacity: 0.95;
    margin-top: 3px;
    letter-spacing: -0.01em;
}

.nt-ai__module-step {
    padding: 3px 8px;
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 6px;
    color: #FFFFFF;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.05em;
    white-space: nowrap;
    align-self: flex-start;
}


/* 스텝 카드 다이어그램 이미지 래퍼 */
.nt-ai__module-image-wrap {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
}

.nt-ai__module-image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    aspect-ratio: 370 / 310;
}

.nt-ai__module-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 16px;
    padding: 22px 22px 24px;
}

/* 수치 하이라이트 박스 (단가표의 구매/임차 가격 박스 규격) */
.nt-ai__module-stat {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #F4F7FA;
    border: 1px solid #E5EAF0;
}

.nt-ai__module-stat-label {
    color: #4B5B6B;
    font-size: 12.5px;
    font-weight: 700;
}

.nt-ai__module-stat-value {
    color: #0B2540;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.nt-ai__module-stat-value.nt-ai__red {
    color: #D9383A;
}

/* 기능 태그 배지 목록 (단가표의 nt-price__module-features 규격) */
.nt-ai__module-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nt-ai__module-tags li {
    padding: 4px 10px;
    border-radius: 999px;
    background: #EBF4FA;
    color: #17669A;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.4;
}

/* 상세 설명 체크 리스트 (단가표의 nt-price__module-details 규격) */
.nt-ai__module-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 14px;
    border-top: 1px solid var(--na-line-soft);
    list-style: none;
    margin: 0;
    padding-left: 0;
}

.nt-ai__module-details li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #111827;
    font-size: 14.5px;
    line-height: 1.6;
    font-weight: 500;
}

.nt-ai__module-details svg {
    flex-shrink: 0;
    margin-top: 3px;
    color: #1E79B4;
}

/* ==========================================================================
   핵심 기능 2종 (Multi-Domain & Sketch to Real)
   ========================================================================== */
.nt-ai__features-dual {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 4px;
}

.nt-ai__feature-box {
    background: #F8FAFC;
    border: 1px solid #D5E3EF;
    border-radius: 14px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nt-ai__feature-title {
    color: #111827;
    font-size: 16.5px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}


/* 하단 2종 기능 이미지 래퍼 */
.nt-ai__feature-image-wrap {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.nt-ai__feature-image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.nt-ai__feature-desc {
    color: #4B5B6B;
    font-size: 14.5px;
    line-height: 1.6;
}

/* ==========================================================================
   실무 적용성 검증 Before / After 비교 테이블
   ========================================================================== */
.nt-ai__table-wrap {
    overflow-x: auto;
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    border-radius: 14px;
    box-shadow: var(--na-shadow-sm);
}

.nt-ai__table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    font-size: 15px;
}

.nt-ai__table th,
.nt-ai__table td {
    padding: 18px 20px;
    border-bottom: 1px solid #E5E7EB;
    vertical-align: middle;
}

.nt-ai__table thead th {
    background: #F8FAFC;
    color: #111827;
    font-weight: 800;
    font-size: 16px;
    border-bottom: 2px solid #CBD5E1;
}

/* 7번 요청: 단가표 임차 부분 색상(linear-gradient 블루) + 흰색 글씨 적용 */
.nt-ai__table thead th.nt-ai__col-solution {
    background: linear-gradient(135deg, #12507A 0%, #1E79B4 100%) !important;
    color: #FFFFFF !important;
    font-size: 16.5px !important;
    font-weight: 800 !important;
    border-bottom: 2px solid #12507A;
}

.nt-ai__table tbody tr:last-child th,
.nt-ai__table tbody tr:last-child td {
    border-bottom: none;
}

.nt-ai__table-category {
    background: #F8FAFC;
    font-weight: 800;
    color: #111827;
    width: 15%;
}

.nt-ai__table-legacy {
    width: 35%;
    color: #4B5B6B;
}

.nt-ai__table-legacy strong {
    color: #111827;
    display: block;
    margin-bottom: 0;
    font-size: 16px;
    font-weight: 800;
}

.nt-ai__table-arrow {
    width: 8%;
    color: #111827;
    font-size: 20px;
    padding: 0 !important;
}

.nt-ai__table-solution {
    width: 42%;
    background: #FFFFFF;
    color: #111827;
}

/* 7번 요청: 단가표 임차 머리 띠 색상(블루 그라데이션) + 글자 흰색 */
.nt-ai__table-solution-badge {
    display: inline-block;
    padding: 8px 18px;
    background: linear-gradient(135deg, #12507A 0%, #1E79B4 100%);
    border: none;
    border-radius: 8px;
    color: #FFFFFF !important;
    font-weight: 800;
    font-size: 15px;
    box-shadow: 0 2px 8px rgba(18, 80, 122, 0.25);
    letter-spacing: -0.01em;
}

/* ==========================================================================
   CTA 상담 배너
   ========================================================================== */
.nt-ai__cta {
    background: #F8FAFC;
    border: 1px solid #D5E3EF;
    border-left: 5px solid var(--na-blue);
    border-radius: 14px;
    padding: 40px 32px;
    color: #111827;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    box-shadow: var(--na-shadow-sm);
}

.nt-ai__cta-content h3 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 8px;
    color: #111827;
}

.nt-ai__cta-content p {
    font-size: 15px;
    color: #4B5B6B;
}

.nt-ai__cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: #FFFFFF;
    color: #111827 !important;
    border: 2px solid var(--na-blue);
    font-weight: 800;
    font-size: 16px;
    border-radius: 8px;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.nt-ai__cta-btn:hover {
    background: var(--na-blue-tint);
    transform: translateY(-2px);
}

/* ==========================================================================
   반응형 중단점
   ========================================================================== */
@media (max-width: 1100px) {
    .nt-ai__module-grid--quad {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1023px) {
    .nt-ai__heading {
        font-size: 28px !important;
    }
}

@media (max-width: 900px) {
    .nt-ai__module-grid {
        grid-template-columns: 1fr;
    }
    .nt-ai__module-grid--quad {
        grid-template-columns: 1fr;
    }
    .nt-ai__module-grid--dual {
        grid-template-columns: 1fr;
    }
    .nt-ai__features-dual {
        grid-template-columns: 1fr;
    }
    .nt-ai__cta {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 640px) {
    #nt-ai {
        gap: 44px;
    }
    .nt-ai__hero {
        padding: 40px 20px 28px;
        border-radius: 24px;
    }
    .nt-ai__title {
        font-size: 30px !important;
    }
    .nt-ai__heading {
        font-size: 24px !important;
    }
    .nt-ai__table th,
    .nt-ai__table td {
        padding: 12px 10px;
        font-size: 13px;
    }
    .nt-ai__table-legacy strong,
    .nt-ai__table-solution strong {
        font-size: 14px;
    }
}
