/**
 * yeoncha.kr 랜딩 페이지 - 프리미엄 스타일
 * Bootstrap 5.3 기반 커스텀 확장
 */

:root {
    /* 브랜드 컬러 - 퍼플/인디고 */
    --yc-primary: #4f46e5;
    --yc-primary-dark: #4338ca;
    --yc-primary-light: #6366f1;
    --yc-primary-50: #eef2ff;
    --yc-primary-100: #e0e7ff;

    /* 강조 - CTA 그린 */
    --yc-accent: #059669;
    --yc-accent-hover: #047857;

    /* 중성 */
    --yc-gray-50: #f9fafb;
    --yc-gray-100: #f3f4f6;
    --yc-gray-200: #e5e7eb;
    --yc-gray-300: #d1d5db;
    --yc-gray-500: #6b7280;
    --yc-gray-600: #4b5563;
    --yc-gray-700: #374151;
    --yc-gray-800: #1f2937;
    --yc-gray-900: #111827;

    /* 섹션 배경 */
    --yc-section-bg: #ffffff;
    --yc-section-alt: #f8fafc;

    /* 그림자 */
    --yc-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --yc-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --yc-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --yc-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);

    /* 트랜지션 */
    --yc-transition: 0.2s ease;
    --yc-transition-slow: 0.35s ease;
}

* {
    scroll-margin-top: 80px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--yc-gray-800);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ========== 네비게이션 ========== */
/* 페이지 로딩 시점부터 항상 hover 스타일 유지 */
#mainNav {
    padding: 1rem 0;
    background: rgba(79, 70, 229, 0.98);
    backdrop-filter: blur(12px);
    box-shadow: var(--yc-shadow);
}

/* collapse·nav가 nav와 동일 높이 → 호버 라인이 nav 아랫쪽에 위치 */
#mainNav .container {
    align-items: stretch;
}

#mainNav .navbar-collapse {
    align-self: stretch;
}

#mainNav .navbar-nav {
    height: 100%;
    align-items: stretch;
}

#mainNav .nav-item {
    display: flex;
    align-items: stretch;
}

#mainNav .nav-link {
    display: flex;
    align-items: center;
}

.navbar-brand {
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.navbar-brand i {
    font-size: 1.35rem;
}

/* 메뉴 간격 2배 (gap-3=1rem → 2rem) */
.nav-menu-spaced {
    gap: 2rem !important;
}

.nav-link {
    position: relative;
    font-weight: 500;
    color: #fff !important;
    padding: 0.5rem 0.5rem 0.5rem 0.5rem !important;
    border-radius: 0;
    background: transparent !important;
    transition: color var(--yc-transition);
}

.nav-link:hover {
    color: #fff !important;
    background: transparent !important;
}

/* 호버 시 중앙에서 양쪽으로 채워지는 라인 */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    width: calc(100% + 16px);
    height: 3px;
    background: #ff00a5;
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.nav-link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.btn-cta-nav {
    background: #fff !important;
    color: var(--yc-primary) !important;
    font-weight: 600;
    border-radius: 10px;
    transition: transform var(--yc-transition), box-shadow var(--yc-transition);
}

.btn-cta-nav:hover {
    transform: translateY(-1px);
    box-shadow: var(--yc-shadow-lg);
}

.navbar-toggler {
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
}

/* ========== Hero ========== */
/* 브라우저 높이 맞추지 않고 스크롤 흐름으로 */
.hero {
    position: relative;
    padding: 80px 0 60px;
    overflow: hidden;
}

    .hero .hero-content {
        padding-top: 95px;
        padding-bottom: 50px;
    }

@media (max-width: 991.98px) {
    .hero {
        padding: 60px 0;
    }

    .hero .hero-content {
        padding-top: 50px;
        padding-bottom: 0;
    }
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--yc-primary) 0%, #6366f1 50%, #818cf8 100%);
    z-index: 0;
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Hero 배경 애니메이션 - 미묘한 빛 움직임 */
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 50% 50% at 70% 30%, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
    animation: heroGlow 6s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes heroGlow {
    0% { opacity: 0.5; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.1); }
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: -0.01em;
    animation: heroBadgePulse 2.5s ease-in-out infinite;
}

@keyframes heroBadgePulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.2); }
    50% { transform: scale(1.02); box-shadow: 0 0 20px 4px rgba(255, 255, 255, 0.15); }
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: -0.05em;
    color: #fff;
}

.hero-title-line {
    display: block;
    overflow: hidden;
}

.hero-title-line1 {
    animation: heroTitleLine1 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-title-line2 {
    color: #fef08a;
    text-shadow: 0 2px 20px rgba(254, 240, 138, 0.3);
    opacity: 0;
    transform: translateY(24px);
    animation: heroTitleLine2 1s cubic-bezier(0.22, 1, 0.36, 1) 0.35s forwards,
               heroTitleLine2Glow 3s ease-in-out 1.5s infinite;
}

@keyframes heroTitleLine1 {
    0% {
        opacity: 0;
        transform: translateY(28px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroTitleLine2 {
    0% {
        opacity: 0;
        transform: translateY(24px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroTitleLine2Glow {
    0%, 100% {
        text-shadow: 0 2px 20px rgba(254, 240, 138, 0.3);
    }
    50% {
        text-shadow: 0 2px 28px rgba(254, 240, 138, 0.5), 0 0 40px rgba(254, 240, 138, 0.15);
    }
}

.hero-title .text-primary {
    color: #fef08a !important;
    text-shadow: 0 2px 20px rgba(254, 240, 138, 0.3);
}

.hero-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 480px;
    animation: heroSubtitleFade 1.2s ease-out 0.2s both;
}

@keyframes heroSubtitleFade {
    0% { opacity: 0; transform: translateY(15px); }
    100% { opacity: 1; transform: translateY(0); }
}

.hero-cta-wrap {
    animation: heroCtaFade 1.2s ease-out 0.4s both;
}

@keyframes heroCtaFade {
    0% { opacity: 0; transform: translateY(15px); }
    100% { opacity: 1; transform: translateY(0); }
}

.btn-cta {
    font-weight: 600;
    padding: 0.875rem 2rem;
    border-radius: 12px;
    border: none;
    background: var(--yc-accent) !important;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.4);
    transition: transform var(--yc-transition), box-shadow var(--yc-transition);
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.5);
    background: var(--yc-accent-hover) !important;
}

.btn-cta {
    animation: heroCtaGlow 3s ease-in-out infinite;
}

@keyframes heroCtaGlow {
    0%, 100% { box-shadow: 0 4px 14px rgba(5, 150, 105, 0.4); }
    50% { box-shadow: 0 4px 24px rgba(5, 150, 105, 0.5); }
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: #fff !important;
    color: #fff !important;
}

/* Hero 비주얼 카드 */
.hero-visual {
    position: relative;
    height: 320px;
}

.hero-card-stack {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-card {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 0.75rem 1rem;
    box-shadow: var(--yc-shadow-xl);
    color: var(--yc-primary);
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.2;
    white-space: nowrap;
    transition: transform var(--yc-transition-slow);
}

.hero-card i {
    font-size: 1.5rem;
}

.hero-card-1 {
    top: 10%;
    right: 5%;
    width: 160px;
    height: 88px;
    transform: rotate(-5deg);
}

.hero-card-2 {
    top: 45%;
    left: 10%;
    width: 130px;
    height: 88px;
    transform: rotate(3deg);
}

.hero-card-3 {
    bottom: 5%;
    right: 15%;
    width: 120px;
    height: 88px;
    transform: rotate(-3deg);
}

.hero-card-stack:hover .hero-card-1 { transform: rotate(-8deg) translateY(-8px) scale(1.03); }
.hero-card-stack:hover .hero-card-2 { transform: rotate(5deg) translateY(-8px) scale(1.03); }
.hero-card-stack:hover .hero-card-3 { transform: rotate(-5deg) translateY(-8px) scale(1.03); }

/* Hero 카드 플로팅 애니메이션 */
.hero-card-1.hero-card-float { animation: heroCardFloat1 4s ease-in-out infinite 0s; }
.hero-card-2.hero-card-float { animation: heroCardFloat2 4s ease-in-out infinite 0.7s; }
.hero-card-3.hero-card-float { animation: heroCardFloat3 4s ease-in-out infinite 1.4s; }

@keyframes heroCardFloat1 {
    0%, 100% { transform: rotate(-5deg) translateY(0); }
    50% { transform: rotate(-5deg) translateY(-12px); }
}

@keyframes heroCardFloat2 {
    0%, 100% { transform: rotate(3deg) translateY(0); }
    50% { transform: rotate(3deg) translateY(-12px); }
}

@keyframes heroCardFloat3 {
    0%, 100% { transform: rotate(-3deg) translateY(0); }
    50% { transform: rotate(-3deg) translateY(-12px); }
}

/* Hero 플로팅 도형 배경 */
.hero-float-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    animation: heroShapeFloat 12s ease-in-out infinite;
}

.hero-shape-1 { width: 60px; height: 60px; top: 15%; right: 20%; animation-delay: 0s; }
.hero-shape-2 { width: 40px; height: 40px; top: 60%; left: 15%; animation-delay: 2s; }
.hero-shape-3 { width: 30px; height: 30px; bottom: 25%; right: 25%; animation-delay: 4s; }
.hero-shape-4 { width: 50px; height: 50px; top: 35%; left: 25%; animation-delay: 1s; }
.hero-shape-5 { width: 25px; height: 25px; bottom: 40%; right: 40%; animation-delay: 3s; }

@keyframes heroShapeFloat {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.6; }
    25% { transform: translate(10px, -15px) scale(1.1); opacity: 0.9; }
    50% { transform: translate(-5px, 10px) scale(0.95); opacity: 0.7; }
    75% { transform: translate(-10px, -5px) scale(1.05); opacity: 0.8; }
}

/* 스크롤 인디케이터 */
/* 모바일 Hero 카드 */
.hero-cards-mobile {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-card-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-radius: 14px;
    padding: 1rem 1.25rem;
    box-shadow: var(--yc-shadow-lg);
    color: var(--yc-primary);
    font-weight: 600;
    font-size: 0.9rem;
    animation: heroCardMobileFloat 3s ease-in-out infinite;
}

.hero-card-mobile:nth-child(1) { animation-delay: 0s; }
.hero-card-mobile:nth-child(2) { animation-delay: 0.5s; }
.hero-card-mobile:nth-child(3) { animation-delay: 1s; }

.hero-card-mobile i {
    font-size: 1.5rem;
}

@keyframes heroCardMobileFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* ========== 섹션 공통 ========== */
.section {
    padding: 5rem 0;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--yc-gray-900);
    margin-bottom: 0.75rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--yc-gray-600);
    max-width: 560px;
}

/* ========== 강점 카드 ========== */
.features {
    background: var(--yc-section-alt);
}

.feature-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    border: 1px solid var(--yc-gray-200);
    transition: transform var(--yc-transition), box-shadow var(--yc-transition), border-color var(--yc-transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--yc-shadow-lg);
    border-color: var(--yc-primary-100);
}

.feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--yc-primary-50);
    color: var(--yc-primary);
    border-radius: 14px;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.feature-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--yc-gray-900);
    margin-bottom: 0.5rem;
}

.feature-desc {
    font-size: 0.95rem;
    color: var(--yc-gray-600);
    line-height: 1.6;
    margin: 0;
}

/* ========== 요금 카드 ========== */
.pricing-card {
    background: #fff;
    border-radius: 20px;
    padding: 2.5rem;
    height: 100%;
    border: 1px solid var(--yc-gray-200);
    position: relative;
    transition: transform var(--yc-transition), box-shadow var(--yc-transition);
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--yc-shadow-xl);
}

.pricing-card-highlight {
    border: 2px solid var(--yc-primary);
    box-shadow: 0 0 0 1px var(--yc-primary-100), var(--yc-shadow-lg);
}

.pricing-card-highlight:hover {
    box-shadow: 0 0 0 1px var(--yc-primary-100), 0 25px 50px -12px rgba(79, 70, 229, 0.25);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--yc-primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 1rem;
    border-radius: 50px;
    letter-spacing: 0.02em;
}

.pricing-header {
    text-align: center;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--yc-gray-200);
}

.pricing-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--yc-gray-900);
    margin-bottom: 0.25rem;
}

.pricing-period {
    font-size: 0.9rem;
    color: var(--yc-gray-600);
    margin-bottom: 0.5rem;
}

.pricing-amount {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--yc-primary);
    letter-spacing: -0.02em;
}

.pricing-amount .unit {
    font-size: 1rem;
    font-weight: 600;
    color: var(--yc-gray-600);
}

.pricing-vat {
    font-size: 0.8rem;
    color: var(--yc-gray-500);
    margin-top: 0.25rem;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    font-size: 0.95rem;
    color: var(--yc-gray-700);
}

.pricing-features li i {
    color: var(--yc-accent);
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* ========== 사용 신청 폼 ========== */
.apply {
    background: var(--yc-section-alt);
}

.apply-form {
    background: #fff;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--yc-shadow);
    border: 1px solid var(--yc-gray-200);
}

.apply-form .form-label {
    font-weight: 600;
    color: var(--yc-gray-700);
}

.apply-form .form-control,
.apply-form .form-select {
    border-radius: 10px;
    line-height: 2.5 !important;
}

.apply-form .form-control:focus,
.apply-form .form-select:focus {
    border-color: var(--yc-primary);
    box-shadow: 0 0 0 3px var(--yc-primary-100);
}

.apply-form .form-control::placeholder {
    color: #9ca3af;
}

/* ========== FAQ ========== */
.faq {
    background: #fff;
}

.faq .accordion-item {
    border: 1px solid var(--yc-gray-200);
    border-radius: 12px !important;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.faq .accordion-item:not(:last-child) {
    margin-bottom: 0.75rem;
}

.faq .accordion-button {
    font-weight: 600;
    font-size: 1rem;
    color: var(--yc-gray-900);
    background: #fff !important;
    padding: 1.25rem 1.5rem;
    border: none;
    box-shadow: none !important;
}

.faq .accordion-button:not(.collapsed) {
    color: var(--yc-primary);
}

.faq .accordion-button::after {
    flex-shrink: 0;
}

.faq .accordion-body {
    padding: 0 1.5rem 1.25rem;
    color: var(--yc-gray-600);
    line-height: 1.7;
}

/* ========== 문의하기 ========== */
.contact {
    background: var(--yc-section-alt);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--yc-gray-800);
    text-decoration: none;
    padding: 0.75rem 1rem;
    background: var(--yc-gray-50);
    border-radius: 12px;
    transition: background var(--yc-transition), color var(--yc-transition);
}

.contact-item:hover {
    background: var(--yc-primary-50);
    color: var(--yc-primary);
}

.contact-item i {
    font-size: 1.25rem;
    color: var(--yc-primary);
}

.contact-form .form-control,
.contact-form .form-select {
    border-radius: 10px;
    line-height: 2.5 !important;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--yc-primary);
    box-shadow: 0 0 0 3px var(--yc-primary-100);
}

.contact-form .form-control::placeholder {
    color: #9ca3af;
}

/* ========== 푸터 ========== */
.footer {
    background: var(--yc-gray-900);
    color: rgba(255, 255, 255, 0.8);
}

.footer-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.footer-brand:hover {
    color: var(--yc-primary-light);
}

.footer-tagline {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-left: 1.5rem;
    font-size: 0.9rem;
}

.footer-link:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ========== 스크롤 애니메이션 (fade-in) ========== */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========== 반응형 ========== */
@media (max-width: 991.98px) {
    .section {
        padding: 3.5rem 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .btn-cta, .btn-outline-light {
        width: 100%;
        justify-content: center;
    }

    .hero-cards-mobile {
        margin-top: 2rem !important;
    }

    .pricing-card {
        margin-bottom: 1rem;
    }

    /* 강점 카드: 모바일에서 아이콘+타이틀 1행 가로 배치 */
    .feature-card {
        display: flex;
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .feature-icon {
        width: 1.75rem;
        height: 1.75rem;
        min-width: 1.75rem;
        min-height: 1.75rem;
        font-size: 1.25rem;
        margin-bottom: 0;
        margin-right: 0.75rem;
        border-radius: 8px;
    }

    .feature-title {
        flex: 1;
        min-width: 0;
        margin-bottom: 0;
        font-size: 1.125rem;
        line-height: 1.4;
        padding-top: 0.1rem;
    }

    .feature-desc {
        width: 100%;
        margin-top: 0.5rem;
    }
}

@media (max-width: 575.98px) {
    .apply-form {
        padding: 1.5rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .pricing-card {
        padding: 1.75rem;
    }
}
