@charset "utf-8";

/* ============================================================
   텔레그램 모바일 앱 다운로드 콘텐츠 스킨 스타일
   Prefix: tg-app-  (기존 사이트 스타일 격리)
   규칙: 외부 폰트 @import 금지, Material Symbols & FA6 서브셋 호환
   ============================================================ */

/* ── 메인 컨테이너 ── */
#ctt.ctt_app {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 15px;
    font-family: 'Pretendard', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #1e293b;
    word-break: keep-all;
}

/* ── 히어로 섹션 ── */
.tg-app-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    border-radius: 24px;
    padding: 56px 36px 48px;
    text-align: center;
    color: #ffffff;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15);
    margin-bottom: 50px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.tg-app-hero::before {
    content: '';
    position: absolute;
    top: -40%;
    left: -20%;
    width: 140%;
    height: 180%;
    background: radial-gradient(circle at 50% 20%, rgba(36, 161, 222, 0.18) 0%, transparent 65%);
    pointer-events: none;
}

.tg-app-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(36, 161, 222, 0.18);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.35);
    padding: 7px 18px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 22px;
}

.tg-app-hero__badge .material-symbols-outlined {
    font-size: 17px;
}

.tg-app-hero__title {
    font-size: 34px !important;
    font-weight: 800 !important;
    letter-spacing: -1px;
    margin: 0 0 16px !important;
    color: #ffffff !important;
    line-height: 1.35;
    background: linear-gradient(to right, #ffffff, #e2e8f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    word-break: keep-all;
}

.tg-app-hero__desc {
    font-size: 16px;
    color: #94a3b8;
    max-width: 680px;
    margin: 0 auto 36px;
    line-height: 1.7;
    word-break: keep-all;
}

/* ── 다운로드 카드 그리드 ── */
.tg-app-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 860px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.tg-app-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 36px 28px;
    transition: all 0.3s ease;
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    text-align: center;
}

.tg-app-card:hover {
    transform: translateY(-5px);
    border-color: rgba(36, 161, 222, 0.4);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.35);
}

.tg-app-card__icon-wrap {
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.tg-app-card--android .tg-app-card__icon-wrap {
    background: rgba(164, 198, 57, 0.15);
    color: #a4c639;
    border: 1px solid rgba(164, 198, 57, 0.3);
}

.tg-app-card--ios .tg-app-card__icon-wrap {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.tg-app-card__name {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 6px;
    letter-spacing: -0.5px;
}

.tg-app-card__sub {
    font-size: 13.5px;
    color: #94a3b8;
    margin: 0 0 24px;
    word-break: keep-all;
}

.tg-app-card__btns {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
}

.tg-app-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    background: linear-gradient(135deg, #24a1de 0%, #0077b3 100%);
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(36, 161, 222, 0.3);
    border: none;
}

.tg-app-btn-primary:hover {
    background: linear-gradient(135deg, #2eaef0 0%, #008cd4 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(36, 161, 222, 0.45);
    color: #ffffff !important;
}

.tg-app-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0 !important;
    border: 1px solid rgba(255, 255, 255, 0.15);
    text-decoration: none !important;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 600;
    transition: all 0.25s ease;
}

.tg-app-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff !important;
    transform: translateY(-1px);
}

.tg-app-btn-primary i, .tg-app-btn-secondary i,
.tg-app-btn-primary .material-symbols-outlined,
.tg-app-btn-secondary .material-symbols-outlined {
    font-size: 18px;
}

/* ── 공통 섹션 타이틀 ── */
.tg-app-section-title {
    text-align: center;
    margin-bottom: 32px;
    word-break: keep-all;
}

.tg-app-section-title h2 {
    font-size: 26px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.7px;
    margin: 0 0 10px;
    line-height: 1.35;
    word-break: keep-all;
}

.tg-app-section-title p {
    font-size: 15px;
    color: #64748b;
    margin: 0;
    line-height: 1.6;
    word-break: keep-all;
}

/* ── 스크린샷 슬라이더 (Pure CSS Scroll-Snap) ── */
.tg-app-ss-container {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 36px 24px 32px;
    margin-bottom: 60px;
    position: relative;
}

.tg-app-ss-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 0 8px;
}

.tg-app-ss-header .tg-app-ss-title {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    word-break: keep-all;
}

.tg-app-ss-header .tg-app-ss-title .material-symbols-outlined {
    color: #24a1de;
    font-size: 22px;
}

.tg-app-ss-nav-btns {
    display: flex;
    gap: 8px;
}

.tg-app-ss-nav-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.tg-app-ss-nav-btn:hover {
    background: #24a1de;
    color: #ffffff;
    border-color: #24a1de;
}

.tg-app-ss-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 10px 6px 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #94a3b8 #f1f5f9;
}

.tg-app-ss-track::-webkit-scrollbar {
    height: 8px;
}

.tg-app-ss-track::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.tg-app-ss-track::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.tg-app-ss-track::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.tg-app-ss-card {
    flex: 0 0 220px;
    max-width: 220px;
    scroll-snap-align: center;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
    border: 1px solid #e2e8f0;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tg-app-ss-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(36, 161, 222, 0.16);
    border-color: rgba(36, 161, 222, 0.35);
}

.tg-app-ss-img-wrap {
    width: 100%;
    aspect-ratio: 9 / 18.5;
    overflow: hidden;
    background: #e2e8f0;
}

.tg-app-ss-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.tg-app-ss-card:hover .tg-app-ss-img-wrap img {
    transform: scale(1.02);
}

.tg-app-ss-body {
    padding: 14px 14px 16px;
    text-align: center;
}

.tg-app-ss-caption-title {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 4px;
    word-break: keep-all;
}

.tg-app-ss-caption-desc {
    font-size: 12.5px;
    color: #64748b;
    line-height: 1.45;
    margin: 0;
    word-break: keep-all;
}

/* ── 최신 기능 4종 그리드 ── */
.tg-app-features {
    margin-bottom: 60px;
}

.tg-app-feat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.tg-app-feat-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 28px 22px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
    display: flex;
    flex-direction: column;
}

.tg-app-feat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(36, 161, 222, 0.12);
    border-color: rgba(36, 161, 222, 0.3);
}

.tg-app-feat-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #e0f2fe;
    color: #0284c7;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.tg-app-feat-icon-box .material-symbols-outlined {
    font-size: 26px;
}

.tg-app-feat-card h3 {
    font-size: 16.5px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #0f172a;
    line-height: 1.4;
    word-break: keep-all;
}

.tg-app-feat-card p {
    font-size: 13px;
    line-height: 1.6;
    color: #64748b;
    margin: 0;
    word-break: keep-all;
}

/* ── 비밀대화 & 보안 섹션 ── */
.tg-app-security {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 50px 45px;
    margin-bottom: 60px;
}

.tg-app-sec-row {
    display: flex;
    align-items: center;
    gap: 48px;
}

.tg-app-sec-video-col {
    flex: 0 0 270px;
    max-width: 270px;
    display: flex;
    justify-content: center;
}

.tg-app-video-frame {
    position: relative;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.18);
    overflow: hidden;
    width: 100%;
    background: #000;
    border: 4px solid #ffffff;
}

.tg-app-video-frame video {
    display: block;
    width: 100%;
    height: auto;
}

.tg-app-sec-text-col {
    flex: 1 1 auto;
}

.tg-app-sec-text-col h2 {
    font-size: 26px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.7px;
    margin: 0 0 14px;
    line-height: 1.35;
    word-break: keep-all;
}

.tg-app-sec-desc {
    font-size: 15px;
    line-height: 1.75;
    color: #475569;
    margin-bottom: 24px;
    word-break: keep-all;
}

.tg-app-check-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.tg-app-check-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.tg-app-check-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #dcfce7;
    color: #16a34a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    margin-top: 1px;
    flex-shrink: 0;
}

.tg-app-check-item p {
    font-size: 14px;
    line-height: 1.55;
    color: #475569;
    margin: 0;
    word-break: keep-all;
}

.tg-app-check-item p strong {
    color: #0f172a;
}

/* ── 하단 다른 플랫폼 안내 CTA ── */
.tg-app-bottom-cta {
    text-align: center;
    padding: 40px 20px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    margin-bottom: 40px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
    word-break: keep-all;
}

.tg-app-bottom-cta__text {
    font-size: 16px;
    font-weight: 600;
    color: #475569;
    margin: 0 0 20px;
    word-break: keep-all;
}

.tg-app-bottom-cta__links {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.tg-app-bottom-cta__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #334155 !important;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.tg-app-bottom-cta__link:hover {
    background: #24a1de;
    color: #ffffff !important;
    border-color: #24a1de;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(36, 161, 222, 0.25);
}

.tg-app-bottom-cta__link .material-symbols-outlined {
    font-size: 19px;
}

/* ── 반응형 미디어 쿼리 ── */
@media (max-width: 991px) {
    .tg-app-feat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .tg-app-sec-row {
        flex-direction: column;
        text-align: center;
    }
    .tg-app-sec-video-col {
        margin: 0 auto;
    }
    .tg-app-check-item {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .tg-app-hero {
        padding: 40px 20px 36px;
        border-radius: 20px;
    }
    .tg-app-hero__title {
        font-size: 26px !important;
    }
    .tg-app-hero__desc {
        font-size: 14.5px;
        margin-bottom: 28px;
    }
    .tg-app-cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .tg-app-card {
        padding: 28px 20px;
    }
    .tg-app-ss-container {
        padding: 24px 16px 20px;
        border-radius: 20px;
    }
    .tg-app-ss-nav-btns {
        display: none; /* 모바일은 제스처 스와이프 우선 */
    }
    .tg-app-ss-card {
        flex: 0 0 190px;
        max-width: 190px;
    }
    .tg-app-security {
        padding: 32px 20px;
        border-radius: 20px;
    }
}

@media (max-width: 576px) {
    .tg-app-feat-grid {
        grid-template-columns: 1fr;
    }
    .tg-app-hero__title {
        font-size: 22px !important;
    }
}
