/* 이음플러스 홈페이지 — 디자인 시안(Claude Design)을 정적 HTML/CSS로 옮긴 것 */
:root {
  --bg: #FAF8F5;
  --text: #1C2333;
  --muted: #6B7280;
  --faint: #9CA3AF;
  --accent: #E8653A;
  --accent-dark: #D55A31;
  --accent-tint: #FBE9E0;
  --line: #E7E2DB;
  --card: #FFFFFF;
  --max: 1120px;
  --gutter: clamp(20px, 4vw, 40px);
  --section-gap: clamp(72px, 10vw, 120px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Pretendard, "Pretendard Variable", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  font-size: clamp(16px, 1.2vw, 17px);
  line-height: 1.7;
  text-wrap: pretty;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--text); text-decoration: none; }
a:hover { color: var(--accent); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.3; letter-spacing: -0.02em; }
h2 { font-size: clamp(28px, 3.4vw, 36px); font-weight: 700; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.page { min-height: 100vh; display: flex; flex-direction: column; }

/* 버튼 */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px; border-radius: 10px;
  background: var(--accent); color: #fff; font-weight: 600; font-size: 16px;
}
.btn:hover { background: var(--accent-dark); color: #fff; }
.btn:focus-visible, .btn-dark:focus-visible, .btn-ghost:focus-visible { outline: 3px solid var(--accent-tint); outline-offset: 2px; }
.btn-dark {
  display: inline-flex; align-items: center;
  min-height: 44px; padding: 0 16px; border-radius: 10px;
  background: var(--text); color: #fff; font-size: 14px; font-weight: 600;
}
.btn-dark:hover { background: #2B3449; color: #fff; }
.btn-ghost {
  display: inline-flex; align-items: center;
  min-height: 44px; padding: 0 14px; border-radius: 10px;
  border: 1px solid var(--line); font-size: 14px; font-weight: 500;
}
.btn-ghost:hover { background: var(--accent-tint); color: var(--text); }
.btn-ghost.is-disabled { color: var(--faint); border-style: dashed; cursor: default; }
.btn-ghost.is-disabled:hover { background: transparent; color: var(--faint); }

/* 헤더 */
.site-header {
  position: sticky; top: 0; z-index: 10; height: 64px;
  background: rgba(250, 248, 245, .86); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.brand span { font-weight: 700; font-size: 19px; letter-spacing: -0.02em; }
.site-nav { display: flex; gap: clamp(4px, 2vw, 28px); font-size: 15px; font-weight: 500; }
.site-nav a { display: flex; align-items: center; min-height: 44px; padding: 0 8px; }

/* 히어로 */
.hero {
  padding-top: clamp(72px, 12vh, 140px); padding-bottom: var(--section-gap);
  min-height: 80vh; display: flex; flex-direction: column; justify-content: center;
  gap: clamp(40px, 6vw, 72px);
}
.hero-copy { display: flex; flex-direction: column; gap: 24px; max-width: 720px; }
.hero h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 700; }
.hero-sub { font-size: clamp(17px, 1.6vw, 21px); color: var(--muted); max-width: 560px; }
.hero-line { width: 100%; max-width: 1040px; }
.hero-line svg { display: block; width: 100%; height: auto; overflow: visible; }
@keyframes eum-draw { from { stroke-dashoffset: 720; } to { stroke-dashoffset: 0; } }
@keyframes eum-fade { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: scale(1); } }
.hero-line .line { stroke-dasharray: 720; stroke-dashoffset: 720; animation: eum-draw 1.4s cubic-bezier(.4, 0, .2, 1) .3s forwards; }
.hero-line .plus { opacity: 0; transform-origin: 764px 40px; animation: eum-fade .5s ease-out 1.5s forwards; }
@media (prefers-reduced-motion: reduce) {
  .hero-line .line { stroke-dashoffset: 0; animation: none; }
  .hero-line .plus { opacity: 1; animation: none; }
}

/* 공통 섹션 */
.section { padding-bottom: var(--section-gap); scroll-margin-top: 64px; }
.section-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 48px; }
.section-head p, .muted { color: var(--muted); }
.section-head p { max-width: 560px; }

/* 이음선 (점-선-점) */
.link-line { display: inline-flex; align-items: center; }
.link-line i { display: block; }
.link-line .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text); }
.link-line .dot.end { background: var(--accent); }
.link-line .bar { width: 36px; height: 2px; background: var(--text); }
.link-line.grow { flex: 1; min-width: 24px; }
.link-line.grow .dot { width: 6px; height: 6px; }
.link-line.grow .bar { flex: 1; width: auto; height: 1.5px; }

/* 우리가 잇는 것 */
.pillars h2 { margin-bottom: 40px; }
.pillar-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.pillar { display: flex; flex-direction: column; gap: 12px; padding: 32px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.pillar-title { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.tag { padding: 4px 12px; border-radius: 999px; background: var(--accent-tint); font-size: 14px; font-weight: 500; }

/* 서비스 */
.service-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.service {
  display: flex; flex-direction: column; gap: 16px; padding: 28px;
  border: 1px solid var(--line); border-radius: 16px; background: var(--card);
  transition: transform .2s, box-shadow .2s;
}
.service:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(28, 35, 51, .08); }
.service-top { display: flex; align-items: center; gap: 16px; }
.service-top img { width: 64px; height: 64px; border-radius: 22%; flex: none; object-fit: cover; }
.service-top div { display: flex; flex-direction: column; gap: 6px; }
.service h3 { font-size: clamp(20px, 1.6vw, 22px); font-weight: 600; }
.kind { align-self: flex-start; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--c); background: var(--t); }
.service-link { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; }
.service-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 8px; }
.service-more {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line);
}
.service-more a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--accent); font-size: 18px; }
.service-more a:hover { color: var(--accent-dark); }

/* 회사 */
.company-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(32px, 5vw, 80px); align-items: start; }
.company-copy { display: flex; flex-direction: column; gap: 20px; }
.company-copy h2 { margin-bottom: 8px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 32px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat b { font-size: clamp(32px, 3.4vw, 44px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.stat span { font-size: 14px; color: var(--muted); }

/* 문의 */
.contact-box {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: clamp(32px, 4vw, 48px); border: 1px solid var(--line); border-radius: 16px; background: var(--card);
}
.contact-box > div { display: flex; flex-direction: column; gap: 8px; }
.contact-box .mail { font-weight: 500; display: inline-flex; align-items: center; min-height: 44px; }

/* 푸터 */
.site-footer { border-top: 1px solid var(--line); margin-top: auto; }
.site-footer .wrap { padding-top: 40px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 20px; font-size: 14px; color: var(--muted); }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }
.footer-brand { display: flex; align-items: center; gap: 8px; }
.footer-brand b { color: var(--text); }
.footer-brand span { color: var(--faint); }
.footer-row { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; padding-top: 16px; }

/* 404 */
.notfound { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 28px; padding: 80px var(--gutter); }
.notfound svg { display: block; width: 100%; max-width: 320px; }
.notfound > div { display: flex; flex-direction: column; gap: 12px; }
.notfound .code { font-size: 14px; color: var(--muted); letter-spacing: 0.04em; }
.site-footer.slim .wrap { padding: 24px var(--gutter); flex-direction: row; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; }
