@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");

:root {
    --hdc-navy: #0f2747;
    --hdc-navy-soft: #1c3c67;
    --hdc-red: #df3348;
    --hdc-red-soft: #fff1f3;
    --hdc-blue: #2f6fed;
    --hdc-gray: #5f6b7a;
    --hdc-light: #f7f9fc;
    --hdc-line: #e6ebf2;
    --hdc-text: #111827;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
    background-color: var(--hdc-light);
    color: var(--hdc-text);
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.015em;
}

/* 텍스트 그라데이션 포인트 */
.hdc-text-gradient {
    background: linear-gradient(135deg, var(--hdc-red), #ff8b5d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hdc-text-gradient-blue {
    background: linear-gradient(135deg, var(--hdc-navy), var(--hdc-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hdc-red-text {
    color: var(--hdc-red);
}

.hdc-red-bg {
    background-color: var(--hdc-red);
}

.hdc-blue-bg {
    background-color: var(--hdc-navy);
}

.hdc-surface-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--hdc-line);
    box-shadow: 0 16px 40px rgba(15, 39, 71, 0.06);
}

.hdc-section-pill {
    background: var(--hdc-red-soft);
    color: var(--hdc-red);
}

.hdc-grid-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--hdc-line);
    box-shadow: 0 12px 30px rgba(15, 39, 71, 0.05);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease;
}

.hdc-grid-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 50px rgba(15, 39, 71, 0.1);
    border-color: rgba(223, 51, 72, 0.2);
}

.hdc-emphasis-navy {
    color: var(--hdc-navy);
}

.hdc-emphasis-red {
    color: var(--hdc-red);
}

/* 부드러운 스크롤 애니메이션 */
.scroll-section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* 프리미엄 카드 UI 마이크로 애니메이션 등 */
.flow-card {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.flow-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(15, 39, 71, 0.08), 0 8px 10px -6px rgba(15, 39, 71, 0.04);
}

/* 로드맵 UI 개선 */
.roadmap-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 24px;
    background-color: transparent;
}

.roadmap-stage {
    background: linear-gradient(135deg, var(--hdc-navy), var(--hdc-navy-soft));
    color: #ffffff;
    padding: 18px 24px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 1.25rem;
    text-align: center;
    margin-bottom: 24px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.roadmap-stage.blue-stage {
    background: linear-gradient(135deg, var(--hdc-blue), #5a8dff);
}

.roadmap-stage.orange-stage {
    background: linear-gradient(135deg, #ff8b5d, #ffb347);
}

.roadmap-stage.red-stage {
    background: linear-gradient(135deg, var(--hdc-red), #f05c6e);
}

.roadmap-item {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    color: #334155;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 12px;
    font-size: 1.05rem;
    font-weight: 500;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

.roadmap-item:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 15px -3px rgba(15, 39, 71, 0.08);
    border-color: rgba(15, 39, 71, 0.12);
}

.arrow {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    color: #94a3b8;
    font-size: 2rem;
    font-weight: bold;
}

@media (min-width: 768px) {
    .roadmap-grid {
        display: grid;
        grid-template-columns: 1fr auto 1fr auto 1fr;
        gap: 20px;
        align-items: start;
    }

    .roadmap-section {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .roadmap-stage {
        width: 100%;
        margin-bottom: 0;
    }

    .roadmap-items-group {
        width: 100%;
        margin-top: 24px;
    }

    .arrow {
        height: 100%;
        margin: 0;
        flex-direction: column;
        justify-content: center;
    }

    .arrow::before {
        content: '→';
        transform: rotate(90deg);
    }
}

@media (min-width: 1024px) {
    .roadmap-grid {
        grid-template-columns: 1fr auto 1fr auto 1fr;
    }

    .arrow::before {
        content: '→';
        transform: rotate(0deg);
    }
}

/* 갤러리 및 기타 스타일 */
.image-item {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(15, 39, 71, 0.06);
}

.image-item img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.image-item:hover img {
    transform: scale(1.08);
}

.faq-content {
    transition: max-height 0.35s ease, padding 0.35s ease;
    max-height: 0;
    overflow: hidden;
    padding-top: 0;
    padding-bottom: 0;
}

.faq-item.active .faq-content {
    max-height: 520px;
    padding-top: 0.5rem;
    padding-bottom: 2rem;
}

.faq-item.active {
    border-color: rgba(47, 111, 237, 0.22);
    box-shadow: 0 18px 38px rgba(15, 39, 71, 0.08);
}