/* ==========================================================================
   UNIVISTA — 제2안 오버레이 스타일
   site.css 뒤에 불러와 "에너지 · 움직이는 데이터" 톤으로 덮어씁니다.
   ========================================================================== */

:root {
  --g-main: linear-gradient(112deg, #005a9d 0%, #0a6fbd 38%, #35c2f5 72%, #6fe3c4 100%);
  --g-soft: linear-gradient(135deg, rgba(0,90,157,.10) 0%, rgba(53,194,245,.12) 55%, rgba(111,227,196,.12) 100%);
  --glow-brand: 0 18px 46px -18px rgba(0,110,190,.75);
  --glow-accent: 0 0 0 1px rgba(53,194,245,.35), 0 20px 50px -20px rgba(53,194,245,.5);
  --radius-lg: 24px;
}

/* ------------------------------------------------------------ 타이포 --- */
.section-head h2 { font-size: clamp(32px, 4.4vw, 54px); letter-spacing: -0.045em; line-height: 1.24; }
.section-head p { font-size: 17.5px; }
.eyebrow {
  padding: 7px 16px 7px 14px; border-radius: 99px;
  background: var(--brand-050); border: 1px solid #d2e6f7;
  font-size: 12px; letter-spacing: .12em;
}
.eyebrow::before { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.eyebrow.on-dark { background: rgba(53,194,245,.12); border-color: rgba(53,194,245,.32); }

/* 그라데이션 텍스트 */
.grad-text {
  background: var(--g-main); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}

/* ------------------------------------------------------------- 버튼 --- */
.btn-primary {
  background: var(--g-main); background-size: 180% 100%; background-position: 0% 50%;
  box-shadow: var(--glow-brand);
  transition: background-position .5s cubic-bezier(.2,.7,.3,1), transform .22s, box-shadow .22s;
}
.btn-primary:hover { background: var(--g-main); background-size: 180% 100%; background-position: 100% 50%; transform: translateY(-3px); }

/* =============================================================== HERO === */
.hero2 {
  position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 90% at 78% 8%, #0e4f86 0%, #0a2540 46%, #04121f 100%);
  color: #fff; padding: 84px 0 64px;
}
/* 드리프트하는 데이터 격자 */
.hero2::before {
  content: ""; position: absolute; inset: -60px; z-index: 0;
  background-image:
    linear-gradient(rgba(120,190,240,.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120,190,240,.10) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 55% 40%, #000 25%, transparent 100%);
  mask-image: radial-gradient(ellipse 85% 75% at 55% 40%, #000 25%, transparent 100%);
  animation: gridDrift 26s linear infinite;
}
@keyframes gridDrift { to { transform: translate(64px, 64px); } }

/* 떠다니는 광원 */
.orb { position: absolute; border-radius: 50%; filter: blur(8px); pointer-events: none; z-index: 0; }
.orb.a { width: 620px; height: 620px; right: -140px; top: -180px;
  background: radial-gradient(circle, rgba(53,194,245,.42) 0%, transparent 62%); animation: float1 17s ease-in-out infinite; }
.orb.b { width: 500px; height: 500px; left: -170px; bottom: -190px;
  background: radial-gradient(circle, rgba(111,227,196,.30) 0%, transparent 64%); animation: float2 21s ease-in-out infinite; }
.orb.c { width: 380px; height: 380px; left: 46%; top: 8%;
  background: radial-gradient(circle, rgba(0,110,190,.42) 0%, transparent 66%); animation: float3 25s ease-in-out infinite; }
@keyframes float1 { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(-56px,46px) scale(1.09)} }
@keyframes float2 { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(52px,-42px) scale(1.12)} }
@keyframes float3 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(38px,52px)} }

.hero2 .container { position: relative; z-index: 2; }
.hero2-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 60px; align-items: center; }
.hero2 h1 {
  color: #fff; font-size: clamp(34px, 4.3vw, 55px); line-height: 1.16;
  letter-spacing: -0.05em; margin-top: 20px; font-weight: 800;
}
.hero2-lead { margin-top: 20px; font-size: 17px; line-height: 1.75; color: #b8d0e6; max-width: 560px; }
.hero2-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }

/* 히어로 지표 */
.hero2-stats { margin-top: 32px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.hero2-stat {
  background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.13);
  border-radius: 16px; padding: 16px 20px; backdrop-filter: blur(6px);
  position: relative; overflow: hidden;
}
.hero2-stat::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--g-main); transform: scaleX(0); transform-origin: left;
  transition: transform 1.1s cubic-bezier(.2,.8,.3,1);
}
.hero2-stat.in::after { transform: scaleX(1); }
.hero2-stat .v { font-size: 30px; font-weight: 800; letter-spacing: -0.045em; line-height: 1.1;
  background: linear-gradient(100deg,#fff 0%, #9fe0fb 70%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero2-stat .v small { font-size: 18px; }
.hero2-stat .k { margin-top: 6px; font-size: 13.5px; color: #93b2cd; }

/* 라이브 대시보드 */
.hero2-viz {
  position: relative; border-radius: 22px; padding: 20px;
  background: linear-gradient(160deg, rgba(255,255,255,.1) 0%, rgba(255,255,255,.035) 100%);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 50px 90px -34px rgba(0,0,0,.72);
  backdrop-filter: blur(10px);
  animation: cardFloat 9s ease-in-out infinite;
}
@keyframes cardFloat { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }
.hero2-viz::before {
  content: ""; position: absolute; inset: -1px; border-radius: 23px; z-index: -1;
  background: var(--g-main); opacity: .35; filter: blur(14px);
}

/* 선 그리기 */
.draw { stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw 2.6s cubic-bezier(.35,.9,.4,1) .35s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.fadein { opacity: 0; animation: fadeIn .9s ease 1.7s forwards; }
@keyframes fadeIn { to { opacity: 1; } }
.bar-grow { transform-box: fill-box; transform-origin: center bottom; transform: scaleY(0); animation: barGrow .85s cubic-bezier(.2,.9,.3,1) forwards; }
@keyframes barGrow { to { transform: scaleY(1); } }
.pulse { animation: pulse 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes pulse { 0%,100%{opacity:1;r:3.6} 50%{opacity:.5;r:5.4} }
.spark { animation: spark 3.4s linear infinite; }
@keyframes spark { 0%{opacity:0;transform:translateX(0)} 12%{opacity:1} 88%{opacity:1} 100%{opacity:0;transform:translateX(309px)} }

/* ===================================================== 대각선 구분 === */
.slant { position: relative; }
.slant::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 90px;
  background: inherit; transform: skewY(-2.4deg); transform-origin: top left; z-index: 0;
}
.slant > * { position: relative; z-index: 1; }

/* ============================================================== 카드 === */
.card, .testimonial, .stat {
  border-radius: var(--radius-lg);
  transition: transform .3s cubic-bezier(.2,.7,.3,1), box-shadow .3s, border-color .3s;
}
.card { position: relative; }
.card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; z-index: -1;
  background: var(--g-main); opacity: 0; transition: opacity .3s;
}
.card:hover { transform: translateY(-8px); box-shadow: 0 30px 60px -28px rgba(10,37,64,.4); border-color: transparent; }
.card:hover::before { opacity: 1; }

.card-icon {
  background: var(--g-main); background-size: 170% 100%;
  box-shadow: 0 14px 30px -14px rgba(0,110,190,.85);
  transition: transform .35s cubic-bezier(.2,.7,.3,1), background-position .5s;
}
.card:hover .card-icon { transform: translateY(-3px) rotate(-6deg) scale(1.06); background-position: 100% 50%; }
.card-icon.soft { background: var(--brand-050); box-shadow: none; }

/* 다크 카드 */
.card-dark { border-radius: var(--radius-lg); position: relative; overflow: hidden; }
.card-dark::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--g-main); transform: scaleY(0); transform-origin: top; transition: transform .38s cubic-bezier(.2,.8,.3,1);
}
.card-dark:hover { transform: translateY(-8px); }
.card-dark:hover::after { transform: scaleY(1); }

/* ============================================================ 지표 === */
.stat { position: relative; overflow: hidden; }
.stat .v {
  background: var(--g-main); -webkit-background-clip: text; background-clip: text; color: transparent;
  font-size: 46px;
}
.stat .bar { height: 8px; background: #eaf1f8; }
.stat .bar > i { background: var(--g-main); box-shadow: 0 0 12px rgba(53,194,245,.6); }

/* ======================================================== 용어 칩 === */
.term-grid span {
  transition: transform .25s cubic-bezier(.2,.7,.3,1), box-shadow .25s, border-color .25s, color .25s;
}
.term-grid span:hover {
  transform: translateY(-4px) scale(1.04);
  border-color: transparent; color: #fff; background: var(--g-main);
  box-shadow: 0 14px 28px -12px rgba(0,110,190,.7);
}

/* ======================================================= 비교 패널 === */
.compare-panel.b {
  background: radial-gradient(130% 110% at 85% 0%, #0a6fbd 0%, #05305a 55%, #04182c 100%);
  position: relative; overflow: hidden;
}
.compare-panel.b::after {
  content: ""; position: absolute; width: 340px; height: 340px; right: -110px; bottom: -140px;
  background: radial-gradient(circle, rgba(111,227,196,.34) 0%, transparent 65%);
  animation: float2 15s ease-in-out infinite; pointer-events: none;
}

/* ====================================================== CTA / 푸터 === */
.cta-band { background: radial-gradient(120% 140% at 12% 0%, #0a6fbd 0%, #00437a 45%, #052a4c 100%); }
.cta-band::before { background-image: radial-gradient(circle at 88% 15%, rgba(111,227,196,.34) 0%, transparent 52%); }
.cta-band h2 { font-size: clamp(28px, 3.6vw, 42px); letter-spacing: -0.045em; }

/* ========================================================== 마퀴 === */
.org-chip { border-radius: 18px; font-size: 20px; height: 82px; }
.org-chip:hover {
  border-color: transparent; color: #fff; background: var(--g-main);
  box-shadow: 0 16px 34px -14px rgba(0,110,190,.7);
}

/* ======================================================= 등장 효과 === */
.reveal { transform: translateY(30px) scale(.985); transition: opacity .8s cubic-bezier(.2,.7,.3,1), transform .8s cubic-bezier(.2,.7,.3,1); }
.reveal.in { transform: none; }

/* 스크롤 진행 바 */
.scroll-bar {
  position: fixed; top: 0; left: 0; height: 3px; z-index: 200;
  background: var(--g-main); width: 0; box-shadow: 0 0 12px rgba(53,194,245,.7);
}

/* ========================================================== 반응형 === */
@media (max-width: 1080px) { .hero2-grid { grid-template-columns: 1fr; gap: 48px; } }
@media (max-width: 640px) {
  .hero2 { padding: 72px 0 84px; }
  .hero2-stats { grid-template-columns: 1fr; }
  .hero2-stat { display: flex; align-items: baseline; gap: 12px; }
  .hero2-stat .k { margin-top: 0; }
  .org-chip { height: 64px; font-size: 16.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero2::before, .orb, .hero2-viz, .compare-panel.b::after { animation: none !important; }
  .draw { stroke-dashoffset: 0; animation: none; }
  .fadein { opacity: 1; animation: none; }
  .bar-grow { transform: none; animation: none; }
  .pulse, .spark { animation: none; }
  .hero2-stat::after { transform: scaleX(1); }
}

/* ------------------------- 용어 칩 순차 등장 (CSS 전용) --- */
.term-grid.reveal span { opacity: 0; transform: translateY(14px);
  transition: opacity .45s ease, transform .45s cubic-bezier(.2,.8,.3,1), border-color .25s, color .25s, box-shadow .25s; }
.term-grid.reveal.in span { opacity: 1; transform: none; }
.term-grid.reveal.in span:hover { transform: translateY(-4px) scale(1.04); }
.term-grid.in span:nth-child(1){transition-delay:0.00s}
.term-grid.in span:nth-child(2){transition-delay:0.04s}
.term-grid.in span:nth-child(3){transition-delay:0.07s}
.term-grid.in span:nth-child(4){transition-delay:0.11s}
.term-grid.in span:nth-child(5){transition-delay:0.14s}
.term-grid.in span:nth-child(6){transition-delay:0.18s}
.term-grid.in span:nth-child(7){transition-delay:0.21s}
.term-grid.in span:nth-child(8){transition-delay:0.25s}
.term-grid.in span:nth-child(9){transition-delay:0.28s}
.term-grid.in span:nth-child(10){transition-delay:0.32s}
.term-grid.in span:nth-child(11){transition-delay:0.35s}
.term-grid.in span:nth-child(12){transition-delay:0.39s}
.term-grid.in span:nth-child(13){transition-delay:0.42s}
.term-grid.in span:nth-child(14){transition-delay:0.46s}
.term-grid.in span:nth-child(15){transition-delay:0.49s}
.term-grid.in span:nth-child(16){transition-delay:0.53s}
.term-grid.in span:nth-child(17){transition-delay:0.56s}
.term-grid.in span:nth-child(18){transition-delay:0.60s}
.term-grid.in span:nth-child(19){transition-delay:0.63s}
.term-grid.in span:nth-child(20){transition-delay:0.67s}
.term-grid.in span:nth-child(21){transition-delay:0.70s}
.term-grid.in span:nth-child(22){transition-delay:0.74s}
.term-grid.in span:nth-child(23){transition-delay:0.77s}
.term-grid.in span:nth-child(24){transition-delay:0.81s}
.term-grid.in span:nth-child(25){transition-delay:0.84s}
.term-grid.in span:nth-child(26){transition-delay:0.88s}
.term-grid.in span:nth-child(27){transition-delay:0.91s}
.term-grid.in span:nth-child(28){transition-delay:0.95s}
.term-grid.in span:nth-child(29){transition-delay:0.98s}
.term-grid.in span:nth-child(30){transition-delay:1.02s}

@media (prefers-reduced-motion: reduce) {
  .term-grid.reveal span { opacity: 1; transform: none; transition: none; }
}

/* ------------------------------- 히어로 위 투명 헤더 --- */
.site-header { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.site-header .brand .brand-dark { display: none; }
.site-header .brand .brand-light { display: flex; align-items: center; gap: 11px;
  color: #fff; font-size: 21px; font-weight: 500; letter-spacing: .2em; white-space: nowrap; }
.site-header .brand .brand-light svg { width: 27px; height: 27px; flex: none; }
.site-header .nav > li > a { color: #cfe0ef; }
.site-header .nav > li > a:hover { color: #fff; background: rgba(255,255,255,.12); }
.site-header .nav > li.active > a { color: #fff; }
.site-header .nav-toggle { border-color: rgba(255,255,255,.3); }
.site-header .nav-toggle svg { color: #fff; }
.site-header .header-tel { color: #9fd8f4; }

.site-header.scrolled {
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
}
.site-header.scrolled .brand .brand-dark { display: block; }
.site-header.scrolled .brand .brand-light { display: none; }
.site-header.scrolled .nav > li > a { color: #2c4157; }
.site-header.scrolled .nav > li > a:hover { color: var(--brand); background: var(--brand-050); }
.site-header.scrolled .nav > li.active > a { color: var(--brand); }
.site-header.scrolled .nav-toggle { border-color: var(--line); }
.site-header.scrolled .nav-toggle svg { color: var(--ink); }
.site-header.scrolled .header-tel { color: var(--brand); }
main { padding-top: 0; }

/* ------------------------------------- 아래로 스크롤 유도 --- */
.scroll-cue {
  position: absolute; right: 52px; bottom: 30px; z-index: 3;
  display: flex; align-items: center; gap: 12px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .1em;
  color: #9fd8f4; text-transform: uppercase;
  opacity: 0; animation: cueIn .8s ease 2.4s forwards;
}
@keyframes cueIn { to { opacity: 1; } }
.scroll-cue .ring {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(53,194,245,.45); background: rgba(53,194,245,.1);
  display: grid; place-content: center; backdrop-filter: blur(4px);
  animation: cueBounce 2s cubic-bezier(.4,0,.5,1) infinite;
  transition: background .25s, border-color .25s, transform .25s;
}
.scroll-cue .ring svg { width: 18px; height: 18px; }
.scroll-cue:hover .ring { background: rgba(53,194,245,.26); border-color: #35c2f5; }
@keyframes cueBounce { 0%,100%{transform:translateY(0)} 50%{transform:translateY(7px)} }

/* 다음 섹션이 화면에 살짝 걸치도록 */
#why { scroll-margin-top: 0; }
#why .section-head { padding-top: 6px; }

@media (max-width: 1080px) { .scroll-cue { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .scroll-cue { opacity: 1; animation: none; }
  .scroll-cue .ring { animation: none; }
}

/* ===================================================== 서브 페이지 히어로 === */
.page-hero {
  padding-top: calc(58px + var(--header-h)); padding-bottom: 76px;
  background: radial-gradient(120% 110% at 80% 0%, #0e4f86 0%, #0a2540 48%, #04121f 100%);
  isolation: isolate;
}
.page-hero::before {
  background-image:
    linear-gradient(rgba(120,190,240,.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120,190,240,.09) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridDrift 30s linear infinite;
  inset: -60px;
}
.page-hero::after { display: none; }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(30px, 4.1vw, 50px); letter-spacing: -0.05em; font-weight: 800; }
.page-hero h1 .grad-text,
.page-hero .lead strong { color: inherit; }
.page-hero .lead { font-size: 17px; color: #b8d0e6; }
.page-hero .orb.a { width: 520px; height: 520px; right: -150px; top: -220px; }
.page-hero .orb.b { width: 400px; height: 400px; left: -150px; bottom: -180px; }

/* 다크 섹션도 광원 톤으로 */
.section.on-dark { position: relative; isolation: isolate; }

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

/* --- 모바일 레이아웃 보정 (1안 site.css 규칙과 동일 사유) --- */
.page-hero, .hero2 { overflow: hidden; }
