:root {
  --navy: #0d1b2e;
  --navy-2: #15294a;
  --brand: #1f6feb;
  --brand-d: #1757c2;
  --teal: #19b3a6;
  --ink: #1b2430;
  --ink-2: #4a5566;
  --muted: #7b8698;
  --line: #e3e8ef;
  --bg: #ffffff;
  --bg-alt: #f5f7fb;
  --danger: #d64545;
  --ok: #138a5e;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(13, 27, 46, .07);
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Malgun Gothic", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
img, svg { max-width: 100%; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.3; letter-spacing: -.02em; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 28px; } }
.narrow { max-width: 860px; }
.center { text-align: center; margin-top: 2rem; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { width: 1.25em; height: 1.25em; flex: none; vertical-align: -.25em; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.35rem; color: var(--navy); letter-spacing: .04em; }
.logo:hover { text-decoration: none; }
.logo small { font-size: .8rem; font-weight: 500; letter-spacing: 0; opacity: .7; }
.logo-mark {
  width: 26px; height: 26px; border-radius: 50%;
  background: conic-gradient(from 210deg, var(--brand), var(--teal), var(--brand));
  -webkit-mask: radial-gradient(circle, transparent 6px, #000 7px);
          mask: radial-gradient(circle, transparent 6px, #000 7px);
}
.logo-light { color: #fff; }
.site-nav { display: flex; gap: 4px; }
.site-nav a { padding: 8px 14px; border-radius: 8px; color: var(--ink-2); font-weight: 600; }
.site-nav a:hover { background: var(--bg-alt); color: var(--ink); text-decoration: none; }
.site-nav a.active { color: var(--brand); }
.nav-toggle { display: none; }

@media (max-width: 820px) {
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 10px; border: 0; background: none; cursor: pointer;
  }
  .nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .site-nav {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 8px 16px 16px;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 14px 8px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .site-nav a:last-child { border-bottom: 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px; border: 1px solid transparent;
  font: inherit; font-weight: 700; cursor: pointer; transition: .15s; text-decoration: none !important;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-d); }
.btn-outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.btn-ghost-dark { color: var(--ink-2); background: var(--bg-alt); }
.btn-light { background: #fff; color: var(--navy); }
.btn-danger { background: #fff; color: var(--danger); border-color: #f2c4c4; }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(800px 400px at 85% 10%, rgba(25, 179, 166, .28), transparent 60%),
    radial-gradient(700px 500px at 10% 100%, rgba(31, 111, 235, .35), transparent 60%),
    var(--navy);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
}
.hero-inner { position: relative; z-index: 1; display: grid; gap: 48px; padding: 88px 16px 96px; align-items: center; }
@media (min-width: 960px) { .hero-inner { grid-template-columns: 1.1fr .9fr; padding-top: 120px; padding-bottom: 128px; } }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; }
.hero .lead { font-size: 1.15rem; color: rgba(255, 255, 255, .78); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); margin-bottom: .6em; }
.hv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hv-card {
  display: flex; flex-direction: column; gap: 14px; padding: 22px;
  border-radius: var(--radius); border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .05); font-weight: 600; font-size: .95rem;
}
.hv-card .ic { width: 30px; height: 30px; color: var(--teal); }
.hv-card:nth-child(2), .hv-card:nth-child(3) { transform: translateY(18px); }

.sub-hero { background: var(--navy); color: #fff; padding: 72px 0 64px;
  background-image: radial-gradient(600px 300px at 90% 0, rgba(25, 179, 166, .25), transparent 60%); }
.sub-hero h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 800; }
.sub-hero .lead { color: rgba(255, 255, 255, .75); margin: 0; }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; margin-bottom: 44px; }
.section-head.left { text-align: left; margin-bottom: 24px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; }
.section-head .eyebrow { color: var(--brand); }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card-link { color: inherit; display: flex; flex-direction: column; transition: .2s; }
.card-link:hover { text-decoration: none; transform: translateY(-4px); border-color: var(--brand); }
.card-link p { color: var(--ink-2); flex: 1; }
.card-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; background: #eaf2ff; color: var(--brand); margin-bottom: 18px; }
.card-icon .ic { width: 26px; height: 26px; }
.more { color: var(--brand); font-weight: 700; font-size: .92rem; display: inline-flex; align-items: center; gap: 6px; }
.text-link { font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }

.sol-list { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.sol-row { background: #fff; border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); }
.sol-row p { color: var(--ink-2); margin: 0; }
.tag { display: inline-block; font-size: .78rem; font-weight: 700; color: var(--teal); background: #e5f7f5; padding: 3px 10px; border-radius: 99px; margin-bottom: 12px; }

.two-col { display: grid; gap: 40px; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; align-items: start; } }
.mini-list { list-style: none; margin: 0 0 20px; padding: 0; border-top: 2px solid var(--ink); }
.mini-list li { display: flex; justify-content: space-between; gap: 16px; padding: 16px 4px; border-bottom: 1px solid var(--line); }
.mini-list a { color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-list time { color: var(--muted); flex: none; font-size: .9rem; }
.cta-box { background: linear-gradient(135deg, var(--brand), #1a4fb0); color: #fff; border-radius: 20px; padding: 40px; }
.cta-box p { color: rgba(255, 255, 255, .85); }
.contact-lines { list-style: none; padding: 0; margin: 20px 0 28px; display: grid; gap: 10px; }
.contact-lines li { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.contact-lines.dark li { align-items: flex-start; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.contact-lines.dark .ic { color: var(--brand); margin-top: 3px; }
.contact-lines.dark strong { display: block; font-size: .85rem; color: var(--muted); font-weight: 600; }

.cta-strip { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
  padding: 28px 32px; border-radius: var(--radius); background: var(--bg-alt); }
.cta-strip p { margin: 0; font-weight: 600; }

/* ---------- Business ---------- */
.biz-block { display: grid; gap: 32px; align-items: center; padding: 48px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.biz-block:last-child { border-bottom: 0; }
@media (min-width: 860px) {
  .biz-block { grid-template-columns: 380px 1fr; gap: 64px; }
  .biz-block.reverse { grid-template-columns: 1fr 380px; }
  .biz-block.reverse .biz-visual { order: 2; }
}
.biz-visual { aspect-ratio: 4 / 3; border-radius: 20px; display: grid; place-items: center; color: #fff;
  background: radial-gradient(circle at 30% 20%, rgba(25, 179, 166, .5), transparent 55%), var(--navy-2); }
.biz-visual .ic { width: 96px; height: 96px; opacity: .9; }
.biz-copy h2 { font-size: 1.7rem; }
.biz-copy > p { color: var(--ink-2); font-size: 1.05rem; }
.check-list { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.check-list li { display: flex; gap: 10px; align-items: center; }
.check-list .ic { color: var(--teal); }

.sol-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.sol-card h2 { font-size: 1.3rem; }
.sol-card > p { color: var(--ink-2); }

/* ---------- Board ---------- */
.search-bar { display: flex; gap: 8px; margin-bottom: 24px; }
.search-bar input { flex: 1; min-width: 0; }
.board-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.board-list a { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 20px 8px; border-bottom: 1px solid var(--line); color: var(--ink); }
.board-list a:hover { background: var(--bg-alt); text-decoration: none; }
.board-list .title { flex: 1 1 300px; font-weight: 600; }
.board-list .meta { display: flex; gap: 14px; color: var(--muted); font-size: .88rem; }
.board-list .pinned a { background: #f8fbff; }
.badge { display: inline-block; font-size: .75rem; font-weight: 700; background: var(--brand); color: #fff; padding: 2px 8px; border-radius: 6px; }
.empty { text-align: center; padding: 60px 0; color: var(--muted); border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); }
.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 32px; }
.pagination a, .pagination span { min-width: 38px; height: 38px; display: grid; place-items: center; padding: 0 8px; border-radius: 8px; border: 1px solid var(--line); color: var(--ink-2); }
.pagination a:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.pagination .current { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 700; }

.post { border-top: 2px solid var(--ink); }
.post-head { padding: 24px 4px; border-bottom: 1px solid var(--line); }
.post-head h2 { font-size: 1.5rem; margin-bottom: 8px; }
.post-meta { display: flex; gap: 16px; color: var(--muted); font-size: .9rem; margin: 0; }
.post-body { padding: 32px 4px; min-height: 200px; white-space: normal; line-height: 1.8; }
.post-nav { border-top: 1px solid var(--line); }
.post-nav a { display: flex; gap: 16px; padding: 14px 4px; border-bottom: 1px solid var(--line); color: var(--ink); }
.post-nav span { color: var(--muted); flex: none; width: 4em; }

/* ---------- Forms ---------- */
input[type=text], input[type=email], input[type=tel], input[type=search], input[type=password], textarea, select {
  width: 100%; font: inherit; color: inherit; padding: 12px 14px; border: 1px solid #d0d7e2; border-radius: 10px; background: #fff;
}
input:focus, textarea:focus, select:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(31, 111, 235, .15); }
textarea { resize: vertical; }
.form { display: grid; gap: 20px; }
.field { display: grid; gap: 6px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: .95rem; padding: 0; margin-bottom: 6px; }
.field em, .check em { color: var(--danger); font-style: normal; }
.field-row { display: grid; gap: 20px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 8px 16px; border: 1px solid #d0d7e2; border-radius: 99px; cursor: pointer; font-size: .92rem; }
.chip input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip input:focus-visible + span { box-shadow: 0 0 0 3px rgba(31, 111, 235, .25); }
.check { display: flex; gap: 8px; align-items: center; cursor: pointer; }
.check input { width: 18px; height: 18px; }
.privacy { background: var(--bg-alt); border-radius: 10px; padding: 14px 16px; font-size: .9rem; color: var(--ink-2); }
.privacy summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.privacy p { margin: 10px 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }

.contact-layout { display: grid; gap: 40px; }
@media (min-width: 900px) { .contact-layout { grid-template-columns: 320px 1fr; gap: 56px; align-items: start; } }

.alert { padding: 14px 18px; border-radius: 10px; margin: 20px 0; font-weight: 500; }
.alert ul { margin: 0; padding-left: 18px; }
.alert-success { background: #e7f6ef; color: var(--ok); }
.alert-error { background: #fdecec; color: #a32b2b; }
.form .alert { margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .65); font-size: .9rem; padding-top: 56px; }
.footer-inner { display: grid; gap: 28px; padding-bottom: 32px; }
@media (min-width: 860px) { .footer-inner { grid-template-columns: 1fr 1.5fr; } }
.footer-slogan { margin-top: 12px; }
.footer-info { font-style: normal; line-height: 2; }
.footer-info span { margin-right: 14px; }
.footer-info a { color: inherit; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; padding-top: 20px; padding-bottom: 28px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .82rem; }
.footer-admin { color: rgba(255, 255, 255, .35); }

/* ---------- Admin ---------- */
body.admin { background: var(--bg-alt); }
.admin-bar { background: var(--navy); }
.admin-bar-inner { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; min-height: 60px; padding-top: 8px; padding-bottom: 8px; }
.admin-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.admin-nav a, .admin-nav button { color: rgba(255, 255, 255, .75); padding: 8px 12px; border-radius: 8px; font: inherit; font-weight: 600; background: none; border: 0; cursor: pointer; }
.admin-nav a:hover, .admin-nav button:hover, .admin-nav a.active { color: #fff; background: rgba(255, 255, 255, .1); text-decoration: none; }
.admin-nav form { margin: 0; }
.admin-main { padding-top: 32px; padding-bottom: 64px; }
.admin-main h1 { font-size: 1.6rem; }
.admin-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.admin-head h1 { margin: 0; }
.login-box { max-width: 400px; margin: 40px auto; }
.login-box h1 { font-size: 1.4rem; margin: 0; }
.stat-row { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-bottom: 40px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; color: var(--ink); }
.stat:hover { border-color: var(--brand); text-decoration: none; }
.stat-num { display: block; font-size: 2.2rem; font-weight: 800; color: var(--brand); line-height: 1.1; }
.stat-label { color: var(--muted); font-weight: 600; }
.table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.table th, .table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.table th { background: #fafbfd; font-size: .85rem; color: var(--muted); }
.table tr.unread td { font-weight: 700; }
.table tr.unread td:first-child { box-shadow: inset 3px 0 0 var(--brand); }
@media (max-width: 700px) {
  .table thead { display: none; }
  .table tr { display: block; border-bottom: 1px solid var(--line); padding: 8px 0; }
  .table td { display: block; border: 0; padding: 4px 14px; }
}
.seg { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.seg a { padding: 6px 14px; border-radius: 8px; color: var(--ink-2); font-weight: 600; }
.seg a.active { background: var(--ink); color: #fff; }
.seg a:hover { text-decoration: none; }
.dl { display: grid; grid-template-columns: 7em 1fr; gap: 10px 16px; margin: 0 0 8px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.dl dt { color: var(--muted); font-weight: 600; }
.dl dd { margin: 0; }
code { background: rgba(0, 0, 0, .06); padding: 1px 6px; border-radius: 4px; font-size: .9em; }
