/* xFiles 소개 사이트 — xmaker.co.kr/web 스타일(다크 네이비 + 인디고·바이올렛·시안 그라디언트) 공용 디자인 시스템 */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Noto+Sans+KR:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #0f172a;
  --bg-soft: #0b1220;
  --card-bg: #16253b;
  --card-bg2: linear-gradient(90deg, #14253e 20%, #233b5d 100%);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --border: #233958;
  --primary: #1d5c9f;
  --secondary: #66a1ff;
  --grad-main: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
  --grad-soft: linear-gradient(135deg, rgba(99,102,241,.14) 0%, rgba(139,92,246,.14) 50%, rgba(6,182,212,.14) 100%);
  --radius: 16px;
  --site-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text-main);
  font-family: 'Outfit', 'Noto Sans KR', sans-serif;
  line-height: 1.6; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.02em; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--site-width); margin: 0 auto; padding: 0 24px; }

/* ---------- 배경 그리드 (히어로용) ---------- */
.grid-bg {
  position: relative; overflow: hidden;
  background-image:
    linear-gradient(rgba(148,163,184,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,163,184,.08) 1px, transparent 1px);
  background-size: 44px 44px;
}
.grid-bg::before {
  content: ''; position: absolute; inset: -20% -10%;
  background: radial-gradient(ellipse at 30% 20%, rgba(99,102,241,.25), transparent 55%),
              radial-gradient(ellipse at 80% 60%, rgba(6,182,212,.18), transparent 50%);
  pointer-events: none;
}

/* ---------- 헤더 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(15,23,42,.85); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.site-logo { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 800; flex-shrink: 0; }
.site-logo .mark {
  width: 32px; height: 32px; border-radius: 9px; background: var(--grad-main);
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 16px; font-weight: 800;
}
.site-nav { display: flex; align-items: center; gap: 4px; flex-grow: 1; }
.site-nav a {
  padding: 8px 14px; border-radius: 8px; font-size: 14.5px; font-weight: 500; color: var(--text-muted);
  transition: background .15s, color .15s;
}
.site-nav a:hover { color: var(--text-main); background: rgba(255,255,255,.05); }
.site-nav a.active { color: var(--text-main); background: rgba(255,255,255,.08); }
.site-cta { flex-shrink: 0; }
.nav-toggle { display: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: 10px; font-size: 14.5px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s, border-color .15s;
  white-space: nowrap;
}
.btn-primary { background: var(--grad-main); color: #fff; box-shadow: 0 8px 24px rgba(99,102,241,.28); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(99,102,241,.4); }
.btn-ghost { background: rgba(255,255,255,.04); color: var(--text-main); border-color: var(--border); }
.btn-ghost:hover { background: rgba(255,255,255,.08); border-color: #35507a; }
.btn-lg { padding: 15px 30px; font-size: 16px; }

/* ---------- 섹션 공통 ---------- */
.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px;
  font-family: 'Outfit', monospace; font-size: 12.5px; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--secondary);
}
.eyebrow::before { content: ''; width: 26px; height: 1px; background: var(--secondary); }
.h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.25; margin-bottom: 20px; }
.h2 .grad { background: var(--grad-main); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: 17px; color: var(--text-muted); max-width: 640px; margin-bottom: 8px; }
.section-head { margin-bottom: 52px; }

/* ---------- 히어로 ---------- */
.hero { padding: 90px 0 80px; }
.hero .badge-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.hero-badge {
  font-family: 'Outfit', monospace; font-size: 12px; font-weight: 600; letter-spacing: .08em;
  color: var(--text-muted); border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px;
  background: rgba(255,255,255,.03);
}
.hero h1 { font-size: clamp(36px, 6vw, 62px); line-height: 1.15; letter-spacing: -.03em; margin-bottom: 26px; }
.hero h1 .grad { background: var(--grad-main); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .sub { font-size: 18px; color: var(--text-muted); max-width: 620px; margin-bottom: 38px; }
.hero .btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- 카드 ---------- */
.card {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px; transition: border-color .2s, transform .2s;
}
.card:hover { border-color: #35507a; }

/* ---------- 번호 특징 리스트 (특징 01/02/03) ---------- */
.feat-list { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--card-bg); }
.feat-row { display: grid; grid-template-columns: 140px 1fr; gap: 28px; padding: 36px 36px; border-bottom: 1px solid var(--border); }
.feat-row:last-child { border-bottom: none; }
.feat-num { font-family: 'Outfit', monospace; font-size: 13px; font-weight: 700; letter-spacing: .1em; color: var(--secondary); }
.feat-row h3 { font-size: 20px; margin-bottom: 10px; }
.feat-row p { color: var(--text-muted); font-size: 15px; max-width: 620px; }
@media (max-width: 640px) { .feat-row { grid-template-columns: 1fr; gap: 10px; padding: 26px 22px; } }

/* ---------- 기능 그리드 카드 (4 MAKERS 스타일) ---------- */
.func-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.func-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.func-card .thumb {
  height: 160px; background: var(--grad-soft); display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid var(--border); position: relative;
}
.func-card .thumb i { font-size: 44px; color: var(--secondary); }
.func-card .badge-soon {
  position: absolute; top: 12px; right: 12px; background: rgba(6,182,212,.16); color: #22d3ee;
  font-size: 11px; font-weight: 700; letter-spacing: .05em; padding: 4px 10px; border-radius: 999px;
  border: 1px solid rgba(6,182,212,.35);
}
.func-card .body { padding: 24px 26px 28px; }
.func-card .tag { font-family: 'Outfit', monospace; font-size: 11.5px; font-weight: 700; letter-spacing: .12em; color: var(--secondary); text-transform: uppercase; }
.func-card h3 { font-size: 19px; margin: 10px 0 8px; }
.func-card .desc { color: var(--text-muted); font-size: 14.5px; margin-bottom: 14px; }
.func-card ul li {
  font-size: 13.5px; color: var(--text-muted); padding: 4px 0; padding-left: 16px; position: relative;
}
.func-card ul li::before { content: '·'; position: absolute; left: 0; color: var(--secondary); font-weight: 800; }
@media (max-width: 860px) { .func-grid { grid-template-columns: 1fr; } }

/* ---------- 3단계 스텝 ---------- */
.step-grid { display: flex; flex-direction: column; gap: 20px; }
.step-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 34px 36px; }
.step-num {
  font-size: 44px; font-weight: 800; background: var(--grad-main); -webkit-background-clip: text;
  background-clip: text; color: transparent; margin-bottom: 6px; font-family: 'Outfit', sans-serif;
}
.step-card h3 { font-size: 19px; margin-bottom: 10px; }
.step-card p { color: var(--text-muted); font-size: 15px; }
.step-card b { color: var(--text-main); }

/* ---------- 활용사례 카드 ---------- */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.case-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.case-card .icon {
  width: 46px; height: 46px; border-radius: 12px; background: var(--grad-soft); display: flex; align-items: center;
  justify-content: center; margin-bottom: 18px; color: var(--secondary); font-size: 22px;
}
.case-card h3 { font-size: 17.5px; margin-bottom: 8px; }
.case-card p { font-size: 14px; color: var(--text-muted); }
@media (max-width: 900px) { .case-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .case-grid { grid-template-columns: 1fr; } }

/* ---------- 코드/임베드 블록 ---------- */
.code-block {
  background: #0b1220; border: 1px solid var(--border); border-radius: 12px; padding: 22px 24px;
  font-family: 'SFMono-Regular', Consolas, monospace; font-size: 13.5px; color: #cbd5e1; overflow-x: auto;
  position: relative;
}
.code-block .lbl {
  position: absolute; top: 14px; right: 18px; font-family: 'Outfit', monospace; font-size: 11px;
  letter-spacing: .1em; color: var(--text-dim);
}
.code-block .tok-tag { color: #7dd3fc; }
.code-block .tok-str { color: #86efac; }
.code-block .tok-attr { color: #c4b5fd; }

/* ---------- 표 (가이드용) ---------- */
.kv-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.kv-table th, .kv-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 14.5px; }
.kv-table th { color: var(--text-muted); font-weight: 600; font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; }
.kv-table td { color: var(--text-main); }

/* ---------- CTA 배너 ---------- */
.cta-banner {
  background: var(--card-bg2); border: 1px solid var(--border); border-radius: 24px;
  padding: 64px 48px; text-align: center; position: relative; overflow: hidden;
}
.cta-banner h2 { font-size: clamp(24px, 3.4vw, 34px); margin-bottom: 14px; }
.cta-banner p { color: var(--text-muted); font-size: 16px; margin-bottom: 30px; }
.cta-banner .btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- 페이지 서브 히어로(내부 페이지 상단) ---------- */
.page-hero { padding: 64px 0 56px; }
.page-hero h1 { font-size: clamp(30px, 4.6vw, 46px); line-height: 1.2; margin-bottom: 18px; }
.page-hero h1 .grad { background: var(--grad-main); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-hero p { font-size: 16.5px; color: var(--text-muted); max-width: 620px; }

/* ---------- 페이지 이동 링크(하단) ---------- */
.page-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 12px; flex-wrap: wrap; }
.page-nav a {
  display: flex; align-items: center; gap: 10px; padding: 16px 20px; border: 1px solid var(--border);
  border-radius: 12px; background: var(--card-bg); font-size: 14.5px; font-weight: 600; transition: border-color .15s;
}
.page-nav a:hover { border-color: #35507a; }
.page-nav .dir { font-size: 11px; color: var(--text-dim); font-weight: 500; display: block; margin-bottom: 2px; }

/* ---------- 하이라이트 목록(paste 카피용) ---------- */
.hl-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.hl-item {
  display: flex; gap: 14px; align-items: flex-start; background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 14px; padding: 20px 22px;
}
.hl-item .dot {
  flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--grad-main); margin-top: 7px;
}
.hl-item span { font-size: 15px; color: var(--text-main); }
@media (max-width: 700px) { .hl-grid { grid-template-columns: 1fr; } }

/* ---------- 강조 인용문(마케팅 카피) ---------- */
.pull-quote {
  font-size: clamp(19px, 2.4vw, 25px); line-height: 1.55; color: var(--text-main); font-weight: 500;
  border-left: 3px solid; border-image: var(--grad-main) 1; padding-left: 26px; margin: 8px 0;
}
.pain-block { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 12px; }
.pain-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 14px; padding: 24px; }
.pain-card .q { font-size: 26px; margin-bottom: 12px; }
.pain-card p { font-size: 14.5px; color: var(--text-muted); }
@media (max-width: 860px) { .pain-block { grid-template-columns: 1fr; } }

/* ---------- 푸터 ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 44px 0; background: var(--bg-soft); }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.site-footer .f-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text-main); }
.site-footer .f-links { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer .f-links a { font-size: 13.5px; color: var(--text-muted); }
.site-footer .f-links a:hover { color: var(--text-main); }
.site-footer .copy { font-size: 12.5px; color: var(--text-dim); width: 100%; margin-top: 20px; }

/* ---------- 모바일 ---------- */
@media (max-width: 860px) {
  .site-nav { display: none; }
  .nav-toggle {
    display: flex; align-items: center; justify-content: center; width: 38px; height: 38px;
    border-radius: 9px; border: 1px solid var(--border); background: rgba(255,255,255,.04); margin-left: auto;
    color: var(--text-main); font-size: 18px; cursor: pointer;
  }
  .site-header.nav-open .site-nav {
    display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--border); padding: 10px 24px 18px; gap: 2px;
  }
  .site-cta .btn span { display: none; }
}
