@charset "UTF-8";

:root {
    --main-dark: #171717;
    --text-white: #ffffff;
    --accent-red: #E53935;
    --accent-purple: #AD4BFF;
    --accent-pink: #D65DB1;
    --border-line: rgba(255, 255, 255, 0.15);
    --text-gray: rgba(255, 255, 255, 0.5);
    --text-light-gray: rgba(255, 255, 255, 0.7);
}

/* Smooth Scroll - 메인페이지 전용 */
html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--main-dark);
    color: var(--text-white);
    overflow-x: hidden;
    margin: 0;
}

/* =========================================
   X-Framework Ambient Glow (섹션 귀속 구조)
   ========================================= */
.xframework-ambient {
    position: absolute;
    inset: -40vh;           /* 섹션 경계 바깥까지 확장 → 형제 섹션에 잘리지 않음 */
    pointer-events: none;
    z-index: 0;
    opacity: 0;             /* 초기 숨김 - JS에서 제어 */
    transition: opacity 0.5s ease;
}

/* 그라데이션 공통 스타일 */
.xframework-ambient .glow-red,
.xframework-ambient .glow-purple {
    position: absolute;
    border-radius: 50%;
    will-change: transform, opacity;
}

/* Red Glow - 우측 상단 모서리, 브라우저 전체 크기급 + 자연스러운 밝기 */
.xframework-ambient .glow-red {
    width: 120vw;           /* 브라우저 너비 초과 - 더 큰 퍼짐 */
    height: 120vw;
    max-width: 2400px;
    max-height: 2400px;
    background: radial-gradient(
        circle,
        rgba(229, 57, 53, 0.5) 0%,
        rgba(229, 57, 53, 0.35) 20%,
        rgba(229, 57, 53, 0.2) 40%,
        rgba(229, 57, 53, 0.08) 60%,
        transparent 75%
    );
    top: -40vw;
    right: -40vw;
    filter: blur(100px);
}

/* Purple Glow - 좌측 하단 모서리, 브라우저 전체 크기급 + 자연스러운 밝기 */
.xframework-ambient .glow-purple {
    width: 130vw;           /* 브라우저 너비 초과 - 더 큰 퍼짐 */
    height: 130vw;
    max-width: 2600px;
    max-height: 2600px;
    background: radial-gradient(
        circle,
        rgba(155, 89, 182, 0.45) 0%,
        rgba(155, 89, 182, 0.3) 20%,
        rgba(155, 89, 182, 0.15) 40%,
        rgba(155, 89, 182, 0.05) 60%,
        transparent 75%
    );
    bottom: -45vw;
    left: -45vw;
    top: auto;
    filter: blur(120px);
}

/* [수정 1] 가로 폭 제한 해제 (1360px -> calc 100% - 80px) */
.inner-wrap {
    width: calc(100% - 180px);
    max-width: 100%; /* 제한 해제 */
    margin: 0 auto;
    box-sizing: border-box;
}

.sect-tit {
    font-size: 32px;
    font-weight: 500;
    color: var(--text-gray);
    margin-bottom: 25px;
    letter-spacing: 0.5px;
}

/* =========================================
   1. Main Visual
   ========================================= */
.main-visual {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 800px;
    overflow: hidden;
    background: transparent; /* 투명하게 변경 - 전역 그라데이션 보이도록 */
    z-index: 1;
}

/* Main Visual 배경 레이어 (영상 → 배경색 전환용) */
.main-visual::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--main-dark);
    opacity: 0;
    z-index: 0;
    transition: opacity 0.5s ease;
}

.main-visual.bg-revealed::before {
    opacity: 1;
}

.main-visual .video-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
    background: #171717;
}

.main-visual .video-bg video {
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.main-visual .visual-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
    width: 100%;
}

.main-visual .title-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.main-visual .title-withx {
    display: flex;
    align-items: center;
}

.main-visual .title-withx img {
    height: 100px;
    width: auto;
    display: block;
}

.main-visual .title-fer {
    font-size: 100px;
    font-weight: 800;
    line-height: 1;
}

.main-visual .sub-title {
    margin-top: 0;
    font-size: 28px;
    color: var(--text-light-gray);
    line-height: 1.8;
    font-weight: 400;
    position: absolute;
    top: calc(100% - 60px);
    margin-top: 10px;
    left: 0;
    width: 100%;
    visibility: visible;
}

.main-visual .sub-title .char {
    display: inline;
}

.main-visual .sub-title .char.space {
    display: inline;
}

/* Video Overlay */
.main-visual .video-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

/* Title fer character animation */
.main-visual .title-fer-inner {
    display: inline-block;
    white-space: nowrap;
}

.main-visual .title-fer-inner .char {
    display: inline-block;
}

/* Bottom Text - Left bottom */
.main-visual .bottom-text {
    position: absolute;
    bottom: 80px;
    left: 90px;
    z-index: 10;
}

.main-visual .bottom-title {
    font-size: 32px;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 8px;
}

.main-visual .bottom-desc {
    font-size: 32px;
    color: var(--text-light-gray);
    line-height: 1.6;
}

/* =========================================
   2. X-Framework
   ========================================= */
.section-xframework {
    position: relative;
    padding: 150px 0;
    background: transparent;
    z-index: 1;
    overflow: visible;      /* ❗ 핵심: ambient가 잘리지 않도록 */
}

.xframework-container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

/* Left: Sticky Area */
.xframework-left {
    flex: 1; /* 남은 공간 차지 */
    min-width: 320px;
    position: sticky;
    top: 150px;
    height: fit-content;
}

.section-header-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--accent-purple);
    margin-bottom: 20px;
}

.section-desc {
    font-size: 24px;
    line-height: 1.5;
    color: var(--text-white);
    margin-bottom: 100px;
}

.nav-indicator {
    position: relative;
    padding-left: 20px;
}

.nav-line {
    position: absolute;
    left: 0; top: 10px; bottom: 10px;
    width: 1px;
    background: rgba(255,255,255,0.2);
}

.xframework-nav li {
    position: relative;
    padding: 12px 0 12px 20px;
    font-size: 24px;
    color: var(--text-gray);
    cursor: pointer;
    transition: all 0.3s;
}

/* 활성화 상태 인디케이터 */
.xframework-nav li::before {
    content: '';
    position: absolute;
    left: -20px; top: 50%;
    transform: translateY(-50%);
    width: 2px; height: 0;
    background: var(--accent-red);
    transition: height 0.3s ease;
}

.xframework-nav li.active {
    color: var(--text-white);
    font-weight: 600;
}

.xframework-nav li.active::before {
    height: 100%;
    top: 0;
    transform: none;
}

/* Right: Scrolling Cards */
.xframework-right {
    width: 930px; /* 시안 기준 고정 너비 */
    max-width: 930px;
    flex-shrink: 0;
    margin-left: 80px; /* 왼쪽 메뉴와 간격 */
    display: flex;
    flex-direction: column;
    gap: 200px; /* 카드 간격 넓힘 */
    padding-bottom: 100px;
}

.xf-card {
    padding-top: 20px;
    /* 스크롤 감지 영역 보정을 위한 투명 패딩 */
    scroll-margin-top: 30vh; 
}

.xf-card .card-top {
	border-bottom: 1px solid var(--border-line);
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
}

.xf-card .card-idx {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-white);
    display: flex;
    align-items: center;
    gap: 10px;
}

.xf-card .card-idx .num {
    background: var(--text-white);
    color: #ED1C2B;
    font-size: 14px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 5px;
}

.xf-card .card-cate {
    font-size: 24px;
    color: var(--text-gray);
}

.xf-card .card-text a {
    display: block;
    text-decoration: none;
    transition: opacity 0.2s;
}

.xf-card .card-text a:hover p {
    text-decoration: underline;
    text-underline-offset: 4px;
    color: var(--white);
}

.xf-card .card-text p {
    font-size: 24px;
    color: var(--text-light-gray);
    margin-bottom: 25px;
    line-height: 1.6;
    transition: color 0.2s, text-decoration 0.2s;
}

.xf-card .card-visual-box {
    width: 100%;
    overflow: hidden;
}

.xf-card .card-visual-box img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}


/* =========================================
   3. Partners
   ========================================= */
.section-partners {
    position: relative;
    padding: 80px 0;
    background: transparent;
    z-index: 1;
}

.partners-list {
    overflow: hidden;
    user-select: none;
}

.partners-track {
    display: flex;
    gap: 15px;
    will-change: transform;
}

.pt-item {
    flex: 0 0 calc((100% - 45px) / 4);
    height: 200px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-line);
    border-radius: 30px;
    padding: 30px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    transition: background 0.3s;
}

.partners-list .pt-item:nth-child(1) {
    background: linear-gradient(126.26deg, rgba(255, 255, 255, 0) 0%, rgba(26, 0, 255, 0.1) 100%), linear-gradient(127deg, rgba(255, 255, 255, 0.03) 1.52%, rgba(153, 153, 153, 0.03) 100%);
}

.partners-list .pt-item:nth-child(2) {
    background: linear-gradient(126.26deg, rgba(255, 255, 255, 0) 0%, rgba(0, 204, 255, 0.1) 100%), linear-gradient(127deg, rgba(255, 255, 255, 0.03) 1.52%, rgba(153, 153, 153, 0.03) 100%);
}

.partners-list .pt-item:nth-child(3) {
    background: linear-gradient(126.26deg, rgba(255, 255, 255, 0) 0%, rgba(0, 255, 72, 0.1) 100%), linear-gradient(127deg, rgba(255, 255, 255, 0.03) 1.52%, rgba(153, 153, 153, 0.03) 100%);
}

.partners-list .pt-item:nth-child(4) {
    background: linear-gradient(126.26deg, rgba(255, 255, 255, 0) 0%, rgba(26, 0, 255, 0.1) 100%), linear-gradient(127deg, rgba(255, 255, 255, 0.03) 1.52%, rgba(153, 153, 153, 0.03) 100%);
}

.pt-item:hover { background: rgba(255,255,255,0.06); }

.pt-item .pt-logo {
    width: 300px;
    max-width: 100%;
    min-width: 150px;
    height: 55px;
    min-height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pt-item .pt-logo .partner-svg {
    display: block;
    width: 100%;
    max-width: 325px;
    height: auto;
    max-height: 60px;
}

.pt-item .pt-name {
    font-size: 32px;
    color: var(--text-white);
}

/* =========================================
   4. Innovation Labs (Slider)
   ========================================= */
.section-labs {
    position: relative;
    padding: 80px 0;
    background: transparent;
    z-index: 1;
    overflow: visible;
}

.labs-header {
    width: calc(100% - 180px);
    margin: 0 auto 25px;
}

.labs-slider-wrap {
    position: relative;
    padding-left: 90px; /* inner-wrap 좌측 여백과 동일 */
    overflow: visible;
}

.labs-slider-container {
    overflow: visible;
    position: relative;
}

.labs-slider {
    display: flex;
    gap: 24px;
    cursor: grab;
    user-select: none;
    will-change: transform;
    transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.labs-slider.dragging {
    cursor: grabbing;
    transition: none;
}

.lab-slide {
    flex-shrink: 0;
    /* 3.5개가 보이도록 계산: (100% - padding - 3 * gap) / 3.5 */
    width: calc((100vw - 90px - 72px) / 3.5);
    min-width: 320px;
}

.lab-box {
    display: block;
    background: transparent;
    cursor: pointer;
    text-decoration: none;
}

.lab-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 15px;
    position: relative;
}

.lab-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.lab-box:hover .lab-img img {
    transform: scale(1.05);
}

.lab-txt .tit {
    font-size: 24px;
    color: var(--text-white);
    font-weight: 500;
    margin-bottom: 6px;
    line-height: 1.4;
}

.lab-txt .date {
    font-size: 18px;
    color: var(--text-gray);
}

/* Next Button */
.labs-nav-btn {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.labs-nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.labs-nav-btn .arrow {
    width: 12px;
    height: 12px;
    border-right: 2px solid var(--text-white);
    border-bottom: 2px solid var(--text-white);
    transform: rotate(-45deg);
    margin-left: -3px;
}

/* =========================================
   5. Notice/News
   ========================================= */
.section-notice {
    position: relative;
    padding: 60px 0 280px;
    background: transparent;
    z-index: 1;
}

.notice-table {
    border-top: 1px solid var(--border-line);
    font-size: 28px;
}

.nt-row {
    display: flex;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-line);
    color: var(--text-light-gray);
    transition: background 0.3s;
    text-decoration: none;
}

.nt-row:hover {
    background: rgba(255,255,255,0.02);
    color: var(--text-white);
}

.nt-cate {
    width: 150px;
    font-weight: 600;
    color: var(--text-white);
}

.nt-subject {
    flex: 1;
    font-weight: 400;
}

.nt-date {
    width: 200px;
    text-align: right;
    color: var(--text-gray);
}

/* Responsive */
@media (max-width: 1400px) {
    /* X-Framework - 화면이 좁아지면 카드 영역 유연하게 */
    .xframework-right {
        width: auto;
        max-width: 930px;
        flex: 1;
    }
}

@media (max-width: 1024px) {
    /* Main Visual */
    .main-visual .title-withx img { height: 60px; }
    .main-visual .title-fer { font-size: 60px; }
    .main-visual .bottom-text { left: 30px; bottom: 60px; }
    .main-visual .bottom-title { font-size: 16px; }
    .main-visual .bottom-desc { font-size: 14px; }

    /* X-Framework */
    .xframework-container { flex-direction: column; }
    .xframework-left { position: relative; top: 0; width: 100%; min-width: auto; margin-bottom: 50px; }
    .xframework-right { width: 100%; max-width: 100%; margin-left: 0; gap: 80px; }

    /* Labs Slider */
    .labs-header { width: calc(100% - 60px); }
    .labs-slider-wrap { padding-left: 30px; }
    .lab-slide { width: calc((100vw - 30px - 48px) / 2.5); min-width: 280px; }
    .labs-nav-btn { right: 20px; width: 48px; height: 48px; }

    /* Ambient Glow 반응형 - 태블릿 */
    .xframework-ambient .glow-red { width: 140vw; height: 140vw; top: -50vw; right: -50vw; filter: blur(80px); }
    .xframework-ambient .glow-purple { width: 150vw; height: 150vw; bottom: -55vw; left: -55vw; filter: blur(100px); }
}

@media (max-width: 767px) {
    /* Main Visual */
    .main-visual { min-height: 600px; }
    .main-visual .title-wrap { gap: 10px; }
    .main-visual .title-withx img { height: 28px; }
    .main-visual .title-fer { font-size: 28px; margin-left: 0; }
    .main-visual .sub-title { font-size: 14px; padding: 0 20px; }
    .main-visual { min-height: auto; height: 100svh; }
    .main-visual .bottom-text { left: 20px; right: 20px; bottom: 20px; }
    .main-visual .bottom-title { font-size: 15px; }
    .main-visual .bottom-desc { font-size: 13px; }

    /* inner-wrap 충돌 해소 */
    .inner-wrap { width: calc(100% - 30px); }

    /* sect-tit */
    .sect-tit { font-size: 20px; margin-bottom: 16px; }

    /* X-Framework */
    .section-xframework { padding: 60px 0; }
    .section-header-title { font-size: 28px; margin-bottom: 12px; }
    .section-desc { font-size: 14px; margin-bottom: 30px; }
    .xframework-left { position: static; margin-bottom: 0; }
    .xframework-nav li { font-size: 14px; padding: 8px 0 8px 14px; }

    /* X-Framework nav: 가로 스크롤 탭 */
    .nav-indicator { padding-left: 0; overflow: visible; }
    .nav-line { display: none; }
    .xframework-nav {display: flex;flex-direction: row; overflow-x: auto;-webkit-overflow-scrolling: touch;padding-bottom: 12px;}
    .xframework-nav::-webkit-scrollbar { display: none; }
    .xframework-nav li {flex: 1;padding: 6px 0;text-align: center;border: none;border-radius: 20px;font-size: 13px;border-radius: 0;}
    .xframework-nav li::before { display: none; }
    .xframework-nav li.active { border-bottom: 2px solid var(--accent-red); color: var(--text-white); font-weight: 600; }

    /* nav fixed 상태 (JS에서 클래스 부여) */
    .xframework-nav.is-fixed {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        z-index: 100;
        background: var(--main-dark);
        padding: 10px 15px;
        box-sizing: border-box;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }
    /* fixed 시 nav 높이만큼 placeholder */
    .xframework-nav-placeholder { display: none; }
    .xframework-nav-placeholder.active { display: block; }

    /* X-Framework cards */
    .xframework-right { gap: 60px; padding-bottom: 60px; }
    .xf-card .card-idx { font-size: 18px; }
    .xf-card .card-cate { font-size: 14px; }
    .xf-card .card-text p { font-size: 14px; margin-bottom: 15px; }

    /* Partners - 모바일: 드래그 해제, 2열 그리드 */
    .section-partners { padding: 50px 0; }
    .partners-track { flex-wrap: wrap; gap: 10px; transform: none !important; transition: none !important; }
    .pt-item { flex: 0 0 calc(50% - 5px); min-width: 0; height: 130px; padding: 20px 12px; gap: 15px; border-radius: 16px; }
    .pt-item .pt-name { font-size: 13px; }
    .pt-item .pt-logo { width: 100%; min-width: 0; height: 36px; min-height: 36px; }
    .pt-item .pt-logo .partner-svg { max-height: 36px; width: auto; max-width: 100%; }

    /* Innovation Labs */
    .section-labs { padding: 50px 0; }
    .labs-header { width: calc(100% - 40px); }
    .labs-slider-wrap { padding-left: 20px; }
    .lab-slide { width: calc((100vw - 20px - 24px) / 1.3); min-width: 240px; }
    .lab-txt .tit { font-size: 15px; }
    .lab-txt .date { font-size: 12px; }
    .labs-nav-btn { right: 15px; width: 40px; height: 40px; }
    .labs-nav-btn .arrow { width: 9px; height: 9px; }

    /* Notice/News */
    .section-notice { padding: 50px 0 80px; }
    .notice-table { font-size: 14px; }
    /* nt-row: 카테고리+날짜(1행) / 제목(2행) 구조 */
    .nt-row { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 0; row-gap: 5px; padding: 14px 0; align-items: center; }
    /* 1행 좌: 카테고리 */
    .nt-cate { grid-column: 1; grid-row: 1; font-size: 15px; width: auto; color: var(--gray); }
    /* 1행 우: 날짜 */
    .nt-date { grid-column: 2; grid-row: 1; font-size: 13px; width: auto; text-align: right; margin-left: 0; color: var(--text-gray); }
    /* 2행: 제목 - 한 줄 말줄임 */
    .nt-subject { grid-column: 1 / -1; grid-row: 2; font-size: 15px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-white); }
}
