/* sokey labs — 회사 사이트 공통 스타일
   브랜드 아이덴티티 키트: 남색 #031E44, 열쇠 파랑 #0E58DE.
   외부 글꼴·스크립트·추적 없음. 시스템 글꼴만 쓴다. */

:root {
  --navy: #031e44;
  --blue: #0e58de;
  --bg: #eef2f6;
  --card: #ffffff;
  --text: #0f1b2d;
  --heading: #031e44;
  --text-2: #3f4b5c;
  --text-3: #5f6b7a;
  --line: #dde3ea;
  --accent: #0e58de;
  --accent-ink: #ffffff;
  --accent-soft: #e5edfc;
  --accent-text: #0b4bc0;
  --warn-soft: #fff7e8;
  --warn-line: #f0dfb8;
  --logo-mark: #0e58de;
  --logo-text: #031e44;
  --radius: 20px;
  --radius-sm: 14px;
  --max: 1100px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #06101f;
    --card: #0d1a31;
    --text: #e8eef7;
    --heading: #f2f6fc;
    --text-2: #b3bfcf;
    --text-3: #93a0b2;
    --line: #1f2d45;
    --accent: #5b8df6;
    --accent-ink: #031e44;
    --accent-soft: #13264a;
    --accent-text: #8fb2fa;
    --warn-soft: #231d10;
    --warn-line: #43391f;
    --logo-mark: #5b8df6;
    --logo-text: #f2f6fc;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Malgun Gothic", "맑은 고딕", "Noto Sans KR", "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

h1, h2, h3 { color: var(--heading); }
a { color: var(--accent-text); }
a:focus-visible, summary:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 8px;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--card); color: var(--text); padding: 10px 16px; z-index: 10; }
.skip:focus { left: 12px; top: 12px; }

/* 로고 (인라인 SVG, 색은 CSS로) */
.logo-mark { color: var(--logo-mark); }
.logo-text { color: var(--logo-text); }
.logo-white .logo-mark, .logo-white .logo-text { color: #ffffff; }

/* 머리글 */
.top {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 12px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; padding: 6px 0; }
.brand svg { height: 30px; width: auto; display: block; }
.nav { display: flex; align-items: center; gap: 2px; flex-wrap: nowrap; justify-content: flex-end; }
.nav a { color: var(--text-2); text-decoration: none; font-size: 15px; padding: 10px 10px; border-radius: 10px; min-height: 44px; display: inline-flex; align-items: center; }
.nav a:hover { color: var(--heading); background: var(--card); }
.nav .lang { border: 1px solid var(--line); padding: 6px 12px; min-height: 36px; margin-left: 6px; font-weight: 600; }
@media (max-width: 760px) { .nav .hide-sm { display: none; } }
@media (max-width: 480px) {
  .brand svg { height: 24px; }
  .nav a { padding: 8px 8px; font-size: 14.5px; }
  .nav .lang { padding: 4px 10px; margin-left: 2px; }
}
@media (max-width: 340px) { .brand svg { height: 20px; } }

/* 첫 화면 — 브랜드 배너 */
.hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background-color: #000928;
  background-image:
    url("/assets/circuit.svg"),
    linear-gradient(115deg, #000928 0%, #031e44 42%, #0a3a8c 78%, #0e58de 100%);
  background-size: 1200px auto, cover;
  background-position: right center, center;
  background-repeat: no-repeat, no-repeat;
}
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 40px; align-items: center; padding-top: 80px; padding-bottom: 80px; }
.hero h1 { color: #ffffff; font-size: clamp(32px, 5.6vw, 56px); line-height: 1.22; letter-spacing: -0.03em; margin: 0 0 22px; font-weight: 800; }
.hero .lead { font-size: clamp(17px, 2.1vw, 20px); color: #d5e0f5; max-width: 620px; margin: 0 0 34px; }
.slogan { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; color: #cfe0ff; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.18); padding: 7px 14px; border-radius: 999px; margin: 0 0 24px; }
.slogan span + span { letter-spacing: 0; font-weight: 600; color: #ffffff; }
.hero-mark { display: flex; justify-content: center; align-items: center; }
.hero-mark svg { width: 100%; max-width: 380px; height: auto; }
.hero-mark .divider { display: none; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 56px; gap: 28px; }
  .hero-mark { order: -1; justify-content: flex-start; }
  .hero-mark svg { max-width: 220px; }
}

.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border-radius: 14px; font-weight: 700; font-size: 16px; text-decoration: none; }
.btn.white { background: #ffffff; color: #031e44; }
.btn.line { background: transparent; color: #ffffff; border: 1px solid rgba(255, 255, 255, 0.45); }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.ghost { background: var(--card); color: var(--heading); border: 1px solid var(--line); }

.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0 0; padding: 0; list-style: none; }
.pills li { background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 999px; padding: 5px 14px; font-size: 14px; color: #e6eefc; }

/* 구역 */
section.block { padding: 64px 0; }
.block h2 { font-size: clamp(25px, 3.6vw, 36px); line-height: 1.35; letter-spacing: -0.02em; margin: 0 0 12px; font-weight: 800; }
.block .sub { color: var(--text-2); margin: 0 0 32px; max-width: 700px; font-size: 17px; }
.kicker { font-size: 13px; font-weight: 800; letter-spacing: 0.08em; color: var(--accent-text); margin: 0 0 8px; text-transform: uppercase; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid.four { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.grid.two { grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); }
@media (max-width: 360px) { .grid, .grid.four { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.grid.two { grid-template-columns: 1fr; } }

.card { background: var(--card); border-radius: var(--radius); padding: 26px; border: 1px solid var(--line); }
.card h3 { font-size: 19px; margin: 0 0 8px; letter-spacing: -0.01em; line-height: 1.4; }
.card p { margin: 0; color: var(--text-2); font-size: 15.5px; }
.num { display: inline-flex; width: 34px; height: 34px; border-radius: 10px; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent-text); font-weight: 800; font-size: 15px; margin-bottom: 14px; }

/* 앱 카드 */
.app { display: flex; flex-direction: column; gap: 14px; }
.app-head { display: flex; align-items: center; gap: 14px; }
.app-icon { width: 58px; height: 58px; border-radius: 17px; background: var(--accent-soft); color: var(--accent-text); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 22px; flex: none; }
.app-name { font-size: 21px; font-weight: 800; margin: 0; line-height: 1.3; }
.app-name span { display: block; font-size: 14px; font-weight: 600; color: var(--text-3); }
.app .kind { font-weight: 700; color: var(--heading); font-size: 16px; margin: 0; }
.app ul { margin: 0; padding-left: 20px; color: var(--text-2); font-size: 15.5px; }
.app ul li { margin: 3px 0; }
.app-foot { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: auto; }
.tag { font-size: 13px; font-weight: 700; color: var(--text-2); background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; }
.tag.soon { color: var(--accent-text); background: var(--accent-soft); border-color: transparent; }

/* 안내 상자 */
.note { background: var(--warn-soft); border: 1px solid var(--warn-line); border-radius: var(--radius); padding: 24px 26px; }
.note h3 { margin: 0 0 8px; font-size: 18px; }
.note p { margin: 0; color: var(--text-2); }

/* 자주 묻는 질문 */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; font-weight: 700; font-size: 16.5px; color: var(--heading); padding: 18px 30px 18px 0; position: relative; min-height: 48px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 400; color: var(--text-3); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 18px; color: var(--text-2); }

/* 문의 */
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.contact-list li { display: flex; flex-direction: column; gap: 2px; }
.contact-list .k { font-size: 14px; color: var(--text-3); font-weight: 600; }
.contact-list a, .contact-list strong { font-size: 18px; font-weight: 700; text-decoration: none; color: var(--accent-text); }
.contact-list strong { color: var(--heading); }
.small { font-size: 14px; color: var(--text-3); margin: 18px 0 0; }

/* 브랜드 띠 (바닥글 위) */
.band { background: var(--navy); color: #ffffff; }
.band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 28px; padding-bottom: 28px; }
.band svg { height: 36px; width: auto; }
.band p { margin: 0; color: #cfe0ff; font-weight: 700; letter-spacing: 0.04em; font-size: 14px; }
.band p span { display: block; letter-spacing: 0; color: #ffffff; font-size: 16px; }

/* 바닥글 */
.foot { padding: 32px 0 48px; color: var(--text-3); font-size: 14px; }
.foot .wrap { display: grid; gap: 10px; }
.foot nav { display: flex; gap: 6px 18px; flex-wrap: wrap; }
.foot a { color: var(--text-2); }
.foot p { margin: 0; }

/* 문서 (개인정보처리방침·브랜드 자료) */
.doc { padding: 48px 0 24px; }
.doc .card { padding: clamp(22px, 4vw, 48px); }
.doc h1 { font-size: clamp(28px, 4.4vw, 40px); letter-spacing: -0.02em; margin: 0 0 8px; line-height: 1.3; }
.doc h2 { font-size: 20px; margin: 36px 0 10px; letter-spacing: -0.01em; }
.doc h3 { font-size: 17px; margin: 24px 0 8px; }
.doc p, .doc li { color: var(--text-2); }
.doc .meta { color: var(--text-3); font-size: 14px; margin: 0 0 24px; }
.doc .summary { background: var(--accent-soft); border-radius: var(--radius-sm); padding: 18px 20px; color: var(--text); margin: 0 0 8px; }
.doc .toc { display: flex; gap: 10px 18px; flex-wrap: wrap; margin: 0 0 8px; }
.doc .toc a { font-weight: 700; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.doc table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 560px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--text-2); }
.doc th { color: var(--heading); font-weight: 700; background: var(--bg); }
.doc hr { border: 0; border-top: 1px solid var(--line); margin: 48px 0; }

/* 브랜드 자료 */
.swatches { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); margin: 12px 0 0; }
.swatch { border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); }
.swatch .chip { height: 84px; }
.swatch .chip.navy { background: #031e44; }
.swatch .chip.blue { background: #0e58de; }
.swatch .chip.deep { background: #000928; }
.swatch .chip.mist { background: #eef2f6; }
.swatch div:last-child { padding: 10px 14px; font-size: 14px; color: var(--text-2); background: var(--card); }
.swatch strong { display: block; color: var(--heading); }
.assets { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); margin: 12px 0 0; }
.asset { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--card); }
.asset .pv { height: 140px; display: flex; align-items: center; justify-content: center; padding: 18px; background: #f7f9fc; }
.asset .pv.dark { background: #031e44; }
.asset .pv img { max-width: 100%; max-height: 100%; }
.asset div:last-child { padding: 12px 14px; font-size: 14px; }
.asset strong { display: block; color: var(--heading); }

@media (max-width: 480px) {
  section.block { padding: 48px 0; }
  .card { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
