/* ==========================================================================
   창업인사이트랩 — base design system
   Matt black · gold · clean white.  Mobile-first, wide desktop.
   ========================================================================== */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css");
@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,600;1,500&display=swap");

:root {
  --ink: #0d1119;
  --navy: #111521;
  --navy-2: #1a2033;
  --navy-3: #232b41;
  --gold: #d4af37;
  --gold-2: #c9a227;
  --gold-soft: #f3e6bd;
  --paper: #ffffff;
  --wash: #f7f8fa;
  --wash-2: #eff1f5;
  --line: #e6e8ee;
  --line-dark: rgba(255, 255, 255, .12);
  --text: #161a22;
  --muted: #6b7280;
  --muted-2: #9aa1ad;
  --ok: #1f8a63;
  --ok-soft: #e6f5ee;
  --warn: #b4543b;
  --warn-soft: #fbeeea;
  --blue: #2f5fd0;
  --blue-soft: #eaf0ff;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(16, 20, 30, .04), 0 12px 32px rgba(16, 20, 30, .06);
  --shadow-lg: 0 24px 70px rgba(10, 14, 24, .18);
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Playfair Display", "Times New Roman", serif;
  --header-h: 72px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.62;
  letter-spacing: -.012em;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 15px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -.035em; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
::selection { background: var(--gold-soft); color: var(--ink); }

.wrap { width: min(1200px, 100% - 44px); margin-inline: auto; }
.wrap-narrow { width: min(880px, 100% - 44px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- type accents ---- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold-2);
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--gold); display: block; }
.eyebrow.center::after { content: ""; width: 22px; height: 1px; background: var(--gold); display: block; }
.serif { font-family: var(--serif); font-weight: 500; letter-spacing: -.01em; }
.section { padding: 84px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.section-head h2 { font-size: clamp(26px, 3vw, 36px); margin-top: 14px; }
.section-head p { color: var(--muted); margin-top: 10px; font-size: 15px; }
.section-head .more { font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 3px; white-space: nowrap; }
.section-head .more:hover { color: var(--text); border-color: var(--text); }

/* ---- header ---- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid rgba(16, 20, 30, .06);
}
.site-header .bar { height: var(--header-h); display: flex; align-items: center; gap: 34px; }
.brandmark { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brandmark .mk {
  width: 38px; height: 38px; border-radius: 10px; background: var(--navy);
  display: grid; place-items: center; color: var(--gold); font-family: var(--serif);
  font-size: 17px; letter-spacing: -.04em; border: 1px solid rgba(212, 175, 55, .35);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04);
}
.brandmark .wm { line-height: 1.15; }
.brandmark .wm b { display: block; font-size: 16.5px; letter-spacing: -.045em; }
.brandmark .wm span { display: block; font-size: 8.5px; letter-spacing: .24em; color: var(--muted-2); font-weight: 700; margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav a {
  font-size: 14px; font-weight: 600; color: #3b4250; padding: 9px 13px; border-radius: 9px;
  transition: background .18s, color .18s;
}
.nav a:hover { background: var(--wash); color: var(--ink); }
.nav a.on { color: var(--ink); background: var(--wash-2); }
.header-cta { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.header-phone { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 700; color: var(--navy); white-space: nowrap; }
.header-phone .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(212, 175, 55, .16); }
.menu-btn { display: none; width: 40px; height: 40px; border: 1px solid var(--line); background: #fff; border-radius: 10px; }
.menu-btn span { display: block; width: 16px; height: 1.5px; background: var(--ink); margin: 4px auto; }
.drawer {
  position: fixed; inset: 0; z-index: 90; background: rgba(10, 14, 22, .42);
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.drawer.open { opacity: 1; pointer-events: auto; }
.drawer .panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(360px, 88vw); background: #fff;
  padding: 26px 22px; transform: translateX(100%); transition: transform .28s cubic-bezier(.3, .8, .2, 1);
  display: flex; flex-direction: column; gap: 6px; overflow-y: auto;
}
.drawer.open .panel { transform: none; }
.drawer .panel .close { align-self: flex-end; border: 0; background: none; font-size: 22px; padding: 6px 10px; color: var(--muted); }
.drawer .panel .grp { font-size: 10.5px; letter-spacing: .2em; color: var(--muted-2); font-weight: 700; margin: 18px 0 6px; }
.drawer .panel a { padding: 11px 12px; border-radius: 10px; font-size: 15px; font-weight: 600; }
.drawer .panel a:hover { background: var(--wash); }
.drawer .panel .tel { margin-top: 22px; background: var(--navy); color: #fff; text-align: center; padding: 14px; border-radius: 12px; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 11px; padding: 12px 20px;
  font-size: 14.5px; font-weight: 700; letter-spacing: -.02em; line-height: 1;
  background: var(--navy); color: #fff; transition: transform .15s, background .18s, box-shadow .18s;
  white-space: nowrap;
}
.btn:hover { background: #1c2438; }
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: #16130a; }
.btn-gold:hover { background: #dfbb46; box-shadow: 0 8px 24px rgba(212, 175, 55, .28); }
.btn-line { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-line:hover { background: var(--wash); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .24); }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); }
.btn-sm { padding: 9px 14px; font-size: 13px; border-radius: 9px; }
.btn-lg { padding: 16px 28px; font-size: 16px; border-radius: 13px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.link-arrow { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: 14px; }
.link-arrow::after { content: "→"; transition: transform .18s; }
.link-arrow:hover::after { transform: translateX(3px); }

/* ---- chips ---- */
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; font-size: 13px; font-weight: 600; color: #4b5260;
  transition: all .16s; white-space: nowrap;
}
.chip:hover { border-color: #cfd4dd; color: var(--ink); }
.chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip.gold { background: rgba(212, 175, 55, .12); border-color: rgba(201, 162, 39, .32); color: #8a6d16; }
.tag { display: inline-block; padding: 4px 9px; border-radius: 6px; background: var(--wash-2); color: #5b6270; font-size: 11.5px; font-weight: 600; }

/* ---- cards ---- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 26px; }
.hairline { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---- forms ---- */
.field { display: flex; flex-direction: column; gap: 7px; }
.field > label { font-size: 12.5px; font-weight: 700; color: #454c59; letter-spacing: -.01em; }
.field > label .req { color: var(--gold-2); }
.input, .select, .textarea {
  width: 100%; border: 1px solid #dfe2e9; background: #fff; border-radius: 10px;
  padding: 12px 13px; color: var(--text); outline: none; transition: border .15s, box-shadow .15s;
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(17, 21, 33, .07); }
.input::placeholder, .textarea::placeholder { color: #a6acb8; }
.textarea { min-height: 110px; resize: vertical; line-height: 1.65; }
.hint { font-size: 11.5px; color: var(--muted-2); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .span2 { grid-column: span 2; }
.check { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; color: #4b5260; line-height: 1.55; }
.check input { margin-top: 3px; accent-color: var(--navy); width: 16px; height: 16px; flex-shrink: 0; }
.error-text { color: var(--warn); font-size: 12px; }

/* ---- modal ---- */
.modal-root { position: fixed; inset: 0; z-index: 100; display: none; }
.modal-root.open { display: block; }
.modal-veil { position: absolute; inset: 0; background: rgba(8, 12, 20, .55); backdrop-filter: blur(3px); }
.modal-box {
  position: relative; margin: 4vh auto; width: min(980px, calc(100% - 32px));
  max-height: 92vh; overflow: auto; background: #fff; border-radius: 20px;
  box-shadow: var(--shadow-lg); animation: rise .26s cubic-bezier(.2, .8, .2, 1);
}
.modal-box.narrow { width: min(520px, calc(100% - 32px)); }
@keyframes rise { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-x {
  position: absolute; top: 14px; right: 14px; z-index: 2; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .92); font-size: 16px; color: #444;
}
.modal-x:hover { background: var(--wash); }
body.locked { overflow: hidden; }

/* ---- toast ---- */
.toast-wrap { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast {
  background: rgba(17, 21, 33, .96); color: #fff; font-size: 13.5px; font-weight: 600;
  padding: 12px 18px; border-radius: 999px; box-shadow: 0 12px 30px rgba(0, 0, 0, .22);
  animation: toastIn .22s ease;
}
.toast.ok { background: #10392f; border: 1px solid rgba(80, 200, 160, .35); }
.toast.err { background: #3c1a17; border: 1px solid rgba(230, 120, 90, .35); }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---- footer ---- */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .66); padding: 64px 0 40px; margin-top: 0; }
.site-footer .top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.site-footer .brandmark .wm b { color: #fff; }
.site-footer .brandmark .wm span { color: rgba(255, 255, 255, .4); }
.site-footer .desc { max-width: 380px; font-size: 13.5px; line-height: 1.75; margin-top: 18px; color: rgba(255, 255, 255, .55); }
.site-footer .cols { display: flex; gap: 64px; flex-wrap: wrap; }
.site-footer .col h4 { color: #fff; font-size: 12px; letter-spacing: .16em; font-weight: 700; margin-bottom: 14px; }
.site-footer .col a, .site-footer .col span { display: block; font-size: 13.5px; color: rgba(255, 255, 255, .6); margin-bottom: 9px; }
.site-footer .col a:hover { color: var(--gold); }
.site-footer .bottom {
  margin-top: 46px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  font-size: 12px; color: rgba(255, 255, 255, .42);
}
.site-footer .bottom b { color: rgba(255, 255, 255, .7); font-weight: 600; }
.site-footer .legal-links { display: flex; gap: 18px; }
.site-footer .legal-links a:hover { color: #fff; }

/* ---- floating / mobile tabbar ---- */
.to-top {
  position: fixed; right: 22px; bottom: 26px; z-index: 55; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .95); box-shadow: var(--shadow);
  font-size: 15px; color: #333; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.to-top.show { opacity: 1; pointer-events: auto; }
.tabbar { display: none; }
.fab-call { display: none; }

/* ---- misc ---- */
.empty { text-align: center; padding: 64px 20px; color: var(--muted); }
.empty .ico { font-size: 30px; margin-bottom: 12px; opacity: .5; }
.empty h3 { font-size: 18px; color: var(--text); margin-bottom: 8px; }
.empty p { font-size: 14px; }
.skeleton { background: linear-gradient(90deg, #f1f2f5, #f8f9fb, #f1f2f5); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 8px; }
@keyframes sk { to { background-position: -200% 0; } }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; }
.pill.stock { background: var(--ok-soft); color: var(--ok); }
.pill.talk { background: rgba(17, 21, 33, .06); color: #4e5563; }
.pill.gold { background: rgba(212, 175, 55, .14); color: #8a6d16; }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.hidden { background: #f0edf8; color: #6b5aa8; }

@media (max-width: 1024px) {
  .nav { display: none; }
  .menu-btn { display: block; }
  .header-cta .btn { display: none; }
}
@media (max-width: 760px) {
  :root { --header-h: 62px; }
  .wrap, .wrap-narrow { width: calc(100% - 32px); }
  .brandmark .mk { width: 34px; height: 34px; font-size: 15px; }
  .brandmark .wm b { font-size: 15px; }
  .site-header .bar { gap: 10px; }
  .header-phone { display: none; }
  .hero, .page-head { scroll-margin-top: 70px; }
  .section { padding: 58px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 24px; }
  .site-footer { padding-bottom: 92px; }
  .site-footer .cols { gap: 32px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span2 { grid-column: auto; }
  .to-top { bottom: 88px; right: 16px; }
  .tabbar {
    display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0;
    z-index: 65; background: rgba(255, 255, 255, .96); backdrop-filter: blur(16px);
    border-top: 1px solid var(--line); padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
  }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 600; color: #8a909c; padding: 4px 0; }
  .tabbar a .ic { font-size: 17px; line-height: 1; }
  .tabbar a.on { color: var(--navy); }
  .tabbar a.talk .ic { color: var(--gold-2); }
}
