*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #0c0d14;
  --bg2:      #1a1b28;
  --bg3:      #212233;
  --border:   #2f3148;
  --border2:  #3d4060;
  --text:     #f9faff;
  --text2:    #bdbfce;
  --text3:    #6b6e8a;
  --brand:    #6842ff;
  --brand2:   #7b5cff;
  --brand-bg: rgba(104,66,255,.12);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', 'Malgun Gothic', 'Noto Sans KR', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(12,13,20,.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  height: 60px;
  display: flex; align-items: center;
  padding: 0 32px;
  gap: 32px;
}

.header-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text); flex-shrink: 0;
}
.header-logo-mark {
  height: 32px; width: auto;
  flex-shrink: 0;
  object-fit: contain;
}
.header-logo-text { font-weight: 800; font-size: 16px; letter-spacing: -.02em; }
.header-logo-text span { color: var(--brand); }

.header-nav {
  display: flex; align-items: center; gap: 4px; flex: 1;
}
.header-nav a {
  padding: 6px 14px; border-radius: 7px;
  text-decoration: none; color: var(--text2);
  font-size: 13px; font-weight: 600;
  transition: color .15s, background .15s;
}
.header-nav a:hover { color: var(--text); background: var(--brand-bg); }
.header-nav a.active { color: var(--brand); background: var(--brand-bg); }

.header-cta {
  margin-left: auto; flex-shrink: 0;
  padding: 7px 18px; border-radius: 8px;
  background: var(--brand); color: #ffffff;
  font-size: 13px; font-weight: 700;
  text-decoration: none;
  transition: background .15s;
}
.header-cta:hover { background: var(--brand2); }

/* ── Footer ── */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  background: var(--bg2);
  padding: 40px 32px 28px;
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr auto;
  gap: 32px; align-items: start;
}
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.footer-brand-mark {
  height: 28px; width: auto;
  object-fit: contain;
}
.footer-brand-name { font-weight: 800; font-size: 15px; }
.footer-brand-name span { color: var(--brand); }
.footer-desc { font-size: 12px; color: var(--text3); line-height: 1.7; max-width: 360px; }
.footer-copy { font-size: 11px; color: var(--text3); margin-top: 16px; }

.footer-links { display: flex; gap: 32px; }
.footer-links-col h4 {
  font-size: 11px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text3); margin-bottom: 12px;
}
.footer-links-col a {
  display: block; font-size: 13px; color: var(--text2);
  text-decoration: none; margin-bottom: 8px;
  transition: color .15s;
}
.footer-links-col a:hover { color: var(--brand); }

/* ── Common layout ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 32px; }
.page-hero {
  padding: 64px 32px 48px;
  max-width: 1100px; margin: 0 auto;
}
.page-hero h1 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; margin-bottom: 12px; }
.page-hero p  { font-size: 1rem; color: var(--text2); max-width: 600px; }

.section { padding: 56px 0; }
.section-label {
  font-size: 11px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--brand); margin-bottom: 10px;
}
.section-title  { font-size: clamp(1.3rem, 2.5vw, 1.8rem); font-weight: 800; margin-bottom: 16px; }
.section-desc   { font-size: .95rem; color: var(--text2); max-width: 560px; line-height: 1.8; }

/* ── Cards ── */
.card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 14px; padding: 24px;
  transition: border-color .2s;
}
.card:hover { border-color: var(--border2); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 24px; border-radius: 9px;
  font-size: 14px; font-weight: 700;
  text-decoration: none; border: none; cursor: pointer;
  transition: all .15s; font-family: inherit;
}
.btn-primary { background: var(--brand); color: #ffffff; }
.btn-primary:hover { background: var(--brand2); }
.btn-outline { background: transparent; border: 1px solid var(--border2); color: var(--text); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }

/* ── Divider ── */
.divider { height: 1px; background: var(--border); margin: 0; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .site-header { padding: 0 16px; gap: 12px; }
  .header-nav a { padding: 6px 10px; font-size: 12px; }
  .header-cta { padding: 6px 14px; font-size: 12px; }
  .container, .page-hero { padding: 0 16px; }
  .page-hero { padding: 40px 16px 32px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { flex-wrap: wrap; gap: 20px; }
  .section { padding: 40px 0; }
}

/* 640px 이하: CTA 버튼 숨김 */
@media (max-width: 640px) {
  .header-cta { display: none; }
}

/* 480px 이하: 네비 가로 스크롤 (wrapping 없이) */
@media (max-width: 480px) {
  .site-header { gap: 8px; }
  .header-nav {
    overflow-x: auto; flex-wrap: nowrap;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .header-nav::-webkit-scrollbar { display: none; }
  .header-nav a { white-space: nowrap; }
}
