/* CEPHAS 소개 사이트 — getcephas.com */
:root {
  --navy: #1b3d6e;
  --navy-dark: #14305a;
  --gold: #c9a84c;
  --gold-soft: #e7d9a8;
  --ink: #23262b;
  --muted: #6b7280;
  --line: #e6e2da;
  --bg: #faf8f4;
  --surface: #ffffff;
  --radius: 16px;
  --maxw: 1080px;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* 헤더 */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250,248,244,0.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -0.02em; color: var(--navy); }
.brand .mark { width: 30px; height: 30px; border-radius: 8px; background: var(--navy); color: var(--gold); display: grid; place-items: center; font-size: 17px; font-weight: 900; }
.nav { display: flex; gap: 24px; align-items: center; font-size: 15px; font-weight: 600; color: #44474d; }
.nav a:hover { color: var(--navy); }
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 11px 20px; border-radius: 999px; font-weight: 700; font-size: 15px; cursor: pointer; border: none; transition: transform .08s ease, box-shadow .2s ease, background .2s ease; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-dark); box-shadow: 0 6px 20px rgba(27,61,110,.25); }
.btn-gold { background: var(--gold); color: #3a2f10; }
.btn-gold:hover { background: #b9982f; }
.btn-ghost { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }
.btn-ghost:hover { background: rgba(27,61,110,.06); }
.btn:active { transform: translateY(1px); }
.nav-cta { display: none; }
@media (min-width: 720px) { .nav-cta { display: inline-flex; } }

/* 히어로 */
.hero { background: linear-gradient(170deg, #ffffff 0%, var(--bg) 60%); padding: 72px 0 64px; text-align: center; border-bottom: 1px solid var(--line); }
.hero .eyebrow { display: inline-block; background: var(--gold-soft); color: #6e5a14; font-weight: 700; font-size: 13px; padding: 6px 14px; border-radius: 999px; margin-bottom: 22px; letter-spacing: .02em; }
.hero h1 { font-size: clamp(28px, 5.2vw, 48px); line-height: 1.25; letter-spacing: -0.03em; color: var(--navy); font-weight: 800; }
.hero h1 .accent { color: var(--gold); }
.hero p.lead { font-size: clamp(16px, 2.4vw, 20px); color: #4a4e55; margin: 20px auto 0; max-width: 620px; }
.hero .cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.hero .note { margin-top: 18px; font-size: 13px; color: var(--muted); }

/* 섹션 공통 */
section.block { padding: 72px 0; }
section.block.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head .kicker { color: var(--gold); font-weight: 800; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.section-head h2 { font-size: clamp(24px, 3.6vw, 34px); color: var(--navy); letter-spacing: -0.02em; margin-top: 10px; font-weight: 800; }
.section-head p { color: var(--muted); margin-top: 14px; font-size: 16px; }

/* 도입 필요성 — 문제/해결 */
.split { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .split { grid-template-columns: 1fr 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card.problem { background: #fbf6f4; border-color: #f0e0d8; }
.card h3 { font-size: 18px; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.card.problem h3 { color: #a4502e; }
.card.solution h3 { color: var(--navy); }
.card ul { list-style: none; display: grid; gap: 10px; }
.card li { padding-left: 26px; position: relative; color: #3f434a; font-size: 15.5px; }
.card.problem li::before { content: "✕"; position: absolute; left: 0; color: #c2603a; font-weight: 700; }
.card.solution li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 800; }

/* 기능 그리드 */
.features { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .features { grid-template-columns: 1fr 1fr; } }
@media (min-width: 920px) { .features { grid-template-columns: 1fr 1fr 1fr; } }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: box-shadow .2s ease, transform .12s ease; }
.feature:hover { box-shadow: 0 8px 28px rgba(20,30,50,.08); transform: translateY(-2px); }
.feature .ico { width: 46px; height: 46px; border-radius: 12px; background: rgba(27,61,110,.08); color: var(--navy); display: grid; place-items: center; font-size: 22px; margin-bottom: 16px; }
.feature h3 { font-size: 17px; color: var(--navy); margin-bottom: 8px; }
.feature p { font-size: 14.5px; color: #565b62; }

/* 무료 배너 */
.free-band { background: var(--navy); color: #fff; text-align: center; padding: 64px 0; }
.free-band h2 { font-size: clamp(24px, 3.6vw, 34px); letter-spacing: -0.02em; }
.free-band h2 .accent { color: var(--gold); }
.free-band p { color: #c7d0de; margin-top: 16px; max-width: 600px; margin-left: auto; margin-right: auto; }
.free-band .cta-row { margin-top: 30px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* 데모 CTA */
.demo-cta { text-align: center; }
.demo-frame { margin: 0 auto; max-width: 760px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 14px 40px rgba(20,30,50,.1); background: #fff; }
.demo-frame .bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: #f1ede6; border-bottom: 1px solid var(--line); }
.demo-frame .dot { width: 11px; height: 11px; border-radius: 50%; background: #d6cfc4; }
.demo-frame .url { margin-left: 10px; font-size: 13px; color: var(--muted); }
.demo-frame .body { padding: 40px 24px; }

/* 폼 */
.form-grid { display: grid; gap: 22px; grid-template-columns: 1fr; max-width: 720px; margin: 0 auto; }
.field { display: grid; gap: 7px; }
.field label { font-weight: 700; font-size: 14.5px; color: #2c3038; }
.field .req { color: #c2603a; }
.field input, .field textarea, .field select { font-family: inherit; font-size: 15px; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 11px; background: #fff; color: var(--ink); transition: border-color .15s ease, box-shadow .15s ease; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(27,61,110,.12); }
.field textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.form-msg { font-size: 14.5px; font-weight: 600; }
.form-msg.ok { color: #1f7a4d; }
.form-msg.err { color: #c2603a; }
.tabs { display: flex; gap: 8px; justify-content: center; margin-bottom: 30px; flex-wrap: wrap; }
.tab { padding: 10px 20px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-weight: 700; font-size: 14.5px; color: #555; cursor: pointer; }
.tab.active { background: var(--navy); color: #fff; border-color: var(--navy); }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 4px 20px; }
.faq summary { font-weight: 700; font-size: 16px; color: var(--navy); cursor: pointer; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--gold); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 18px; color: #545961; font-size: 15px; }

/* 푸터 */
.site-footer { background: #14181d; color: #aeb4bd; padding: 48px 0 28px; font-size: 14px; }
.site-footer .top { display: grid; gap: 24px; grid-template-columns: 1fr; margin-bottom: 28px; }
@media (min-width: 720px) { .site-footer .top { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer .brand { color: #fff; }
.site-footer .mark { background: #fff; color: var(--navy); }
.site-footer h4 { color: #fff; font-size: 14px; margin-bottom: 12px; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer a:hover { color: #fff; }
.site-footer .bottom { border-top: 1px solid #2a2f36; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13px; color: #7d8590; }
.site-footer .bottom a { text-decoration: underline; }

/* 법적 고지 페이지(간단 모달 대용 — 별도 페이지 링크) */
.legal { max-width: 760px; margin: 0 auto; }
.legal h2 { color: var(--navy); margin: 28px 0 12px; font-size: 22px; }
.legal h3 { margin: 20px 0 8px; font-size: 17px; }
.legal p, .legal li { color: #444; font-size: 15px; margin-bottom: 8px; }
.legal ul { padding-left: 20px; }
.back-link { display: inline-block; margin: 24px 0; color: var(--navy); font-weight: 700; }
