/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Paperlogy Font - 눈누 웹폰트 사용 */
/* 페이퍼로지 폰트는 로컬 파일로 사용해야 합니다 */
/* 폰트 파일을 fonts 폴더에 추가하시거나, 아래 주석을 해제하여 사용하세요 */
/*
@font-face {
    font-family: 'Paperlogy';
    src: url('./fonts/Paperlogy-Regular.woff2') format('woff2'),
         url('./fonts/Paperlogy-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Paperlogy';
    src: url('./fonts/Paperlogy-Bold.woff2') format('woff2'),
         url('./fonts/Paperlogy-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
*/

/* 임시로 Noto Sans KR을 사용 (페이퍼로지 폰트 파일 추가 시 위 주석 해제) */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;700&display=swap');

body {
    font-family: 'Noto Sans KR', 'Gmarket Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1200px;
}

/* Header */
.header {
    background: white;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.header .container {
    padding-top: 8px;
    padding-bottom: 8px;
}

/* Logo */
.logo-link {
    display: inline-block;
    text-decoration: none;
    transition: opacity 0.3s;
}

.logo-link:hover {
    opacity: 0.8;
}

.header-logo {
    height: 60px;
    width: auto;
    display: block;
}

/* Desktop Navigation */
.desktop-nav {
    display: flex;
    gap: 28px;
    align-items: center;
}

.nav-link {
    font-family: 'Noto Sans KR', 'Gmarket Sans', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
    padding: 10px 0;
    letter-spacing: -0.3px;
}

.nav-link:hover {
    color: #2563eb;
    transform: translateY(-1px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: #2563eb;
    transition: width 0.3s;
    border-radius: 2px;
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: #374151;
    padding: 8px;
}

.mobile-menu-btn svg {
    display: block;
}

/* Mobile Sidebar */
.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.mobile-sidebar.active {
    right: 0;
}

.mobile-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.mobile-sidebar-header .header-logo {
    height: 70px;
    width: auto;
}

.mobile-sidebar-close {
    background: none;
    border: none;
    cursor: pointer;
    color: #374151;
    padding: 4px;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    padding: 20px 0;
}

.mobile-nav-link {
    font-family: 'Noto Sans KR', 'Gmarket Sans', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    text-decoration: none;
    padding: 18px 20px;
    transition: all 0.3s;
    border-left: 3px solid transparent;
    letter-spacing: -0.3px;
}

.mobile-nav-link:hover {
    background: #f3f4f6;
    color: #2563eb;
    border-left-color: #2563eb;
    padding-left: 24px;
}

.mobile-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.mobile-sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Hero Section */
.hero-section {
    padding: 0;
    position: relative;
    width: 100%;
}

.hero-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
}

@media (max-width: 768px) {
    .hero-container {
        padding: 0 16px;
    }
}

/* 히어로 CTA 버튼 */
.hero-cta-wrapper {
    position: absolute;
    top: 32%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    margin-top: -100px;
}

.hero-cta-button-link {
    display: inline-block;
    text-decoration: none;
}

.hero-cta-button {
    background: linear-gradient(135deg, #60a5fa 0%, #2563eb 50%, #1e40af 100%);
    background-size: 200% 200%;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 24px 56px;
    font-family: 'Noto Sans KR', 'Gmarket Sans', sans-serif;
    font-weight: 700;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
    transition: all 0.3s;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    animation: floatButton 3s ease-in-out infinite, gradientMove 5s ease infinite;
}

@keyframes floatButton {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.hero-cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 50%, #1e3a8a 100%);
    background-size: 200% 200%;
    opacity: 0;
    transition: opacity 0.3s;
    border-radius: 50px;
    animation: gradientMove 5s ease infinite;
}

.hero-cta-button:hover {
    transform: translateY(-13px);
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.5);
    animation-play-state: paused;
}

.hero-cta-button:hover::before {
    opacity: 1;
}

.hero-cta-button span {
    position: relative;
    z-index: 1;
}

.hero-section img,
.icon-grid-section img,
.footer-text-section img {
    width: 100%;
    height: auto;
}

/* Desktop images - show by default, hide on mobile */
.hero-img-desktop,
.icon-img-desktop,
.footer-img-desktop {
    display: block !important;
}

/* Mobile images - hide by default, show only on mobile */
.hero-img-mobile,
.icon-img-mobile,
.footer-img-mobile {
    display: none !important;
}

/* Mobile styles - 768px 기준 */
@media (max-width: 768px) {
    /* Hide desktop images on mobile */
    .hero-img-desktop,
    .icon-img-desktop,
    .footer-img-desktop {
        display: none !important;
    }
    
    /* Show mobile images on mobile */
    .hero-img-mobile,
    .icon-img-mobile,
    .footer-img-mobile {
        display: block !important;
    }
}

.cta-button {
    background: #2563eb;
    color: white;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.cta-button:hover {
    background: #1d4ed8;
}

/* Icon Grid Section */
.icon-grid-section {
    padding: 0;
    background: #2563eb;
}

.icon-grid-section .container {
    background: #2563eb;
}

/* Footer Text Section */
.footer-text-section {
    padding: 0;
    background: #2563eb;
}

.footer-text-section .container {
    background: #2563eb;
}

/* Loan Management Section */
.loan-management-section {
    background: white;
    padding: 80px 0;
}

.category-tag {
    display: inline-block;
    background: #e0e7ff;
    color: #4f46e5;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 16px;
}

.main-title {
    font-family: 'Noto Sans KR', 'Gmarket Sans', sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.4;
    margin-bottom: 16px;
}

.subtitle {
    font-family: 'Noto Sans KR', 'Gmarket Sans', sans-serif;
    font-size: 18px;
    color: #6b7280;
    line-height: 1.6;
}

.calculator-image-area {
    margin-top: 32px;
    min-height: 300px;
    background: #f3f4f6;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
}

/* Mobile App Card */
.mobile-app-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.phone-mockup {
    background: #f9fafb;
    border-radius: 12px;
    padding: 16px;
    border: 2px solid #e5e7eb;
}

.phone-header {
    background: #3b82f6;
    color: white;
    padding: 12px;
    border-radius: 8px 8px 0 0;
    text-align: center;
    font-weight: 600;
    margin: -16px -16px 16px -16px;
}

.phone-content {
    text-align: center;
}

.notification-icon {
    width: 64px;
    height: 64px;
    background: #3b82f6;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: white;
    font-size: 32px;
}

.notification-text {
    color: #374151;
    margin-bottom: 24px;
    font-size: 14px;
}

.phone-action {
    background: white;
    padding: 16px;
    border-radius: 8px;
}

.phone-action p {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 8px;
}

.phone-button {
    width: 100%;
    background: #3b82f6;
    color: white;
    padding: 12px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
}

/* Loan Features Card */
.loan-features-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.features-title {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
}

.features-description {
    margin-top: 16px;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.6;
}

/* Loan Types & Process Section */
.loan-types-process-section {
    padding: 80px 0;
}

/* Loan Types Section - 흰색 배경 */
.loan-types-section {
    background: white;
    padding: 80px 0;
}

/* Loan Process Section - 파란색 배경 */
.loan-process-section {
    background: #2563eb;
    padding: 80px 0;
}

.section-title {
    font-family: 'Noto Sans KR', 'Gmarket Sans', sans-serif;
    font-size: 48px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 48px;
    letter-spacing: -0.5px;
}

.loan-types-section .section-title {
    color: #1f2937;
}

.loan-process-section .section-title {
    color: white;
}

/* Loan Type Cards */
.loan-type-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.loan-type-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.loan-icon {
    width: 100px;
    height: 100px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.loan-icon:hover {
    transform: scale(1.1);
}

.icon-symbol {
    font-size: 56px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.loan-type-title {
    font-family: 'Noto Sans KR', 'Gmarket Sans', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}


.detail-item {
    display: flex;
    margin-bottom: 16px;
    align-items: flex-start;
}

.detail-bar {
    width: 4px;
    height: 100%;
    background: #3b82f6;
    margin-right: 12px;
    flex-shrink: 0;
}

.detail-item div {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-family: 'Noto Sans KR', 'Gmarket Sans', sans-serif;
    font-size: 16px;
    color: #6b7280;
    margin-bottom: 6px;
    font-weight: 500;
}

.detail-value {
    font-family: 'Noto Sans KR', 'Gmarket Sans', sans-serif;
    font-size: 18px;
    color: #1f2937;
    font-weight: 700;
    line-height: 1.5;
}

/* Process Steps */
.process-steps {
    display: flex;
    align-items: stretch;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 24px;
}

.process-step {
    background: white;
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 400px;
}

.process-icon {
    width: 100px;
    height: 100px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.process-icon:hover {
    transform: scale(1.1);
}

.process-icon .icon-symbol {
    font-size: 56px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.process-number {
    font-family: 'Noto Sans KR', 'Gmarket Sans', sans-serif;
    font-size: 16px;
    color: #6b7280;
    margin-bottom: 8px;
    font-weight: 500;
}

.process-title {
    font-family: 'Noto Sans KR', 'Gmarket Sans', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.process-description {
    font-family: 'Noto Sans KR', 'Gmarket Sans', sans-serif;
    font-size: 16px;
    color: #4b5563;
    line-height: 1.7;
    font-weight: 500;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.process-arrow {
    font-size: 24px;
    color: #9ca3af;
    font-weight: bold;
}

.loan-process-section .process-arrow {
    color: rgba(255, 255, 255, 0.8);
}

/* Loan Form Section */
.loan-form-section {
    background: #2563eb;
    padding: 80px 0;
}

.info-section {
    background: #374151;
    padding: 60px 0;
}

.info-title {
    font-size: 20px;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
}

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

.form-section {
    background: white;
    padding: 60px 40px;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    max-width: 900px;
    margin: 0 auto;
}

.form-title {
    font-family: 'Noto Sans KR', 'Gmarket Sans', sans-serif;
    font-size: 42px;
    font-weight: 700;
    text-align: center;
    color: #2563eb;
    margin-bottom: 40px;
    letter-spacing: -0.5px;
    white-space: nowrap;
}


.form-container {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    max-width: 800px;
    margin: 0 auto 24px;
}

.form-inputs {
    display: flex;
    gap: 16px;
    flex: 1;
}

.input-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.input-group label {
    font-family: 'Noto Sans KR', 'Gmarket Sans', sans-serif;
    font-size: 16px;
    color: #374151;
    margin-bottom: 10px;
    font-weight: 700;
}

.form-input {
    padding: 16px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-family: 'Noto Sans KR', 'Gmarket Sans', sans-serif;
    font-size: 18px;
    transition: all 0.3s;
    background: #f9fafb;
}

.form-input:focus {
    outline: none;
    border-color: #3b82f6;
    background: white;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.form-submit-button {
    background: linear-gradient(135deg, #2563eb 0%, #1e3a8a 100%);
    color: white;
    padding: 16px 40px;
    border-radius: 12px;
    font-family: 'Noto Sans KR', 'Gmarket Sans', sans-serif;
    font-size: 18px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.form-submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
}

.form-checkbox {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: 'Noto Sans KR', 'Gmarket Sans', sans-serif;
    font-size: 16px;
    color: #374151;
    margin-top: 24px;
}

.form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .header-logo {
        height: 70px;
    }

    .icon-grid {
        grid-template-columns: repeat(4, 1fr);
    }

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

    .form-container {
        flex-direction: column;
        gap: 16px;
        width: 100%;
        max-width: 100%;
        margin: 0 auto 24px;
        padding: 0;
    }

    .form-inputs {
        flex-direction: column;
        gap: 16px;
        width: 100%;
    }

    .input-group {
        width: 100%;
    }

    .form-input {
        width: 100%;
        padding: 14px 16px;
        font-size: 16px;
    }

    .form-submit-button {
        width: 100%;
        padding: 16px 24px;
        font-size: 16px;
    }

    .process-steps {
        flex-wrap: wrap;
        flex-direction: column;
        align-items: center;
    }

    .process-step {
        width: 100%;
        max-width: 100%;
        min-width: auto;
        min-height: auto;
        flex: none;
    }

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

    .hero-cta-wrapper {
        margin-top: -10px;
    }

    .hero-cta-button {
        padding: 20px 40px;
        font-size: 20px;
    }


    .section-title {
        font-size: 36px;
        padding: 0 16px;
    }

    .loan-type-title {
        font-size: 26px;
    }

    .process-title {
        font-size: 22px;
    }

    .form-title {
        font-size: 24px;
        white-space: normal;
        padding: 0 16px;
        word-break: keep-all;
        line-height: 1.4;
    }

    .form-section {
        padding: 30px 16px;
        margin: 0 auto;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }

    .loan-form-section {
        padding: 40px 0;
    }

    .loan-form-section .container {
        padding-left: 0;
        padding-right: 0;
        max-width: 100%;
    }

    .form-checkbox {
        padding: 0 16px;
        font-size: 14px;
        flex-wrap: wrap;
        text-align: center;
    }

    .info-section {
        padding: 40px 16px;
    }

    .info-section .container {
        padding-left: 0;
        padding-right: 0;
    }

    .info-section .grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .info-title {
        font-size: 18px;
    }

    .info-content {
        font-size: 13px;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .form-title {
        font-size: 20px;
        padding: 0 12px;
    }

    .form-section {
        padding: 24px 12px;
    }

    .form-input {
        padding: 12px 14px;
        font-size: 15px;
    }

    .form-submit-button {
        padding: 14px 20px;
        font-size: 15px;
    }

    .form-checkbox {
        padding: 0 12px;
        font-size: 13px;
    }

    .section-title {
        font-size: 28px;
        padding: 0 12px;
    }

    .loan-type-title {
        font-size: 22px;
    }

    .process-title {
        font-size: 20px;
    }

    .info-section {
        padding: 30px 12px;
    }

    .info-title {
        font-size: 16px;
    }

    .info-content {
        font-size: 12px;
    }

    .hero-cta-button {
        padding: 18px 32px;
        font-size: 18px;
    }

}

