/* ===================================
   전역 스타일 및 리셋
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 색상 변수 */
    --primary-color: #2563eb;
    --secondary-color: #FEE500;
    --urgent-color: #ef4444;
    --advance-color: #10b981;
    --dark-bg: #1e293b;
    --light-bg: #f8fafc;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    
    /* 간격 */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    
    /* 그림자 */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.2);
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: #ffffff;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ===================================
   ① HERO 영역
   =================================== */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: var(--spacing-2xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" opacity=".25" fill="%23ffffff"/><path d="M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z" opacity=".5" fill="%23ffffff"/><path d="M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z" fill="%23ffffff"/></svg>') no-repeat center bottom;
    background-size: cover;
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
}

.hero-title .highlight {
    color: #FEE500;
    text-decoration: underline;
    text-decoration-thickness: 3px;
    text-underline-offset: 5px;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xl);
    opacity: 0.95;
    font-weight: 300;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    max-width: 500px;
    margin: 0 auto var(--spacing-xl);
}

.cta-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md) var(--spacing-lg);
    border: none;
    border-radius: 12px;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.cta-button i {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xs);
}

.cta-button span {
    display: block;
}

.cta-button small {
    font-size: 0.875rem;
    font-weight: 400;
    margin-top: var(--spacing-xs);
    opacity: 0.85;
}

.cta-primary {
    background: #ef4444;
    color: white;
}

.cta-primary:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.cta-secondary {
    background: #FEE500;
    color: #3c1e1e;
}

.cta-secondary:hover {
    background: #ffd700;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
}

.badge {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 0.95rem;
    opacity: 0.9;
}

.badge i {
    font-size: 1.25rem;
}

/* ===================================
   이유 섹션
   =================================== */
.reason-section {
    padding: var(--spacing-2xl) 0;
    background: var(--light-bg);
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: var(--spacing-xl);
    color: var(--text-primary);
}

.reason-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.reason-card {
    background: white;
    padding: var(--spacing-lg);
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.reason-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.reason-card .icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.reason-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.reason-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* ===================================
   ② 중간 섹션 (선택 기준)
   =================================== */
.criteria-section {
    padding: var(--spacing-2xl) 0;
}

.criteria-list {
    max-width: 800px;
    margin: 0 auto var(--spacing-xl);
}

.criteria-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    background: var(--light-bg);
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
    transition: transform 0.3s ease;
}

.criteria-item:hover {
    transform: translateX(5px);
}

.criteria-item .number {
    background: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.criteria-item .content h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    color: var(--text-primary);
}

.criteria-item .content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.criteria-cta {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

.cta-phone {
    background: var(--primary-color);
    color: white;
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 1.125rem;
}

.cta-phone:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.cta-kakao {
    background: var(--secondary-color);
    color: #3c1e1e;
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 1.125rem;
}

.cta-kakao:hover {
    background: #ffd700;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ===================================
   ③ 분기 섹션 (사전형/급박형)
   =================================== */
.branch-section {
    padding: var(--spacing-2xl) 0;
    background: var(--light-bg);
}

.branch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
    max-width: 900px;
    margin: 0 auto;
}

.branch-card {
    background: white;
    border-radius: 15px;
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.branch-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.branch-card .card-header {
    margin-bottom: var(--spacing-lg);
}

.badge-tag {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

.badge-tag.green {
    background: #d1fae5;
    color: #065f46;
}

.badge-tag.red {
    background: #fee2e2;
    color: #991b1b;
}

.branch-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

.feature-list {
    list-style: none;
    margin-bottom: var(--spacing-lg);
}

.feature-list li {
    padding: var(--spacing-sm) 0;
    padding-left: var(--spacing-lg);
    position: relative;
    color: var(--text-secondary);
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--advance-color);
    font-weight: 700;
    font-size: 1.25rem;
}

.branch-card.urgent .feature-list li::before {
    color: var(--urgent-color);
}

.cta-advance {
    background: var(--advance-color);
    color: white;
    width: 100%;
    padding: var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
}

.cta-advance:hover {
    background: #059669;
}

.cta-urgent {
    background: var(--urgent-color);
    color: white;
    width: 100%;
    padding: var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
}

.cta-urgent:hover {
    background: #dc2626;
}

/* ===================================
   상담 프로세스
   =================================== */
.process-section {
    padding: var(--spacing-2xl) 0;
}

.process-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
}

.step {
    text-align: center;
    max-width: 150px;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto var(--spacing-md);
}

.step h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    color: var(--text-primary);
}

.step p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.step-arrow {
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: 700;
}

.process-note {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.95rem;
    background: var(--light-bg);
    padding: var(--spacing-md);
    border-radius: 8px;
    max-width: 600px;
    margin: 0 auto;
}

.process-note i {
    color: var(--primary-color);
    margin-right: var(--spacing-xs);
}

/* ===================================
   ④ 하단 메인 CTA
   =================================== */
.final-cta-section {
    padding: var(--spacing-2xl) 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.final-cta-box {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.final-cta-box h2 {
    font-size: 2.25rem;
    font-weight: 900;
    margin-bottom: var(--spacing-sm);
}

.final-cta-box .subtitle {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xl);
    opacity: 0.9;
}

.final-cta-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
}

.cta-large-primary {
    background: #ef4444;
    color: white;
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 1.25rem;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    border-radius: 12px;
}

.cta-large-primary:hover {
    background: #dc2626;
    transform: scale(1.05);
}

.cta-large-secondary {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid white;
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 1.25rem;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    border-radius: 12px;
}

.cta-large-secondary:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.05);
}

.privacy-note {
    font-size: 0.875rem;
    opacity: 0.9;
}

.privacy-note i {
    margin-right: var(--spacing-xs);
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: var(--dark-bg);
    color: white;
    padding: var(--spacing-xl) 0;
    text-align: center;
}

.footer-text {
    font-size: 0.95rem;
    margin-bottom: var(--spacing-md);
    opacity: 0.8;
    line-height: 1.8;
}

.copyright {
    font-size: 0.875rem;
    opacity: 0.6;
}

/* ===================================
   📌 플로팅 버튼
   =================================== */
.floating-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    z-index: 1000;
}

.floating-btn {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    position: relative;
}

.floating-btn i {
    font-size: 1.5rem;
}

.floating-btn .btn-label {
    font-size: 0.7rem;
    font-weight: 600;
    margin-top: 3px;
}

.floating-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-xl);
}

/* 툴팁 */
.floating-btn::before {
    content: attr(data-tooltip);
    position: absolute;
    right: 80px;
    background: rgba(0,0,0,0.85);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.floating-btn::after {
    content: '';
    position: absolute;
    right: 70px;
    border: 6px solid transparent;
    border-left-color: rgba(0,0,0,0.85);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.floating-btn:hover::before,
.floating-btn:hover::after {
    opacity: 1;
}

.phone-btn {
    background: #ef4444;
    color: white;
}

.phone-btn:hover {
    background: #dc2626;
}

.kakao-btn {
    background: #FEE500;
    color: #3c1e1e;
}

.kakao-btn:hover {
    background: #ffd700;
}

.form-btn {
    background: #6366f1;
    color: white;
}

.form-btn:hover {
    background: #4f46e5;
}

/* ===================================
   반응형 (모바일)
   =================================== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .reason-grid {
        grid-template-columns: 1fr;
    }

    .branch-grid {
        grid-template-columns: 1fr;
    }

    .process-steps {
        flex-direction: column;
    }

    .step-arrow {
        transform: rotate(90deg);
    }

    .final-cta-box h2 {
        font-size: 1.5rem;
    }

    .final-cta-box .subtitle {
        font-size: 1rem;
    }

    .final-cta-buttons {
        flex-direction: column;
    }

    .floating-buttons {
        bottom: 15px;
        right: 15px;
        gap: 10px;
    }

    .floating-btn {
        width: 60px;
        height: 60px;
    }

    .floating-btn i {
        font-size: 1.25rem;
    }

    .floating-btn .btn-label {
        font-size: 0.65rem;
    }

    /* 모바일에서는 툴팁 숨김 */
    .floating-btn::before,
    .floating-btn::after {
        display: none;
    }

    .criteria-cta {
        flex-direction: column;
    }

    .cta-phone,
    .cta-kakao {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: var(--spacing-xl) 0;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .reason-card .icon {
        font-size: 2.5rem;
    }

    .floating-btn {
        width: 55px;
        height: 55px;
    }
}
