@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Noto+Sans+KR:wght@300;400;500;700&family=Inter:wght@300;400;500;600&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --bg-color: #FFFDF8;
    --primary-pink: #E8879A;
    --pink-light: #F4B6C2;
    --pink-soft: #FDE8EC;
    --apricot: #FFCDB8;
    --gold: #C5A45A;
    --gold-light: #D4B96E;
    --text-charcoal: #333333;
    --text-grey: #5D5D5D;
    --card-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(212, 175, 55, 0.2);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --card-shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.1);
    --transition-smooth: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Noto Sans KR', 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-charcoal);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Outfit', 'Noto Sans KR', sans-serif;
    font-weight: 600;
}

/* ═══════════════════════════════════
   View Management
   ═══════════════════════════════════ */
.view {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.view.active {
    display: block;
    opacity: 1;
}

/* ═══════════════════════════════════
   섹션1 — 히어로
   ═══════════════════════════════════ */
.hero-section {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, #FDE8EC 0%, #FFF0F3 25%, #FDE8EC 50%, #F0F7E8 75%, #FFF5F5 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 벚꽃잎 CSS 애니메이션 */
.cherry-blossoms {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.petal {
    position: absolute;
    width: 12px;
    height: 12px;
    background: radial-gradient(ellipse at center, #FFB7C5 0%, #FFC4D6 40%, rgba(255, 183, 197, 0.3) 100%);
    border-radius: 50% 0 50% 0;
    opacity: 0;
    animation: petalFall linear infinite;
}

.p1  { left: 5%;  animation-duration: 8s;  animation-delay: 0s;   width: 10px; height: 10px; }
.p2  { left: 15%; animation-duration: 10s; animation-delay: 1s;   width: 14px; height: 14px; }
.p3  { left: 25%; animation-duration: 7s;  animation-delay: 3s;   width: 8px;  height: 8px;  }
.p4  { left: 35%; animation-duration: 9s;  animation-delay: 0.5s; width: 12px; height: 12px; }
.p5  { left: 45%; animation-duration: 11s; animation-delay: 2s;   width: 10px; height: 10px; }
.p6  { left: 55%; animation-duration: 8s;  animation-delay: 4s;   width: 14px; height: 14px; }
.p7  { left: 65%; animation-duration: 10s; animation-delay: 1.5s; width: 9px;  height: 9px;  }
.p8  { left: 75%; animation-duration: 7s;  animation-delay: 3.5s; width: 11px; height: 11px; }
.p9  { left: 85%; animation-duration: 9s;  animation-delay: 0.8s; width: 13px; height: 13px; }
.p10 { left: 92%; animation-duration: 12s; animation-delay: 2.5s; width: 8px;  height: 8px;  }
.p11 { left: 10%; animation-duration: 13s; animation-delay: 5s;   width: 10px; height: 10px; }
.p12 { left: 50%; animation-duration: 9s;  animation-delay: 6s;   width: 11px; height: 11px; }

@keyframes petalFall {
    0% {
        transform: translateY(-20px) rotate(0deg) translateX(0px);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    50% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(100vh) rotate(360deg) translateX(80px);
        opacity: 0;
    }
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    max-width: 900px;
    width: 100%;
    padding: 2rem;
}

.hero-text {
    flex: 1;
    text-align: left;
}

.hero-sub {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 0.85rem;
    letter-spacing: 0.3rem;
    color: #C49BA5;
    text-transform: lowercase;
    margin-bottom: 1rem;
}

.hero-brand {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 3.2rem;
    color: var(--primary-pink);
    line-height: 1.1;
    letter-spacing: 0.05em;
    margin-bottom: 0.3rem;
}

.hero-name {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-size: 1.8rem;
    color: #2D2D2D;
    letter-spacing: 0.08em;
    line-height: 1.3;
}

.hero-photo {
    flex: 0 0 280px;
    position: relative;
}

.hero-photo img {
    width: 280px;
    height: auto;
    display: block;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 70%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 70%, rgba(0,0,0,0) 100%);
    mix-blend-mode: multiply;
    filter: none;
}

/* ═══════════════════════════════════
   섹션2 — 메인 타이틀
   ═══════════════════════════════════ */
.main-title-section {
    position: relative;
    background: var(--apricot);
    padding: 5rem 2rem;
    text-align: center;
    overflow: hidden;
}

/* 벚꽃 가지 장식 — 왼쪽 하단 */
.branch-left {
    position: absolute;
    left: -30px;
    bottom: 20px;
    width: 200px;
    height: 200px;
    background:
        radial-gradient(circle at 20% 80%, #E8879A 3px, transparent 3px),
        radial-gradient(circle at 30% 70%, #F4B6C2 4px, transparent 4px),
        radial-gradient(circle at 15% 65%, #FFB7C5 3px, transparent 3px),
        radial-gradient(circle at 40% 85%, #E8879A 2px, transparent 2px),
        radial-gradient(circle at 25% 90%, #F4B6C2 3px, transparent 3px),
        radial-gradient(circle at 35% 75%, #FFB7C5 2px, transparent 2px),
        radial-gradient(circle at 10% 75%, #E8879A 4px, transparent 4px);
    opacity: 0.5;
    pointer-events: none;
}

.branch-left::before {
    content: '';
    position: absolute;
    bottom: 30%;
    left: 10%;
    width: 150px;
    height: 2px;
    background: linear-gradient(to right, #C49BA5 0%, transparent 100%);
    transform: rotate(-20deg);
}

/* 벚꽃 가지 장식 — 오른쪽 상단 */
.branch-right {
    position: absolute;
    right: -20px;
    top: 10px;
    width: 180px;
    height: 180px;
    background:
        radial-gradient(circle at 80% 20%, #E8879A 3px, transparent 3px),
        radial-gradient(circle at 70% 30%, #F4B6C2 4px, transparent 4px),
        radial-gradient(circle at 85% 35%, #FFB7C5 3px, transparent 3px),
        radial-gradient(circle at 60% 15%, #E8879A 2px, transparent 2px),
        radial-gradient(circle at 75% 10%, #F4B6C2 3px, transparent 3px),
        radial-gradient(circle at 90% 25%, #FFB7C5 2px, transparent 2px);
    opacity: 0.5;
    pointer-events: none;
}

.branch-right::before {
    content: '';
    position: absolute;
    top: 30%;
    right: 10%;
    width: 130px;
    height: 2px;
    background: linear-gradient(to left, #C49BA5 0%, transparent 100%);
    transform: rotate(20deg);
}

/* 중앙 벚꽃 반투명 */
.center-blossom-deco {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background:
        radial-gradient(circle at 50% 40%, rgba(232, 135, 154, 0.08) 20px, transparent 20px),
        radial-gradient(circle at 40% 55%, rgba(244, 182, 194, 0.06) 15px, transparent 15px),
        radial-gradient(circle at 60% 55%, rgba(244, 182, 194, 0.06) 15px, transparent 15px),
        radial-gradient(circle at 45% 45%, rgba(255, 183, 197, 0.05) 25px, transparent 25px),
        radial-gradient(circle at 55% 45%, rgba(255, 183, 197, 0.05) 25px, transparent 25px);
    pointer-events: none;
}

/* 우측 상단 꽃 아이콘 */
.flower-icon-deco {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 1.5rem;
    color: var(--primary-pink);
    opacity: 0.4;
    pointer-events: none;
}

.main-title-inner {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
}

.section-subtitle {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.1rem;
    color: var(--primary-pink);
    margin-bottom: 1.2rem;
}

.tab-labels {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.tab-label {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 0.8rem;
    letter-spacing: 0.25em;
    color: #8B6D60;
    padding-bottom: 4px;
    border-bottom: 1px solid #C49BA5;
}

.section-main-title {
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 400;
    font-size: 1.6rem;
    line-height: 1.7;
    color: var(--text-charcoal);
    margin-bottom: 1.5rem;
}

.pink-bold {
    font-weight: 700;
    color: var(--primary-pink);
}

.section-body {
    font-size: 0.92rem;
    color: #5A4A42;
    line-height: 1.8;
}

/* ═══════════════════════════════════
   섹션3 — 신뢰 카드
   ═══════════════════════════════════ */
.trust-section {
    background: var(--apricot);
    padding: 2rem 2rem 5rem;
    text-align: center;
}

.trust-label {
    font-size: 0.82rem;
    letter-spacing: 0.15em;
    color: #8B6D60;
    margin-bottom: 2rem;
    font-weight: 500;
}

.trust-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 420px;
    margin: 0 auto;
}

.trust-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem 1.8rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 4px 20px rgba(232, 135, 154, 0.15);
    transition: var(--transition-smooth);
}

.trust-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(232, 135, 154, 0.25);
}

.trust-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pink-soft), var(--pink-light));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.2rem;
}

.trust-card h3 {
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-charcoal);
}

/* ═══════════════════════════════════
   섹션4 — 메인 버튼
   ═══════════════════════════════════ */
.cta-section {
    background: #fff;
    padding: 5rem 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.btn-luxury {
    position: relative;
    padding: 1.1rem 2.5rem;
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--gold);
    background: linear-gradient(135deg, #FFFDF5, #FFF8E7);
    border: 2px solid var(--gold);
    border-radius: 50px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    transition: var(--transition-smooth);
    overflow: hidden;
}

.btn-luxury::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 185, 110, 0.2), transparent);
    animation: sheen 3s ease-in-out infinite;
}

@keyframes sheen {
    0%   { left: -100%; }
    50%  { left: 100%; }
    100% { left: 100%; }
}

.btn-luxury:hover {
    background: linear-gradient(135deg, #FFF8E7, #FFF0D0);
    box-shadow: 0 8px 25px rgba(197, 164, 90, 0.3);
    transform: translateY(-2px);
}

.btn-star {
    color: var(--gold);
    font-size: 0.75rem;
}

.cta-deco {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    color: var(--gold-light);
    text-transform: lowercase;
}

/* ═══════════════════════════════════
   Hub, Detail 기존 스타일 유지
   ═══════════════════════════════════ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.hub-wrap {
    max-width: 600px;
    margin: 0 auto;
    min-height: 100vh;
    background: var(--bg-color);
}

.hub-header-bar {
    padding: 1rem 1.5rem;
}

.hub-hero {
    text-align: center;
    padding: 2rem 1.5rem 1.5rem;
}

.hub-tag {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: var(--gold);
    margin-bottom: 0.8rem;
}

.hub-title {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.hub-title-sub {
    font-weight: 400;
    font-size: 1.2rem;
    color: var(--text-grey);
}

.hub-desc {
    font-size: 0.9rem;
    color: var(--text-grey);
    line-height: 1.7;
}

.home-divider {
    width: 40px;
    height: 2px;
    background: var(--gold);
    margin: 1.5rem auto;
}

.hub-section-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-grey);
    letter-spacing: 0.08em;
    padding: 0 1.5rem;
    margin-bottom: 0.8rem;
}

.hub-grid-large {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    padding: 0 1.5rem;
}

.hub-grid-small {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    padding: 0 1.5rem;
}

.hub-card {
    background: rgba(255,255,255,0.82);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    cursor: pointer;
    border: 1px solid rgba(212,175,55,0.15);
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.hub-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
}

.hub-card.card-large {
    padding: 1.8rem 1.8rem 1.5rem;
    min-height: 170px;
}

.hub-card.card-large .hub-card-icon { font-size: 2.2rem; margin-bottom: 0.8rem; display: block; }
.hub-card.card-large h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--text-charcoal); }
.hub-card.card-large p { font-size: 0.85rem; color: var(--text-grey); margin-bottom: 1rem; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.hub-card.card-small {
    padding: 1.4rem 1.2rem 1.2rem;
    min-height: 175px;
}

.hub-card.card-small .hub-card-icon { font-size: 1.8rem; margin-bottom: 0.7rem; display: block; }
.hub-card.card-small h3 { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.4rem; color: var(--text-charcoal); }
.hub-card.card-small p { font-size: 0.78rem; color: var(--text-grey); margin-bottom: 0.8rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.btn-enter {
    align-self: flex-start;
    background: none;
    border: none;
    color: var(--gold);
    font-weight: 600;
    font-size: 0.82rem;
    cursor: pointer;
    padding: 0;
    transition: var(--transition-smooth);
}
.hub-card:hover .btn-enter { transform: translateX(4px); }

.hub-bottom-space {
    height: 3rem;
}

/* Buttons */
.btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: white;
    box-shadow: 0 10px 20px rgba(197, 164, 90, 0.3);
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(197, 164, 90, 0.4);
}

.btn-back {
    align-self: flex-start;
    background: none;
    border: none;
    color: var(--text-grey);
    cursor: pointer;
    margin-bottom: 2rem;
    font-size: 1rem;
}

/* Detail View & Tabs */
.view-header {
    margin-bottom: 3rem;
    text-align: center;
}

.view-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-charcoal);
}

.view-header p {
    color: var(--text-grey);
}

.detail-tabs {
    display: flex;
    overflow-x: auto;
    gap: 0.5rem;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
}

.detail-tabs::-webkit-scrollbar {
    display: none;
}

.tab {
    padding: 0.6rem 1.2rem;
    background: white;
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    white-space: nowrap;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    color: var(--text-grey);
}

.tab.active {
    background: var(--gold);
    color: white;
    border-color: var(--gold);
}

.detail-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--card-shadow);
    animation: slideUp 0.5s ease-out;
}

.diagnosis-container, .result-container {
    animation: fadeIn 0.5s ease;
}

.score-circle {
    box-shadow: 0 0 20px rgba(197, 164, 90, 0.2);
}

.q-item button:hover {
    border-color: var(--gold) !important;
    background: #fffcf5 !important;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ═══════════════════════════════════
   반응형
   ═══════════════════════════════════ */
@media (max-width: 768px) {
    .hero-inner {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .hero-text {
        text-align: center;
    }

    .hero-brand {
        font-size: 2.4rem;
    }

    .hero-name {
        font-size: 1.4rem;
    }

    .hero-photo {
        flex: 0 0 auto;
    }

    .hero-photo img {
        width: 220px;
    }

    .section-main-title {
        font-size: 1.35rem;
    }

    .detail-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-brand {
        font-size: 2rem;
    }

    .hero-name {
        font-size: 1.2rem;
    }

    .hero-photo img {
        width: 180px;
    }

    .section-main-title {
        font-size: 1.2rem;
    }

    .btn-luxury {
        font-size: 0.85rem;
        padding: 1rem 1.8rem;
    }

    .main-title-section {
        padding: 3.5rem 1.5rem;
    }
}
