#chartdiv {
    width: 100%;
    height: 300px;
}

#chartdiv2 {
    width: 100%;
    height: 400px;
}

.news-scroll-container {
    width: 100%;
    height: 40px;
    background-color: #f0f0f0;
    overflow: hidden;
    white-space: nowrap;
    display: flex;
    align-items: center;
    position: relative;
}

.news-scroll-content,
.news-scroll-content-clone {
    display: inline-block;
    position: absolute;
    top: 0;
    left: 0;
}

.news-item {
    display: inline-block;
    padding: 10px 30px;
}

.news-item a { /* a 태그 스타일 지정 */
    color: black; /* 글자색 검정색으로 설정 */
    text-decoration: none; /* 밑줄 제거 (선택 사항) */
}

.fade-in-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in-item.fade-in {
    opacity: 1;
    transform: translateY(0);
}
:root {
    --lp-bg-color: #0f172a;
    --lp-text-color: #f8fafc;
    --lp-accent-color: #38bdf8;
    --lp-glass-bg: rgba(255, 255, 255, 0.05);
    --lp-glass-border: rgba(255, 255, 255, 0.1);
    --lp-card-hover-bg: rgba(255, 255, 255, 0.1);
    --lp-font-main: 'Outfit', sans-serif;
}

#landing-page-wrapper {
    font-family: var(--lp-font-main);
    background-color: var(--lp-bg-color);
    color: var(--lp-text-color);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    /* align-items: center; Removed to fix overflow */
    padding-top: 4rem;
    padding-bottom: 4rem;
    overflow-x: hidden;
    position: relative;
    /* Ensure stacking context */
}

#landing-page-wrapper * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

#landing-page-wrapper #bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: radial-gradient(circle at 50% 0%, #1e293b 0%, #0f172a 100%);
    pointer-events: none;
}

#landing-page-wrapper .container {
    width: 100%;
    max-width: 1200px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

#landing-page-wrapper .glass-panel {
    background: var(--lp-glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--lp-glass-border);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

#landing-page-wrapper .hero {
    text-align: center;
    padding: 4rem 2rem;
}

#landing-page-wrapper .hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #38bdf8, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-top: 0;
}

#landing-page-wrapper .hero p {
    font-size: 1.2rem;
    color: #cbd5e1;
    max-width: 600px;
    margin: 0 auto;
}

#landing-page-wrapper .resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

#landing-page-wrapper .card {
    text-decoration: none;
    color: var(--lp-text-color);
    transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
}

#landing-page-wrapper .card:hover {
    transform: translateY(-5px);
    background-color: var(--lp-card-hover-bg);
    border-color: var(--lp-accent-color);
}

#landing-page-wrapper .card-icon {
    font-size: 2.5rem;
    background: rgba(255, 255, 255, 0.1);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

#landing-page-wrapper .card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

#landing-page-wrapper .card p {
    color: #94a3b8;
    line-height: 1.5;
    margin: 0;
}

#landing-page-wrapper footer {
    text-align: center;
    color: #64748b;
    padding: 1.5rem;
}

#landing-page-wrapper footer a {
    color: var(--lp-accent-color);
    text-decoration: none;
}

#landing-page-wrapper footer a:hover {
    text-decoration: underline;
}

#landing-page-wrapper .section-title {
    font-size: 1.8rem;
    color: var(--lp-accent-color);
    margin: 3rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--lp-glass-border);
    width: 100%;
    font-weight: 600;
}

@media (max-width: 768px) {
    #landing-page-wrapper .hero h1 {
        font-size: 2rem;
    }
}

/* Gradient Text Utility */
.bg-clip-text {
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /* Standard property for compatibility */
}

.bg-gradient-primary {
    background-image: linear-gradient(to right, #3b82f6, #818cf8);
}

/* Custom Hover Effects */
.hover-border-primary {
    transition: border-color 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.hover-border-primary:hover {
    border-color: #3b82f6 !important;
    transform: translateY(-2px);
}

.transition-all {
    transition: all 0.2s ease-in-out;
}

/* Animations */
.fade-in-up {
    animation: fadeInUp 0.5s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Line Clamp Utility */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-clamp: 2;
    /* Standard property for compatibility */
}

/* TradeNPU_AI 챗봇 애니메이션 컨테이너 */
.typing-animation {
    display: flex !important;
    gap: 5px !important;
    align-items: center !important;
    height: 18px !important;
    padding-left: 2px !important;
}

/* 점 스타일 */
.typing-dot {
    width: 5px !important;
    height: 5px !important;
    background-color: #aab0b6 !important;
    border-radius: 50% !important;
    display: inline-block !important;
    /* 모든 점이 동시에 움직이지 않도록 초기 상태를 설정
    */
    animation: wave-animation 1.3s infinite ease-in-out;
}

/* 각 점에 확실한 시간차(Delay) 부여
   첫 번째 점은 즉시, 두 번째는 0.2초 후, 세 번째는 0.4초 후
*/
.typing-dot:nth-child(1) { animation-delay: 0s; }
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes wave-animation {
    0%, 60%, 100% {
        transform: translateY(0); /* 바닥 상태 */
        opacity: 0.4;
    }
    30% {
        transform: translateY(-6px); /* 위로 톡! 튀어오름 */
        opacity: 1;
        background-color: #724ae8 !important; /* 튈 때만 강조색 */
    }
}