:root {
	--brand-blue: #2563eb;
	--text-main: #111111;
	--bg-light: #F9F9FB;
}

/* [Utility] */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.highlight { color: var(--brand-blue); position: relative; display: inline-block; }

/* [Sticky Filter] - Mobile Optimized Top Position */
.sticky-filter-wrapper {
	position: sticky; 
	top: 88px; /* 헤더 높이 고려 */
	z-index: 40;
	background: rgba(255, 255, 255, 0.95); 
	backdrop-filter: blur(10px);
	border-bottom: 1px solid rgba(0,0,0,0.05); 
	padding: 12px 0;
	margin-bottom: -1px; /* 갭 제거 */
}
.category-scroll { 
	display: flex; gap: 8px; padding: 0 20px; 
	-webkit-overflow-scrolling: touch; scrollbar-width: none; 
	justify-content: flex-start; /* 모바일 좌측 정렬 */
}
@media (min-width: 768px) { .category-scroll { justify-content: center; } }
.category-scroll::-webkit-scrollbar { display: none; }

.category-tab { 
	flex: 0 0 auto; padding: 10px 20px; border-radius: 99px; 
	font-size: 14px; md:text-15px; font-weight: 600; color: #64748b; 
	background: #f1f5f9; transition: all 0.3s ease; cursor: pointer; 
	white-space: nowrap;
}
.category-tab.active { background: var(--brand-blue); color: white; box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3); }

/* [Hero Section] - Responsive Padding */
.service-hero { 
	padding: 140px 0 80px; 
	text-align: center; 
	min-height: 600px; /* 모바일에서 너무 작아지지 않도록 */
	display: flex; flex-direction: column; justify-content: center;
	overflow:hidden;
}
.hero-title-mb { margin-bottom: 80px; }
@media (min-width: 768px) { .service-hero { padding: 180px 0 80px; min-height: auto; } }

/* [Infinite Slider - Seamless Loop] */
.hero-slider-window { 
	width: 100%;
	max-width:480px;
	margin: 0 auto; 
	position: relative;
	mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent); 
	-webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent); 
	display: flex; align-items: center; 
}

@media (min-width: 768px) {
	.hero-slider-window {max-width:1200px;}
}
/* Track width must fit content. gap-6 (24px). */
.hero-slider-track { 
	display: flex; gap: 24px; 
	width: max-content; 
	/* 16 items: 8 original + 8 clone */
	animation: infiniteScroll linear infinite; 
	padding-left: 24px; /* 초기 갭 */
}


.blank-slide { 
	width: 280px;
	background: #ffffff; 
	border: 1px solid #e2e8f0; border-radius: 12px; 
	box-shadow: 0 10px 30px rgba(0,0,0,0.06); flex-shrink: 0; 
	position: relative; 
	overflow:hidden;
}

.blank-slide img {object-fit:fill; aspect-ratio: 16 / 9; }
@media (min-width: 768px) { .blank-slide { width: 480px; border-radius: 16px; } }
.blank-slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, transparent 40%, rgba(37, 99, 235, 0.03) 100%); border-radius: inherit; }

/* 정확한 루프를 위해 -50% 이동 (아이템 세트가 2번 반복되므로) */
@keyframes infiniteScroll { 
	from { transform: translateX(0); } 
	to { transform: translateX(calc(-50% - 12px)); } /* Gap의 절반 보정 */
}

/* [Alive Object Containers] */
.diff-card { background: white; border-radius: 20px; border: 1px solid #e2e8f0; overflow: hidden; display: flex; flex-direction: column; transition: transform 0.3s, box-shadow 0.3s; height: 100%; }
.diff-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0,0,0,0.08); border-color: #bfdbfe; }
.anim-stage { height: 160px; background: #f8fafc; border-bottom: 1px solid #f1f5f9; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }

/* --- Object Keyframes (Optimized) --- */
/* Intro Objects */
.biz-doc { width: 80px; height: 100px; background: white; border: 1px solid #cbd5e1; padding: 10px; display: flex; flex-direction: column; gap: 6px; position: relative; }
.bd-line { height: 4px; background: #e2e8f0; width: 100%; } .bd-highlight { background: #93c5fd; width: 60%; animation: highlightExpand 2s infinite; }
.bd-check { position: absolute; right: -8px; top: 8px; width: 20px; height: 20px; background: #22c55e; border-radius: 50%; color: white; display: flex; align-items: center; justify-content: center; font-size: 12px; animation: checkBounce 2s infinite; }
@keyframes highlightExpand { 0%, 100% { width: 60%; opacity: 0.7; } 50% { width: 80%; opacity: 1; } }
@keyframes checkBounce { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.2); } }

.grid-lines { position: absolute; width: 200%; height: 200%; background-image: linear-gradient(#e2e8f0 1px, transparent 1px), linear-gradient(90deg, #e2e8f0 1px, transparent 1px); background-size: 20px 20px; opacity: 0.5; animation: gridMove 20s linear infinite; }
.pixel-box { width: 50px; height: 50px; border: 1px solid #2563eb; position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; }
.pixel-box::before, .pixel-box::after { content: ''; position: absolute; width: 4px; height: 4px; background: #2563eb; }
.pixel-box::before { top: -2px; left: -2px; } .pixel-box::after { bottom: -2px; right: -2px; }
.magnifier { position: absolute; width: 70px; height: 70px; border: 3px solid #334155; border-radius: 50%; top: 50%; left: 50%; transform: translate(-20%, -20%); background: rgba(255,255,255,0.2); backdrop-filter: blur(2px) contrast(1.2); box-shadow: 0 10px 20px rgba(0,0,0,0.1); animation: magMove 4s ease-in-out infinite; }
@keyframes gridMove { 0% { transform: translate(0,0); } 100% { transform: translate(-20px, -20px); } }
@keyframes magMove { 0%, 100% { transform: translate(-20%, -20%); } 50% { transform: translate(20%, 20%); } }

.deck-stack { position: relative; width: 70px; height: 90px; }
.ds-card { position: absolute; width: 100%; height: 100%; background: white; border: 1px solid #cbd5e1; border-radius: 4px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: bold; color: #94a3b8; }
.ds-1 { top: 0; left: 0; z-index: 10; animation: cardFlip 3s infinite; }
.ds-2 { top: 4px; left: 4px; z-index: 5; } .ds-3 { top: 8px; left: 8px; z-index: 1; }
.ir-label { position: absolute; bottom: -20px; left: -10px; font-size: 10px; font-weight: bold; background: #eff6ff; color: #2563eb; padding: 2px 6px; border-radius: 4px; white-space: nowrap; z-index: 20; }
.ir-label.book { left: auto; right: -15px; bottom: auto; top: -10px; background: #f0fdf4; color: #16a34a; }
@keyframes cardFlip { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px) rotate(5deg); } }

.hook-text { font-size: 14px; font-weight: bold; color: #94a3b8; position: relative; animation: textPop 3s infinite; }
.hook-spark { position: absolute; top: -20px; right: -20px; font-size: 24px; animation: sparkFlash 3s infinite; opacity: 0; }
@keyframes textPop { 0%, 40% { transform: scale(1); color: #94a3b8; } 50%, 90% { transform: scale(1.2); color: #2563eb; } 100% { transform: scale(1); color: #94a3b8; } }
@keyframes sparkFlash { 0%, 45% { opacity: 0; transform: scale(0.5); } 50% { opacity: 1; transform: scale(1.2); } 100% { opacity: 0; transform: scale(0.5); } }

.eye-track { width: 50px; height: 26px; background: white; border: 3px solid #334155; border-radius: 30px; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.eye-pupil { width: 10px; height: 10px; background: #2563eb; border-radius: 50%; animation: eyeMove 3s infinite ease-in-out; }
.focus-path { position: absolute; width: 100%; height: 2px; background: rgba(37,99,235,0.3); top: 50%; animation: pathPulse 3s infinite; }
@keyframes eyeMove { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-12px); } 75% { transform: translateX(12px); } }
@keyframes pathPulse { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }

.mockup-device { width: 50px; height: 80px; border: 3px solid #334155; border-radius: 6px; background: white; position: relative; overflow: hidden; }
.mockup-screen { width: 100%; height: 100%; background: #eff6ff; animation: scrollScreen 4s infinite linear; }
.mockup-content { width: 80%; height: 8px; background: #bfdbfe; margin: 4px auto; border-radius: 2px; }
@keyframes scrollScreen { 0% { transform: translateY(0); } 100% { transform: translateY(-40px); } }

/* --- Proposal Objects --- */
.pass-doc { width: 70px; height: 90px; background: white; border: 1px solid #cbd5e1; position: relative; display: flex; align-items: center; justify-content: center; }
.pass-stamp { width: 50px; height: 24px; border: 3px solid #ef4444; color: #ef4444; font-weight: 900; font-size: 12px; display: flex; align-items: center; justify-content: center; transform: rotate(-15deg) scale(2); opacity: 0; animation: stampHit 2s infinite; }
@keyframes stampHit { 0% { transform: rotate(-15deg) scale(2); opacity: 0; } 40% { transform: rotate(-15deg) scale(1); opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; } }

.eval-sheet { width: 70px; height: 90px; background: white; border: 1px solid #cbd5e1; padding: 8px; position: relative; }
.eval-row { height: 5px; background: #f1f5f9; margin-bottom: 5px; width: 100%; border-radius: 2px; }
.eval-target { background: #fee2e2; width: 80%; }
.eval-glass { position: absolute; top: 15px; left: 8px; font-size: 24px; animation: glassScan 3s infinite ease-in-out; }
@keyframes glassScan { 0%, 100% { top: 15px; left: 8px; } 50% { top: 40px; left: 20px; } }

.index-tab { width: 70px; height: 90px; background: white; border: 1px solid #cbd5e1; position: relative; }
.tab-ea { position: absolute; right: -8px; width: 16px; height: 10px; background: #cbd5e1; border-radius: 0 3px 3px 0; transition: width 0.3s; animation: tabPop 2s infinite; }
.t1 { top: 10px; animation-delay: 0s; } .t2 { top: 30px; animation-delay: 0.2s; } .t3 { top: 50px; animation-delay: 0.4s; }
@keyframes tabPop { 0%, 100% { width: 10px; background: #cbd5e1; } 50% { width: 16px; background: #2563eb; } }

.rfp-float-wrapper { animation: floatY 3s ease-in-out infinite; }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.trophy-active { animation: trophyShake 3s infinite; transform-origin: bottom center; }
@keyframes trophyShake { 0%, 100% { transform: rotate(0); } 10% { transform: rotate(-5deg); } 20% { transform: rotate(5deg); } 30% { transform: rotate(0); } }

.deadline-pulse { animation: urgentPulse 1s infinite; }
@keyframes urgentPulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.1); opacity: 0.8; } }

/* --- Presentation Objects --- */
.dark-ui { z-index:1; width: 80px; height: 50px; background: white; border: 2px solid #e2e8f0; border-radius: 6px; animation: darkMode 4s infinite; display: flex; align-items: center; justify-content: center; }
.dark-content { width: 60%; height: 4px; background: #cbd5e1; border-radius: 2px; }
@keyframes darkMode { 0%, 45% { background: white; border-color: #e2e8f0; } 50%, 100% { background: #0f172a; border-color: #334155; } }

.meta-box { width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; position: relative; }
.meta-text { font-size: 10px; color: #64748b; position: absolute; animation: morphText 3s infinite; }
.meta-icon { font-size: 24px; position: absolute; animation: morphIcon 3s infinite; opacity: 0; }
@keyframes morphText { 0%, 30% { opacity: 1; transform: scale(1); } 40%, 100% { opacity: 0; transform: scale(0.5); } }
@keyframes morphIcon { 0%, 30% { opacity: 0; transform: scale(0.5); } 40%, 90% { opacity: 1; transform: scale(1); } 100% { opacity: 0; } }

.trigger-btn { width: 36px; height: 36px; background: #e2e8f0; border-radius: 50%; position: relative; display: flex; align-items: center; justify-content: center; }
.cursor-ptr { position: absolute; bottom: -8px; right: -8px; font-size: 18px; animation: cursorClick 2s infinite; }
.btn-active { width: 18px; height: 18px; background: #2563eb; border-radius: 50%; opacity: 0.3; animation: btnFlash 2s infinite; }
@keyframes cursorClick { 0%, 100% { transform: translate(0,0); } 50% { transform: translate(-4px, -4px) scale(0.9); } }
@keyframes btnFlash { 0%, 45% { opacity: 0.3; transform: scale(1); } 50% { opacity: 1; transform: scale(1.2); } 100% { opacity: 0.3; transform: scale(1); } }

.contrast-ui { z-index:1; width: 80px; height: 45px; background: #e2e8f0; border-radius: 4px; display: flex; align-items: center; justify-content: center; animation: contrastBoost 3s infinite; }
.cont-text { font-size: 12px; font-weight: bold; color: #94a3b8; animation: textBoost 3s infinite; }
@keyframes contrastBoost { 0%, 40% { background: #e2e8f0; } 50%, 90% { background: #000000; } 100% { background: #e2e8f0; } }
@keyframes textBoost { 0%, 40% { color: #94a3b8; } 50%, 90% { color: #fbbf24; } 100% { color: #94a3b8; } }

/* [FAQ - Improved Spacing] */
.faq-list { display: flex; flex-direction: column; gap: 24px; }
.faq-item-card { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 16px; overflow: hidden; transition: all 0.3s ease; }
.faq-item-card:active { transform: scale(0.99); }
.faq-q-card { padding: 20px 24px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 16px; color: #1e293b; }
.faq-q-text { flex: 1; margin-right: 12px; }
.faq-q-text span { color: var(--brand-blue); margin-right: 8px; font-weight: 800; }
.faq-icon-card { width: 24px; height: 24px; background: #f1f5f9; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; color: #64748b; transition: all 0.3s; flex-shrink: 0; }
.faq-item-card.active .faq-icon-card { transform: rotate(45deg); background: var(--brand-blue); color: white; }
.faq-a-card { padding: 0 24px 24px 24px; display: none; color: #475569; font-size: 15px; line-height: 1.6; border-top: 1px solid #f1f5f9; margin-top: -10px; padding-top: 20px; }
.faq-item-card.active .faq-a-card { display: block; }

/* [Metrics] */
.metric-card { text-align: center; padding: 20px; }
.metric-val {font-weight: 800; color: #2563eb; margin-bottom: 8px; }
.metric-label { font-size: 18px; md:text-14px; color: #64748b; font-weight: 600; word-break: keep-all; }

/* [Testimonial Slider - Infinite Loop] */
.testimonial-window { width: 100%; overflow: hidden; mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent); -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent); padding: 20px 0; }
.testimonial-track { display: flex; gap: 24px; width: max-content; animation: loopTestimonial 40s linear infinite; }
.testi-card-slide { width: 280px; md:width-320px; background: #f8fafc; border-radius: 16px; padding: 24px; md:padding-30px; border: 1px solid #f1f5f9; position: relative; flex-shrink: 0; white-space: normal; }
.quote-mark { font-size: 60px; color: #dbeafe; position: absolute; top: 10px; left: 20px; line-height: 1; font-family: serif; font-weight: 900; }
.testi-text { position: relative; z-index: 2; color: #334155; font-size: 14px; md:text-15px; margin-bottom: 20px; line-height: 1.6; }
.testi-author { font-weight: 600; color: #0f172a; font-size: 14px; }
.testi-role { font-size: 12px; color: #64748b; }
@keyframes loopTestimonial { 0% { transform: translateX(0); } 100% { transform: translateX(calc(-50% - 12px)); } }

/* [CTA Hover Fill - Smooth Bottom Up] */
.btn-fill-hover { position: relative; overflow: hidden; z-index: 1; transition: color 0.6s cubic-bezier(0.25, 1, 0.5, 1); border: none; }
.btn-fill-hover::before { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 0; background-color: #1e40af; z-index: -1; transition: height 0.6s cubic-bezier(0.25, 1, 0.5, 1); }
.btn-fill-hover:hover::before { height: 100%; }
.btn-fill-hover:hover { color: white !important; }

@media (min-width: 768px) { .category-scroll { justify-content: center; } .service-hero { padding: 180px 0 60px; } }
