/* 큐대표 — 공통 스타일 (한국어/영문 페이지 공용) */
:root {
  color-scheme: light;
  --ink: #17191e;
  --ink-soft: #3b414c;
  --muted: #686e79;
  --accent: #2d50ed;
  --accent-dark: #2140c9;
  --accent-tint: #eef1fd;
  --rule: #e8e9ee;
  --line: #c9cdd6;
  --surface: #f6f7f9;
  --header-h: 72px;
  --font: Arial, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}

.wrap {
  width: min(100%, 1440px);
  margin-inline: auto;
  padding-inline: 7%;
}

.skip-link {
  position: absolute;
  top: -80px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 15px;
  text-decoration: none;
}

.skip-link:focus { top: 12px; }

/* 헤더 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--rule);
  background: rgba(255, 255, 255, .97);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.mark {
  display: grid;
  flex: none;
  width: 30px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

.brand-name {
  font-size: 16px;
  font-weight: 700;
}

.brand-sub {
  padding-left: 10px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.2;
}

.nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: color .2s, background-color .2s;
}

.nav a:hover {
  background: var(--accent-tint);
  color: var(--accent);
}

.nav .lang a {
  margin-left: 6px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
}

/* 공통 타이포그래피 */
.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
}

h1, h2, h3 {
  margin: 0;
  color: var(--ink);
}

h1 {
  font-size: clamp(44px, 6.4vw, 92px);
  font-weight: 750;
  line-height: 1.17;
  letter-spacing: -.045em;
}

h1 span { color: var(--accent); }

.hero-en h1 {
  font-size: clamp(40px, 5vw, 72px);
  letter-spacing: -.035em;
}

h2 {
  font-size: clamp(30px, 3.4vw, 46px);
  font-weight: 750;
  line-height: 1.3;
  letter-spacing: -.04em;
}

h3 {
  font-size: clamp(20px, 1.7vw, 23px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -.025em;
}

.num {
  display: block;
  margin-bottom: 18px;
  color: var(--accent);
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
}

.tag {
  display: inline-block;
  margin-bottom: 14px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-tint);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.tag-muted {
  background: var(--surface);
  color: var(--ink-soft);
}

/* 버튼 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: color .2s, background-color .2s, border-color .2s;
}

.btn-primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  border-color: var(--accent-dark);
  background: var(--accent-dark);
}

.btn-secondary {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

.btn-secondary:hover { border-color: var(--ink); }

/* 메인 소개 */
.hero { padding: clamp(88px, 12vh, 150px) 0 0; }

.hero .eyebrow { margin-bottom: 26px; }

.lead {
  max-width: 46em;
  margin: 32px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.85;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 44px;
}

.hero-note {
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.audience {
  margin-top: clamp(72px, 10vh, 120px);
  padding: 28px 0 clamp(56px, 8vh, 88px);
  border-top: 1px solid var(--rule);
}

.audience h2 {
  margin-bottom: 18px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.5;
}

.audience ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.audience li {
  position: relative;
  padding-left: 18px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.6;
}

.audience li::before {
  position: absolute;
  top: .62em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

/* 섹션 공통 */
.section {
  padding: clamp(80px, 9vw, 136px) 0;
  border-top: 1px solid var(--rule);
}

.section-muted {
  border-top: 0;
  background: var(--surface);
}

.section-head {
  max-width: 780px;
  margin-bottom: clamp(44px, 5vw, 72px);
}

.section-intro {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

/* 개발 서비스 */
.services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px clamp(28px, 3.4vw, 56px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.service {
  padding-top: 26px;
  border-top: 2px solid var(--ink);
}

.service > p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.service .scope-label {
  margin: 28px 0 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.scope {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
  list-style: none;
}

.scope li {
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.6;
}

/* AI 활용 방식 */
.ai-list {
  margin: 0;
  padding: 0;
  border-top: 2px solid var(--ink);
  list-style: none;
}

.ai-item {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 12px 56px;
  padding: 36px 0;
  border-bottom: 1px solid #dfe1e7;
}

.ai-item p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.85;
}

.ai-item p + p {
  margin-top: 8px;
  color: var(--muted);
}

/* 적용 예시 */
.examples {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.example {
  padding: 32px 28px 34px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: #fff;
}

.example h3 { margin-bottom: 26px; }

.flow {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: flow;
}

.flow li {
  position: relative;
  padding: 0 0 20px 38px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 26px;
}

.flow li:last-child { padding-bottom: 0; }

.flow li::before {
  position: absolute;
  top: 1px;
  left: 0;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  content: counter(flow);
  counter-increment: flow;
}

.flow li:not(:last-child)::after {
  position: absolute;
  top: 29px;
  bottom: 3px;
  left: 12px;
  width: 1px;
  background: var(--line);
  content: "";
}

/* 개발 과정 */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px clamp(24px, 2.6vw, 40px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.step .num {
  margin-bottom: 14px;
  font-size: 30px;
  letter-spacing: -.02em;
}

.step p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

/* 운영자 소개 */
.about {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 32px 64px;
  align-items: start;
}

.about .section-head { margin-bottom: 0; }

.about-body > p {
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.85;
}

.about-body > p + p { margin-top: 16px; }

.facts {
  margin: 40px 0 0;
  border-top: 1px solid var(--rule);
}

.facts div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
}

.facts dt {
  color: var(--muted);
  font-size: 15px;
}

.facts dd {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
}

.facts a {
  text-decoration-color: var(--line);
  text-underline-offset: 4px;
}

.facts a:hover { color: var(--accent); }

/* 문의 */
.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 48px 64px;
  align-items: end;
}

.contact h2 { font-size: clamp(34px, 4.4vw, 60px); }

.contact .section-intro { max-width: 34em; }

.contact-label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 14px;
}

.email {
  display: inline-block;
  padding-bottom: 8px;
  border-bottom: 1px solid #aab1be;
  color: var(--ink);
  font-size: clamp(21px, 2.2vw, 28px);
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color .2s, border-color .2s;
}

.email:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.contact .btn { margin-top: 28px; }

/* 푸터 */
.site-footer { border-top: 1px solid var(--rule); }

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  padding-block: 28px 36px;
  color: #707581;
  font-size: 14px;
}

.footer-inner strong {
  color: var(--ink-soft);
  font-weight: 700;
}

.footer-inner a {
  color: inherit;
  text-underline-offset: 4px;
}

.footer-inner a:hover { color: var(--accent); }

.footer-brand {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
}

.footer-biz {
  flex-basis: 100%;
  margin: 0;
}

/* 반응형 */
@media (max-width: 1080px) {
  .audience ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services { grid-template-columns: 1fr; }
  .service {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0 48px;
  }
  .service > .num, .service > h3, .service > p:not(.scope-label) { grid-column: 1; }
  .service .scope-label { grid-column: 2; grid-row: 1; margin-top: 0; }
  .service .scope { grid-column: 2; grid-row: 2 / span 2; align-self: start; }
  .examples { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 12px; }
  .wrap { padding-inline: 22px; }
  .site-header { position: static; }
  .header-inner {
    position: relative;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding-block: 16px 10px;
  }
  .brand {
    display: grid;
    grid-template-columns: auto auto;
    column-gap: 10px;
    align-items: center;
  }
  .mark { grid-row: span 2; }
  .brand-name { align-self: end; line-height: 1.25; }
  .brand-sub {
    align-self: start;
    padding-left: 0;
    border-left: 0;
    font-size: 12px;
    line-height: 1.3;
  }
  .nav { width: 100%; }
  .nav ul {
    flex-wrap: wrap;
    gap: 2px;
    margin-left: -8px;
  }
  .nav a { padding: 8px; }
  .nav .lang {
    position: absolute;
    top: 16px;
    right: 22px;
  }
  .nav .lang a { margin-left: 0; }
  h1 { font-size: clamp(38px, 10.4vw, 60px); }
  .hero-en h1 { font-size: clamp(32px, 8.6vw, 48px); }
  .hero .eyebrow { margin-bottom: 20px; font-size: 13px; }
  .lead { font-size: 17px; }
  .lead br { display: none; }
  .actions .btn { flex: 1 1 auto; }
  .audience ul { grid-template-columns: 1fr; }
  .service { display: block; }
  .service .scope-label { margin-top: 28px; }
  .ai-item { grid-template-columns: 1fr; padding: 30px 0; }
  .ai-item p { font-size: 16px; }
  .example { padding: 28px 22px 30px; }
  .steps { grid-template-columns: 1fr; }
  .about, .contact-inner { grid-template-columns: 1fr; }
  .facts div { grid-template-columns: 84px minmax(0, 1fr); }
  .section-intro { font-size: 17px; }
}
