	*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

	:root {
		--blue: #1A6BFF;
		--blue-dark: #1255d4;
		--text-purple: #7B02D2;
		--text-blue: #1E40AF;
		--text-main: #0F172B;
		--text-sub: #62748E;
		--text-sub-gray: #90A1B9;
		--gray: #666;
		--light-bg: #f5f5f5;
		--dkgray-bg: #62748e;
		--border: #E5E7EB;
		--side: 180px;
		--gradient: linear-gradient(90deg, #155dfc, #4f39f6);
	}
	@font-face {
		font-family: pretendard;
		src: local('pretendard');
	}
	@font-face {
		font-family: pretendard;
		src: url(/font/Pretendard-medium.woff2) format('woff2');
		font-weight: 500;
	}
	@font-face {
		font-family: pretendard;
		src: url(/font/Pretendard-Bold.woff2) format('woff2');
		font-weight: 700;
	}
	@font-face {
		font-family: pretendard;
		src: url(/font/Pretendard-ExtraBold.woff2) format('woff2');
		font-weight: 800;
	}
	
	body {
		font-family: pretendard, sans-serif;
		color: var(--text-main);
		overflow-x: hidden;
		line-height: 1.5;
		padding-top: 80px; /* 헤더 높이만큼 추가함 */
	}
  
	h1,h2,h3,h4 {color: var(--text-main); }
	h1 { font-size: 48px; }
	h2 { font-size: 40px; }
	h3 { font-size: 32px; }
	h4 { font-size: 24px; }	
	
	button {
		border: 0;
	}
	img {
		max-width: 100%;
		max-height: 100%;
	}
	
	
	/* header */
	header {
		width: 100%;
		height: 80px;
		padding: 16px;
		border-bottom: 1px solid var(--border);
		position: fixed;   /* ← 추가 */
		top: 0;            /* ← 추가 */
		left: 0;           /* ← 추가 */
		z-index: 100;      /* ← 추가 */
		background: white; /* ← 추가 */
	}

	/* NAV */
	nav {
		margin: 0 auto;
		max-width: 1600px; 
		display: flex;
		align-items: center;
		justify-content: space-between;
		background: #fff;
		/*position: sticky;
		top: 0;*/
		z-index: 100;
	}

  .logo {
	display: flex;
	align-items: center;
	gap: 6px;
	font-weight: 900;
	color: var(--blue);
	text-decoration: none;
  }

  .logo-icon {
	width: 28px;
	height: 28px;
	background: var(--blue);
	border-radius: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
  }

  .logo-icon svg { width: 18px; height: 18px; fill: white; }

  .nav-links {
	display: flex;
	align-items: center;
	list-style: none;
	gap: 40px;
}

  .nav-links a {
    display: block;
	text-decoration: none;
	color: var(--text-main);
	font-size: 18px;
	font-weight: 500;
	transition: color 0.2s;
	text-align: center;
  }
	.nav-right {
		display: flex;
		gap: 48px;
		justify-content: center;
	}
	
	.nav-btn {
		display: flex;
		/* gap: 16px; */
		justify-content: center;
	}

	.nav-btn .language {
		cursor: pointer;
		display: flex;
		gap: 8px;
		justify-content: center;
		padding: 8px 16px;
		margin-right: 16px;
		border-radius: 8px;
		font-size: 16px;
		font-weight: 500;
		/* border: 1px solid var(--border); */
	}
	.nav-btn .language a {
		font-size: 15px;
		font-weight: 400;
		text-decoration: none;
		color: inherit;
	} 
	.nav-btn .language li {
		list-style: none;
	}
	.nav-btn .language li:first-child a:after {
		display: inline-block;
		content:'';
		width:1px;
		height: 12px;
		background:  var(--border);
		margin-left: 8px;
	}
	
	
	.mobile-nav-right .language {
		cursor: pointer;
		display: flex;
		gap: 8px;
		justify-content: center;
		align-items: center;
		padding: 6px 12px;
		border-radius: 8px;
		font-size: 14px;
		font-weight: 500;
		color: var(--text-sub);
		border-radius: 8px;
		background: white;
		/* margin-right: 16px; 
		border: 1px solid var(--border);*/
	}
	/* .mobile-nav-right .language:after {
		display: inline-block;
		content:'';
		width: 12px;
		height: 12px;
		padding-right: 4px;
		background: url(/img/index/arrow_down.png) center no-repeat;
	}*/
	
  .nav-links a:hover { color: var(--blue); }
  .nav-links a.active {
	color: var(--blue);
	font-weight: 500;
  }

  .btn-primary {
    background: var(--blue);
    color: white;
    border: none;
    padding: 8px 16px;
	border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    font-family: inherit;
    text-decoration: none;
  }
	.btn-primary:hover {
		background: var(--blue-dark);
		color: white;
		transform: translateY(-1px);
	}

  .mobile-menu {display: none;}

  /* HERO */
  .hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 120px 0;
    min-height: 480px;
    background: #fff;
    gap: 40px;
  }

  .hero-left { flex: 1; max-width: 700px; }

  .hero-left h1 span { color: var(--blue); }

  .hero-buttons {
    display: flex;
    gap: 14px;
    align-items: center;
  }

  .btn-outline {
    background: transparent;
    color: var(--text-main);
    border: none;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
    padding: 15px 32px;
	border-radius: 10px;
  }

  .hero-right {
    flex: 0 0 auto;
    position: relative;
    width: 500px;
  }

  .hero-note {
    font-size: 12px;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 6px 14px;
    width: fit-content;
    margin: 0 auto 16px;
  }

  .hero-note::before {
    content: '⊕';
    font-size: 14px;
    color: var(--blue);
  }

  .book-stack {
    display: flex;
    gap: 6px;
    align-items: stretch;
    height: 380px;
  }

  .book-card {
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    transition: flex 0.45s cubic-bezier(0.4,0,0.2,1), box-shadow 0.3s ease;
    flex: 0 0 72px;
    box-shadow: none;
  }

  /* 호버 시 해당 카드만 넓어지고 나머지 동일하게 좁아짐 */
  .book-stack .book-card.active {
    flex: 0 0 260px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
    z-index: 2;
  }

  .book-stack .book-card.active .book-title {
    writing-mode: horizontal-tb;
    font-size: 15px;
    text-align: center;
    white-space: normal;
    letter-spacing: 0;
    padding: 0 8px;
  }

  .book-cover {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 16px 10px;
    position: relative;
    background-size: cover;
    background-position: center;
  }

  .cover-1 { background: linear-gradient(160deg, #74c9e8 0%, #2196c4 50%, #0d6e9e 100%); }
  .cover-2 { background: linear-gradient(160deg, #f9d06a 0%, #e8920a 50%, #b86000 100%); }
  .cover-3 { background: linear-gradient(160deg, #9b7fe8 0%, #5c3dc4 50%, #2d1a8e 100%); }

  .book-cover-img {
    width:100%;
    height:100%;
    object-fit:cover;
    position:absolute;
    top:0;
    left:0;
  }

  /* 세로 제목 (기본) */
  .book-title {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 13px;
    font-weight: 800;
    color: white;
    letter-spacing: 2px;
    text-shadow: 0 1px 6px rgba(0,0,0,0.4);
    white-space: nowrap;
    transition: opacity 0.2s ease;
  }

  /* 호버 시 가로 제목 - JS active 클래스로 제어 */

  /* STATS */
  .stats {}

  .stats-label {
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-main);
    font-weight: 600;
  }

  .stats h2 {
    font-size: 30px;
    font-weight: 900;
    margin-bottom: 48px;
    color: var(--blue);
  }

  .stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    max-width: 1600px;
    margin: 0 auto;
  }

  .stat-item {
    padding: 0 20px;
    border-right: 1px solid #ccd8f0;
  }

  .stat-item:last-child { border-right: none; }

  .stat-number {
    font-size: 48px;
    font-weight: 900;
    color: var(--black);
    line-height: 1;
    margin-bottom: 10px;
  }
  
  .stat-sub{
    font-size: 28px;
    color: var(--blue);
  }
  
  .stat-desc {
    font-size: 13px;
    color: var(--gray);
  }

  /* PORTFOLIO */
  .portfolio {
	width: 100%;
    padding: 120px 0;
	background: #f8fafc;
    overflow: hidden;
  }

  .portfolio .section-title {
    padding: 0 var(--side);
    margin-bottom: 48px;
  }

  .section-title {
    font-size: 32px;
    font-weight: 900;
    text-align: center;
    margin-bottom: 48px;
  }

  .portfolio-track-wrapper {
    overflow: hidden;
    width: calc(100% - var(--side) * 2);
    margin: 0 var(--side);
  }

	.portfolio-track {
	
	}

  /* .portfolio-track:hover { animation-play-state: paused; } */

  @keyframes portfolioScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
  }

  .portfolio-card {
    flex-shrink: 0;
    width: 240px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    transition: box-shadow 0.2s, transform 0.2s;
    cursor: pointer;
    overflow: hidden;
  }

  .portfolio-card:hover {
    box-shadow: 0 10px 32px rgba(26,107,255,0.13);
    transform: translateY(-4px);
  }

  .portfolio-thumb {
    margin: 12px 12px 0 12px;
    height: 220px;
    border-radius: 10px;
    overflow: hidden;
  }

  .portfolio-thumb-bg {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
  }

  .bg-library { background: linear-gradient(160deg, #c9a87c 0%, #8B6340 60%, #5a3e28 100%); }
  .bg-building { background: linear-gradient(160deg, #a8cbee 0%, #4a8fc1 50%, #1a5a8a 100%); }
  .bg-book { background: linear-gradient(160deg, #f0ebe0 0%, #d6c9b0 50%, #b0a080 100%); }
  .bg-archive { background: linear-gradient(160deg, #5b6e8a 0%, #34495e 50%, #1a2535 100%); }

  .portfolio-info {
    padding: 16px 16px 18px;
    text-align: center;
  }

  .tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 12px;
    border-radius: 100px;
    margin-bottom: 10px;
  }

  .tag-edu { background: #ede9fe; color: #6d3fcc; }
  .tag-pub { background: #ede9fe; color: #6d3fcc; }

  .portfolio-info h4 {
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 6px;
    line-height: 1.4;
    color: var(--text);
  }

  .portfolio-info p {
    font-size: 11px;
    color: var(--gray);
    line-height: 1.5;
    margin-bottom: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .format-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .fmt {
    font-size: 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 2px 8px;
    color: var(--gray);
    background: #f7f9fd;
  }

  /* CLIENTS */
  .clients {
    background: #f8faff;
    padding: 24px 0;
    overflow: hidden;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }

  .clients-track {
    display: flex;
    gap: 60px;
    animation: scroll 30s linear infinite;
    white-space: nowrap;
  }

  @keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
  }

  .client-name {
    font-size: 13px;
    font-weight: 700;
    color: #555;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 6px;
  }

  /* CTA */
  .cta-section {
    padding: 80px var(--side);
    background: #fff;
  }

  .cta-card {
    background: var(--light-bg);
    border-radius: 20px;
    padding: 60px 150px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
  }

  .cta-left { flex: 1; }

  .cta-left h2 {
    font-size: 28px;
    font-weight: 900;
    margin-bottom: 12px;
  }

  .cta-left p {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 28px;
  }

  .btn-outline-blue {
    border: 1.5px solid var(--blue);
    color: var(--blue);
    background: transparent;
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }

  .btn-outline-blue:hover { background: var(--blue); color: white; }

  .cta-bubbles {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 0 0 auto;
    max-width: 340px;
  }

  .bubble {
    background: white;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 12px;
    color: var(--gray);
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  }

  .bubble strong { color: var(--text); display: block; margin-bottom: 2px; font-size: 11px; }

  .cta-character {
    flex: 0 0 auto;
    width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
  }

  /* PRICING */
  .pricing {
    padding: 80px var(--side);
    // background: #f4f6fb;
  }

  .pricing .section-title { margin-bottom: 12px; }

  .pricing-subtitle {
    text-align: center;
    color: var(--gray);
    font-size: 14px;
    margin-bottom: 48px;
  }

  .pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 100%;
    margin: 0 auto;
    align-items: stretch;
  }

  .pricing-card {
  }

  .pricing-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.05);
    transform: translateY(-2px);
  }

  .pricing-card.featured {
    border: 2px solid var(--blue);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  }

  .featured-badge {
    position: absolute;
    top: 28px;
    right: 24px;
    background: var(--blue);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .plan-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
  }

  .plan-tier {
    font-size: 12px;
    font-weight: 500;
    color: var(--gray);
  }

  .plan-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
  }

  .plan-name.blue { color: var(--blue); }

  .plan-price {
    margin-bottom: 4px;
    display: flex;
    align-items: baseline;
    gap: 4px;
  }

  .price-amount {
    font-size: 36px;
    font-weight: 900;
    color: var(--text);
    letter-spacing: -1px;
  }

  .price-unit {
    font-size: 13px;
    color: var(--gray);
    font-weight: 400;
  }

  .plan-sub {
    font-size: 12px;
    color: var(--gray);
    margin-bottom: 4px;
  }

  .plan-duration {
    display: inline-block;
    font-size: 12px;
    color: #444;
    background: #f0f4ff;
    border-radius: 6px;
    padding: 3px 10px;
    margin: 10px 0 20px;
    font-weight: 500;
  }

  .plan-divider {
    border: none;
    border-top: 1px solid #edf0f7;
    margin: 0 0 18px 0;
  }

  .plan-features {
    list-style: none;
    font-size: 13px;
    color: #444;
    line-height: 1.6;
    margin-bottom: 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
  }

  .plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
  }

  .feat-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1.5px solid #c8d0e0;
    flex-shrink: 0;
    margin-top: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #c8d0e0;
  }

  .feat-icon.blue {
    border-color: var(--blue);
    background: #edf3ff;
    color: var(--blue);
    font-size: 9px;
  }

  .btn-plan {
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
    border: 1.5px solid #dde3f0;
    background: #f7f9fd;
    color: var(--text);
  }

  .btn-plan:hover { border-color: var(--blue); color: var(--blue); background: #edf3ff; }

  .btn-plan.featured-btn {
    background: var(--blue);
    color: white;
    border-color: var(--blue);
    font-size: 16px;
    padding: 16px;
  }

  .btn-plan.featured-btn:hover { background: var(--blue-dark); }


  /* FOOTER */
  footer {
    background: #1a1a2e;
    color: #aaa;
    padding: 32px var(--side);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
  }

  footer .footer-links { display: flex; gap: 20px; }
  footer a { color: #aaa; text-decoration: none; }
  footer a:hover { color: white; }

  /* Animations */
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .hero-left { animation: fadeUp 0.7s ease both; }
  .hero-right { animation: fadeUp 0.7s 0.2s ease both; }
  .stats-grid .stat-item { animation: fadeUp 0.5s ease both; }
  .stats-grid .stat-item:nth-child(2) { animation-delay: 0.1s; }
  .stats-grid .stat-item:nth-child(3) { animation-delay: 0.2s; }
  .stats-grid .stat-item:nth-child(4) { animation-delay: 0.3s; }


/* ============================================
   모바일 반응형
   ============================================ */

/* 태블릿 (1024px 이하) */
@media (max-width: 1024px) {
	:root { --side: 40px; }
	.m-hide {
		display: none;
	}
	.stats-grid { grid-template-columns: repeat(2, 1fr); }
	.stat-item:nth-child(odd) { border-right: 1px solid #ccd8f0 !important; }
	.stat-item:nth-child(3), .stat-item:nth-child(4) { border-bottom: none; }

	.pricing-grid { grid-template-columns: repeat(2, 1fr); }
	.cta-card { padding: 40px; flex-direction: column; }
}

/* 모바일 (768px 이하) */
@media (max-width: 768px) {
  :root { --side: 16px; }
	h1 { font-size: 40px; }
	h2 { font-size: 32px; }
	h3 { font-size: 22px; }
	h4 { font-size: 20px; }
		
	header {
		height: 64px;
		padding: 12px;
	}
	body { padding-top: 64px; }
  /* 모바일 우측 묶음 */
  .mobile-nav-right {
    display: flex !important;
    align-items: center;
    gap: 8px;
    margin-left: auto;
  }
  .language,
  .language a {
		list-style-type: none !important;
		text-decoration: none !important;
	}
	/* 기본값 — 항상 숨김 */
	.mobile-menu {
	  display: none;
	}

	/* 열렸을 때만 보임 */
	.mobile-menu.open {
	  display: flex;
	  flex-direction: column;
	}

  /* 햄버거 버튼 */
  .hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
  }
  .hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-main);
    border-radius: 2px;
    transition: all 0.3s;
  }

  /* 열렸을 때 X 모양 */
  .hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hamburger.open span:nth-child(2) { opacity: 0; }
  .hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* 모바일 메뉴 드롭다운 — nav에 고정 */
  .mobile-menu {
	  display: none;
	  position: fixed;     /* ← fixed 고정 */
	  top: 64px;
	  left: 0;
	  right: 0;
	  z-index: 999;        /* ← 컨텐츠 위로 */
	  background: white;
	  border-bottom: 1px solid var(--border);
	  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }
  .mobile-menu a {
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-main);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
  }
  .mobile-menu a:last-child { border-bottom: none; }
  .mobile-menu a:hover { background: #f5f7ff; color: var(--blue); }

  /* NAV */
  nav {}
  /* nav-links 전체 숨김 (문의하기 포함) */
  .nav-links { display: none !important; }
  /* 문의하기 버튼 제외한 일반 링크 숨기기 */
  .nav-links li:not(:last-child) {
    display: none;
  }
  .nav-btn { display: none;}
  .logo { width: 32px;}


  /* STATS */
  .stats {}
  .stats h2 { font-size: 22px; margin-bottom: 32px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 0; }
  .stat-number { font-size: 36px; }
  .stat-item { border-right: none !important; border-bottom: 1px solid #ccd8f0 !important; padding: 32px 16px; }
  .stat-item:nth-child(odd) { border-right: 1px solid #ccd8f0 !important; }
  .stat-item:nth-child(3), .stat-item:nth-child(4) { border-bottom: none !important; }

  /* PORTFOLIO */
  .portfolio { padding: 48px 0; }
  .section-title { font-size: 24px; }
  .portfolio-card { width: 180px; }
  .portfolio-thumb { height: 160px; }

  /* CTA */
  .cta-section { padding: 40px 16px; }
  .cta-card { padding: 32px 20px; flex-direction: column; gap: 24px; border-radius: 16px; }
  .cta-left h2 { font-size: 20px; }
  .cta-left p { font-size: 13px; }
  .cta-bubbles { display: none; }

  /* PRICING */
  .pricing { padding: 48px 16px; }
  .pricing-grid { grid-template-columns: 1fr; gap: 16px; }

  /* FOOTER */
  footer { flex-direction: column; gap: 16px; text-align: center; padding: 24px 16px; }
  footer .footer-links { flex-wrap: wrap; justify-content: center; gap: 12px; }
}

/* 모바일 (375px 이하) */
@media (max-width: 375px) {
	:root { --side: 15px; }
	h1 { font-size: 32px; }
	h2 { font-size: 24px; }
	h3 { font-size: 20px; }
	h4 { font-size: 18px; }
}