/* 메인 — 시안 Main-B1 (PC 1440) / Mobile-B1 (390) */

.home-sec { padding-top: var(--section-gap); }

/* 히어로 */
.hero { position: relative; height: 780px; overflow: hidden; background: var(--black); color: var(--white); }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(22, 27, 29, .82) 0%, rgba(22, 27, 29, .55) 38%, rgba(22, 27, 29, .08) 70%),
    linear-gradient(0deg, rgba(22, 27, 29, .55) 0%, rgba(22, 27, 29, 0) 35%);
}
.hero__body { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: center; gap: 32px; }
.hero__title em { font-style: normal; color: var(--vermilion-400); }
.hero__desc { max-width: 460px; font-size: 20px; line-height: 1.6; color: rgba(255, 255, 255, .86); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__foot { position: absolute; left: 0; right: 0; bottom: 32px; }
.hero__foot-inner { display: flex; justify-content: flex-end; align-items: center; gap: 20px; }
.hero__scroll { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; letter-spacing: .12em; color: rgba(255, 255, 255, .7); }
.hero__scroll-line { position: relative; width: 1.5px; height: 24px; overflow: hidden; background: rgba(255, 255, 255, .3); }
.hero__scroll-line span { position: absolute; left: 0; top: 0; width: 100%; height: 10px; background: var(--white); }
.vctl {
  width: 48px; height: 48px; padding: 0; border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .6); background: rgba(22, 27, 29, .35); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: background .2s ease, border-color .2s ease;
}
.vctl:hover, .vctl:focus-visible { background: var(--vermilion); border-color: var(--vermilion); }
.vctl__play { display: none; }
.vctl[aria-pressed="true"] .vctl__pause { display: none; }
.vctl[aria-pressed="true"] .vctl__play { display: block; }

/* 실적 띠 */
.stats { background: var(--charcoal); color: var(--ivory); }
.stats__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; padding-top: 56px; padding-bottom: 56px; }
.stats__item { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 8px 24px; text-align: center; }
.stats__item + .stats__item { border-left: 1px solid rgba(255, 255, 255, .14); }
.stats__item b { font-size: 44px; line-height: 1.3; letter-spacing: -.015em; }
.stats__item b.is-accent { color: var(--vermilion-400); }
.stats__item span { font-size: 16px; color: #C9D0D2; }

/* 핵심 강점 */
#about { display: flex; flex-direction: column; gap: 56px; }
.strengths__head { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.strengths__head .section-label { margin: 0; }
.strengths__head .lead { max-width: 640px; }
.strengths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1.5px solid var(--black); border-bottom: 1.5px solid var(--black); }
.strengths__item { display: flex; flex-direction: column; gap: 24px; padding: 48px 40px; }
.strengths__item:first-child { padding-left: 0; }
.strengths__item:last-child { padding-right: 0; }
.strengths__item + .strengths__item { border-left: 1px solid var(--border); }
.strengths__icon { width: 64px; height: 64px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--vermilion-50); color: var(--vermilion); }
.strengths__text { display: flex; flex-direction: column; gap: 24px; }
.strengths__en { font-size: 14px; font-weight: 600; letter-spacing: .08em; color: var(--vermilion-600); }
.strengths__text h3 { font-size: 28px; line-height: 1.4; }
.strengths__text p { font-size: 18px; line-height: 1.6; color: var(--gray-700); }

/* 주요 기능 탭 */
#features { display: flex; flex-direction: column; gap: 48px; }
.feat-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.feat-panel { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding: 32px; border-radius: var(--radius-card); background: var(--white); }
.feat-panel[hidden] { display: none; }
.feat-panel:focus-visible { outline-offset: 4px; }
.feat-panel__img { flex: 0 1 400px; width: 100%; max-width: 400px; min-width: 0; aspect-ratio: 397 / 513; object-fit: cover; border-radius: 20px; }
.feat-panel__body { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.feat-panel__no { font-size: 16px; font-weight: 600; color: var(--vermilion); }
.feat-panel__body h3 { font-size: 40px; line-height: 1.3; letter-spacing: -.015em; }
.feat-panel__body p { font-size: 20px; line-height: 1.6; color: var(--gray-700); }
.js .feat-panel.is-active { animation: dUp .5s var(--ease-out) both; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 8px 16px; border-radius: var(--radius-pill); background: var(--sand-pale); color: var(--archive); font-size: 15px; font-weight: 600; }
.feat-panel__body .text-link { align-self: flex-start; margin-top: 8px; }

/* 구축 사례 */
#cases { display: flex; flex-direction: column; gap: 48px; }
.home-cases { display: flex; flex-wrap: wrap; gap: 48px; }
.case-feature { flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 20px; color: inherit; text-decoration: none; }
.case-feature__img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-img); background: var(--sand-pale); }
.case-feature__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.case-feature:hover .case-feature__img img { transform: scale(1.03); }
.case-feature__badge { position: absolute; left: 20px; top: 20px; padding: 6px 14px; border-radius: var(--radius-pill); background: var(--vermilion); color: var(--white); font-size: 14px; font-weight: 600; }
.case-meta { font-size: 14px; color: var(--gray-500); }
.case-feature__title { font-size: 32px; line-height: 1.35; letter-spacing: -.01em; }
.case-feature:hover .case-feature__title { color: var(--vermilion-600); }
.case-feature__desc { font-size: 18px; line-height: 1.6; color: var(--gray-700); }
.case-rows { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; }
.case-rows li:last-child .case-row { border-bottom: 1px solid var(--border); }
.case-row {
  display: grid; grid-template-columns: 120px 1fr auto; gap: 20px; align-items: center;
  padding: 20px 0; border-top: 1px solid var(--border); color: var(--black); text-decoration: none;
}
.case-row img, .case-row__noimg { width: 120px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; background: var(--sand-pale); }
.case-row__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.case-row__text .case-meta { font-size: 13px; }
.case-row__text b { font-size: 20px; line-height: 1.4; transition: color .2s ease; }
.case-row:hover b, .case-row:focus-visible b { color: var(--vermilion-600); }
.case-row__arrow { font-size: 20px; }
.home-cases__more-m { display: none; }

/* 품질 인증 + 진행 과정 */
.why { margin-top: var(--section-gap); background: var(--charcoal); color: var(--ivory); }
.why__inner { display: flex; flex-direction: column; gap: 56px; padding-top: 128px; padding-bottom: 128px; }
.why .section-label { color: var(--vermilion-400); }
.why__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 64px; }
.why__lead { flex: 0 1 440px; font-size: 18px; line-height: 1.6; color: #C9D0D2; }
.certs { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 24px; }
.cert { display: flex; flex-wrap: wrap; align-items: center; gap: 32px; padding: 40px; border-radius: var(--radius-img); background: var(--ivory); color: var(--black); }
.cert__mark {
  flex: 0 0 128px; height: 128px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: var(--white); text-align: center;
}
.cert__mark--gs { background: var(--vermilion); }
.cert__mark--gs span { font-size: 14px; font-weight: 600; letter-spacing: .06em; line-height: 1.2; max-width: 90px; }
.cert__mark--gs b { font-size: 40px; line-height: 1; }
.cert__mark--gs small { font-size: 20px; }
.cert__mark--wa { background: var(--black); gap: 6px; }
.cert__mark--wa span { font-size: 13px; font-weight: 600; letter-spacing: .06em; }
.cert__text { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.cert__text h3 { font-size: 32px; letter-spacing: -.01em; line-height: 1.3; }
.cert__no { font-size: 14px; font-weight: 600; color: var(--vermilion-700); }
.cert__text p { font-size: 16px; line-height: 1.6; color: var(--gray-700); }
.points { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.points li { display: flex; flex-direction: column; gap: 10px; padding-top: 24px; border-top: 1px solid var(--gray-700); }
.points b { font-size: 22px; }
.points span { font-size: 16px; line-height: 1.6; color: #C9D0D2; }
.process { display: flex; flex-direction: column; gap: 40px; margin-top: 40px; }
.process__title { font-size: clamp(28px, 2.8vw, 40px); line-height: 1.3; letter-spacing: -.015em; }
.process__steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.process__steps li { display: flex; flex-direction: column; gap: 16px; }
.process__no { display: flex; align-items: center; gap: 12px; }
.process__no span {
  width: 48px; height: 48px; flex: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--ivory); font-weight: 700;
}
.process__no span.is-on { background: var(--vermilion); border-color: var(--vermilion); }
.process__no i { flex: 1; height: 1px; background: var(--gray-700); }
.process__steps h3 { font-size: 24px; }
.process__steps p { font-size: 16px; line-height: 1.6; color: #C9D0D2; }

/* 문의 */
.contact { display: flex; flex-wrap: wrap; gap: 64px; padding-top: var(--section-gap); padding-bottom: var(--section-gap); }
.contact:focus { outline: none; }
.contact__intro { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.contact__intro .section-label { margin: 0; }
.contact__lead { font-size: 18px; line-height: 1.6; color: var(--gray-700); }
.contact__info { display: flex; flex-direction: column; gap: 16px; font-size: 18px; }
.contact__info dt { font-size: 14px; color: var(--gray-500); }
.contact__info a { color: var(--black); text-decoration: none; }
.contact__info a:hover { color: var(--vermilion-600); text-decoration: underline; }
.contact__circle { width: 160px; height: 160px; margin-top: 16px; border-radius: 50%; background: var(--vermilion); }

.cform {
  flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 24px;
  padding: 48px; border-radius: var(--radius-img); background: var(--white); color: var(--black);
  box-shadow: 0 20px 60px rgba(22, 27, 29, .08);
}
.cform__note { font-size: 13px; color: var(--gray-500); margin-bottom: -8px; }
.req { color: var(--vermilion-700); margin-left: 2px; }
.cform__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; height: 52px; padding: 0 16px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--ivory); color: var(--black); font-size: 16px;
  transition: border-color .2s ease, background .2s ease;
}
.field textarea { height: 104px; min-height: 104px; padding: 14px 16px; resize: vertical; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: var(--gray-500); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--black); background: var(--white); outline: none; box-shadow: 0 0 0 3px var(--vermilion-100); }
.field [aria-invalid="true"] { border-color: var(--vermilion-700); }
.field-error { font-size: 13px; color: var(--vermilion-700); }
.cform__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cform__agree { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 15px; color: var(--gray-700); }
.cform__agree input { width: 20px; height: 20px; margin: 0; accent-color: var(--vermilion); }
.cform__agree a { font-size: 14px; color: var(--gray-700); }
.cform__status:empty { display: none; }
.cform__status { padding: 14px 16px; border-radius: 10px; background: var(--vermilion-50); color: var(--vermilion-800); font-size: 15px; }
.cform__status.is-ok { background: var(--live-bg); color: var(--live-text); }
.cform__submit { width: 100%; justify-content: space-between; }

/* 태블릿 */
@media (max-width: 1023px) {
  .strengths { grid-template-columns: 1fr; }
  .strengths__item, .strengths__item:first-child, .strengths__item:last-child { padding: 36px 0; }
  .strengths__item { flex-direction: row; align-items: flex-start; }
  .strengths__item + .strengths__item { border-left: 0; border-top: 1px solid var(--border); }
  .strengths__text { gap: 10px; }
}

/* 모바일 (Mobile-B1) */
@media (max-width: 767px) {
  .home-sec { padding-top: 96px; }
  .sec-head__title { gap: 16px; }
  .section-label { font-size: 12px; }

  .hero { height: 640px; }
  .hero__video { object-position: 62% 50%; }
  .hero__shade { background: linear-gradient(0deg, rgba(22, 27, 29, .92) 0%, rgba(22, 27, 29, .6) 45%, rgba(22, 27, 29, .1) 75%); }
  .hero__body { justify-content: flex-end; gap: 16px; padding-bottom: 96px; }
  .hero__title { line-height: 1.25; }
  .hero__desc { font-size: 16px; line-height: 1.65; }
  .hero__actions .btn:first-child { width: 100%; height: 56px; justify-content: space-between; padding-left: 24px; }
  .hero__actions .btn:first-child .ic { width: 44px; height: 44px; }
  .hero__actions .btn.ghost { display: none; }
  .hero__foot { bottom: 28px; }
  .hero__scroll { display: none; }
  .vctl { width: 40px; height: 40px; }

  .stats__list { padding: 28px 12px; }
  .stats__item { gap: 4px; padding: 0 6px; }
  .stats__item b { font-size: 24px; letter-spacing: -.01em; }
  .stats__item span { font-size: 12px; line-height: 1.4; }

  #about { gap: 24px; }
  .strengths__head { align-items: flex-start; text-align: left; gap: 24px; }
  .strengths__head .h2--xl { font-size: 32px; line-height: 1.3; }
  .strengths__head .lead { display: none; }
  .strengths { border-bottom: 0; }
  .strengths__item, .strengths__item:first-child, .strengths__item:last-child { padding: 28px 0; display: grid; grid-template-columns: 52px 1fr; gap: 16px; border-bottom: 1px solid var(--border); }
  .strengths__item + .strengths__item { border-top: 0; }
  .strengths__icon { width: 52px; height: 52px; }
  .strengths__icon svg { width: 24px; height: 24px; }
  .strengths__text { gap: 6px; }
  .strengths__en { font-size: 12px; }
  .strengths__text h3 { font-size: 20px; }
  .strengths__text p { font-size: 15px; }

  #features { gap: 24px; }
  .feat-tabs { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter); scrollbar-width: none; }
  .feat-tabs::-webkit-scrollbar { display: none; }
  .feat-tabs .tab { flex: none; height: 44px; padding: 0 18px; font-size: 15px; }
  .feat-panel { flex-direction: column; align-items: stretch; gap: 16px; padding: 16px; border-radius: 20px; }
  .feat-panel__img { flex: none; max-width: none; aspect-ratio: 397 / 450; border-radius: 14px; }
  .feat-panel__body { flex: none; gap: 10px; padding: 0 8px 8px; }
  .feat-panel__no { display: none; }
  .feat-panel__body h3 { font-size: 22px; }
  .feat-panel__body p { font-size: 15px; }
  .chips { gap: 6px; }
  .chips li { padding: 6px 12px; font-size: 13px; }
  .text-link { font-size: 15px; }

  #cases { gap: 24px; }
  .sec-head__more { display: none; }
  .home-cases { flex-direction: column; gap: 24px; }
  .case-feature { flex: none; gap: 12px; }
  .case-feature__img { border-radius: 18px; }
  .case-feature__badge { left: 14px; top: 14px; padding: 5px 12px; font-size: 12px; }
  .case-meta { font-size: 13px; }
  .case-feature__title { font-size: 22px; }
  .case-feature__desc { display: none; }
  .case-rows { flex: none; }
  .case-row { grid-template-columns: 96px 1fr; gap: 14px; padding: 14px 0; }
  .case-row img, .case-row__noimg { width: 96px; border-radius: 8px; }
  .case-row__text { gap: 2px; }
  .case-row__text .case-meta { font-size: 12px; }
  .case-row__text b { font-size: 16px; }
  .case-row__arrow { display: none; }
  .home-cases__more-m { display: flex; justify-content: space-between; width: 100%; }

  .why { margin-top: 96px; }
  .why__inner { gap: 40px; padding-top: 72px; padding-bottom: 72px; }
  .why__head { gap: 16px; }
  .why .h2--xl { font-size: 30px; line-height: 1.3; }
  .why__lead { flex: none; font-size: 15px; }
  .certs { grid-template-columns: 1fr; gap: 16px; }
  .cert { display: grid; grid-template-columns: 76px 1fr; gap: 16px; padding: 20px; border-radius: 18px; }
  .cert__mark { width: 76px; height: 76px; }
  .cert__mark--gs span { display: none; }
  .cert__mark--gs b { font-size: 26px; }
  .cert__mark--gs small { font-size: 14px; }
  .cert__mark--wa svg { width: 32px; height: 32px; }
  .cert__mark--wa span { display: none; }
  .cert__text { gap: 4px; }
  .cert__text h3 { font-size: 18px; }
  .cert__no { font-size: 12px; }
  .cert__text p { font-size: 13px; }
  .points { grid-template-columns: 1fr; gap: 18px; }
  .points li { gap: 6px; padding-top: 16px; }
  .points b { font-size: 18px; }
  .points span { font-size: 14px; }
  .process { gap: 20px; margin-top: 0; }
  .process__title { font-size: 22px; }
  .process__steps { gap: 20px; }
  .process__steps li { display: grid; grid-template-columns: 40px 1fr; gap: 4px 12px; align-items: center; }
  .process__no { grid-row: span 2; align-self: start; }
  .process__no span { width: 40px; height: 40px; font-size: 14px; }
  .process__no i { display: none; }
  .process__steps h3 { font-size: 16px; font-weight: 600; }
  .process__steps p { font-size: 14px; }

  .contact { flex-direction: column; gap: 20px; padding-top: 72px; padding-bottom: 72px; }
  .contact__intro { flex: none; gap: 20px; }
  .contact__intro .h2 { font-size: 28px; line-height: 1.35; }
  .contact__lead { display: none; }
  .contact__info { flex-direction: row; flex-wrap: wrap; gap: 4px 12px; font-size: 15px; }
  .contact__info dt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .contact__info a { color: var(--gray-700); }
  .contact__circle { display: none; }
  .cform { flex: none; gap: 16px; padding: 24px 20px; border-radius: 20px; box-shadow: 0 12px 40px rgba(22, 27, 29, .08); }
  .cform__grid { grid-template-columns: 1fr; gap: 16px; }
  .field { gap: 6px; }
  .field input, .field select { height: 48px; padding: 0 14px; }
  .field textarea { min-height: 96px; padding: 12px 14px; }
  .cform__agree { font-size: 13px; gap: 8px; }
  .cform__submit { height: 56px; }
}

/* 시안에서 행간을 지정하지 않은(기본값) 짧은 글자들은 1.2 로 맞춘다 */
.stats__item b, .stats__item span, .strengths__en, .feat-panel__no, .case-meta, .case-feature__badge,
.case-row__arrow, .cert__no, .cert__text h3, .points b, .process__steps h3, .process__no span,
.field label, .cform__agree, .contact__info, .tab, .chips li { line-height: 1.2; }
@media (max-width: 767px) { .stats__item span { line-height: 1.4; } }
/* 모바일: 인증 카드 다음에 설명 문단 (Mobile-B1 순서) */
@media (max-width: 767px) {
  .why__inner { gap: 16px; }
  .why__head { display: contents; }
  .why__head .sec-head__title { order: 1; }
  .certs { order: 2; }
  .why__lead { order: 3; flex: none; width: 100%; }
  .points { order: 4; margin-top: 24px; }
  .process { order: 5; margin-top: 24px; }
  .strengths__text h3 { line-height: 1.3; }
  .case-feature__title, .feat-panel__body h3 { line-height: 1.3; }
}

/* 문의폼 오류 표시 */
.cform__agree .field-error { flex-basis: 100%; margin: 0; }
.cform__submit[aria-busy="true"] { opacity: .7; cursor: progress; }
