/* =====================================================================
   제트소프트(ZSOFT) 홈페이지 — 디자인 토큰 + 컴포넌트 스타일
   라이트 테마 기본, html.theme-dark 로 다크 토큰 오버라이드
   ===================================================================== */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }

:root {
  --bg:#ffffff; --bg-soft:#f2f7fb; --surface:#ffffff; --card:#ffffff;
  --border:#e4edf5; --ink:#0c2336; --body:#43566a; --muted:#7589a0;
  --brand:#055d96; --accent:#0090da; --accent-soft:#e8f4fc; --accent-ink:#055d96;
  --footer-bg:#0a2236; --footer-ink:#cfdcea; --footer-muted:#7d93a8; --footer-border:#1b3a55;
  --shadow:0 22px 55px -28px rgba(8,42,70,.30); --grid:rgba(5,93,150,.06);
}

html.theme-dark {
  --bg:#06182a; --bg-soft:#0a2138; --surface:#0d2840; --card:#0f2c47;
  --border:#1d3f5c; --ink:#eaf3fb; --body:#a9bccf; --muted:#7890a5;
  --brand:#2f97d8; --accent:#33a7ec; --accent-soft:#103049; --accent-ink:#7cc6f0;
  --shadow:0 26px 64px -30px rgba(0,0,0,.62); --grid:rgba(120,180,230,.08);
}

body {
  background: var(--bg);
  color: var(--body);
  font-family: 'Pretendard', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-x: hidden;
  min-height: 100vh;
}

::selection { background: rgba(0,144,218,.22); }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .8; }
img { max-width: 100%; }
a { text-decoration: none; color: inherit; }

@keyframes zsFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes zsGlow  { 0%,100% { opacity:.55; } 50% { opacity:.9; } }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 28px; }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-size: 16px; font-weight: 700;
  padding: 15px 28px; border-radius: 12px; border: none; cursor: pointer;
  text-decoration: none; white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 14px 30px -12px var(--accent); }
.btn-outline { background: var(--surface); color: var(--ink); border: 1px solid var(--border); }
.btn-small { font-size: 14px; padding: 11px 20px; border-radius: 10px; }

/* ---------- 헤더 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
html.theme-dark .site-header { background: rgba(6,24,42,.86); }
.site-header__inner {
  max-width: 1200px; margin: 0 auto; padding: 0 28px; height: 72px;
  display: flex; align-items: center; gap: 28px;
}
.logo-link { background: none; border: none; padding: 0; cursor: pointer; display: flex; align-items: center; flex-shrink: 0; }
.logo-link img { height: 38px; width: auto; display: block; flex-shrink: 0; }
.site-nav { margin-left: auto; display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 14px 24px; }
.nav-link {
  background: none; border: none; cursor: pointer; font-family: inherit;
  font-size: 15px; font-weight: 600; color: var(--ink); padding: 6px 2px;
}
.theme-toggle { display: flex; align-items: center; gap: 2px; padding: 3px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 999px; }
.theme-btn {
  border: none; cursor: pointer; font-family: inherit; font-size: 13px; font-weight: 700;
  padding: 7px 15px; border-radius: 999px; transition: all .18s ease;
  background: transparent; color: var(--muted);
}
.theme-btn.is-active { background: var(--accent); color: #fff; }
.btn-contact-header {
  background: var(--accent); color: #fff; border: none; cursor: pointer; font-family: inherit;
  font-size: 14px; font-weight: 700; padding: 11px 20px; border-radius: 10px;
  box-shadow: 0 8px 20px -8px var(--accent);
}

/* ---------- 히어로 ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--border); }
.hero__grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 80% 75% at 70% 30%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 75% at 70% 30%, #000 30%, transparent 80%);
}
.hero__glow {
  position: absolute; top: -120px; right: -60px; width: 520px; height: 520px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 65%);
  opacity: .16; filter: blur(20px); animation: zsGlow 9s ease-in-out infinite;
}
.hero__inner {
  position: relative; max-width: 1200px; margin: 0 auto; padding: 88px 28px 96px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 56px; align-items: center;
}
.hero__copy { display: flex; flex-direction: column; align-items: flex-start; }
.badge {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px;
  background: var(--accent-soft); color: var(--accent-ink); border-radius: 999px;
  font-size: 13px; font-weight: 700; letter-spacing: .02em; margin-bottom: 26px;
}
.badge__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); display: inline-block; }
.hero__title { margin: 0; font-size: clamp(34px, 4vw, 52px); line-height: 1.15; letter-spacing: -0.025em; font-weight: 800; color: var(--ink); }
.hero__title .accent { color: var(--accent); }
.hero__lead { margin: 28px 0 0; font-size: clamp(16px,1.5vw,19px); line-height: 1.7; color: var(--body); max-width: 520px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 38px; }
.hero__shots { position: relative; min-width: 320px; min-height: 400px; }
.hero__shot {
  position: absolute; border-radius: 16px; overflow: hidden; border: 1px solid var(--border);
  box-shadow: var(--shadow); background: var(--card);
}
.hero__shot img { width: 100%; height: auto; display: block; }
.hero__shot--back { top: 62px; right: 0; width: 72%; transform: rotate(3deg); }
.hero__shot--front { top: 0; left: 0; width: 84%; animation: zsFloat 7s ease-in-out infinite; }

/* ---------- 신뢰 띠 ---------- */
.trust { border-bottom: 1px solid var(--border); background: var(--bg-soft); }
.trust__inner { max-width: 1200px; margin: 0 auto; padding: 30px 28px; display: flex; flex-wrap: wrap; gap: 18px 56px; align-items: center; justify-content: center; }
.trust__item { display: flex; align-items: center; gap: 11px; color: var(--body); font-size: 15px; font-weight: 600; }
.trust__num { font-size: 24px; font-weight: 800; color: var(--accent); white-space: nowrap; }
.trust__divider { width: 1px; height: 22px; background: var(--border); }

/* ---------- 섹션 공통 ---------- */
.section { padding: 96px 0; }
.section--soft { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section--anchor { scroll-margin-top: 92px; }
.section__head { margin-bottom: 48px; max-width: 640px; }
.eyebrow { font-size: 13px; font-weight: 800; letter-spacing: .14em; color: var(--accent); text-transform: uppercase; margin-bottom: 14px; }
.section__title { margin: 0; font-size: clamp(28px,3.4vw,40px); line-height: 1.2; letter-spacing: -0.02em; font-weight: 800; color: var(--ink); }
.section__lead { margin: 16px 0 0; font-size: 17px; line-height: 1.7; color: var(--body); }

/* ---------- 서비스 그리드 ---------- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 22px; }
.service-card {
  text-align: left; cursor: pointer; background: var(--card); border: 1px solid var(--border);
  border-radius: 20px; overflow: hidden; display: flex; flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  font-family: inherit;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--pa); }
.service-card__thumb { height: 178px; overflow: hidden; border-bottom: 1px solid var(--border); background: var(--bg-soft); }
.service-card__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.service-card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 13px; flex: 1; }
.service-card__top { display: flex; align-items: center; gap: 12px; }
.tile {
  width: 42px; height: 42px; flex-shrink: 0; border-radius: 12px;
  background: color-mix(in srgb, var(--pa) 14%, transparent); color: var(--pa);
  display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 800;
}
.service-card__name { margin: 0; font-size: 21px; font-weight: 800; color: var(--ink); letter-spacing: -0.01em; }
.service-card__sub { font-size: 13px; font-weight: 600; color: var(--muted); margin-top: 1px; }
.chip { margin-left: auto; flex-shrink: 0; font-size: 12px; font-weight: 700; color: var(--muted); background: var(--bg-soft); border: 1px solid var(--border); padding: 6px 11px; border-radius: 999px; }
.service-card__desc { margin: 0; font-size: 15px; line-height: 1.65; color: var(--body); }
.service-card__more { margin-top: auto; padding-top: 4px; display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 700; color: var(--pa); }

/* ---------- 회사 소개 ---------- */
.about__grid { max-width: 1200px; margin: 0 auto; padding: 0 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(340px,1fr)); gap: 56px; align-items: center; }
.about__title { text-wrap: balance; }
.about__copy p { margin: 22px 0 0; font-size: 17px; line-height: 1.75; color: var(--body); }
.about__copy p:first-of-type { margin-top: 22px; }
.values { display: grid; gap: 16px; }
.value-card { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 26px 28px; display: flex; gap: 20px; align-items: flex-start; }
.value-card__num { font-size: 13px; font-weight: 800; color: var(--accent); padding-top: 5px; min-width: 34px; }
.value-card__title { font-size: 19px; font-weight: 800; color: var(--ink); margin-bottom: 6px; }
.value-card__desc { font-size: 15px; line-height: 1.6; color: var(--body); }

/* ---------- 문의 ---------- */
.contact__grid { max-width: 1200px; margin: 0 auto; padding: 0 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(330px,1fr)); gap: 56px; }
.contact__info-list { display: flex; flex-direction: column; gap: 16px; margin-top: 36px; }
.contact__item { display: flex; align-items: baseline; gap: 16px; }
.contact__label { font-size: 13px; color: var(--muted); font-weight: 600; min-width: 72px; flex-shrink: 0; }
.contact__value { font-size: 16px; color: var(--ink); font-weight: 700; }
.contact-card { background: var(--card); border: 1px solid var(--border); border-radius: 22px; padding: 34px; box-shadow: var(--shadow); }
.contact-success { min-height: 300px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 14px; }
.contact-success__icon { width: 64px; height: 64px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 800; }
.contact-success__title { font-size: 22px; font-weight: 800; color: var(--ink); }
.contact-success__desc { font-size: 15px; color: var(--body); line-height: 1.6; }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 7px; font-size: 13px; font-weight: 700; color: var(--ink); }
.form-field input, .form-field select, .form-field textarea {
  font-family: inherit; font-size: 15px; padding: 13px 14px; border: 1px solid var(--border);
  border-radius: 11px; background: var(--bg); color: var(--ink); outline: none; width: 100%;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--accent); }
.form-field textarea { resize: vertical; }
.form-error { color: #e1483a; font-size: 12.5px; font-weight: 600; margin-top: -2px; }
.btn-submit {
  margin-top: 4px; background: var(--accent); color: #fff; border: none; cursor: pointer;
  font-family: inherit; font-size: 16px; font-weight: 700; padding: 15px; border-radius: 12px;
  box-shadow: 0 12px 26px -12px var(--accent); width: 100%;
}

/* ---------- 서비스 상세 ---------- */
.detail-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--border); background: var(--bg-soft); }
.detail-hero__glow { position: absolute; top: -140px; right: -80px; width: 480px; height: 480px; background: radial-gradient(circle, var(--pa) 0%, transparent 65%); opacity: .16; filter: blur(10px); }
.detail-hero__inner { position: relative; max-width: 1200px; margin: 0 auto; padding: 30px 28px 84px; }
.back-link { background: none; border: none; cursor: pointer; font-family: inherit; font-size: 15px; font-weight: 700; color: var(--body); padding: 8px 0; display: inline-flex; align-items: center; gap: 8px; }
.detail-hero__grid { margin-top: 30px; display: grid; grid-template-columns: repeat(auto-fit, minmax(320px,1fr)); gap: 48px; align-items: center; }
.detail-head__top { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.tile-lg { width: 58px; height: 58px; border-radius: 16px; background: color-mix(in srgb, var(--pa) 16%, transparent); color: var(--pa); display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 800; }
.cat-chip { font-size: 13px; font-weight: 700; color: var(--pa); background: color-mix(in srgb, var(--pa) 12%, transparent); padding: 7px 13px; border-radius: 999px; }
.detail-title { margin: 0; font-size: clamp(36px,4.6vw,54px); line-height: 1.08; letter-spacing: -0.025em; font-weight: 800; color: var(--ink); }
.detail-sub { margin-top: 10px; font-size: 19px; font-weight: 600; color: var(--muted); }
.detail-tagline { margin: 24px 0 0; font-size: clamp(17px,1.6vw,20px); line-height: 1.65; color: var(--ink); font-weight: 600; max-width: 520px; }
.detail-desc { margin: 16px 0 0; font-size: 16px; line-height: 1.7; color: var(--body); max-width: 520px; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.btn-pa { background: var(--pa); color: #fff; border: none; cursor: pointer; font-family: inherit; font-size: 16px; font-weight: 700; padding: 14px 26px; border-radius: 12px; box-shadow: 0 14px 30px -14px var(--pa); }
.btn-card { background: var(--card); color: var(--ink); border: 1px solid var(--border); cursor: pointer; font-family: inherit; font-size: 16px; font-weight: 700; padding: 14px 26px; border-radius: 12px; }
.detail-shot { border-radius: 18px; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); background: var(--card); min-width: 300px; }
.detail-shot img { width: 100%; height: auto; display: block; }

.features { padding: 88px 0; }
.features__title { margin: 0 0 44px; font-size: clamp(26px,3.2vw,36px); line-height: 1.2; letter-spacing: -0.02em; font-weight: 800; color: var(--ink); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); gap: 20px; }
.feature-card { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 28px; }
.feature-card__dot { display: inline-flex; width: 14px; height: 14px; border-radius: 5px; background: var(--pa); margin-bottom: 18px; }
.feature-card__title { margin: 0 0 9px; font-size: 19px; font-weight: 800; color: var(--ink); letter-spacing: -0.01em; }
.feature-card__desc { margin: 0; font-size: 15px; line-height: 1.65; color: var(--body); }

.cta-band-wrap { padding: 0 0 88px; }
.cta-band {
  background: linear-gradient(135deg, var(--pa) 0%, color-mix(in srgb, var(--pa) 60%, #0a2236) 100%);
  border-radius: 24px; padding: clamp(40px,5vw,64px); text-align: center; box-shadow: var(--shadow);
}
.cta-band__title { margin: 0; font-size: clamp(26px,3.2vw,38px); line-height: 1.2; font-weight: 800; color: #fff; letter-spacing: -0.02em; text-wrap: balance; }
.cta-band__desc { margin: 16px auto 0; font-size: 17px; line-height: 1.6; color: rgba(255,255,255,.88); max-width: 480px; }
.cta-band__btn { margin-top: 30px; background: #fff; color: #0c2336; border: none; cursor: pointer; font-family: inherit; font-size: 16px; font-weight: 800; padding: 15px 32px; border-radius: 12px; }

.others { padding: 0 0 96px; }
.others__title { margin: 0 0 28px; font-size: 22px; font-weight: 800; color: var(--ink); }
.others-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 18px; }
.other-card {
  text-align: left; cursor: pointer; background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; padding: 22px; display: flex; align-items: center; gap: 16px; font-family: inherit;
  transition: border-color .2s ease, transform .2s ease;
}
.other-card:hover { border-color: var(--pa); transform: translateY(-3px); }
.other-card .tile { width: 46px; height: 46px; border-radius: 13px; font-size: 20px; }
.other-card__name { font-size: 17px; font-weight: 800; color: var(--ink); }
.other-card__sub { font-size: 13px; color: var(--muted); font-weight: 600; margin-top: 2px; }

/* ---------- 푸터 ---------- */
.site-footer { background: var(--footer-bg); color: var(--footer-ink); border-top: 1px solid var(--footer-border); }
.footer__grid { max-width: 1200px; margin: 0 auto; padding: 64px 28px 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 44px; }
.footer__logo { height: 30px; width: auto; display: block; margin-bottom: 18px; }
.footer__desc { margin: 0; font-size: 14px; line-height: 1.7; color: var(--footer-muted); max-width: 280px; }
.footer__heading { font-size: 13px; font-weight: 800; letter-spacing: .04em; color: var(--footer-ink); margin-bottom: 18px; }
.footer__links { display: flex; flex-direction: column; gap: 11px; }
.footer__link { background: none; border: none; padding: 0; cursor: pointer; text-align: left; font-family: inherit; font-size: 14px; font-weight: 600; color: var(--footer-muted); line-height: 1.5; }
.footer__link:hover { color: var(--footer-ink); }
.footer__contact { display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.6; color: var(--footer-muted); }
.footer__bottom { border-top: 1px solid var(--footer-border); }
.footer__bottom-inner { max-width: 1200px; margin: 0 auto; padding: 22px 28px; display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: space-between; align-items: center; font-size: 13px; color: var(--footer-muted); }

/* ---------- 접근성 ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}

/* ---------- 반응형 ---------- */
@media (max-width: 720px) {
  .hero__inner { grid-template-columns: 1fr; padding: 56px 20px 64px; }
  .wrap, .about__grid, .contact__grid, .footer__grid, .footer__bottom-inner,
  .features__title, .section__head { padding-left: 20px; padding-right: 20px; }
  .contact__grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .site-header__inner { padding: 0 16px; gap: 10px; }
  .site-nav { flex-wrap: nowrap; gap: 8px; }
  /* 좁은 화면에서는 텍스트 내비(서비스/회사/문의)를 숨겨
     로고 · 라이트/다크 토글 · 문의하기 버튼이 한 줄에 들어가게 한다. */
  .nav-link { display: none; }
  .theme-btn { padding: 7px 11px; font-size: 12px; }
  .btn-contact-header { padding: 9px 14px; font-size: 13px; }
}

/* =========================================================================
   메인 히어로 — 코버플로우 슬라이더 (handoff_hero_update_2026)
   · 기존 디자인 토큰 사용: --card --border --ink --muted --bg-soft --shadow
   · 카드의 위치/확대/투명도/그림자/테두리색은 hero.js 가 인라인으로 제어
   ========================================================================= */

.zs-hero-slider {
  position: relative;
  min-width: 320px;
}

.zs-hero-glow {
  position: absolute;
  left: 50%; top: 46%;
  width: 70%; height: 70%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  opacity: .16;
  filter: blur(16px);
  transition: background .6s ease;
  pointer-events: none;
}

.zs-hero-stage {
  position: relative;
  height: 280px;
  overflow: hidden;
}

.zs-hero-card {
  position: absolute;
  left: 50%; top: 50%;
  width: 64%;
  margin-left: -32%;
  transform: translate(0, -50%) scale(1);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 10px 30px -18px rgba(8, 42, 70, .5);
  transition: transform .6s cubic-bezier(.22, 1, .36, 1),
              opacity .6s ease,
              border-color .6s ease,
              box-shadow .6s ease;
}


.zs-hero-shot {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-soft);
}
.zs-hero-shot img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.zs-hero-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
}
.zs-hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow);
}
.zs-hero-dotmark {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  transition: background .6s ease;
}
.zs-hero-name { font-size: 13px; font-weight: 800; color: var(--ink); }
.zs-hero-sub  { font-size: 12px; font-weight: 600; color: var(--muted); }

.zs-hero-dots { display: flex; gap: 7px; }
.zs-hero-dot {
  border: none;
  cursor: pointer;
  padding: 0;
  width: 7px; height: 7px;
  border-radius: 999px;
  background: var(--border);
  transition: all .4s ease;
}
