/* =========================================================
   HANCOT PLATFORM - INDEX PAGE ONLY CSS (index.css)
   - Hero 영역 상단 모서리는 직각(0), 하단만 둥글게 또는 전체 직각 처리
========================================================= */

/* HERO WRAPPER & SECTION */
.hero-wrapper {
    padding: 24px 0;
    background-color: #ffffff;
}

.hero.hancot-bg {
    min-height: 680px; /* 상하 크기를 넉넉하게 키워 이미지 잘림 방지 */
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
        url('/images/hancot/hancot-main.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    
    /* ★ 핵심 수정: 상단 모서리는 둥글게 하지 않고(0), 하단만 둥글게 처리 (혹은 전체를 직각으로 하려면 0으로 설정) */
    border-radius: 0 0 28px 28px; /* 좌상단 0, 우상단 0, 우하단 28px, 좌하단 28px */
    
    /* 만약 모서리를 완전히 네모반듯하게 직각으로 하고 싶다면 아래처럼 설정하세요 */
    /* border-radius: 0px; */

    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 60px 20px;
}

.hero-content {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
}

.hero.hancot-bg h1,
.hero.hancot-bg h2 {
    font-size: clamp(1.4rem, 3.5vw, 2.3rem);
    font-weight: 900;
    line-height: 1.35;
    margin-bottom: 14px;
    color: #ffffff;
    word-break: keep-all;
}

.hero.hancot-bg p {
    display: block;
    width: 100%;
    margin: 0 auto;
    font-size: clamp(0.9rem, 1.8vw, 1.05rem);
    color: #f8f9fa;
    line-height: 1.6;
    word-break: keep-all;
}

.hero.hancot-bg p.small {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(0, 0, 0, 0.4);
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    margin-top: 12px;
}

/* SECTIONS & CARDS */
.section {
    padding: 50px 0;
    background: #ffffff;
}

.soft-section {
    background: #f6f8fb;
}

.section-title-box {
    text-align: center;
    margin-bottom: 30px;
}

.section-title-box h2 {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    font-weight: 900;
    margin-bottom: 8px;
    color: #111827;
}

.section-title-box p {
    color: #6b7280;
    font-size: 0.95rem;
}

/* STORAGE MODE CARDS UI DESIGN */
.storage-card {
    position: relative;
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid #e2e8f0;
    padding: 36px 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.storage-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    transition: height 0.3s ease;
}

.storage-card.secure-mode::before {
    background: linear-gradient(90deg, #2563eb, #3b82f6);
}

.storage-card.cloud-mode::before {
    background: linear-gradient(90deg, #0d9488, #14b8a6);
}

.storage-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.08);
    border-color: #cbd5e1;
}

.storage-card .card-badge {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.secure-mode .card-badge {
    background: #eff6ff;
    color: #2563eb;
}

.cloud-mode .card-badge {
    background: #f0fdf4;
    color: #0d9488;
}

.storage-card .card-icon-box {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.secure-mode .card-icon-box {
    background: #eff6ff;
    color: #2563eb;
}

.cloud-mode .card-icon-box {
    background: #f0fdf4;
    color: #0d9488;
}

.storage-card .card-title {
    font-size: 1.25rem;
    font-weight: 900;
    color: #111827;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.storage-card .card-title .sub-txt {
    font-size: 0.9rem;
    font-weight: 600;
    color: #6b7280;
}

.storage-card .card-desc {
    font-size: 0.98rem;
    color: #4b5563;
    line-height: 1.65;
    margin-bottom: 24px;
    flex: 1;
}

.storage-card .card-desc strong {
    color: #1f2937;
    font-weight: 700;
}

.storage-card .card-footer-tag {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 18px;
    border-top: 1px solid #f1f5f9;
    font-size: 0.85rem;
    font-weight: 700;
    color: #64748b;
}

.storage-card .card-footer-tag span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.secure-mode .card-footer-tag i {
    color: #2563eb;
}

.cloud-mode .card-footer-tag i {
    color: #0d9488;
}

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
    .hero.hancot-bg {
        min-height: 400px;
        border-radius: 0 0 16px 16px; /* 모바일에서도 상단은 직각, 하단만 둥글게 */
        padding: 30px 12px;
    }

    .storage-card {
        padding: 24px 20px;
        border-radius: 20px;
    }

    .row > [class*="col-md-"] {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 12px;
    }
}