/*
 * ai-automation.css — AI 업무 자동화 페이지 전용 스타일
 * 클래스 접두사: at-
 * 컬러: 다크 네이비(#0a0f28) + AI블루(#2979ff) + 네온시안(#00e5ff)
 */

/* ═══════════════════════════════════════════════════════════════════
   CSS 변수
═══════════════════════════════════════════════════════════════════ */
.page-automation {
  --at-navy:     #0a0f28;
  --at-navy2:    #1a237e;
  --at-blue:     #2979ff;
  --at-blue2:    #448aff;
  --at-cyan:     #00e5ff;
  --at-cyan2:    #84ffff;
  --at-red:      #ff3d3d;
  --at-green:    #00e676;
  --at-green2:   #69f0ae;
  --at-border:   rgba(41,121,255,0.25);
  --at-card-bg:  rgba(41,121,255,0.06);
  --at-glow-b:   0 0 20px rgba(41,121,255,0.4);
  --at-glow-c:   0 0 20px rgba(0,229,255,0.4);
  --at-glow-r:   0 0 20px rgba(255,61,61,0.4);
  --at-glow-g:   0 0 20px rgba(0,230,118,0.4);
}

/* ═══════════════════════════════════════════════════════════════════
   공통 유틸
═══════════════════════════════════════════════════════════════════ */
.at-section-badge {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 30px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: linear-gradient(135deg, rgba(41,121,255,0.15), rgba(0,229,255,0.1));
  color: var(--at-cyan);
  border: 1px solid rgba(0,229,255,0.3);
  margin-bottom: 12px;
  text-shadow: 0 0 10px rgba(0,229,255,0.4);
}

.at-section-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 12px;
}

.at-section-sub {
  font-size: 1rem;
  color: #64748b;
  max-width: 640px;
  margin: 0 auto 40px;
}

.at-text-gradient {
  background: linear-gradient(135deg, var(--at-blue), var(--at-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.at-text-gradient-white {
  background: linear-gradient(135deg, #ffffff 30%, var(--at-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 서브 네비 활성 오버라이드 */
.page-automation .sub-nav-link.active,
.page-automation .sub-nav-link:hover {
  color: var(--at-cyan) !important;
  border-bottom-color: var(--at-blue) !important;
}

/* ═══════════════════════════════════════════════════════════════════
   섹션 1: 히어로
═══════════════════════════════════════════════════════════════════ */
.at-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  background: var(--at-navy);
  overflow: hidden;
  padding: 120px 0 80px;
}

#atMeshCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.at-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.at-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: linear-gradient(135deg, rgba(41,121,255,0.25), rgba(0,229,255,0.15));
  color: var(--at-cyan);
  border: 1px solid rgba(0,229,255,0.4);
  box-shadow: 0 0 20px rgba(0,229,255,0.2);
  margin-bottom: 24px;
  animation: atBadgeIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes atBadgeIn {
  from { transform: scale(0.8); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

.at-hero-title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 16px;
  overflow: hidden;
}

.at-hero-cursor {
  display: inline-block;
  width: 3px;
  height: 0.85em;
  background: var(--at-cyan);
  vertical-align: middle;
  margin-left: 3px;
  animation: atCursorBlink 0.7s steps(1) infinite;
  box-shadow: 0 0 8px var(--at-cyan);
}

@keyframes atCursorBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.at-hero-sub {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--at-cyan);
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

.at-hero-desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.8;
  margin-bottom: 32px;
  max-width: 540px;
}

.at-hero-chips {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.at-hero-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 600;
}

.at-chip-before {
  background: rgba(255,61,61,0.12);
  border: 1px solid rgba(255,61,61,0.3);
  color: #ff8a80;
}

.at-chip-after {
  background: rgba(0,230,118,0.12);
  border: 1px solid rgba(0,230,118,0.3);
  color: var(--at-green2);
}

.btn-at-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 36px;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--at-blue), var(--at-cyan));
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 4px 24px rgba(41,121,255,0.45);
  animation: atBtnPulse 2.5s ease-in-out infinite;
  position: relative;
  z-index: 2;
}

.btn-at-primary:hover {
  color: #fff;
  box-shadow: 0 4px 40px rgba(41,121,255,0.7);
  transform: translateY(-2px);
}

@keyframes atBtnPulse {
  0%, 100% { box-shadow: 0 4px 24px rgba(41,121,255,0.45); }
  50%       { box-shadow: 0 4px 48px rgba(0,229,255,0.6), 0 0 80px rgba(41,121,255,0.2); }
}

.at-hero-scroll {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  z-index: 3;
  cursor: pointer;
}

.at-hero-scroll span {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, transparent, var(--at-cyan));
}

.at-hero-scroll i {
  color: var(--at-cyan);
  font-size: 18px;
  animation: atScrollBounce 1.5s ease-in-out infinite;
  text-shadow: 0 0 8px var(--at-cyan);
}

@keyframes atScrollBounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(6px); }
}

.at-hero-content { position: relative; z-index: 2; }

/* ═══════════════════════════════════════════════════════════════════
   섹션 2: 서비스 개요 (3D 플립 카드)
═══════════════════════════════════════════════════════════════════ */
.at-overview-section {
  background: #fff;
  padding: 80px 0;
  position: relative;
}

.at-overview-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(41,121,255,0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.at-tech-tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 20px; }

.at-tech-tag {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 600;
  background: rgba(41,121,255,0.07);
  color: var(--at-navy2);
  border: 1px solid rgba(41,121,255,0.2);
  transition: all 0.3s;
  cursor: default;
  animation: atTagSlideIn 0.4s both;
}

.at-tech-tag:hover {
  background: var(--at-blue);
  color: #fff;
  border-color: var(--at-blue);
  box-shadow: var(--at-glow-b);
}

@keyframes atTagSlideIn {
  from { opacity: 0; transform: translateX(-12px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* 3D 플립 카드 */
.at-flip-card {
  perspective: 1000px;
  height: 300px;
  cursor: pointer;
}

.at-flip-inner {
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.at-flip-card:hover .at-flip-inner { transform: rotateY(180deg); }

.at-flip-front,
.at-flip-back {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 36px 28px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  transition: box-shadow 0.3s;
}

.at-flip-front {
  background: #fff;
  border: 1.5px solid rgba(41,121,255,0.15);
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

.at-flip-card:hover .at-flip-front {
  box-shadow: 0 8px 40px rgba(41,121,255,0.2);
}

.at-flip-back {
  background: linear-gradient(160deg, var(--at-navy) 0%, var(--at-navy2) 100%);
  border: 1.5px solid rgba(41,121,255,0.4);
  box-shadow: 0 8px 40px rgba(41,121,255,0.25);
  transform: rotateY(180deg);
}

.at-flip-icon {
  font-size: 3rem;
  color: #b0bec5;
  margin-bottom: 16px;
  transition: transform 0.6s ease, color 0.3s;
}

.at-flip-card:hover .at-flip-icon {
  transform: rotate(360deg);
  color: var(--at-cyan);
}

.at-flip-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 8px;
}

.at-flip-summary {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.6;
}

.at-flip-back-title {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}

.at-flip-back-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  margin-bottom: 16px;
}

.at-flip-back-tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }

.at-flip-back-tag {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(0,229,255,0.15);
  color: var(--at-cyan);
  border: 1px solid rgba(0,229,255,0.3);
}

/* ═══════════════════════════════════════════════════════════════════
   섹션 3: Before / After 드래그 슬라이더
═══════════════════════════════════════════════════════════════════ */
.at-ba-section {
  background: linear-gradient(160deg, #e8f4ff 0%, #f0f8ff 100%);
  padding: 80px 0;
}

.at-ba-wrap {
  position: relative;
  display: flex;             /* flexbox: 좌/우 패널이 나란히, 높이 자동 결정 */
  align-items: stretch;
  border-radius: 20px;
  overflow: hidden;
  cursor: ew-resize;
  box-shadow: 0 16px 60px rgba(41,121,255,0.15);
  user-select: none;
  /* 고정 height 제거 — 내용에 맞게 자동 확장 */
}

/* Before 패널 — 핸들 왼쪽 영역 */
.at-ba-before {
  flex-shrink: 0;
  width: 60%;               /* JS가 동적으로 변경 */
  min-width: 0;
  overflow: hidden;
  background: linear-gradient(160deg, #fff2f2 0%, #fff5f0 100%);
  border-radius: 20px 0 0 20px;
  padding: 36px;
  display: flex;
  flex-direction: column;
}

/* After 패널 — 핸들 오른쪽 영역 */
.at-ba-after {
  flex: 1;                  /* Before 나머지를 자동으로 채움, JS로 left 불필요 */
  min-width: 0;
  overflow: hidden;
  background: linear-gradient(160deg, #f0fff8 0%, #eafff4 100%);
  border-radius: 0 20px 20px 0;
  padding: 36px;
  display: flex;
  flex-direction: column;
}

/* 드래그 바 — 두 패널 사이 경계선 */
.at-ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 60%;
  transform: translateX(-50%);
  width: 6px;
  background: linear-gradient(to bottom, var(--at-blue), var(--at-cyan));
  z-index: 20;
  box-shadow: 0 0 16px rgba(0,229,255,0.7), 0 0 4px rgba(0,229,255,0.9);
  cursor: ew-resize;
}

.at-ba-handle-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--at-blue), var(--at-cyan));
  box-shadow: 0 0 20px rgba(0,229,255,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  animation: atHandleWiggle 2s ease-in-out infinite 1.5s;
}

@keyframes atHandleWiggle {
  0%, 100% { transform: translate(-50%, -50%) scaleX(1); }
  25%       { transform: translate(calc(-50% - 8px), -50%) scaleX(0.95); }
  75%       { transform: translate(calc(-50% + 8px), -50%) scaleX(0.95); }
}

.at-ba-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.at-ba-before .at-ba-header { color: var(--at-red); }
.at-ba-after  .at-ba-header { color: var(--at-green); }

.at-ba-header-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
  flex-shrink: 0;
}

.at-ba-before .at-ba-header-icon {
  background: rgba(255,61,61,0.15);
  color: var(--at-red);
  border: 1.5px solid rgba(255,61,61,0.4);
}

.at-ba-after .at-ba-header-icon {
  background: rgba(0,230,118,0.15);
  color: var(--at-green);
  border: 1.5px solid rgba(0,230,118,0.4);
}

.at-ba-items { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }

.at-ba-item {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.5;
}

.at-ba-before .at-ba-item {
  background: rgba(255,61,61,0.06);
  border: 1px solid rgba(255,61,61,0.15);
  color: #5f1a1a;
}

.at-ba-after .at-ba-item {
  background: rgba(0,230,118,0.06);
  border: 1px solid rgba(0,230,118,0.2);
  color: #1a3d2b;
}

.at-ba-item strong {
  display: block;
  font-size: 13.5px;
  font-weight: 800;
  margin-bottom: 2px;
}

.at-ba-before .at-ba-item strong { color: #c62828; }
.at-ba-after  .at-ba-item strong { color: #1b5e20; }

.at-ba-item small { color: #888; font-size: 11.5px; }

/* ═══════════════════════════════════════════════════════════════════
   섹션 4: 자동화 파이프라인
═══════════════════════════════════════════════════════════════════ */
.at-pipeline-section {
  background: var(--at-navy);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
  color: #fff;
}

#atPipelineCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.at-pipeline-inner { position: relative; z-index: 2; }

.at-pipeline-stages {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

/* SVG 연결선 */
.at-pipeline-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: visible;
}

.at-pipe-line {
  fill: none;
  stroke: var(--at-cyan);
  stroke-width: 2;
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  filter: drop-shadow(0 0 4px var(--at-cyan));
  transition: stroke-dashoffset 0.8s ease;
}

.at-pipe-line.drawn { stroke-dashoffset: 0; }

.at-stage-box {
  background: var(--at-card-bg);
  border: 1px solid var(--at-border);
  border-radius: 16px;
  padding: 32px 20px;
  text-align: center;
  margin: 0 8px;
  position: relative;
  z-index: 2;
  transition: all 0.35s;
  opacity: 0;
  transform: scale(0.7);
  filter: blur(4px);
}

.at-stage-box.visible {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
}

.at-stage-box:hover {
  background: rgba(41,121,255,0.15);
  border-color: rgba(0,229,255,0.5);
  box-shadow: 0 0 30px rgba(0,229,255,0.2), var(--at-glow-b);
  transform: scale(1.05);
}

.at-stage-num {
  font-family: 'Chakra Petch', monospace;
  font-size: 3rem;
  font-weight: 900;
  color: rgba(0,229,255,0.15);
  line-height: 1;
  margin-bottom: 8px;
}

.at-stage-icon {
  font-size: 2rem;
  color: var(--at-cyan);
  text-shadow: var(--at-glow-c);
  margin-bottom: 12px;
  display: block;
}

.at-stage-title {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
}

.at-stage-desc {
  font-size: 12.5px;
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
  margin-bottom: 14px;
}

.at-stage-pills { display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; }

.at-stage-pill {
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 10.5px;
  font-weight: 600;
  background: rgba(0,229,255,0.08);
  color: var(--at-cyan);
  border: 1px solid rgba(0,229,255,0.2);
}

/* ═══════════════════════════════════════════════════════════════════
   섹션 5: 적용 업무 사례 (탭)
═══════════════════════════════════════════════════════════════════ */
.at-cases-section {
  background: #fff;
  padding: 80px 0;
}

.at-case-tabs {
  display: flex;
  border-bottom: 2px solid rgba(41,121,255,0.12);
  margin-bottom: 40px;
  position: relative;
}

.at-case-tab-btn {
  padding: 14px 28px;
  font-size: 14.5px;
  font-weight: 700;
  color: #9ca3af;
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
  transition: color 0.3s;
}

.at-case-tab-btn.active { color: var(--at-blue); }

.at-case-tab-indicator {
  position: absolute;
  bottom: -2px;
  height: 2px;
  background: linear-gradient(90deg, var(--at-blue), var(--at-cyan));
  box-shadow: 0 0 8px rgba(0,229,255,0.5);
  transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1), width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.at-case-panel { display: none; }
.at-case-panel.active {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  animation: atPanelIn 0.4s ease;
}

@keyframes atPanelIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

.at-case-left { flex: 1; min-width: 240px; }
.at-case-right { flex: 1; min-width: 240px; }

.at-case-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(41,121,255,0.08);
  border: 1.5px solid rgba(41,121,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--at-blue);
  margin-bottom: 16px;
}

.at-case-intro {
  font-size: 14.5px;
  color: #6b7280;
  line-height: 1.75;
  margin-bottom: 20px;
}

.at-case-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }

.at-case-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: #374151;
  padding: 8px 0;
  border-bottom: 1px solid rgba(41,121,255,0.06);
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.at-case-list li.visible {
  opacity: 1;
  transform: translateX(0);
}

.at-case-list li i {
  color: var(--at-blue);
  flex-shrink: 0;
  margin-top: 2px;
}

.at-case-effect {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 16px 24px;
  border-radius: 16px;
  background: rgba(0,230,118,0.08);
  border: 1.5px solid rgba(0,230,118,0.3);
  margin-bottom: 20px;
  box-shadow: var(--at-glow-g);
}

.at-case-effect-num {
  font-family: 'Chakra Petch', monospace;
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--at-green);
  text-shadow: 0 0 20px rgba(0,230,118,0.5);
  line-height: 1;
}

.at-case-effect-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--at-green2);
}

.at-case-scenario {
  padding: 18px 20px;
  background: rgba(41,121,255,0.04);
  border-left: 3px solid var(--at-blue);
  border-radius: 0 10px 10px 0;
  font-size: 13.5px;
  color: #4b5563;
  line-height: 1.75;
  font-style: italic;
}

/* ═══════════════════════════════════════════════════════════════════
   섹션 6: ROI 카운터 + 계산기
═══════════════════════════════════════════════════════════════════ */
.at-roi-section {
  background: linear-gradient(160deg, var(--at-navy) 0%, var(--at-navy2) 100%);
  padding: 80px 0;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.at-roi-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(41,121,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(41,121,255,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

/* 카운터 */
.at-counter-num {
  font-family: 'Chakra Petch', monospace;
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 900;
  color: var(--at-cyan);
  text-shadow: 0 0 30px rgba(0,229,255,0.5);
  line-height: 1;
  display: block;
  margin-bottom: 4px;
}

.at-counter-label {
  font-size: 14px;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  margin-bottom: 6px;
}

.at-counter-desc {
  font-size: 12.5px;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
}

/* ROI 계산기 */
.at-roi-calc {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(41,121,255,0.25);
  border-radius: 24px;
  padding: 36px;
  margin-top: 60px;
  box-shadow: 0 16px 60px rgba(0,0,0,0.3);
}

.at-roi-calc-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.at-roi-calc-title i { color: var(--at-cyan); }

.at-slider-wrap { margin-bottom: 22px; }

.at-slider-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.at-slider-label span { font-size: 14px; color: rgba(255,255,255,0.8); font-weight: 600; }
.at-slider-value {
  font-family: 'Chakra Petch', monospace;
  font-size: 18px;
  font-weight: 900;
  color: var(--at-cyan);
  min-width: 80px;
  text-align: right;
}

input[type=range].at-slider {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.1);
  outline: none;
}

input[type=range].at-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--at-blue), var(--at-cyan));
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0,229,255,0.5);
  transition: box-shadow 0.2s;
}

input[type=range].at-slider::-webkit-slider-thumb:hover {
  box-shadow: 0 0 20px rgba(0,229,255,0.8);
}

.at-roi-results {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 10px;
}

.at-roi-result-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(0,229,255,0.15);
  border-radius: 14px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s;
}

.at-roi-result-card:hover { border-color: rgba(0,229,255,0.4); }

.at-roi-result-num {
  font-family: 'Chakra Petch', monospace;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--at-cyan);
  text-shadow: 0 0 20px rgba(0,229,255,0.4);
  line-height: 1;
  margin-bottom: 4px;
  transition: color 0.2s;
}

.at-roi-result-label {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  font-weight: 600;
}

.at-roi-flash { animation: atFlash 0.4s ease; }

@keyframes atFlash {
  0%   { color: #fff; text-shadow: 0 0 40px #fff; }
  100% { color: var(--at-cyan); text-shadow: 0 0 20px rgba(0,229,255,0.4); }
}

/* ═══════════════════════════════════════════════════════════════════
   섹션 7: 라이브 대시보드
═══════════════════════════════════════════════════════════════════ */
.at-dashboard-section {
  background: #f8f9ff;
  padding: 80px 0;
  position: relative;
}

.at-dashboard-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(41,121,255,0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.at-dashboard-wrap {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 12px 60px rgba(0,0,0,0.1);
  overflow: hidden;
  border: 1px solid rgba(41,121,255,0.12);
  max-width: 1000px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.at-dashboard-wrap.visible { opacity: 1; transform: translateY(0); }

/* 대시보드 상단 바 */
.at-db-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: var(--at-navy);
  color: #fff;
}

.at-db-topbar-title {
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.at-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  background: rgba(255,61,61,0.15);
  border: 1px solid rgba(255,61,61,0.4);
  color: #ff8a80;
}

.at-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff3d3d;
  animation: atLivePulse 1.2s ease-in-out infinite;
  box-shadow: 0 0 6px #ff3d3d;
}

@keyframes atLivePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.7); }
}

/* 상단 4개 KPI */
.at-db-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid rgba(41,121,255,0.08);
}

.at-db-kpi {
  padding: 20px 20px;
  border-right: 1px solid rgba(41,121,255,0.08);
  text-align: center;
}

.at-db-kpi:last-child { border-right: none; }

.at-db-kpi-num {
  font-family: 'Chakra Petch', monospace;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--at-navy);
  line-height: 1;
  margin-bottom: 3px;
}

.at-db-kpi-label {
  font-size: 11px;
  color: #9ca3af;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.at-db-kpi-delta {
  font-size: 11.5px;
  font-weight: 700;
  margin-top: 3px;
}

.at-delta-up   { color: var(--at-green); }
.at-delta-down { color: var(--at-red); }

/* 로그 피드 + 차트 */
.at-db-body {
  display: grid;
  grid-template-columns: 1fr 260px;
}

.at-db-log {
  padding: 20px;
  border-right: 1px solid rgba(41,121,255,0.08);
  overflow: hidden;
}

.at-db-log-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 12px;
}

.at-log-feed {
  height: 220px;
  overflow: hidden;
  position: relative;
}

.at-log-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(41,121,255,0.05);
  font-size: 12.5px;
  animation: atLogSlide 0.4s ease both;
  opacity: 0;
}

@keyframes atLogSlide {
  from { opacity: 0; transform: translateX(-16px); }
  to   { opacity: 1; transform: translateX(0); }
}

.at-log-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #9ca3af;
  flex-shrink: 0;
  width: 70px;
}

.at-log-icon-ok { color: var(--at-green); flex-shrink: 0; }
.at-log-icon-warn { color: #f59e0b; flex-shrink: 0; }

.at-log-msg { flex: 1; color: #374151; }

.at-log-tag {
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
}

.at-log-tag-doc   { background: rgba(41,121,255,0.1); color: var(--at-blue); }
.at-log-tag-mail  { background: rgba(0,229,255,0.1);  color: #0097a7; }
.at-log-tag-appr  { background: rgba(0,230,118,0.1);  color: #388e3c; }
.at-log-tag-rep   { background: rgba(124,58,237,0.1); color: #7c3aed; }
.at-log-tag-exc   { background: rgba(245,158,11,0.1); color: #d97706; }

/* 바 차트 */
.at-db-chart { padding: 20px; }

.at-db-chart-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 16px;
}

.at-bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 180px;
}

.at-bar-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  height: 100%;
  justify-content: flex-end;
}

.at-bar {
  width: 100%;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(to top, var(--at-blue), var(--at-cyan));
  box-shadow: 0 0 8px rgba(0,229,255,0.3);
  height: 0;
  transition: height 1s cubic-bezier(0.22, 1, 0.36, 1);
  min-height: 4px;
}

.at-bar-label {
  font-size: 10px;
  color: #9ca3af;
  text-align: center;
  white-space: nowrap;
}

/* ═══════════════════════════════════════════════════════════════════
   섹션 8: 기술 스택 오비탈
═══════════════════════════════════════════════════════════════════ */
.at-orbital-section {
  background: var(--at-navy);
  padding: 80px 0;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.at-orbital-wrap {
  position: relative;
  width: 460px;
  height: 460px;
  margin: 0 auto;
}

.at-orbit-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--at-blue), var(--at-cyan));
  box-shadow: 0 0 60px rgba(0,229,255,0.5), 0 0 120px rgba(41,121,255,0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  text-align: center;
  z-index: 10;
  animation: atCenterPulse 2.5s ease-in-out infinite;
  letter-spacing: 0.5px;
}

@keyframes atCenterPulse {
  0%, 100% { box-shadow: 0 0 60px rgba(0,229,255,0.5), 0 0 120px rgba(41,121,255,0.3); }
  50%       { box-shadow: 0 0 80px rgba(0,229,255,0.8), 0 0 160px rgba(41,121,255,0.5); }
}

.at-orbit-center-icon { font-size: 26px; margin-bottom: 4px; }

/* 궤도 링 */
.at-orbit-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 1px dashed rgba(41,121,255,0.2);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.at-orbit-ring-1 { width: 240px; height: 240px; }
.at-orbit-ring-2 { width: 420px; height: 420px; }

/* 내측 궤도 */
.at-orbit-inner {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 240px;
  height: 240px;
  margin-top: -120px;
  margin-left: -120px;
  animation: atOrbitCW 20s linear infinite;
  transform-origin: center;
}

/* 외측 궤도 */
.at-orbit-outer {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 420px;
  height: 420px;
  margin-top: -210px;
  margin-left: -210px;
  animation: atOrbitCCW 32s linear infinite;
  transform-origin: center;
}

@keyframes atOrbitCW  { to { transform: rotate(360deg); } }
@keyframes atOrbitCCW { to { transform: rotate(-360deg); } }

.at-orbit-node {
  position: absolute;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  border: 1.5px solid rgba(41,121,255,0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,0.8);
  transition: all 0.3s;
  cursor: default;
}

.at-orbit-node:hover {
  background: rgba(41,121,255,0.25);
  border-color: var(--at-cyan);
  box-shadow: var(--at-glow-c);
  z-index: 20;
}

.at-orbit-node i {
  font-size: 18px;
  color: var(--at-cyan);
  margin-bottom: 3px;
}

/* 내측 4개 노드 위치 */
.at-orbit-inner .at-orbit-node:nth-child(1) { top: -26px;  left: 50%; margin-left:-26px; }
.at-orbit-inner .at-orbit-node:nth-child(2) { top: 50%; right: -26px; margin-top:-26px; }
.at-orbit-inner .at-orbit-node:nth-child(3) { bottom: -26px; left: 50%; margin-left:-26px; }
.at-orbit-inner .at-orbit-node:nth-child(4) { top: 50%; left: -26px; margin-top:-26px; }

/* 내측 counter-rotate */
.at-orbit-inner .at-orbit-node { animation: atNodeCCW 20s linear infinite; }
@keyframes atNodeCCW { to { transform: rotate(-360deg); } }

/* 외측 6개 노드 위치 */
.at-orbit-outer .at-orbit-node:nth-child(1) { top: -26px;  left: 50%; margin-left:-26px; }
.at-orbit-outer .at-orbit-node:nth-child(2) { top: 14%;  right: -26px; }
.at-orbit-outer .at-orbit-node:nth-child(3) { bottom: 14%; right: -26px; }
.at-orbit-outer .at-orbit-node:nth-child(4) { bottom: -26px; left: 50%; margin-left:-26px; }
.at-orbit-outer .at-orbit-node:nth-child(5) { bottom: 14%; left: -26px; }
.at-orbit-outer .at-orbit-node:nth-child(6) { top: 14%;  left: -26px; }

/* 외측 counter-rotate */
.at-orbit-outer .at-orbit-node { animation: atNodeCW 32s linear infinite; }
@keyframes atNodeCW { to { transform: rotate(360deg); } }

/* ═══════════════════════════════════════════════════════════════════
   섹션 9: 도입 프로세스 (인터랙티브 타임라인)
═══════════════════════════════════════════════════════════════════ */
.at-process-section {
  background: linear-gradient(160deg, #e8f4ff 0%, #f0f8ff 100%);
  padding: 80px 0;
}

/* 가로 타임라인 (데스크탑) */
.at-h-timeline-wrap { position: relative; padding: 40px 0 20px; }

.at-h-tl-line {
  position: absolute;
  top: 68px;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(41,121,255,0.15);
  border-radius: 3px;
  overflow: hidden;
}

.at-h-tl-line-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--at-blue), var(--at-cyan));
  box-shadow: 0 0 8px rgba(0,229,255,0.5);
  width: 0;
  border-radius: 3px;
  transition: width 2s cubic-bezier(0.22, 1, 0.36, 1);
}

.at-h-tl-steps { display: flex; justify-content: space-between; }

.at-h-tl-step { flex: 1; text-align: center; }

.at-h-tl-node {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid rgba(41,121,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #9ca3af;
  margin: 0 auto 12px;
  cursor: pointer;
  transition: all 0.4s;
  position: relative;
  z-index: 2;
  transform: scale(0);
}

.at-h-tl-node.visible {
  transform: scale(1);
}

.at-h-tl-node.active {
  background: linear-gradient(135deg, var(--at-blue), var(--at-cyan));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 0 0 6px rgba(41,121,255,0.15), var(--at-glow-b);
  animation: atNodeActivePulse 2s ease-in-out infinite;
}

@keyframes atNodeActivePulse {
  0%, 100% { box-shadow: 0 0 0 6px rgba(41,121,255,0.15), 0 0 20px rgba(41,121,255,0.4); }
  50%       { box-shadow: 0 0 0 10px rgba(41,121,255,0.08), 0 0 40px rgba(0,229,255,0.5); }
}

.at-h-tl-label {
  font-size: 13px;
  font-weight: 800;
  color: #374151;
  margin-bottom: 4px;
}

.at-h-tl-period {
  font-size: 11px;
  font-weight: 700;
  color: var(--at-blue);
  margin-bottom: 8px;
}

/* 상세 패널 */
.at-h-tl-detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
  background: #fff;
  border-radius: 14px;
  margin: 0 4px;
  box-shadow: 0 4px 20px rgba(41,121,255,0.1);
}

.at-h-tl-detail.open {
  max-height: 240px;
}

.at-h-tl-detail-inner {
  padding: 16px;
  text-align: left;
  font-size: 13px;
  color: #4b5563;
  line-height: 1.7;
}

.at-h-tl-detail-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--at-blue);
  margin-bottom: 6px;
}

.at-h-tl-outputs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
}

.at-output-badge {
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 10.5px;
  font-weight: 700;
  background: rgba(41,121,255,0.08);
  color: var(--at-navy2);
  border: 1px solid rgba(41,121,255,0.2);
}

/* ═══════════════════════════════════════════════════════════════════
   섹션 10: 관련 솔루션 카드
═══════════════════════════════════════════════════════════════════ */
.at-related-section {
  background: #fff;
  padding: 80px 0;
}

.at-related-card {
  display: block;
  background: #fff;
  border: 1.5px solid rgba(41,121,255,0.12);
  border-radius: 20px;
  padding: 36px;
  text-decoration: none;
  transition: all 0.35s;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.at-related-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--at-blue), var(--at-cyan));
  border-radius: 20px 20px 0 0;
  transition: width 0.4s ease;
}

.at-related-card:hover { transform: translateY(-6px); box-shadow: 0 12px 50px rgba(41,121,255,0.14); text-decoration: none; }
.at-related-card:hover::after { width: 100%; }

.at-related-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
  transition: transform 0.3s;
}

.at-related-card:hover .at-related-icon i { transform: translateX(3px); }

.at-related-badge { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 8px; }
.at-related-title { font-size: 1.15rem; font-weight: 800; color: #1e293b; margin-bottom: 10px; }
.at-related-desc  { font-size: 13.5px; color: #6b7280; line-height: 1.7; margin-bottom: 14px; }

.at-related-synergy {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 10px;
  background: rgba(41,121,255,0.06);
  border: 1px solid rgba(41,121,255,0.15);
  margin-bottom: 14px;
}

.at-related-synergy i { color: var(--at-blue); }

.at-related-tags { display: flex; flex-wrap: wrap; gap: 6px; }

.at-related-tag {
  padding: 4px 12px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(41,121,255,0.07);
  color: var(--at-navy2);
  border: 1px solid rgba(41,121,255,0.15);
}

.at-related-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--at-blue);
  margin-top: 12px;
  transition: gap 0.2s;
}

.at-related-card:hover .at-related-arrow { gap: 10px; }

/* ═══════════════════════════════════════════════════════════════════
   섹션 11: CTA
═══════════════════════════════════════════════════════════════════ */
.at-cta-section {
  position: relative;
  min-height: 350px;
  display: flex;
  align-items: center;
  background: var(--at-navy);
  overflow: hidden;
  padding: 100px 0;
  color: #fff;
}

#atCtaCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.at-cta-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(255,61,61,0.03) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(41,121,255,0.1) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
}

.at-cta-content { position: relative; z-index: 2; }

.at-cta-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 900;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.25;
}

.at-cta-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.8;
  margin-bottom: 20px;
  max-width: 560px;
}

.at-cta-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.at-cta-stat {
  padding: 8px 18px;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 700;
  background: rgba(0,229,255,0.1);
  border: 1px solid rgba(0,229,255,0.25);
  color: var(--at-cyan);
}

.at-cta-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: rgba(255,255,255,0.6);
  font-weight: 600;
  margin-top: 20px;
}

.at-cta-phone i { color: var(--at-cyan); }

/* ═══════════════════════════════════════════════════════════════════
   반응형
═══════════════════════════════════════════════════════════════════ */
@media (max-width: 991.98px) {
  .at-pipeline-stages { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .at-db-kpis { grid-template-columns: repeat(2, 1fr); }
  .at-db-body { grid-template-columns: 1fr; }
  .at-orbital-wrap { width: 320px; height: 320px; }
  .at-orbit-ring-1 { width: 180px; height: 180px; }
  .at-orbit-ring-2 { width: 300px; height: 300px; }
  .at-orbit-inner { width: 180px; height: 180px; margin-top: -90px; margin-left: -90px; }
  .at-orbit-outer { width: 300px; height: 300px; margin-top: -150px; margin-left: -150px; }
  .at-orbit-center { width: 90px; height: 90px; }
  .at-h-timeline-wrap { overflow-x: auto; }
  .at-h-tl-steps { min-width: 720px; }
  .at-h-tl-line { min-width: 720px; }
  .at-roi-results { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767.98px) {
  .at-ba-wrap { flex-direction: column; cursor: default; }
  .at-ba-before { width: 100%; flex-shrink: 1; border-radius: 20px 20px 0 0; overflow: visible; border-bottom: 3px solid rgba(255,61,61,0.2); }
  .at-ba-after  { border-radius: 0 0 20px 20px; overflow: visible; }
  .at-ba-handle { display: none; }
  .at-orbital-wrap { display: none; }
  .at-roi-calc { padding: 24px; }
  .at-cta-stats { gap: 8px; }
}
