/* ============================================
   칸코드 - KAI Core 페이지 스타일
   style.css 공통 스타일 위에 추가되는 페이지 전용 스타일
   ============================================ */

/* ============================================
   GNB 투명 변형 (다크 Hero 위에 겹침)
   ============================================ */
.gnb-wrapper.gnb-transparent {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background-color: transparent;
    transition: height 0.22s ease, margin-bottom 0.22s ease, box-shadow 0.22s ease;
    z-index: 100;
}

/* 기본 상태: 흰색 로고 보임, 검정 로고 숨김 */
.gnb-wrapper.gnb-transparent .logo-white {
    display: block;
}

.gnb-wrapper.gnb-transparent .logo-black {
    display: none;
}

.gnb-wrapper.gnb-transparent .gnb-menu-item {
    color: var(--white);
    transition: color 0.3s ease;
}

.gnb-wrapper.gnb-transparent .cta-btn {
    background-color: var(--primary-500);
}

/* 호버 상태 */
.gnb-wrapper.gnb-transparent:hover,
.gnb-wrapper.gnb-transparent:focus-within,
.gnb-wrapper.gnb-transparent.gnb-hovered,
.gnb-wrapper.gnb-transparent.gnb-open {
    background-color: var(--white);
}

.gnb-wrapper.gnb-transparent:hover .logo-white,
.gnb-wrapper.gnb-transparent:focus-within .logo-white,
.gnb-wrapper.gnb-transparent.gnb-hovered .logo-white,
.gnb-wrapper.gnb-transparent.gnb-open .logo-white {
    display: none;
}

.gnb-wrapper.gnb-transparent:hover .logo-black,
.gnb-wrapper.gnb-transparent:focus-within .logo-black,
.gnb-wrapper.gnb-transparent.gnb-hovered .logo-black,
.gnb-wrapper.gnb-transparent.gnb-open .logo-black {
    display: block;
}

.gnb-wrapper.gnb-transparent:hover .gnb-menu-item,
.gnb-wrapper.gnb-transparent:focus-within .gnb-menu-item,
.gnb-wrapper.gnb-transparent.gnb-hovered .gnb-menu-item,
.gnb-wrapper.gnb-transparent.gnb-open .gnb-menu-item {
    color: var(--gray-800);
}

/* ============================================
   Hero 섹션
   ============================================ */
.kai-hero {
    width: 100%;
    height: 1020px;
    /* GNB 80 + Hero 940 */
    position: relative;
    overflow: hidden;
    background-color: #272729;
}

.kai-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1440px;
    object-fit: cover;
    pointer-events: none;
}

.kai-hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--white);
    text-shadow: 0px 4px 6px rgba(0, 0, 0, 0.25);
}

.kai-hero-title {
    font-size: 54px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -1.08px;
    margin-bottom: 20px;
}

.kai-hero-subtitle {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -0.84px;
}

/* ============================================
   Section 1 - 슬로건 (배경 이미지)
   ============================================ */
.kai-section1 {
    width: 100%;
    height: 940px;
    position: relative;
    overflow: hidden;
    background-color: #272729;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kai-section1-bg {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 116%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    pointer-events: none;
}

.kai-section1-text {
    position: relative;
    z-index: 1;
    font-size: 42px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -0.84px;
    color: var(--white);
    text-align: center;
    text-shadow: 0px 4px 6px rgba(0, 0, 0, 0.25);
}

/* ============================================
   Section 2 - KAI Core 기능 & 도메인
   ============================================ */
.kai-section2 {
    width: 100%;
    background-color: #1E1E1E;
    padding: 120px 0;
}

.kai-section2-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--side-padding);
}

.kai-section2-title {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -0.84px;
    color: var(--white);
    text-align: center;
    margin-bottom: 120px;
}

/* 메인 그리드: Data+KAI Core 왼쪽, Domain 오른쪽 */
.kai-section2-grid {
    display: flex;
    gap: 60px;
    position: relative;
    align-items: flex-start;
}

.kai-section2-left {
    flex: 0 0 818px;
    display: flex;
    flex-direction: column;
    gap: 60px;
    position: relative;
}

.kai-section2-right {
    flex: 0 0 362px;
}

/* Data 컨테이너 */
.kai-data-container {
    border: 1px solid #878A91;
    display: flex;
    align-items: center;
    padding: 40px;
    gap: 0;
    height: 218px;
    position: relative;
}

.kai-data-label {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -0.84px;
    color: var(--white);
    margin-right: 96px;
    flex-shrink: 0;
}

.kai-data-items {
    display: flex;
    gap: 34px;
    align-items: flex-start;
    margin-left: 0;
}

.kai-data-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    width: 100px;
}

.kai-data-img {
    width: 100px;
    height: 100px;
    border: 1px dashed #4B4C52;
    position: relative;
    overflow: hidden;
}

.kai-data-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

/* 코너 마커 */
.kai-data-img::before,
.kai-data-img::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    border-color: #878A91;
    border-style: solid;
    z-index: 1;
}

.kai-data-img::before {
    top: 0;
    left: 0;
    border-width: 2px 0 0 2px;
}

.kai-data-img::after {
    top: 0;
    right: 0;
    border-width: 2px 2px 0 0;
}

.kai-data-img-inner::before,
.kai-data-img-inner::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    border-color: #878A91;
    border-style: solid;
    z-index: 1;
}

.kai-data-img-inner::before {
    bottom: 0;
    left: 0;
    border-width: 0 0 2px 2px;
}

.kai-data-img-inner::after {
    bottom: 0;
    right: 0;
    border-width: 0 2px 2px 0;
}

.kai-data-name {
    font-size: 20px;
    font-weight: 500;
    line-height: normal;
    letter-spacing: -0.4px;
    color: var(--white);
    text-align: center;
}

.kai-data-dots {
    display: flex;
    align-items: center;
    align-self: center;
    margin-left: 30px;
}

.kai-data-dots img {
    width: 20px;
    height: 4px;
}

/* KAI Core 컨테이너 */
.kai-core-container {
    border: none;
    box-shadow: inset 0 0 0 1px #878A91;
    padding: 40px;
    height: 694px;
    display: flex;
    align-items: flex-start;
    gap: 93px;
}

.kai-core-label {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -0.84px;
    color: var(--white);
    margin-bottom: 0;
}

.kai-core-grid {
    display: grid;
    grid-template-columns: repeat(2, 256px);
    column-gap: 40px;
    row-gap: 50px;
    width: 552px;
}

.kai-core-card {
    display: flex;
    flex-direction: column;
    width: 256px;
}

.kai-core-card-icon {
    width: 256px;
    height: 200px;
    margin-bottom: 20px;
}

.kai-core-card-icon img {
    width: 100%;
    height: 100%;
}

.kai-core-card-title {
    font-size: 24px;
    font-weight: 600;
    line-height: 28.640625px;
    letter-spacing: -0.48px;
    color: var(--white);
    margin-bottom: 14px;
}

.kai-core-card-tags {
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.kai-core-tag {
    font-size: 16px;
    font-weight: 600;
    line-height: 19.09375px;
    letter-spacing: -0.32px;
    color: #878A91;
    flex-shrink: 0;
}

.kai-core-tag-divider {
    width: 1px;
    height: 18px;
    background-color: #4B4C52;
    margin: 0 5px;
    flex-shrink: 0;
}

/* 화살표 아이콘 (Data → KAI Core, KAI Core → Domain) */
.kai-arrows {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: absolute;
    left: 226px;
    top: 235px;
    width: 552px;
    height: 26px;
    z-index: 2;
    pointer-events: none;
}

.kai-arrow-down {
    width: 24px;
    height: 26px;
}

.kai-arrow-horizontal {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: absolute;
    left: 835px;
    width: 26px;
    z-index: 2;
    pointer-events: none;
}

.kai-arrow-horizontal-top {
    top: 81px;
}

.kai-arrow-horizontal-bottom {
    top: 597px;
}

.kai-arrow-right {
    width: 26px;
    height: 24px;
    display: block;
}

/* Domain 컨테이너 */
.kai-domain-container {
    background-color: #38393D;
    border-radius: 16px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 26px;
    height: 100%;
}

.kai-domain-card {
    width: 282px;
    height: 127px;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    background-color: #272729;
}

.kai-domain-card img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
    pointer-events: none;
}

.kai-domain-card-label {
    position: absolute;
    top: 24px;
    left: 24px;
    font-size: 28px;
    font-weight: 700;
    line-height: normal;
    letter-spacing: -0.56px;
    color: var(--white);
    text-shadow: 0px 4px 6px rgba(0, 0, 0, 0.25);
    z-index: 1;
}

/* ============================================
   End Section - CTA (다크 배경)
   ============================================ */
.kai-end-section {
    background-color: #272729;
    padding: 100px 0;
    text-align: center;
}

.kai-end-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -0.96px;
    color: var(--white);
    margin-bottom: 40px;
}

.kai-end-section .cta-btn {
    width: 160px;
    height: 48px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   스크롤 등장 애니메이션
   ============================================ */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-delay-1 {
    transition-delay: 0.2s;
}

.scroll-delay-2 {
    transition-delay: 0.4s;
}
