@charset "UTF-8";

/* ==========================================================================
   main.css — 메인 사이트 메인 페이지 전용 스타일
   원본 디자인: AILab/main.html <style> 블록
   (main-header / GNB / float-btn 은 common.css 에 통합)
   ========================================================================== */

/* --------------------------------------------------------------------------
   0-0. 접근성: 보조 텍스트 명도 대비 재정의
   - common.css --gray-light(#8a8d99)는 흰 배경 대비 명도비 약 3.3:1로
     WCAG AA(일반 텍스트 4.5:1) 미달 → 메인 사이트 전용으로 상향
   -------------------------------------------------------------------------- */
:root {
	--gray-light: #6d707c;
}

/* --------------------------------------------------------------------------
   0. 메인 사이트 body 재정의
   - common.css 의 body { background: dark; padding-bottom: footer-height; }
     를 라이트 배경으로 덮어씀
   - 푸터가 fixed 가 아니라 flow 에 있으므로 padding-bottom 불필요
   -------------------------------------------------------------------------- */
body {
	background: #fff;
	color: var(--gray-text);
	padding-bottom: 0;
}

/* --------------------------------------------------------------------------
   0-1. 메인 사이트 footer 재정의
   - common.css 의 footer { position: fixed } 를 해제 (랜딩 전용)
   - main.html §5 디자인 그대로 적용
   -------------------------------------------------------------------------- */
footer {
	position: static;
	background: #2a2d35;
	color: rgba(255, 255, 255, 0.7);
	padding: 0 0 20px;
	height: auto;
	border-top: none;
	z-index: auto;
}

footer > .container { padding-top: 28px; }

footer .container {
	display: grid;
	grid-template-columns: auto 1fr auto;
	gap: 32px;
	align-items: center;
}

/* 메인 사이트 푸터 로고 - 다크 배경 대비를 위해 전부 흰색 */
.footer-logo .ailab-text-logo .ai-part  { fill: #fff; }
.footer-logo .ailab-text-logo .lab-part { fill: #fff; }
.footer-logo .ailab-text-logo .kr-part  { fill: #fff; }

.footer-info {
	font-size: var(--fs-2xs);
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.7);
	display: block;  /* common.css flex 덮어씀 */
	flex-wrap: unset;
	gap: unset;
}

.footer-info-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 4px;
}

.footer-info-row span   { color: rgba(255, 255, 255, 0.6); }
.footer-info-row strong { color: rgba(255, 255, 255, 0.95); font-weight: 600; }

.footer-copyright {
	color: rgba(255, 255, 255, 0.4);
	font-size: var(--fs-xs);
	margin-top: 6px;
	display: block;  /* common.css display:none 덮어씀 */
	text-align: left;
	white-space: normal;
}

.footer-copy { display: none; }  /* common.css 카피라이트 요소 숨김 */

.footer-sns {
	display: flex;
	gap: 8px;
}

.footer-sns a {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.2);
	display: flex;
	align-items: center;
	justify-content: center;
	color: rgba(255, 255, 255, 0.6);
	transition: all 0.3s;
}

.footer-sns a:hover {
	background: var(--primary);
	border-color: var(--primary);
	color: #fff;
	transform: translateY(-3px);
}

.footer-sns svg {
	width: 14px;
	height: 14px;
}

/* common.css footer-inner, footer-brand, footer-logo SVG 등 숨김 */
.footer-inner,
.footer-brand { display: none; }

/* --------------------------------------------------------------------------
   §1. 메인 비주얼 슬라이드
   -------------------------------------------------------------------------- */
.main-visual {
	background: linear-gradient(135deg, var(--dark) 0%, var(--primary-dark) 100%);
	color: #fff;
	padding: 48px 0;
	position: relative;
	overflow: hidden;
	min-height: 560px;
	display: flex;
	align-items: center;
}

/* 우상단 라이트 글로우 */
.main-visual::before {
	content: '';
	position: absolute;
	width: 500px;
	height: 500px;
	background: radial-gradient(circle, rgba(0, 217, 255, 0.15) 0%, transparent 60%);
	top: -150px;
	right: -100px;
	border-radius: 50%;
}

.main-visual .container {
	text-align: left;
	position: relative;
	z-index: 2;
	width: 100%;
}

.visual-text {
	max-width: 640px;
	padding: 48px 56px;
	position: relative;
	z-index: 2;
}

.visual-text h2 {
	font-size: clamp(30px, 3.6vw, 50px);
	font-weight: 700;
	line-height: 1.32;
	margin-bottom: 20px;
	letter-spacing: -1px;
}

.visual-text h2 .accent { color: var(--accent); }

.visual-text p {
	color: rgba(255, 255, 255, 0.88);
	font-size: 18px;
	font-weight: 400;
	line-height: 1.65;
	margin-bottom: 26px;
	word-break: keep-all;
}

/* CTA 버튼 */
.visual-cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 32px;
	background: transparent;
	color: #fff;
	font-size: var(--fs-xs);
	font-weight: 700;
	border-radius: 6px;
	border: 1px solid rgba(255, 255, 255, 0.5);
	transition: all 0.3s;
}

.visual-cta:hover {
	background: #fff;
	color: var(--dark);
	border-color: #fff;
	transform: scale(1.03);
}

/* 슬라이드 좌우 화살표 */
.visual-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.14);
	border: 1px solid rgba(255, 255, 255, 0.35);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.25s;
	z-index: 3;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.visual-arrow:hover {
	background: #fff;
	color: var(--dark);
	border-color: #fff;
	transform: translateY(-50%) scale(1.08);
}

.visual-arrow.prev { left:  24px; }
.visual-arrow.next { right: 24px; }

.visual-arrow svg { width: 18px; height: 18px; }

/* 인디케이터 (섹션 전체를 덮는 오버레이 하단 고정) */
.visual-indicators-wrap {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 44px;
	z-index: 2;
	max-width: 1440px;
	margin: 0 auto;
	padding: 0 var(--page-padding-x);
}

.visual-indicators {
	display: flex;
	gap: 8px;
	justify-content: center;
}

.visual-indicator {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.35);
	border: none;
	cursor: pointer;
	transition: all 0.3s;
}

.visual-indicator:hover { background: rgba(255, 255, 255, 0.6); }

.visual-indicator.active {
	background: var(--accent);
	width: 26px;
	border-radius: 5px;
}

/* 슬라이드 전환 — 섹션 전체를 꽉 채우는 풀블리드 배경 */
.visual-slides {
	position: absolute;
	inset: 0;
	overflow: hidden;
}

.visual-slide {
	transition: opacity 0.5s, transform 0.5s;
	opacity: 0;
	position: absolute;
	inset: 0;
	transform: translateX(20px);
	pointer-events: none;
	overflow: hidden;
	display: flex;
	align-items: center;
}

.visual-slide.active {
	opacity: 1;
	transform: translateX(0);
	pointer-events: auto;
}

/* 슬라이드 배경 사진 */
.visual-slide-bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 0;
}

/* 사진 위 어둠 그라데이션 — 좌측(텍스트) 진하게, 우측(사진) 은은하게 */
.visual-slide::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(
		90deg,
		rgba(10, 14, 39, 0.9) 0%,
		rgba(10, 14, 39, 0.72) 32%,
		rgba(10, 14, 39, 0.25) 58%,
		rgba(10, 14, 39, 0.05) 75%,
		rgba(10, 14, 39, 0.3) 100%
	);
	z-index: 1;
	pointer-events: none;
}

/* --------------------------------------------------------------------------
   §2. 핵심 사업 영역
   -------------------------------------------------------------------------- */
.core-business {
	padding: 28px 0 20px;
	background: #fff;
	position: relative;
	z-index: 3;
	margin-top: -24px;
}

.business-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	background: #fff;
	border: 1px solid var(--border-light);
	border-radius: 2px;
	overflow: hidden;
}

.business-card {
	background: #fff;
	padding: 18px 20px;
	display: flex;
	align-items: center;
	gap: 14px;
	text-align: left;
	position: relative;
}

/* 카드 사이 세로 구분선 */
.business-card:not(:last-child)::after {
	content: '';
	position: absolute;
	top: 16px;
	bottom: 16px;
	right: 0;
	width: 1px;
	background: var(--border-light);
}

.business-icon {
	width: 44px;
	height: 44px;
	flex-shrink: 0;
	background: var(--light-blue);
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--primary);
}

.business-icon svg { width: 22px; height: 22px; }

.business-text h4 {
	font-size: var(--fs-lg);
	font-weight: 700;
	color: #1a1a1a;
	margin-bottom: 2px;
}

.business-text p {
	color: var(--gray-light);
	font-size: var(--fs-sm);
	line-height: 1.5;
}

/* --------------------------------------------------------------------------
   §3. 연구개발 + 솔루션 소개
   -------------------------------------------------------------------------- */
.intro-blocks {
	padding: 8px 0 20px;
	background: #fff;
}

.intro-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.intro-card {
	background: var(--light);
	border: 1px solid var(--border-light);
	border-radius: 2px;
	overflow: hidden;
	display: grid;
	grid-template-columns: 1fr 1fr;
	transition: all 0.3s;
	color: inherit;
	text-decoration: none;
	cursor: pointer;
}

.intro-card:hover {
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
	transform: translateY(-3px);
	border-color: var(--primary);
}

.intro-text {
	padding: 22px 24px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.intro-text .label {
	color: var(--gray-light);
	font-size: var(--fs-2xs);
	font-weight: 700;
	letter-spacing: 2px;
	margin-bottom: 8px;
}

.intro-text h4 {
	font-size: 22px;
	font-weight: 800;
	color: #1a1a1a;
	margin-bottom: 10px;
	letter-spacing: -0.5px;
}

.intro-text p {
	color: var(--gray-text);
	font-size: var(--fs-xl);
	line-height: 1.7;
	margin-bottom: 14px;
}

.intro-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--primary);
	font-size: var(--fs-2xs);
	font-weight: 700;
	transition: all 0.3s;
	border: 1px solid var(--primary);
	padding: 6px 14px;
	border-radius: 6px;
	width: fit-content;
}

.intro-link:hover,
.intro-card:hover .intro-link {
	gap: 10px;
	background: var(--primary);
	color: #fff;
}

.intro-link svg { width: 12px; height: 12px; }

.intro-image {
	background: linear-gradient(135deg, #1c2b3d, var(--dark));
	position: relative;
	overflow: hidden;
	min-height: 160px;
}

.intro-image img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* --------------------------------------------------------------------------
   §4. 공지사항 + 연구소 소식
   -------------------------------------------------------------------------- */
.news-section {
	padding: 8px 0 24px;
	background: #fff;
}

.news-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 30px;
}

.news-block { background: #fff; }

.news-block-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 14px;
	padding-bottom: 10px;
	border-bottom: 2px solid #1a1a1a;
}

.news-block-header h4 {
	font-size: 22px;
	font-weight: 800;
	color: #1a1a1a;
	letter-spacing: -0.5px;
}

.news-more {
	color: var(--gray-light);
	font-size: var(--fs-2xs);
	font-weight: 500;
	transition: color 0.3s;
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.news-more:hover { color: #1a1a1a; }

/* 공지사항 목록 */
.notice-list li {
	padding: 8px 0;
	border-bottom: 1px solid var(--border-light);
}

.notice-list li:last-child { border-bottom: none; }

.notice-empty {
	padding: 24px 0;
	color: var(--text-muted, #9ca3af);
	font-size: var(--fs-xs);
	text-align: center;
}

.notice-list a {
	display: flex;
	align-items: center;
	gap: 10px;
	transition: all 0.2s;
}

.notice-title-wrap {
	display: flex;
	align-items: center;
	gap: 6px;
	flex: 1;
	min-width: 0;
}

.notice-list a:hover { padding-left: 6px; }

.notice-list a:hover .notice-title {
	color: #1a1a1a;
	font-weight: 600;
}

.notice-bullet { color: #1a1a1a; font-weight: 800; }

.notice-title {
	color: var(--gray-text);
	font-size: var(--fs-xl);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	transition: all 0.3s;
}

.notice-badge {
	background: none;
	color: #e02424;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.3px;
	flex-shrink: 0;
}

.notice-date {
	color: var(--gray-light);
	font-size: var(--fs-sm);
	font-weight: 500;
	flex-shrink: 0;
}

/* 연구소 소식 */
.research-news { position: relative; }

.research-news-image {
	width: 100%;
	height: 240px;
	background: linear-gradient(135deg, #22384a, var(--dark));
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	overflow: hidden;
}

.research-news-noimg {
	width: 40px;
	height: 40px;
	color: rgba(255, 255, 255, 0.3);
}

.research-news-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.research-news-overlay {
	position: absolute;
	bottom: 0; left: 0; right: 0;
	padding: 40px 20px 18px;
	background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.32) 55%, rgba(0, 0, 0, 0.68) 100%);
	z-index: 2;
}

.research-news-overlay h5 {
	color: #fff;
	font-size: var(--fs-xl);
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: -0.3px;
	margin: 0;
}

.research-news-overlay .news-date {
	display: block;
	color: rgba(255, 255, 255, 0.7);
	font-size: var(--fs-xs);
	font-weight: 500;
	margin-top: 2px;
	letter-spacing: 0.5px;
}

.research-news-link {
	display: block;
	position: relative;
	overflow: hidden;
	transition: transform 0.4s;
}

.research-news-link:hover { transform: translateY(-2px); }

/* --------------------------------------------------------------------------
   반응형
   -------------------------------------------------------------------------- */
/* 태블릿 (768px ~ 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
	.main-visual                         { min-height: 500px; padding: 48px 0; }
	.visual-arrow                        { display: none; }
	/* 화살표가 없는 터치 환경 - 인디케이터 점은 작게 유지하되 탭 영역만 44px로 확대 */
	.visual-indicator                    { position: relative; }
	.visual-indicator::before {
		content: '';
		position: absolute;
		top: 50%;
		left: 50%;
		width: 36px;
		height: 36px;
		transform: translate(-50%, -50%);
	}
	.business-grid                       { grid-template-columns: repeat(2, 1fr); }
	.business-card:nth-child(2)::after   { display: none; }
	.intro-grid                          { grid-template-columns: 1fr; }
	.intro-card                          { grid-template-columns: 1fr; }
	.news-grid                           { grid-template-columns: 1fr; }
	footer .container                    { grid-template-columns: 1fr; gap: 16px; text-align: center; }
	.footer-logo                         { justify-content: center; display: flex; align-items: center; gap: 8px; }
	.footer-info-row                     { justify-content: center; }
	.footer-sns                          { justify-content: center; }
	.footer-copyright                    { text-align: center; }
}

/* 모바일 (~767px) */
@media (max-width: 767px) {
	.main-visual                         { min-height: 420px; padding: 40px 0; }
	.main-visual-bg                      { opacity: 0.3; }
	.visual-arrow                        { display: none; }
	/* 화살표가 없는 터치 환경 - 인디케이터 점은 작게 유지하되 탭 영역만 44px로 확대 */
	.visual-indicator                    { position: relative; }
	.visual-indicator::before {
		content: '';
		position: absolute;
		top: 50%;
		left: 50%;
		width: 36px;
		height: 36px;
		transform: translate(-50%, -50%);
	}
	.business-grid                       { grid-template-columns: 1fr; }
	.intro-grid                          { grid-template-columns: 1fr; }
	.intro-card                          { grid-template-columns: 1fr; }
	.news-grid                           { grid-template-columns: 1fr; }
	footer .container                    { grid-template-columns: 1fr; gap: 16px; text-align: center; }
	.footer-logo                         { justify-content: center; display: flex; align-items: center; gap: 6px; height: 30px; }
	.footer-info-row                     { justify-content: center; }
	.footer-sns                          { justify-content: center; }
	.footer-copyright                    { text-align: center; }

	.business-card:not(:last-child)::after   { display: none; }
	.business-card                           { border-bottom: 1px solid var(--border-light); }
	.business-card:last-child                { border-bottom: none; }

	/* 주소만 한 줄 전체 차지 (연락처는 한 줄에 모아 여백 절약) */
	.footer-info-row:nth-child(1) span { flex-basis: 100%; text-align: center; }
}
