@charset "utf-8";

/* ============================================
   텔레그램 챗GPT 코파일럿 봇 가이드
   접두사: tg-ai- (기존 사이트 오염 방지)
   컬러 톤: 사파이어 블루(Sapphire) + 시안(Cyan)
============================================ */

:root {
    --tga-sapphire: #1d4ed8;
    --tga-sapphire-dark: #1e40af;
    --tga-sapphire-deep: #1e3a8a;
    --tga-sapphire-light: #eff6ff;
    --tga-sapphire-border: #93c5fd;
    --tga-cyan: #06b6d4;
    --tga-cyan-light: #ecfeff;
    --tga-cyan-border: #67e8f9;
    --tga-slate-900: #0f172a;
    --tga-slate-700: #334155;
    --tga-slate-500: #64748b;
    --tga-slate-200: #e2e8f0;
    --tga-slate-100: #f1f5f9;
    --tga-bg: #f7f9fd;
    --tga-white: #ffffff;
    --tga-amber: #f59e0b;
    --tga-amber-light: #fffbeb;
    --tga-amber-border: #fde68a;
    --tga-green: #059669;
    --tga-purple: #7c3aed;
    --tga-radius: 14px;
}

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

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

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

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

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

/* ─── 히어로 헤더 ─── */
.tg-ai-hero {
    background: linear-gradient(145deg, #0f172a 0%, #1e3a8a 30%, #1d4ed8 65%, #06b6d4 100%);
    color: var(--tga-white);
    padding: 60px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.tg-ai-hero::before {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    border: 60px solid rgba(29, 78, 216, 0.08);
    border-radius: 50%;
    top: -100px;
    right: -100px;
}

.tg-ai-hero::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    border: 40px solid rgba(6, 182, 212, 0.06);
    border-radius: 50%;
    bottom: -60px;
    left: -50px;
}

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

.tg-ai-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2) 0%, rgba(29, 78, 216, 0.15) 100%);
    color: var(--tga-white);
    font-size: 14px;
    font-weight: 700;
    padding: 8px 20px;
    border-radius: 100px;
    margin-bottom: 22px;
    border: 1px solid rgba(103, 232, 249, 0.2);
    backdrop-filter: blur(4px);
}

.tg-ai-hero__badge i {
    font-size: 16px;
    color: var(--tga-cyan-border);
}

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

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

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

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

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

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

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

.tg-ai-section--tip {
    background-color: var(--tga-amber-light);
    border-color: var(--tga-amber-border);
}

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

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

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

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

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

/* ─── 이유 카드 (01) ─── */
.tg-ai-reasons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

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

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

.tg-ai-reason__icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--tga-sapphire) 0%, var(--tga-cyan) 100%);
    color: var(--tga-white);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.tg-ai-reason__title {
    font-size: 16px;
    font-weight: 700;
    color: var(--tga-slate-900);
    margin-bottom: 4px;
}

.tg-ai-reason__text {
    font-size: 14px;
}

/* ─── 봇 프로필 카드 ─── */
.tg-ai-bot-profile {
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, var(--tga-sapphire-light) 0%, var(--tga-cyan-light) 100%);
    border: 1px solid var(--tga-sapphire-border);
    padding: 18px 20px;
    border-radius: 12px;
    margin-bottom: 28px;
}

.tg-ai-bot-profile__avatar {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--tga-sapphire) 0%, var(--tga-cyan) 100%);
    color: var(--tga-white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.tg-ai-bot-profile__name {
    font-size: 18px;
    font-weight: 800;
    color: var(--tga-slate-900);
    font-family: 'Consolas', 'Courier New', monospace;
}

.tg-ai-bot-profile__tag {
    font-size: 13px;
    color: var(--tga-sapphire);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
}

.tg-ai-bot-profile__tag i {
    font-size: 12px;
    color: var(--tga-cyan);
}

/* ─── 서브 스텝 ─── */
.tg-ai-substep {
    background-color: var(--tga-slate-100);
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 16px;
}

.tg-ai-substep:last-child {
    margin-bottom: 0;
}

.tg-ai-substep__title {
    font-size: 17px;
    font-weight: 800;
    color: var(--tga-slate-900);
    margin-bottom: 14px;
}

.tg-ai-substep__title i {
    color: var(--tga-sapphire);
    margin-right: 6px;
}

/* ─── 스텝 리스트 ─── */
.tg-ai-steps {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tg-ai-step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background-color: var(--tga-white);
    padding: 14px 16px;
    border-radius: 8px;
    border-left: 3px solid var(--tga-sapphire-border);
    transition: border-left-color 0.2s ease;
}

.tg-ai-step:hover {
    border-left-color: var(--tga-sapphire);
}

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

.tg-ai-step__text {
    font-size: 15px;
    padding-top: 2px;
}

/* ─── 프롬프트 예시 ─── */
.tg-ai-prompt-examples {
    background-color: var(--tga-white);
    padding: 20px;
    border-radius: 10px;
    margin-top: 16px;
    border: 1px solid var(--tga-cyan-border);
}

.tg-ai-prompt-examples__title {
    font-size: 15px;
    font-weight: 700;
    color: var(--tga-slate-900);
    margin-bottom: 12px;
}

.tg-ai-prompt-examples__title i {
    color: var(--tga-cyan);
    margin-right: 6px;
}

.tg-ai-prompt-examples__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tg-ai-prompt-example {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: var(--tga-sapphire-light);
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    color: var(--tga-sapphire-deep);
    font-weight: 500;
}

.tg-ai-prompt-example i {
    font-size: 16px;
    color: var(--tga-sapphire);
    flex-shrink: 0;
}

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

.tg-ai-tip {
    background-color: var(--tga-white);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid var(--tga-amber-border);
}

.tg-ai-tip__icon {
    font-size: 24px;
    color: var(--tga-amber);
    margin-bottom: 10px;
}

.tg-ai-tip__title {
    font-size: 16px;
    font-weight: 700;
    color: #92400e;
    margin-bottom: 8px;
}

.tg-ai-tip__text {
    font-size: 14px;
    color: #a16207;
}

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

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

.tg-ai-summary__body p {
    font-size: 16px;
    margin-bottom: 14px;
    color: #93c5fd;
}

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

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

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

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

/* FontAwesome 체크마크 */
.tg-ai-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(--tga-cyan);
}

.tg-ai-summary__checklist strong {
    color: var(--tga-white);
}

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

.tg-ai-summary__footer strong {
    color: var(--tga-white);
}

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

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

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

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

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

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

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

    /* 이유 2열 */
    .tg-ai-reasons {
        grid-template-columns: repeat(2, 1fr);
    }

    /* 프롬프트 예시 가로 배치 */
    .tg-ai-prompt-examples__list {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .tg-ai-prompt-example {
        flex: 1;
        min-width: 200px;
    }

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

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

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

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

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