/* ───────────────────────────────────────────────────────────
   스마트 정책포털 NEXT — 기업형 절제 디자인 시스템
   라이트 테마 · 단색 액센트(틸-블루) · 최소 모션 · 의존성 없음
   ─────────────────────────────────────────────────────────── */
:root {
  --bg: #ffffff;
  --bg-alt: #f4f8fa;
  --ink: #14191f;
  --body: #4b5560;
  --muted: #8a949f;
  --line: #e5ebef;
  --line-strong: #d2dadf;
  --accent: #0e6f8c;      /* 틸-블루 */
  --accent-d: #0a586f;
  --accent-soft: #e9f3f6;
  --pos: #1f8a5b;
  --radius: 12px;
  --maxw: 1140px;
  --shadow: 0 1px 2px rgba(20,25,31,.04), 0 8px 24px -16px rgba(20,25,31,.18);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg); color: var(--body); line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.section { padding: 96px 0; }
.section.alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-title { font-size: clamp(26px, 3.4vw, 36px); font-weight: 700; color: var(--ink);
  letter-spacing: -.02em; line-height: 1.22; }
.section-sub { margin-top: 14px; font-size: 17px; color: var(--body); }
.text-accent { color: var(--accent); }

.btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px;
  padding: 12px 22px; border-radius: 8px; border: 1px solid transparent; transition: .18s ease; cursor: pointer; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-d); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* NAV */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 100; background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid transparent; transition: .25s ease; }
.nav.scrolled { border-bottom-color: var(--line); box-shadow: 0 1px 12px -6px rgba(20,25,31,.2); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); font-size: 15px; }
.brand .mark { width: 22px; height: 22px; flex: none; color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 15px; color: var(--body); font-weight: 500; }
.nav-links a:hover { color: var(--accent); }
.nav-cta { margin-left: 4px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; color: var(--ink); }
@media (max-width: 900px) {
  .nav-links { position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 0; max-height: 0; overflow: hidden; transition: max-height .28s ease; }
  .nav-links.open { max-height: 400px; }
  .nav-links a { padding: 13px 24px; }
  .nav-cta { margin: 8px 24px 12px; justify-content: center; }
  .nav-toggle { display: block; }
}

/* HERO */
.hero { padding: 132px 0 84px; border-bottom: 1px solid var(--line);
  background: radial-gradient(900px 400px at 82% -10%, var(--accent-soft), transparent 60%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(34px, 5vw, 54px); font-weight: 700; color: var(--ink); letter-spacing: -.03em; line-height: 1.12; }
.hero h1 .text-accent { color: var(--accent); }
.hero-lead { margin-top: 22px; font-size: 18px; color: var(--body); max-width: 31em; }
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-trust { margin-top: 40px; display: flex; gap: 36px; flex-wrap: wrap; padding-top: 26px; border-top: 1px solid var(--line); }
.hero-trust .t-num { font-size: 26px; font-weight: 700; color: var(--ink); letter-spacing: -.02em; }
.hero-trust .t-label { font-size: 13.5px; color: var(--muted); margin-top: 2px; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 44px; } .hero { padding: 110px 0 64px; } }

/* HERO 대시보드 목업 */
.mock { border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow); overflow: hidden; }
.mock-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); display: inline-block; }
.mock-bar span { margin-left: auto; font-size: 12.5px; color: var(--muted); }
.mock-body { padding: 22px; display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; }
.donut { --p: 72; width: 132px; height: 132px; border-radius: 50%; flex: none;
  background: conic-gradient(var(--accent) calc(var(--p)*1%), var(--accent-soft) 0); display: grid; place-items: center; }
.donut::after { content: ''; position: absolute; }
.donut .donut-in { width: 96px; height: 96px; border-radius: 50%; background: #fff; display: grid; place-items: center; text-align: center; box-shadow: inset 0 0 0 1px var(--line); }
.donut .d-num { font-size: 28px; font-weight: 700; color: var(--ink); line-height: 1; }
.donut .d-label { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.kpis { display: grid; gap: 12px; }
.kpi-row { }
.kpi-row .kpi-top { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 6px; }
.kpi-row .kpi-top b { color: var(--ink); font-weight: 600; }
.kpi-row .kpi-top span { color: var(--accent); font-weight: 700; }
.track { height: 8px; border-radius: 99px; background: var(--accent-soft); overflow: hidden; }
.track i { display: block; height: 100%; border-radius: 99px; background: var(--accent); }
.mock-foot { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.mock-foot div { padding: 14px 12px; text-align: center; border-left: 1px solid var(--line); }
.mock-foot div:first-child { border-left: 0; }
.mock-foot .f-num { font-size: 19px; font-weight: 700; color: var(--ink); }
.mock-foot .f-label { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* 문제/해법 */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.compare-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; background: #fff; }
.compare-card.good { border-color: var(--accent); background: var(--accent-soft); }
.compare-card h3 { font-size: 19px; color: var(--ink); font-weight: 700; margin-bottom: 4px; }
.compare-card .lead { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.compare-list { list-style: none; display: grid; gap: 12px; }
.compare-list li { display: flex; gap: 10px; font-size: 15px; color: var(--body); align-items: flex-start; }
.compare-list .ic { flex: none; width: 20px; height: 20px; margin-top: 1px; }
.compare-bad .ic { color: #b4493b; }
.compare-good .ic { color: var(--pos); }
.compare-list b { color: var(--ink); font-weight: 600; }
@media (max-width: 760px) { .compare { grid-template-columns: 1fr; } }

/* 3-up 대시보드 카드 (역할별) */
.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.role { border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; background: #fff; transition: .18s; }
.role:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.role .role-ic { width: 42px; height: 42px; border-radius: 10px; background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; margin-bottom: 16px; }
.role .role-ic svg { width: 22px; height: 22px; }
.role .tag { font-size: 12px; font-weight: 700; color: var(--accent); letter-spacing: .04em; }
.role h3 { font-size: 18px; color: var(--ink); font-weight: 700; margin: 4px 0 8px; }
.role p { font-size: 14.5px; color: var(--body); }
@media (max-width: 820px) { .roles { grid-template-columns: 1fr; } }

/* 피처(텍스트+목업/리스트 교차) */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature + .feature { margin-top: 80px; }
.feature.rev .feature-media { order: -1; }
.feature h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 700; color: var(--ink); letter-spacing: -.02em; line-height: 1.25; }
.feature p { margin-top: 16px; font-size: 16.5px; color: var(--body); }
.steplist { margin-top: 24px; display: grid; gap: 14px; }
.steplist li { display: flex; gap: 14px; align-items: flex-start; list-style: none; }
.steplist .s-n { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff;
  display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.steplist b { color: var(--ink); font-weight: 600; display: block; font-size: 15.5px; }
.steplist span { font-size: 14px; color: var(--body); }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); padding: 24px; }
.panel h4 { font-size: 14px; color: var(--muted); font-weight: 600; margin-bottom: 16px; }
.panel .bigp { font-size: 40px; font-weight: 700; color: var(--accent); letter-spacing: -.02em; }
.panel .bars { margin-top: 18px; display: grid; gap: 12px; }
.panel .bar-row .bar-top { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--ink); margin-bottom: 6px; }
.chips { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px; }
.chip { font-size: 14px; color: var(--ink); background: #fff; border: 1px solid var(--line-strong); border-radius: 999px; padding: 7px 15px; }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; gap: 32px; } .feature.rev .feature-media { order: 0; } }

/* 지표 */
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.metric-item .m-num { font-size: clamp(30px, 4vw, 42px); font-weight: 700; color: var(--accent); letter-spacing: -.02em; }
.metric-item .m-label { font-size: 14px; color: var(--body); margin-top: 6px; }
@media (max-width: 700px) { .metrics { grid-template-columns: repeat(2, 1fr); gap: 30px 16px; } }

/* 도입 단계 (타임라인) */
.steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.step { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 18px; background: #fff; }
.step .s-num { font-size: 13px; font-weight: 700; color: var(--accent); margin-bottom: 8px; }
.step h3 { font-size: 15px; color: var(--ink); font-weight: 700; }
.step p { font-size: 13px; color: var(--muted); margin-top: 4px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr 1fr; } }

/* CTA/폼 */
.cta-wrap { max-width: 760px; margin: 0 auto; text-align: center; }
.form { margin-top: 40px; text-align: left; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; padding: 32px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.field input, .field textarea { font: inherit; font-size: 15px; color: var(--ink); background: #fff;
  border: 1px solid var(--line-strong); border-radius: 8px; padding: 11px 13px; transition: .15s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.form-foot { margin-top: 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.form-note { font-size: 13px; color: var(--muted); }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

/* FOOTER */
.footer { border-top: 1px solid var(--line); padding: 36px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer .brand { color: var(--ink); }
.footer p { font-size: 13px; color: var(--muted); }

/* 토스트 */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); z-index: 200;
  display: flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; padding: 13px 20px;
  border-radius: 10px; font-size: 14.5px; opacity: 0; pointer-events: none; transition: .3s ease; box-shadow: 0 12px 32px -10px rgba(0,0,0,.4); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pos); }

/* 스크롤 등장 */
[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}
