/* [통합 변수 설정] */
:root {
	--primary: #2563eb;
	--brand-blue: #2563eb;
	--accent: #D7E4FF;
	--highlight-text: #2E6FF2;
	--bg-light: #F9F9FB;
	--text-main: #111111;
	--text-body: #444444;
	--text-sub: #666666;
	--line-color: #e2e8f0;
	--highlight-color: #BFDBFE; 
	--kakao-yellow: #FEE500;
	
	--primary-blue: #3B71EA;
	--deep-navy: #1A2138;
	--compass-red: #FF6B6B; /* 나침반 바늘 포인트 */
	--glass-bg: rgba(255, 255, 255, 0.85);
	--glass-border: rgba(255, 255, 255, 0.9);
	--shadow-soft: 0 20px 60px rgba(59, 113, 234, 0.1);
	
}

/* Smooth Scroll Padding for Sticky Header */
html {
	scroll-padding-top: 140px;
}



* { box-sizing: border-box; }

.kakao-btn-small {
	background-color: var(--kakao-yellow);
	color: var(--kakao-brown);
	padding: 14px 24px;
	border-radius: 14px;
	font-weight: 600;
	font-size: 14px;
	align-items: center;
	gap: 8px;
	transition: all 0.2s ease;
}


.step-card {
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.step-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}


/* [Common Utilities] */
.btn-transition { transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.btn-hover-effect:hover { transform: scale(1.05); box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.2); }
.btn-hover-effect:active { transform: scale(0.96); }

.reveal { opacity: 0; transform: translateY(20px); transition: all 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

nav { backdrop-filter: blur(12px); background: rgba(255, 255, 255, 0.9); border-bottom: 1px solid rgba(0, 0, 0, 0.05); }
.premium-bg { background: linear-gradient(135deg, #2563eb 0%, #172554 100%); border-radius: 24px; }
@media (min-width: 768px) { .premium-bg { border-radius: 40px; } }

/* [Hero Section Styles] */
.keyword-wrapper { display: inline-flex; flex-direction: column; vertical-align: top; height: 1.2em; overflow: hidden; position: relative; }
.keyword-list { display: flex; flex-direction: column; transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1); }
.keyword-item { height: 1.2em; line-height: 1.2em; white-space: nowrap; display: block; }
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(calc(-50% - 16px)); } }
.slider-container { 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); }
.slider-track { display: flex; gap: 16px; animation: scroll 40s linear infinite; width: max-content; padding: 10px 0 30px 0; }
@media (min-width: 768px) { .slider-track { gap: 32px; animation-duration: 60s; padding: 20px 0 40px 0; } }

.hero-card { width: 280px; aspect-ratio: 16 / 9; flex-shrink: 0; background: #1e293b; border-radius: 10px; overflow:hidden;  position: relative; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.3); }
@media (min-width: 768px) { .hero-card { width: 480px; border-radius: 10px; } }
.hero-card:hover { transform: translateY(-8px); border-color: #3b82f6; box-shadow: 0 25px 50px -12px rgba(59, 130, 246, 0.3); transition: all 0.3s ease; }
.slide-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%); display: flex; align-items: center; justify-content: center; border-radius: inherit; }

.text-content-wrapper { transition: opacity 0.6s ease, transform 0.6s ease; }
.text-content-wrapper.fade-out { opacity: 0; transform: translateY(-10px); }
.text-content-wrapper.fade-in { opacity: 0; transform: translateY(10px); }

/* [Animations & Highlight] */
.highlight { position: relative; display: inline-block; z-index: 1; color: inherit; transition: color 0.5s ease; color: var(--brand-blue); } 
.highlight::after { content: ''; position: absolute; left: 0; bottom: 2px; width: 100%; height: 40%; background-color: var(--accent); opacity: 1; transform: scaleX(0); transform-origin: left; transition: transform 1s cubic-bezier(0.65, 0, 0.35, 1); z-index: -1; }
.highlight.active::after { transform: scaleX(1); }

.highlight-stroke { position: relative; z-index: 1; display: inline-block; color: var(--brand-blue); } 
.highlight-stroke::after { content: ''; position: absolute; left: 0; bottom: 4px; width: 0%; height: 35%; background-color: #D7E4FF; z-index: -1; animation: strokeAnim 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards; animation-delay: 0.3s; }
@keyframes strokeAnim { to { width: 100%; } }

.pricing-highlight { position: relative; display: inline-block; z-index: 1; color: var(--brand-blue); } 
.pricing-highlight::after { content: ''; position: absolute; left: 0; bottom: 4px; width: 100%; height: 12px; background-color: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1); z-index: -1; }
.reveal.visible .pricing-highlight::after { transform: scaleX(1); }

.faq-main-highlight { position: relative; display: inline-block; z-index: 1; padding: 0 4px; color: var(--brand-blue); } 
.faq-main-highlight::after { content: ''; position: absolute; left: 0; bottom: 4px; width: 100%; height: 22px; background-color: var(--highlight-color); transform: scaleX(0); transform-origin: left; transition: transform 1.2s cubic-bezier(0.65, 0, 0.35, 1); z-index: -1; }
.reveal.visible .faq-main-highlight::after { transform: scaleX(1); }

/* [Differentiators Styles] */
.diff-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 30px); }
.diff-card { background: #FFFFFF; border: 1px solid #EEEEEE; border-radius: 24px; padding: clamp(24px, 4vw, 40px); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04); transition: all 0.1s ease; display: flex; flex-direction: column; position: relative; }
@media (min-width: 1025px) { .diff-card:hover { transform: translateY(-8px); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08); border-color: rgba(37, 99, 235, 0.3); } }
@media (max-width: 1024px) { .diff-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .diff-grid { grid-template-columns: 1fr; gap: 24px; } }
.diff-object-area { width: 100%; height: 140px; background: #F9F9FB; border-radius: 16px; margin-bottom: clamp(24px, 4vw, 32px); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }

/* [Before/After Comparison Slider Styles] */
.comparison-wrapper { position: relative; width: 100%; max-width: 1040px; margin: 0 auto; }
.comparison-container { position: relative; width: 100%; aspect-ratio: 16 / 9; box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1); background: #ffffff; cursor: col-resize; touch-action: none; }
@media (min-width: 768px) { .comparison-container {border-radius: 24px; } }
.image-layer { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; border-radius: 16px; overflow:hidden;}
.image-after { clip-path: inset(0 0 0 50%); z-index: 2; }
.slider-handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: white; z-index: 20; transform: translateX(-50%); pointer-events: none; }
.slider-handle::after { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 40px; height: 40px; background: white; border-radius: 50%; box-shadow: 0 4px 12px rgba(0,0,0,0.15); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%232563eb'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2.5' d='M8 7l-5 5m0 0l5 5m-5-5h18m-5-5l5 5m0 0l-5 5'/%3E%3C/svg%3E"); background-size: 16px; background-repeat: no-repeat; background-position: center; }
.detail-overlay { position: absolute; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); padding: 20px; }
.comparison-container.active-before .image-before { filter: blur(10px) brightness(0.6); }
.comparison-container.active-before .overlay-before { opacity: 1; pointer-events: auto; backdrop-filter: blur(8px); }
.comparison-container.active-after .image-after { filter: blur(10px) brightness(0.6); }
.comparison-container.active-after .overlay-after { opacity: 1; pointer-events: auto; backdrop-filter: blur(8px); }
.detail-card { background: white; padding: 24px; border-radius: 16px; width: 100%; max-width: 400px; box-shadow: 0 20px 40px rgba(0,0,0,0.25); transform: translateY(10px); transition: transform 0.4s ease; }
@media (min-width: 768px) { .detail-card { padding: 40px; border-radius: 20px; } }
.comparison-container[class*="active-"] .detail-card { transform: translateY(0); }
.caption-area { display: flex; justify-content: center; gap: 24px; margin-top: 20px; font-size: 12px; font-weight: 800; color: #9ca3af; letter-spacing: 0.05em; }
.dot-nav { display: flex; justify-content: center; gap: 8px; margin-top: 24px; flex-wrap: wrap; }
.nav-dot { width: 6px; height: 6px; border-radius: 50%; background: #d1d5db; cursor: pointer; transition: all 0.3s; margin-bottom: 4px; }
.nav-dot.active { width: 18px; border-radius: 4px; background: var(--brand-blue); }


#comparisonSlider #pager {position:absolute; top:50%; z-index:10; left:-20px; right:-20px; display:flex; justify-content: space-between; margin:-20px 0 0;}
#comparisonSlider #pager a {width: 40px; height: 40px; background: white; border-radius: 50%; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); color:var(--brand-blue); position:relative;}
#comparisonSlider #pager a svg {top:50%; left:50%; margin-top:-12px; margin-left:-12px; position:absolute;}

/* [Portfolio Styles] */
.pf-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .pf-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .pf-grid { grid-template-columns: repeat(3, 1fr); } } 
.pf-item { position: relative; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; cursor: pointer; transition: all 0.4s ease; border: 1px solid rgba(255,255,255,0.1); box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
.pf-item img { width: 100%; height: 100%; object-fit: fill; transition: transform 0.6s ease; }
.pf-item:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0,0,0,0.3); }
.pf-item:hover img { transform: scale(1.05); }
.pf-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.3); opacity: 0; transition: opacity 0.3s; display: flex; align-items: center; justify-content: center; }
.pf-item:hover .pf-overlay { opacity: 1; }
.pf-badge { position: absolute; top: 16px; left: 16px; background: #2563eb; color: white; padding: 5px 12px; border-radius: 100px; font-size: 11px; font-weight: 600; z-index: 10; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); }

/* [Process Section - Updated to 3D Card Style + Arrows] */
.process-3d-grid { 
	display: grid; 
	grid-template-columns: 1fr; 
	gap: 2rem; 
	position: relative;
}
@media (min-width: 768px) { 
	.process-3d-grid { 
		grid-template-columns: repeat(3, 1fr); 
		gap: 2rem; /* Reduced gap slightly for arrows */
	} 
}

.proc-3d-card {
	background: #ffffff;
	border-radius: 24px;
	padding: 32px;
	box-shadow: 
		0 10px 15px -3px rgba(0, 0, 0, 0.05),
		0 4px 6px -2px rgba(0, 0, 0, 0.025),
		inset 0 0 0 1px rgba(255, 255, 255, 0.6);
	border: 1px solid rgba(0, 0, 0, 0.03);
	transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
	position: relative;
	z-index: 10;
}
.proc-3d-card:hover {
	transform: translateY(-8px) scale(1.02);
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
.proc-3d-icon { font-size: 3rem; margin-bottom: 1.5rem; filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1)); transition: transform 0.3s ease; }
.proc-3d-card:hover .proc-3d-icon { transform: scale(1.1) rotate(5deg); }
.step-pill { display: inline-block; padding: 4px 12px; background: #EFF6FF; color: #2563eb; border-radius: 100px; font-size: 11px; font-weight: 800; margin-bottom: 12px; }

/* Arrow Connector Styling */
.arrow-connector {
	display: flex;
	align-items: center;
	justify-content: center;
	color: #CBD5E1; /* Slate 300 */
	font-size: 24px;
	padding: 10px 0;
}
@media (min-width: 768px) {
	.arrow-connector {
		position: absolute;
		top: 50%;
		transform: translateY(-50%);
		padding: 0;
		width: 40px;
		height: 40px;
		z-index: 5;
	}
	.arrow-1-2 { left: calc(33.333% - 20px); }
	.arrow-2-3 { left: calc(66.666% - 20px); }
	.arrow-3-4 { display: none; } /* Line break on grid, arrow hard to place simply */
	.arrow-4-5 { left: calc(33.333% - 20px); top: auto; bottom: 25%; } /* Approximate for Row 2 */
	.arrow-5-6 { left: calc(66.666% - 20px); top: auto; bottom: 25%; }
}

/* [Estimator Styles] */
.est-option-card {
	border: 1px solid #E2E8F0;
	border-radius: 16px;
	padding: 24px;
	cursor: pointer;
	transition: all 0.2s ease;
	position: relative;
	background: white;
}
.est-option-card:hover { border-color: #3B82F6; }
.est-option-card.selected {
	border: 2px solid #2563eb;
	background-color: #EFF6FF;
	box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}
.est-check-icon {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	border: 2px solid #CBD5E1;
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	transition: all 0.2s;
}
.est-option-card.selected .est-check-icon {
	background-color: #2563eb;
	border-color: #2563eb;
}

.est-grade-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 24px;
	border: 1px solid #E2E8F0;
	border-radius: 12px;
	cursor: pointer;
	transition: all 0.2s;
	background: white;
	margin-bottom: 12px;
}
.est-grade-row:hover { border-color: #93C5FD; }
.est-grade-row.selected {
	border: 2px solid #2563eb;
	background-color: #F8FAFC;
}
.est-grade-badge {
	font-size: 11px;
	font-weight: 600;
	padding: 4px 8px;
	border-radius: 6px;
	margin-left: 10px;
}
.badge-basic { background: #F1F5F9; color: #64748B; }
.badge-standard { background: #FFF1EE; color: #FF5A4E; }
.badge-premium { background: #F3E8FF; color: #9333EA; }

/* Custom Slider */
input[type=range] {
	-webkit-appearance: none;
	width: 100%;
	height: 8px;
	background: #E2E8F0;
	border-radius: 4px;
	outline: none;
}
input[type=range]::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #2563eb;
	cursor: pointer;
	box-shadow: 0 4px 10px rgba(37, 99, 235, 0.4);
	border: 3px solid white;
}

/* [Common Utilities] */
.faq-item { border-bottom: 1px solid #f1f5f9; transition: all 0.3s ease; display: none; }
.faq-question { cursor: pointer; padding: 26px 0; display: flex; justify-content: space-between; align-items: center; transition: color 0.3s; gap:10px;}
.faq-question:hover { color: var(--primary); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1); color: var(--text-sub); padding-bottom: 0; }
.faq-item.active .faq-answer { max-height: 800px; padding-bottom: 26px; }
.arrow-icon { transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); color: #cbd5e1; }
.faq-item.active .arrow-icon { transform: rotate(180deg); color: var(--primary); }
.tab-wrapper { overflow-x: auto; white-space: nowrap; -ms-overflow-style: none; scrollbar-width: none; padding: 10px 0; }
.tab-wrapper::-webkit-scrollbar { display: none; }
.tab-btn { display: inline-block; padding: 10px 26px; border-radius: 99px; font-weight: 600; font-size: 15px; transition: all 0.3s ease; border: 1px solid #e2e8f0; color: #000000; background: #fff; margin-right: 8px; }
.tab-btn:last-child { margin-right: 0; }
.tab-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.25); }
.item-tag { font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 4px; margin-bottom: 8px; display: inline-block; text-transform: uppercase; }
.tag-prepare { background: #ecfdf5; color: #10b981; }
.tag-payment { background: #fff7ed; color: #f59e0b; }
.tag-process { background: #eff6ff; color: #3b82f6; }
.tag-after { background: #f5f3ff; color: #8b5cf6; }
@media (max-width: 640px) { .tab-btn { padding: 10px 20px; font-size: 14px; } }

/* [NEW: Footer & Mid CTA Styles (Isolated from Main Slider)] */
.footer-comp-wrapper { width: 100%; background: #ffffff; border-radius: 16px; position: relative; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2); aspect-ratio: 16/9; height: auto; max-height: 240px; }
.footer-side-before { position: absolute; inset: 0; background: #f1f5f9; display: flex; flex-direction: column; padding: 24px; gap: 12px; }
.text-skeleton { height: 10px; background: #cbd5e1; border-radius: 5px; }
.footer-side-after { position: absolute; inset: 0; background: white; display: flex; flex-direction: column; padding: 24px; gap: 12px; z-index: 2; clip-path: inset(0 0 0 50%); animation: magic-loop 5s infinite ease-in-out; animation-delay: 1s; }
.footer-design-card { height: 70px; background: linear-gradient(135deg, #2563eb, #60a5fa); border-radius: 12px; display: flex; align-items: center; padding: 0 16px; box-shadow: 0 10px 30px rgba(37, 99, 235, 0.25); }
.design-element { height: 12px; background: rgba(37, 99, 235, 0.1); border-radius: 6px; }
.footer-magic-line { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: rgba(37, 99, 235, 0.5); z-index: 10; transform: translateX(-50%); animation: line-loop 5s infinite ease-in-out; animation-delay: 1s; }
.footer-magic-line::after { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 14px; height: 14px; background: #2563eb; border-radius: 50%; border: 3px solid white; box-shadow: 0 2px 10px rgba(0,0,0,0.2); }
.status-sparkle { position: absolute; font-size: 24px; z-index: 20; opacity: 0; pointer-events: none; }

@keyframes magic-loop { 0%, 20% { clip-path: inset(0 0 0 50%); } 40%, 60% { clip-path: inset(0 0 0 0%); } 80%, 95% { clip-path: inset(0 0 0 100%); } 100% { clip-path: inset(0 0 0 50%); } }
@keyframes line-loop { 0%, 20% { left: 50%; } 40%, 60% { left: 0%; } 80%, 95% { left: 100%; } 100% { left: 50%; } }

/* Animation Objects */
@keyframes drawLine { 0% { width: 0%; opacity: 1; } 70%, 100% { width: 100%; opacity: 0; } }
@keyframes penMove { 0% { left: 0; } 70% { left: 100%; } 71%, 100% { opacity: 0; } }
@keyframes rotateHand { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes blinkText { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
@keyframes barGrow { 0%, 100% { height: 15px; } 50% { height: 45px; } }
@keyframes shapeRotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes dragMotion { 0%, 15% { transform: translate(0, 0); } 40%, 60% { transform: translate(30px, 12px); } 85%, 100% { transform: translate(0, 0); } }
@keyframes mouseMoveDrag { 0% { transform: translate(70px, 40px); } 25% { transform: translate(25px, 20px); } 40%, 60% { transform: translate(60px, 35px); } 85% { transform: translate(25px, 20px); } 100% { transform: translate(70px, 40px); } }
@keyframes selectArea { 0%, 10% { width: 0; height: 0; top: 10px; left: 10px; opacity: 0; } 20% { width: 50px; height: 35px; top: 10px; left: 10px; opacity: 1; } 30%, 100% { width: 50px; height: 35px; top: 10px; left: 10px; opacity: 0; } }
@keyframes pulseSuccess { 0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7); } 70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(37, 99, 235, 0); } 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); } }
@keyframes arrowMove { 0% { transform: translateX(0); opacity: 1; } 50% { transform: translateX(6px); opacity: 0.6; } 100% { transform: translateX(0); opacity: 1; } }
.moving-arrow { display: inline-block; animation: arrowMove 1.5s infinite ease-in-out; }
.group:hover .moving-arrow-icon { animation: arrowMove 1.5s infinite ease-in-out; }

.obj-scenario { width: 100px; height: 50px; position: relative; }
.scenario-dot { position: absolute; width: 8px; height: 8px; background: var(--primary); border-radius: 50%; top: 50%; transform: translateY(-50%); }
.dot-1 { left: 0; } .dot-2 { left: 50%; transform: translate(-50%, -50%); } .dot-3 { right: 0; }
.scenario-line { position: absolute; top: 50%; left: 0; height: 2px; background: var(--primary); width: 0%; animation: drawLine 3s infinite cubic-bezier(0.4, 0, 0.2, 1); }
.scenario-pen { position: absolute; font-size: 20px; top: 5px; left: 0; animation: penMove 3s infinite cubic-bezier(0.4, 0, 0.2, 1); }
.obj-speed-unified { width: 70px; height: 70px; border: 3px solid #e2e8f0; border-radius: 50%; position: relative; display: flex; align-items: center; justify-content: center; }
.speed-gauge { position: absolute; width: 100%; height: 100%; border-radius: 50%; border: 3px solid transparent; border-top-color: var(--primary); animation: rotateHand 1s linear infinite; }
.speed-rocket-icon { position: absolute; font-size: 20px; top: -14px; left: 50%; transform: translateX(-50%); }
.speed-clock-text { font-size: 11px; font-weight: 800; color: #f43f5e; animation: blinkText 0.5s infinite; }
.obj-visual { display: flex; align-items: flex-end; gap: 6px; height: 50px; }
.visual-bar { width: 12px; background: var(--primary); border-radius: 3px 3px 0 0; animation: barGrow 2s infinite ease-in-out; }
.obj-ppt-design { width: 90px; height: 60px; background: white; border: 2px solid #cbd5e1; border-radius: 4px; position: relative; padding: 6px; display: flex; flex-direction: column; gap: 4px; overflow: hidden; }
.ppt-header { width: 40%; height: 5px; background: #e2e8f0; border-radius: 1px; }
.ppt-body { width: 100%; height: 20px; background: #f1f5f9; border-radius: 1px; display: flex; align-items: center; justify-content: center; }
.ppt-shape { width: 12px; height: 12px; background: var(--primary); transform: rotate(45deg); animation: shapeRotate 3s infinite linear; }
.ppt-footer { display: flex; gap: 3px; }
.ppt-line { width: 30%; height: 3px; background: #e2e8f0; border-radius: 1px; }
.obj-edit-window { width: 90px; height: 65px; background: white; border: 1px solid #cbd5e1; border-radius: 4px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); position: relative; overflow: hidden; }
.window-title-bar { width: 100%; height: 10px; background: #f1f5f9; display: flex; align-items: center; padding: 0 4px; gap: 2px; }
.dot-mini { width: 3px; height: 3px; border-radius: 50%; background: #cbd5e1; }
.window-content { position: relative; width: 100%; height: 55px; }
.draggable-element { position: absolute; width: 25px; height: 18px; background: rgba(37, 99, 235, 0.1); border: 1px dashed var(--primary); top: 12px; left: 12px; animation: dragMotion 4s infinite ease-in-out; }
.edit-selection { position: absolute; background: rgba(37, 99, 235, 0.05); border: 0.5px solid var(--primary); animation: selectArea 4s infinite ease-in-out; }
.mouse-cursor { position: absolute; font-size: 14px; z-index: 10; animation: mouseMoveDrag 4s infinite ease-in-out; }
.obj-success { width: 60px; height: 60px; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 28px; animation: pulseSuccess 2s infinite; }










/* 16:9 카드 컨테이너 */
.card-container {
width: 100%;
max-width: 100%;
aspect-ratio: 16 / 9;
background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%);
box-shadow: var(--shadow-soft), 0 0 0 1px rgba(255,255,255,0.8) inset;
position: relative;
overflow: hidden;
display: flex;
justify-content: center;
align-items: center;
}

/* 배경 그리드 패턴 (선명도 UP) */
.grid-bg {
position: absolute;
width: 200%;
height: 200%;
/* 투명도를 0.03 -> 0.08로 높여서 더 잘 보이게 수정 */
background-image: 
	linear-gradient(rgba(59, 113, 234, 0.08) 1px, transparent 1px),
	linear-gradient(90deg, rgba(59, 113, 234, 0.08) 1px, transparent 1px);
background-size: 40px 40px;
/* 3D 원근감 유지 */
transform: perspective(500px) rotateX(60deg) translateY(-100px) translateZ(-100px);
animation: gridMove 20s linear infinite;
z-index: 0;
}

/* 메인 무대 (컨텐츠 영역) */
.stage-area {
position: relative;
z-index: 10;
width: 80%;
height: 60%;
display: flex;
justify-content: space-between;
align-items: center;
}



/* === 1. 좌측: 계약 체결 (Contract) === */
.left-section {
display: flex;
flex-direction: column;
align-items: center;
gap: 15px;
}

.contract-icon {
animation: float 6s ease-in-out infinite;
}

.paper {
width: 60px;
height: 80px;
background: white;
border-radius: 8px;
box-shadow: 0 5px 15px rgba(0,0,0,0.1);
position: relative;
overflow: hidden;
}

.paper::after { /* 접힌 모서리 */
content: '';
position: absolute;
top: 0; right: 0;
width: 0; height: 0;
border-style: solid;
border-width: 0 20px 20px 0;
border-color: transparent #e2e8f0 transparent transparent;
}

.paper-content {
padding: 12px;
}

.line {
height: 4px;
background: #E2E8F0;
border-radius: 2px;
margin-bottom: 6px;
}
.line.short { width: 60%; }

/* 서명 펜 애니메이션 */
.pen {
position: absolute;
bottom: 20px;
right: 10px;
width: 4px;
height: 25px;
background: var(--deep-navy);
transform-origin: bottom center;
animation: writeSignature 3s ease-in-out infinite;
z-index: 5;
}
.pen::before { /* 펜촉 */
content: '';
position: absolute;
bottom: -4px; left: 0;
border-left: 2px solid transparent;
border-right: 2px solid transparent;
border-top: 5px solid var(--deep-navy);
}

/* 서명 완료 체크 */
.stamp-mark {
position: absolute;
bottom: 10px;
right: 10px;
width: 24px;
height: 24px;
background: var(--primary-blue);
border-radius: 50%;
display: flex;
justify-content: center;
align-items: center;
color: white;
font-size: 14px;
opacity: 0;
transform: scale(0);
animation: stampIn 3s infinite;
}

/* === 2. 우측: 자료 수령 (Assets) === */
.right-section {
display: flex;
flex-direction: column;
align-items: center;
gap: 15px;
}

.assets-icon {
animation: float 6s ease-in-out infinite 1s; /* 1초 딜레이 */
}

.box-container {
width: 70px;
height: 50px;
position: relative;
transform-style: preserve-3d;
transform: rotateX(10deg) rotateY(-10deg);
}

.box-body {
position: absolute;
bottom: 0;
width: 100%;
height: 40px;
background: #E2E8F0;
border-radius: 4px;
box-shadow: inset 0 -10px 20px rgba(0,0,0,0.05);
z-index: 1;
}

/* 들어가는 아이템들 */
.item-drop {
	position: absolute;
	top: -50px;
	left: 20px;
	width: 32px;
	height: 32px;
	background: white;
	border-radius: 6px;
	box-shadow: 0 4px 10px rgba(0,0,0,0.1);
	display: flex;
	justify-content: center;
	align-items: center;
	font-size: 10px;
	color: var(--primary-blue);
	font-weight: 800;
	opacity: 0;
	animation: dropIn 5s infinite; /* 5개 아이템을 위해 주기 늘림 */
}

/* 공통 아이콘 베이스 */
.icon-base {
	width: 120px;
	height: 120px;
	background: var(--glass-bg);
	border: 1px solid var(--glass-border);
	border-radius: 24px;
	box-shadow: 0 10px 30px rgba(0,0,0,0.05);
	display: flex;
	justify-content: center;
	align-items: center;
	position: relative;
	transition: transform 0.3s ease;
}

/* 아이템별 스타일 및 딜레이 */
.item-drop.d1 { animation-delay: 0s; background: #fff; color: #3B71EA; } /* IMG */
.item-drop.d2 { animation-delay: 1s; background: #3B71EA; color: #fff; left: 35px; } /* PPT */
.item-drop.d3 { animation-delay: 2s; background: #FF9F43; color: #fff; left: 10px; } /* SVG */
.item-drop.d4 { animation-delay: 3s; background: #10B981; color: #fff; left: 30px; } /* PNG */
.item-drop.d5 { animation-delay: 4s; background: #F59E0B; color: #fff; left: 20px; } /* PDF */


/* === 3. 중앙: 연결선 및 로켓 (Work Start) === */
.center-section {
flex: 1;
display: flex;
justify-content: center;
align-items: center;
position: relative;
height: 100%;
}

/* 연결 파이프라인 */
.pipeline {
position: absolute;
top: 50%;
transform: translateY(-50%);
height: 6px;
background: #F1F5F9;
border-radius: 3px;
z-index: 0;
overflow: hidden;
}

.pipeline.left { left: 0; right: 55%; /* 왼쪽에서 중앙으로 */ }
.pipeline.right { right: 0; left: 55%; /* 오른쪽에서 중앙으로 */ }

/* 에너지 흐름 입자 */
.energy-flow {
position: absolute;
top: 0;
left: 0;
width: 40px;
height: 100%;
background: linear-gradient(90deg, transparent, var(--primary-blue), transparent);
filter: blur(2px);
opacity: 0;
}

.pipeline.left .energy-flow { animation: flowLeft 3s infinite; }
.pipeline.right .energy-flow { animation: flowRight 3s infinite; }


/* 중앙 로켓 베이스 */
.rocket-base {
width: 140px;
height: 140px;
background: white;
border-radius: 50%;
box-shadow: 0 20px 50px rgba(59, 113, 234, 0.2);
position: relative;
z-index: 5;
display: flex;
justify-content: center;
align-items: center;
}

/* 펄스 효과 (준비 완료 시 발산) */
.pulse-ring {
position: absolute;
width: 100%;
height: 100%;
border-radius: 50%;
border: 2px solid var(--primary-blue);
opacity: 0;
animation: ripple 3s infinite 1.5s; /* 양쪽에서 도착한 후 실행 */
}

.rocket-obj {
width: 60px;
height: 60px;
transform: rotate(45deg);
z-index: 6;
filter: drop-shadow(0 10px 10px rgba(59, 113, 234, 0.2)); /* 그림자 부드럽게 조정 */
animation: rocketIdle 3s ease-in-out infinite;
}



.monitor-icon {
animation: float 6s ease-in-out infinite;
}

.screen-frame {
width: 80px;
height: 60px;
background: white;
border: 2px solid #E2E8F0;
border-radius: 8px;
position: relative;
overflow: hidden;
box-shadow: 0 4px 12px rgba(0,0,0,0.05);
display: flex;
flex-direction: column;
padding: 4px;
gap: 4px;
}

.screen-stand {
position: absolute;
bottom: -8px;
left: 50%;
transform: translateX(-50%);
width: 20px;
height: 8px;
background: #CBD5E1;
border-radius: 0 0 4px 4px;
}

.screen-base {
position: absolute;
bottom: -12px;
left: 50%;
transform: translateX(-50%);
width: 40px;
height: 4px;
background: #CBD5E1;
border-radius: 4px;
}

/* 화면 내부 UI 애니메이션 (레이아웃 변경) */
.ui-header { width: 100%; height: 8px; background: #E2E8F0; border-radius: 2px; }
.ui-body { display: flex; gap: 4px; flex: 1; }
.ui-col { background: #F1F5F9; border-radius: 2px; transition: all 0.5s ease; }

/* 레이아웃 변형 애니메이션 */
.ui-col.left { width: 30%; animation: layoutShiftLeft 4s infinite; }
.ui-col.right { width: 70%; animation: layoutShiftRight 4s infinite; }

/* === 2. 우측: 피드백 (Feedback) === */
.right-section {
display: flex;
flex-direction: column;
align-items: center;
}

.chat-icon {
animation: float 6s ease-in-out infinite 1s;
}

.bubble-container {
position: relative;
width: 100%;
height: 100%;
}

.bubble {
position: absolute;
background: white;
border-radius: 8px;
padding: 8px;
box-shadow: 0 4px 10px rgba(0,0,0,0.1);
display: flex;
align-items: center;
justify-content: center;
animation: popUp 4s infinite;
}

.bubble::after { /* 말풍선 꼬리 */
content: '';
position: absolute;
width: 0; height: 0;
border-style: solid;
}

/* 버블 1 (좌측 하단) */
.bubble.b1 {
bottom: 30px; left: 20px;
width: 40px; height: 30px;
background: #3B71EA;
}
.bubble.b1::after {
bottom: -6px; left: 10px;
border-width: 6px 6px 0 0;
border-color: #3B71EA transparent transparent transparent;
}
.bubble.b1 .dots { display: flex; gap: 3px; }
.bubble.b1 .dot { width: 4px; height: 4px; background: white; border-radius: 50%; animation: blink 1.5s infinite; }
.bubble.b1 .dot:nth-child(2) { animation-delay: 0.2s; }
.bubble.b1 .dot:nth-child(3) { animation-delay: 0.4s; }

/* 버블 2 (우측 상단) */
.bubble.b2 {
top: 30px; right: 20px;
width: 30px; height: 24px;
animation-delay: 2s;
border: 1px solid #E2E8F0;
}
.bubble.b2::after {
bottom: -6px; right: 10px;
border-width: 0 6px 6px 0;
border-color: transparent white transparent transparent;
transform: rotate(90deg); /* 꼬리 방향 조정 */
top: 8px; right: -6px; bottom: auto;
}
.bubble.b2 svg { width: 14px; height: 14px; color: #FF6B6B; }


/* === 3. 중앙: 방향성 확정 (Compass) === */
.center-section {
flex: 1;
display: flex;
justify-content: center;
align-items: center;
position: relative;
height: 100%;
}

/* 파이프라인 */
.pipeline {
position: absolute;
top: 50%;
transform: translateY(-50%);
height: 6px;
background: #F1F5F9;
border-radius: 3px;
z-index: 0;
overflow: hidden;
}
.pipeline.left { left: 0; right: 55%; }
.pipeline.right { right: 0; left: 55%; }

/* 흐름 입자 */
.energy-flow {
position: absolute;
top: 0; left: 0; width: 40px; height: 100%;
background: linear-gradient(90deg, transparent, var(--primary-blue), transparent);
filter: blur(2px); opacity: 0;
}
.pipeline.left .energy-flow { animation: flowLeft 3s infinite; }
.pipeline.right .energy-flow { animation: flowRight 3s infinite; }

/* 나침반 본체 */
.compass-base {
width: 140px;
height: 140px;
background: white;
border-radius: 50%;
box-shadow: 0 20px 50px rgba(59, 113, 234, 0.2);
position: relative;
z-index: 5;
display: flex;
justify-content: center;
align-items: center;
}

/* 나침반 눈금 */
.compass-marks {
position: absolute;
width: 85%;
height: 85%;
border-radius: 50%;
border: 1px dashed #CBD5E1;
}
.north-mark {
position: absolute;
top: 5px; left: 50%;
transform: translateX(-50%);
font-size: 12px;
font-weight: 800;
color: var(--primary-blue);
}

/* 나침반 바늘 */
.needle-container {
width: 80px;
height: 80px;
position: relative;
animation: needleStabilize 3s ease-in-out infinite; /* 흔들리다 고정되는 애니메이션 */
}

.needle {
position: absolute;
top: 0; left: 50%;
transform: translateX(-50%);
width: 12px;
height: 100%;
}

.needle-top {
position: absolute;
top: 0; left: 0;
width: 0; height: 0;
border-left: 6px solid transparent;
border-right: 6px solid transparent;
border-bottom: 40px solid var(--compass-red);
}

.needle-bottom {
position: absolute;
bottom: 0; left: 0;
width: 0; height: 0;
border-left: 6px solid transparent;
border-right: 6px solid transparent;
border-top: 40px solid #CBD5E1;
}

.needle-center {
position: absolute;
top: 50%; left: 50%;
transform: translate(-50%, -50%);
width: 8px; height: 8px;
background: white;
border: 2px solid #E2E8F0;
border-radius: 50%;
z-index: 2;
}

/* 확정 펄스 효과 */
.direction-pulse {
position: absolute;
width: 100%; height: 100%;
border-radius: 50%;
border: 2px solid var(--primary-blue);
opacity: 0;
animation: ripple 3s infinite 2.2s; /* 바늘 고정 후 발생 */
}

/* 날아가는 미니 아이템들 */
.flying-item {
position: absolute;
opacity: 0;
z-index: 2;
}

/* 좌측 -> 중앙 (미니 UI) */
.fly-draft {
left: 20%; top: 50%;
width: 20px; height: 26px;
background: white; border: 1px solid #E2E8F0; border-radius: 4px;
animation: flyToCenterLeft 3s infinite;
}

/* 우측 -> 중앙 (미니 말풍선) */
.fly-msg {
right: 20%; top: 50%;
width: 24px; height: 20px;
background: #3B71EA; border-radius: 6px;
animation: flyToCenterRight 3s infinite;
}

/* === Animations === */

@keyframes gridMove {
0% { background-position: 0 0; }
100% { background-position: 0 40px; }
}

@keyframes float {
0%, 100% { transform: translateY(0); }
50% { transform: translateY(-8px); }
}

/* 레이아웃 변경 애니메이션 */
@keyframes layoutShiftLeft {
0%, 45% { width: 30%; background: #F1F5F9; }
50%, 95% { width: 60%; background: #E2E8F0; }
}
@keyframes layoutShiftRight {
0%, 45% { width: 70%; background: #E2E8F0; }
50%, 95% { width: 40%; background: #F1F5F9; }
}

/* 말풍선 팝업 */
@keyframes popUp {
0%, 100% { transform: scale(1); }
50% { transform: scale(1.1); }
}

@keyframes blink {
0%, 100% { opacity: 0.3; }
50% { opacity: 1; }
}

/* 나침반 바늘: 흔들리다가(검토) -> 고정(확정) */
@keyframes needleStabilize {
0% { transform: rotate(-45deg); } /* 검토 중 */
20% { transform: rotate(30deg); }
40% { transform: rotate(-15deg); }
60% { transform: rotate(5deg); }
75% { transform: rotate(0deg); } /* 방향 확정! */
90% { transform: rotate(0deg) scale(1.1); } /* 강조 */
100% { transform: rotate(0deg); }
}

/* 파이프라인 흐름 */
@keyframes flowLeft {
0% { left: -50px; opacity: 0; }
30% { opacity: 1; }
70% { left: 100%; opacity: 1; }
100% { left: 100%; opacity: 0; }
}
@keyframes flowRight {
0% { right: -50px; opacity: 0; }
30% { opacity: 1; }
70% { right: 100%; opacity: 1; }
100% { right: 100%; opacity: 0; }
}

/* 중앙으로 날아가기 */
@keyframes flyToCenterLeft {
0% { left: 20%; opacity: 0; transform: scale(0.5) rotate(-10deg); }
20% { opacity: 1; }
60% { left: 45%; opacity: 1; transform: scale(1) rotate(0); }
80% { left: 48%; opacity: 0; transform: scale(0.5); }
100% { opacity: 0; }
}

@keyframes flyToCenterRight {
0% { right: 20%; opacity: 0; transform: scale(0.5) rotate(10deg); }
20% { opacity: 1; }
60% { right: 45%; opacity: 1; transform: scale(1) rotate(0); }
80% { right: 48%; opacity: 0; transform: scale(0.5); }
100% { opacity: 0; }
}



@keyframes writeSignature {
0% { transform: translate(0, 0) rotate(15deg); }
20% { transform: translate(-5px, 5px) rotate(0deg); }
40% { transform: translate(-10px, 0) rotate(20deg); }
60% { transform: translate(-5px, 5px) rotate(0deg); }
100% { transform: translate(0, 0) rotate(15deg); }
}

@keyframes stampIn {
0%, 60% { transform: scale(0); opacity: 0; }
70% { transform: scale(1.2); opacity: 1; }
80% { transform: scale(1); opacity: 1; }
95% { transform: scale(1); opacity: 1; }
100% { transform: scale(1); opacity: 0; }
}

@keyframes dropIn {
0% { top: -50px; opacity: 0; transform: rotate(-10deg) scale(0.8); }
20% { opacity: 1; }
40% { top: 10px; opacity: 1; transform: rotate(0deg) scale(1); }
60% { top: 20px; opacity: 0; transform: scale(0.9); }
100% { top: 20px; opacity: 0; }
}

@keyframes flowLeft {
0%, 50% { left: -50px; opacity: 0; }
60% { opacity: 1; }
90% { left: 100%; opacity: 1; }
100% { left: 100%; opacity: 0; }
}

@keyframes flowRight {
0%, 50% { right: -50px; opacity: 0; } /* 반대 방향 */
60% { opacity: 1; }
90% { right: 100%; opacity: 1; }
100% { right: 100%; opacity: 0; }
}

@keyframes rocketIdle {
0%, 100% { transform: translate(0, 0) rotate(45deg); }
50% { transform: translate(0, -5px) rotate(45deg); }
/* 발사 준비 동작 */
90% { transform: translate(2px, -2px) rotate(45deg) scale(1.1); } 
}

@keyframes ripple {
0% { transform: scale(1); opacity: 0.8; border-width: 2px; }
100% { transform: scale(1.5); opacity: 0; border-width: 0px; }
}