/* ============================================
   Technology Page Styles
   ============================================ */

/* ── S1 · Hero ──
   Layout inherited from .page-hero (components.css).
   Only page-specific overrides below.
   ─────────────────────────────────────────────────── */
/* .tech-hero height는 .page-hero(80vh/560, 모바일 60vh/440) 기본값 사용 */

.tech-hero .page-hero__bg img {
  animation: heroZoom 8s var(--ease-out) forwards;
}

.tech-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

/* ── Accent Chip — moved to components.css (uses .accent-chip--tag modifier) ── */

/* ── S2 · Operations Platform ── */

/* Device Mockup — Laptop */
.device-mockup {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  padding: 12px;
  background: #1a1a1a;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}

.device-mockup__screen {
  background: var(--color-bg-dark);
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 3 / 2;
}

/* Screenshot Carousel */
.screenshot-carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

.screenshot-carousel__slides {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Slides are fitted to screen height (no top/bottom letterbox);
   wider images get center-cropped left/right via parent overflow:hidden,
   narrower images get small left/right letterbox absorbed by dark bg. */
.screenshot-carousel__slide {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 100%;
  width: auto;
  max-width: none;
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
}

.screenshot-carousel__slide.is-active {
  opacity: 1;
}

.screenshot-carousel__dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 2;
}

.screenshot-carousel__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s var(--ease-out), transform 0.2s var(--ease-out);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35); /* 사진 위에서도 visible */
}

.screenshot-carousel__dot:hover {
  background: rgba(255, 255, 255, 0.85);
}

.screenshot-carousel__dot.is-active {
  background: #fff;
  transform: scale(1.15);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.screenshot-carousel__dot:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* prev/next nav — Mid-gray Liquid Glass (밝은·어두운 스샷 모두 균형) */
.screenshot-carousel__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(70, 70, 70, 0.5);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s var(--ease-out), border-color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
  z-index: 3;
  opacity: 0;
}

.screenshot-carousel:hover .screenshot-carousel__nav,
.screenshot-carousel:focus-within .screenshot-carousel__nav {
  opacity: 1;
}

.screenshot-carousel__nav:hover {
  background: rgba(70, 70, 70, 0.7);
  border-color: rgba(255, 255, 255, 0.32);
}

.screenshot-carousel__nav:active {
  transform: translateY(-50%) scale(0.94);
}

.screenshot-carousel__nav:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
  opacity: 1;
}

.screenshot-carousel__nav--prev { left: 12px; }
.screenshot-carousel__nav--next { right: 12px; }

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .screenshot-carousel__nav {
    background: rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.2);
  }
  .screenshot-carousel__nav:hover {
    background: rgba(0, 0, 0, 0.7);
  }
}

@media (max-width: 1023px) {
  .screenshot-carousel__nav { opacity: 1; }
}

/* counter + playpause 컨트롤 — 우측 하단 */
.screenshot-carousel__controls {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 3;
}

.screenshot-carousel__counter {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  padding: 4px 8px;
  border-radius: 4px;
  font-variant-numeric: tabular-nums;
}

.screenshot-carousel__playpause {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s var(--ease-out);
  padding: 0;
}

.screenshot-carousel__playpause:hover {
  background: rgba(0, 0, 0, 0.7);
}

.screenshot-carousel__playpause:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Platform Captions */
.tech-platform__captions {
  display: grid;
  grid-template-areas: "stack";
  max-width: 960px;
  margin: var(--space-xl) auto 0;
}

/* 모든 caption을 같은 grid cell에 stack — 컨테이너 height = 가장 긴 caption 기준 고정 (layout shift 방지) */
.tech-platform__caption {
  grid-area: stack;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease-out), visibility 0s linear 0.35s;
}

.tech-platform__caption.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s var(--ease-out), visibility 0s;
}

.tech-platform__caption h3 {
  margin-bottom: var(--space-sm);
}

.tech-platform__caption p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--color-text-sub);
}

.lifecycle-states {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
}

/* ── S3 · Real-Time Web Access (Dark) ── */
.tech-webaccess {
  text-align: center;
}

/* LIVE Indicator — pill badge with pulsing dot (다크 배경에서 가시성 확보) */
.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  margin-bottom: var(--space-xl);
}

.live-indicator__dot {
  position: relative;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-primary-on-dark);
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(176, 4, 79, 0.85);
}

.live-indicator__dot::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--color-primary-on-dark);
  animation: livePulse 1.8s ease-out infinite;
}

@keyframes livePulse {
  0%   { transform: scale(1);   opacity: 1; }
  100% { transform: scale(2.8); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .live-indicator__dot::before { animation: none; }
}

.live-indicator__label {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 1;
}

.tech-webaccess__heading {
  max-width: 760px;
  margin: 0 auto var(--space-lg);
}

.tech-webaccess__intro {
  font-size: 19px;
  line-height: 1.6;
  opacity: 0.7;
  max-width: 720px;
  margin: 0 auto var(--space-2xl);
}

.tech-webaccess__image {
  max-width: 800px;
  margin: 0 auto var(--space-3xl);
}

.tech-webaccess__image img {
  width: 100%;
  border-radius: 8px;
}

/* Feature Grid — 5 cards (3+2 layout) */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  text-align: left;
}

.feature-grid__card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.15);
}

.feature-grid__card .icon {
  width: 36px;
  height: 36px;
}

.feature-grid__card--highlight {
  border-width: 1.5px;
}

@media (min-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  /* 4th and 5th cards center in 2-col row */
  .feature-grid__card:nth-child(4) {
    grid-column: 1 / 2;
  }
  .feature-grid__card:nth-child(5) {
    grid-column: 2 / 3;
  }
  /* Push last 2 cards toward center */
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1023px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

.tech-webaccess__closer {
  margin-top: var(--space-3xl);
  font-size: 16px;
  opacity: 0.65;
  text-align: center;
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

/* ── S4 · Flight-Tracked Dispatch ── */
.tech-dispatch__heading {
  text-align: left;
}

.tech-dispatch__intro {
  max-width: 880px;
  margin: 0 0 6px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--color-text-sub);
  text-align: left;
  text-wrap: pretty;
}
.tech-dispatch__intro:last-of-type {
  margin-bottom: var(--space-xl);
}

/* Auto-Adjustment Diagram */
.adjustment-diagram {
  margin: 0 auto;
  /* 426~1024 fluid: padding 좌우는 viewport 비례 (16~80px) */
  padding: var(--space-xl) clamp(16px, 6vw, 80px);
  background: var(--color-bg);
  border-radius: 8px;
  border: 1px solid var(--color-border-light);
}

.adjustment-diagram__row {
  display: grid;
  /* 좌우 column은 fluid, middle connector는 viewport 비례 (40~200px) — 작은 viewport에서 좌우 폭 확보 */
  grid-template-columns: minmax(min-content, 1fr) clamp(40px, 8vw, 200px) minmax(min-content, 1fr);
  align-items: center;
  gap: 0 clamp(8px, 2vw, 48px);
  padding: var(--space-lg) 0;
  min-height: 120px;
}

.adjustment-diagram__row + .adjustment-diagram__row {
  border-top: 1px solid var(--color-border-light);
}

.adjustment-diagram__trigger,
.adjustment-diagram__result {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.6vw, var(--space-lg));
}

.adjustment-diagram__text strong {
  display: block;
  font-size: clamp(13px, 1.6vw, 19px);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.adjustment-diagram__text span {
  display: block;
  margin-top: 2px;
  font-size: clamp(11px, 1.2vw, 15px);
  color: var(--color-text-sub);
}

/* 아이콘 박스 — burgundy tint tile */
.adjustment-diagram__icon-box {
  width: clamp(44px, 7vw, 80px);
  height: clamp(44px, 7vw, 80px);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(129, 0, 49, 0.05);
  border-radius: clamp(10px, 1.5vw, 16px);
}

.adjustment-diagram__icon {
  width: clamp(22px, 3.2vw, 36px);
  height: clamp(22px, 3.2vw, 36px);
  flex-shrink: 0;
  stroke: var(--color-primary);
  stroke-width: 1.6;
  fill: none;
  stroke-linejoin: round;
  stroke-linecap: round;
}

/* 점선 라인 + 원형 화살표 connector */
.adjustment-diagram__connector {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%; /* 가운데 column 폭 가득 — 점선이 자동 늘어남 */
}

.adjustment-diagram__line {
  flex: 1;
  height: 0;
  border-top: 1.5px dashed var(--color-border-light);
}

.adjustment-diagram__arrow-circle {
  flex-shrink: 0;
  width: clamp(32px, 4vw, 40px);
  height: clamp(32px, 4vw, 40px);
  border-radius: 50%;
  border: 1px solid var(--color-border-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.adjustment-diagram__arrow-circle svg {
  width: clamp(12px, 1.6vw, 16px);
  height: clamp(12px, 1.6vw, 16px);
  stroke: var(--color-primary);
  stroke-width: 2;
  fill: none;
  stroke-linejoin: round;
  stroke-linecap: round;
}

/* 하단 인용문 */
.adjustment-diagram__quote {
  position: relative;
  margin: 0;
  padding: var(--space-md) 0 0 var(--space-2xl);
  border-top: 1px solid var(--color-border-light);
}

.adjustment-diagram__quote::before {
  content: '\201C'; /* 큰 따옴표 */
  position: absolute;
  left: 0;
  top: var(--space-md);
  font-size: clamp(28px, 3.6vw, 38px);
  line-height: 1;
  font-weight: 700;
  color: var(--color-primary);
  font-family: serif;
}

.adjustment-diagram__quote p {
  font-size: clamp(12px, 1.4vw, 16px);
  line-height: 1.55;
  color: var(--color-text-sub);
  margin: 0;
}

.tech-dispatch__features {
  margin-top: var(--space-3xl);
}

/* 1023~426 구간은 base의 clamp() fluid sizing이 자동 비례 축소 — 별도 분기 없음 */

@media (max-width: 425px) {
  .adjustment-diagram {
    padding: var(--space-xl) 24px;
  }
  .adjustment-diagram__row {
    grid-template-columns: 1fr;
    gap: var(--space-xs) 0;         /* row 안: arrow 위아래 좁게 → trigger·arrow·result 결속 */
    min-height: auto;
    padding: var(--space-lg) 0;      /* row 사이: 거리 키워 다음 이벤트와 분리 명확화 */
  }
  .adjustment-diagram__trigger,
  .adjustment-diagram__result {
    min-width: 0;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;                  /* 가운데 정렬로 우측 빈 공간 해소 + 모든 row 같은 left-edge */
    gap: var(--space-md);
  }
  .adjustment-diagram__icon-box {
    width: 56px;
    height: 56px;
  }
  .adjustment-diagram__icon {
    width: 24px;
    height: 24px;
  }
  /* 모바일: 점선 제거 + 화살표 작게 + 컴팩트 */
  .adjustment-diagram__connector {
    width: auto;
    flex-direction: column;
    height: auto;
    gap: 0;
    justify-self: center;            /* arrow circle 가운데 정렬 */
  }
  .adjustment-diagram__line {
    display: none;
  }
  .adjustment-diagram__arrow-circle {
    width: 28px;
    height: 28px;
  }
  .adjustment-diagram__arrow-circle svg {
    width: 12px;
    height: 12px;
    transform: rotate(90deg);
  }
}

/* ── S5 · WIZMOBILITY App ── */

.tech-app__layout {
  display: grid;
  grid-template-columns: minmax(480px, 2fr) 3fr;
  gap: var(--space-3xl);
  align-items: center;
}

/* tech-app phone mockup — 이미지 자체에 mockup 포함이라 frame 없음 */
.tech-app__mockup {
  display: flex;
  justify-content: center;
  align-items: center;
}

.tech-app__mockup img {
  max-width: 480px;
  width: 100%;
  height: auto;
  display: block;
}

/* App Features list — 2x2 그리드 (특징별 읽기 좋음, 좌측 mockup과 세로 균형) */
.tech-app__features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl) var(--space-xl);
}

@media (max-width: 1023px) {
  .tech-app__features {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
}

.tech-app__feature h3 {
  margin-bottom: var(--space-sm);
}

.tech-app__feature .card__divider {
  display: none; /* 라인 제거 — h3 margin-bottom으로 거리 조정 */
}

.tech-app__feature p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--color-text-sub);
}

@media (max-width: 1023px) {
  .tech-app__layout {
    grid-template-columns: 1fr;
  }
  .tech-app__mockup {
    order: -1;
  }
}

/* App Badges */
.app-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-2xl);
}

.app-badges__link {
  display: inline-block;
  transition: opacity 0.2s var(--ease-out);
}

.app-badges__link:hover {
  opacity: 0.8;
}

.app-badges__link img {
  height: 48px;
  width: auto;
}

/* ── S6 · Security ── */
.tech-security .card__body strong {
  font-weight: 700;
  color: var(--color-text);
}

/* ── S7 · FAQ ── */
.tech-faq .faq-list {
  max-width: 800px;
}

/* round 6 (2026-05-12): faq--with-media 풀 bleed split 적용 시 max-width 800 해제 */
.tech-faq.faq--with-media .faq-list {
  max-width: none;
}

.tech-faq__crosslinks {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border-light);
}

/* ── S8 · Final CTA overrides ── */
