/* ========================================
   INDEX.HTML MOBILE RESPONSIVE STYLES
   로그인/랜딩 페이지 모바일 최적화
======================================== */

@media (max-width: 768px) {
    /* ===== 헤더 ===== */
    .header {
        padding: 12px 0;
    }
    
    .header-content {
        flex-direction: column;
        gap: 12px;
    }
    
    .logo-img {
        height: 50px !important;
        width: auto !important;
        max-width: 200px !important; /* 모바일에서 최대 너비 증가 */
        object-fit: contain;
    }
    
    .nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    
    .nav a {
        font-size: 13px;
        padding: 8px 14px;
    }
    
    .btn-primary {
        padding: 8px 16px !important;
        font-size: 13px !important;
    }
    
    /* ===== Hero Section ===== */
    .hero {
        padding: 0;
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .hero-content {
        text-align: center;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        min-height: 100vh;
        width: 100%;
        padding: 80px 16px 140px;
    }
    
    .hero-badge {
        font-size: 14px;
        padding: 10px 22px;
        margin-bottom: 32px;
    }
    
    .hero-program {
        font-size: 14px;
        margin-bottom: 10px;
    }
    
    .hero-title {
        font-size: 40px !important;
        line-height: 1.25;
        margin-bottom: 32px;
        white-space: nowrap;
    }
    
    .hero-subtitle {
        font-size: 16px;
        line-height: 1.7;
        margin-bottom: 0;
    }
    
    .hero-cta {
        display: flex;
        flex-direction: column;
        gap: 14px;
        width: 100%;
        align-items: center;
        margin-top: auto;
    }
    
    .hero-cta {
        display: flex;
        flex-direction: column;
        gap: 12px;
        width: 100%;
        align-items: center;
    }
    
    .btn-hero {
        padding: 14px 32px;
        font-size: 15px;
        width: 100%;
        max-width: 280px;
    }
    
    .btn-hero-secondary {
        padding: 14px 32px;
        font-size: 15px;
        width: 100%;
        max-width: 280px;
    }
    
    /* ===== 로고 섹션 개선 ⭐ ===== */
    .hero-slogan {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 28px;    /* 고정 */
        padding: 0;          /* 패딩 제거 */
        background: transparent; /* 배경 제거 */
        border-radius: 0;    /* 둥근 모서리 제거 */
        backdrop-filter: none; /* 흐림 효과 제거 */
    }
    
    /* 중앙 단일 로고 */
    .slogan-logo-center {
        height: 100px !important; /* 200px → 100px (반으로 축소) */
        width: auto !important;
        max-width: 95%;
        object-fit: contain;
        filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
        transition: transform 0.3s ease;
    }
    
    .slogan-logo:active,
    .slogan-logo-center:active {
        transform: scale(0.96);
    }
    
    /* ===== Process Section ===== */
    .process {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 28px;
        margin-bottom: 8px;
    }
    
    .section-subtitle {
        font-size: 14px;
        margin-bottom: 32px;
    }
    
    /* 3x2 그리드로 변경 (6개 항목) ⭐ */
    .process-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 12px !important;
        padding: 0 12px;
    }
    
    .process-card {
        padding: 12px 10px !important;
        border-radius: 10px;
        min-height: 140px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    
    .process-number {
        font-size: 9px !important;
        padding: 3px 7px;
        margin-bottom: 6px;
    }
    
    .process-icon {
        font-size: 28px !important;
        margin-bottom: 6px;
        line-height: 1;
    }
    
    .process-title {
        font-size: 12px !important;
        margin-bottom: 4px;
        line-height: 1.2;
    }
    
    .process-desc {
        font-size: 10px !important;
        line-height: 1.3;
    }
    
    /* ===== Features Section ===== */
    .features {
        padding: 60px 0;
    }
    
    /* 3x2 그리드로 변경 (6개 항목) ⭐ */
    .features-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 12px !important;
        padding: 0 12px;
    }
    
    .feature-card {
        padding: 12px 10px !important;
        border-radius: 10px;
        min-height: 140px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    
    .feature-icon {
        font-size: 28px !important;
        margin-bottom: 6px;
        line-height: 1;
    }
    
    .feature-title {
        font-size: 12px !important;
        margin-bottom: 4px;
        line-height: 1.2;
    }
    
    .feature-desc {
        font-size: 10px !important;
        line-height: 1.3;
        text-align: center;
    }
    
    /* ===== CTA Section ===== */
    .cta {
        padding: 50px 0;
    }
    
    .cta-title {
        font-size: 24px !important;
        margin-bottom: 8px;
    }
    
    .cta-subtitle {
        font-size: 14px !important;
        margin-bottom: 20px;
    }
    
    .btn-cta {
        padding: 14px 32px;
        font-size: 15px;
    }
    
    /* ===== Footer ===== */
    .footer {
        padding: 40px 0 20px 0;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
    
    .footer-logo-img {
        height: 32px;
    }
    
    .footer-info {
        font-size: 12px;
        line-height: 1.6;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 12px;
    }
    
    .footer-links a {
        font-size: 13px;
    }
    
    /* ===== Container ===== */
    .container {
        padding: 0 16px !important;
    }
}

/* ===== 작은 모바일 (< 375px) ===== */
@media (max-width: 374px) {
    .logo-img {
        height: 42px !important;
        max-width: 170px !important;
    }
    
    .hero-title {
        font-size: 28px !important;
    }
    
    /* 2x3 그리드로 변경 (더 작은 화면) */
    .process-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    /* 핵심기능도 2x3 그리드 */
    .features-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .slogan-logo-center {
        height: 70px !important; /* 140px → 70px (반으로 축소) */
        max-width: 95%;
    }
    
    .cta-title {
        font-size: 20px !important;
    }
}

/* ===== 중간 모바일 (375px ~ 480px) ===== */
@media (min-width: 375px) and (max-width: 480px) {
    .process-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* ===== 태블릿 (481px ~ 768px) ===== */
@media (min-width: 481px) and (max-width: 768px) {
    .logo-img {
        height: 55px !important;
        max-width: 220px !important;
    }
    
    .hero-badge {
        font-size: 16px;
        padding: 14px 32px;
        margin-bottom: 40px;
    }
    
    .hero-title {
        font-size: 56px !important;
        margin-bottom: 36px;
    }
    
    .hero-subtitle {
        font-size: 18px !important;
        line-height: 1.7;
        margin-bottom: 60px !important;
    }
    
    .hero-cta {
        gap: 16px;
    }
    
    .btn-hero,
    .btn-hero-secondary {
        max-width: 320px;
        font-size: 18px;
        padding: 18px 48px;
    }
    
    .process-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 16px !important;
    }
    
    .process-card {
        padding: 20px 16px !important;
    }
    
    .slogan-logo-center {
        height: 110px !important; /* 220px → 110px (반으로 축소) */
        max-width: 98%;
    }
}

/* ===== 가로 모드 ===== */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: 20px 0;
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .hero-title {
        font-size: 28px !important;
    }
    
    .hero-slogan {
        margin-top: 20px;
        padding: 16px;
    }
    
    .slogan-logo-center {
        height: 65px !important; /* 130px → 65px (반으로 축소) */
    }
    
    .process {
        padding: 40px 0;
    }
}

/* ===== 터치 최적화 ===== */
@media (hover: none) and (pointer: coarse) {
    .process-card,
    .feature-card,
    .btn-hero,
    .btn-primary {
        -webkit-tap-highlight-color: rgba(201, 168, 76, 0.15);
        user-select: none;
    }
    
    .process-card:active,
    .feature-card:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
}

/* ===== 애니메이션 비활성화 (성능 향상) ===== */
@media (max-width: 768px) {
    * {
        animation-duration: 0.3s !important;
        transition-duration: 0.3s !important;
    }
}

/* ===== 데스크톱 (769px 이상) - 버튼 가로 배치 ===== */
@media (min-width: 769px) {
    .hero-cta {
        flex-direction: row;
        justify-content: center;
        gap: 20px;
    }
    
    .btn-hero,
    .btn-hero-secondary {
        min-width: 220px;
        width: auto;
    }
}
