/* ============================================
   Softment — Design System
   금융권 신뢰감 / 네이비 그리드
   ============================================ */

@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable.css');
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Brand */
  --navy-900: #0B1A3F;
  --navy-800: #122657;
  --navy-700: #1B3A8C;       /* primary */
  --navy-600: #2A4FA8;
  --navy-500: #3B6BD9;
  --navy-200: #C7D2EC;
  --navy-100: #E4EAF7;
  --navy-50:  #F2F5FC;

  /* Neutrals */
  --ink-900: #0F1A33;
  --ink-700: #1F2A44;
  --ink-500: #5B6478;
  --ink-400: #8A93A6;
  --ink-300: #B6BDCC;
  --line:    #E5E9F2;
  --line-2:  #EEF1F7;
  --bg:      #FFFFFF;
  --bg-soft: #F6F8FC;
  --bg-deep: #0B1A3F;

  /* Status */
  --green: #0F8A5B;
  --amber: #B7791F;

  /* Type */
  --font-sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, "Apple SD Gothic Neo", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Layout */
  --container: 1240px;
  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 14px;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(15,26,51,0.04), 0 1px 1px rgba(15,26,51,0.03);
  --shadow:    0 8px 24px -8px rgba(15,26,51,0.08), 0 2px 6px rgba(15,26,51,0.04);
  --shadow-lg: 0 24px 60px -20px rgba(15,26,51,0.18);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  font-feature-settings: "ss10";
  color: var(--ink-900);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ========== Layout ========== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

section { padding: 96px 0; }
.section-sm { padding: 64px 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--navy-700);
}
.eyebrow::before {
  content: "";
  width: 24px; height: 1px;
  background: var(--navy-700);
}

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  color: var(--ink-900);
  letter-spacing: -0.022em;
  margin: 0;
  font-weight: 700;
  text-wrap: balance;
}
h1 { font-size: 56px; line-height: 1.12; letter-spacing: -0.028em; }
h2 { font-size: 40px; line-height: 1.18; }
h3 { font-size: 22px; line-height: 1.3; }
h4 { font-size: 17px; line-height: 1.35; font-weight: 600; }
p  { margin: 0; color: var(--ink-500); text-wrap: pretty; }

.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head h2 { margin-top: 12px; }
.section-head p { margin-top: 16px; font-size: 17px; }

/* ========== Header ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  height: 68px;
  gap: 40px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--ink-900);
}
.brand-mark {
  width: 28px; height: 28px;
  border-radius: 7px;
  background: #3B6BD9;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}
.brand-mark::after {
  content: "S";
  font-family: var(--font-sans);
  letter-spacing: -0.02em;
}
.primary-nav {
  display: flex;
  gap: 4px;
  margin-left: 8px;
}
.primary-nav a {
  padding: 8px 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-700);
  border-radius: 8px;
  transition: background .15s, color .15s;
}
.primary-nav a:hover { background: var(--navy-50); color: var(--navy-700); }
.primary-nav a.active { color: var(--navy-700); font-weight: 600; }
.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  transition: all .15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--navy-700);
  color: #fff;
  border-color: var(--navy-700);
}
.btn-primary:hover { background: var(--navy-800); border-color: var(--navy-800); }
.btn-ghost {
  background: transparent;
  color: var(--ink-700);
  border-color: var(--line);
}
.btn-ghost:hover { background: var(--navy-50); border-color: var(--navy-200); color: var(--navy-700); }
.btn-dark {
  background: var(--ink-900);
  color: #fff;
  border-color: var(--ink-900);
}
.btn-dark:hover { background: #000; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 7px; }
.btn-lg { height: 52px; padding: 0 28px; font-size: 16px; border-radius: 10px; }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ========== Cards ========== */
.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.card:hover {
  border-color: var(--navy-200);
  box-shadow: var(--shadow);
}
.card-flat { border-radius: var(--radius); padding: 24px; }

/* ========== Footer ========== */
.site-footer {
  background: var(--bg-deep);
  color: rgba(255,255,255,0.7);
  padding: 72px 0 32px;
  font-size: 14px;
  line-height: 1.7;
}
.site-footer .container { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; }
.site-footer h5 { color: #fff; font-size: 12px; font-weight: 600; letter-spacing: 0.02em; margin: 0 0 16px; }
.site-footer a { display: block; padding: 4px 0; color: rgba(255,255,255,0.65); transition: color .15s; }
.site-footer a:hover { color: #fff; }
.footer-brand .brand { color: #fff; margin-bottom: 16px; font-size: 20px; }
.footer-brand .brand-mark { background: rgba(255,255,255,0.2); }
.footer-meta {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 56px; padding-top: 24px;
  display: flex; justify-content: space-between; align-items: flex-end;
  color: rgba(255,255,255,0.4); font-size: 12px; line-height: 2; flex-wrap: nowrap; gap: 40px;
}
.footer-meta > div:first-child { white-space: nowrap; }
.footer-meta > div:last-child { white-space: nowrap; flex-shrink: 0; }

/* ========== Hero patterns ========== */
.grid-bg {
  background-image:
    linear-gradient(to right, rgba(27,58,140,0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(27,58,140,0.06) 1px, transparent 1px);
  background-size: 56px 56px;
}

/* ========== Utility ========== */
.muted { color: var(--ink-500); }
.tag {
  display: inline-flex; align-items: center;
  height: 24px; padding: 0 10px;
  border-radius: 999px;
  font-size: 12px; font-weight: 600;
  background: var(--navy-50);
  color: var(--navy-700);
  letter-spacing: -0.01em;
}
.tag-dark { background: rgba(255,255,255,0.08); color: #fff; }
.tag-soft { background: var(--bg-soft); color: var(--ink-500); border: 1px solid var(--line); }

.divider { height: 1px; background: var(--line); }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* Page banner */
.page-banner {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  padding: 64px 0 56px;
}
.page-banner h1 { font-size: 44px; }
.page-banner p { margin-top: 14px; font-size: 17px; max-width: 640px; }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 960px) {
  h1 { font-size: 40px; }
  h2 { font-size: 30px; }
  section { padding: 72px 0; }
  .site-header .container { gap: 16px; }
  .primary-nav { display: none; }
  .site-footer .container { grid-template-columns: 1fr 1fr; }
}
