/* 운명데이터랩 — 자정 남색 + 금색, 세리프 제목 */
:root {
  --ink: #0e1020;
  --ink-2: #171a30;
  --gold: #c9a86a;
  --gold-light: #e6cf9f;
  --paper: #f7f4ee;
  --text: #2b2b33;
  --muted: #7a7a88;
  --line: #e6e1d6;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Noto Sans KR', sans-serif; color: var(--text); background: var(--paper); line-height: 1.7; font-weight: 300; }
h1, h2, h3 { font-family: 'Noto Serif KR', serif; font-weight: 600; }
a { color: inherit; text-decoration: none; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 640px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(14,16,32,.92); backdrop-filter: blur(8px); }
.nav-row { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font-family: 'Noto Serif KR', serif; font-size: 1.5rem; color: var(--gold); font-weight: 700; }
.brand span { color: #fff; font-size: 1.05rem; font-weight: 600; margin-left: 6px; letter-spacing: .12em; }
.main-nav a { color: #cfd0dd; font-size: .92rem; margin-left: 22px; }
.main-nav a:hover { color: var(--gold-light); }
.main-nav .nav-cta { border: 1px solid var(--gold); color: var(--gold); padding: 7px 16px; border-radius: 999px; }
.main-nav .nav-cta:hover { background: var(--gold); color: var(--ink); }

/* hero */
.hero { background: radial-gradient(1200px 600px at 70% -10%, #232848 0%, var(--ink) 55%); color: #fff; text-align: center; padding: 110px 0 90px; }
.hero-badge { display: inline-block; border: 1px solid rgba(201,168,106,.5); color: var(--gold-light); font-size: .82rem; letter-spacing: .2em; padding: 6px 18px; border-radius: 999px; margin-bottom: 28px; }
.hero h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); line-height: 1.3; letter-spacing: .02em; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero-sub { color: #b9bccd; margin: 26px 0 36px; font-size: 1.08rem; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-trust { margin-top: 42px; color: #6f7390; font-size: .82rem; letter-spacing: .05em; }

.btn { display: inline-block; padding: 14px 32px; border-radius: 999px; font-size: .98rem; font-weight: 500; transition: all .2s; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-light); }
.btn-ghost { border: 1px solid rgba(255,255,255,.35); color: #e8e8f0; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-light); }
.btn-block { width: 100%; text-align: center; border: 0; cursor: pointer; font-family: inherit; }

/* sections */
.section { padding: 84px 0; }
.section-title { text-align: center; font-size: 1.9rem; margin-bottom: 16px; letter-spacing: .04em; }
.section-lead { text-align: center; color: var(--muted); margin-bottom: 48px; }
.section-dark { background: var(--ink); color: #e6e6ee; }
.section-dark .section-title { color: #fff; }

/* free manse */
.free-manse { padding-top: 64px; }
.free-card { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 48px; }
.free-card h2 { font-size: 1.7rem; margin-bottom: 14px; }
.free-card h2 em { font-style: normal; color: #a4813d; }
.free-card p { color: var(--muted); }
.free-demo { background: var(--ink); border-radius: 14px; padding: 26px; color: #d8d9e6; }
.demo-row { display: flex; justify-content: space-between; font-size: .85rem; margin-bottom: 10px; color: #9a9db4; }
.demo-input { color: #fff; letter-spacing: .1em; }
.demo-pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 18px 0 12px; }
.pillar { background: #1e2240; border: 1px solid #33395f; border-radius: 10px; text-align: center; padding: 12px 4px 14px; font-family: 'Noto Serif KR', serif; font-size: 1.3rem; color: var(--gold-light); }
.pillar small { display: block; font-family: 'Noto Sans KR', sans-serif; font-size: .68rem; color: #8b8ea8; margin-bottom: 6px; }
.demo-note { text-align: center; font-size: .75rem; color: #6f7390; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 34px 28px; display: flex; flex-direction: column; }
.card-feature { border: 1.5px solid var(--gold); box-shadow: 0 12px 32px rgba(201,168,106,.15); }
.card h3 { font-size: 1.2rem; margin-bottom: 12px; }
.card p { color: var(--muted); font-size: .95rem; flex: 1; }
.card-tag { margin-top: 20px; align-self: flex-start; background: var(--ink); color: var(--gold-light); font-size: .8rem; padding: 5px 14px; border-radius: 999px; }

/* why */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.why-item { border: 1px solid #2b3050; border-radius: 16px; padding: 30px 28px; background: var(--ink-2); }
.why-item h3 { color: var(--gold-light); font-size: 1.1rem; margin-bottom: 10px; }
.why-item p { color: #aeb1c6; font-size: .93rem; }

/* pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 40px; }
.price-box { background: #fff; border: 1px solid var(--line); border-radius: 14px; text-align: center; padding: 22px 8px; }
.price-box strong { display: block; font-size: 1.15rem; }
.price-box span { color: var(--muted); font-size: .88rem; }
.price-box em { font-style: normal; color: #a4813d; font-weight: 500; }
.fee-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.fee-table th, .fee-table td { padding: 13px 18px; text-align: left; border-bottom: 1px solid var(--line); font-size: .93rem; }
.fee-table th { background: var(--ink); color: #e8e8f0; font-weight: 500; }
.fee-table tr:last-child td { border-bottom: 0; }
.row-free td { background: #faf6ec; color: #a4813d; }
.pricing-note { margin-top: 14px; color: var(--muted); font-size: .82rem; text-align: center; }

/* steps */
.section-steps { padding-top: 20px; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px; text-align: center; }
.steps strong { display: block; font-family: 'Noto Serif KR', serif; color: #a4813d; margin-bottom: 8px; }
.steps span { color: var(--muted); font-size: .92rem; }

/* reserve */
.section-reserve { background: var(--ink); color: #e6e6ee; }
.section-reserve .section-title { color: #fff; }
.section-reserve .section-lead { color: #aeb1c6; }
.reserve-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.reserve-form .form-row:has(select) { grid-template-columns: 1fr; }
.reserve-form input[type=text], .reserve-form input[type=email], .reserve-form select {
  width: 100%; padding: 14px 18px; border-radius: 12px; border: 1px solid #3a3f63;
  background: var(--ink-2); color: #fff; font-family: inherit; font-size: .95rem;
}
.reserve-form input::placeholder { color: #7c7f9a; }
.reserve-form input:focus, .reserve-form select:focus { outline: none; border-color: var(--gold); }
.consent { display: block; font-size: .85rem; color: #aeb1c6; margin: 6px 0 20px; }
.consent a { color: var(--gold-light); text-decoration: underline; }
.hp-field { position: absolute !important; left: -9999px !important; height: 0; width: 0; opacity: 0; }
.alert { border-radius: 12px; padding: 14px 20px; margin-bottom: 22px; font-size: .93rem; }
.alert-ok { background: #1d3323; color: #a8e2b3; border: 1px solid #2e5c39; }
.alert-err { background: #3a2024; color: #f0b5b5; border: 1px solid #6b3238; }

/* footer */
.site-footer { background: #0a0b16; color: #7c7f96; padding: 44px 0; font-size: .82rem; text-align: center; }
.disclaimer { max-width: 720px; margin: 0 auto 16px; line-height: 1.7; }
.footer-links a { color: #a5a8bf; text-decoration: underline; }
.copyright { margin-top: 12px; letter-spacing: .05em; }

/* legal */
.legal { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 48px; }
.legal h1 { font-size: 1.5rem; margin-bottom: 18px; }
.legal h2 { font-size: 1.05rem; margin: 22px 0 8px; }
.legal ul { padding-left: 20px; color: var(--muted); }
.legal-date { margin-top: 24px; color: var(--muted); font-size: .85rem; }
.legal .btn { margin-top: 20px; border-color: var(--line); color: var(--text); }

/* ===== 동적 효과 ===== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

.star-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero, .manse-hero { position: relative; overflow: hidden; }
.hero .container, .manse-hero .container { position: relative; z-index: 1; }

.btn-glow { animation: glow 2.6s ease-in-out infinite; }
@keyframes glow {
  0%, 100% { box-shadow: 0 0 0 rgba(201,168,106,0); }
  50% { box-shadow: 0 0 26px rgba(201,168,106,.55); }
}
.live-badge { display: inline-block; vertical-align: middle; margin-left: 10px; background: #1d5c33; color: #b9f0c6; font-family: 'Noto Sans KR', sans-serif; font-size: .68rem; font-weight: 500; letter-spacing: .08em; padding: 4px 12px; border-radius: 999px; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .55; } }
.main-nav .nav-free { color: var(--gold-light); font-weight: 500; }
a.free-demo { display: block; transition: transform .25s, box-shadow .25s; }
a.free-demo:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(14,16,32,.35); }
.card, .price-box, .why-item { transition: transform .25s, box-shadow .25s, opacity .7s ease; }
.card:hover, .price-box:hover { transform: translateY(-5px); box-shadow: 0 14px 34px rgba(30,30,50,.12); }
.why-item:hover { transform: translateY(-4px); border-color: var(--gold); }

/* ===== 만세력 페이지 ===== */
.manse-hero { background: radial-gradient(1000px 500px at 50% -10%, #232848 0%, var(--ink) 60%); color: #fff; text-align: center; padding: 90px 0 70px; }
.manse-title { font-size: 2.3rem; margin-bottom: 14px; }
.manse-lead { color: #b9bccd; margin-bottom: 36px; }
.manse-form { background: var(--ink-2); border: 1px solid #33395f; border-radius: 20px; padding: 30px; text-align: left; }
.mf-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.mf-grid label { font-size: .8rem; color: #9a9db4; display: flex; flex-direction: column; gap: 6px; }
.mf-grid input, .mf-grid select { padding: 12px 10px; border-radius: 10px; border: 1px solid #3a3f63; background: var(--ink); color: #fff; font-family: inherit; font-size: 1rem; text-align: center; }
.mf-grid input:focus, .mf-grid select:focus { outline: none; border-color: var(--gold); }
.manse-form .btn { margin-top: 18px; }
.mf-note { text-align: center; color: #6f7390; font-size: .78rem; margin-top: 12px; }
.manse-hero .alert { text-align: left; }

.manse-result { padding-top: 60px; }
.mr-meta { text-align: center; color: var(--muted); margin-bottom: 34px; font-size: .95rem; }
.mr-meta em { color: #a4813d; font-style: normal; }
.pillars-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: 760px; margin: 0 auto 44px; }
.pillar-card { text-align: center; }
.pc-name { font-size: .82rem; color: var(--muted); margin-bottom: 8px; letter-spacing: .2em; }
.pc-gan, .pc-ji { background: var(--ink); border: 2px solid; border-radius: 14px; padding: 16px 6px 12px; margin-bottom: 8px; display: flex; flex-direction: column; gap: 3px; }
.pc-hanja { font-family: 'Noto Serif KR', serif; font-size: 2.2rem; line-height: 1.1; color: #fff; }
.pc-kor { font-size: .78rem; color: #9a9db4; }
.pc-ss { font-size: .74rem; color: var(--gold-light); }
.pc-me { background: var(--gold); color: var(--ink); border-radius: 999px; padding: 1px 10px; margin: 2px auto 0; font-weight: 500; }
.mr-two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 880px; margin: 0 auto 44px; }
.mr-box { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 30px; }
.mr-box h3 { font-size: 1.05rem; margin-bottom: 16px; }
.dm-line { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.dm-big { font-family: 'Noto Serif KR', serif; font-size: 3rem; color: #a4813d; }
.dm-desc { color: var(--muted); font-size: .9rem; }
.oh-row { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.oh-label { width: 22px; font-size: .9rem; }
.oh-track { flex: 1; height: 12px; background: #f0ece2; border-radius: 999px; overflow: hidden; }
.oh-bar { height: 100%; width: 0; border-radius: 999px; transition: width 1.1s cubic-bezier(.2,.8,.3,1); }
.oh-cnt { width: 18px; text-align: right; font-size: .88rem; color: var(--muted); }
.oh-missing { margin-top: 14px; font-size: .85rem; color: #8a6d3b; background: #faf6ec; border-radius: 10px; padding: 10px 14px; }
.mr-cta { text-align: center; background: var(--ink); color: #e6e6ee; border-radius: 20px; padding: 46px 24px; max-width: 880px; margin: 0 auto; }
.mr-cta h3 { color: #fff; font-size: 1.35rem; margin-bottom: 12px; }
.mr-cta p { color: #aeb1c6; margin-bottom: 24px; }

/* responsive */
@media (max-width: 860px) {
  .free-card { grid-template-columns: 1fr; padding: 32px 24px; }
  .cards, .steps, .why-grid, .mr-two { grid-template-columns: 1fr; }
  .pricing-grid, .mf-grid { grid-template-columns: 1fr 1fr; }
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
  .reserve-form .form-row { grid-template-columns: 1fr; }
  .main-nav a:not(.nav-cta):not(.nav-free) { display: none; }
  .hero { padding: 80px 0 64px; }
}
