* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Pretendard', sans-serif;
    scroll-behavior: smooth;
    letter-spacing: -0.03em;
}

/* 히트박스같은 느낌(디버깅 용)*/
/*
*{
    outline:1px solid red;
}
*/
body {
    background-color: #fbf9f6;
    color: #2b2621;
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ==========================================
    스크롤 단계별 가변 상단바 시스템 (150px 최적화)
   ========================================== */
/* [1단계] 초기 상태 */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0 100px;
    height: 90px;
    background: rgb(240, 240, 240);
    /*239 239 239*/
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(181, 130, 76, 0.791);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    
}

nav .logo {
    font-size: clamp(20px, 4vw, 30px) !important;
    color: #3a1515;
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1); /*끝 속도, 전체 속도, 시작 속도, 강도*/
    white-space: nowrap;
}

nav .logo-sub {
    font-size: clamp(12px, 3vw, 15px) !important;
    padding: 5px 12px;
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    white-space: nowrap;
}

/* 네비게이션 링크들을 감싸고 있는 부모 요소 선택 */
nav .nav-links {
    display: flex;
    flex-direction: row;       /* 가로 정렬 유지 */
    flex-wrap: nowrap;         /* 절대 아래 줄로 떨어지지 않게 설정 */
    overflow-x: auto;          /* 넘치는 부분은 가로 스크롤 생성 */
    -webkit-overflow-scrolling: touch; /* 모바일에서 부드러운 스크롤 */
    
    /* (선택) 스크롤바를 숨기고 싶다면 아래 코드 추가 */
    scrollbar-width: none;     /* Firefox */
}

nav .nav-links::-webkit-scrollbar {
    display: none;             /* Chrome, Safari, Opera */
}

nav .nav-links a {
    font-size: clamp(5px, 3vw, 18px) !important;
    /* margin-left: 36px; */
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    white-space: nowrap;

    /*flex-shrink: 1;*/
}

nav .nav-btn {
    font-size: clamp(16px, 3vw, 20px) !important;
    padding: 12px 24px;
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    white-space: nowrap;
}

/* ==========================================

        /* [2단계] 중간 스크롤 상태 */
nav.step-mid {
    height: 75px;
    background: rgba(255, 255, 255, 0.9);
}

nav.step-mid .logo {
    font-size: clamp(10px, 3vw, 25px) !important;
}

nav.step-mid .logo-sub {
    font-size: 12px !important;
    padding: 4px 11px;
}

nav.step-mid .nav-links a {
    font-size: 15px !important;
    /* margin-left: 34px; */
}

nav.step-mid .nav-btn {
    font-size: 14px !important;
    padding: 10px 22px;
}

/* ==========================================

        /* [3단계] 최종 압축 상태 */
nav.step-min {
    height: 64px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 4px 20px rgba(67, 53, 39, 0.05);
}

nav.step-min .logo {
    font-size: clamp(5px, 3vw, 20px) !important;
}

nav.step-min .logo-sub {
    font-size: 11px !important;
    padding: 3px 10px;
}

nav.step-min .nav-links a {
    font-size: 14px !important;
    /* margin-left: 32px; */
}

nav.step-min .nav-btn {
    font-size: 13px !important;
    padding: 9px 20px;
}

.nav-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    font-size: clamp(17px, 4vw, 24px) !important;
    font-weight: 700;
    color: #433527;
    cursor: pointer;
    letter-spacing: 0.05em;
}

.logo-sub {
    font-size: clamp(11px, 3vw, 14px) !important;
    color: #b5834c;
    font-weight: 500;
    background: rgba(181, 131, 76, 0.08);
    padding: 2px 8px;
    border-radius: 4px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

nav .nav-links a {
    text-decoration: none;
    color: #433527;
    opacity: 0.7;
    font-size: clamp(13px, 3vw, 16px) !important;
    font-weight: 500;
    margin-left: 40px;
    transition: opacity 0.3s ease;
}

nav .nav-links a:hover {
    opacity: 1;
}

.nav-btn {
    display: inline-block;
    padding: 7px 16px;
    font-size: clamp(12px, 3vw, 14px) !important;
    font-weight: 600;
    background: #b5834c;
    color: #fff;
    border-radius: 980px;
    text-decoration: none;
    transition: background 0.2s;
}

.nav-btn:hover {
    background: #433527;
}

/* ==========================================

        /* 햄버거 토글 버튼 스타일 */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: #433527;
    z-index: 1001;
}

/* ==========================================
    hover 시 전체 확장 효과 (1000px 이상에서만 적용)
   ========================================== */

@media (min-width: 1000px) {
    nav:hover {
        height: clamp(50px, 10vw, 100px) !important;
        /* 최종 압축 상태에서 마우스 오버 시 전체 높이로 확장 */
        /* 바 전체 높이 확대 */
        padding: 0 clamp(10px, 10vw, 100px) !important;
        /* 좌우 패딩 확대 */
        background: rgba(245, 242, 238, 0.98);
        /* 배경을 더 밝고 선명하게 */

        box-shadow:
            0 20px 50px rgba(67, 53, 39, 0.239);
        /* 확장된 배경에 그림자 추가 */
    }

    nav:hover .logo {
        font-size: clamp(0px, 10vw, 32px) !important;
        color: #81351e !important;
    }

    nav:hover .logo-sub {
        font-size: clamp(0px, 3vw, 15px) !important;
        padding: 6px 14px !important;
    }

    nav:hover .nav-links a {
        font-size: clamp(0px, 3vw, 16px) !important;
        margin-left: 40px !important;
    }

    nav:hover .nav-btn {
        font-size: clamp(0px, 3vw, 20px) !important;
        /* [핵심 2] 아예 한 줄로만 나오게 강제 (선택 사항) */
        white-space: nowrap;
    }


}


/* ==========================================
    모바일 반응형 Breakpoint (1000px 이하)
   ========================================== */

@media (max-width: 999px) {
    nav {
        padding: 0 24px;
        height: 70px !important;
    }

    nav .logo {
        font-size: 20px !important;
    }

    nav .logo-sub {
        display: block;
        font-size: 11px !important;
        white-space: nowrap;
        opacity: 0.75;
    }

    .menu-toggle {
        display: block;
    }

    /* 애플 스타일의 고급 애니메이션 및 유령 클릭 방지 */
    .nav-right {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid rgba(181, 131, 76, 0.12);
        flex-direction: column;
        gap: 0;
        padding: 20px 0;

        max-height: 0;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        overflow: hidden;

        transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1),
            opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
            visibility 0.5s ease;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    }

    /* 활성화 되었을 때의 상태 */
    .nav-right.active {
        max-height: 350px;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    nav .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0;
}

nav .nav-links a {
    display: block;
    width: 100%;
    text-align: center;
    padding: 16px 0;

    margin: 0;

    border-bottom: 1px solid rgba(67, 53, 39, 0.166);
}

    nav .nav-links a:last-child {
        border-bottom: none;
    }

    nav .nav-btn {
        margin-top: 15px;
        width: 80%;
        text-align: center;
        padding: 12px 0 !important;
        font-size: 14px !important;
    }
}

/* 모바일 메뉴 토글 스크립트 */


/* 히어로 섹션 */
.hero {
    height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    background: #ffffff;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.hero::before {
    content: "";
    position: absolute;
    top: 45%;
    left: 10%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(181, 131, 76, 0.07) 0%, rgba(255, 255, 255, 0) 70%);
    filter: blur(40px);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
}

.hero::after {
    content: "";
    position: absolute;
    top: 20%;
    right: 10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(216, 176, 124, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
    filter: blur(50px);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
}

.hero-badge {
    font-size: 13px;
    font-weight: 600;
    color: #b5834c;
    background: rgba(181, 131, 76, 0.1);
    padding: 6px 16px;
    border-radius: 980px;
    margin-bottom: 24px;
    animation: fadeInDown 0.8s ease-out;
}

.hero h1 {
    font-size: 76px;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 18px;
    color: #36291c;
    animation: fadeInUp 1s cubic-bezier(0.25, 1, 0.5, 1);
    text-shadow: 0 0 40px rgba(255, 255, 255, 1);
}

.hero p {
    font-size: 23px;
    font-weight: 400;
    color: #7a6f65;
    margin-bottom: 36px;
    animation: fadeInUp 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

@media (max-width: 999px) {
    .hero h1 {
        font-size: 44px;
    }

    .hero p {
        font-size: 16px;
    }
}

.hero-cta {
    animation: fadeInUp 1.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #9c8e81;
    font-size: 11px;
    font-weight: 500;
    text-decoration: none;
    opacity: 0.8;
    animation: bounce 2s infinite;
}

.scroll-indicator svg {
    width: 16px;
    height: 16px;
    margin-top: 6px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* 우측 하단 디스코드 확장형 바 */
.floating-action-box {
    position: fixed;
    bottom: 100px;
    right: 40px;
    background: #ffffff;
    border: 2px solid #b5834c;
    padding: 16px 24px;
    border-radius: 24px;
    box-shadow: 0 12px 40px rgba(181, 131, 76, 0.2);
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 320px;
    animation: fadeInUp 1s ease-out;
    transition: transform 0.3s, box-shadow 0.3s;
}

@media (max-width: 500px) {
    .floating-action-box {
        left: 20px;
        right: 20px;
        min-width: auto;
        padding: 12px 16px;
        gap: 10px;
    }

    .floating-action-box p {
        display: none;
    }
}

.floating-action-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 18px 45px rgba(181, 131, 76, 0.3);
}

.floating-text-group {
    display: flex;
    flex-direction: column;
}

.floating-action-box p {
    font-size: 11px;
    color: #9c8e81;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.floating-action-box h4 {
    font-size: 14px;
    color: #36291c;
    font-weight: 700;
    margin-top: 2px;
}

.floating-action-box .floating-btn {
    flex-shrink: 0;
    background: #b5834c;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 18px;
    border-radius: 14px;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.floating-action-box .floating-btn:hover {
    background: #433527;
}

/* 링크 & 버튼 */
.btn-link {
    font-size: 19px;
    color: #b5834c;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    transition: opacity 0.3s;
}

.btn-link:hover {
    text-decoration: underline;
    opacity: 0.8;
}

.btn-link::after {
    content: " >";
    font-size: 15px;
    /* margin-left: 5px; */
}

.btn {
    display: inline-block;
    padding: 12px 32px;
    font-size: 15px;
    font-weight: 600;
    background: #433527;
    color: #fff;
    border-radius: 980px;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.btn:hover {
    background: #5a4836;
    transform: scale(1.05);
}

/* 배너 롤링 효과 */
/* 배너 전체를 감싸는 영역 (화면 밖으로 튀어나가는 글자를 숨김) */
.marquee-container {
    width: 100%;
    background: #433527;
    color: #fff;
    padding: 16px 0;
    overflow: hidden;
    white-space: nowrap;
    display: flex;
}

/* 1번 트랙과 2번 트랙을 빈틈없이 가로로 나란히 일렬 정렬해주는 트랙 */
.marquee-wrapper {
    display: flex;
    width: max-content;

    animation: marqueeContinuous 30s linear infinite;
}

.marquee-content {
    display: flex;
    align-items: center;
}

/* 글자 하나하나의 간격 조절 */
.marquee-content span {
    display: inline-block;
    padding-right: 60px;
    /* 글자 묶음 사이의 고정 여백 */
    color: #f5f1eb;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.marquee-content em {
    color: #d8b07c;
    font-style: normal;
}

/* 
   1번 트랙이 완전히 화면 왼쪽으로 사라지는 순간(-100%), 
   . */
@keyframes marqueeContinuous {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* 마우스 올리면 부러지듯 멈추지 않고 그 자리에서 부드럽게 일시정지하는 효과 
        .marquee-container:hover .marquee-wrapper {
            animation-play-state: paused;
        }*/

/* 공통 섹션 */
section {
    padding: 140px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (max-width: 999px) {
    section {
        padding: 80px 20px;
    }
}

.section-title {
    font-size: 42px;
    font-weight: 300;
    text-align: center;
    letter-spacing: 0.05em;
    margin-bottom: 14px;
    color: #36291c;
}

.section-subtitle {
    font-size: 16px;
    color: #9c8e81;
    margin-bottom: 60px;
    text-align: center;
}

/* 가격표 영역 */
#pricing {
    background-color: #eaeaea;
}

.price-container {
    width: 100%;
    max-width: 1200px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
}

.price-category {
    position: relative;
    background: #ffffff;
    border-radius: 32px;
    padding: 40px 32px;
    border: 2px solid rgba(181, 131, 76, 0.25);
    box-shadow: 0 10px 30px rgba(67, 53, 39, 0.04), 0 1px 3px rgba(67, 53, 39, 0.06);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.price-category::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    height: 6px;
    border-radius: 30px 30px 0 0;
    background: linear-gradient(90deg, #b5834c, #d8b07c);
    z-index: 1;
}

.price-category:hover {
    transform: translateY(-8px);
    border-color: rgba(181, 131, 76, 0.8);
    box-shadow: 0 20px 45px rgba(181, 131, 76, 0.14), 0 4px 12px rgba(67, 53, 39, 0.08);
}

.best-badge {
    position: absolute;
    top: -14px;
    right: 28px;
    background: #b5834c;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(181, 131, 76, 0.3);
    z-index: 10;
}

.card-head {
    text-align: center;
    margin-bottom: 20px;
}

.price-category h3 {
    font-size: 20px;
    color: #36291c;
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-desc {
    font-size: 13px;
    color: #7a6f65;
    line-height: 1.5;
    word-break: keep-all;
}

.card-price-box {
    text-align: center;
    margin: 24px 0 14px 0;
    padding: 14px 0;
    border-top: 1px dashed rgba(67, 53, 39, 0.1);
    border-bottom: 1px dashed rgba(67, 53, 39, 0.1);
}

.card-price-box .price-label {
    font-size: 11px;
    color: #9c8e81;
    display: block;
    margin-bottom: 2px;
}

.card-price-box .price-amount {
    font-size: 25px;
    color: #b5834c;
    font-weight: 700;
}

.detail-toggle-btn {
    background: none;
    border: none;
    color: #b5834c;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin: 0 auto 20px auto;
    transition: color 0.2s;
}

.detail-toggle-btn:hover {
    color: #433527;
}

.detail-toggle-btn svg {
    width: 12px;
    height: 12px;
    transition: transform 0.3s ease;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
}

.detail-toggle-btn.active svg {
    transform: rotate(180deg);
}

.card-detail-list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 4px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 0;
    border-bottom: 1px dashed rgba(67, 53, 39, 0.08);
}

.detail-item:last-child {
    border-bottom: none;
    margin-bottom: 16px;
}

.detail-name {
    font-size: 12.5px;
    color: #433527;
    font-weight: 500;
    text-align: left;
}

.detail-subtext {
    font-size: 11px;
    color: #9c8e81;
    display: block;
    font-weight: 400;
    margin-top: 1px;
}

.detail-val {
    font-size: 13px;
    color: #36291c;
    font-weight: 700;
    white-space: nowrap;
}

.card-btn {
    display: block;
    width: 100%;
    padding: 13px;
    font-size: 13px;
    font-weight: 600;
    background: #433527;
    color: #fff;
    border-radius: 14px;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    margin-top: auto;
}

.card-btn:hover {
    background: #b5834c;
    transform: scale(1.02);
}

.price-notice {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 14px;
    color: #7a6f65;
    margin-top: 24px;
    font-style: italic;
}

/* ==========================================
    [완전 복구 및 수정] 필독사항 가이드 영역 레이아웃 정형화
   ========================================== */
#notice {
    background: #ffffff;
}

.notice-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 기본 상태에서 반반씩 웅장하고 시원하게 배치 */
    gap: 32px;
    width: 100%;
    max-width: 1200px;
}

.notice-card {
    background: #fbf9f6;
    border-radius: 24px;
    padding: 40px;
    /* 기존 축소되었던 여백을 크게 복구 */
    border-left: 6px solid #b5834c;
    box-shadow: 0 4px 15px rgba(67, 53, 39, 0.02);
    width: 100%;
}

.notice-card.warning {
    border-left-color: #c84b31;
    background: #fffdfb;
}

.notice-card h4 {
    font-size: 21px;
    /* 제목 크기를 다시 큼직하게 조정 */
    color: #36291c;
    margin-bottom: 18px;
    font-weight: 700;
}

.notice-card.warning h4 {
    color: #c84b31;
}

.notice-card ul {
    list-style: none;
}

.notice-card li {
    font-size: 15px;
    /* 글자 크기 복구 */
    color: #5c5249;
    line-height: 1.7;
    margin-bottom: 12px;
    position: relative;
    padding-left: 20px;
}

.notice-card li::before {
    content: "•";
    position: absolute;
    left: 0;
    font-size: 18px;
    top: -1px;
    color: #b5834c;
}

.notice-card.warning li::before {
    color: #c84b31;
}

/* 타블렛 및 모바일 환경을 위한 미디어쿼리 분리 */
@media (max-width: 999px) {
    .notice-grid {
        grid-template-columns: 1fr;
        /* 가로폭이 좁아지면 바둑판 배열을 세로로 큼직하게 1열 정렬 */
        gap: 24px;
    }

    .notice-card {
        padding: 30px 24px;
    }
}

/* 디스코드 문의 섹션 */
#discord {
    background: #f5f1eb;
}

.contact-box {
    background: #ffffff;
    border-radius: 32px;
    padding: 65px 50px;
    width: 100%;
    max-width: 720px;
    text-align: center;
    box-shadow: 0 12px 45px rgba(67, 53, 39, 0.03);
    border: 1px solid rgba(181, 131, 76, 0.1);
}

@media (max-width: 999px) {
    .contact-box {
        padding: 40px 20px;
    }

    .contact-box h3 {
        font-size: 20px;
    }
}

.contact-box p {
    font-size: 16px;
    color: #7a6f65;
    margin-bottom: 12px;
}

.contact-box h3 {
    font-size: 28px;
    font-weight: 700;
    color: #36291c;
    margin-bottom: 35px;
    letter-spacing: 0.02em;
}

.contact-box .btn {
    padding: 16px 48px;
    font-size: 16px;
    font-weight: 600;
    background: #b5834c;
}

.contact-box .btn:hover {
    background: #9c6f3f;
}

/* 스크롤 애니메이션 */
.hidden {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.show {
    opacity: 1;
    transform: translateY(0);
}

/* 푸터 */
footer {
    padding: 50px 20px;
    text-align: center;
    font-size: 12px;
    color: #9c8e81;
    background-color: #f5f1eb;
    border-top: 1px solid rgba(67, 53, 39, 0.05);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-10px) translateX(-50%);
    }

    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}



/* 전체 섹션 레이아웃 */
.intro {
    padding: 120px 20px;
    background-color: #0b0b0b;
    color: #ffffff;
    text-align: center;
    font-family: 'Playfair Display', 'Noto Serif KR', serif;
    /* 우아한 세리프체 추천 */
}

/* 섹션 타이틀: 자간을 넓히고 얇고 우아하게 */
.section-title-forintro {
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    margin-bottom: 20px;
    color: #e5d5be;
    /* 은은한 샴페인 골드 톤 포인트 */
}

/* 섹션 서브타이틀: 가독성을 높이고 채도를 낮춤 */
.section-subtitle-forintro {
    font-size: 1.1rem;
    font-weight: 300;
    color: #a0a0a0;
    letter-spacing: 0.05em;
    margin-bottom: 80px;
    /* 타이틀과 본문 사이 여백 확보 */
}

/* 그리드 레이아웃: 여백을 넓혀 답답함 해소 */
.intro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 인트로 카드: 테두리를 없애고 은은한 그라데이션 또는 미니멀 레이아웃 */
.intro-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 50px 40px;
    border-radius: 4px;
    /* 곡률을 작게 하여 모던한 느낌 유지 */
    text-align: left;
    /* 좌측 정렬이 더 고급스러운 인상을 줍니다 */
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    /* 부드러운 애니메이션 효과 */
}

/* 카드 호버 효과: 과하지 않고 우아한 움직임 */
.intro-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.06);
    border-color: #e5d5be;
}

*/

/* 카드 제목 */
.intro-card h3 {
    font-size: 1.3rem;
    font-weight: 400;
    color: #ffffff;
    margin-bottom: 20px;
    letter-spacing: 0.03em;
    position: relative;
}

/* 카드 본문 */
.intro-card p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #8e8e93;
    font-weight: 300;
    word-break: keep-all;
    /* 한글 줄바꿈을 자연스럽게 */
}

/* --- 미디어 쿼리: 화면 너비가 999px 이하일 때 (태블릿 & 모바일) --- */

@media (max-width: 999px) {
    .section-title-forintro {
        font-size: 2rem;
        letter-spacing: -0.01em;
    }

    .section-subtitle-forintro {
        font-size: 1rem;
        margin-bottom: 40px;
    }

    .intro-grid {
        grid-template-columns: 1fr; /* 모바일에선 확실하게 1열로 세워 글자 공간 확보 */
        gap: 24px;
        padding: 0 24px;
    }

    .intro-card {
        padding: 40px 32px;      /* 패딩이 너무 작아지면 고급스러움이 깨지므로 적당히 유지 */
        border-radius: 14px;
    }
}

/* 월애 포트폴리오 가로 꽉 채우는 배너 스타일 */
.full-bleed-banner {
    width: 100%;               /* 부모 너비의 100%를 차지 */
    max-width: 1200px;
    margin: 0 auto;                 /* 외부 여백 제거 */
    padding: 0;                /* 내부 여백 제거 */
    overflow: hidden;          /* 혹시 모를 이미지 넘침 방지 */
    background-color: #fceef2; /* 이미지 로딩 전이나 미세한 틈새를 메워줄 부드러운 핑크빛 배경 */
}

.full-bleed-banner img {
    width: 100%;               /* 화면 가로폭에 이미지를 100% 맞춤 */
    height: auto;              /* 가로가 바뀔 때 세로 비율도 자동으로 유지 */
    display: block;            /* 이미지 하단에 생기는 정체불명의 미세한 공백 방지 */
    object-fit: cover;         /* 빈틈 없이 꽉 채우도록 설정 */
}

/* ==========================================
   WORKS SECTION - PREMIUM MONOCHROME EDITION
========================================== */

.works-section {

    padding: 180px 40px;

    background:
    linear-gradient(
        180deg,
        #f7f7f7 0%,
        #ffffff 100%
    );

    position: relative;

    overflow: hidden;

    border-top-left-radius: 80px;
    border-top-right-radius: 80px;

    text-align: left;

}

/* 은은한 배경 장식 */

.works-section::before {

    content: "";

    position: absolute;

    width: 700px;
    height: 700px;

    right: -250px;
    top: -250px;

    border-radius: 50%;

    background:
    radial-gradient(
        rgba(0,0,0,.03),
        transparent 70%
    );

    pointer-events: none;
}

.works-header {

    max-width: 1200px;

    margin: 0 auto 90px;

    padding-left: 20px;
}

.works-tag {

    display: inline-block;

    padding: 8px 18px;

    border-radius: 999px;

    background: rgba(255,255,255,.8);

    border: 1px solid rgba(0,0,0,.08);

    color: #555;

    font-size: 11px;

    font-weight: 500;

    letter-spacing: .15em;

    text-transform: uppercase;
}

/* 제목 */

.works-header h2 {

    margin-top: 28px;

    font-size:
    clamp(42px,5vw,82px);

    font-weight: 250;

    color: #1a1a1a;

    line-height: 1.1;

    letter-spacing: -.04em;

    position: relative;

    max-width: 900px;
}

.works-header h2::before {

    content: "";

    position: absolute;

    left: -35px;

    top: 50%;

    width: 18px;

    height: 2px;

    background: #666;
}

/* 설명 */

.works-header p {

    margin-top: 24px;

    max-width: 700px;

    color: #777;

    font-size:
    clamp(15px,1.1vw,20px);

    line-height: 1.8;

    font-weight: 300;

    letter-spacing: -.01em;
}

/* GIF 박스 */

.works-showcase {

    position: relative;

    max-width: 1200px;

    margin: 0 auto;

    overflow: hidden;

    border-radius: 40px;

    background: rgba(255,255,255,.7);

    backdrop-filter: blur(20px);

    border:
    1px solid rgba(0,0,0,.06);

    box-shadow:
    0 30px 80px rgba(0,0,0,.06);

    transition:
    transform .6s cubic-bezier(.16,1,.3,1),
    box-shadow .6s cubic-bezier(.16,1,.3,1);
}

.works-showcase::before {

    content: "";

    position: absolute;

    inset: 0;

    border-radius: 40px;

    padding: 1px;


    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);

    mask-composite: xor;

    pointer-events: none;
}

.works-showcase:hover {

    transform:
    translateY(-8px);

    box-shadow:
    0 50px 120px rgba(0,0,0,.10);
}

.works-showcase img {

    width: 100%;

    display: block;
}

/* 스탯 영역 */

.works-stats {

    max-width: 1200px;

    margin: 60px auto 0;

    display: grid;

    grid-template-columns:
    repeat(3,1fr);

    gap: 24px;
}

/* 카드 */

.stat-card {

    background:
    rgba(255,255,255,.75);

    backdrop-filter:
    blur(18px);

    border:
    1px solid rgba(0,0,0,.06);

    border-radius: 32px;

    padding: 36px;

    position: relative;

    overflow: hidden;

    transition:
    transform .4s ease,
    box-shadow .4s ease,
    border-color .4s ease;
}

.stat-card::before {

    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 1px;

    background:
    linear-gradient(
        90deg,
        rgba(0,0,0,.12),
        transparent
    );
}

.stat-card:hover {

    transform:
    translateY(-6px);

    border-color:
    rgba(0,0,0,.10);

    box-shadow:
    0 25px 60px rgba(0,0,0,.08);
}

.stat-card h3 {

    font-size: 42px;

    font-weight: 300;

    color: #1d1d1f;

    margin-bottom: 12px;

    letter-spacing: -.03em;
}

.stat-card span {

    color: #6e6e73;

    font-size: 14px;

    font-weight: 400;

    line-height: 1.6;
}

/* 모바일 */

@media (max-width:999px) {

    .works-section {

        padding: 100px 24px;

        border-top-left-radius: 40px;
        border-top-right-radius: 40px;
    }

    .works-header {

        padding-left: 0;

        margin-bottom: 50px;
    }

    .works-header h2::before {

        display: none;
    }

    .works-showcase {

        border-radius: 24px;
    }

    .works-stats {

        grid-template-columns: 1fr;

        gap: 16px;
    }

    .stat-card {

        padding: 28px;
    }
}
