/* ════════════════════════════════════════════════════════
   Frontpost — Base Design System
   디자인 토큰, 공통 컴포넌트 (nav, btn, panel, footer 등)
   각 페이지는 이 파일을 로드하고 고유 CSS만 인라인으로 추가
   ════════════════════════════════════════════════════════ */

:root {
  --bg: #f5f9ff;
  --surface: rgba(255,255,255,0.82);
  --surface-2: rgba(255,255,255,0.94);
  --line: rgba(15, 23, 42, 0.08);
  --text: #0f172a;
  --muted: #526072;
  --blue: #1F5EFF;
  --blue-2: #69A7FF;
  --indigo: #1849C6;
  --purple: #0F2747;
  --cyan: #25A7D9;
  --green: #10b981;
  --amber: #f59e0b;
  --rose: #f43f5e;
  --soft-blue: #eaf2ff;
  --shadow-xl: 0 24px 80px rgba(37, 99, 235, 0.16);
  --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 10px 24px rgba(15, 23, 42, 0.06);
  --shadow-win: 0 30px 70px rgba(37, 99, 235, 0.28);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  font-family: Inter, Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.58;
  background:
    radial-gradient(circle at 8% 0%, rgba(96,165,250,0.28), transparent 24%),
    radial-gradient(circle at 88% 8%, rgba(79,70,229,0.18), transparent 22%),
    linear-gradient(180deg, #f9fbff 0%, #eef5ff 36%, #f6f9ff 100%);
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(calc(100% - 32px), var(--max)); margin: 0 auto; }

/* ─── Background Orbs ─── */
.bg-orb {
  position: fixed; width: 440px; height: 440px; border-radius: 50%;
  filter: blur(60px); opacity: 0.22; pointer-events: none; z-index: -1;
  animation: float 10s ease-in-out infinite;
}
.orb-a { top: -120px; left: -100px; background: #60a5fa; }
.orb-b { top: 380px; right: -120px; background: #0F2747; animation-delay: -4s; }
.orb-c { bottom: -180px; left: 18%; background: #FFB26B; animation-delay: -2s; }
@keyframes float {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(20px) translateX(10px); }
}

/* ─── Navigation ─── */
.nav {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(16px);
  background: rgba(249, 251, 255, 0.72);
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}
.nav-inner {
  min-height: 76px; display: flex; align-items: center;
  justify-content: space-between; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: -0.03em; }
.brand-mark {
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 16px; color: white; font-weight: 900;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  box-shadow: 0 12px 24px rgba(79, 70, 229, 0.22);
}
.brand small { display: block; color: #64748b; font-weight: 700; font-size: 12px; }
.nav-links { display: flex; gap: 20px; color: #5b6678; font-size: 14px; font-weight: 600; }
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--blue); }
.nav-actions { display: flex; gap: 10px; align-items: center; }

/* ─── Buttons ─── */
.btn {
  min-height: 50px; padding: 0 18px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; font-weight: 800; letter-spacing: -0.02em;
  cursor: pointer; transition: .18s ease; white-space: nowrap;
  font: inherit; font-size: 15px;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), #3b82f6 42%, var(--purple));
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.24);
}
.btn-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(37, 99, 235, 0.12);
}
.btn-ghost {
  color: #1d4ed8;
  background: rgba(219, 234, 254, 0.62);
  border-color: rgba(37, 99, 235, 0.08);
}
.btn-dark {
  color: white;
  background: linear-gradient(135deg, #0f172a, #1e3a8a);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.3);
}

/* ─── Typography & Utilities ─── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 13px; border-radius: 999px;
  background: rgba(219, 234, 254, 0.82); color: #1d4ed8;
  font-size: 13px; font-weight: 800;
  border: 1px solid rgba(37, 99, 235, 0.08);
}
.pill {
  padding: 10px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(15, 23, 42, 0.06);
  color: #475569; font-size: 14px; font-weight: 700;
}
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: 999px;
  background: #eff6ff; color: #1d4ed8;
  font-size: 12px; font-weight: 800;
}
.tag {
  padding: 7px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 800;
  background: #eef6ff; color: #1d4ed8;
}
.sub { font-size: 12px; color: #64748b; }
.hook { color: var(--blue); font-weight: 900; }

h1 { margin: 18px 0 14px; font-size: clamp(38px, 5.6vw, 64px); line-height: 1.04; letter-spacing: -0.055em; }
h2 { margin: 0 0 14px; font-size: clamp(30px, 4vw, 48px); line-height: 1.08; letter-spacing: -0.05em; }
h3 { margin: 0 0 8px; font-size: 22px; letter-spacing: -0.035em; }
h4 { margin: 0 0 8px; font-size: 18px; letter-spacing: -0.03em; }
.lead { margin: 0 0 24px; font-size: 18px; color: var(--muted); max-width: 640px; }

.trust-pills, .inline-row, .hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.trust-pills { margin-top: 18px; }

section { padding: 72px 0; }
.section-header { max-width: 820px; margin-bottom: 30px; }
.section-header.center { margin: 0 auto 36px; text-align: center; }
.section-header p { margin: 0; color: var(--muted); font-size: 17px; }

/* ─── Panel / Card Base ─── */
.panel {
  padding: 18px; border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 23, 42, .06);
  box-shadow: var(--shadow-md);
}
.panel-head {
  display: flex; justify-content: space-between; align-items: center;
  gap: 10px; margin-bottom: 14px;
}
.panel-head strong { font-size: 16px; letter-spacing: -0.02em; }
.glass {
  padding: 26px; border-radius: 28px;
  background: var(--surface); border: 1px solid rgba(255, 255, 255, .88);
  box-shadow: var(--shadow-lg); backdrop-filter: blur(14px);
}

/* ─── Form ─── */
label { font-size: 13px; font-weight: 800; color: #334155; }
input, textarea, select {
  width: 100%; min-height: 54px; padding: 14px 16px;
  border-radius: 16px; border: 1px solid rgba(15, 23, 42, .10);
  background: white; color: var(--text); font: inherit;
}
textarea { min-height: 132px; resize: vertical; }
input:focus, textarea:focus, select:focus {
  outline: 2px solid rgba(37, 99, 235, .4); outline-offset: 1px;
}

/* ─── Footer ─── */
footer { padding: 28px 0 90px; color: #6b7789; font-size: 14px; }
footer .footer-row { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* ─── Mobile Sticky CTA ─── */
.mobile-cta {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60;
  display: none; padding: 10px; border-radius: 20px;
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(15, 23, 42, .08);
  box-shadow: 0 18px 40px rgba(15, 23, 42, .16);
  backdrop-filter: blur(16px); gap: 10px;
}
.mobile-cta .btn { flex: 1; min-height: 46px; }

/* ─── Flash messages ─── */
.flash {
  max-width: 680px; margin: 16px auto 0;
  padding: 16px 20px; border-radius: 18px;
  font-size: 14px; font-weight: 600;
  border: 1px solid transparent;
}
.flash.success { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.flash.error   { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.flash.info    { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }
.flash.warning { background: #fffbeb; border-color: #fde68a; color: #92400e; }

/* ─── Responsive (기본 브레이크포인트) ─── */
@media (max-width: 1080px) {
  section { padding: 60px 0; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-actions .btn-secondary { display: none; }
  section { padding: 48px 0; }
  .mobile-cta { display: flex; }
  body { padding-bottom: 86px; }
}
