/* TECHNOLOGY (tech1~4) — 히어로는 history.css(.hx-*), 본문 공통은 subpage.css(.sx-*) 를 쓰고
   여기서는 TECHNOLOGY 전용 블록(.tk-*)만 다룬다. rem 대신 px 를 쓴다. */

/* ───────── 히어로 아래 페이지 탭 ───────── */
.tk-hero {
  padding-bottom: 0;
}

.sx .tk-tabs {
  display: flex;
  gap: 4px;
  margin-top: 56px;
  overflow-x: auto;
  scrollbar-width: none;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  animation: sx-up 0.8s var(--hx-ease) 0.2s backwards;
}

.tk-tabs::-webkit-scrollbar {
  display: none;
}

.tk-tabs a {
  position: relative;
  flex: none;
  display: flex;
  align-items: center;
  min-height: 60px;
  padding: 0 20px;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s ease;
}

.tk-tabs a:first-child {
  padding-left: 0;
}

.tk-tabs a::after {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  top: -1px;
  height: 2px;
  background: var(--hx-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--hx-ease);
}

.tk-tabs a:first-child::after {
  left: 0;
}

.tk-tabs a:hover,
.tk-tabs a:focus-visible,
.tk-tabs a[aria-current="page"] {
  color: #fff;
  outline: none;
}

.tk-tabs a[aria-current="page"]::after,
.tk-tabs a:focus-visible::after {
  transform: scaleX(1);
}

/* ───────── 구역 ───────── */
.tk-sec + .tk-sec {
  margin-top: 104px;
}

.sx .tk-text {
  max-width: 880px;
  margin-top: 24px;
  font-size: 17.5px;
  line-height: 1.9;
  letter-spacing: -0.01em;
  color: #33414f;
}

/* ───────── 번호 카드 (사업 내용 · 거래 유형) ───────── */
.sx .tk-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 40px;
}

.sx .tk-cards.is-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tk-card {
  position: relative;
  overflow: hidden;
  padding: 30px 32px 34px;
  border: 1px solid var(--hx-line);
  border-radius: 16px;
  background: #fff;
}

.tk-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--hx-accent), var(--hx-brand));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--hx-ease);
}

.tk-no {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  font-variant-numeric: tabular-nums;
  color: var(--hx-brand);
}

.sx .tk-card h4 {
  margin-top: 18px;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.03em;
  color: var(--hx-ink);
}

.sx .tk-card p {
  margin-top: 12px;
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--hx-sub);
}

.sx .tk-card ul {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--hx-line);
}

.tk-card li,
.tk-step li {
  position: relative;
  padding: 4px 0 4px 14px;
  font-size: 15.5px;
  line-height: 1.6;
  color: #3a4654;
}

.tk-card li::before,
.tk-step li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.9em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--hx-accent);
}

@media (hover: hover) {
  .tk-card {
    transition: transform 0.3s var(--hx-ease), box-shadow 0.3s ease, border-color 0.3s ease;
  }
  .tk-card:hover {
    transform: translateY(-4px);
    border-color: #c4d2df;
    box-shadow: 0 18px 40px -22px rgba(6, 40, 70, 0.35);
  }
  .tk-card:hover::after {
    transform: scaleX(1);
  }
}

/* ───────── 프로세스 4단계 ───────── */
.tk-process {
  margin-top: 104px;
  padding: 88px 0 96px;
  color: #fff;
  background:
    radial-gradient(900px 420px at 88% 0%, rgba(56, 198, 244, 0.16), transparent 70%),
    linear-gradient(180deg, var(--hx-navy) 0%, var(--hx-navy-2) 100%);
}

.tk-process .sx-cap {
  color: var(--hx-accent);
}

.sx .tk-process .sx-h {
  color: #fff;
}

.sx .tk-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 44px;
}

.tk-step {
  position: relative;
  padding: 28px 26px 30px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}

/* 다음 단계로 이어지는 화살표 */
.tk-step:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -17px;
  top: 44px;
  z-index: 1;
  width: 18px;
  text-align: center;
  font-size: 16px;
  color: var(--hx-accent);
}

.tk-step__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tk-step__top span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--hx-accent);
}

.tk-step__top i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  font-size: 20px;
  color: #fff;
}

.sx .tk-step h4 {
  margin-top: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.03em;
  color: #fff;
}

.sx .tk-step ul {
  margin-top: 12px;
}

.tk-step li {
  color: rgba(255, 255, 255, 0.74);
}

/* ───────── 기술거래 참여 주체 ───────── */
.sx .tk-parties {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 40px;
}

.tk-party {
  padding: 28px 30px 30px;
  border-radius: 16px;
  background: var(--hx-soft);
}

.tk-party.is-key {
  color: #fff;
  background: linear-gradient(160deg, var(--hx-brand), #0a7fb8);
}

.tk-party span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--hx-brand);
}

.tk-party.is-key span {
  color: rgba(255, 255, 255, 0.7);
}

.sx .tk-party h4 {
  margin-top: 14px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--hx-ink);
}

.sx .tk-party.is-key h4 {
  color: #fff;
}

.sx .tk-party p {
  margin-top: 8px;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--hx-sub);
}

.sx .tk-party.is-key p {
  color: rgba(255, 255, 255, 0.85);
}

/* ───────── 기술거래 구조도 ───────── */
.tk-flow {
  margin-top: 40px;
  padding: 40px;
  border: 1px solid var(--hx-line);
  border-radius: 20px;
  background: var(--hx-soft);
  text-align: center;
}

.tk-flow__org {
  max-width: 420px;
  margin: 0 auto;
  padding: 20px 24px;
  border: 1px solid var(--hx-line);
  border-radius: 14px;
  background: #fff;
}

.sx .tk-flow__org h4 {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--hx-ink);
}

.sx .tk-flow__org p {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--hx-sub);
}

.sx .tk-flow__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--hx-brand);
}

.tk-flow__link::before {
  content: "↕";
  font-size: 18px;
  line-height: 1;
  color: var(--hx-accent);
}

.tk-flow__link.is-up::before {
  content: "↑";
}

.tk-flow__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 1.15fr) minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.tk-flow__party,
.tk-flow__core {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 132px;
  padding: 18px 12px;
  border-radius: 16px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.tk-flow__party {
  border: 1px solid var(--hx-line);
  color: var(--hx-ink);
  background: #fff;
}

.tk-flow__party i {
  font-size: 22px;
  color: var(--hx-brand);
}

.tk-flow__core {
  color: #fff;
  background: linear-gradient(160deg, var(--hx-navy), var(--hx-brand));
  box-shadow: 0 18px 40px -20px rgba(6, 40, 70, 0.55);
}

.tk-flow__core small {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--hx-accent);
}

.sx .tk-flow__arrows {
  display: grid;
  gap: 10px;
}

.tk-flow__arrows li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 8px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--hx-ink);
  background: #fff;
}

.tk-flow__arrows li.is-r::after,
.tk-flow__arrows li.is-l::before {
  font-weight: 700;
  color: var(--hx-accent);
}

.tk-flow__arrows li.is-r::after { content: "→"; }
.tk-flow__arrows li.is-l::before { content: "←"; }

.sx .tk-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.tk-notes li {
  padding: 18px 20px;
  border: 1px solid var(--hx-line);
  border-radius: 14px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--hx-sub);
}

.tk-notes b {
  display: block;
  margin-bottom: 2px;
  font-size: 15px;
  font-weight: 700;
  color: var(--hx-ink);
}

/* ───────── 반응형 ───────── */
@media (max-width: 1000px) {
  .tk-sec + .tk-sec {
    margin-top: 72px;
  }
  .tk-process {
    margin-top: 72px;
    padding: 64px 0 72px;
  }
  .sx .tk-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tk-step:not(:last-child)::after {
    display: none;
  }
  .sx .tk-cards.is-3,
  .sx .tk-parties,
  .sx .tk-notes {
    grid-template-columns: 1fr;
  }
  .tk-flow {
    padding: 24px 20px;
  }
  .tk-flow__row {
    grid-template-columns: 1fr;
  }
  .tk-flow__party,
  .tk-flow__core {
    min-height: 96px;
  }
  .sx .tk-flow__arrows {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tk-flow__arrows li.is-r::after { content: "↓"; }
  .tk-flow__arrows li.is-l::before { content: "↑"; }
}

@media (max-width: 700px) {
  .sx .tk-tabs {
    margin-top: 40px;
  }
  .tk-tabs a {
    min-height: 54px;
    padding: 0 14px;
    font-size: 15px;
  }
  .tk-tabs a::after {
    left: 14px;
    right: 14px;
  }
  .sx .tk-text {
    font-size: 16px;
    line-height: 1.85;
  }
  .sx .tk-cards,
  .sx .tk-steps {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .tk-card {
    padding: 24px 22px 26px;
  }
  .tk-flow__arrows li {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sx .tk-tabs {
    animation: none;
  }
  .tk-card,
  .tk-card::after,
  .tk-tabs a,
  .tk-tabs a::after {
    transition: none;
  }
}
