/* ========================================
   Container
   ======================================== */
   .container {
    margin: 0 auto;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    background: #1a1a1a;
    width: 100%;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    position: relative;
    overflow: hidden;
}
/* 배경 레이어: 로딩 시 main-back-1, 호버 시 교체 + 살짝 줌인 */
/* init: 4초 동안 1 → 1.04 줌인 후 hero-ready로 고정. 호버 시 1.06으로 추가 줌인 */
@keyframes hero-bg-zoom-in {
    from { transform: scale(1); }
    to   { transform: scale(1.04); }
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: url(../../assest/main-back-1.png);
    background-size: cover;
    background-position: center;
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.6s ease-out, transform 4s ease-out;
    animation: hero-bg-zoom-in 4s ease-out forwards;
}
/* 초기 줌 종료 후 애니메이션 제거·1.04 고정 (호버 해제 시 재실행 방지) */
.hero.hero-ready::before {
    animation: none;
    transform: scale(1.04);
}
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: url(../../assest/main-back-2.png);
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1);
    transition: opacity 0.6s ease-out, transform 4s ease-out;
    pointer-events: none;
}
.hero:has(#hero-content-item-1:hover)::before {
    animation-name: none;
    transform: scale(1.06);
}
.hero:has(#hero-content-item-1:hover)::after {
    opacity: 0;
}
.hero:has(#hero-content-item-2:hover)::before {
    opacity: 0;
}
.hero:has(#hero-content-item-2:hover)::after {
    opacity: 1;
    transform: scale(1.06);
}
.hero-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 50px;
}

.hero-title {
    font-size: 34px;
    font-weight: var(--font-weight-normal);
    color: var(--text-white);
    text-align: center;
    padding: 0 40px;
}

.hero-content {
    display: flex;
    gap: 24px;
}

.hero-content-item {
    background-color: #ffffff;
    width: 320px;
    height: 160px;
    display: flex;
    gap: 16px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    cursor: pointer;
    position: relative;
}

/* 좌상단에서 시계방향 한 바퀴 도는 테두리 (2초) - SVG로 꼭지점·좌우 정확히 표시 */
.hero-content-item-border {
    position: absolute;
    left: -4px;
    top: -4px;
    width: calc(100% + 8px);
    height: calc(100% + 8px);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
}
.hero-content-item:hover .btn-primary {
    background-color: var(--primary-blue);
    box-shadow: var(--shadow-lg);
    color: #ffffff;
    transform: translateY(-2px);
}
.hero-content-item:hover .hero-content-item-border {
    opacity: 1;
}

.hero-border-path {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    transition: stroke-dashoffset .7s ease-in-out;
}

.hero-content-item:hover .hero-border-path {
    stroke-dashoffset: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    white-space: nowrap;
    cursor: pointer;
}

.btn-primary {
    background-color: #ffffff;
    color: var(--primary-blue);
    box-shadow: var(--shadow-md);
    border: 2px solid #3D8BFF;
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.hreo-btn {
    width: 240px;
    max-width: 240px;
    height: 60px;
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 18px;
}

/* ========================================
   Bridge Section
   ======================================== */
.bridge {
    background: linear-gradient(43deg, white 0%, #D0E3FF 100%);
    width: 100%;
    min-height: 440px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    position: relative;
    overflow: hidden;
}
.bridge-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
    max-width: 880px;
    margin: 0 auto;
    padding: 20px 20px;
    gap: 130px;
}
.bridge-text {
    display: flex;
    text-align: left;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: var(--spacing-lg);
}
.bridge-title {
    font-size: 34px;
    font-weight: var(--font-weight-normal);
    color: var(--text-primary);
    margin: 0;
}
.bridge-description {
    font-size: 20px;
    font-weight: var(--font-weight-normal);
    color: var(--text-primary);
    margin: 0;
}
.bridge-btn {
    width: 240px;
    max-width: 240px;
    height: 60px;
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 18px;
    background-color: var(--primary-blue);
    color: var(--bg-white);
    box-shadow: var(--shadow-md);
}
.bridge-features {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    max-width: 395px;
}
.bridge-feature-card {
    width: 320px;
    height: 90px;
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    position: relative;
}
.bridge-feature-card:nth-child(1) {
    margin-right: auto;
    margin-left: -40px;
}
.bridge-feature-card:nth-child(2) {
    margin-left: auto;
    margin-right: -40px;
}
.bridge-feature-card:nth-child(3) {
    margin-right: auto;
    margin-left: -40px;
}
.bridge-feature-icon {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: var(--primary-blue);
    font-size: var(--font-size-2xl);
    position: relative;
    min-height: 40px;
}
.bridge-feature-icon .icon-1 {
    content: url(../assest/hero-1.svg);
}
.bridge-feature-icon .icon-2 {
    content: url(../assest/hero-2.svg);
}
.bridge-feature-icon .icon-3 {
    content: url(../assest/hero-3.svg);
}
.bridge-feature-text {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-bold);
    line-height: 1.5;
    color: var(--text-primary);
    margin: 0;
}
@media (max-width: 768px) {
    .bridge-content {
        flex-direction: column;
    }
}
@media (max-width: 1023px) {
    .bridge-title {
        text-align: center;
    }
    .bridge-features {
        max-width: 500px;
        margin: 0 auto;
    }
    .bridge-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }
    .bridge-feature-card {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    .bridge-feature-card {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    .bridge-feature-card {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}
/* ========================================
   How It Works Section
   ======================================== */
.how-it-works {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100vw;
    height: 330px;
    background-color: var(--bg-white);
    padding: var(--spacing-4xl) 0;
    background-image: url('/assest/how-it-works-back.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.how-it-works-title {
    display: inline-block;
    content: url(../..//assest/logo-white.png);
    margin: 0 auto 20px auto;
    padding: 0 40px;
}

.how-it-works-description {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-white);
    margin: 0;
    text-align: center;
    padding: 0 40px;
}


/* ========================================
   Privacy Modal
======================================== */
.privacy-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.privacy-modal.active {
    display: flex;
}

.privacy-modal .modal-content {
    position: relative;
    z-index: 2;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    width: 500px;
    max-height: 600px;
    display: flex;
    flex-direction: column;
    animation: modalSlideIn 0.3s ease-out;
}

.privacy-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid #e0e0e0;
    flex-shrink: 0;
}

.privacy-modal .modal-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: #000000;
    margin: 0;
}

.privacy-modal .modal-header .modal-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
}

.privacy-modal .modal-header .modal-close-btn:hover {
    color: #000;
}

.privacy-modal .modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.privacy-content {
    font-size: 14px;
    line-height: 1.8;
    color: #333;
}

.privacy-content p {
    margin-bottom: 20px;
}

.privacy-content strong {
    color: #000;
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
}

/* 스크롤바 숨기기 (스크롤 기능은 유지) */
.privacy-modal .modal-body {
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
}

.privacy-modal .modal-body::-webkit-scrollbar {
    display: none;
    width: 0;
}

.footer {
    border-top: 1px solid #E5E5E5;
    max-width: 100% !important;
}

.footer-content {
    max-width: 1440px !important;
    border-top: none !important;
    margin: 0 auto;
}

/* ========================================
   Footer
   ======================================== */

@media (max-width: 1023px) {
    :root {
        --container-padding: 1.5rem;
    }

    .hero {
        margin: 0;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }

    .hero-features {
        max-width: 500px;
        margin: 0 auto;
    }

    .hero-feature-card {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: var(--font-size-3xl);
    }

    .how-it-works-title {
        font-size: 28px;
    }

    .outro {
        flex-direction: column;
    }

}

@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
    }

    .hero-text {
        text-align: center;
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    .agent-banner {
        padding: 0 20px;
        gap: 20px;
    }

    .agent-banner-content h2 {
        display: none;
    }

    .agent-banner-content p {
        font-size: 16px;
    }
}

/* Small Mobile - 375px and below */
@media (max-width: 375px) {
    :root {
        --font-size-5xl: 2rem;
        --font-size-4xl: 1.75rem;
        --font-size-3xl: 1.5rem;
    }

}