@charset "utf-8";

/* ============================================
   텔레그램 봇 가이드
   접두사: tg-bot- (기존 사이트 오염 방지)
   컬러 톤: 사이버 블루(Cyber Blue) + 슬레이트
============================================ */

:root {
    --tgb-blue: #2563eb;
    --tgb-blue-dark: #1d4ed8;
    --tgb-blue-deep: #1e3a5f;
    --tgb-blue-light: #eff6ff;
    --tgb-blue-border: #93c5fd;
    --tgb-cyan: #06b6d4;
    --tgb-cyan-dark: #0891b2;
    --tgb-slate-900: #0f172a;
    --tgb-slate-700: #334155;
    --tgb-slate-500: #64748b;
    --tgb-slate-200: #e2e8f0;
    --tgb-slate-100: #f1f5f9;
    --tgb-bg: #f8fafc;
    --tgb-white: #ffffff;
    --tgb-amber: #f59e0b;
    --tgb-amber-light: #fffbeb;
    --tgb-amber-border: #fde68a;
    --tgb-green: #10b981;
    --tgb-purple: #8b5cf6;
    --tgb-rose: #f43f5e;
    --tgb-radius: 14px;
}

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

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

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

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

.tg-bot-wrapper em {
    font-style: italic;
    color: var(--tgb-slate-500);
}

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

/* ─── 히어로 헤더 ─── */
.tg-bot-hero {
    background: linear-gradient(145deg, #0f172a 0%, #1e3a5f 40%, #2563eb 100%);
    color: var(--tgb-white);
    padding: 60px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* 장식: 회로 느낌 원형 패턴 */
.tg-bot-hero::before {
    content: "";
    position: absolute;
    width: 350px;
    height: 350px;
    border: 60px solid rgba(37, 99, 235, 0.08);
    border-radius: 50%;
    top: -100px;
    right: -100px;
}

.tg-bot-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-bot-hero__inner {
    position: relative;
    z-index: 1;
}

.tg-bot-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--tgb-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-bot-hero__badge i {
    font-size: 16px;
    color: var(--tgb-cyan);
}

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

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

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

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

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

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

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

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

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

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

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

/* ─── 하이라이트 카드 (01) ─── */
.tg-bot-highlights {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

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

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

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

.tg-bot-highlight__title {
    font-size: 16px;
    font-weight: 700;
    color: var(--tgb-slate-900);
    margin-bottom: 4px;
}

.tg-bot-highlight__text {
    font-size: 14px;
}

/* ─── 스텝 리스트 (02) ─── */
.tg-bot-steps {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

.tg-bot-step:hover {
    border-left-color: var(--tgb-blue);
}

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

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

/* ─── 봇 추천 카드 (03) ─── */
.tg-bot-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.tg-bot-card {
    background-color: var(--tgb-slate-100);
    border-radius: 12px;
    padding: 22px;
    border: 1px solid var(--tgb-slate-200);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tg-bot-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.tg-bot-card__header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.tg-bot-card__icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--tgb-white);
}

.tg-bot-card__icon--mail {
    background: linear-gradient(135deg, #dc2626 0%, #f97316 100%);
}

.tg-bot-card__icon--schedule {
    background: linear-gradient(135deg, var(--tgb-purple) 0%, #a78bfa 100%);
}

.tg-bot-card__icon--file {
    background: linear-gradient(135deg, var(--tgb-green) 0%, #34d399 100%);
}

.tg-bot-card__name {
    font-size: 17px;
    font-weight: 800;
    color: var(--tgb-slate-900);
    font-family: 'Consolas', 'Courier New', monospace;
}

.tg-bot-card__tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: var(--tgb-blue);
    background-color: var(--tgb-blue-light);
    padding: 2px 8px;
    border-radius: 4px;
    margin-top: 2px;
}

.tg-bot-card__desc {
    font-size: 14px;
    margin-bottom: 14px;
    line-height: 1.65;
}

.tg-bot-card__footer {
    display: flex;
    gap: 8px;
}

.tg-bot-card__keyword {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--tgb-slate-500);
    background-color: var(--tgb-white);
    padding: 4px 10px;
    border-radius: 100px;
    border: 1px solid var(--tgb-slate-200);
}

.tg-bot-card__keyword i {
    font-size: 10px;
    color: var(--tgb-blue-border);
}

/* ─── 팁 박스 ─── */
.tg-bot-tip {
    display: flex;
    gap: 14px;
    padding: 20px;
    background-color: var(--tgb-amber-light);
    border: 1px solid var(--tgb-amber-border);
    border-radius: 10px;
}

.tg-bot-tip__icon {
    font-size: 28px;
    flex-shrink: 0;
    line-height: 1;
    color: var(--tgb-amber);
}

.tg-bot-tip__title {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #92400e;
    margin-bottom: 6px;
}

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

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

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

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

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

/* 결론 내 strong */
.tg-bot-summary strong,
.tg-bot-summary__body strong {
    color: var(--tgb-white);
}

/* 체크리스트 */
.tg-bot-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-bot-summary__checklist li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    font-size: 16px;
    color: #bfdbfe;
    font-family: 'Consolas', 'Courier New', 'Pretendard', monospace;
}

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

.tg-bot-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(--tgb-cyan);
}

.tg-bot-summary__checklist strong {
    color: var(--tgb-white);
}

.tg-bot-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-bot-summary__footer strong {
    color: var(--tgb-white);
}

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

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

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

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

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

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

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

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

    /* 봇 카드 3열 */
    .tg-bot-cards {
        grid-template-columns: repeat(3, 1fr);
    }

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

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

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

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