:root {
  --accent: #1E6FA8;
  --ink: #142330;
  --sub: #57697A;
  --line: #DCE8F0;
  --bg-1: #E3F0F8;
  --bg-2: #E9F2F9;
  --bg-3: #F0F7FC;
  --bg-4: #F6FAFD;
  --bg-5: #E9F2F9;
  --bg-6: #E3F0F8;
  --bg-7: #FFFFFF;
  --bg-8: #F0F7FC;
  --hero-tint: #F0F7FC;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Pretendard Variable", Pretendard, -apple-system, sans-serif;
  font-weight: 400;
  letter-spacing: -0.3px;
  color: var(--ink);
  background: #FFFFFF;
  padding-bottom: 72px;
}
@media (min-width: 768px) { body { padding-bottom: 0; } }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { font-weight: 700; margin: 0 0 16px; line-height: 1.32; }
p { line-height: 1.75; color: var(--sub); margin: 0 0 16px; }

/* ---------- topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: #FFFFFF; border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon { width: 34px; height: 34px; color: var(--accent); flex: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-brand { font-size: 13px; font-weight: 600; color: var(--sub); letter-spacing: 0.5px; }
.logo-keyword { font-size: 19px; font-weight: 700; color: var(--ink); }

.nav {
  display: none; align-items: center; gap: 30px;
  font-family: "Barlow Condensed", sans-serif; font-size: 16px; font-weight: 600;
  letter-spacing: -0.035em; text-transform: uppercase;
}
@media (min-width: 900px) { .nav { display: flex; } }
.nav a { color: var(--ink); }
.nav .navdrop { position: relative; }
.nav .navdrop > a::after { content: " ▾"; font-size: 12px; }
.navdrop-menu {
  position: absolute; top: 100%; left: 0; min-width: 190px;
  background: #FFFFFF; border: 1px solid var(--line); border-radius: 10px;
  padding: 14px 8px 8px; display: none; box-shadow: 0 16px 32px rgba(0,0,0,0.10);
}
.navdrop:hover .navdrop-menu, .navdrop:focus-within .navdrop-menu { display: block; }
.navdrop-menu a { display: block; padding: 9px 12px; border-radius: 6px; font-size: 14px; font-weight: 600; }
.navdrop-menu a:hover { background: var(--bg-4); }
.nav a.nav-cta {
  padding: 11px 22px; border-radius: 999px; background: var(--accent); color: #FFF;
  font-weight: 600; font-size: 15px;
}

/* ---------- mobile hamburger + drawer ---------- */
.hamburger {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; background: none; border: none; cursor: pointer; padding: 0;
}
@media (min-width: 900px) { .hamburger { display: none; } }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 0 auto; }
.mobile-nav {
  display: none; flex-direction: column; background: #FFFFFF; border-top: 1px solid var(--line);
  padding: 8px 24px 20px;
}
.mobile-nav.is-open { display: flex; }
@media (min-width: 900px) { .mobile-nav { display: none !important; } }
.mobile-nav a { padding: 13px 0; font-size: 16px; border-bottom: 1px solid var(--line); }
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav-cta { color: var(--accent) !important; font-weight: 700; }

/* ---------- hero: start-style card ---------- */
.hero { background: #FFFFFF; padding: 28px 20px 40px; }
.hero__inner {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr; gap: 32px;
}
@media (min-width: 900px) {
  .hero__inner { grid-template-columns: 1fr 1fr; gap: 48px; align-items: stretch; }
}
.hero-text-box {
  background: var(--hero-tint); border-radius: 26px; padding: 48px 40px;
}
.hero-eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 0.4px;
  color: var(--accent); background: rgba(30,111,168,0.08); padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 { font-size: 34px; margin-bottom: 14px; }
@media (min-width: 900px) { .hero h1 { font-size: 44px; } }
.hero .hero-sub { font-size: 16px; line-height: 1.75; margin-bottom: 24px; max-width: 46ch; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.btn-fill, .btn-line {
  display: inline-block; padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: 15px;
}
.btn-fill { background: var(--accent); color: #FFF; }
.btn-line { border: 1.5px solid var(--ink); color: var(--ink); }
.hero-checks { list-style: none; padding: 0; margin: 0; display: flex; gap: 20px; flex-wrap: wrap;
  border-top: 1px solid rgba(0,0,0,0.08); padding-top: 18px; font-size: 14px; color: var(--sub); }
.hero-checks li::before { content: "✓ "; color: var(--accent); font-weight: 700; }
.hero-media {
  border-radius: 18px; overflow: hidden; box-shadow: 0 20px 44px rgba(0,0,0,0.14);
  background: transparent; display: flex; align-items: center; justify-content: center;
  min-height: 320px;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- generic section ---------- */
.section { padding: 96px 0; }
@media (max-width: 600px) { .section { padding: 64px 0; } }
.section-label { font-size: 14px; font-weight: 700; letter-spacing: 1px; color: var(--accent); margin-bottom: 12px; }
.section-title { font-size: 30px; margin-bottom: 20px; }
.section-lead { font-size: 16px; max-width: 640px; }

/* ---------- about ---------- */
.about-body { display: grid; gap: 18px; max-width: 760px; }

/* ---------- service ---------- */
.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; margin-top: 36px; }
@media (min-width: 900px) { .service-grid { grid-template-columns: repeat(4, 1fr); } }
.service-item .svc-icon,
.service-item svg { display: block; width: 40px; height: 40px; color: var(--accent); margin-bottom: 16px; flex-shrink: 0; overflow: hidden; }
.service-item svg { max-width: 40px; max-height: 40px; }
@media (max-width: 767px) { .service-item svg { width: 34px; height: 34px; max-width: 34px; max-height: 34px; } }
.service-item h3 { font-size: 18px; margin-bottom: 8px; }
.service-item p { font-size: 14.5px; margin-bottom: 0; }

/* ---------- cases (design_id=1: 3-col, white card, hover scale) ---------- */
.case-grid { display: grid; grid-template-columns: 1fr; gap: 24px; margin-top: 36px; }
@media (min-width: 700px) { .case-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .case-grid { grid-template-columns: repeat(3, 1fr); } }
.case-grid.case-grid--pair { max-width: 640px; margin-left: auto; margin-right: auto; }
@media (min-width: 1000px) { .case-grid.case-grid--pair { grid-template-columns: repeat(2, 1fr); } }
.case-card {
  background: #FFFFFF; border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  transition: box-shadow .25s ease;
}
.case-card:hover { box-shadow: 0 18px 34px rgba(0,0,0,0.12); }
.case-thumb { aspect-ratio: 4/3; overflow: hidden; background: var(--bg-5); }
.case-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.case-card:hover .case-thumb img { transform: scale(1.05); }
.case-body { padding: 20px 22px 24px; }
.case-tag { font-size: 12.5px; color: var(--accent); font-weight: 700; margin-bottom: 8px; }
.case-body h3 { font-size: 17px; margin-bottom: 8px; }
.case-body p { font-size: 14px; margin-bottom: 0; }
.case-more { text-align: center; margin-top: 40px; }

.pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 48px; flex-wrap: wrap; }
.pagination-num, .pagination-arrow {
  min-width: 40px; height: 40px; padding: 0 12px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14.5px; font-weight: 600; color: var(--ink); border: 1px solid transparent;
}
.pagination-num { border-color: var(--line); background: #FFF; }
.pagination-num:hover { border-color: var(--accent); color: var(--accent); }
.pagination-num.is-current { background: var(--accent); border-color: var(--accent); color: #FFF; }
.pagination-arrow { color: var(--sub); }
.pagination-arrow:hover { color: var(--accent); }

/* ---------- process ---------- */
.process-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--line); margin-top: 36px; }
@media (min-width: 800px) { .process-list { grid-template-columns: repeat(4, 1fr); } }
.process-item { padding: 28px 20px 28px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (min-width: 800px) { .process-item { border-bottom: none; } }
.process-item:first-child { padding-left: 0; }
.process-item:nth-child(2n) { border-right: none; }
@media (min-width: 800px) {
  .process-item:nth-child(2n) { border-right: 1px solid var(--line); }
  .process-item:last-child { border-right: none; }
}
.pnum { color: var(--accent); font-weight: 700; font-size: 13px; display: block; margin-bottom: 10px; }
.process-item h3 { font-size: 16.5px; margin-bottom: 8px; }
.process-item p { font-size: 13.5px; margin-bottom: 0; }

/* ---------- region ---------- */
.region-groups { margin-top: 36px; display: grid; gap: 28px; }
.region-group h3 { font-size: 15px; color: var(--sub); font-weight: 600; margin-bottom: 12px; }
.region-links { display: flex; flex-wrap: wrap; gap: 10px; }
.region-links a { padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; background: #FFF; }
.region-links a:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- faq ---------- */
.faq-list { margin-top: 32px; display: grid; gap: 14px; }
.faq-item { border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; background: #FFF; }
.faq-item h3 { font-size: 15.5px; margin-bottom: 8px; }
.faq-item p { font-size: 14px; margin-bottom: 0; }

/* ---------- closing ---------- */
.closing { position: relative; height: 600px; display: flex; align-items: center; justify-content: center; color: #FFF; text-align: center; overflow: hidden; }
@media (max-width: 600px) { .closing { height: 480px; } }
.closing img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.closing::after { content: ""; position: absolute; inset: 0; background: rgba(6,16,24,0.58); z-index: 1; }
.closing--solid { background: linear-gradient(160deg, #1E6FA8, #0D3550); }
.closing--solid::after { display: none; }
.closing-inner { position: relative; z-index: 2; max-width: 640px; padding: 0 24px; }
.closing-head { font-size: 28px; font-weight: 700; margin-bottom: 14px; color: #DCEFFA; text-shadow: 0 2px 16px rgba(0,0,0,0.55); }
@media (min-width: 700px) { .closing-head { font-size: 34px; } }
.closing-quote { font-size: 15px; color: #AFD3E8; opacity: 0.9; margin-bottom: 28px; text-shadow: 0 2px 12px rgba(0,0,0,0.5); }
.closing-cta { display: inline-block; padding: 15px 34px; background: var(--accent); color: #FFF; border: none; border-radius: 0; font-weight: 600; }

/* ---------- footer ---------- */
footer { background: #FFFFFF; color: #000; border-top: 1px solid var(--line); padding: 56px 0 100px; }
@media (min-width: 768px) { footer { padding-bottom: 56px; } }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.3fr 1fr; } }
.footer-brand { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.footer-info { font-size: 13.5px; color: var(--sub); line-height: 1.9; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; font-size: 14px; }
.footer-bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12.5px; color: #8A948E; }
.footer-notice { margin-top: 28px; padding: 16px 18px; background: var(--bg-5); border-radius: 10px; display: flex; align-items: center; gap: 14px; }
.footer-notice__badge { flex: none; border-radius: 50%; }
.footer-notice p { font-size: 12.5px; color: #8A948E; margin: 0; }

/* ---------- page hero (subpages) ---------- */
.page-hero { padding: 56px 20px; }
.page-hero__inner {
  max-width: 1180px; margin: 0 auto; background: var(--hero-tint); border-radius: 22px;
  padding: 44px 36px;
}
.page-hero .eyebrow { font-size: 13px; font-weight: 700; color: var(--accent); margin-bottom: 10px; display: block; }
.page-hero h1 { font-size: 28px; margin-bottom: 10px; }
@media (min-width: 800px) { .page-hero h1 { font-size: 34px; } }
.page-hero p { max-width: 60ch; margin-bottom: 0; }

/* ---------- case / region detail body ---------- */
.detail-body { padding: 80px 0; }
.detail-photo { max-width: 620px; margin: 0 auto 28px; border-radius: 18px; overflow: hidden;
  box-shadow: 0 16px 34px rgba(0,0,0,0.12); background: var(--bg-5); }
.detail-photo img { width: 100%; height: auto; object-fit: contain; max-height: 620px; margin: 0 auto; }
.detail-label { text-align: center; font-size: 13px; color: var(--accent); font-weight: 700; margin-bottom: 10px; }
.detail-h2 { text-align: center; font-size: 20px; margin-bottom: 24px; }
.detail-text { max-width: 680px; margin: 0 auto; font-size: 15.5px; }
.case-detail-text { max-width: 640px; margin: 0 auto; text-align: left; }
.case-detail-text p { font-size: 16px; line-height: 1.85; color: #55635C; margin: 0 0 18px; }
.case-detail-text p:last-child { margin-bottom: 0; }
.detail-back { text-align: center; margin: 40px 0 0; }

/* ---------- mobile bottom bar ---------- */
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr;
  height: 60px; background: var(--accent); }
@media (min-width: 768px) { .mobile-bar { display: none; } }
.mobile-bar a { display: flex; align-items: center; justify-content: center; color: #FFF; font-weight: 600; font-size: 15px; }
.mobile-bar a:first-child { background: rgba(255,255,255,0.12); }

/* ---------- floating shop button ---------- */
.float-shop {
  position: fixed; right: 24px; bottom: 24px; z-index: 70;
  display: flex; align-items: center; gap: 8px;
  padding: 14px 20px; border-radius: 999px; background: var(--accent); color: #FFF;
  font-weight: 600; font-size: 14.5px; box-shadow: 0 12px 28px rgba(0,0,0,0.22);
}
.float-shop svg { width: 18px; height: 18px; flex-shrink: 0; }
@media (max-width: 767px) {
  .float-shop { right: 16px; bottom: 76px; padding: 12px 16px; font-size: 13.5px; }
  .float-shop svg { width: 16px; height: 16px; }
}

/* prose */
.prose p { font-size: 15.5px; }

/* ---------- guide hub / detail ---------- */
.guide-grid { display: grid; grid-template-columns: 1fr; gap: 28px; margin: 36px auto 0; max-width: 1100px; }
@media (min-width: 768px) { .guide-grid { grid-template-columns: repeat(3, 1fr); } }
.guide-more { font-size: 14px; font-weight: 700; color: var(--accent); }
.guide-related { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 28px; }
@media (min-width: 768px) { .guide-related { grid-template-columns: repeat(3, 1fr); } }
.guide-related .case-thumb { aspect-ratio: auto; height: 170px; }
.guide-table-wrap { overflow-x: auto; margin-bottom: 28px; }
.guide-table { width: 100%; border-collapse: collapse; background: #FFF; font-size: 15px; }
.guide-table th, .guide-table td { border: 1px solid var(--line); padding: 12px 14px; text-align: left; line-height: 1.6; }
.guide-table th { background: var(--bg-1); }

/* ---------- mobile: keep-all, 4-col menu ---------- */
@media (max-width: 899px) {
  .mobile-nav.is-open { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 6px; padding: 8px 12px 16px; }
  .mobile-nav a { padding: 12px 2px; font-size: 13px; text-align: center; border-bottom: 1px solid var(--line); word-break: keep-all; overflow-wrap: anywhere; letter-spacing: -0.5px; }
  .mobile-nav a:last-child { border-bottom: 1px solid var(--line); }
}
@media (max-width: 767px) {
  h1, h2, h3, p, .closing-head, .closing-cta, .btn-fill, .btn-line, .case-body, .footer-links a { word-break: keep-all; }
  .hero h1 { font-size: 28px; }
  .page-hero h1 { font-size: 24px; }
  .section-title { font-size: 24px; }
  .case-body h3 { font-size: 16px; }
  .footer-links { gap: 12px 16px; }
}

/* ---------- 서비스 큰카드 3 + 더보기 · 축 허브/세부 ---------- */
.svc-grid { display: grid; grid-template-columns: 1fr; gap: 24px; margin-top: 36px; }
@media (min-width: 700px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .svc-grid { grid-template-columns: repeat(3, 1fr); } }
.svc-card { background: #FFF; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; transition: box-shadow .25s ease; }
.svc-card:hover { box-shadow: 0 18px 34px rgba(0,0,0,0.12); }
.svc-card[hidden] { display: none; }
.svc-card:hover .case-thumb img { transform: scale(1.05); }
.svc-card .case-body h3 { font-size: 20px; }
.table-cap { caption-side: top; text-align: left; font-weight: 700; padding: 0 0 10px; color: var(--ink); }
.sub-h { font-size: 15px; color: var(--sub); margin: 32px 0 12px; }
.region-links a.is-hub { background: var(--accent); border-color: var(--accent); color: #FFF; }
.page-hero .eyebrow a:hover { text-decoration: underline; }
.page-hero__inner, .prose, .faq-list, .guide-table-wrap { text-align: left; }
/* 상단·카드·표·본문·FAQ 동일 칼럼 */
.section > .wrap, .page-hero__inner { max-width: 1180px; }
.prose { max-width: 860px; }
.prose p { font-size: 16px; }

/* ---------- 모바일 메뉴: 가로 4칸 상시 노출 ---------- */
.mobile-nav, .mobile-nav.is-open { display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 0; padding: 0 8px; border-top: 1px solid var(--line); }
.mobile-nav a { padding: 12px 2px; font-size: 14px; text-align: center; border-bottom: none !important; word-break: keep-all; white-space: nowrap; }
@media (min-width: 900px) { .mobile-nav, .mobile-nav.is-open { display: none !important; } }
@media (max-width: 899px) { .topbar .wrap { height: 64px; } }
@media (max-width: 767px) {
  .page-hero h1 { font-size: 22px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .hero h1 { white-space: nowrap; }
  .page-hero p, .prose p, .faq-item p, .guide-table td, .guide-table th, .region-links a { word-break: keep-all; }
}
.hub-photo { margin: 0 auto; max-width: 520px; border-radius: 18px; overflow: hidden; box-shadow: 0 16px 34px rgba(0,0,0,0.12); background: var(--bg-5); }
.hub-photo img { width: 100%; height: auto; max-height: 560px; object-fit: contain; margin: 0 auto; }

/* ---------- 설치사례 가이드형 (요약·목차·오해·080 후킹) ---------- */
.guide-case section[id], .section[id] { scroll-margin-top: 90px; }
.guide-case .wrap { max-width: 860px; }
.g-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 1px; color: var(--accent); margin-bottom: 12px; }
.g-summary { background: #F0F7FC; border: 1px solid #CFE3F1; border-left: 5px solid var(--accent); border-radius: 12px; padding: 24px 28px; margin: 32px 0 20px; text-align: left; }
.g-summary ul { list-style: none; margin: 0; padding: 0; }
.g-summary li { position: relative; padding-left: 18px; margin-bottom: 10px; line-height: 1.7; }
.g-summary li:last-child { margin-bottom: 0; }
.g-summary li::before { content: ""; position: absolute; left: 0; top: .75em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.g-toc { border: 1px solid var(--line); border-radius: 12px; padding: 20px 28px; margin-bottom: 40px; text-align: left; }
.g-toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.g-toc a { display: inline-block; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; }
.g-toc a:hover { border-color: var(--accent); color: var(--accent); }
.g-block { margin-top: 48px; text-align: left; }
.g-h2 { font-size: 24px; margin-bottom: 16px; }
.myth-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 28px; }
@media (min-width: 700px) { .myth-grid { grid-template-columns: repeat(2, 1fr); } }
.myth-card { background: #FFF; border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: 12px; padding: 24px; text-align: left; }
.myth-num { display: block; font-size: 36px; font-weight: 800; line-height: 1; color: var(--accent); margin-bottom: 14px; }
.myth-card h3 { font-size: 17px; margin-bottom: 8px; }
.myth-card p { font-size: 14.5px; margin: 0; }
.hook-080 { background: var(--accent); color: #FFF; padding: 56px 0; text-align: center; }
.hook-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 1px; opacity: .85; margin-bottom: 12px; }
.hook-text { font-size: 22px; font-weight: 700; line-height: 1.5; max-width: 680px; margin: 0 auto 24px; color: #FFF; }
.hook-btn { display: inline-block; padding: 14px 32px; background: #FFF; color: var(--accent); font-weight: 700; border-radius: 999px; }
@media (max-width: 767px) { .hook-text, .g-summary li, .myth-card p, .myth-card h3 { word-break: keep-all; } .hook-text { font-size: 18px; } .g-summary, .g-toc { padding: 20px; } }
