@charset "utf-8";

/* ============================================
   텔레그램 광도 곡선(Luminance Curves) 가이드
   접두사: tg-crv- (기존 사이트 오염 방지)
   컬러 톤: 바이올렛(Violet) + 앰버(Amber) + 딥 네이비(Deep Navy)
============================================ */

:root {
    --tgcr-violet: #7c3aed;
    --tgcr-violet-dark: #6d28d9;
    --tgcr-violet-deep: #1e1b4b;
    --tgcr-violet-light: #f5f3ff;
    --tgcr-violet-border: #c4b5fd;
    --tgcr-amber: #d97706;
    --tgcr-amber-light: #fffbeb;
    --tgcr-amber-border: #fde68a;
    --tgcr-amber-bright: #fbbf24;
    --tgcr-slate-900: #0f172a;
    --tgcr-slate-700: #334155;
    --tgcr-slate-500: #64748b;
    --tgcr-slate-300: #cbd5e1;
    --tgcr-slate-200: #e2e8f0;
    --tgcr-slate-100: #f1f5f9;
    --tgcr-red: #ef4444;
    --tgcr-green: #22c55e;
    --tgcr-blue: #3b82f6;
    --tgcr-bg: #f0f0ff;
    --tgcr-white: #ffffff;
    --tgcr-radius: 14px;
}

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

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

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

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

/* ─── 히어로 헤더 ─── */
.tg-crv-hero {
    background: linear-gradient(145deg, #020617 0%, #1e1b4b 30%, #7c3aed 65%, #a78bfa 100%);
    color: var(--tgcr-white);
    padding: 60px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.tg-crv-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-crv-hero::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    border: 40px solid rgba(167, 139, 250, 0.04);
    border-radius: 50%;
    bottom: -60px;
    left: -50px;
}

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

/* 히어로 장식 그래프 */
.tg-crv-hero__graph {
    position: absolute;
    top: 50%;
    right: 5%;
    width: 180px;
    height: 180px;
    transform: translateY(-50%);
    opacity: 0.35;
    pointer-events: none;
}

.tg-crv-hero__graph svg {
    width: 100%;
    height: 100%;
}

.tg-crv-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(124, 58, 237, 0.15);
    color: var(--tgcr-violet-border);
    font-size: 14px;
    font-weight: 700;
    padding: 8px 20px;
    border-radius: 100px;
    margin-bottom: 22px;
    border: 1px solid rgba(167, 139, 250, 0.15);
    backdrop-filter: blur(4px);
}

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

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

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

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

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

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

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

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

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

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

.tg-crv-section--demo {
    background: linear-gradient(135deg, #faf5ff 0%, #f5f3ff 50%, #ede9fe 100%);
    border-color: var(--tgcr-violet-border);
}

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

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

.tg-crv-section__num--accent {
    color: var(--tgcr-violet);
    opacity: 0.25;
}

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

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

.tg-crv-section__title--light {
    color: var(--tgcr-white);
}

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

/* ─── 3영역 카드 (Shadows/Midtones/Highlights) ─── */
.tg-crv-zones {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.tg-crv-zone {
    padding: 24px 20px;
    border-radius: 12px;
    border: 1px solid var(--tgcr-slate-200);
    background-color: var(--tgcr-white);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tg-crv-zone:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.1);
}

.tg-crv-zone__icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin: 0 auto 12px;
}

/* 그림자 카드 */
.tg-crv-zone--shadow {
    border-color: #e2e8f0;
}

.tg-crv-zone--shadow .tg-crv-zone__icon {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: #94a3b8;
}

/* 중간톤 카드 */
.tg-crv-zone--mid {
    border-color: var(--tgcr-violet-border);
}

.tg-crv-zone--mid .tg-crv-zone__icon {
    background: linear-gradient(135deg, var(--tgcr-violet) 0%, var(--tgcr-violet-dark) 100%);
    color: var(--tgcr-white);
}

/* 하이라이트 카드 */
.tg-crv-zone--high {
    border-color: var(--tgcr-amber-border);
}

.tg-crv-zone--high .tg-crv-zone__icon {
    background: linear-gradient(135deg, var(--tgcr-amber) 0%, var(--tgcr-amber-bright) 100%);
    color: var(--tgcr-white);
}

.tg-crv-zone__title {
    font-size: 16px;
    font-weight: 800;
    color: var(--tgcr-slate-900);
    margin-bottom: 8px;
}

.tg-crv-zone__text {
    font-size: 14px;
    line-height: 1.6;
}

/* ─── 6단계 타임라인 ─── */
.tg-crv-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    padding-left: 32px;
}

.tg-crv-timeline::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--tgcr-violet) 0%, var(--tgcr-amber-bright) 100%);
    border-radius: 2px;
}

.tg-crv-timeline__item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 14px 0;
    position: relative;
}

.tg-crv-timeline__bullet {
    position: absolute;
    left: -32px;
    top: 16px;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--tgcr-violet) 0%, var(--tgcr-violet-dark) 100%);
    color: var(--tgcr-white);
    font-weight: 900;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 0 4px var(--tgcr-violet-light);
}

.tg-crv-timeline__content {
    flex: 1;
    background-color: var(--tgcr-white);
    padding: 16px 20px;
    border-radius: 10px;
    border: 1px solid var(--tgcr-violet-border);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tg-crv-timeline__content:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.08);
}

.tg-crv-timeline__title {
    font-size: 15px;
    font-weight: 700;
    color: var(--tgcr-slate-900);
    margin-bottom: 4px;
}

.tg-crv-timeline__title i {
    color: var(--tgcr-violet);
    margin-right: 6px;
    font-size: 14px;
}

.tg-crv-timeline__text {
    font-size: 14px;
    line-height: 1.6;
}

/* ─── 인터랙티브 곡선 데모 ─── */
.tg-crv-demo {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tg-crv-demo__canvas-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.tg-crv-demo__canvas {
    width: 100%;
    max-width: 300px;
    height: auto;
    aspect-ratio: 1;
    border-radius: 12px;
    border: 2px solid var(--tgcr-violet-border);
    background-color: #1e1b4b;
    cursor: pointer;
    touch-action: none;
}

.tg-crv-demo__channels {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.tg-crv-demo__ch-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border: 1px solid var(--tgcr-slate-200);
    border-radius: 100px;
    background-color: var(--tgcr-white);
    color: var(--tgcr-slate-500);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.tg-crv-demo__ch-btn:hover {
    border-color: var(--tgcr-violet-border);
    color: var(--tgcr-violet);
}

.tg-crv-demo__ch-btn--active {
    background-color: var(--tgcr-violet);
    color: var(--tgcr-white);
    border-color: var(--tgcr-violet);
}

/* 채널별 아이콘 색상 */
.tg-crv-demo__ch-btn[data-channel="white"] i {
    color: #e2e8f0;
}

.tg-crv-demo__ch-btn[data-channel="red"] i {
    color: var(--tgcr-red);
}

.tg-crv-demo__ch-btn[data-channel="green"] i {
    color: var(--tgcr-green);
}

.tg-crv-demo__ch-btn[data-channel="blue"] i {
    color: var(--tgcr-blue);
}

.tg-crv-demo__ch-btn--active i {
    color: var(--tgcr-white) !important;
}

.tg-crv-demo__reset-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border: 1px solid var(--tgcr-amber-border);
    border-radius: 100px;
    background-color: var(--tgcr-amber-light);
    color: var(--tgcr-amber);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.tg-crv-demo__reset-btn:hover {
    background-color: var(--tgcr-amber);
    color: var(--tgcr-white);
}

/* 미리보기 영역 */
.tg-crv-demo__preview {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tg-crv-demo__preview-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--tgcr-violet);
    display: flex;
    align-items: center;
    gap: 6px;
}

.tg-crv-demo__preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.tg-crv-demo__swatch {
    height: 60px;
    border-radius: 8px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 8px;
    transition: background-color 0.15s ease;
}

.tg-crv-demo__swatch--dark {
    background-color: #1e1b4b;
}

.tg-crv-demo__swatch--mid {
    background-color: #6d6d6d;
}

.tg-crv-demo__swatch--light {
    background-color: #e0e0e0;
}

.tg-crv-demo__swatch-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.tg-crv-demo__swatch--light .tg-crv-demo__swatch-label {
    color: rgba(0, 0, 0, 0.4);
    text-shadow: none;
}

.tg-crv-demo__gradient-bar {
    height: 24px;
    border-radius: 6px;
    background: linear-gradient(to right, #000 0%, #808080 50%, #fff 100%);
    transition: background 0.15s ease;
}

/* ─── 직장인 팁 2열 ─── */
.tg-crv-tips {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.tg-crv-tip {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(167, 139, 250, 0.12);
    padding: 22px;
    border-radius: 10px;
    position: relative;
}

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

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

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

.tg-crv-tip__text {
    font-size: 14px;
    color: var(--tgcr-slate-300);
    margin-bottom: 12px;
}

.tg-crv-tip__text strong {
    color: var(--tgcr-white);
}

/* 미니 곡선 그래프 */
.tg-crv-tip__mini-graph {
    width: 80px;
    height: 80px;
    padding: 6px;
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(167, 139, 250, 0.15);
    border-radius: 8px;
    margin-left: auto;
}

.tg-crv-tip__mini-graph svg {
    width: 100%;
    height: 100%;
}

/* ─── 장점 카드 ─── */
.tg-crv-advantages {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.tg-crv-advantage {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px 20px;
    background: linear-gradient(135deg, var(--tgcr-violet-light) 0%, #ede9fe60 100%);
    border: 1px solid var(--tgcr-violet-border);
    border-radius: 12px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tg-crv-advantage:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.08);
}

.tg-crv-advantage__icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--tgcr-violet) 0%, var(--tgcr-violet-dark) 100%);
    color: var(--tgcr-white);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.tg-crv-advantage__body {
    flex: 1;
}

.tg-crv-advantage__title {
    font-size: 17px;
    font-weight: 800;
    color: var(--tgcr-slate-900);
    margin-bottom: 6px;
}

.tg-crv-advantage__text {
    font-size: 14px;
    line-height: 1.6;
}

/* ─── 결론 및 요약 ─── */
.tg-crv-summary {
    background: linear-gradient(135deg, #020617 0%, var(--tgcr-violet-deep) 50%, var(--tgcr-violet-dark) 100%);
    color: var(--tgcr-white);
    padding: 44px 28px;
    border-radius: var(--tgcr-radius);
    text-align: center;
    box-shadow: 0 10px 30px rgba(30, 27, 75, 0.4);
}

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

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

.tg-crv-summary strong {
    color: var(--tgcr-white);
}

/* 하이라이트 3열 */
.tg-crv-summary__highlights {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 24px 0;
}

.tg-crv-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(167, 139, 250, 0.12);
    border-radius: 10px;
}

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

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

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

/* 체크리스트 */
.tg-crv-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-crv-summary__checklist li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 10px;
    font-size: 15px;
    color: #ede9fe;
}

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

.tg-crv-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(--tgcr-violet-border);
}

.tg-crv-summary__checklist strong {
    color: var(--tgcr-white);
}

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

.tg-crv-summary__footer strong {
    color: var(--tgcr-white);
}

/* ============================================
   반응형 미디어 쿼리 (모바일 퍼스트)
============================================ */
@media (min-width: 768px) {
    .tg-crv-hero {
        padding: 80px 40px;
    }

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

    .tg-crv-hero__graph {
        width: 260px;
        height: 260px;
    }

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

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

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

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

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

    /* 3영역 카드 3열 */
    .tg-crv-zones {
        grid-template-columns: repeat(3, 1fr);
    }

    /* 팁 2열 */
    .tg-crv-tips {
        grid-template-columns: repeat(2, 1fr);
    }

    /* 장점 2열 */
    .tg-crv-advantages {
        grid-template-columns: repeat(2, 1fr);
    }

    /* 하이라이트 3열 */
    .tg-crv-summary__highlights {
        grid-template-columns: repeat(3, 1fr);
    }

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

    /* 인터랙티브 데모: 가로 배치 */
    .tg-crv-demo {
        flex-direction: row;
        align-items: flex-start;
    }

    .tg-crv-demo__canvas-wrap {
        flex: 0 0 340px;
    }

    .tg-crv-demo__canvas {
        max-width: 340px;
    }

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

    .tg-crv-demo__swatch {
        height: 70px;
    }
}

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

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

    .tg-crv-demo__canvas-wrap {
        flex: 0 0 380px;
    }

    .tg-crv-demo__canvas {
        max-width: 380px;
    }

    .tg-crv-demo__swatch {
        height: 80px;
    }
}

/* ============================================
   스크롤 등장 애니메이션 (JS 연동)
============================================ */
.tg-crv-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-crv-motion.is-visible {
    opacity: 1;
    transform: translateY(0);
}
