﻿@charset "utf-8";

/* ============================================
   텔레그램 대화 테마(Chat Themes) 활용 가이드
   접두사: tg-th- (기존 사이트 오염 방지)
   컬러 톤: 오션 딥블루(Deep Blue) + 민트(Mint) 조합
============================================ */

:root {
    --th-blue: #2563eb;
    --th-blue-dark: #1d4ed8;
    --th-blue-deep: #1e3a8a;
    --th-blue-light: #eff6ff;
    --th-blue-border: #bfdbfe;

    --th-mint: #0d9488;
    --th-mint-dark: #0f766e;
    --th-mint-light: #ccfbf1;
    --th-mint-border: #99f6e4;

    --th-pink: #ec4899;
    --th-purple: #8b5cf6;
    --th-teal: #14b8a6;

    --th-slate-900: #0f172a;
    --th-slate-700: #334155;
    --th-slate-500: #64748b;
    --th-slate-300: #cbd5e1;
    --th-slate-200: #e2e8f0;
    --th-slate-100: #f8fafc;
    --th-bg: #fdfbfb;
    --th-white: #ffffff;
    --th-radius: 16px;
}

/* ─── 래퍼 ─── */
.tg-th-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    font-family: 'Noto Sans KR', 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    color: var(--th-slate-500);
    background-color: var(--th-bg);
    box-sizing: border-box;
    line-height: 1.7;
    overflow: hidden;
    padding-bottom: 60px;
}

.tg-th-wrapper *,
.tg-th-wrapper *::before,
.tg-th-wrapper *::after {
    box-sizing: inherit;
    margin: 0;
    padding: 0;
}

.tg-th-wrapper strong {
    font-weight: 700;
    color: var(--th-slate-900);
}

.tg-th-wrapper mark {
    background: linear-gradient(120deg, var(--th-mint-light) 0%, #e0e7ff 100%);
    color: var(--th-blue-deep);
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    box-shadow: inset 0 -4px 0 rgba(13, 148, 136, 0.15);
}

/* ─── 히어로 헤더 ─── */
.tg-th-hero {
    background: linear-gradient(145deg, #0f172a 0%, #1e3a8a 50%, #2563eb 100%);
    color: var(--th-white);
    padding: 70px 24px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-radius: 0 0 40px 40px;
}

.tg-th-hero__bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.tg-th-hero__shape--circle {
    position: absolute;
    width: 400px;
    height: 400px;
    border: 70px solid rgba(255, 255, 255, 0.04);
    border-radius: 50%;
    top: -120px;
    right: -100px;
    animation: tg-th-spin-slow 20s linear infinite;
}

.tg-th-hero__shape--blob {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    bottom: -50px;
    left: -100px;
}

.tg-th-hero__inner {
    position: relative;
    z-index: 1;
}

/* 히어로 아이콘 그룹 */
.tg-th-hero__icon-group {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
}

.tg-th-hero__icon-item {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--th-mint-border);
    border: 1px solid rgba(153, 246, 228, 0.3);
    backdrop-filter: blur(8px);
    transform: rotate(-10deg);
}

.tg-th-hero__icon-item:last-child {
    transform: rotate(10deg);
}

.tg-th-hero__icon-item--center {
    width: 72px;
    height: 72px;
    font-size: 32px;
    color: var(--th-white);
    background: linear-gradient(135deg, var(--th-mint) 0%, var(--th-blue) 100%);
    border: none;
    transform: rotate(0) translateY(-10px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4);
    animation: tg-th-float 3s ease-in-out infinite;
}

.tg-th-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(15, 23, 42, 0.4);
    color: var(--th-mint-border);
    font-size: 14px;
    font-weight: 700;
    padding: 8px 20px;
    border-bottom: 2px solid var(--th-mint);
    border-radius: 10px 10px 0 0;
    margin-bottom: 24px;
    backdrop-filter: blur(4px);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tg-th-hero__badge i {
    font-size: 14px;
    color: var(--th-mint);
}

.tg-th-hero__title {
    font-size: 30px;
    font-weight: 900;
    line-height: 1.4;
    margin-bottom: 20px;
    color: var(--th-white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.tg-th-hero__desc {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ─── 메인 ─── */
.tg-th-main {
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    transform: translateY(-20px);
}

/* ─── 도입부 ─── */
.tg-th-intro {
    background-color: var(--th-white);
    padding: 35px 30px;
    border-radius: var(--th-radius);
    border-top: 5px solid var(--th-blue);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
    position: relative;
    z-index: 10;
}

.tg-th-intro::before {
    content: "\f10d";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: -20px;
    left: 30px;
    background: var(--th-blue);
    color: var(--th-white);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 16px;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.tg-th-intro p {
    font-size: 16px;
    margin-bottom: 16px;
}

.tg-th-intro p:last-child {
    margin-bottom: 0;
}

/* ─── 섹션 공통 ─── */
.tg-th-section {
    background-color: var(--th-white);
    padding: 40px 24px;
    border-radius: var(--th-radius);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--th-slate-200);
}

.tg-th-section--dark {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border: none;
    color: var(--th-slate-300);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15);
}

.tg-th-section__head {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 18px;
}

.tg-th-section__num {
    font-size: 42px;
    font-weight: 900;
    color: var(--th-blue);
    opacity: 0.15;
    line-height: 0.8;
    flex-shrink: 0;
    font-style: italic;
}

.tg-th-section__tip-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--th-mint) 0%, var(--th-blue) 100%);
    color: var(--th-white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 5px 15px rgba(13, 148, 136, 0.3);
}

.tg-th-section__title {
    font-size: 22px;
    font-weight: 800;
    color: var(--th-slate-900);
    line-height: 1.35;
    padding-top: 6px;
}

.tg-th-section__title--light {
    color: var(--th-white);
}

.tg-th-section__desc {
    font-size: 16px;
    margin-bottom: 30px;
    line-height: 1.6;
}

.tg-th-section__desc--light {
    color: var(--th-slate-400);
}

.tg-th-section__desc--light strong {
    color: var(--th-mint-border);
}

/* ─── 혜택 카드 그리드 ─── */
.tg-th-feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

@media (min-width: 640px) {
    .tg-th-feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.tg-th-feature-card {
    background: var(--th-slate-100);
    border: 1px solid var(--th-slate-200);
    padding: 24px;
    border-radius: 14px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tg-th-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    background: var(--th-white);
}

.tg-th-feature-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 16px;
    color: var(--th-white);
}

.tg-th-feature-card__icon--blue {
    background: linear-gradient(135deg, #60a5fa, #2563eb);
}

.tg-th-feature-card__icon--purple {
    background: linear-gradient(135deg, #a78bfa, #7c3aed);
}

.tg-th-feature-card__icon--pink {
    background: linear-gradient(135deg, #f472b6, #ec4899);
}

.tg-th-feature-card__icon--teal {
    background: linear-gradient(135deg, #2dd4bf, #0d9488);
}

.tg-th-feature-card__title {
    font-size: 16px;
    font-weight: 800;
    color: var(--th-slate-900);
    margin-bottom: 8px;
}

.tg-th-feature-card__desc {
    font-size: 14px;
    color: var(--th-slate-600);
}

/* ─── OS 탭(스텝 리스트를 탭 안에) ─── */
.tg-th-os-tabs {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .tg-th-os-tabs {
        grid-template-columns: repeat(2, 1fr);
    }
}

.tg-th-os-tab {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
}

.tg-th-os-tab__header {
    padding: 18px 20px;
    font-size: 16px;
    font-weight: 800;
    color: var(--th-white);
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tg-th-os-tab--android .tg-th-os-tab__header {
    background: linear-gradient(to right, rgba(16, 185, 129, 0.1), transparent);
}

.tg-th-os-tab--android .tg-th-os-tab__header i {
    color: #10b981;
    font-size: 20px;
}

.tg-th-os-tab--ios .tg-th-os-tab__header {
    background: linear-gradient(to right, rgba(255, 255, 255, 0.05), transparent);
}

.tg-th-os-tab--ios .tg-th-os-tab__header i {
    color: #f8fafc;
    font-size: 22px;
}

/* ─── 스텝 리스트 ─── */
.tg-th-steps {
    list-style: none;
    display: flex;
    flex-direction: column;
    padding: 20px;
    gap: 16px;
}

.tg-th-step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.tg-th-steps--dark .tg-th-step__content {
    color: var(--th-slate-300);
}

.tg-th-steps--dark .tg-th-step__content strong {
    color: var(--th-white);
    border-bottom: 1px dashed rgba(255, 255, 255, 0.3);
}

.tg-th-step__marker {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background: rgba(37, 99, 235, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.4);
    color: var(--th-blue-border);
    font-weight: 800;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    margin-top: 2px;
}

.tg-th-step__content {
    flex: 1;
    font-size: 15px;
    line-height: 1.6;
    padding-top: 4px;
}

/* ─── 팁 컨테이너 ─── */
.tg-th-tip-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.tg-th-tip-box {
    background: var(--th-slate-100);
    border: 1px solid var(--th-slate-200);
    border-radius: 16px;
    padding: 24px;
}

.tg-th-tip-box__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.tg-th-tip-box__header i {
    font-size: 22px;
}

.tg-th-color-red {
    color: #ef4444;
}

.tg-th-tip-box__header h3 {
    font-size: 18px;
    font-weight: 800;
    color: var(--th-slate-900);
}

.tg-th-tip-box__desc {
    font-size: 15px;
    margin-bottom: 24px;
}

/* 채팅방 리스트 목업 */
.tg-th-chats {
    background: var(--th-white);
    border: 1px solid var(--th-slate-200);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.tg-th-chat-item {
    display: flex;
    align-items: center;
    padding: 16px;
    gap: 16px;
    border-bottom: 1px solid var(--th-slate-100);
    position: relative;
    transition: background 0.2s;
}

.tg-th-chat-item:last-child {
    border-bottom: none;
}

.tg-th-chat-item:hover {
    background: #f8fafc;
}

.tg-th-chat-item__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--th-white);
    flex-shrink: 0;
}

.tg-th-chat-item--red {
    border-left: 4px solid #ef4444;
}

.tg-th-chat-item--red .tg-th-chat-item__avatar {
    background: linear-gradient(135deg, #f87171, #dc2626);
}

.tg-th-chat-item--green {
    border-left: 4px solid #10b981;
}

.tg-th-chat-item--green .tg-th-chat-item__avatar {
    background: linear-gradient(135deg, #34d399, #059669);
}

.tg-th-chat-item--black {
    border-left: 4px solid #334155;
}

.tg-th-chat-item--black .tg-th-chat-item__avatar {
    background: linear-gradient(135deg, #475569, #0f172a);
}

.tg-th-chat-item__info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tg-th-chat-item__info strong {
    font-size: 15px;
    color: var(--th-slate-900);
    margin-bottom: 2px;
}

.tg-th-chat-item__info span {
    font-size: 13px;
    color: var(--th-slate-500);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tg-th-chat-item__alert {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: #fef2f2;
    color: #ef4444;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 100px;
    border: 1px solid #fecaca;
    animation: tg-th-pulse 2s infinite;
}

/* 인라인 워크팁 */
.tg-th-work-tip {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(13, 148, 136, 0.05) 100%);
    border: 1px solid rgba(191, 219, 254, 0.6);
    border-radius: 16px;
}

.tg-th-work-tip__icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--th-blue) 0%, var(--th-blue-dark) 100%);
    color: var(--th-white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
}

.tg-th-work-tip__body {
    flex: 1;
}

.tg-th-work-tip__badge {
    display: inline-block;
    font-size: 16px;
    font-weight: 800;
    color: var(--th-blue-deep);
    margin-bottom: 10px;
}

.tg-th-work-tip__body p {
    font-size: 14px;
    color: var(--th-slate-700);
}

.tg-th-work-tip__body strong {
    color: var(--th-blue-dark);
}

/* ─── 결론 및 요약 ─── */
.tg-th-summary {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #0d9488 100%);
    color: var(--th-white);
    padding: 50px 30px;
    border-radius: var(--th-radius);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(30, 58, 138, 0.2);
}

.tg-th-summary__bg-icon {
    position: absolute;
    right: -20px;
    bottom: -20px;
    font-size: 180px;
    color: rgba(255, 255, 255, 0.05);
    transform: rotate(-15deg);
}

.tg-th-summary__title {
    font-size: 24px;
    font-weight: 800;
    color: var(--th-white);
    margin-bottom: 16px;
    position: relative;
    z-index: 10;
}

.tg-th-summary__body p {
    font-size: 16px;
    margin-bottom: 24px;
    color: var(--th-blue-border);
    position: relative;
    z-index: 10;
}

.tg-th-summary strong {
    color: var(--th-white);
}

.tg-th-summary__checklist {
    list-style: none;
    background: rgba(15, 23, 42, 0.3);
    padding: 24px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 24px;
    position: relative;
    z-index: 10;
    backdrop-filter: blur(4px);
}

.tg-th-summary__checklist li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    font-size: 15px;
    color: #f1f5f9;
}

.tg-th-summary__checklist li:last-child {
    margin-bottom: 0;
}

.tg-th-summary__checklist li::before {
    content: "\f058";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 16px;
    color: var(--th-mint);
}

.tg-th-summary__footer {
    padding-top: 20px;
    border-top: 1px dashed rgba(255, 255, 255, 0.2);
    font-size: 14px;
    color: var(--th-blue-light);
    line-height: 1.8;
    position: relative;
    z-index: 10;
}

/* ============================================
   애니메이션 키프레임
============================================ */

@keyframes tg-th-spin-slow {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes tg-th-float {

    0%,
    100% {
        transform: translateY(-10px);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes tg-th-pulse {

    0%,
    100% {
        transform: translateY(-50%) scale(1);
    }

    50% {
        transform: translateY(-50%) scale(1.05);
        box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
    }
}

/* ============================================
   반응형 미디어 쿼리 (데스크탑 확장)
============================================ */
@media (min-width: 768px) {
    .tg-th-hero {
        padding: 90px 40px 100px;
        border-radius: 0 0 60px 60px;
    }

    .tg-th-hero__title {
        font-size: 40px;
    }

    .tg-th-main {
        padding: 0 36px;
        gap: 50px;
        transform: translateY(-40px);
    }

    .tg-th-intro {
        padding: 40px 46px;
    }

    .tg-th-section {
        padding: 46px 40px;
    }

    .tg-th-section__title {
        font-size: 26px;
    }

    .tg-th-summary {
        padding: 60px 46px;
    }
}

@media (min-width: 1024px) {
    .tg-th-hero__title {
        font-size: 46px;
    }

    .tg-th-main {
        gap: 60px;
    }
}

/* ============================================
   스크롤 등장 애니메이션 (JS 연동)
============================================ */
.tg-th-motion {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.tg-th-motion.is-visible {
    opacity: 1;
    transform: translateY(0);
}
