@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Thin.woff2') format('woff2');
    font-weight: 100;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-ExtraLight.woff2') format('woff2');
    font-weight: 200;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Light.woff2') format('woff2');
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Regular.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Medium.woff2') format('woff2');
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Bold.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Black.woff2') format('woff2');
    font-weight: 900;
    font-display: swap;
}
.text-center {
    text-align: center;
}
.en-sub-text {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}


/* --- Reset & Variables --- */
:root {
    --color-start: #2563EB;
    --color-end: #4162B4;
    --text-white: #ffffff;
}

:root {
    --section-gap-desktop: 80px;
    --section-gap-mobile: 50px;
}


section {
    padding-top: var(--section-gap-desktop);
    padding-bottom: var(--section-gap-desktop);
}

@media (max-width: 1024px) {
    section {
        padding-top: var(--section-gap-mobile);
        padding-bottom: var(--section-gap-mobile);
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: pre;
    overflow-x: hidden;
    font-family: 'Pretendard';
}

/* --- Hero Section Layout & Gradient --- */
/* --- Desktop Standard --- */
.hero-section {
    position: relative;
    width: 100%;
    /* 데스크톱: 화면 꽉 채우는 느낌을 위해 100vh 유지 (화면 높이에 따라 조정됨) */
    min-height: 100vh;
    background: linear-gradient(180deg, var(--color-start) 0%, var(--color-end) 100%);
    overflow: hidden;
    display: flex;
    justify-content: center;
    text-align: center;
    
    /* 텍스트 시작 여백을 줄여 위로 당깁니다. */
    align-items: flex-start; 
    padding-top: 10vh; /* 15vh -> 10vh로 줄임 */
    padding-bottom: 50px;
}


/* --- [Layer 1] Background Objects (Desktop Standard) --- */

/* 다리 실루엣 (데스크톱 기준: 중앙에 배치) */
.bg-bridge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 1200px;
    z-index: 1;
    opacity: 0.3; 
    pointer-events: none;
}
.bg-bridge img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* 바닥 물결 효과 (데스크톱 기준: 폰 목업보다 조금 아래) */
.bg-ripple {
    position: absolute;
    bottom: 150px; /* 하단에서 50px 위로 올림 */
    left: 50%;
    transform: translateX(-50%);
    width: 80%; 
    max-width: 900px;
    z-index: 2;
    pointer-events: none;
}
.bg-ripple img {
    width: 100%;
    height: auto;
}

/* --- [Layer 2] Main Content (변경 없음) --- */
.hero-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1000px;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* (이하 텍스트, 로고, 폰 스타일은 변경 없음) */

.sub-title { color: var(--text-white); font-size: 1.5rem; font-weight: 500; margin-bottom: 10px; }
.light-text {
  color: #FFD36A;
  position: relative;
  animation: lightPulse 3.2s ease-in-out infinite;
}

/* 진짜 불 켜졌다 꺼지는 느낌 */
@keyframes lightPulse {
  0% {
    color: #FFD36A;
    opacity: 0.45;
    text-shadow:
      0 0 2px rgba(255, 211, 106, 0.2),
      0 0 6px rgba(255, 211, 106, 0.15);
  }

  40% {
    /* 🔥 완전히 켜진 순간 */
    color: #FFF6CC;
    opacity: 1;
    text-shadow:
      0 0 8px rgba(255, 246, 204, 0.9),   /* 코어 */
      0 0 18px rgba(255, 224, 138, 0.7),  /* 확산 */
      0 0 32px rgba(255, 183, 3, 0.45);   /* 주변 */
  }

  100% {
    color: #FFD36A;
    opacity: 0.55;
    text-shadow:
      0 0 4px rgba(255, 211, 106, 0.25),
      0 0 10px rgba(255, 211, 106, 0.2);
  }
}


.logo-wrapper { margin-bottom: 40px; width: 250px; }
.logo-wrapper img { width: 100%; height: auto; }
.visual-group { position: relative; width: 100%; max-width: 600px; height: 400px; display: flex; justify-content: center; align-items: center; }
.obj-orbit { position: absolute; width: 140%; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 1; pointer-events: none; }
.obj-phone { position: absolute; z-index: 2; width: 100%; max-width: 400px; height: auto; filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3)); }


/* --- Mobile Responsive (768px 이하) --- */
@media (max-width: 768px) {
    
    /* (그 외 서브 타이틀, 로고 크기 등은 이전과 동일) */
    .sub-title { font-size: 1.2rem; }
    .logo-wrapper { width: 160px; margin-bottom: 20px; }
}

/* --- Mobile Responsive (768px 이하) --- */
@media (max-width: 768px) {
    
    .hero-section {
        /* min-height를 90vh -> auto로 변경하여, 콘텐츠 길이에 따라 높이가 결정되게 만듭니다. */
        min-height: auto; 
        
        /* 텍스트 시작 여백을 대폭 줄입니다. */
        padding-top: 80px; /* 15vh -> 80px로 고정값 설정 (화면 크기에 덜 영향받음) */
        padding-bottom: 50px; /* 하단 여백도 넉넉히 확보 */
    }

    /* 폰 목업을 위로 당기기 위해 로고와 폰 사이의 마진도 줄입니다. */
    .logo-wrapper { 
        width: 160px; 
        margin-bottom: 10px; /* 20px -> 10px로 줄여 폰 목업을 위로 당김 */
    }

    /* 다리 실루엣의 위치도 폰 목업을 따라 위로 올립니다. */
    .bg-bridge {
        top: 25%; /* 40% -> 25%로 조정 */
        left: 50%;
        transform: translateX(-50%);
        width: 150%; 
        max-width: none;
        height: 100%; 
        opacity: 0.2;
    }
    
    /* 물결 효과도 폰 목업을 따라 위로 올립니다. */
    .bg-ripple {
        position: absolute; 
        z-index: 9; 
        top: 60%; /* 70% -> 65%로 조정 */
        left: 50%;
        transform: translateX(-50%);
        width: 120%; 
        max-width: 350px;
    }
}

@media (max-width: 368px) {
    
    /* 물결 효과도 폰 목업을 따라 위로 올립니다. */
    .bg-ripple {
        position: absolute; 
        z-index: 9; 
        top: 80%; /* 70% -> 65%로 조정 */
        left: 50%;
        transform: translateX(-50%);
        width: 120%; 
        max-width: 350px;
    }
}

/* ********************************************************************************************** */

/* ============================================================
   Overview Section - Base & Background
   ============================================================ */
.overview-section {
    position: relative;
    /* padding: 180px 0; */
    /* 0% #4162B4 -> 100% #FFFFFF 그라데이션 */
    background: linear-gradient(180deg, #4162B4 0%, #FFFFFF 100%);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ============================================================
   Glassmorphism Bubbles (유리 질감 디자인)
   ============================================================ */
.f-bubble {
    position: absolute;
    background: rgba(255, 255, 255, 0.2); /* 투명한 흰색 배경 */
    backdrop-filter: blur(20px); /* 유리 블러 효과 */
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3); /* 은은한 외곽선 */
    padding: 30px 55px;
    border-radius: 100px;
    font-size: 24px;
    font-weight: 600;
    color: #FFFFFF;
    white-space: nowrap;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    animation: floatingBubbles 6s ease-in-out infinite;
    z-index: 2;
}

/* 부유 애니메이션 */
@keyframes floatingBubbles {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(5px, -15px) rotate(1deg); }
    66% { transform: translate(-5px, -10px) rotate(-1deg); }
}

/* ============================================================
   Desktop Layout (1025px 이상)
   ============================================================ */
@media (min-width: 1025px) {
    .bubbles-wrapper {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
        overflow: hidden;
    }

    /* 피그마 기준 좌우 분산 배치 */
    .b1 { top: 15%; left: 8%; animation-delay: 0s; }
    .b2 { top: 10%; left: 3%; animation-delay: 1s; }
    .b3 { bottom: 25%; left: 10%; animation-delay: 0.5s; }
    .b4 { top: 18%; right: 10%; animation-delay: 1.5s; }
    .b5 { top: 10%; right: 1%; animation-delay: 0.2s; }
    .b6 { bottom: 0%; right: 12%; animation-delay: 2.5s; }

    .content-area { z-index: 5; margin-top: 50px; }
}

@media (max-width: 768px) {
    .bubbles-wrapper {
        position: absolute;
        inset: 0;
        overflow: hidden;
        pointer-events: none;
    }

    .f-bubble {
        padding: 14px 24px;
        font-size: 14px;
        border-radius: 999px;

        /* JS에서 transform 제어할 거라 애니메이션만 남김 */
        animation-name: floatingMobile;
        animation-timing-function: ease-in-out;
        animation-iteration-count: infinite;
    }
}

/* 모바일용 더 가벼운 부유 */
@keyframes floatingMobile {
    0%   { transform: translate(0, 0); }
    50%  { transform: translate(0, -12px); }
    100% { transform: translate(0, 0); }
}

/* 2. 섹션 여백 및 텍스트 간격 극소화 */



/* ============================================================
   Typography (데스크톱 기준)
   ============================================================ */

   .content-area .text-center {
    max-width: 1200px;   /* 원하는 폭 */
    margin: 0 auto;      /* 블록 자체 중앙 */
    text-align: center;  /* 텍스트 중앙 */
}

.description-group {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.description,
.description-en {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .description-en {
        display: none;
    }
}

@media (max-width: 768px) {
    .en-text {
        display: none;
    }
}

@media (max-width: 768px) {
    .sub-text {
        display: none;
    }
}

@media (max-width: 768px) {
    .en-sub-text {
        display: none;
    }
}


@media (min-width: 1025px) {
    .content-area {
        display: flex;
        justify-content: center;
    }
}
.section-label {
    font-size: 35px;
    font-weight: 800;
    color: #2563EB; 
    display: block;
    margin-bottom: 25px;
    text-align: center;
}

.headline-line-1 {
    font-size: 50px;
    font-weight: 500;
    color: #FFF;
    display: block;
    line-height: 1.2;
}

.headline-line-2 {
    font-size: 60px;
    font-weight: 700;
    color: #FFF;
    text-shadow: 0 0 50px #2563EB;
    display: block;
    line-height: 1.3;
    margin-top: 10px;
}

.description {
    font-size: 35px;
    font-weight: 400;
    color: #525252;
    margin-top: 60px;
    line-height: 1.5;
}

.strong-description { font-weight: 700; color: #525252; }

.description-en {
    font-size: 20px;
    font-weight: 400;
    color: #949494;
    margin-top: 30px;
    line-height: 1.6;
}

/* ============================================================
   Mobile & Tablet Layout (1024px 이하)
   ============================================================ */
@media (max-width: 1024px) {

    /* 말풍선 영역을 텍스트 위로 이동 */
    .bubbles-wrapper {
        position: relative;
        width: 100%;
        height: 480px; /* 6개가 놀 수 있는 전용 높이 */
        margin-bottom: 40px;
        order: -1; /* 텍스트보다 먼저 나오게 함 */
    }

    .f-bubble {
        padding: 14px 22px;
        font-size: 14px;
        position: absolute; /* 자유 배치 */
    }

    /* 모바일 지그재그 자유 배치 */
    .b1 { top: 5%; left: 5%; }
    .b2 { top: 15%; right: 2%; animation-delay: 1s; }
    .b3 { top: 20%; left: 2%; animation-delay: 0.5s; }
    .b4 { top: 26%; right: 5%; animation-delay: 1.5s; }
    .b5 { top: 38%; left: 10%; animation-delay: 0.2s; }
    .b6 { top: 46%; right: 8%; animation-delay: 0.8s; }

    /* 모바일 텍스트 가독성 조정 */
    .section-label { font-size: 20px; }
    .headline-line-1 { font-size: 24px; color: #FFFFFF; }
    .headline-line-2 { font-size: 28px; color: #FFFFFF; }
    .description { font-size: 18px; color: #333; margin-top: 30px; }
    .description-en { font-size: 14px; color: #666; }
}

/* 1. 섹션 상단 여백을 줄여 전체를 위로 올림 */
.overview-section {
    padding-top: 50px !important; 
}

/* 2. 말풍선 영역 하단 여백을 마이너스로 주어 텍스트를 바짝 붙임 */
.bubbles-wrapper {
    margin-bottom: -500px !important; /* 수치를 키울수록 더 바짝 붙습니다 */
}

/* 3. 텍스트 영역 상단 여백 제거 */
.content-area {
    margin-top: 0 !important;
}

@media (max-width: 1024px) {
    .bubbles-wrapper {
        margin-bottom: -160px !important; /* 모바일 간격 조절 */
    }
}

/* 기본: 줄바꿈 숨김 (데스크톱) */
.mobile-br {
    display: none;
}

/* 모바일에서만 줄바꿈 활성화 */
@media (max-width: 1024px) {
    .mobile-br {
        display: inline;
    }
}

/* ********************************************************************************************** */

/* --- Market Section --- */
.market-section {
    background-color: #ffffff;
    padding: 100px 0;
    text-align: center;
}

@media (max-width: 786px){
    .market-section{margin-top: -70px;}
}

.market-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-label-blue {
    font-size: 35px;
    font-weight: 700;
    color: #2563EB; 
    display: block;
    margin-bottom: 20px;
}

@media (max-width: 786px){
    .section-label-blue{font-size: 20px;}
}

/* --- Dark Card --- */
.dark-card {
    background-color: #171717; 
    color: #FFFFFF;
    padding: 60px 40px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2); 
}

@media (max-width: 786px){
    .dark-card h3{padding-bottom: 50px;}
}


.dark-card h3 {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 10px;
}

.dark-card .highlight {
    color: #5AA9FF; 
}

.dark-card .en-text {
    font-size: 14px;
    color: #AAAAAA;
    margin-bottom: 80px; 
    line-height: 1.5;
}

/* --- Chart Layout & Header (배열 복구) --- */
.chart-container {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    gap: 40px;
    /* 데스크톱에서 배열이 깨지지 않도록 flex 설정을 명확히 유지 */
}

.chart-box {
    flex-basis: 48%; 
    text-align: center;
}

.chart-header {
    text-align: center; 
    margin-bottom: 30px;
}

.chart-header h4 {
    font-size: 18px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 5px;
}

.chart-header .sub-text {
    font-size: 14px;
    color: #AAAAAA;
    margin-bottom: 5px;
}

.chart-header .source-text {
    font-size: 12px;
    color: #606060;
    font-weight: 400;
}

/* --- 1. Circle Chart (원형 유지 및 애니메이션 준비) --- */
.circle-chart {
    position: relative;
    width: 100%;
    max-width: 360px; 
    height: 180px; /* 고정 높이 재설정 */
    margin: 0 auto;
    display: flex; 
    justify-content: center;
    align-items: center;
    gap: 24px;
}

.circle-chart .circle {
    /* 원형 유지를 위해 border-radius: 50%와 width/height를 명확히 유지 */
    position: relative; 
    border-radius: 50%; /* 원형 유지 핵심 */
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    z-index: 10;
    flex-shrink: 0;
}

.circle-chart .sm { 
    width: 100px;
    height: 100px;
    font-size: 20px;
    background-color: #606060;
    margin-left: 20px; 
}

.circle-chart .lg { 
    width: 160px;
    height: 160px;
    font-size: 28px;
    background: linear-gradient(135deg, #2563EB, #5AA9FF);
    margin-right: 20px; 
    
    opacity: 0;
    transform: translateX(-160px) scale(0.4); /* 더 멀리 + 완전 0은 피함 */

    transition:
        opacity 1.6s ease-out,
        transform 2.2s cubic-bezier(0.16, 1, 0.3, 1); /* 극적인 ease */
}

.circle-chart .lg.animate-scale {
    transform: scale(1);
}

.circle-chart .lg.animate-move {
    opacity: 1;
    transform: translateX(0) scale(1);
}

/* 연결선 및 화살표 구현 (기존 스타일 유지) */
.circle-chart::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 30%;
    width: 40%;
    height: 4px;
    background: linear-gradient(to right, #606060 0%, #2563EB 100%);
    transform: translateY(-50%) scaleX(0); /* ← 추가 */
    transform-origin: left;               /* ← 중요 */
    opacity: 0.5;
    z-index: 5;

    transition: transform 1.6s ease-out;  /* ← 애니메이션만 추가 */
}

.circle-chart.animate::before {
    transform: translateY(-50%) scaleX(1);
}

.circle-chart::before {
    transition-delay: 0.2s;
}

.circle-chart .lg {
    transition-delay: 0.4s;
}


/* 2018년/2023년 레이블 정렬 (원형 중앙 아래로) */
.chart-label-row {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 400px; 
    margin: 10px auto 0;
    padding: 0;
    color: #AAAAAA;
    font-size: 14px;
    font-weight: 500;
}

.chart-label-row .year-label {
    position: relative;
    text-align: center;
}

.chart-label-row span:first-child {
    margin-left: 20px; 
    transform: translateX(50px); 
}

.chart-label-row span:last-child {
    margin-right: 20px; 
    transform: translateX(-80px); 
}


/* --- 2. Pie Chart Placeholder --- */
.pie-chart-placeholder {
    width: 200px;
    height: 200px;
    margin: 0 auto; 
    border-radius: 50%; 
    
    
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 36px;
    font-weight: 800;
    color: #FFFFFF;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.pie-chart-placeholder.animated-pie {
    --p: 62;}

.pie-chart-placeholder.animated-pie {
    background: conic-gradient(#2563EB 62%, #606060 0);
}

/* 초기 상태: 0% 채워짐 */
.pie-chart-placeholder.initial {
    background: conic-gradient(#2563EB 0%, #606060 0); 
}

/* 애니메이션 완료 상태: 62% 채워짐 */
.pie-chart-placeholder.animated-pie {
    background: conic-gradient(#2563EB 62%, #606060 0);
}




/* --- Mobile Responsive (768px 이하) --- */
@media (max-width: 768px) {
    
    .dark-card {
        padding: 40px 20px;
    }
    
    .dark-card h3 {
        font-size: 24px;
    }

    .dark-card .en-text {
        margin-bottom: 50px;
    }

    /* 차트 세로 정렬 및 중앙 정렬 */
    .chart-container {
        flex-direction: column;
        gap: 60px; 
        align-items: center; /* 핵심: 차트 박스를 중앙으로 정렬 */
    }

    .chart-box {
        flex-basis: 100%; 
        width: 100%;
        max-width: 350px; /* 모바일에서 폭을 제한하여 깔끔하게 정렬 */
    }

    .chart-header {
        text-align: center;
        margin-bottom: 40px;
    }
    
    /* 1. Circle Chart 모바일 크기 조정 */
    .circle-chart {
        height: 150px; /* 높이 재조정 */
        max-width: 100%;
    }

    .circle-chart .sm { 
        width: 80px;
        height: 80px;
        margin-left: 0; 
    }

    .circle-chart .lg { 
        width: 130px;
        height: 130px;
        margin-right: 0; 
        /* 모바일에서도 transform: scale(0) 유지 */
    }
    
    /* 2. Pie Chart Placeholder (원형 유지를 위해 크기 재확인) */
    .pie-chart-placeholder {
        width: 150px;
        height: 150px;
        font-size: 30px;
        border-radius: 50%; /* 재확인 */
    }
    
    /* 2018년/2023년 레이블 모바일 정렬 */
    .chart-label-row {
        max-width: 300px; /* 원형 레이아웃과 맞추기 위해 max-width 조정 */
        justify-content: space-around;
        padding: 0;
        margin-top: 20px;
    }

    .chart-label-row span:first-child,
    .chart-label-row span:last-child {
        transform: none; /* 모바일에서는 transform 제거하고 margin/padding으로 간격 유지 */
        /* 원형 중앙 아래에 오도록 미세 조정은 필요 없으나, 겹침 방지를 위해 transform 제거 */
    }
}


/* ********************************************************************************************** */


/* --- Problems Section --- */



.problems-section {
    background-color: #ffffff; /* 배경색 유지 */
    padding: 100px 0;
}

@media (max-width:768px){
.problems-section {
    margin-top: -70px;
}
}

/* --- Problems Section Text Reveal --- */

/* 1. 애니메이션을 적용할 모든 텍스트 요소의 초기 상태 */
.problems-section h2,
.problems-section .en-sub-text,
.card.black-card h4,
.card.black-card li {
    opacity: 0;

    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform, opacity;
}

/* 2. 활성화 클래스가 붙었을 때의 상태 */
.reveal-active {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* 3. 등장 순서 세부 조절 (Delay) */
/* 메인 제목과 부제 */
.problems-section h2.reveal-active { transition-delay: 0.1s; }
.problems-section .en-sub-text.reveal-active { transition-delay: 0.3s; }

/* 카드 내부 텍스트들 (각 카드가 순서대로, 그 안의 리스트가 순서대로) */
/* n번째 카드의 제목(h4)과 리스트(li)에 순차적 지연 부여 */
.grid-2x2 .card:nth-child(1) h4.reveal-active { transition-delay: 0.4s; }
.grid-2x2 .card:nth-child(1) li.reveal-active { transition-delay: 0.5s; }

.grid-2x2 .card:nth-child(2) h4.reveal-active { transition-delay: 0.6s; }
.grid-2x2 .card:nth-child(2) li.reveal-active { transition-delay: 0.7s; }

/* 리스트 아이템들도 약간의 시차를 두고 싶다면 아래와 같이 추가 가능합니다 */
.card.black-card li:nth-child(1) { transition-delay: 0.1s; }
.card.black-card li:nth-child(2) { transition-delay: 0.2s; }
.card.black-card li:nth-child(3) { transition-delay: 0.3s; }


.problems-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.problems-section .text-center {
    text-align: center;
}

@media (max-width:786px){
    .problems-section .text-center{padding-bottom: 30px;}
}

.problems-section .mb-50 {
    margin-bottom: 50px;
}

/* --- Icon Divider (파란색 /// 모양) --- */
.icon-divider {
    margin-bottom: 30px;
}

.icon-divider img {
    /* 파란색 /// 아이콘 크기 및 중앙 정렬 */
    width: 60px; 
    height: auto;
    display: inline-block; /* 중앙 정렬을 위해 */
}

/* --- Title & Subtitle --- */
.problems-section h2 {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.4;
    color: #171717; /* 기본 텍스트 색상 */
    margin-bottom: 10px;
}

.problems-section .text-blue {
    color: #2563EB;
}

.problems-section .en-sub-text {
    /* 새로 추가된 영문 부제 스타일 */
    font-size: 14px;
    color: #606060;
    line-height: 1.6;
    margin-top: 15px;
     
}

/* --- Grid Layout (데스크톱 2x2) --- */
.grid-2x2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0; /* 계단식 스택을 위해 gap은 0으로 설정 */
    position: relative;
    /* padding-bottom: 200px; */
}


/* --- Card Style (Black Card) --- */
.card.black-card {
    position: sticky;
    top: 120px;               /* 모두 동일 */
    width: 100%;
    max-width: 850px;
    min-height: 300px;

    background: #171717;
    border-radius: 30px;
    padding: 50px;

    box-shadow: 0 20px 60px rgba(163, 163, 163, 0.4);
    border: 1px solid rgba(255,255,255,0.05);

    transition: transform 0.35s ease;
}

/* 카드 거의 겹치게 */
.card.black-card:nth-child(1) { top: 100px; }
.card.black-card:nth-child(2) { top: 120px; }
.card.black-card:nth-child(3) { top: 140px; }
.card.black-card:nth-child(4) { top: 160px; }

.card.is-stacked {
    transform: translateY(-6px);
}


.card.black-card h4 {
    font-size: 20px;
    font-weight: 700;
    color: #FFFFFF;
    border-bottom: 2px solid #333333; /* 구분선 */
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.card.black-card ul {
    transition: opacity 0.3s ease;
    list-style: none;
}

.card.black-card ul li {
    font-size: 16px;
    line-height: 1.8;
    color: #CCCCCC;
    position: relative;
    padding-left: 20px; /* 불릿 아이콘 공간 확보 */
    margin-bottom: 10px;
}

.card.black-card ul li::before {
    /* 커스텀 불릿 (작은 파란색 원) */
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background-color: #2563EB;
    border-radius: 50%;
}



.card h4 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #fff;
}

/* --- Mobile Responsive (768px 이하) --- */
@media (max-width: 768px) {
    
    .problems-section {
        padding: 60px 0;
    }
    
    .problems-section h2 {
        font-size: 23px;
    }

    /* Grid Layout (모바일 1열로 떨어짐) */
    .grid-2x2 {
        grid-template-columns: 1fr; /* 1열 */
        gap: 20px;
    }
    
    .card.black-card {
        padding: 30px 20px;
    }
}
.problems-section {
    padding-bottom: 60px;
}

.solutions-section.compact {
    padding-top: 60px;
    padding-bottom: 80px;
}

.solutions-section.compact .solution-grid {
    margin-top: 120px; /* 기존 200px → 축소 */
    gap: 80px;         /* 기존 100px → 축소 */
}

@media (max-width: 768px) {
    .solutions-section.compact {
        padding-top: 40px;
        padding-bottom: 60px;
    }

    .solutions-section.compact .solution-grid {
        margin-top: 80px;
        gap: 60px;
    }
}


.problems-section .mb-50 {
  margin-bottom: 30px;
}
/* ********************************************************************************************** */
/* --- Solutions Section Layout --- */
/* =========================
   SECTION & GRID
========================= */
.solutions-section {
    background: #fff;
    padding: 100px 0 80px;
    overflow: hidden;
}

@media (max-width:786px){
    .solutions-section{margin-top: -70px;}
}

.solutions-section h2 {
    font-size: 36px;
    line-height: 1.35;
    text-align: center;
    padding: 0 1rem;
}

@media (max-width:786px){
.solutions-section h2 {
    font-size: 23px;
    line-height: 1.35;
    text-align: center;
}
}
.en-sub-text {
    font-size: 14px;
    color: #606060;
    margin-top: 14px;
    text-align: center;
}

.book-grid {
    display: flex;
    justify-content: center;
    gap: 120px;
    margin: 140px auto 0;
    max-width: 1200px;
    position: relative;
}

/* 중앙 구분선 */
.book-grid::after {
    content: "";
    position: absolute;
    left: 50%; top: 0; bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,.08), transparent);
    transform: translateX(-50%);
}

.book-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.role-title {
    font-size: 70px;
    font-weight: 900;
    margin-bottom: 24px;
    color: #d3d3d3;
    text-align: center;
}

/* =========================
   BOOK CARD (낱장 물리 효과)
========================= */
.book-card {
    position: relative;
    width: 320px;
    height: 170px;
    perspective: 2500px;
    cursor: grab;
    /* user-select: none; */
    /* -webkit-user-select: none; */
    /* touch-action: none; */
}



.book-card .page {
    position: absolute;
    inset: 0;
    padding: 28px 32px;
    border-radius: 16px;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* [BACK] 하단 고정 페이지 */
.book-card .back {
    z-index: 1;
    background: #EEF4FF;
    color: #171717;
    transform: none !important;
}

/* [FRONT] 상단 낱장 페이지 */
.book-card .front {
    z-index: 2;
    background: #171717;
    color: #fff;
    /* 회전축을 왼쪽 상단으로 옮겨서 포스트잇 떼는 느낌 연출 */
    transform-origin: left top; 
    transition: 
        transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), 
        clip-path 0.7s cubic-bezier(0.2, 0.8, 0.2, 1),
        opacity 0.5s;
    overflow: hidden;
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
}

/* --- 디자인 디테일 --- */

/* 1. 왼쪽 책등 광택 */
.book-card .front::before {
    content: "";
    position: absolute;
    left: 0; top: 0; width: 12px; height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0.1), transparent);
    border-radius: 16px 0 0 16px;
    z-index: 4;
}

/* 2. 우측 하단 접힌 삼각형 (핵심 포인트) */
.book-card .front::after {
    content: "";
    position: absolute;
    bottom: 0; right: 0;
    width: 52px; height: 52px;
    background: linear-gradient(135deg, rgba(255,255,255,0.6) 0%, rgba(255,255,255,0.2) 45%, rgba(0,0,0,0.3) 100%);
    clip-path: polygon(100% 0, 0 100%, 100% 100%);
    border-radius: 0 0 16px 0;
    z-index: 5;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    transform-origin: bottom right;
}

/* 넘겨진 상태의 최종 모습 */
.book-card.is-flipped .front {
    transform: rotateY(-130deg) rotateZ(20deg) translateY(-50px) !important;
    clip-path: polygon(0% 0%, 0% 0%, 30% 100%, 0% 100%);
    opacity: 0;
}

.book-card.is-flipped .front::after {
    transform: scale(0); /* 넘어가면 자연스럽게 소멸 */
    opacity: 0;
}

/* =========================
   TEXT & HINTS
========================= */
.book-card p { font-size: 16px; line-height: 1.5; word-break: keep-all; }
.label { font-size: 13px; font-weight: 700; margin-bottom: 10px; }
.label.pain { color: #aaa; }
.label.solution { color: #2563EB; }
.page.back {font-weight: 700;}

.flip-hint {
    position: absolute;
    bottom: 16px;
    right: 20px;
    font-size: 12px;
    color: #7a7a7a;
    font-weight: 600;
    animation: hintMoveLeft 1.6s infinite;
    z-index: 6;
}

@keyframes hintMoveLeft {
    0%, 100% { transform: translateX(0); opacity: 0.5; }
    50% { transform: translateX(-8px); opacity: 1; }
}

/* =========================
   MOBILE
========================= */
@media (max-width: 768px) {
    .book-grid { flex-direction: column; gap: 60px; margin-top: 80px; align-items: center; }
    .book-grid::after { display: none; }
    .book-card { width: 90vw; max-width: 320px; }
    .role-title { font-size: 50px; }
}

/* ********************************************************************************************** */


/* --- Ecosystem Section --- */
.ecosystem-section {
    padding: 120px 0 0 0; /* 상단 여백 확보, 하단은 마키 배너와 밀착 */
    background-color: #FFFFFF;
    text-align: center; /* 내부의 인라인 요소들을 중앙으로 */
    display: flex;
    flex-direction: column;
    align-items: center; /* 내부 블록 요소들을 중앙으로 */
    margin-top: -100px;
}

@media (max-width:786px){
    .ecosystem-section{margin-top: -80px;}
}

.ecosystem-section .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center; /* 컨테이너 내부 요소들 정중앙 정렬 */
}

.ecosystem-layout {
    display: flex;
    align-items: center;
    gap: 80px;
    margin-bottom: 6rem;
}

.ecosystem-section h2{
    font-size: 36px;
    padding: 0 1rem;
}

@media (max-width:786px){
    .ecosystem-section h2{font-size: 25px;}
}

/* 벤다이어그램 이미지 초기 상태 */


.venn-container {
  position: relative;
  width: 300px; /* 필요시 조절 */
  margin: 0 auto;
  perspective: 1000px;
}

.venn-container img {
  display: block;
  width: 100%;
  transform: scale(0.75); /* 살짝 작아졌다가 커지며 등장 */
    transition: all 1.5s cubic-bezier(0.19, 1, 0.22, 1);
}

/* 가운데 로고 */
.venn-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50px; /* 로고 크기 */
  transform-style: preserve-3d;
  transform: translate(-50%, -50%);
  animation: diamondRotate 6s linear infinite;

  /* 살짝 입체감 */
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.25));
}

@keyframes diamondRotate {
  0% {
    transform: translate(-50%, -50%)
      rotateY(0deg)
      rotateX(20deg);
  }

  50% {
    transform: translate(-50%, -50%)
      rotateY(180deg)
      rotateX(-20deg);
  }

  100% {
    transform: translate(-50%, -50%)
      rotateY(360deg)
      rotateX(20deg);
  }
}



/* 초기 상태 */
.ecosystem-visual .fade-in-target {
    opacity: 0;
    transform: scale(0.6) translateY(40px);
    transition:
        transform 2s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 1.5s ease;
    will-change: transform, opacity;
}

/* 활성화 상태 */
.ecosystem-visual.active .fade-in-target {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.ecosystem-section .en-sub-text {
    /* 새로 추가된 영문 부제 스타일 */
    font-size: 14px;
    color: #606060;
    line-height: 1.6;
    margin-top: 15px;
}

.ecosystem-list {
    margin-bottom: -100px;
}


/* 리스트 아이템 공통 스타일 */
.ecosystem-list li {
    font-size: 20px;
    margin-bottom: 24px;
    padding: 25px 40px;
    border: 1px solid #f0f0f0;
    border-radius: 60px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    list-style: none;
    
    /* 전체 박스 등장 애니메이션 */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s, transform 1s;
}

/* 핵심: 블러 처리된 강조 텍스트 (초기 상태) */
.blur-text {
    display: inline-block;
    color: #2563EB;
    font-weight: 700;
    filter: blur(40px); 
    opacity: 0;
    transform: scale(1.2);
    
    /* 3초 동안 아주 천천히 변함 */
    transition: 
        filter 3.0s cubic-bezier(0.1, 0.5, 0.2, 1), 
        opacity 3.0s ease, 
        transform 3.0s cubic-bezier(0.1, 0.5, 0.2, 1);
    
    will-change: filter, opacity;
}

/* --- 활성화 상태 (스크롤이 중간에 도달했을 때) --- */

/* 섹션이 활성화되면 이미지와 박스가 먼저 나타남 */
.ecosystem-section.active .venn-container img {
    opacity: 1;
    transform: scale(1);
}

.ecosystem-list li {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.5s ease, transform 1.5s ease;
}

.ecosystem-section.active li {
    opacity: 1;
    transform: translateY(0);
}

/* 강조 텍스트 블러가 걷히는 시점 */
.ecosystem-section.active .blur-text {
    filter: blur(0px); /* 블러 사라짐 */
    opacity: 1;       /* 투명도 정상화 */
    transform: scale(1); /* 크기 정상화 */
}

/* [핵심] 텍스트가 위에서부터 차례대로 선명해지도록 지연 시간 부여 */
/* 박스가 나타나는 시간보다 살짝 뒤에 블러가 걷히기 시작하도록 설정했습니다. */

.ecosystem-list li:nth-child(1) .blur-text { transition-delay: 0.3s; }
.ecosystem-list li:nth-child(2) .blur-text { transition-delay: 0.8s; }
.ecosystem-list li:nth-child(3) .blur-text { transition-delay: 1.3s; }
.ecosystem-list li:nth-child(4) .blur-text { transition-delay: 1.8s; }
.ecosystem-list li:nth-child(5) .blur-text { transition-delay: 2.3s; }

/* 리스트 박스(li) 자체의 등장 지연 시간도 텍스트 속도에 맞춰 소폭 조정 */
.ecosystem-list li:nth-child(1) { transition-delay: 0.1s; }
.ecosystem-list li:nth-child(2) { transition-delay: 0.4s; }
.ecosystem-list li:nth-child(3) { transition-delay: 0.7s; }
.ecosystem-list li:nth-child(4) { transition-delay: 1.0s; }
.ecosystem-list li:nth-child(5) { transition-delay: 1.3s; }

/* 모바일 대응: 1열 정렬 */
@media (max-width: 991px) {
    .ecosystem-layout {
        flex-direction: column;
        text-align: center;
    }
    .ecosystem-list li {
        font-size: 17px;
        padding: 20px;
    }
}


/* ********************************************************************************************** */


/* --- Main Bottom Section --- */
.main-bottom {
    /* padding-top: 50px; 상단 여백 대폭 축소 */
    padding-bottom: 0;
    background-color: #fff;
    text-align: center;
}

.main-bottom .container {
    max-width: 800px; /* 텍스트 집중도를 위해 너비 제한 */
    margin: 0 auto;
    padding-bottom: 100px;
}

/* 1. 도트 패턴: 위에서 아래로 드러나는 효과 */
.dots-pattern {
    margin-bottom: 30px;
}
.small-dots {
    width: 120px; /* 도트 크기 훨씬 작게 조정 */
    height: auto;
    clip-path: inset(0 0 100% 0);
    opacity: 0;
    transition: all 1.2s ease-in-out;
}
.main-bottom.active .small-dots {
    clip-path: inset(0 0 0 0);
    opacity: 1;
}
/* 2. 텍스트 콘텐츠: 아래에서 위로 등장 */
.footer-content .en-sub-top,
.footer-content h3,
.footer-content .footer-desc,
.footer-content .en-sub-bottom {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease-out;
}

.footer-content h3{font-size: 35px; padding: 0 1rem;} 
.footer-content .ko-desc{font-size: 20px; font-weight: 600; color: #171717; font-family: 'pretendard'; }
.footer-content .ko-desc span{
    font-weight: 800;
    color: #525252; /* 혹은 원하는 색 */
    /* text-shadow: 0 0 15px #2563EB; */
    font-size: 26px;
    
}
.footer-content .en-text.top{padding-bottom: 20px;}


.typing-text {
  position: relative;
  display: inline-block;
  font-weight: 600;
  color: #525252;
  text-shadow: 0 0 0 rgba(37, 99, 235, 0);
}

/* 커서 */
.typing-text::after {
  content: '|';
  margin-left: 4px;
  animation: blink 1s infinite;
  color: #2563EB;
}

/* 커서 깜빡임 */
@keyframes blink {
  0%, 50% { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}

/* 타이핑 완료 후 라이트 효과 */
.typing-text.is-complete {
  animation: glowOn 1.2s ease-out forwards;
}

.typing-text.is-complete::after {
  display: none; /* 완료되면 커서 제거 */
}


@media (max-width:786px){
    .ko-desc{margin-top: 50px; margin-bottom: -70px;}
}

/* 영어 텍스트 스타일 추가 */
.main-bottom .en-text {
    font-size: 14px;
    color: #888;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.8s ease;
    padding: 0 1rem;
}
.main-bottom .en-text.top { margin-bottom: 15px; }
.main-bottom.en-text.bottom { margin-top: 15px; }

.main-bottom.active .en-text {
    opacity: 1;
    transform: translateY(0);
}

/* 텍스트 스타일 정의 (시안 반영) */
.en-sub-top { font-size: 14px; color: #999; margin-bottom: 20px; }
.footer-content h3 { font-size: 24px; font-weight: 700; color: #171717; line-height: 1.4; }
.text-blue { color: #2563EB; }
.footer-desc { font-size: 20px; color: #666; margin-bottom: 15px; }
.en-sub-bottom { font-size: 14px; color: #999; }

/* 순차적 등장을 위한 지연 시간 */
.footer-content h3 { transition-delay: 0.2s; }
.footer-content .footer-desc { transition-delay: 0.4s; }
.footer-content .en-sub-bottom { transition-delay: 0.6s; }


/* --- 활성화 상태 (JS가 active 클래스 추가 시) --- */
.main-bottom.active .dots-pattern img {
    /* 가림막(inset)을 0으로 만들어 이미지를 완전히 보여줌 */
    clip-path: inset(0 0 0 0);
    opacity: 1;
}

.main-bottom.active .footer-content .en-sub-top,
.main-bottom.active .footer-content h3,
.main-bottom.active .footer-content .footer-desc,
.main-bottom.active .footer-content .en-sub-bottom {
    opacity: 1;
    transform: translateY(0);
}


/* 무한 스크롤 띠 (Marquee) */
.marquee-bar {
    background-color: #2563EB;
    padding: 15px 0;
    width: 100%;
    overflow: hidden;
    position: relative;
    margin-top: 50px; /* 섹션 내용과의 간격 */
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: scrollInfinite 40s linear infinite;
    /* 항목들이 다닥다닥 붙도록 설정 */
    gap: 0; 
}

.marquee-container:hover .marquee-track {
    animation-play-state: paused;
}

.marquee-item {
    display: flex;
    align-items: center;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
    /* padding-right: 40px; 아이템 간 간격 */
}

.marquee-item img {
    height: 20px; /* 아이콘 크기 */
    /* 핵심: 아이콘 양옆에만 적절한 여백을 줌 */
    margin: 0 15px 0 25px; /* (상 우 하 좌) 순서. 이미지 뒤(우)보다 앞(좌)을 더 넓게 */
    vertical-align: middle;
}

/* 무한 루프 핵심: 트랙의 절반만큼 이동하면 즉시 처음으로 리셋 */
@keyframes scrollInfinite {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* 모바일 여백 조정 */
@media (max-width: 768px) {
    .main-bottom { padding-top: 30px; }
    .footer-content h3 { font-size: 24px; }
    .small-dots { width: 80px; }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: 
        opacity 0.8s ease,
        transform 0.8s ease;
}

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

/* 딜레이 옵션 */
.delay-1 {
    transition-delay: 0.15s;
}
.delay-2 {
    transition-delay: 0.3s;
}
.delay-3 {
    transition-delay: 0.45s;
}

