/* Hub navigation: retain the navy identity, with a distinct illustrated play entrance. */
.hub-intro {padding:48px 0 28px;max-width:800px}
.hub-intro h1 {font-size:clamp(2rem,5vw,3.6rem);line-height:1.18;letter-spacing:-.045em;margin:16px 0}
.hub-intro p {font-size:1rem;color:#5d6680;margin-bottom:0}
.hub-entrances {display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-bottom:28px}
.hub-door {position:relative;display:flex;flex-direction:column;justify-content:center;min-height:228px;padding:28px;border-radius:24px;text-decoration:none;overflow:hidden}
.tools-door {background:#172550;color:white}
.hub-door h2 {font-size:1.7rem;line-height:1.3;margin:10px 0}
.hub-door p {font-size:1rem;margin-bottom:22px}
.hub-door>span,.hub-door div>span {font-size:.875rem}
.play-door {background:#f2eaf2;color:#3d3548}
.play-door div {position:relative;z-index:1;width:66%}
.play-door img {position:absolute;right:0;bottom:0;width:42%;height:100%;object-fit:cover;mask-image:linear-gradient(to right,transparent,#000 25%)}
.collection-tabs {display:flex;flex-wrap:wrap;gap:8px;margin:20px 0 32px}
.collection-tabs a {background:#fff;border:1px solid #dde2ed;min-height:44px}
.collection-group {scroll-margin-top:24px;margin-bottom:40px}
.collection-group .section-heading {margin-bottom:18px;align-items:center;gap:12px}
.collection-group .section-heading p {max-width:none;margin:6px 0 0;font-size:1rem}
.collection-group h2 {font-size:1.5rem;margin:0}
.collection-more {white-space:nowrap;font-size:.875rem;padding:12px 0}
.collection-group .app-card {min-height:230px;padding:24px}
.collection-group .app-symbol {font-size:1.1rem}
.collection-group .app-number {display:none}
.hub-guide {margin:32px 0 48px;padding-top:24px;border-top:1px solid #dce1eb}
.hub-guide h2 {font-size:1.35rem}
@media(max-width:680px){.hub-entrances{grid-template-columns:1fr;gap:12px}.hub-door{min-height:180px;padding:22px}.hub-intro{padding-top:24px}.collection-group .section-heading{display:block}.collection-more{display:inline-block}.site-header{flex-wrap:wrap;gap:8px;padding-block:12px}.site-header nav{flex-wrap:wrap}.site-header nav a{padding-inline:10px}.collection-group .app-card{min-height:200px}.collection-tabs a{padding-inline:12px}}
:root {
  --navy: #0c1638;
  --navy-soft: #172550;
  --blue: #355cff;
  --paper: #f4f7fb;
  --white: #ffffff;
  --ink-muted: #5d6680;
  --line: rgba(12, 22, 56, 0.13);
  --radius-lg: 28px;
  --radius-md: 20px;
  --shadow: 0 18px 50px rgba(17, 31, 73, 0.1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--navy);
  background: var(--paper);
  font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  word-break: keep-all;
}
a { color: inherit; }
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  color: var(--white);
  background: var(--navy);
  border-radius: 10px;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }
.site-header,
main,
footer {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}
.site-header {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--navy);
  font-size: 1rem;
  font-weight: 850;
  text-decoration: none;
  letter-spacing: -0.02em;
}
.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--navy);
  border-radius: 12px;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}
nav { display: flex; gap: 8px; }
nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  color: #38415c;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}
nav a:hover { background: rgba(255,255,255,0.8); }
.hero {
  min-height: 570px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 54px;
  padding: 72px 0 92px;
}
.eyebrow {
  margin: 0 0 18px;
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.16em;
}
h1,
h2,
h3,
p { margin-top: 0; }
h1 {
  margin-bottom: 26px;
  font-size: clamp(3.25rem, 7vw, 6.35rem);
  line-height: 0.98;
  letter-spacing: -0.07em;
}
h1 span { color: var(--blue); }
.hero-description {
  max-width: 570px;
  margin-bottom: 34px;
  color: var(--ink-muted);
  font-size: clamp(1rem, 1.5vw, 1.16rem);
}
.primary-link {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  color: var(--white);
  background: var(--navy);
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(12,22,56,0.2);
}
.primary-link:hover { background: var(--blue); }
.hero-visual {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #dae3ff, #b9c9ff);
  border: 1px solid rgba(53,92,255,0.12);
  border-radius: 46px;
  box-shadow: var(--shadow);
}
.hero-visual::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  background: #ffcf55;
  border-radius: 50%;
}
.hero-monogram {
  position: relative;
  z-index: 2;
  color: var(--navy);
  font-size: clamp(5.5rem, 12vw, 9rem);
  font-weight: 950;
  letter-spacing: -0.1em;
  transform: translateX(-0.04em);
}
.orbit {
  position: absolute;
  border: 1px solid rgba(12,22,56,0.28);
  border-radius: 50%;
}
.orbit-one { width: 360px; height: 360px; }
.orbit-two { width: 470px; height: 190px; transform: rotate(-28deg); }
.visual-note {
  position: absolute;
  z-index: 3;
  padding: 7px 12px;
  color: var(--white);
  background: var(--navy);
  border-radius: 999px;
  font-size: 0.67rem;
  font-weight: 850;
  letter-spacing: 0.12em;
}
.note-one { top: 18%; left: 11%; }
.note-two { top: 28%; right: 9%; }
.note-three { right: 14%; bottom: 16%; }
.apps-section { padding: 98px 0; }
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 36px;
}
.section-heading h2,
.about-section h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.12;
  letter-spacing: -0.055em;
}
.section-heading > p {
  max-width: 350px;
  margin-bottom: 3px;
  color: var(--ink-muted);
}
.app-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.app-card {
  position: relative;
  min-height: 345px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.app-card:hover {
  z-index: 2;
  border-color: rgba(53,92,255,0.35);
  box-shadow: var(--shadow);
  transform: translateY(-6px);
}
.app-card:focus-visible,
nav a:focus-visible,
.primary-link:focus-visible,
footer a:focus-visible {
  outline: 3px solid #ffbd2e;
  outline-offset: 4px;
}
.app-card::before {
  content: "";
  position: absolute;
  top: -62px;
  right: -52px;
  width: 155px;
  height: 155px;
  background: var(--accent-soft);
  border-radius: 50%;
}
.app-number {
  position: absolute;
  top: 20px;
  right: 20px;
  color: rgba(12,22,56,0.45);
  font-size: 0.72rem;
  font-weight: 800;
}
.app-symbol {
  position: relative;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  margin-bottom: 34px;
  color: var(--navy);
  background: var(--accent);
  border-radius: 18px;
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: -0.02em;
}
.app-category {
  margin-bottom: 8px;
  color: var(--ink-muted);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.app-card h3 {
  margin-bottom: 10px;
  font-size: 1.42rem;
  line-height: 1.2;
  letter-spacing: -0.035em;
}
.app-card p {
  margin-bottom: 24px;
  color: var(--ink-muted);
  font-size: 0.9rem;
}
.card-link {
  margin-top: auto;
  font-size: 0.86rem;
  font-weight: 850;
}
.card-coral { --accent: #ffad9f; --accent-soft: #ffe0da; }
.card-mint { --accent: #9be1c4; --accent-soft: #dff6ed; }
.card-yellow { --accent: #ffd66b; --accent-soft: #fff0bd; }
.card-blue { --accent: #a9c2ff; --accent-soft: #dce6ff; }
.card-green { --accent: #b8dc8b; --accent-soft: #e5f3d3; }
.card-violet { --accent: #c9b1f7; --accent-soft: #ece2ff; }
.card-aqua { --accent: #8edbe4; --accent-soft: #d7f3f6; }
.card-red { --accent: #ff9c8e; --accent-soft: #ffe0db; }
.card-sand { --accent: #e3c79a; --accent-soft: #f7ecd9; }
.card-indigo { --accent: #9aa7f0; --accent-soft: #dfe3fb; }
.about-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
  padding: 96px 70px;
  color: var(--white);
  background: var(--navy);
  border-radius: var(--radius-lg);
}
.about-section .eyebrow { color: #8ea8ff; }
.about-copy { color: #c7cfe4; font-size: 1.06rem; }
.about-copy p:last-child { margin-bottom: 0; }
.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 24px 0 100px;
}
.principles article {
  padding: 30px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.principles span {
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 900;
}
.principles h3 { margin: 22px 0 8px; font-size: 1.25rem; }
.principles p { margin-bottom: 0; color: var(--ink-muted); font-size: 0.92rem; }
footer {
  min-height: 210px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 36px;
  padding: 48px 0;
  border-top: 1px solid var(--line);
}
footer strong { font-size: 1.06rem; }
footer p { margin: 7px 0 0; color: var(--ink-muted); font-size: 0.88rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-links a { font-size: 0.88rem; font-weight: 750; text-decoration: none; }
.copyright { grid-column: 1 / -1; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 55px; }
  .hero-copy { max-width: 720px; }
  .hero-visual { min-height: 360px; }
  .app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-section { grid-template-columns: 1fr; gap: 40px; padding: 64px 44px; }
}

@media (max-width: 640px) {
  .site-header,
  main,
  footer { width: min(100% - 28px, 1180px); }
  .site-header { min-height: 70px; }
  .brand > span:last-child { display: none; }
  nav a { padding-inline: 10px; font-size: 0.84rem; }
  .hero { min-height: auto; gap: 42px; padding: 46px 0 68px; }
  h1 { font-size: clamp(3.15rem, 17vw, 4.6rem); }
  .hero-description { font-size: 1rem; }
  .hero-visual { min-height: 310px; border-radius: 30px; }
  .hero-visual::before { width: 210px; height: 210px; }
  .orbit-one { width: 275px; height: 275px; }
  .orbit-two { width: 345px; height: 150px; }
  .apps-section { padding: 74px 0; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 18px; }
  .app-grid { grid-template-columns: 1fr; }
  .app-card { min-height: 310px; }
  .about-section { padding: 48px 26px; border-radius: 24px; }
  .principles { grid-template-columns: 1fr; padding-bottom: 74px; }
  footer { grid-template-columns: 1fr; min-height: auto; }
  .copyright { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ── 디렉터리 페이지 ─────────────────────────────────────────────
   허브가 각 앱 홈만 링크하고 있어서 안쪽 페이지로 가는 크롤 경로가 없었다.
   홈 → /directory/ → /directory/<앱>/ → 실제 페이지 순으로 잇는다. */
.directory-body { background: var(--paper); color: var(--navy); }

.directory-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; max-width: 1080px; margin: 0 auto; padding: 22px 24px;
}
.directory-brand { font-weight: 800; letter-spacing: -0.02em; text-decoration: none; color: var(--navy); }
.directory-brand span { color: var(--blue); }
.directory-top nav { display: flex; gap: 18px; font-size: 14px; }
@media (max-width: 600px) {
  .directory-top { flex-wrap: wrap; }
  .directory-top nav { flex-wrap: wrap; }
}
.directory-top a { color: var(--ink-muted); text-decoration: none; }
.directory-top a:hover { color: var(--blue); }

.directory-main { max-width: 1080px; margin: 0 auto; padding: 8px 24px 64px; }
.directory-main h1 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.03em; margin: 12px 0 10px; }
.directory-main h2 { font-size: 18px; margin: 36px 0 14px; color: var(--ink-muted); font-weight: 600; }
.directory-lead { max-width: 68ch; color: var(--ink-muted); line-height: 1.75; }
.directory-intro { max-width: 68ch; margin: 20px 0 8px; }
.directory-intro p { margin: 0 0 12px; color: var(--ink); line-height: 1.8; font-size: 15px; }
.directory-intro a { color: var(--blue); }

.directory-picks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-width: 68ch; }
.directory-picks li { padding: 10px 14px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); font-size: 14px; }
.directory-picks a { color: var(--blue); text-decoration: none; }
.directory-picks a:hover { text-decoration: underline; }
.directory-open a { color: var(--blue); font-weight: 600; text-decoration: none; }

.directory-crumb { display: flex; gap: 8px; font-size: 13px; color: var(--ink-muted); margin-bottom: 18px; }
.directory-crumb a { color: var(--blue); text-decoration: none; }

.directory-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin: 28px 0 0; padding: 0; }
.directory-card {
  display: grid; gap: 8px; height: 100%; padding: 22px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md);
  text-decoration: none; color: inherit; box-shadow: var(--shadow);
}
.directory-card:hover { border-color: var(--blue); }
.directory-category { font-size: 12px; color: var(--blue); font-weight: 700; letter-spacing: 0.02em; }
.directory-card strong { font-size: 19px; letter-spacing: -0.02em; }
.directory-card p { margin: 0; font-size: 14px; line-height: 1.65; color: var(--ink-muted); }
.directory-count { font-size: 13px; color: var(--ink-muted); }

/* 목록이 길어 한 줄씩 세로로 쌓으면 스크롤이 지나치게 길어진다. 다단으로 흘린다. */
.directory-list {
  list-style: none; margin: 0; padding: 0;
  columns: 3; column-gap: 32px;
}
.directory-list li { break-inside: avoid; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.directory-list a { color: var(--navy); text-decoration: none; }
.directory-list a:hover { color: var(--blue); text-decoration: underline; }

.directory-foot { max-width: 1080px; margin: 0 auto; padding: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-muted); }
.directory-foot a { color: var(--blue); }

@media (max-width: 900px) { .directory-list { columns: 2; } }
@media (max-width: 600px) { .directory-list { columns: 1; } }

/* 홈에서 앱별 디렉터리로 바로 가는 바로가기. 홈 → 앱 디렉터리를 depth 1 로 만든다. */
.directory-section { max-width: 1080px; margin: 0 auto; padding: 0 24px 72px; }
.directory-shortcuts { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; margin-top: 28px; }
.directory-shortcuts a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  padding: 15px 18px; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-md); text-decoration: none; color: var(--navy);
}
.directory-shortcuts a:hover { border-color: var(--blue); }
.directory-shortcuts strong { font-size: 15px; letter-spacing: -0.01em; }
.directory-shortcuts span { font-size: 12px; color: var(--ink-muted); white-space: nowrap; }
.directory-all { margin-top: 22px; }
.directory-all a { color: var(--blue); font-weight: 600; text-decoration: none; }

/* 안내 문서(개인정보처리방침·약관·문의·소개·404). 디렉터리 셸을 그대로 쓰되
   본문은 읽는 화면이라 폭을 좁히고 행간을 넉넉히 준다. */
.doc-main { max-width: 820px; }
.doc-main h2 { font-size: 20px; color: var(--navy); font-weight: 700; margin: 40px 0 12px; padding-top: 22px; border-top: 1px solid var(--line); }
.doc-main h3 { font-size: 16px; margin: 26px 0 10px; }
.doc-main p { line-height: 1.8; color: var(--ink-muted); margin: 0 0 14px; }
.doc-main strong { color: var(--navy); }
.doc-main a { color: var(--blue); }
.doc-meta { font-size: 13px; color: var(--ink-muted); margin-top: -4px; }
.doc-list { margin: 0 0 16px; padding-left: 20px; }
.doc-list li { line-height: 1.8; color: var(--ink-muted); margin-bottom: 8px; }
.doc-list-compact li { margin-bottom: 3px; }
.doc-note { font-size: 13px; }
.doc-back { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); font-weight: 600; }
.doc-cta { font-size: clamp(20px, 3vw, 26px); font-weight: 700; margin: 24px 0 6px; }
.doc-cta a { text-decoration: none; }
.doc-code { font-size: 56px; font-weight: 800; color: var(--blue); letter-spacing: -0.04em; margin: 24px 0 0; }

/* 표는 좁은 화면에서 본문을 밀어내지 않도록 자기 영역 안에서만 가로 스크롤한다. */
.doc-table-wrap { overflow-x: auto; margin: 0 0 18px; }
.doc-table { border-collapse: collapse; width: 100%; min-width: 480px; font-size: 14px; }
.doc-table th, .doc-table td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; line-height: 1.7; }
.doc-table th { background: var(--white); color: var(--navy); font-weight: 700; white-space: nowrap; }
.doc-table td { color: var(--ink-muted); }

.directory-foot p { margin: 0 0 6px; }
.directory-foot p:last-child { margin-bottom: 0; }
/* Original usage guides: readable prose and horizontally scrollable data tables. */
.guide-article { max-width: 880px; }
.guide-article article { line-height: 1.9; }
.guide-article h2 { margin-top: 2.2rem; line-height: 1.45; }
.guide-article li { margin: .65rem 0; }
.guide-article caption { text-align: left; margin-bottom: .6rem; font-size: .9rem; }
.guide-byline { margin-top: 3rem; padding-top: 1rem; border-top: 1px solid #cbd5e1; font-size: .9rem; line-height: 1.8; }
.guide-preview-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
.guide-preview-grid article { padding: 24px; border: 1px solid #dbe2ed; border-radius: 18px; background: #fff; line-height: 1.8; }
.guide-preview-grid h3 { line-height: 1.5; margin-top: 0; }
@media (max-width: 760px) { .guide-preview-grid { grid-template-columns: 1fr; } }
