@charset "utf-8";

/* ============================================
   텔레그램 미디어 개선(Enhance) 가이드
   접두사: tg-enh- (기존 사이트 오염 방지)
   CSS 변수 접두사: --tgen-
   컬러 톤: 바이올렛 퍼플(Violet) + 앰버(Amber)
============================================ */

:root {
    --tgen-violet: #7c3aed;
    --tgen-violet-dark: #6d28d9;
    --tgen-violet-deep: #4c1d95;
    --tgen-violet-light: #f5f3ff;
    --tgen-violet-border: #c4b5fd;
    --tgen-amber: #f59e0b;
    --tgen-amber-dark: #d97706;
    --tgen-amber-light: #fffbeb;
    --tgen-amber-border: #fcd34d;
    --tgen-slate-900: #0f172a;
    --tgen-slate-700: #334155;
    --tgen-slate-500: #64748b;
    --tgen-slate-300: #cbd5e1;
    --tgen-slate-200: #e2e8f0;
    --tgen-slate-100: #f1f5f9;
    --tgen-bg: #faf8ff;
    --tgen-white: #ffffff;
    --tgen-radius: 14px;
}

/* ─── 래퍼 ─── */
.tg-enh-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    color: var(--tgen-slate-500);
    background-color: var(--tgen-bg);
    box-sizing: border-box;
    line-height: 1.7;
    overflow: hidden;
    padding-bottom: 60px;
}

.tg-enh-wrapper *,
.tg-enh-wrapper *::before,
.tg-enh-wrapper *::after {
    box-sizing: inherit;
    margin: 0;
    padding: 0;
}

.tg-enh-wrapper strong {
    font-weight: 700;
    color: var(--tgen-slate-900);
}

.tg-enh-wrapper mark {
    background: linear-gradient(120deg, var(--tgen-violet-light) 0%, #ddd6fe 100%);
    color: var(--tgen-violet-deep);
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
}

/* ─── 히어로 ─── */
.tg-enh-hero {
    background: linear-gradient(145deg, #4c1d95 0%, #5b21b6 30%, #7c3aed 60%, #a78bfa 100%);
    color: var(--tgen-white);
    padding: 60px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.tg-enh-hero::before {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    border: 60px solid rgba(124, 58, 237, 0.06);
    border-radius: 50%;
    top: -100px;
    right: -100px;
}

.tg-enh-hero::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    border: 40px solid rgba(196, 181, 253, 0.04);
    border-radius: 50%;
    bottom: -60px;
    left: -50px;
}

.tg-enh-hero__floating {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
}

.tg-enh-hero__float-icon {
    position: absolute;
    font-size: 28px;
    opacity: 0.18;
    animation: tg-enh-float 6s ease-in-out infinite;
}

.tg-enh-hero__float-icon i {
    color: rgba(255, 255, 255, 0.9);
}

.tg-enh-hero__float-icon--1 {
    top: 14%;
    left: 8%;
    animation-delay: 0s;
}

.tg-enh-hero__float-icon--2 {
    top: 20%;
    right: 12%;
    animation-delay: 1s;
    font-size: 24px;
}

.tg-enh-hero__float-icon--3 {
    bottom: 22%;
    left: 15%;
    animation-delay: 2s;
}

.tg-enh-hero__float-icon--4 {
    bottom: 16%;
    right: 8%;
    animation-delay: 3s;
    font-size: 22px;
}

.tg-enh-hero__float-icon--5 {
    top: 55%;
    left: 4%;
    animation-delay: 4s;
    font-size: 20px;
}

.tg-enh-hero__float-icon--6 {
    top: 10%;
    right: 30%;
    animation-delay: 5s;
    font-size: 18px;
}

@keyframes tg-enh-float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-12px) rotate(8deg);
    }
}

.tg-enh-hero__inner {
    position: relative;
    z-index: 1;
}

.tg-enh-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(245, 158, 11, 0.2);
    color: var(--tgen-amber-border);
    font-size: 14px;
    font-weight: 700;
    padding: 8px 20px;
    border-radius: 100px;
    margin-bottom: 22px;
    border: 1px solid rgba(252, 211, 77, 0.25);
    backdrop-filter: blur(4px);
}

.tg-enh-hero__badge i {
    font-size: 16px;
}

.tg-enh-hero__title {
    font-size: 28px;
    font-weight: 900;
    line-height: 1.35;
    margin-bottom: 18px;
    color: var(--tgen-white);
}

.tg-enh-hero__desc {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.6);
    max-width: 620px;
    margin: 0 auto;
}

/* ─── 메인 ─── */
.tg-enh-main {
    padding: 30px 20px 0;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* ─── 도입부 ─── */
.tg-enh-intro {
    background-color: var(--tgen-white);
    padding: 28px 24px;
    border-radius: var(--tgen-radius);
    border-left: 4px solid var(--tgen-violet);
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
}

.tg-enh-intro p {
    font-size: 16px;
    margin-bottom: 14px;
}

.tg-enh-intro p:last-child {
    margin-bottom: 0;
}

/* ─── 섹션 공통 ─── */
.tg-enh-section {
    background-color: var(--tgen-white);
    padding: 34px 24px;
    border-radius: var(--tgen-radius);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--tgen-slate-200);
}

.tg-enh-section--accent {
    background: linear-gradient(135deg, var(--tgen-violet-light) 0%, #ddd6fe40 100%);
    border-color: var(--tgen-violet-border);
}

.tg-enh-section--dark {
    background: linear-gradient(135deg, var(--tgen-slate-900) 0%, #1e293b 100%);
    border-color: var(--tgen-slate-700);
    color: var(--tgen-slate-300);
}

.tg-enh-section--demo {
    background: linear-gradient(135deg, var(--tgen-amber-light) 0%, #fde68a40 50%, #fef3c740 100%);
    border-color: var(--tgen-amber-border);
}

.tg-enh-section__head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
}

.tg-enh-section__num {
    font-size: 38px;
    font-weight: 900;
    color: var(--tgen-violet);
    opacity: 0.2;
    line-height: 1;
    flex-shrink: 0;
}

.tg-enh-section__num--accent {
    opacity: 0.25;
}

.tg-enh-section__tip-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--tgen-amber) 0%, #fbbf24 100%);
    color: var(--tgen-white);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.tg-enh-section__title {
    font-size: 20px;
    font-weight: 800;
    color: var(--tgen-slate-900);
    line-height: 1.35;
    padding-top: 6px;
}

.tg-enh-section__title--light {
    color: var(--tgen-white);
}

.tg-enh-section__desc {
    font-size: 16px;
    margin-bottom: 24px;
}

/* ─── 특징 카드 ─── */
.tg-enh-feature-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.tg-enh-feature-card {
    padding: 22px;
    border-radius: 12px;
    background-color: var(--tgen-white);
    border: 1px solid var(--tgen-violet-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tg-enh-feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.12);
}

.tg-enh-feature-card__icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--tgen-violet) 0%, var(--tgen-violet-dark) 100%);
    color: var(--tgen-white);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 12px;
}

.tg-enh-feature-card__title {
    font-size: 16px;
    font-weight: 800;
    color: var(--tgen-slate-900);
    margin-bottom: 6px;
}

.tg-enh-feature-card__desc {
    font-size: 14px;
    line-height: 1.65;
}

/* ─── 스텝 카드 ─── */
.tg-enh-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tg-enh-step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background-color: var(--tgen-white);
    border: 1px solid var(--tgen-slate-200);
    border-radius: 12px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tg-enh-step:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.1);
}

.tg-enh-step__icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--tgen-violet) 0%, var(--tgen-violet-dark) 100%);
    color: var(--tgen-white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.tg-enh-step__body {
    flex: 1;
}

.tg-enh-step__num {
    font-size: 11px;
    font-weight: 800;
    color: var(--tgen-amber);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.tg-enh-step__title {
    font-size: 16px;
    font-weight: 800;
    color: var(--tgen-slate-900);
    margin-bottom: 4px;
}

.tg-enh-step__text {
    font-size: 14px;
    line-height: 1.6;
}

/* ─── Enhance 데모 ─── */
.tg-enh-demo {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* 미리보기 */
.tg-enh-demo__preview {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--tgen-amber-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.tg-enh-demo__image-wrap {
    position: relative;
}

/* CSS 풍경 시뮬레이션 */
.tg-enh-demo__scene {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    transition: filter 0.3s ease;
}

.tg-enh-demo__sky {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(180deg, #4a5568 0%, #718096 40%, #a0aec0 100%);
    transition: background 0.4s ease;
}

.tg-enh-demo__mountain {
    position: absolute;
    bottom: 30%;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 50%, #1a202c 100%);
    clip-path: polygon(0% 100%, 15% 30%, 30% 60%, 50% 10%, 70% 50%, 85% 20%, 100% 100%);
    transition: background 0.4s ease;
}

.tg-enh-demo__ground {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 35%;
    background: linear-gradient(180deg, #4a5568 0%, #2d3748 100%);
    transition: background 0.4s ease;
}

.tg-enh-demo__sun {
    position: absolute;
    top: 18%;
    right: 22%;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: radial-gradient(circle, #a0aec0 0%, #71809640 70%);
    transition: background 0.4s ease, box-shadow 0.4s ease;
}

.tg-enh-demo__cloud {
    position: absolute;
    width: 60px;
    height: 20px;
    background: rgba(160, 174, 192, 0.3);
    border-radius: 20px;
    transition: background 0.4s ease;
}

.tg-enh-demo__cloud--1 {
    top: 20%;
    left: 15%;
}

.tg-enh-demo__cloud--2 {
    top: 28%;
    left: 55%;
    width: 50px;
    height: 16px;
}

.tg-enh-demo__value-display {
    position: absolute;
    bottom: 12px;
    right: 12px;
    padding: 6px 14px;
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.6);
    color: var(--tgen-white);
    font-size: 13px;
    font-weight: 700;
    backdrop-filter: blur(4px);
}

/* 슬라이더 컨트롤 */
.tg-enh-demo__controls {
    background-color: var(--tgen-white);
    padding: 22px 20px;
    border-radius: 12px;
    border: 1px solid var(--tgen-amber-border);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tg-enh-demo__slider-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tg-enh-demo__slider-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--tgen-slate-700);
}

.tg-enh-demo__slider-label i {
    color: var(--tgen-violet);
    margin-right: 4px;
}

.tg-enh-demo__slider-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tg-enh-demo__slider-min,
.tg-enh-demo__slider-max {
    font-size: 11px;
    font-weight: 600;
    color: var(--tgen-slate-300);
    width: 30px;
    text-align: center;
    flex-shrink: 0;
}

.tg-enh-demo__slider {
    flex: 1;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(90deg, var(--tgen-slate-200) 0%, var(--tgen-violet-border) 100%);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}

.tg-enh-demo__slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--tgen-violet) 0%, var(--tgen-violet-dark) 100%);
    border: 3px solid var(--tgen-white);
    box-shadow: 0 2px 6px rgba(124, 58, 237, 0.3);
    cursor: pointer;
}

.tg-enh-demo__slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--tgen-violet) 0%, var(--tgen-violet-dark) 100%);
    border: 3px solid var(--tgen-white);
    box-shadow: 0 2px 6px rgba(124, 58, 237, 0.3);
    cursor: pointer;
}

.tg-enh-demo__slider--exposure {
    background: linear-gradient(90deg, #1e293b 0%, var(--tgen-amber-border) 100%);
}

.tg-enh-demo__slider--exposure::-webkit-slider-thumb {
    background: linear-gradient(135deg, var(--tgen-amber) 0%, var(--tgen-amber-dark) 100%);
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3);
}

.tg-enh-demo__slider--exposure::-moz-range-thumb {
    background: linear-gradient(135deg, var(--tgen-amber) 0%, var(--tgen-amber-dark) 100%);
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3);
}

.tg-enh-demo__slider--contrast {
    background: linear-gradient(90deg, var(--tgen-slate-300) 0%, var(--tgen-slate-900) 100%);
}

.tg-enh-demo__slider--contrast::-webkit-slider-thumb {
    background: linear-gradient(135deg, var(--tgen-slate-700) 0%, var(--tgen-slate-900) 100%);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.3);
}

.tg-enh-demo__slider--contrast::-moz-range-thumb {
    background: linear-gradient(135deg, var(--tgen-slate-700) 0%, var(--tgen-slate-900) 100%);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.3);
}

.tg-enh-demo__reset-btn {
    width: 100%;
    padding: 12px;
    background-color: var(--tgen-slate-100);
    color: var(--tgen-slate-500);
    border: 1px solid var(--tgen-slate-200);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.tg-enh-demo__reset-btn:hover {
    background-color: var(--tgen-slate-200);
    color: var(--tgen-slate-700);
}

/* ─── 팁 ─── */
.tg-enh-tips {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.tg-enh-tip {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(196, 181, 253, 0.12);
    padding: 22px;
    border-radius: 10px;
    position: relative;
}

.tg-enh-tip__number {
    position: absolute;
    top: -10px;
    left: 18px;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--tgen-amber) 0%, #fbbf24 100%);
    color: var(--tgen-white);
    font-weight: 900;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.tg-enh-tip__title {
    font-size: 16px;
    font-weight: 700;
    color: var(--tgen-white);
    margin-bottom: 8px;
    padding-top: 6px;
}

.tg-enh-tip__title i {
    color: var(--tgen-violet-border);
    margin-right: 4px;
}

.tg-enh-tip__text {
    font-size: 14px;
    color: var(--tgen-slate-300);
}

.tg-enh-tip__text strong {
    color: var(--tgen-white);
}

/* ─── 결론 및 요약 ─── */
.tg-enh-summary {
    background: linear-gradient(135deg, #4c1d95 0%, #5b21b6 50%, var(--tgen-violet-dark) 100%);
    color: var(--tgen-white);
    padding: 44px 28px;
    border-radius: var(--tgen-radius);
    text-align: center;
    box-shadow: 0 10px 30px rgba(76, 29, 149, 0.4);
}

.tg-enh-summary__title {
    font-size: 24px;
    font-weight: 800;
    color: var(--tgen-white);
    margin-bottom: 20px;
}

.tg-enh-summary__body p {
    font-size: 16px;
    margin-bottom: 14px;
    color: var(--tgen-violet-border);
}

.tg-enh-summary strong {
    color: var(--tgen-white);
}

.tg-enh-summary__highlights {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 24px 0;
}

.tg-enh-summary__highlight {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 12px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(196, 181, 253, 0.12);
    border-radius: 10px;
}

.tg-enh-summary__highlight-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--tgen-amber) 0%, #fbbf24 100%);
    color: var(--tgen-white);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.tg-enh-summary__highlight strong {
    font-size: 13px;
    color: var(--tgen-white);
}

.tg-enh-summary__highlight span {
    font-size: 11px;
    color: var(--tgen-violet-border);
    text-align: center;
}

.tg-enh-summary__checklist {
    list-style: none;
    display: inline-block;
    text-align: left;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 24px 32px;
    border-radius: 12px;
    margin: 0 0 24px;
}

.tg-enh-summary__checklist li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 10px;
    font-size: 15px;
    color: #c4b5fd;
}

.tg-enh-summary__checklist li:last-child {
    margin-bottom: 0;
}

.tg-enh-summary__checklist li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 13px;
    color: var(--tgen-amber-border);
}

.tg-enh-summary__checklist strong {
    color: var(--tgen-white);
}

.tg-enh-summary__footer {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 14px;
    color: var(--tgen-violet-border);
    line-height: 1.8;
}

.tg-enh-summary__footer strong {
    color: var(--tgen-white);
}

/* ============================================
   반응형
============================================ */
@media (min-width: 768px) {
    .tg-enh-hero {
        padding: 80px 40px;
    }

    .tg-enh-hero__title {
        font-size: 38px;
    }

    .tg-enh-main {
        padding: 40px 36px 0;
        gap: 40px;
    }

    .tg-enh-intro {
        padding: 36px 32px;
    }

    .tg-enh-section {
        padding: 40px 36px;
    }

    .tg-enh-section__title {
        font-size: 24px;
    }

    .tg-enh-section__num {
        font-size: 44px;
    }

    .tg-enh-feature-cards {
        grid-template-columns: repeat(3, 1fr);
    }

    .tg-enh-tips {
        grid-template-columns: repeat(3, 1fr);
    }

    .tg-enh-demo__scene {
        height: 300px;
    }

    .tg-enh-summary__highlights {
        grid-template-columns: repeat(3, 1fr);
    }

    .tg-enh-summary {
        padding: 56px 44px;
    }
}

@media (min-width: 1024px) {
    .tg-enh-hero__title {
        font-size: 44px;
    }

    .tg-enh-main {
        gap: 46px;
    }

    .tg-enh-demo {
        flex-direction: row;
    }

    .tg-enh-demo__preview {
        flex: 1;
    }

    .tg-enh-demo__controls {
        flex: 0 0 320px;
    }
}

/* ============================================
   스크롤 등장 애니메이션
============================================ */
.tg-enh-motion {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.tg-enh-motion.is-visible {
    opacity: 1;
    transform: translateY(0);
}