@font-face {
  font-family: "Pretendard";
  src: url("https://cdn.jsdelivr.net/gh/Project-Noonnu/noonfonts_2107@1.1/Pretendard-Thin.woff")
    format("woff");
  font-weight: 100;
  font-display: swap;
}

@font-face {
  font-family: "Pretendard";
  src: url("https://cdn.jsdelivr.net/gh/Project-Noonnu/noonfonts_2107@1.1/Pretendard-ExtraLight.woff")
    format("woff");
  font-weight: 200;
  font-display: swap;
}

@font-face {
  font-family: "Pretendard";
  src: url("https://cdn.jsdelivr.net/gh/Project-Noonnu/noonfonts_2107@1.1/Pretendard-Light.woff")
    format("woff");
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "Pretendard";
  src: url("https://cdn.jsdelivr.net/gh/Project-Noonnu/noonfonts_2107@1.1/Pretendard-Regular.woff")
    format("woff");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Pretendard";
  src: url("https://cdn.jsdelivr.net/gh/Project-Noonnu/noonfonts_2107@1.1/Pretendard-Medium.woff")
    format("woff");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Pretendard";
  src: url("https://cdn.jsdelivr.net/gh/Project-Noonnu/noonfonts_2107@1.1/Pretendard-SemiBold.woff")
    format("woff");
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Pretendard";
  src: url("https://cdn.jsdelivr.net/gh/Project-Noonnu/noonfonts_2107@1.1/Pretendard-Bold.woff")
    format("woff");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Pretendard";
  src: url("https://cdn.jsdelivr.net/gh/Project-Noonnu/noonfonts_2107@1.1/Pretendard-ExtraBold.woff")
    format("woff");
  font-weight: 800;
  font-display: swap;
}

@font-face {
  font-family: "Pretendard";
  src: url("https://cdn.jsdelivr.net/gh/Project-Noonnu/noonfonts_2107@1.1/Pretendard-Black.woff")
    format("woff");
  font-weight: 900;
  font-display: swap;
}

/* ===== 디자인 토큰 ===== */
:root {
  --brand-h: 217;
  --brand-s: 100%;
  --brand-l: 50%;
  --bg: #ffffff;
  --text: #1f2430;
  --muted: #6b7280;
  --card: #ffffff;
  --line: #e5e7eb;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12151a;
    --text: #f3f4f6;
    --muted: #a5adbb;
    --card: #171a21;
    --line: #2a2f39;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  }
}

/* ===== 베이스 ===== */
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
html,
body {
  height: 100%;
  /* 전역 좌우 여백 제거: 컨테이너에서 관리 */
  margin: 0;
}
body {
  margin: 0;
  padding: 10px;
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Noto Sans KR", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img {
  max-width: 100%;
  display: block;
}
a {
  text-decoration: none; /* 밑줄 제거 */
  color: inherit; /* 부모 글자색 상속 (기본 파란색 제거) */
  outline: none; /* 포커스 외곽선 제거 */
  -webkit-tap-highlight-color: transparent; /* 모바일에서 클릭 시 회색 하이라이트 제거 */
}

/* 클릭, 방문 등 모든 상태 통일 */
a:link,
a:visited,
a:hover,
a:active,
a:focus {
  text-decoration: none;
  color: inherit;
  outline: none;
}
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 40px;
}
.container-small {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== 유틸 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 16px;
  border-radius: calc(var(--radius) - 4px);
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
  transition: transform 0.08s ease, background 0.2s ease, border-color 0.2s ease;
  font-weight: 600;
  color: var(--text);
}
.btn:hover {
  transform: translateY(-1px);
}
.btn.primary {
  background: hsl(var(--brand-h), var(--brand-s), var(--brand-l));
  color: #fff;
  border-color: hsl(var(--brand-h), var(--brand-s), var(--brand-l));
}
.btn.ghost {
  background: transparent;
  border-color: var(--line);
}
.tag {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid var(--line);
  color: var(--muted);
  background: var(--card);
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 12px;
  color: var(--muted);
}
.grid {
  display: grid;
  gap: 16px;
}
.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 900px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.show {
  opacity: 1;
  transform: none;
}
/* 파란색 다운로드 버튼 */
.btn-download {
  display: inline-block;
  margin-top: 20px;
  padding: 7px 36px;
  font-size: 17px;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  color: #fff;
  background: hsl(217, 100%, 60%); /* 파란색 */
  box-shadow: 0 6px 20px rgba(64, 129, 255, 0.35);
  transition: all 0.25s ease;
}

.btn-download:hover {
  background: hsl(217, 100%, 65%);
  box-shadow: 0 8px 26px rgba(64, 129, 255, 0.45);
  transform: translateY(-2px);
}

/* 이미지 위에서도 잘 보이도록 */
.on-image.btn-download {
  color: #fff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* ===== 헤더 ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;

  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
@media (prefers-color-scheme: dark) {
  .header {
    background: rgba(18, 21, 26, 0.75);
  }
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}
.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: hsl(var(--brand-h), var(--brand-s), var(--brand-l));
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 14px;
  box-shadow: var(--shadow);
}
.nav-links {
  display: flex;
  gap: 16px;
  align-items: center;
}
.nav-links a {
  padding: 8px 10px;
  border-radius: 8px;
  font-weight: 600;
  color: var(--muted);
}
.nav-links a:hover {
  background: var(--card);
  color: var(--text);
}
.menu-btn {
  display: none;
}
@media (max-width: 768px) {
  .menu-btn {
    display: inline-flex;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 12px 20px;
  }
  .nav-links.open {
    display: grid;
    grid-auto-rows: min-content;
  }
}

/* ===== 섹션 공통 ===== */
.section {
  padding: 180px 0px;
}
.section.alt {
  background: #fafafa;
}
@media (prefers-color-scheme: dark) {
  .section.alt {
    background: #0f1216;
  }
}
.title {
  font-size: clamp(22px, 3.4vw, 32px);
  font-weight: 800;
  margin: 0 0 8px;
}
.desc {
  color: var(--muted);
  max-width: 820px;
}
.card-title {
  position: relative;
  display: inline-block;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text);
  letter-spacing: -0.01em;
  padding-left: 10px;
}

.card-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 3px;
  border-radius: 2px;
  background: hsl(217, 100%, 60%); /* CERARE 포인트 블루 */
  opacity: 0.8;
}
/* ===== 히어로 ===== */

.hero {
  padding: 0 0 72px;
} /* 상단 여백은 카드 안에서 처리 */
.hero-visual {
  max-width: 1120px; /* 또는 원하는 폭 */
  margin: 30px auto 0; /* 가운데 정렬 */
  height: clamp(480px, 60vw, 700px); /* 이전 오타 수정 버전 권장 */
}
/* 하단 그라데이션 오버레이 옵션 (필요할 때만 켜기) */

/* 배경 이미지 (넓게 채우기) */
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  margin-top: 100px;
}

/* 이미지 위 텍스트 컬러 */

@media (prefers-color-scheme: dark) {
}
.hero-content .h1 {
  font-size: clamp(32px, 6vw, 64px);
  margin: 4px 0;
}
.hero-content .lead {
  font-size: clamp(16px, 2.4vw, 20px);
  font-weight: 600;
  opacity: 0.95;
}

.hero-content .context {
  font-size: clamp(14px, 1.8vw, 16px);
  opacity: 0.95;
}

/* 태그를 조금 더 강조 */
.tag

/* 컨테이너 폭 확장(히어로에서만) */
.hero .container {
  max-width: min(1280px, 92vw);
}

/* 책갈피와 겹침 방지(여백 살짝) */
.toc {
  right: 28px;
}

.h1 {
  font-size: clamp(28px, 5vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  font-weight: 800;
}
.lead {
  font-size: clamp(15px, 2.2vw, 18px);
  color: var(--muted);
  max-width: 720px;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line);
}

/* ===== 미디어 플레이스홀더 ===== */
.media {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: #f3f4f6;
  border-radius: 12px;
}
.media-lg {
  width: 100%;
  background: #f3f4f6;
}
img.media-xl {
  width: 100%;
  height: auto; /* ← 핵심! 자동 높이 */
  object-fit: contain; /* 비율 유지하며 안짤리게 */
  object-position: center;
  display: block;
  max-height: 90vh; /* 필요하면 최대 제한만 걸기 */
}
/* 하단 그라데이션 오버레이 옵션 (필요할 때만 켜기) */

.on-image {
  color: #242424;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

/* ===== 기능 카드 ===== */
.feature {
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
}
.feature.card {
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
  transition: transform 0.15s ease, box-shadow 0.2s ease;

  display: flex;
  flex-direction: column;
  justify-content: space-between; /* 위 텍스트 + 아래 설명 균등 배치 */
  height: 100%;
}
.feature.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(64, 129, 255, 0.15);
}
.feature.card img {
  width: 100%;
  margin-bottom: 10px;
  transition: transform 0.25s ease;
}
.feature.card:hover img {
  transform: scale(1.02);
}
.feature.card p {
  margin-top: 0;
  color: var(--muted);
  font-size: 14px;
}
.feature-nobox {
  padding: 18px;
}
.feature-nobox-desc {
  padding-top: 18px;
}
.card-number {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0077ff;
}
.divider {
  margin: 12px 0;
  border: 0;
  border-top: 1px solid #ddd;
}
.icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: hsl(var(--brand-h), var(--brand-s), calc(var(--brand-l) + 5%));
  color: #fff;
  font-weight: 900;
  box-shadow: var(--shadow);
}

/* ===== 테이블 ===== */
.table-wrap {
  overflow: auto;
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.table th,
.table td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
.table thead th {
  background: #f9fafb;
  font-weight: 800;
}
@media (prefers-color-scheme: dark) {
  .table thead th {
    background: #1c212b;
  }
}

/* ===== 푸터 ===== */
.footer {
  border-top: 1px solid var(--line);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 28px 0;
  align-items: start;
}
.footer-meta p {
  margin: 4px 0;
}

/* 섹션 앵커 보정 */
.section,
#contact,
#demo,
#background,
#features-uses,
#modules,
#process {
  scroll-margin-top: 80px;
}

/* ─── 오른쪽 세로 책갈피 목차 (탑 내비 유지) ─── */
.toc {
  position: fixed;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  z-index: 1100;
  display: grid;
  gap: 10px;
  padding: 0px;
}
@media (prefers-color-scheme: dark) {
  .toc {
    background: rgba(255, 255, 255, 0.04);
  }
}
.toc-item {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  padding: 10px 6px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--muted);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.08em;
  transition: transform 0.15s ease, color 0.15s ease, border-color 0.15s ease,
    background 0.15s ease;
  text-align: center;
}
.toc-item:hover {
  transform: translateX(-1px);
  color: var(--text);
}
.toc-item.active {
  border-color: hsl(var(--brand-h), var(--brand-s), var(--brand-l));
  color: hsl(var(--brand-h), var(--brand-s), var(--brand-l));
  box-shadow: var(--shadow);
}
@media (max-width: 900px) {
  .toc {
    display: none;
  }
}

/* Why CERARE */
.kicker {
  color: hsl(var(--brand-h), var(--brand-s), calc(var(--brand-l) + 5%));
  font-weight: 800;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}
.mega-title {
  font-size: clamp(26px, 4.6vw, 44px);
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}
.brand-ink {
  color: hsl(217, 100%, 60%);
}

.callout {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.callout .dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: hsl(217, 100%, 60%);
}
.callout-text {
  margin: 0;
  color: var(--text);
}
@media (prefers-color-scheme: dark) {
  .callout {
    background: var(--card);
  }
}

.non-split {
  grid-template-columns: 1.1fr 0.9fr; /* 텍스트 약간 넓게 */
  margin-top: 120px;
}
/* 텍스트 좌 / 이미지 우 레이아웃 */
.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr; /* 텍스트 약간 넓게 */
  gap: clamp(20px, 4vw, 48px);
  margin-top: 120px;
}

/* 텍스트 영역 */
.split-text .kicker {
  color: hsl(var(--brand-h), var(--brand-s), calc(var(--brand-l) + 5%));
  font-weight: 800;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}
.split-text .mega-title {
  font-size: clamp(26px, 4.6vw, 44px);
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}
.split-text .brand-ink {
  color: hsl(217, 100%, 60%);
}
.bullet {
  margin-top: 16px;
  color: var(--text);
}
.bullet li {
  margin: 6px 0;
  color: var(--muted);
}

/* 이미지 영역 */
.split-media {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  height: 100%; /* 부모 섹션의 높이 따라감 */
  min-height: 200px; /* 기본 높이 설정 */
}
.split-media img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  /* 필요 시 비율 고정: aspect-ratio: 16/10; */
}

/* 모바일 스택 */
@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
  }
  .split-media {
    order: 2;
  } /* 모바일에서 텍스트 먼저 */
  .split-text {
    order: 1;
  }
}

/* 좌우 반전이 필요하면 섹션에 .split-reverse 추가 */
.split.split-reverse {
  grid-template-columns: 0.9fr 1.1fr;
}
.split.split-reverse .split-media {
  order: -1;
}

/* 다크모드 대응 */
@media (prefers-color-scheme: dark) {
  .card-title::before {
    opacity: 0.9;
  }
  .feature.card {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  }
}

.tool-list {
  list-style: none;
  margin: 8px 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
}
.tool-list li {
  background: #f3f4f6;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--muted);
  border: 1px solid var(--line);
}
@media (prefers-color-scheme: dark) {
  .tool-list li {
    background: #1e242d;
    color: #cbd5e1;
  }
}
.grid.grid-2 {
  align-items: stretch; /* 모든 그리드 아이템 높이 동일 */
}

/* 3-way 비교 */
.compare3-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 3vw, 28px);
  margin-top: 28px;
}
.compare3-col {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.05);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.15s ease, box-shadow 0.25s ease,
    border-color 0.25s ease;
}
.compare3-col:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(64, 129, 255, 0.12);
  border-color: rgba(64, 129, 255, 0.35);
}

.compare3-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.compare3-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.compare3-tag {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.02);
}
.compare3-badge {
  font-size: 12px;
  font-weight: 900;
  color: #fff;
  padding: 6px 10px;
  border-radius: 999px;
  background: hsl(217, 100%, 60%);
  box-shadow: 0 6px 18px rgba(64, 129, 255, 0.35);
}

.compare3-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.compare3-list li {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(248, 249, 251, 0.6);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.compare3-list li strong {
  color: var(--text);
  font-weight: 800;
  min-width: 110px;
  flex: 0 0 30%; /* ✅ 제목: 30% */
}
.compare3-list li span {
  flex: 1 1 auto;
}

/* CERARE 강조 카드 */
.compare3-highlight {
  background: linear-gradient(180deg, #f9fbff 0%, #ffffff 100%);
  border: 1px solid hsl(217, 100%, 85%);
  box-shadow: 0 10px 32px rgba(64, 129, 255, 0.12);
}
@media (prefers-color-scheme: dark) {
  .compare3-highlight {
    background: linear-gradient(180deg, #12151a 0%, #171a21 100%);
    border-color: rgba(64, 129, 255, 0.35);
  }
}

/* CTA 영역 */
.compare3-cta {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}
.compare3-cta .btn {
  height: 40px;
  padding: 0 14px;
}

/* 반응형 */
@media (max-width: 1024px) {
  .compare3-list li {
    flex-direction: column;
  }
  .compare3-list li strong {
    min-width: 0;
  }
}
@media (max-width: 900px) {
  .compare3-grid {
    grid-template-columns: 1fr;
  }
}

.faq {
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid #ddd;
  padding: 12px 0;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  outline: none;
  font-size: 1.05rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  color: #222;
  transition: color 0.2s ease;
}

.faq-question:hover {
  color: #0077ff;
}

.faq-toggle {
  font-size: 1.4rem;
  color: #0077ff;
  transition: transform 0.2s ease;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  margin-top: 8px;
}

.faq-answer p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #444;
}
