/* =========================================================
   메인 페이지 이펙트
   ========================================================= */
.marquee-track { animation-duration: 70s; }

/* 메인에서는 헤더가 히어로 위에 투명하게 겹침 */
body[data-page="home"] .site-header:not(.scrolled) { background: transparent; backdrop-filter: none; }
body[data-page="home"] .site-header:not(.scrolled) .logo img { filter: brightness(0) invert(1); }
body[data-page="home"] .site-header:not(.scrolled) .gnb > li > a { color: rgba(255,255,255,.85); }
body[data-page="home"] .site-header:not(.scrolled) .gnb > li > a:hover { color: #fff; background: rgba(255,255,255,.1); }
body[data-page="home"] .site-header:not(.scrolled) .btn-primary { background: #fff; color: var(--blue-700); }
body[data-page="home"] .site-header:not(.scrolled) .menu-toggle span { background: #fff; }
.site-header .logo img, .gnb > li > a, .site-header .btn { transition: background .3s, color .3s, filter .3s, box-shadow .3s; }

.hero-fx { margin-top: calc(-1 * var(--header-h)); min-height: 100vh; min-height: 100svh; display: flex; align-items: center; isolation: isolate; }
.hero-fx::before { z-index: 0; }
.hero-fx .container { z-index: 2; width: 100%; min-height: 0; padding-top: calc(var(--header-h) + 56px); padding-bottom: 140px; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.hero-glow {
  position: absolute; z-index: 1; left: 0; top: 0; width: 640px; height: 640px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(0,182,250,.35), rgba(0,182,250,0) 65%);
  transform: translate3d(var(--gx, 70vw), var(--gy, 30vh), 0) translate(-50%, -50%);
  transition: transform .8s cubic-bezier(.2,.8,.2,1);
}
.hero-fx h1 { font-size: clamp(38px, 5.6vw, 72px); line-height: 1.18; }
.hero-fx h1 .line { display: block; overflow: hidden; padding-bottom: .08em; }
.hero-fx h1 .line > span { display: inline-block; }

/* 등장 애니메이션 */
.rise { opacity: 0; transform: translateY(40px); filter: blur(6px); animation: rise 1s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: var(--d, 0s); }
@keyframes rise { to { opacity: 1; transform: none; filter: none; } }

/* 단어 회전 */
.rotator { display: inline-grid; vertical-align: bottom; overflow: hidden; height: 1.2em; }
.rotator .word {
  grid-area: 1 / 1; color: transparent;
  background: linear-gradient(90deg, #7fdcff, var(--sky-400) 50%, #a7ecff); -webkit-background-clip: text; background-clip: text;
  transform: translateY(110%); opacity: 0; transition: transform .7s cubic-bezier(.7,0,.2,1), opacity .5s;
}
.rotator .word.on { transform: none; opacity: 1; }
.rotator .word.out { transform: translateY(-110%); opacity: 0; }

/* 버튼 반짝임 */
.btn-shine { position: relative; overflow: hidden; }
.btn-shine::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(110deg, transparent, rgba(0,182,250,.35), transparent); transform: skewX(-20deg); animation: shine 3.2s ease-in-out 1.6s infinite; }
@keyframes shine { 0% { left: -60%; } 40%, 100% { left: 130%; } }

/* 궤도 비주얼 */
.hero-fx .hero-visual { height: 560px; translate: var(--px, 0) var(--py, 0); transition: translate .5s ease-out; }
.ring { position: absolute; inset: 0; margin: auto; border-radius: 50%; }
.ring.r1 { width: 460px; height: 460px; border: 1px dashed rgba(255,255,255,.28); animation: spin 60s linear infinite; }
.ring.r2 { width: 320px; height: 320px; border: 1px solid rgba(255,255,255,.12); }
.ring.r3 { width: 560px; height: 560px; border: 1px solid rgba(0,182,250,.2); box-shadow: inset 0 0 80px rgba(0,182,250,.08); }
.hero-fx .hero-core { width: 168px; height: 168px; font-size: 24px; z-index: 2; }
.hero-core .pulse { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(0,182,250,.6); animation: ripple 2.8s ease-out infinite; }
.hero-core .pulse.p2 { animation-delay: 1.4s; }
@keyframes ripple { from { transform: scale(1); opacity: .9; } to { transform: scale(2.2); opacity: 0; } }
.orbit-track { position: absolute; inset: 0; animation: spin 40s linear infinite; }
.orbit-item { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform: rotate(var(--a)) translateX(230px) rotate(calc(-1 * var(--a))); }
.orbit-item .hero-chip { left: 0; top: 0; translate: -50% -50%; white-space: nowrap; animation: spin 40s linear infinite reverse; }
.hero-visual:hover .orbit-track, .hero-visual:hover .orbit-item .hero-chip, .hero-visual:hover .ring.r1 { animation-play-state: paused; }
@keyframes spin { to { rotate: 360deg; } }

/* 스크롤 안내 */
.scroll-cue { position: absolute; z-index: 2; left: 50%; bottom: 92px; width: 26px; height: 42px; margin-left: -13px; border: 2px solid rgba(255,255,255,.55); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* 큰 텍스트 흐름 (스크롤에 반응) */
.kinetic { overflow: hidden; padding: 20px 0 100px; background: #fff; }
.kinetic-row { display: flex; gap: 48px; width: max-content; white-space: nowrap; font-size: clamp(56px, 9vw, 132px); font-weight: 900; letter-spacing: -.02em; line-height: 1.12; will-change: transform; }
.kinetic-row + .kinetic-row { margin-top: 4px; }
.kinetic-row span { color: transparent; -webkit-text-stroke: 1.5px rgba(0,97,174,.3); }
.kinetic-row span.fill { color: transparent; -webkit-text-stroke: 0; background: linear-gradient(90deg, var(--blue-700), var(--sky-400)); -webkit-background-clip: text; background-clip: text; }

/* 숫자 카운트업 */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 56px; border-top: 1px solid rgba(255,255,255,.16); border-bottom: 1px solid rgba(255,255,255,.16); }
.stat { padding: 36px 20px; text-align: center; }
.stat + .stat { border-left: 1px solid rgba(255,255,255,.16); }
.stat strong { display: block; font-size: clamp(48px, 6vw, 80px); font-weight: 900; line-height: 1; letter-spacing: -.03em; color: transparent; background: linear-gradient(180deg, #fff, #9fe3ff); -webkit-background-clip: text; background-clip: text; font-variant-numeric: tabular-nums; }
.stat strong em { font-style: normal; font-size: .36em; margin-left: 4px; font-weight: 700; }
.stat > span { display: block; margin-top: 12px; color: rgba(255,255,255,.75); font-size: 15px; }

/* 서비스 카드: 마우스 따라 빛 + 기울기 */
.service-card { will-change: transform; transition: transform .25s ease-out, box-shadow .25s, border-color .25s; }
.service-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(0,182,250,.16), transparent 45%);
}
.service-card:hover::before { opacity: 1; }
.service-card .ic { transition: transform .35s, background .35s, color .35s; }
.service-card:hover .ic { transform: scale(1.1) rotate(-6deg); background: linear-gradient(145deg, var(--blue-700), var(--sky-400)); color: #fff; }

/* 강점 카드 빛 테두리 */
.strength-item { position: relative; transition: transform .3s, background .3s; }
.strength-item:hover { transform: translateY(-6px); background: rgba(255,255,255,.1); }
.strength-item::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: linear-gradient(135deg, var(--sky-400), transparent 40%, transparent 60%, rgba(0,182,250,.6));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.strength-item:hover::after { opacity: 1; }

/* CTA: 어두운 파트너 섹션 바로 뒤라 위아래 여백을 같게 */
body[data-page="home"] .cta-band { padding: 110px 0; }
@media (max-width: 760px) { body[data-page="home"] .cta-band { padding: 72px 0; } }

/* CTA 흐르는 배경 */
.cta-box { background-size: 200% 200%; animation: flow 10s ease infinite; background-image: radial-gradient(500px 300px at 90% 0%, rgba(0,182,250,.55), transparent 70%), linear-gradient(120deg, var(--blue-900), var(--blue-700), #0a86d8, var(--blue-800)); }
@keyframes flow { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* 함께 성장한 기업: 어두운 배경 + 두 줄 반대 방향 슬라이드 */
.partners-fx { position: relative; overflow: hidden; color: #fff; background: radial-gradient(900px 500px at 15% 0%, rgba(0,182,250,.25), transparent 60%), radial-gradient(700px 500px at 100% 100%, rgba(26,134,214,.35), transparent 60%), var(--blue-900); }
.partners-fx .eyebrow { color: var(--sky-400); }
.partners-fx .section-title { font-size: clamp(32px, 4.4vw, 56px); line-height: 1.15; }
.partners-fx .section-title em { font-style: normal; color: transparent; background: linear-gradient(90deg, #7fdcff, var(--sky-400)); -webkit-background-clip: text; background-clip: text; }
.partners-fx .section-head.split { align-items: flex-end; }
.partners-fx .marquee { padding: 14px 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.partners-fx .marquee-track { gap: 28px; animation-name: marqueeP; animation-duration: 45s; }
@keyframes marqueeP { to { transform: translateX(calc(-50% - 14px)); } }
.partners-fx .marquee.reverse .marquee-track { animation-direction: reverse; animation-duration: 52s; }
.partners-fx .marquee:hover .marquee-track { animation-play-state: paused; }
.partners-fx .marquee-item { position: relative; width: 420px; border: 1px solid rgba(255,255,255,.12); border-radius: 22px; background: #0b1d33; box-shadow: 0 20px 50px rgba(0,0,0,.35); transition: transform .45s cubic-bezier(.2,.8,.2,1), opacity .4s, box-shadow .4s, border-color .4s; }
.partners-fx .marquee-item img { aspect-ratio: 10 / 9; transition: transform .8s cubic-bezier(.2,.8,.2,1), filter .4s; filter: saturate(.85) brightness(.85); }
.partners-fx .marquee-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,42,77,0) 45%, rgba(6,42,77,.92)); pointer-events: none; }
.partners-fx .marquee-item .no { position: absolute; z-index: 1; top: 18px; left: 22px; padding: 0; font-size: 15px; font-weight: 800; letter-spacing: .1em; color: rgba(255,255,255,.85); text-shadow: 0 2px 8px rgba(0,0,0,.4); }
.partners-fx .marquee-item .cap { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 24px 26px; }
.partners-fx .marquee-item .cap b { font-size: 24px; font-weight: 800; letter-spacing: -.01em; }
.partners-fx .marquee-item .cap i { display: inline-flex; align-items: center; gap: 6px; font-style: normal; font-size: 14px; font-weight: 700; color: var(--sky-400); white-space: nowrap; opacity: 0; transform: translateX(-8px); transition: opacity .35s, transform .35s; }
.partners-fx .marquee-item .cap i svg { width: 16px; height: 16px; }
.partners-fx .marquee-track:hover .marquee-item { opacity: .45; }
.partners-fx .marquee-track .marquee-item:hover { opacity: 1; transform: translateY(-10px) scale(1.04); border-color: var(--sky-400); box-shadow: 0 30px 70px rgba(0,182,250,.35), 0 0 0 1px var(--sky-400); }
.partners-fx .marquee-item:hover img { transform: scale(1.08); filter: none; }
.partners-fx .marquee-item:hover .cap i { opacity: 1; transform: none; }
@media (max-width: 760px) {
  .partners-fx .marquee-item { width: 280px; border-radius: 18px; }
  .partners-fx .marquee-item .cap { padding: 18px; }
  .partners-fx .marquee-item .cap b { font-size: 18px; }
  .partners-fx .marquee-item .cap i { display: none; }
  .partners-fx .marquee-track { gap: 16px; animation-name: marqueeM; }
  @keyframes marqueeM { to { transform: translateX(calc(-50% - 8px)); } }
}

/* 스크롤 등장 순차 지연 */
.reveal { transition-delay: var(--rd, 0s); }

@media (max-width: 1080px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.16); }
}
@media (max-width: 760px) {
  .hero-fx .container { padding-top: calc(var(--header-h) + 40px); padding-bottom: 130px; }
  .scroll-cue { bottom: 86px; }
  .kinetic { padding: 8px 0 60px; }
  .stat { padding: 26px 10px; }
  .hero-glow { width: 420px; height: 420px; }
}
@media (prefers-reduced-motion: reduce) {
  .rise { animation: none; opacity: 1; transform: none; filter: none; }
  .orbit-track, .orbit-item .hero-chip, .ring.r1, .hero-core .pulse, .btn-shine::after, .scroll-cue span, .cta-box { animation: none; }
  .rotator .word { transition: none; }
}

/* 파트너 머리글: 좁은 화면에서 세로로 쌓일 때 왼쪽 정렬 (PC용 아래쪽 정렬이 오른쪽으로 밀어내지 않게) */
@media (max-width: 760px) { .partners-fx .section-head.split { align-items: flex-start; } }
