/* =========================================================
   마루콤(마루솔루션) — 기업 사이트 디자인 시스템
   Modern, responsive, no framework
   ========================================================= */

:root {
  --brand:        #1957c8;   /* marucom blue */
  --brand-dark:   #123e91;
  --brand-light:  #e8f0ff;
  --accent:       #00b4a6;   /* teal accent */
  --accent-dark:  #00897b;
  --ink:          #1a2230;
  --ink-soft:     #4a5568;
  --muted:        #8a94a6;
  --line:         #e6e9f0;
  --bg:           #ffffff;
  --bg-soft:      #f5f7fb;
  --bg-deep:      #0e1730;
  --ok:           #16a34a;
  --warn:         #d97706;
  --radius:       14px;
  --radius-sm:    9px;
  --shadow-sm:    0 1px 3px rgba(20,30,60,.08);
  --shadow:       0 8px 30px rgba(20,30,60,.10);
  --shadow-lg:    0 20px 60px rgba(20,30,60,.16);
  --max:          1160px;
  --header-h:     72px;
}

/* ---------- reset ---------- */
*,*::before,*::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Pretendard", "Pretendard Variable", -apple-system, BlinkMacSystemFont,
               "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; }
h1,h2,h3,h4 { line-height: 1.25; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }

/* ---------- layout helpers ---------- */
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: 22px; }
.section { padding: 84px 0; }
.section--soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.section-head .eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .12em;
  color: var(--brand); text-transform: uppercase; margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(26px, 4vw, 38px); }
.section-head p { margin-top: 16px; color: var(--ink-soft); font-size: 17px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; transition: .18s ease; white-space: nowrap;
}
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(25,87,200,.28); }
.btn--primary:hover { background: var(--brand-dark); transform: translateY(-1px); }
.btn--ghost { background: #fff; color: var(--brand); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--brand); }
.btn--light { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.3); }
.btn--light:hover { background: rgba(255,255,255,.24); }
.btn--lg { padding: 16px 30px; font-size: 16px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.9); backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  height: var(--header-h); display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 30px; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: 4px; align-items: center; }
.nav a {
  display: block; padding: 10px 16px; border-radius: 8px; font-weight: 600;
  font-size: 15.5px; color: var(--ink-soft); transition: .15s;
}
.nav a:hover, .nav a.active { color: var(--brand); background: var(--brand-light); }
.header-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none; margin-left: auto; background: none; border: none;
  width: 42px; height: 42px; align-items: center; justify-content: center;
}
.nav-toggle span { position: relative; width: 22px; height: 2px; background: var(--ink); display: block; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: var(--ink);
}
.nav-toggle span::before { top: -7px; } .nav-toggle span::after { top: 7px; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 120% at 80% 0%, #1b3a7a 0%, var(--bg-deep) 55%);
  color: #fff;
}
.hero::after {
  content:""; position:absolute; inset:0;
  background:
    radial-gradient(440px 440px at 88% 18%, rgba(0,180,166,.30), transparent 70%),
    radial-gradient(520px 520px at 12% 90%, rgba(25,87,200,.40), transparent 70%);
  pointer-events:none;
}
.hero .container { position: relative; z-index: 1; padding-top: 96px; padding-bottom: 96px; }
.hero .eyebrow {
  display: inline-flex; align-items:center; gap:8px;
  padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2); font-size: 13.5px; font-weight: 600; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(32px, 5.4vw, 56px); color: #fff; letter-spacing: -0.03em; }
.hero h1 .grad {
  background: linear-gradient(90deg,#5eead4,#7cb8ff); -webkit-background-clip: text;
  background-clip: text; color: transparent;
}
.hero p { margin-top: 22px; font-size: clamp(16px,2.2vw,20px); color: rgba(255,255,255,.82); max-width: 640px; }
.hero .hero-actions { margin-top: 36px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { margin-top: 56px; display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; max-width: 760px; }
.hero-stats .stat .num { font-size: clamp(26px,3.4vw,38px); font-weight: 800; color: #fff; }
.hero-stats .stat .num span { color: #5eead4; }
.hero-stats .stat .lbl { font-size: 14px; color: rgba(255,255,255,.7); margin-top: 4px; }

/* ---------- cards / solutions ---------- */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2,1fr); }
.grid--3 { grid-template-columns: repeat(3,1fr); }
.grid--4 { grid-template-columns: repeat(4,1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; transition: .2s ease; box-shadow: var(--shadow-sm);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d3dcf0; }
.card .ico {
  width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center;
  background: var(--brand-light); color: var(--brand); margin-bottom: 18px;
}
.card .ico svg { width: 26px; height: 26px; }
.card h3 { font-size: 20px; margin-bottom: 8px; }
.card .tag { font-size: 12.5px; font-weight: 700; color: var(--accent-dark); letter-spacing: .04em; }
.card p { color: var(--ink-soft); font-size: 15px; }
.card .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; color: var(--brand); font-weight: 600; font-size: 14.5px; }
.card--feature { border-top: 3px solid var(--brand); }
.card .badge {
  display:inline-block; font-size:12px; font-weight:700; color:#fff; background:var(--accent);
  padding:3px 10px; border-radius:999px; margin-bottom:14px;
}

/* feature list */
.feature-list { display: grid; gap: 14px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; }
.feature-list .ck {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%;
  background: var(--brand-light); color: var(--brand); display: grid; place-items: center; margin-top: 2px;
}
.feature-list .ck svg { width: 14px; height: 14px; }
.feature-list strong { display:block; font-size: 15.5px; }
.feature-list span { color: var(--ink-soft); font-size: 14.5px; }

/* split section */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split .visual {
  border-radius: var(--radius); background: linear-gradient(135deg,#eef3ff,#e6fffb);
  border: 1px solid var(--line); padding: 40px; min-height: 320px;
  display: grid; place-items: center;
}

/* ---------- timeline (연혁) ---------- */
.timeline { position: relative; max-width: 760px; margin: 0 auto; padding-left: 28px; }
.timeline::before { content:""; position:absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 26px 26px; }
.timeline li::before {
  content:""; position:absolute; left: -25px; top: 7px; width: 12px; height: 12px;
  border-radius: 50%; background: #fff; border: 3px solid var(--brand);
}
.timeline .yr { font-weight: 800; color: var(--brand); font-size: 18px; }
.timeline .ev { color: var(--ink-soft); font-size: 15px; margin-top: 2px; }
.timeline .ev b { color: var(--ink); font-weight: 600; }

/* ---------- table ---------- */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
table.tbl th, table.tbl td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
table.tbl thead th { background: var(--bg-soft); font-weight: 700; color: var(--ink); }
table.tbl tbody tr:last-child td { border-bottom: none; }
table.tbl .price { font-weight: 700; color: var(--brand); }

/* ---------- contact / form ---------- */
.form-grid { display: grid; gap: 18px; }
.field label { display: block; font-weight: 600; font-size: 14.5px; margin-bottom: 7px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; color: var(--ink); background: #fff; transition: .15s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-light);
}
.field textarea { resize: vertical; min-height: 150px; }
.field .req { color: #e23b3b; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-note { font-size: 13.5px; color: var(--muted); }
.alert { padding: 14px 18px; border-radius: var(--radius-sm); font-size: 15px; margin-bottom: 8px; }
.alert--ok { background: #e7f7ee; color: #157347; border: 1px solid #b6e4c6; }
.alert--err { background: #fdeaea; color: #c0392b; border: 1px solid #f3c4c4; }

/* contact info cards */
.info-card { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.info-card .ico { width: 46px; height: 46px; border-radius: 12px; background: var(--brand-light); color: var(--brand); display: grid; place-items: center; flex-shrink: 0; }
.info-card .ico svg { width: 22px; height: 22px; }
.info-card .lbl { font-size: 13px; color: var(--muted); font-weight: 600; }
.info-card .val { font-size: 16px; font-weight: 600; }

/* map embed */
.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.map-embed iframe { width: 100%; height: 360px; border: 0; display: block; }

/* ---------- board ---------- */
.board-tabs { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.board-tabs a { padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); font-weight: 600; font-size: 14.5px; color: var(--ink-soft); }
.board-tabs a.active { background: var(--brand); color: #fff; border-color: var(--brand); }
table.board { width: 100%; border-collapse: collapse; }
table.board th, table.board td { padding: 15px 14px; border-bottom: 1px solid var(--line); font-size: 15px; }
table.board thead th { border-top: 2px solid var(--ink); color: var(--ink); font-weight: 700; text-align: left; background: var(--bg-soft); }
table.board td.num, table.board th.num { width: 70px; color: var(--muted); text-align: center; }
table.board td.date, table.board th.date { width: 130px; color: var(--muted); white-space: nowrap; }
table.board td.title a { font-weight: 600; }
table.board td.title a:hover { color: var(--brand); }
table.board .empty { text-align: center; color: var(--muted); padding: 60px 0; }
.pin { display:inline-block; font-size:11.5px; font-weight:700; color:#fff; background:var(--accent); padding:2px 8px; border-radius:5px; margin-right:8px; vertical-align:1px; }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 28px; }
.pager a, .pager span { min-width: 38px; height: 38px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--line); font-size: 14.5px; font-weight: 600; color: var(--ink-soft); }
.pager .cur { background: var(--brand); color: #fff; border-color: var(--brand); }

.post { max-width: 800px; margin: 0 auto; }
.post-head { border-bottom: 2px solid var(--ink); padding-bottom: 18px; margin-bottom: 26px; }
.post-head h1 { font-size: 26px; }
.post-meta { display: flex; gap: 16px; color: var(--muted); font-size: 14px; margin-top: 10px; }
.post-body { font-size: 16px; line-height: 1.85; color: var(--ink-soft); min-height: 160px; }
.post-body p { margin-bottom: 1em; }
.post-nav { margin-top: 36px; border-top: 1px solid var(--line); }
.post-nav a { display: flex; gap: 14px; padding: 16px 4px; border-bottom: 1px solid var(--line); font-size: 15px; }
.post-nav .dir { color: var(--muted); font-weight: 600; min-width: 60px; }

/* ---------- page hero (sub pages) ---------- */
.page-hero { background: var(--bg-deep); color: #fff; position: relative; overflow: hidden; }
.page-hero::after { content:""; position:absolute; inset:0; background: radial-gradient(600px 300px at 85% 20%, rgba(0,180,166,.25), transparent 70%); }
.page-hero .container { position: relative; z-index:1; padding: 70px 22px 60px; }
.page-hero .crumb { font-size: 14px; color: rgba(255,255,255,.6); margin-bottom: 12px; }
.page-hero .crumb a:hover { color:#fff; }
.page-hero h1 { font-size: clamp(28px,4vw,42px); color: #fff; }
.page-hero p { margin-top: 14px; color: rgba(255,255,255,.78); font-size: 17px; max-width: 620px; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--brand), var(--accent-dark)); color: #fff; }
.cta-band .container { padding: 64px 22px; text-align: center; }
.cta-band h2 { color: #fff; font-size: clamp(24px,3.4vw,34px); }
.cta-band p { color: rgba(255,255,255,.86); margin-top: 12px; font-size: 17px; }
.cta-band .hero-actions { justify-content: center; margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- footer ---------- */
.site-footer { background: var(--bg-deep); color: rgba(255,255,255,.66); padding: 56px 0 30px; font-size: 14.5px; }
.site-footer .top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 34px; border-bottom: 1px solid rgba(255,255,255,.1); }
.site-footer img { height: 26px; filter: brightness(0) invert(1); opacity: .9; margin-bottom: 16px; }
.site-footer h4 { color: #fff; font-size: 14px; letter-spacing: .04em; margin-bottom: 14px; }
.site-footer .fnav a { display: block; padding: 5px 0; color: rgba(255,255,255,.66); }
.site-footer .fnav a:hover { color: #fff; }
.site-footer address { font-style: normal; line-height: 1.9; }
.site-footer .bottom { padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13px; color: rgba(255,255,255,.5); }

/* ---------- 약관/정책 문서 ---------- */
.legal { max-width: 860px; margin: 0 auto; }
.legal h2 { font-size: 22px; margin: 40px 0 14px; padding-top: 10px; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: 17px; margin: 26px 0 10px; color: var(--brand-dark); }
.legal p { color: var(--ink-soft); margin-bottom: 12px; line-height: 1.8; }
.legal ol, .legal ul { color: var(--ink-soft); padding-left: 20px; margin: 0 0 14px; line-height: 1.8; }
.legal ol { list-style: decimal; }
.legal ul { list-style: disc; }
.legal li { margin-bottom: 6px; }
.legal .effective { color: var(--muted); font-size: 14.5px; margin-bottom: 8px; }
.legal .legal-box {
  border: 1px solid var(--line); border-left: 3px solid var(--brand);
  background: var(--bg-soft); border-radius: var(--radius-sm); padding: 16px 20px; margin: 16px 0;
}
.legal table.tbl td, .legal table.tbl th { font-size: 14.5px; }
.legal .toc { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; margin-bottom: 36px; }
.legal .toc h4 { font-size: 14px; letter-spacing: .04em; color: var(--muted); margin-bottom: 12px; }
.legal .toc ol { columns: 2; column-gap: 30px; margin: 0; }
.legal .toc a { color: var(--ink-soft); }
.legal .toc a:hover { color: var(--brand); }
@media (max-width: 640px){ .legal .toc ol { columns: 1; } }

/* ---------- 웹/모바일 회원관리 콜아웃 ---------- */
.webmobile {
  margin-top: 28px; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(120deg, var(--brand), var(--accent-dark)); color: #fff;
  padding: 34px 36px; display: flex; align-items: center; justify-content: space-between;
  gap: 30px; flex-wrap: wrap; box-shadow: var(--shadow);
}
.webmobile .badge { background: rgba(255,255,255,.22); color: #fff; }
.webmobile h3 { color: #fff; font-size: 24px; margin: 12px 0 8px; }
.webmobile p { color: rgba(255,255,255,.9); font-size: 15.5px; max-width: 560px; }
.webmobile-url { font-weight: 800; font-size: 18px; letter-spacing: .02em; margin-top: 10px !important; color: #fff !important; }
.webmobile-cta { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.webmobile-cta .btn--primary { background: #fff; color: var(--brand); box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.webmobile-cta .btn--primary:hover { background: #f0f4ff; }
.webmobile-cta .muted { color: rgba(255,255,255,.8) !important; }
@media (max-width: 760px) {
  .webmobile { padding: 26px 22px; }
  .webmobile-cta { align-items: stretch; width: 100%; }
  .webmobile-cta .btn { justify-content: center; }
  .webmobile-cta .muted { text-align: center; }
}

/* ---------- 안내 팝업 ---------- */
.popup-overlay {
  position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center;
  background: rgba(14,23,48,.55); backdrop-filter: blur(3px); padding: 20px;
  animation: popupFade .2s ease;
}
.popup-overlay[hidden] { display: none; }
@keyframes popupFade { from { opacity: 0; } to { opacity: 1; } }
.popup {
  width: 100%; max-width: 520px; background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow-lg); overflow: hidden; animation: popupPop .25s ease;
}
@keyframes popupPop { from { transform: translateY(14px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.popup-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; background: var(--bg-deep); color: #fff;
}
.popup-head h2 { color: #fff; font-size: 20px; }
.popup-x { background: none; border: none; color: rgba(255,255,255,.8); font-size: 30px; line-height: 1; width: 36px; height: 36px; border-radius: 8px; }
.popup-x:hover { background: rgba(255,255,255,.15); color: #fff; }
.popup-body { padding: 26px 24px; font-size: 15.5px; color: var(--ink-soft); line-height: 1.7; }
.popup-body strong { color: var(--ink); }
.popup-body strong.hl { color: var(--brand); }
.popup-body a strong.hl { color: var(--brand); }
.popup-date { font-weight: 700; color: var(--accent-dark); margin-bottom: 8px; }
.popup-account {
  margin-top: 18px; padding: 16px 18px; border-radius: var(--radius-sm);
  background: var(--brand-light); border: 1px solid #cfe0ff;
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}
.popup-account .lbl { display: block; font-size: 12.5px; color: var(--muted); font-weight: 600; margin-bottom: 3px; }
.popup-account strong { font-size: 16px; color: var(--brand-dark); }
.popup-account .btn { padding: 9px 16px; font-size: 14px; }
.popup-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px; border-top: 1px solid var(--line); background: var(--bg-soft);
}
.popup-today { font-size: 14px; color: var(--ink-soft); display: flex; align-items: center; gap: 7px; cursor: pointer; }
@media (max-width: 520px) {
  .popup-head h2 { font-size: 18px; }
  .popup-account { flex-direction: column; align-items: stretch; }
  .popup-account .btn { width: 100%; justify-content: center; }
}

/* ---------- utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 10px; } .mt-2 { margin-top: 22px; } .mt-3 { margin-top: 34px; }
.lead { font-size: 18px; color: var(--ink-soft); }
.muted { color: var(--muted); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .grid--4 { grid-template-columns: repeat(2,1fr); }
  .grid--3 { grid-template-columns: repeat(2,1fr); }
  .hero-stats { grid-template-columns: repeat(2,1fr); gap: 26px; }
  .site-footer .top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .section { padding: 60px 0; }
  .nav-toggle { display: flex; }
  .nav { position: fixed; inset: var(--header-h) 0 auto 0; background: #fff; border-bottom: 1px solid var(--line);
         margin: 0; transform: translateY(-130%); transition: transform .25s ease; box-shadow: var(--shadow); }
  .nav.open { transform: none; }
  .nav ul { flex-direction: column; gap: 0; padding: 10px 16px 18px; }
  .nav a { padding: 13px 12px; border-radius: 8px; font-size: 16px; }
  .header-cta { display: none; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .site-footer .top { grid-template-columns: 1fr; gap: 28px; }
  table.board td.date, table.board th.date { display: none; }
}
