@charset "utf-8";

/* ============================================
   텔레그램 클라우드 연동 & 파일 관리 가이드
   접두사: tg-cloud- (기존 사이트 오염 방지)
   컬러 톤: 인디고(Indigo) + 스카이블루
============================================ */

:root {
    --tgcl-indigo: #4f46e5;
    --tgcl-indigo-dark: #4338ca;
    --tgcl-indigo-deep: #312e81;
    --tgcl-indigo-light: #eef2ff;
    --tgcl-indigo-border: #a5b4fc;
    --tgcl-sky: #0ea5e9;
    --tgcl-sky-light: #e0f2fe;
    --tgcl-slate-900: #0f172a;
    --tgcl-slate-700: #334155;
    --tgcl-slate-500: #64748b;
    --tgcl-slate-200: #e2e8f0;
    --tgcl-slate-100: #f1f5f9;
    --tgcl-bg: #f8f9fc;
    --tgcl-white: #ffffff;
    --tgcl-amber: #f59e0b;
    --tgcl-amber-light: #fffbeb;
    --tgcl-amber-border: #fde68a;
    --tgcl-green: #10b981;
    --tgcl-radius: 14px;
}

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

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

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

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

.tg-cloud-wrapper code {
    font-family: 'Consolas', 'Courier New', monospace;
    background-color: var(--tgcl-slate-100);
    color: var(--tgcl-indigo-dark);
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: 600;
    border: 1px solid var(--tgcl-slate-200);
}

/* ─── 히어로 헤더 ─── */
.tg-cloud-hero {
    background: linear-gradient(145deg, #0f172a 0%, #312e81 40%, #4f46e5 100%);
    color: var(--tgcl-white);
    padding: 60px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.tg-cloud-hero::before {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    border: 60px solid rgba(79, 70, 229, 0.08);
    border-radius: 50%;
    top: -100px;
    right: -100px;
}

.tg-cloud-hero::after {
    content: "";
    position: absolute;
    width: 200px;
    height: 200px;
    border: 35px solid rgba(14, 165, 233, 0.06);
    border-radius: 50%;
    bottom: -50px;
    left: -40px;
}

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

.tg-cloud-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--tgcl-white);
    font-size: 14px;
    font-weight: 700;
    padding: 8px 20px;
    border-radius: 100px;
    margin-bottom: 22px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
}

.tg-cloud-hero__badge i {
    font-size: 16px;
    color: var(--tgcl-sky);
}

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

.tg-cloud-hero__desc {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto;
}

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

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

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

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

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

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

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

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

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

/* ─── 특징 카드 (01) ─── */
.tg-cloud-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.tg-cloud-feature {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background-color: var(--tgcl-slate-100);
    padding: 20px;
    border-radius: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tg-cloud-feature:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.tg-cloud-feature__icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--tgcl-indigo) 0%, var(--tgcl-sky) 100%);
    color: var(--tgcl-white);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.tg-cloud-feature__title {
    font-size: 16px;
    font-weight: 700;
    color: var(--tgcl-slate-900);
    margin-bottom: 4px;
}

.tg-cloud-feature__text {
    font-size: 14px;
}

/* ─── 스텝 리스트 ─── */
.tg-cloud-steps {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.tg-cloud-steps--compact {
    gap: 10px;
    margin-bottom: 0;
}

.tg-cloud-step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background-color: var(--tgcl-slate-100);
    padding: 16px 18px;
    border-radius: 10px;
    border-left: 3px solid var(--tgcl-indigo-border);
    transition: border-left-color 0.2s ease;
}

.tg-cloud-step:hover {
    border-left-color: var(--tgcl-indigo);
}

.tg-cloud-step__marker {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--tgcl-indigo) 0%, var(--tgcl-indigo-dark) 100%);
    color: var(--tgcl-white);
    font-weight: 800;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-top: 1px;
}

.tg-cloud-step__text {
    font-size: 15px;
    padding-top: 3px;
}

/* ─── 콜아웃 (해시태그 팁) ─── */
.tg-cloud-callout {
    display: flex;
    gap: 14px;
    padding: 20px;
    background-color: var(--tgcl-sky-light);
    border: 1px solid #bae6fd;
    border-radius: 10px;
}

.tg-cloud-callout__icon {
    font-size: 26px;
    flex-shrink: 0;
    line-height: 1;
    color: var(--tgcl-sky);
}

.tg-cloud-callout__title {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #0c4a6e;
    margin-bottom: 6px;
}

.tg-cloud-callout__text {
    font-size: 14px;
    color: #0369a1;
}

/* ─── 서브 섹션 ─── */
.tg-cloud-subsection {
    background-color: var(--tgcl-slate-100);
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 16px;
}

.tg-cloud-subsection:last-child {
    margin-bottom: 0;
}

.tg-cloud-subsection--tips {
    background-color: var(--tgcl-amber-light);
    border: 1px solid var(--tgcl-amber-border);
}

.tg-cloud-subsection__title {
    font-size: 18px;
    font-weight: 800;
    color: var(--tgcl-slate-900);
    margin-bottom: 12px;
}

.tg-cloud-subsection__title i {
    color: var(--tgcl-indigo);
    margin-right: 6px;
}

.tg-cloud-subsection--tips .tg-cloud-subsection__title i {
    color: var(--tgcl-amber);
}

.tg-cloud-subsection__desc {
    font-size: 15px;
    color: var(--tgcl-slate-500);
    margin-bottom: 16px;
}

/* 서브 섹션 내 스텝 밝은 배경 */
.tg-cloud-subsection .tg-cloud-step {
    background-color: var(--tgcl-white);
    border-left-color: var(--tgcl-indigo-light);
}

/* ─── 팁 그리드 (3열) ─── */
.tg-cloud-tip-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.tg-cloud-tip-item {
    background-color: var(--tgcl-white);
    padding: 18px;
    border-radius: 10px;
    border: 1px solid var(--tgcl-amber-border);
}

.tg-cloud-tip-item__icon {
    font-size: 22px;
    color: var(--tgcl-amber);
    margin-bottom: 10px;
}

.tg-cloud-tip-item__title {
    font-size: 15px;
    font-weight: 700;
    color: #92400e;
    margin-bottom: 6px;
}

.tg-cloud-tip-item__text {
    font-size: 13px;
    color: #a16207;
    line-height: 1.6;
}

/* ─── 키보드 키캡 ─── */
.tg-cloud-kbd-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
}

.tg-cloud-kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 34px;
    padding: 0 10px;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 13px;
    font-weight: 800;
    color: var(--tgcl-slate-700);
    background: linear-gradient(180deg, #ffffff 0%, #f0f0f0 100%);
    border: 1px solid #d1d5db;
    border-bottom: 3px solid #b0b3b8;
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.tg-cloud-kbd-plus {
    font-size: 14px;
    font-weight: 700;
    color: var(--tgcl-slate-500);
}

.tg-cloud-kbd-label {
    font-size: 12px;
    font-weight: 600;
    color: #92400e;
    margin-left: 6px;
}

/* ─── 결론 및 요약 ─── */
.tg-cloud-summary {
    background: linear-gradient(135deg, #0f172a 0%, var(--tgcl-indigo-deep) 50%, var(--tgcl-indigo-dark) 100%);
    color: var(--tgcl-white);
    padding: 44px 28px;
    border-radius: var(--tgcl-radius);
    text-align: center;
    box-shadow: 0 10px 30px rgba(49, 46, 129, 0.3);
}

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

.tg-cloud-summary__body p {
    font-size: 16px;
    margin-bottom: 14px;
    color: #c7d2fe;
}

.tg-cloud-summary__body p:last-child {
    margin-bottom: 0;
}

.tg-cloud-summary strong,
.tg-cloud-summary__body strong {
    color: var(--tgcl-white);
}

/* 체크리스트 */
.tg-cloud-summary__checklist {
    list-style: none;
    display: inline-block;
    text-align: left;
    background-color: rgba(255, 255, 255, 0.07);
    padding: 24px 32px;
    border-radius: 12px;
    margin: 24px 0;
}

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

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

/* FontAwesome 체크마크 */
.tg-cloud-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(--tgcl-sky);
}

.tg-cloud-summary__checklist strong {
    color: var(--tgcl-white);
}

.tg-cloud-summary__footer {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    color: #a5b4fc;
    line-height: 1.8;
}

.tg-cloud-summary__footer strong {
    color: var(--tgcl-white);
}

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

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

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

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

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

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

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

    /* 특징 3열 */
    .tg-cloud-features {
        grid-template-columns: repeat(3, 1fr);
    }

    /* 팁 3열 */
    .tg-cloud-tip-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

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

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

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