:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --text: #111827;
  --text-strong: #374151;
  --muted: #4b5563;
  --accent: #2563eb;
  --badge-bg: #e5e7eb;
  --thumb-bg: #eefcf6;
  --thumb-border: #dcf5ea;
  --btn-bg: #1f1f1f;
  --btn-text: #ffffff;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 4px 14px rgba(0,0,0,.06);
  --shadow-hover: 0 2px 4px rgba(0,0,0,.05), 0 10px 28px rgba(0,0,0,.10);
}

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

body {
  font-family: "Inter", "Pretendard", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ---------- Header ---------- */
.header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding: 12px 16px;
}
.header .home { display: flex; align-items: center; gap: 8px; }
.header .logo { width: 28px; height: 28px; object-fit: contain; }
.header .brand { font-weight: 700; font-size: 15px; }
.header .badge {
  font-size: 11px;
  font-weight: 600;
  background: var(--badge-bg);
  padding: 3px 8px;
  border-radius: 999px;
}

.nav { display: flex; flex-wrap: wrap; gap: 4px; margin-left: auto; }
.nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 6px;
  transition: background .15s ease, color .15s ease;
}
.nav a:hover { background: var(--badge-bg); color: var(--text); }
.nav a[aria-current="page"] { color: var(--accent); font-weight: 600; }

/* ---------- Hero ---------- */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 16px 80px;
}

.hero { text-align: center; }
.hero h1 {
  font-size: clamp(44px, 7vw, 76px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--text-strong);
}
.hero h1 .accent {
  color: var(--accent);
  font-family: "Ubuntu", "Inter", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: 0;
}
.hero h1 .staar {
  background: linear-gradient(90deg, #1e293b, #4b5563);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brandmark {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
}
.byline {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: clamp(15px, 1.6vw, 19px);
  font-weight: 500;
  color: var(--text);
}
.byline a { display: flex; transition: opacity .15s ease; }
.byline a:hover { opacity: .75; }
.byline img { height: clamp(22px, 2.3vw, 28px); }

.hero .tagline {
  margin-top: 14px;
  font-size: 16px;
  color: var(--muted);
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  padding: 14px 20px;
  background: var(--btn-bg);
  color: var(--btn-text);
  font-weight: 600;
  font-size: 15px;
  border-radius: 8px;
  transition: transform .15s ease, opacity .15s ease;
}
.cta:hover { transform: translateY(-1px); opacity: .92; }
.cta svg { width: 16px; height: 16px; }

/* ---------- Cards ---------- */
.cards {
  margin-top: 72px;
  width: 100%;
  max-width: 1140px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.card {
  flex: 0 1 363px;
  background: var(--surface);
  border-radius: 10px;
  padding: 0 0 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }

/* 카드 상단 이미지 영역 (아이콘 SVG: 네이비 #1F1B5C + 민트 #22E5A5) */
.card .thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 10;
  background: var(--thumb-bg);
  border-bottom: 1px solid var(--thumb-border);
}
.card .thumb img,
.card .thumb object,
.card .thumb svg {
  width: 56%;
  height: 80%;
  object-fit: contain;
  transition: transform .25s ease;
}
a.card:hover .thumb img,
a.card:hover .thumb object,
a.card:hover .thumb svg { transform: scale(1.05); }

/* SVG 애니메이션은 호버 시에만 재생 (평소엔 완성된 정지 이미지) */
a.card:not(:hover) .thumb svg * { animation: none !important; }
/* 이미지가 아직 없는 카드 */
.card .thumb.placeholder { font-size: 56px; line-height: 1; }

.card .label {
  display: block;
  margin: 20px 26px 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.card h3 {
  margin: 8px 26px 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--muted);
  letter-spacing: 0;
}

/* ---------- Tool (sub) pages ---------- */
.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
}
.breadcrumb a:hover { color: var(--accent); }

.tool-icon { font-size: 40px; margin-bottom: 16px; }

.lead {
  max-width: 620px;
  margin: 20px auto 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
}
/* 메인 소개글: 폭 제한 없이 <br> 위치에서만 줄바꿈 (좁은 화면에서는 자동 줄바꿈) */
.lead.intro {
  max-width: none;
  margin-top: 36px;
  font-size: clamp(17px, 1.9vw, 22px);
  line-height: 1.6;
  color: var(--text-strong);
}
.lead.intro mark {
  background: linear-gradient(transparent 58%, #bfdbfe 58%);
  color: var(--text);
  font-weight: 700;
  padding: 0 2px;
}

footer {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  padding: 24px 16px;
}

@media (max-width: 640px) {
  .nav { margin-left: 0; }
  .cards { margin-top: 48px; gap: 16px; }
  .card { flex-basis: 100%; }
}
