@charset "utf-8";

/* ============================================
   텔레그램 주식/코인 시세 알림 봇 가이드
   접두사: tg-fin- (기존 사이트 오염 방지)
   컬러 톤: 딥 네이비(Deep Navy) + 에메랄드 그린(Emerald)
============================================ */

:root {
    --tgf-navy: #1e3a5f;
    --tgf-navy-dark: #0f2942;
    --tgf-navy-deep: #0a1929;
    --tgf-navy-light: #eef4fb;
    --tgf-navy-border: #6b9fd4;
    --tgf-emerald: #059669;
    --tgf-emerald-dark: #047857;
    --tgf-emerald-light: #ecfdf5;
    --tgf-amber: #f59e0b;
    --tgf-amber-light: #fffbeb;
    --tgf-amber-border: #fde68a;
    --tgf-orange: #ea580c;
    --tgf-purple: #7c3aed;
    --tgf-slate-900: #0f172a;
    --tgf-slate-700: #334155;
    --tgf-slate-500: #64748b;
    --tgf-slate-200: #e2e8f0;
    --tgf-slate-100: #f1f5f9;
    --tgf-bg: #f5f7fa;
    --tgf-white: #ffffff;
    --tgf-radius: 14px;
}

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

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

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

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

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

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

.tg-fin-hero::before {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    border: 60px solid rgba(5, 150, 105, 0.07);
    border-radius: 50%;
    top: -100px;
    right: -100px;
}

.tg-fin-hero::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    border: 40px solid rgba(30, 58, 95, 0.08);
    border-radius: 50%;
    bottom: -60px;
    left: -50px;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/* ─── 봇/채널 추천 카드 (01) ─── */
.tg-fin-cards {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.tg-fin-card {
    display: flex;
    gap: 0;
    background-color: var(--tgf-slate-100);
    border-radius: 12px;
    border: 1px solid var(--tgf-slate-200);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tg-fin-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.tg-fin-card__sidebar {
    flex-shrink: 0;
    width: 6px;
}

.tg-fin-card__sidebar--crypto {
    background: linear-gradient(180deg, #f59e0b 0%, #ea580c 100%);
}

.tg-fin-card__sidebar--stock {
    background: linear-gradient(180deg, var(--tgf-emerald) 0%, #34d399 100%);
}

.tg-fin-card__sidebar--trading {
    background: linear-gradient(180deg, var(--tgf-purple) 0%, #a78bfa 100%);
}

.tg-fin-card__content {
    flex: 1;
    padding: 20px;
}

.tg-fin-card__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.tg-fin-card__avatar {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--tgf-white);
}

.tg-fin-card__avatar--crypto {
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
}

.tg-fin-card__avatar--stock {
    background: linear-gradient(135deg, var(--tgf-emerald) 0%, #34d399 100%);
}

.tg-fin-card__avatar--trading {
    background: linear-gradient(135deg, var(--tgf-purple) 0%, #a78bfa 100%);
}

.tg-fin-card__name {
    font-size: 17px;
    font-weight: 800;
    color: var(--tgf-slate-900);
}

.tg-fin-card__tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--tgf-slate-500);
    margin-top: 2px;
}

.tg-fin-card__tag i {
    font-size: 10px;
    color: var(--tgf-navy-border);
}

.tg-fin-card__tag code {
    font-size: 11px;
    padding: 1px 5px;
}

.tg-fin-card__desc {
    font-size: 14px;
    line-height: 1.7;
}

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

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

.tg-fin-step:hover {
    border-left-color: var(--tgf-emerald);
}

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

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

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

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

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

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

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

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

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

.tg-fin-summary__body p {
    font-size: 16px;
    margin-bottom: 14px;
    color: #6ee7b7;
}

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

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

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

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

/* FontAwesome 체크마크 */
.tg-fin-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: #6ee7b7;
}

.tg-fin-summary__checklist strong {
    color: var(--tgf-white);
}

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

.tg-fin-summary__footer strong {
    color: var(--tgf-white);
}

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

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

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

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

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

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

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

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

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

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

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

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