@charset "utf-8";

/* ============================================
   텔레그램 웹(Web) 활용 가이드 (v1.0.0)
   접두사: tg-web-
   테마: Modern Web & Cloud Blue
============================================ */

:root {
    --web-primary: #3390ec; /* Telegram Web Blue */
    --web-accent: #2ec4b6;  /* Fresh Mint (Lightweight vibe) */
    --web-navy: #1f2937;
    --web-white: #ffffff;
    
    --web-slate-900: #111827;
    --web-slate-800: #1f2937;
    --web-slate-600: #4b5563;
    --web-slate-400: #9ca3af;
    --web-slate-100: #f3f4f6;
    
    --web-radius: 20px;
}

/* ============================================
   그누보드5 기존 CSS 충돌 방지용 완전 리셋
============================================ */
#tg-web-wrapper,
#tg-web-wrapper *,
#tg-web-wrapper *::before,
#tg-web-wrapper *::after {
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    outline: none !important;
    text-decoration: none !important;
    list-style: none !important;
    background: none !important;
    font-style: normal !important;
    -webkit-font-smoothing: antialiased !important;
    word-break: keep-all !important;
}

#tg-web-wrapper h1, #tg-web-wrapper h2, #tg-web-wrapper h3,
#tg-web-wrapper p, #tg-web-wrapper span, #tg-web-wrapper div {
    font-size: inherit !important;
    font-weight: inherit !important;
    color: inherit !important;
    line-height: inherit !important;
}

/* 래퍼 본체 */
#tg-web-wrapper {
    max-width: 1100px !important;
    margin: 0 auto !important;
    width: 100% !important;
    font-family: 'Pretendard', sans-serif !important;
    background-color: #f7f9fc !important;
    color: var(--web-slate-800) !important;
    padding-bottom: 80px !important;
    overflow: hidden !important;
}

#tg-web-wrapper strong {
    font-weight: 700 !important;
    color: var(--web-primary) !important;
}

#tg-web-wrapper p {
    margin-bottom: 16px !important;
    line-height: 1.8 !important;
    display: block !important;
}

#tg-web-wrapper mark {
    background: linear-gradient(120deg, #e0f2fe 0%, #bae6fd 100%) !important;
    color: #0369a1 !important;
    font-weight: 700 !important;
    padding: 2px 8px !important;
    border-radius: 4px !important;
}

/* ============================================
   히어로 섹션
============================================ */
#tg-web-wrapper .tg-web-hero {
    background: linear-gradient(135deg, #3390ec 0%, #1e40af 100%) !important;
    padding: 110px 24px !important;
    text-align: center !important;
    position: relative !important;
    overflow: hidden !important;
}

#tg-web-wrapper .tg-web-hero::before {
    content: "\f0ac" !important; /* Globe icon */
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
    position: absolute !important;
    font-size: 280px !important;
    color: rgba(255, 255, 255, 0.04) !important;
    top: -40px !important; left: -40px !important;
    transform: rotate(-10deg) !important;
}

#tg-web-wrapper .tg-web-hero__inner {
    position: relative !important; z-index: 1 !important;
    display: flex !important; flex-direction: column !important; align-items: center !important;
}

#tg-web-wrapper .tg-web-hero__badge {
    display: inline-flex !important; align-items: center !important; gap: 8px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    font-size: 14px !important; font-weight: 850 !important;
    padding: 10px 26px !important; border-radius: 100px !important;
    margin-bottom: 28px !important; border: 1px solid rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(8px) !important;
}

#tg-web-wrapper .tg-web-hero__title {
    font-size: 36px !important; font-weight: 950 !important; line-height: 1.3 !important;
    color: var(--web-white) !important; margin-bottom: 24px !important;
    letter-spacing: -0.02em !important;
}

#tg-web-wrapper .tg-web-hero__desc {
    font-size: 19px !important; color: rgba(255, 255, 255, 0.9) !important;
    max-width: 720px !important; line-height: 1.6 !important;
}

#tg-web-wrapper .tg-web-hero__desc strong {
    color: var(--web-white) !important; font-weight: 800 !important;
    text-decoration: underline !important; text-underline-offset: 4px !important;
}

/* ============================================
   메인 콘텐츠 레이아웃
============================================ */
#tg-web-wrapper .tg-web-main {
    padding: 50px 24px !important;
    display: flex !important; flex-direction: column !important; gap: 50px !important;
}

#tg-web-wrapper .tg-web-intro {
    background: var(--web-white) !important;
    padding: 36px !important; border-radius: var(--web-radius) !important;
    border-left: 8px solid var(--web-primary) !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.04) !important;
}

#tg-web-wrapper .tg-web-section {
    background: var(--web-white) !important;
    padding: 45px 35px !important; border-radius: var(--web-radius) !important;
    border: 1px solid var(--web-slate-100) !important;
}

#tg-web-wrapper .tg-web-section--dark {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%) !important;
    border-color: #374151 !important;
}

/* 다크 섹션 가독성 */
#tg-web-wrapper .tg-web-section--dark p { color: #d1d5db !important; }
#tg-web-wrapper .tg-web-section--dark strong { color: #60a5fa !important; }

#tg-web-wrapper .tg-web-section__head {
    display: flex !important; align-items: center !important; gap: 18px !important;
    margin-bottom: 35px !important;
}

#tg-web-wrapper .tg-web-section__icon {
    width: 52px !important; height: 52px !important;
    background: #eff6ff !important; color: var(--web-primary) !important;
    border-radius: 14px !important; display: flex !important; align-items: center !important; justify-content: center !important;
    font-size: 22px !important; border: 1px solid #dbeafe !important;
}

#tg-web-wrapper .tg-web-section--dark .tg-web-section__icon {
    background: rgba(255, 255, 255, 0.05) !important; color: #60a5fa !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

#tg-web-wrapper .tg-web-section__title {
    font-size: 26px !important; font-weight: 850 !important; color: var(--web-navy) !important;
}

#tg-web-wrapper .tg-web-section--dark .tg-web-section__title {
    color: var(--web-white) !important;
}

/* ─── 버전 비교 그리드 ─── */
#tg-web-wrapper .tg-web-version-grid {
    display: grid !important; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)) !important;
    gap: 25px !important;
}

#tg-web-wrapper .tg-web-version-card {
    background: #fff !important; padding: 32px !important; border-radius: 20px !important;
    border: 2px solid #f1f5f9 !important; transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

#tg-web-wrapper .tg-web-version-card:hover {
    transform: translateY(-8px) !important; border-color: var(--web-primary) !important;
    box-shadow: 0 25px 60px rgba(0,0,0,0.06) !important;
}

#tg-web-wrapper .tg-web-version-tag {
    display: inline-block !important; padding: 6px 18px !important; border-radius: 100px !important;
    font-size: 13px !important; font-weight: 900 !important; margin-bottom: 18px !important;
}

#tg-web-wrapper .tg-web-v-label--z { background: #dcfce7 !important; color: #166534 !important; }
#tg-web-wrapper .tg-web-v-label--k { background: #fef9c3 !important; color: #854d0e !important; }

#tg-web-wrapper .tg-web-version-card h3 {
    font-size: 24px !important; font-weight: 900 !important; color: var(--web-navy) !important; margin-bottom: 12px !important;
}

/* ─── 장점 그리드 ─── */
#tg-web-wrapper .tg-web-feature-grid {
    display: grid !important; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
    gap: 20px !important; margin: 30px 0 !important;
}

#tg-web-wrapper .tg-web-feature-item {
    padding: 28px !important; background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important; border-radius: 20px !important;
}

#tg-web-wrapper .tg-web-feature-item i {
    font-size: 28px !important; color: #60a5fa !important; margin-bottom: 20px !important;
}

#tg-web-wrapper .tg-web-feature-item h3 {
    font-size: 20px !important; font-weight: 850 !important; color: #fff !important; margin-bottom: 12px !important;
}

/* ─── 팁 박스 ─── */
#tg-web-wrapper .tg-web-tip {
    display: flex !important; gap: 20px !important; padding: 28px !important;
    background: #fff !important; border-radius: 24px !important;
    border: 1px solid #e2e8f0 !important; box-shadow: 0 10px 25px rgba(0,0,0,0.03) !important;
    margin-top: 15px !important;
}

#tg-web-wrapper .tg-web-tip i {
    font-size: 26px !important; color: #fbbf24 !important; flex-shrink: 0 !important;
}

#tg-web-wrapper .tg-web-tip h4 {
    font-size: 18px !important; font-weight: 850 !important; color: var(--web-navy) !important; margin-bottom: 8px !important;
}

/* ============================================
   결론 및 요약 (Summary)
============================================ */
#tg-web-wrapper .tg-web-summary {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%) !important;
    padding: 70px 30px !important; border-radius: 32px !important; text-align: center !important;
    position: relative !important; overflow: hidden !important;
}

#tg-web-wrapper .tg-web-summary__title {
    font-size: 30px !important; font-weight: 900 !important; color: #fff !important;
    margin-bottom: 25px !important; position: relative !important; z-index: 1 !important;
}

/* 요약 이포그래픽 */
#tg-web-wrapper .tg-web-summary__visual {
    display: flex !important; justify-content: center !important; align-items: center !important;
    gap: 24px !important; margin-bottom: 50px !important; flex-wrap: wrap !important;
    position: relative !important; z-index: 1 !important;
}

#tg-web-wrapper .tg-web-summary__v-item {
    display: flex !important; flex-direction: column !important; align-items: center !important; gap: 14px !important;
}

#tg-web-wrapper .tg-web-summary__v-box {
    width: 76px !important; height: 76px !important;
    background: rgba(255, 255, 255, 0.1) !important; border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 24px !important; display: flex !important; align-items: center !important; justify-content: center !important;
    font-size: 30px !important; color: #fff !important; transition: all 0.3s ease !important;
}

#tg-web-wrapper .tg-web-summary__v-box--active {
    background: #fff !important; color: var(--web-primary) !important;
    box-shadow: 0 15px 35px rgba(255, 255, 255, 0.3) !important;
}

#tg-web-wrapper .tg-web-summary__v-text { font-size: 15px !important; font-weight: 800 !important; color: #fff !important; }

/* 요약 화살표 */
#tg-web-wrapper .tg-web-summary__v-arrow {
    height: 76px !important; display: flex !important; align-items: center !important;
    padding-bottom: 28px !important; /* text height offset */
    color: rgba(255,255,255,0.3) !important; font-size: 22px !important;
}

/* 체크리스트 */
#tg-web-wrapper .tg-web-summary__checklist {
    text-align: left !important; display: inline-block !important;
    background: #fff !important; padding: 45px !important;
    border-radius: 28px !important; width: 100% !important; max-width: 760px !important;
    box-shadow: 0 30px 70px rgba(0,0,0,0.2) !important;
    position: relative !important; z-index: 1 !important;
}

#tg-web-wrapper .tg-web-summary__checklist li {
    position: relative !important; padding-left: 38px !important;
    margin-bottom: 22px !important; font-size: 17px !important; color: var(--web-slate-800) !important;
}

#tg-web-wrapper .tg-web-summary__checklist li:last-child { margin-bottom: 0 !important; }

#tg-web-wrapper .tg-web-summary__checklist li::before {
    content: "\f058" !important; font-family: "Font Awesome 5 Free" !important; font-weight: 900 !important;
    position: absolute !important; left: 0 !important; top: 3px !important; color: #10b981 !important;
    font-size: 24px !important;
}

#tg-web-wrapper .tg-web-summary__footer {
    margin-top: 50px !important; font-size: 16px !important; color: rgba(255, 255, 255, 0.8) !important;
    line-height: 1.7 !important; position: relative !important; z-index: 1 !important;
}

#tg-web-wrapper .tg-web-summary__footer strong {
    color: #ffd700 !important; font-weight: 900 !important;
}

/* 반응형 */
@media (max-width: 768px) {
    #tg-web-wrapper .tg-web-hero__title { font-size: 28px !important; }
    #tg-web-wrapper .tg-web-hero { padding: 80px 20px !important; }
    #tg-web-wrapper .tg-web-summary__visual { gap: 15px !important; }
}

/* 애니메이션 */
.tg-web-motion {
    opacity: 0 !important; transform: translateY(30px) !important;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.tg-web-motion.is-visible {
    opacity: 1 !important; transform: translateY(0) !important;
}
