@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.css');

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    height: 100%;
    overflow: hidden;
    font-family: 'Pretendard', sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    background: url('../img/intro_backimg.png') center center / cover no-repeat;
    min-height: 100vh;
}

/* ── 헤더 (로고) ── */
.intro-header {
    padding: 1.5rem 2rem;
    flex-shrink: 0;
}

.intro-header img {
    width: 7.5rem;
}

/* ── 히어로 텍스트 ── */
.intro-hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 1.25rem 1.25rem;
}

.intro-hero .subtitle {
    font-size: 2rem;
    font-weight: 400;
    color: rgba(60, 20, 40, 0.7);
    margin-bottom: 1.125rem;
    letter-spacing: -0.019rem;
}

.intro-hero .subtitle .yr-bold {
    font-weight: 700;
    color: rgba(40, 10, 25, 0.9);
}

.intro-hero .subtitle .yr-light {
    font-weight: 300;
    color: rgba(60, 20, 40, 0.7);
}

.intro-hero .subtitle b {
    font-weight: 700;
    color: rgba(40, 10, 25, 0.85);
}

.intro-hero .subtitle strong {
    font-weight: 900;
    color: rgba(40, 10, 25, 0.9);
}

.intro-hero h1 {
    font-size: 6.25rem;
    font-weight: 900;
    color: #1a0810;
    line-height: 1.2;
    margin-bottom: 7.125rem;
    letter-spacing: -0.125rem;
    text-shadow: 0 0.125rem 0.75rem rgba(255,255,255,0.5);
}

.brand-img {
    height: 4.875rem;
    width: auto;
}

/* ── 카드 섹션 ── */
.intro-cards {
    flex-shrink: 0;
    display: flex;
    gap: 3.75rem;
    padding: 0 2.5rem 2.5rem;
    margin-top: 2rem;
    justify-content: center;
    align-items: stretch;
}

.card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(0.5rem);
    border-radius: 1.375rem;
    padding: 2rem 1.25rem 1.75rem 2rem;
    margin: 0.75rem;
    text-align: left;
    width: 27.5rem;
    min-height: 10.9375rem;
    box-shadow: 0 0.5rem 2.25rem rgba(180, 60, 100, 0.18);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
    overflow: visible;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card::after {
    content: '';
    position: absolute;
    top: -0.65rem;
    right: -0.65rem;
    bottom: -0.65rem;
    left: -0.65rem;
    border: 2px solid #fff;
    border-radius: 1.75rem;
    pointer-events: none;
}

.card:hover {
    transform: translateY(-0.25rem);
    box-shadow: 0 0.875rem 2.75rem rgba(180, 60, 100, 0.26);
}

.card-title {
    font-size: 3rem;
    font-weight: 900;
    color: #1a0810;
    line-height: 1;
}

.card-desc {
    font-size: 1.375rem;
    color: #666;
    line-height: 1.625rem;
    width: 100%;
    flex: 1;
    margin-top: 1rem;
    margin-bottom: 2.6875rem;
}

.card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.25rem;
    background: #1a0810;
    color: #fff;
    padding: 0.25rem 0.25rem 0.25rem 1.75rem;
    border-radius: 3.125rem;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 500;
    width: 10rem;
    margin-top: 0.25rem;
    transition: background 0.2s;
}

.card-btn:hover {
    background: #e8207a;
}

.btn-arrow {
    width: 2.75rem;
    height: 2.75rem;
    object-fit: contain;
    margin-left: auto;
}

.card-icon {
    position: absolute;
    right: 0.875rem;
    bottom: 0;
    width: 6.25rem;
    height: 6.25rem;
    object-fit: contain;
    object-position: bottom;
    filter: drop-shadow(0 0.25rem 0.5rem rgba(0,0,0,0.12));
    pointer-events: none;
}

/* ── 반응형 ── */

/* 대형 (1400px 이하) : 카드 너비 축소 */
@media (max-width: 87.5rem) {
    .intro-hero h1 { font-size: 5rem; margin-bottom: 4.5rem; }
    .intro-hero .subtitle { font-size: 1.5rem; }
    .brand-img { height: 4rem; }
    .intro-cards { gap: 2rem; }
    .card { width: 22rem; }
    .card-title { font-size: 2.5rem; }
}

/* 태블릿 가로 (1024px 이하) : 카드 세로 정렬 */
@media (max-width: 64rem) {
    html, body { overflow-y: auto; }
    .intro-hero h1 { font-size: 3.5rem; margin-bottom: 2.5rem; }
    .intro-hero .subtitle { font-size: 1.25rem; }
    .brand-img { height: 3rem; }
    .intro-cards {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        padding: 0 1.5rem 2rem;
        margin-top: 1.5rem;
    }
    .card { width: 100%; max-width: 27.5rem; min-height: auto; }
    .card-title { font-size: 2rem; }
    .card-desc { font-size: 1.125rem; margin-bottom: 1.5rem; }
}

/* 태블릿 세로 / 모바일 가로 (768px 이하) */
@media (max-width: 48rem) {
    .intro-header { padding: 1rem 1.5rem; }
    .intro-header img { width: 5.5rem; }
    .intro-hero h1 { font-size: 2.5rem; margin-bottom: 1.75rem; }
    .intro-hero .subtitle { font-size: 1rem; }
    .brand-img { height: 2.5rem; }
    .card-title { font-size: 1.75rem; }
    .card-desc { font-size: 1rem; line-height: 1.5rem; }
    .card-btn { font-size: 1rem; width: 9rem; }
    .btn-arrow { width: 2.25rem; height: 2.25rem; }
    .card-icon { width: 5rem; height: 5rem; }
}

/* 모바일 세로 (480px 이하) */
@media (max-width: 30rem) {
    .intro-header { padding: 0.75rem 1rem; }
    .intro-header img { width: 4.5rem; }
    .intro-hero h1 { font-size: 1.75rem; margin-bottom: 1.25rem; letter-spacing: -0.05rem; }
    .intro-hero .subtitle { font-size: 0.75rem; margin-bottom: 0.75rem; }
    .brand-img { height: 2rem; }
    .intro-cards { gap: 1rem; padding: 0 1rem 1.5rem; margin-top: 1rem; }
    .card { padding: 1.25rem 1rem 1.25rem 1.25rem; }
    .card-title { font-size: 1.5rem; }
    .card-desc { font-size: 0.875rem; line-height: 1.25rem; margin-top: 0.5rem; margin-bottom: 1rem; }
    .card-btn { font-size: 0.875rem; width: 8rem; }
    .btn-arrow { width: 2rem; height: 2rem; }
    .card-icon { width: 4rem; height: 4rem; }
}
