/* ============================================================
   Fit-Edge — 딥다크 · 일렉트릭 시안 · 하이테크 AI
   ============================================================ */
body.edge-page {
  background: var(--edge-bg);
  color: #E8FDFA;
}
.edge-page .gnb { color: #E8FDFA; }
.edge-page .gnb.scrolled { background: rgba(5,7,13,0.72); }
@media (max-width: 900px) { .edge-page .gnb nav { background: rgba(5,7,13,0.97); } }

.edge-page .eyebrow { color: var(--edge); }
.edge-page .sub { color: #7E93A3; }
.grad-edge {
  background: var(--edge-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- HERO (노드 네트워크) ---------- */
.e-hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center; text-align: center;
  padding: 140px 24px 80px; overflow: hidden;
}
.e-hero .net { position: absolute; inset: 0; z-index: 0; opacity: 0.8; }
.e-hero .inner { position: relative; z-index: 1; max-width: 860px; margin: 0 auto; }
/* 히어로 배경 영상 오버레이 — 딥다크 + 시안 틴트로 노드 네트워크/텍스트 대비 확보 */
.edge-page .hero-video-overlay {
  background:
    radial-gradient(1000px 600px at 70% 40%, rgba(0,229,204,0.10) 0%, transparent 60%),
    linear-gradient(180deg, rgba(5,7,13,0.74) 0%, rgba(5,7,13,0.90) 100%);
}
.e-hero .hero-video-wrap video { opacity: 0.55; }  /* 배경으로 은은하게 */

/* 타이핑 커서 */
.type-line { min-height: 1.3em; }
.type-line .caret {
  display: inline-block; width: 0.55em; height: 1.05em;
  background: var(--edge); vertical-align: -0.12em; margin-left: 4px;
  animation: caretBlink 0.9s steps(1) infinite;
}
@keyframes caretBlink { 50% { opacity: 0; } }

.e-hero .cta-row { display: flex; gap: 14px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }
.btn-edge {
  background: transparent; color: var(--edge);
  border: 1.5px solid rgba(0,229,204,0.6);
  transition: box-shadow 0.3s, background 0.3s, transform 0.25s var(--ease-out);
}
.btn-edge:hover {
  box-shadow: 0 0 32px -6px rgba(0,229,204,0.65), inset 0 0 18px -8px rgba(0,229,204,0.4);
  background: rgba(0,229,204,0.06);
}
.btn-edge-solid { background: var(--edge-grad); color: #04121A; }

/* ---------- 스크롤 시퀀스 (감지→분석→응답) ---------- */
.e-seq { padding: 120px 0; }
.seq-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 64px; position: relative; }
/* 연결 라인 */
.seq-steps::before {
  content: ''; position: absolute; top: 44px; left: 12%; right: 12%;
  height: 2px; background: linear-gradient(90deg, transparent, rgba(0,229,204,0.5), transparent);
}
.seq-step {
  position: relative; text-align: center; padding: 0 16px;
}
.seq-step .node {
  width: 88px; height: 88px; border-radius: 50%;
  margin: 0 auto 24px; display: flex; align-items: center; justify-content: center;
  font-size: 34px;
  background: rgba(0,229,204,0.05);
  border: 1px solid rgba(0,229,204,0.3);
  position: relative; z-index: 1;
  transition: box-shadow 0.5s, border-color 0.5s;
}
.seq-step.reveal.in .node {
  border-color: rgba(0,229,204,0.8);
  box-shadow: 0 0 40px -8px rgba(0,229,204,0.5);
}
.seq-step .num { color: var(--edge); font-size: 13px; font-weight: 800; letter-spacing: 0.15em; }
.seq-step h3 { margin: 8px 0; color: #E8FDFA; }
.seq-step p { color: #7E93A3; font-size: 15px; }

/* ---------- 감지 데모 영상 카드 (Kemtai/Ambient 스타일 쇼릴) ---------- */
.seq-demo { margin: 72px auto 0; max-width: 900px; }
.seq-demo-frame {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg);
  overflow: hidden; border: 1px solid rgba(0,229,204,0.28);
  box-shadow: 0 40px 100px -34px rgba(0,229,204,0.35);
  /* 영상 준비 전(placeholder): 브랜드 그라데이션 + 스캔 그리드 */
  background:
    linear-gradient(120deg, rgba(0,229,204,0.10), rgba(74,146,206,0.06)),
    repeating-linear-gradient(0deg, transparent 0 26px, rgba(0,229,204,0.05) 26px 27px),
    repeating-linear-gradient(90deg, transparent 0 26px, rgba(0,229,204,0.05) 26px 27px),
    var(--edge-bg);
}
/* placeholder 중앙 재생 아이콘 (영상 로드되면 video가 덮음) */
.seq-demo-frame::after {
  content: '▶'; position: absolute; inset: 0; z-index: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 34px; color: rgba(0,229,204,0.55);
}
.seq-demo-frame video {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 0.9s var(--ease-out);
}
.seq-demo.is-ready .seq-demo-frame video { opacity: 1; }
.seq-demo-live {
  position: absolute; z-index: 2; top: 14px; left: 14px;
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11.5px; font-weight: 800; letter-spacing: 0.08em; color: var(--edge);
  padding: 7px 13px; border-radius: 999px;
  background: rgba(5,7,13,0.82); border: 1px solid rgba(0,229,204,0.5);
  backdrop-filter: blur(6px);
}
.seq-demo figcaption {
  color: #7E93A3; font-size: 14px; text-align: center;
  max-width: 62ch; margin: 18px auto 0;
}

/* ---------- 아키텍처 다이어그램 ---------- */
.e-arch { padding: 60px 0 120px; }
.arch-box {
  border: 1px solid rgba(0,229,204,0.18); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(0,229,204,0.03), transparent);
  padding: clamp(24px, 4vw, 56px); margin-top: 48px;
}
.arch-svg { width: 100%; height: auto; }
.arch-svg .wire {
  stroke: var(--edge); stroke-width: 1.6; fill: none;
  stroke-dasharray: 400; stroke-dashoffset: 400;
  opacity: 0.75;
}
.arch-box.in .wire { animation: wireDraw 1.6s var(--ease-out) forwards; }
.arch-box.in .wire.w2 { animation-delay: 0.5s; }
@keyframes wireDraw { to { stroke-dashoffset: 0; } }
.arch-svg .box-r { fill: rgba(0,229,204,0.05); stroke: rgba(0,229,204,0.4); stroke-width: 1.2; rx: 12; }
.arch-svg text { fill: #C9F7F0; font-family: inherit; font-weight: 700; }
.arch-svg .t-sub { fill: #7E93A3; font-size: 11px; font-weight: 500; }

/* ---------- 비식별 스켈레톤 뷰파인더 (Kemtai 레퍼런스) ---------- */
.pose-stage {
  position: relative; width: min(300px, 72vw); margin: 56px auto 0;
  padding: 44px 14px 14px; border-radius: 18px;
  background: linear-gradient(180deg, rgba(0,229,204,0.04), rgba(74,146,206,0.03));
  border: 1px solid rgba(0,229,204,0.16);
  overflow: hidden;
  opacity: 0; animation: poseIn 0.9s var(--ease-out) 1.6s forwards;
}
/* 실제 영상(비식별 실루엣) 피드 + 스켈레톤 오버레이 */
.ps-feed {
  position: relative; width: 100%; aspect-ratio: 480 / 848;  /* AI 클립 비율에 맞춰 크롭 없음 */
  border-radius: 12px; overflow: hidden; background: #04121A;
  border: 1px solid rgba(0,229,204,0.14);
}
.ps-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center; z-index: 1;
}
.ps-scan { z-index: 3; }
@keyframes poseIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.ps-corner { position: absolute; width: 18px; height: 18px; border: 2px solid rgba(0,229,204,0.65); }
.ps-corner.tl { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.ps-corner.tr { top: 10px; right: 10px; border-left: 0; border-bottom: 0; }
.ps-corner.bl { bottom: 10px; left: 10px; border-right: 0; border-top: 0; }
.ps-corner.br { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }
.ps-head {
  position: absolute; top: 16px; left: 0; right: 0;
  display: flex; justify-content: space-between; padding: 0 34px;
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.12em;
}
.ps-live { color: var(--edge); display: inline-flex; align-items: center; gap: 6px; }
.ps-grade { color: #7E93A3; }
.pulse-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--edge); flex: none;
  animation: dotPulse 1.6s ease-in-out infinite;
}
@keyframes dotPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(0,229,204,0.5); } 50% { box-shadow: 0 0 0 6px rgba(0,229,204,0); } }
.pose-stage svg { width: 100%; height: auto; display: block; }
.pose-stage .bone {
  fill: none; stroke: rgba(0,229,204,0.75); stroke-width: 2.4; stroke-linecap: round;
  stroke-dasharray: 200; stroke-dashoffset: 200;
  animation: wireDraw 1.4s var(--ease-out) 2s forwards;
}
.pose-stage .bone.head { fill: rgba(0,229,204,0.06); stroke-dasharray: 100; stroke-dashoffset: 100; }
.pose-stage .joints circle {
  fill: #05070D; stroke: var(--edge); stroke-width: 2;
  opacity: 0; animation: jointIn 0.5s ease 2.9s forwards;
}
@keyframes jointIn { to { opacity: 1; } }
/* 스캔 라인: 위→아래 왕복 */
.ps-scan {
  position: absolute; left: 8%; right: 8%; height: 2px; top: 22%;
  background: linear-gradient(90deg, transparent, rgba(0,229,204,0.8), transparent);
  filter: drop-shadow(0 0 6px rgba(0,229,204,0.7));
  animation: scanY 3.6s ease-in-out 3s infinite;
}
@keyframes scanY { 0%,100% { top: 22%; opacity: 0.9; } 50% { top: 86%; opacity: 0.5; } }
.ps-meta {
  margin-top: 14px; text-align: center;
  font-size: 10px; letter-spacing: 0.14em; color: #56707F; font-weight: 700;
}

/* ---------- 라이브 콘솔 오버레이 (Ambient.ai 'AI가 보는 화면') ---------- */
.console-live { position: relative; margin-top: 48px; }
.cl-chip {
  position: absolute; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11.5px; font-weight: 800; letter-spacing: 0.06em; white-space: nowrap;
  color: #E8FDFA; padding: 8px 14px; border-radius: 999px;
  background: rgba(5,7,13,0.82); border: 1px solid rgba(0,229,204,0.5);
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 24px -8px rgba(0,229,204,0.35);
  opacity: 0; transform: translateY(10px);
}
.console-live.in .cl-chip { animation: chipIn 0.6s var(--ease-out) forwards; }
.console-live.in .cl-chip.c2 { animation-delay: 0.35s; }
@keyframes chipIn { to { opacity: 1; transform: none; } }
.cl-chip.c1 { top: 14%; right: 4%; }
.cl-chip.c2 { top: 34%; right: 10%; }
.cl-badge {
  position: absolute; bottom: 5%; left: 4%; z-index: 2;
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  color: var(--edge); padding: 7px 13px; border-radius: 8px;
  background: rgba(5,7,13,0.85); border: 1px solid rgba(0,229,204,0.3);
}
.console-cap {
  color: #7E93A3; font-size: 14px; text-align: center;
  max-width: 62ch; margin: 18px auto 0;
}

/* ---------- 기술 도입 문의 폼 (다크 무드) ---------- */
.edge-form {
  background: rgba(0,229,204,0.03);
  border: 1px solid rgba(0,229,204,0.18); border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px);
}
.edge-form .ff label { color: #C9F7F0; }
.edge-form .ff input, .edge-form .ff textarea {
  background: rgba(255,255,255,0.04); color: #E8FDFA;
  border-color: rgba(0,229,204,0.2);
}
.edge-form .ff input:focus, .edge-form .ff textarea:focus {
  outline: none; border-color: var(--edge);
  box-shadow: 0 0 0 3px rgba(0,229,204,0.18);
}
.edge-form .ff input::placeholder, .edge-form .ff textarea::placeholder { color: #56707F; }
.edge-form [type="submit"] { justify-content: center; margin-top: 4px; }
.edge-form .form-status.success { color: var(--edge); }

/* 특허 등록 기술 증빙 스트립 */
.patent-strip {
  display: grid; grid-template-columns: 120px 1fr auto;
  gap: clamp(20px, 3vw, 36px); align-items: center;
  margin-top: 48px; padding: clamp(20px, 3vw, 32px);
  border: 1px solid rgba(0,229,204,0.22); border-radius: var(--radius-lg);
  background: linear-gradient(120deg, rgba(0,229,204,0.06), rgba(74,146,206,0.04));
  cursor: zoom-in; position: relative; overflow: hidden;
  transition: border-color 0.4s, box-shadow 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.patent-strip:hover {
  transform: translateY(-4px);
  border-color: rgba(0,229,204,0.55);
  box-shadow: 0 28px 70px -30px rgba(0,229,204,0.45);
}
/* 은은한 시안 펄스 보더 글로우 */
.patent-strip::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(500px 200px at 10% 50%, rgba(0,229,204,0.08), transparent 70%);
}
.patent-strip .p-thumb {
  border-radius: 10px; overflow: hidden;
  border: 1px solid rgba(0,229,204,0.3);
  box-shadow: 0 12px 32px -12px rgba(0,0,0,0.6);
  transform: rotate(-2deg); transition: transform 0.5s var(--ease-out);
}
.patent-strip:hover .p-thumb { transform: rotate(0deg) scale(1.04); }
.patent-strip .p-label {
  color: var(--edge); font-size: 12px; font-weight: 800; letter-spacing: 0.14em;
}
.patent-strip h3 { color: #E8FDFA; margin-top: 8px; font-size: clamp(17px, 2vw, 21px); }
.patent-strip .p-body p { color: #7E93A3; font-size: 14.5px; margin-top: 8px; line-height: 1.7; }
.patent-strip .p-body strong { color: #C9F7F0; }
.patent-strip .p-zoom {
  color: var(--edge); font-size: 13.5px; font-weight: 700; white-space: nowrap;
  opacity: 0.75; transition: opacity 0.3s;
}
.patent-strip:hover .p-zoom { opacity: 1; }

/* 중앙 정렬 컨테이너의 문단 폭 교정 */
.e-hero .lead, .e-seq .lead { margin-left: auto; margin-right: auto; max-width: 56ch; }

/* 관제 콘솔 스크린샷 */
.console-shot {
  width: 100%; border-radius: var(--radius);
  border: 1px solid rgba(0,229,204,0.25);
  box-shadow: 0 40px 100px -30px rgba(0,229,204,0.25);
  margin-top: 48px; display: block;
}

/* ---------- 지표 카운트업 ---------- */
.e-metrics { padding: 100px 0; background: linear-gradient(180deg, transparent, rgba(0,229,204,0.04), transparent); }
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.metric {
  text-align: center; padding: 40px 24px;
  border: 1px solid rgba(0,229,204,0.14); border-radius: var(--radius);
}
.metric .n {
  font-size: clamp(36px, 4.5vw, 56px); font-weight: 800;
  background: var(--edge-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.metric .l { color: #7E93A3; margin-top: 8px; font-size: 15px; }

/* ---------- Privacy ---------- */
.e-priv { padding: 40px 0 120px; }
.priv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.priv-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(0,229,204,0.14); border-radius: var(--radius);
  padding: 28px;
}
.priv-card .ic { font-size: 26px; margin-bottom: 14px; }
.priv-card h3 { font-size: 17px; color: #E8FDFA; }
.priv-card p { color: #7E93A3; font-size: 14px; margin-top: 8px; }

/* ---------- CTA ---------- */
.e-cta { padding: 110px 0; text-align: center; }
.e-cta p { color: #7E93A3; margin-top: 14px; font-size: 18px; }
.e-cta .btn { margin-top: 34px; }

/* ---------- 반응형 ---------- */
@media (max-width: 900px) {
  .seq-steps { grid-template-columns: 1fr; gap: 48px; }
  .patent-strip { grid-template-columns: 1fr; text-align: center; }
  .patent-strip .p-thumb { width: 140px; margin: 0 auto; }
  .patent-strip .p-zoom { justify-self: center; }
  .seq-steps::before {
    top: 8%; bottom: 8%; left: 50%; right: auto; width: 2px; height: auto;
    background: linear-gradient(180deg, transparent, rgba(0,229,204,0.5), transparent);
  }
  .metric-grid, .priv-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .cl-chip { font-size: 9px; padding: 5px 9px; }
  .cl-chip.c2 { top: 42%; }
  .cl-badge { font-size: 9px; padding: 5px 8px; }
  .pose-stage { margin-top: 40px; }
}
