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

:root {
    --bg-main: #fffdf9;
    --primary: #ff7e5f;
    --primary-dark: #feb47b;
    --accent: #ffa726;
    --text-dark: #2d3436;
    --text-muted: #636e72;
    --white: #ffffff;
    --shadow-soft: 0 15px 45px rgba(255, 126, 95, 0.08);
}

* {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Pretendard', sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-dark);
    background-color: var(--bg-main);
    overflow-x: hidden;
}

/* 감성적인 배경 장식 */
.bg-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    will-change: transform, filter;
    transform: translateZ(0);
}

.orb-1 { width: 400px; height: 400px; background: #ff7e5f; top: -100px; left: -100px; }
.orb-2 { width: 350px; height: 350px; background: #feb47b; bottom: -50px; right: -50px; }
.orb-3 { width: 300px; height: 300px; background: #ffeaa7; top: 40%; right: 10%; }

.page-layout {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.wrapper {
    width: 100%;
    max-width: 600px;
    padding: 60px 0 40px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 사이드바 스타일 */
.sidebar {
    position: sticky;
    top: 40px;
    width: 220px;
    flex-shrink: 0;
    padding-top: 60px;
}

.sidebar-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: white;
    border-radius: 18px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.sidebar-link i {
    font-size: 1.4rem;
}

.sidebar-link.apple i { color: #000000; }
.sidebar-link.instagram i { color: #E4405F; }

.sidebar-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(255, 126, 95, 0.15);
    border-color: var(--primary-dark);
}

.sidebar-ad-area {
    width: 100%;
}

.ad-placeholder {
    width: 100%;
    min-height: 500px;
    background: rgba(0, 0, 0, 0.03);
    border: 1px dashed rgba(0, 0, 0, 0.1);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 25px;
}

.ad-placeholder p {
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0 0 8px;
    letter-spacing: 1px;
}

.ad-placeholder span {
    font-size: 0.75rem;
    color: var(--text-muted);
    opacity: 0.7;
    line-height: 1.4;
}

header {
    text-align: center;
    margin-bottom: 40px;
    animation: fadeInDown 0.8s ease-out;
}

.logo-area {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
}

.logo-icon {
    font-size: 2rem;
    color: var(--primary);
}

h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: -1px;
    color: var(--text-dark);
}

.tagline {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* 메인 인트로 카드: 부드러운 화이트 카드 */
.intro-card {
    background: var(--white);
    border-radius: 32px;
    padding: 45px 30px;
    box-shadow: var(--shadow-soft);
    text-align: center;
    margin-bottom: 35px;
    position: relative;
    border: 1px solid rgba(255, 126, 95, 0.05);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.badge {
    display: inline-block;
    background: #fff4f1;
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.intro-card h2 {
    font-size: 1.7rem;
    line-height: 1.4;
    margin-bottom: 20px;
    font-weight: 700;
}

.intro-card p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 35px;
}

/* 통통 튀는 버튼 스타일 */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 280px;
    padding: 20px 28px;
    border-radius: 20px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    cursor: pointer;
}

.cta-button.primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 10px 25px rgba(255, 126, 95, 0.25);
}

.cta-button.secondary {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-icon {
    margin-right: 10px;
}

.cta-button:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 15px 35px rgba(255, 126, 95, 0.35);
}

/* 특징 그리드 */
.feature-grid {
    display: grid;
    gap: 15px;
    margin-bottom: 50px;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.feature-item {
    background: white;
    padding: 24px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    gap: 18px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.02);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateX(5px);
}

.icon-box {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.icon-box.orange { background: #fff4f1; color: #ff7e5f; }
.icon-box.pink { background: #fff0f3; color: #ff8fa3; }
.icon-box.yellow { background: #fffbf0; color: #ffb100; }

.feature-item h3 {
    margin: 0 0 4px;
    font-size: 1.05rem;
    font-weight: 700;
}

.feature-item p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

footer {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.6;
}

.copyright {
    margin-top: 10px;
    font-weight: 600;
    opacity: 0.6;
}

/* 하단 CTA 영역 */
.bottom-cta-area {
    margin: 20px 0 40px;
    display: flex;
    justify-content: center;
    width: 100%;
}

.bottom-cta-area .cta-button {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    max-width: 300px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-main: #121212;
        --text-dark: #f5f5f5;
        --text-muted: #b0b0b0;
        --white: #1e1e1e;
        --shadow-soft: 0 15px 45px rgba(0, 0, 0, 0.3);
    }
    
    .intro-card {
        border-color: rgba(255, 255, 255, 0.1);
    }

    .badge {
        background: #2d201d;
    }

    .feature-item {
        background: #252525;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    }

    .icon-box.orange { background: #2d201d; }
    .icon-box.pink { background: #2d1e21; }
    .icon-box.yellow { background: #2d2b1a; }

    .sidebar-link {
        background: #252525;
        color: #f5f5f5;
        border-color: rgba(255, 255, 255, 0.05);
    }

    .sidebar-link.apple i { color: #ffffff; }

    .ad-placeholder {
        background: rgba(255, 255, 255, 0.03);
        border-color: rgba(255, 255, 255, 0.1);
    }

    .bottom-fixed-area .cta-button {
        background: rgba(30, 30, 30, 0.85);
        color: var(--primary);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
}

/* 애니메이션 */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

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

/* 반응형 최적화 */

/* 0. 데스크탑 이하 (1024px 이하) - 사이드바를 하단으로 이동 */
@media (max-width: 1024px) {
    .page-layout {
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: 0 16px;
    }

    .sidebar {
        position: static;
        width: 100%;
        max-width: 600px;
        padding: 0 0 40px;
        order: 2; /* 콘텐츠 뒤에 배치 */
    }

    .sidebar-links {
        flex-direction: row;
        justify-content: center;
        margin-bottom: 20px;
    }

    .sidebar-link {
        flex: 1;
        justify-content: center;
    }

    .ad-placeholder {
        min-height: 120px;
    }
}

/* 1. 태블릿 및 가로형 모바일 (768px 이하) */
@media (max-width: 768px) {
    .wrapper {
        padding: 40px 20px 40px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .intro-card {
        padding: 40px 25px;
    }
}

/* 2. 일반 세로형 모바일 (480px 이하) */
@media (max-width: 480px) {
    .wrapper {
        padding: 30px 16px 40px; /* 상하좌우 여백 축소 */
    }

    header {
        margin-bottom: 30px;
    }

    .logo-icon {
        font-size: 1.8rem;
    }

    h1 {
        font-size: 1.7rem; /* 제목 크기 최적화 */
    }

    .tagline {
        font-size: 1rem;
    }

    .intro-card {
        padding: 35px 20px;
        border-radius: 24px;
        margin-bottom: 25px;
    }

    .intro-card h2 {
        font-size: 1.4rem;
        word-break: keep-all; /* 한글 줄바꿈 자연스럽게 */
    }

    .intro-card p {
        font-size: 0.95rem;
        margin-bottom: 25px;
        line-height: 1.6;
    }

    .feature-grid {
        gap: 12px;
        margin-bottom: 40px;
    }

    .feature-item {
        padding: 16px;
        gap: 12px;
    }

    .icon-box {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }

    .feature-item h3 {
        font-size: 1rem;
    }

    .feature-item p {
        font-size: 0.85rem;
    }

    /* 하단 CTA 버튼 모바일 터치 영역 최적화 */
    .bottom-cta-area {
        margin-bottom: 30px;
    }

    .bottom-cta-area .cta-button {
        max-width: none;
        width: calc(100% - 32px);
        padding: 18px 20px;
        font-size: 1rem;
        border-radius: 16px;
    }
}

/* 3. 소형 모바일 (360px 이하) */
@media (max-width: 360px) {
    h1 {
        font-size: 1.5rem;
    }

    .intro-card h2 {
        font-size: 1.25rem;
    }

    .feature-item {
        flex-direction: column; /* 세로 스태킹 배치 */
        text-align: center;
        padding: 20px 16px;
    }

    .icon-box {
        margin-bottom: 4px;
    }
}
