/* 히어로 섹션 유틸리티 */
.hero-bg {
	width: 100%;
	height: 100%;
	left: 0;
	top: 0;
	position: absolute;
	background:
		linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.2) 100%),
		linear-gradient(206deg, #2563eb 0%, #153885 100%);
}

.hero-blur {
	position: absolute;
	border-radius: 9999px;
	pointer-events: none;
}

.hero-blur-1 {
	width: 829px;
	height: 829px;
	left: calc(100% - 379px);
	top: -200px;
	background: rgba(26.3, 205.45, 255, 0.7);
	box-shadow: 250px 250px 250px;
	filter: blur(125px);
}

.hero-blur-2 {
	width: 657px;
	height: 657px;
	left: calc(100% - 257px);
	top: -480px;
	background: white;
	box-shadow: 400px 400px 400px;
	filter: blur(200px);
}

.text-white {
	color: white;
}

.hero-btn-wrapper {
	display: flex;
	align-items: center;
	gap: 20px;
	margin-top: 40px;
}

/* 히어로 섹션 */
.section-hero {
	position: relative;
	overflow: hidden; /* 가로 스크롤 방지 */
	display: flex;
	justify-content: center;
	padding-top: 156px;
	padding-bottom: 144px;
}

.hero-container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 42px;
	position: relative;
	z-index: 1; /* 블러 효과 위에 표시 */
}

.hero-content {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 30px;
	flex-shrink: 0;
	white-space: nowrap;
}

.hero-images {
	position: relative;
	width: 600px;
	height: 600px;
}

/* 히어로 이미지 배치 */
.hero-desktop-img {
	position: absolute;
	top: 50px;
	left: 124px;
	width: 606px;
	height: auto;
	z-index: 1;
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
	object-fit: contain;
}

.hero-mobile-img {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 193px;
	height: auto;
	z-index: 2;
	border-radius: 30px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* 하이퍼샵이 하는 일 섹션 */
.section-whattodo {
	padding: 180px 0;
	background: white;
}

.whattodo-header {
	text-align: center;
	margin-bottom: 150px;
}

.whattodo-title {
	background: linear-gradient(90deg, #153885 0%, #2563eb 58%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	color: transparent;
	margin: 0 0 20px 0;
}

.whattodo-subtitle {
	color: var(--Text-Primary, #1e293b);
	margin: 0;
}

.whattodo-list {
	display: flex;
	flex-direction: column;
	gap: 150px;
}

.whattodo-item {
	display: flex;
	align-items: center;
	gap: 81px;
}

.whattodo-item-reverse {
	flex-direction: row-reverse;
}

/* 하이퍼샵이 하는 일 - 이미지 */
.whattodo-mockup {
	flex-shrink: 0;
	box-shadow: 15px 20px 25px rgba(0, 0, 0, 0.1);
	border-radius: 31px;
}

.whattodo-mockup img {
	width: 606px;
	height: auto;
	display: block;
	border-radius: 20px;
}

.whattodo-content {
	flex: 1;
}

.whattodo-content-title {
	color: var(--Text-Primary, #1e293b);
	margin: 0 0 24px 0;
}

.whattodo-content-desc {
	color: var(--Text-secontary, #666666);
	margin: 0;
}

/* 핵심 기능 섹션 */
.section-features {
	padding: 100px 0 180px 0;
	background: white;
}

.features-header {
	text-align: center;
	margin-bottom: 150px;
}

.features-title {
	background: linear-gradient(90deg, #153885 0%, #2563eb 58%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	color: transparent;
	margin: 0 0 20px 0;
}

.features-subtitle {
	color: var(--Text-Primary, #1e293b);
	margin: 0;
}

.feature-display {
	margin-bottom: 80px;
}

.feature-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 85px;
	width: 1200px;
	height: 450px;
	margin: 0 auto;
	padding: 0 85px;
	background: radial-gradient(ellipse 89.89% 123.2% at 16.67% 54.67%, #153885 0%, #2563eb 100%);
	border-radius: 48px;
	box-sizing: border-box;
}

.feature-card-content {
	flex: 1;
}

/* 번호 + 타이틀 그룹 */
.feature-header-group {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

/* 콘텐츠 페이드 래퍼 */
.feature-content-fadeable {
	display: flex;
	flex-direction: column;
	gap: 40px;
	transition: opacity 0.3s ease;
}

.feature-number {
	color: var(--accent, #36db70);
}

.feature-title {
	color: white;
}

.feature-desc {
	color: var(--text-accent);
	margin: 0;
}

.feature-card-image {
	flex-shrink: 0;
}

/* 이미지 페이드 래퍼 */
.feature-image-fadeable {
	transition: opacity 0.3s ease;
}

.feature-card-image img {
	width: 380px;
	height: auto;
	background: white;
	box-shadow: 10px 15px 30px rgba(0, 0, 0, 0.15);
	border-radius: 16px;
	display: block;
}

/* 기능 탭 */
.feature-tabs-wrapper {
	margin-bottom: 60px;
	width: 100%;
	overflow: hidden;
}

.feature-tabs {
	display: flex;
	gap: 30px;
	overflow-x: auto;
	scroll-behavior: smooth;
	padding: 0 50vw;
	box-sizing: content-box;
}

/* 스크롤바 숨김 */
.feature-tabs::-webkit-scrollbar {
	display: none;
}

.feature-tabs {
	-ms-overflow-style: none;
	scrollbar-width: none;
}

.feature-tab {
	min-width: 280px;
	background: #f5f8ff;
	border-radius: 56px;
	border: none;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	transition: all 0.3s ease;
	padding: 51px 0px;
	position: relative;
}

.feature-tab.active {
	background: radial-gradient(ellipse 89.89% 123.2% at 16.67% 54.67%, #153885 0%, #2563eb 100%);
}

.tab-number {
	position: absolute;
	top: 30px;
	left: 37px;
	color: var(--text-tertiary);
}

.feature-tab.active .tab-number {
	color: var(--accent, #36db70);
}

.tab-label {
	text-align: center;
	color: var(--text-tertiary);
}

.feature-tab.active .tab-label {
	color: white;
}

/* 탭 스크롤 설정 */
.feature-tabs {
	overflow-x: auto;
	scroll-behavior: smooth;
	scrollbar-width: none; /* Firefox */
	-ms-overflow-style: none; /* IE and Edge */
}

.feature-tabs::-webkit-scrollbar {
	display: none; /* Chrome, Safari, Opera */
}

/* 페이드 애니메이션 */
.fade-out {
	opacity: 0;
	transition: opacity 0.3s ease-out;
}

.fade-in {
	opacity: 1;
	transition: opacity 0.3s ease-in;
}

.feature-display {
	transition: opacity 0.3s ease;
}

/* 상세 소개 섹션 */
.section-detailintro {
	position: relative;
	width: 100%;
	padding: 180px 0;
	background: radial-gradient(ellipse 80.28% 125.04% at 14.58% 15.61%, #153885 0%, #225bd8 100%);
	overflow: hidden;
}

/* 배경 블러 효과 */
.detailintro-bg-blur {
	position: absolute;
	border-radius: 9999px;
	filter: blur(200px);
	pointer-events: none;
	z-index: 0;
}

.detailintro-blur-1 {
	width: 809px;
	height: 809px;
	left: 60%;
	top: -10%;
	background: rgba(255, 255, 255, 0.9);
	opacity: 0.9;
}

.detailintro-blur-2 {
	width: 809px;
	height: 809px;
	left: -5%;
	top: -5%;
	background: rgba(17.05, 25.61, 81.28, 0.8);
	opacity: 0.8;
}

.detailintro-blur-3 {
	width: 809px;
	height: 809px;
	left: 70%;
	top: 30%;
	background: rgba(136.98, 252.64, 250.71, 0.46);
	opacity: 0.46;
}

/* 컨텐츠 컨테이너 */
.detailintro-container {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
}

/* 제목 */
.detailintro-title {
	color: white;
	margin-bottom: 80px;
}

/* 리스트 */
.detailintro-list {
	display: flex;
	flex-direction: column;
}

/* 리스트 아이템 */
.detailintro-item {
	display: flex;
	align-items: flex-start;
	padding: 50px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.3);
	gap: 74px;
}
.detailintro-item:last-child {
	border-bottom: none;
}

/* 번호 배지 */
.detailintro-badge {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 51px;
	height: 51px;
	background: var(--accent, #36db70);
	border-radius: 50%;
	color: white;
	flex-shrink: 0;
	margin-right: 13px;
}

/* 아이템 제목 */
.detailintro-item-title {
	color: white;
	width: 300px;
	flex-shrink: 0;
	margin: 0;
}

/* 아이템 설명 */
.detailintro-item-desc {
	color: white;
	margin: 0;
	flex: 1;
}

/* 사용 절차 안내 섹션 */
.section-usage {
	position: relative;
	width: 100%;
	padding: 180px 0;
	background: white;
	overflow: hidden;
}

.usage-header {
	text-align: center;
	margin-bottom: 80px;
}

.usage-title {
	background: linear-gradient(90deg, #153885 0%, #2563eb 58%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	color: transparent;
	margin-bottom: 20px;
}

.usage-subtitle {
	color: var(--text-main);
}

/* 그리드 레이아웃 */
.usage-grid {
	position: relative;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 100px;
	max-width: 1260px;
	margin: 0 auto;
}

/* 카드 스타일 */
.usage-card {
	position: relative;
	width: 550px;
	height: 320px;
	background: white;
	border: 1px solid var(--text-tertiary);
	border-radius: 60px;
	padding: 50px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	box-sizing: border-box;
}

.usage-badge {
	color: var(--accent-color);
	margin-bottom: 0;
}

.usage-top-group {
	margin-bottom: 30px;
}

.usage-header-group {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.usage-card-title {
	color: var(--primary-color);
	margin-bottom: 0;
}

.usage-card-desc {
	color: var(--text-main);
	word-break: keep-all;
}

/* 장식 요소 (화살표/뱃지) */
.usage-card-icon {
	position: absolute;
	right: 60px;
	top: 50px;
	pointer-events: none;
}

.usage-arrow-icon {
	position: absolute;
	right: 60px;
	top: 50px;
	pointer-events: none;
}

/* API 뱃지 (Step 2) */
.usage-api-badge {
	padding: 18px 20px;
	border-radius: 16px;
	outline: 5px solid var(--primary-hover);
	outline-offset: -5px;
	color: var(--primary-hover);
	font-size: 20px;
	font-weight: 700;
	text-align: center;
	line-height: 1.2;
}

/* 연결 선 */
.usage-line {
	position: absolute;
	z-index: 0;
	display: flex;
	justify-content: center;
	align-items: center;
	pointer-events: none;
}

/* 연결 선 1 (1 -> 2) */
.usage-line-1 {
	top: 160px;
	left: 50%;
	transform: translate(-50%, -50%) rotate(-90deg);
}

/* 연결 선 2 (2 -> 3) */
.usage-line-2 {
	top: 320px;
	right: 275px;
	left: auto;
	transform: none;
}

/* 연결 선 3 (3 -> 4) */
.usage-line-3 {
	top: 580px;
	left: 50%;
	transform: translate(-50%, -50%) rotate(90deg);
}

/* 하단 CTA 섹션 */
.section-cta {
	position: relative;
	width: 100%;
	height: 480px;
	display: flex;
	justify-content: center;
	align-items: center;
	background-image: url('/www/assets/images/main/main_cta_bg.png');
	background-size: cover;
	background-position: center;
	overflow: hidden;
	padding: 130px 0 100px 0;
}

.cta-content {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 50px;
	text-align: center;
}

.cta-title {
	color: white;
	margin-bottom: 20px;
}

.cta-subtitle {
	color: white;
	margin-bottom: 0;
}

.cta-btn-wrapper {
	display: flex;
	align-items: center;
	gap: 33px;
}

/* 태블릿 반응형 (Max-width: 1024px) */

@media (max-width: 1024px) {
	/* 히어로 섹션 */
	.section-hero {
		padding-top: 100px;
		padding-bottom: 80px;
		height: auto;
		min-height: auto;
	}

	.hero-container {
		flex-direction: column;
		text-align: center;
		gap: 20px;
	}

	.hero-content {
		align-items: center;
		width: 100%;
		white-space: normal;
	}

	.hero-btn-wrapper {
		flex-direction: column;
		width: 100%;
		gap: 15px;
		margin-top: 20px;
	}

	.hero-btn {
		box-sizing: border-box;
	}

	/* 이미지 스택 레이아웃 유지 */
	.hero-images {
		width: 100%;
		max-width: 600px;
		aspect-ratio: 1 / 1;
		height: auto;
		min-height: auto;
		margin: 40px auto 0 auto;
		display: block;
	}

	/* 데스크탑 이미지: 우측 상단 */
	.hero-desktop-img {
		position: absolute;
		top: 5%;
		right: 0;
		left: auto;
		width: 85%;
		max-width: none;
		margin-left: 0;
		box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
	}

	/* 모바일 이미지: 좌측 하단 */
	.hero-mobile-img {
		position: absolute;
		bottom: 15%;
		left: -2%;
		width: 28%;
		border-radius: 25px;
		max-width: none;
	}

	/* 블러 요소 크기 축소 (태블릿) */
	.hero-blur-1 {
		width: 500px !important;
		height: 500px !important;
		filter: blur(80px) !important;
		opacity: 0.6;
		left: calc(100% - 309px);
		top: -370px;
	}

	.hero-blur-2 {
		width: 400px !important;
		height: 400px !important;
		filter: blur(120px) !important;
		left: calc(100% - 157px);
		top: -300px;
	}

	/* --- Other Sections --- */
	/* 1. 하이퍼샵이 하는 일 */
	.section-whattodo {
		padding: 100px 0;
	}

	.whattodo-header {
		margin-bottom: 120px;
		padding: 0 20px;
	}

	.whattodo-list {
		gap: 120px;
	}

	/* 세로 스택: 텍스트 위, 이미지 아래로 통일 */
	.whattodo-item {
		flex-direction: column !important;
		gap: 40px;
		text-align: center;
	}

	.whattodo-item.whattodo-mobile-col {
		flex-direction: column-reverse !important;
	}

	.whattodo-mockup {
		width: 100%;
		max-width: 500px;
		margin: 0 auto;
		box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
	}

	.whattodo-mockup img {
		width: 100%;
		height: auto;
	}

	.whattodo-content {
		width: 100%;
		box-sizing: border-box;
	}

	.whattodo-content-title {
		margin-bottom: 16px;
	}

	/* 2. 핵심 기능 */
	.section-features {
		padding: 80px 0 100px 0;
	}

	.features-header {
		margin-bottom: 60px;
		padding: 0 32px;
	}

	/* Feature Card: 세로 스택 */
	.feature-card {
		width: 100%;
		height: auto;
		flex-direction: column;
		padding: 50px 30px;
		gap: 40px;
		border-radius: 32px;
	}

	.feature-card-content {
		width: 100%;
		text-align: center;
	}

	/* 헤더 그룹 중앙 정렬 */
	.feature-header-group {
		align-items: center;
		margin-bottom: 10px;
	}

	.feature-content-fadeable {
		gap: 20px;
	}

	/* 이미지 영역 */
	.feature-card-image {
		width: 100%;
		display: flex;
		justify-content: center;
	}

	.feature-card-image img {
		width: 100%;
		max-width: 320px;
		box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
	}

	/* Tabs: 가로 스크롤 최적화 */
	.feature-tabs {
		padding: 0 20px;
		gap: 15px;
	}

	.feature-tab {
		min-width: 200px;
		padding: 30px 0;
		border-radius: 30px;
	}

	.tab-number {
		top: 20px;
		left: 20px;
		font-size: 14px;
	}

	/* 3. 상세 소개 */
	.section-detailintro {
		padding: 100px 0;
	}

	.detailintro-title {
		margin-bottom: 60px;
	}

	.detailintro-item {
		padding: 40px 0;
		gap: 20px;
		flex-direction: column;
	}

	.detailintro-badge {
		margin-right: 0;
		margin-bottom: 10px;
		width: 40px;
		height: 40px;
	}

	.detailintro-item-title {
		width: 100%;
	}

	/* 4. 사용 방법 */
	.section-usage {
		padding-top: 100px;
		padding-bottom: 100px;
	}

	.usage-grid {
		display: flex; /* Grid에서 Flex로 변경하여 세로 스택 */
		flex-direction: column;
		gap: 30px;
	}

	.usage-card {
		width: 100%;
		height: auto;
		min-height: 280px;
		padding: 40px 30px;
	}

	/* 카드 순서 재배치 (1->2->3->4) */
	.usage-card:nth-child(4) {
		order: 1;
	} /* Step 01 */
	.usage-card:nth-child(5) {
		order: 2;
	} /* Step 02 */
	.usage-card:nth-child(6) {
		order: 4;
	} /* Step 04 (Source 3rd) -> Last */
	.usage-card:nth-child(7) {
		order: 3;
	} /* Step 03 (Source 4th) -> Third */

	/* 연결 선 숨김 (세로 배치시 어색함) */
	.usage-line {
		display: none;
	}

	/* 아이콘 위치 조정 */
	.usage-card-icon,
	.usage-arrow-icon {
		top: 30px;
		right: 30px;
		transform: scale(0.8); /* 아이콘 축소 */
	}

	/* 5. CTA 섹션 */
	.section-cta {
		height: auto; /* 고정 높이 해제 */
		padding: 100px 0;
		background-size: cover;
	}

	.cta-btn-wrapper {
		flex-direction: column;
		gap: 15px;
	}
}

/* 모바일 반응형 (Max-width: 767px) */

@media (max-width: 767px) {
	/* 히어로 섹션 */
	/* 블러 요소 추가 축소 (모바일) */
	.hero-blur-1 {
		width: 300px !important;
		height: 300px !important;
		filter: blur(60px) !important;
		right: -50px; /* 화면 밖으로 너무 나가지 않게 */
		left: auto;
		display: none;
	}

	.hero-blur-2 {
		width: 250px !important;
		height: 250px !important;
		filter: blur(80px) !important;
		left: -50px;
		display: none;
	}

	.hero-images {
		max-width: 100%;
		margin-top: 20px;
	}

	/* 모바일 이미지: 좌측 하단 */
	.hero-mobile-img {
		border-radius: 18px;
	}

	/* --- Other Sections --- */
	/* 섹션 공통 패딩 축소 */
	.section-whattodo,
	.section-features,
	.section-detailintro,
	.section-usage {
		padding-top: 60px;
		padding-bottom: 60px;
	}

	.section-cta {
		padding: 80px 0;
	}

	/* 헤더 마진 축소 */
	.whattodo-header {
		margin-bottom: 80px;
	}

	.features-header,
	.detailintro-title,
	.usage-header {
		margin-bottom: 40px;
	}

	.whattodo-list {
		gap: 80px;
	}

	/* Detail Intro 아이템 간격 */
	.detailintro-item {
		padding: 30px 0;
		gap: 15px;
	}

	/* 기능 섹션 레이아웃 변경 (탭이 카드 위로) */
	.section-features {
		display: flex;
		flex-direction: column;
	}

	.section-features .container {
		display: contents; /* 컨테이너 레이아웃 컨텍스트 제거 */
	}

	/* 아이템 재정렬 */
	/* 1. 헤더 */
	.features-header {
		order: 1;
		width: 100%;
		box-sizing: border-box;
	}

	/* 2. 탭 */
	.feature-tabs-wrapper {
		order: 2;
		margin-bottom: 30px;
	}

	/* 3. 디스플레이 카드 */
	.feature-display {
		order: 3;
		width: 100%;
		padding: 0 32px;
		box-sizing: border-box;
		margin-bottom: 0;
	}

	.feature-card {
		padding: 40px 24px;
		border-radius: 24px;
	}

	/* 기능 탭 스타일링 (알약 모양) */
	.feature-tabs {
		padding: 0 20px;
		gap: 8px;
	}

	.feature-tab {
		min-width: auto;
		width: auto;
		height: auto;
		padding: 10px 18px;
		border-radius: 9999px;
		flex-direction: row;
		align-items: center;
		gap: 6px;
	}

	/* 번호 위치 조정 */
	.tab-number {
		position: static; /* 절대 위치 초기화 */
		font-size: 14px;
		margin: 0;
	}

	/* 라벨 조정 */
	.tab-label {
		font-size: 14px;
		text-align: left;
		white-space: nowrap;
	}

	.detailintro-badge {
		width: 35px;
		height: 35px;
	}
}
