/* ==========================================================================
   landing.css  —  랜딩페이지(landing.html) 전용
   구역 순서: 상단바 → 영상 배경 히어로 → 교육 분야 → 수강 절차 → 상담신청 → 푸터
   common.css 의 색상 변수를 그대로 사용합니다.
   ========================================================================== */

/* 1. 상단바 : 영상 위에 겹쳐 보이다가, 스크롤하면 흰 배경으로 바뀜 */
.lp-top { position: fixed; top: 0; left: 0; right: 0; z-index: 100; transition: background .25s, box-shadow .25s; }
.lp-top .inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.lp-top .logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  border-radius: 6px;
  transition: transform .3s ease;
}
/* 로고 빛 스위핑(쉬머) 애니메이션 효과 */
.lp-top .logo::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -120%;
  width: 60%;
  height: 200%;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.45) 50%, transparent 100%);
  transform: rotate(25deg);
  animation: logoShimmer 4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes logoShimmer {
  0%, 35% { left: -120%; }
  65%, 100% { left: 220%; }
}
/* 로고 원본 사이즈(200px x 59px), 파란색 심볼 엠블럼 + 흰색 글씨 합성 및 부드러운 플로팅 애니메이션 */
.lp-top .logo img {
  width: 200px;
  height: 59px;
  object-fit: contain;
  display: block;
  animation: logoFloat 3s ease-in-out infinite;
  /* 어두운 영상 배경 대비용 자연스러운 음영 */
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
  transition: transform .3s ease, filter .3s ease;
}
@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
.lp-top .logo:hover {
  transform: translateY(-2px);
}
.lp-top .logo:hover img {
  filter: drop-shadow(0 4px 14px rgba(26, 86, 219, 0.5));
}
.lp-top .logo--dark { display: none; }
.lp-top .logo--light { display: block; }
.lp-top__right { display: flex; align-items: center; gap: 14px; }
.lp-top__link { color: #fff; font-size: var(--fs-sm); font-weight: 600; }
.lp-top .btn-login { background: #fff; color: var(--c-primary-dark); }
.lp-top.is-solid { background: #fff; box-shadow: 0 2px 12px rgba(17, 24, 39, .08); }
.lp-top.is-solid .logo img {
  display: block;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.08));
}
.lp-top.is-solid .logo:hover img {
  filter: drop-shadow(0 4px 12px rgba(26, 86, 219, 0.35));
}
.lp-top.is-solid .logo--dark { display: block; }
.lp-top.is-solid .logo--light { display: none; }
.lp-top.is-solid .lp-top__link { color: var(--c-text); }
.lp-top.is-solid .btn-login { background: var(--c-primary); color: #fff; }

/* 따라다니는 배너(퀵배너) 삭제 */
#quick, .quick-banner { display: none !important; }

/* 2. 히어로 : 배경 영상 + 어두운 막 + 문구 */
/* 영상이 준비되기 전에도 정지 이미지가 배경으로 보이도록 CSS 배경에도 같은 이미지를 둡니다 */
.lp-hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; color: #fff; background: #0f2a6b url('../video/L2-poster.jpg') 70% center / cover no-repeat; }
.lp-hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 72% center; opacity: 0; transition: opacity .9s ease; }   /* 영상이 실제로 재생되기 시작하면 부드럽게 나타남 */
.lp-hero__video.is-ready { opacity: 1; }
/* 영상이 밝아서 글자가 묻히지 않도록 짙은 남색 막을 덮습니다. 진하기는 아래 두 숫자(.78 / .45)로 조절 */
.lp-hero__shade { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(10, 24, 66, .78) 0%, rgba(15, 42, 107, .6) 55%, rgba(15, 42, 107, .45) 100%); }
.lp-hero .inner { position: relative; z-index: 2; padding-top: 72px; }
.lp-hero__label { display: inline-block; padding: 6px 16px; border-radius: 999px; background: rgba(255, 255, 255, .18); font-size: var(--fs-sm); font-weight: 700; }
.lp-hero__title { margin: 20px 0 18px; font-size: 56px; font-weight: 800; line-height: 1.2; letter-spacing: -1.5px; }
.lp-hero__title em { font-style: normal; color: #8fb8ff; }
.lp-hero__desc { max-width: 560px; font-size: 19px; line-height: 1.7; color: rgba(255, 255, 255, .9); }
.lp-hero__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.lp-btn { display: inline-block; padding: 16px 34px; border-radius: 999px; font-size: 17px; font-weight: 800; transition: transform .15s, background .2s; }
.lp-btn:hover { transform: translateY(-2px); }
.lp-btn--main { background: var(--c-accent); color: #fff; }
.lp-btn--main:hover { background: #e96a0b; }
.lp-btn--ghost { border: 2px solid rgba(255, 255, 255, .8); color: #fff; }
.lp-btn--ghost:hover { background: rgba(255, 255, 255, .16); }
.lp-hero__points { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 44px; font-size: var(--fs-sm); color: rgba(255, 255, 255, .92); }
.lp-hero__points li::before { content: '\2713'; margin-right: 8px; color: #8fb8ff; font-weight: 800; }
/* 영상 재생/정지 버튼 (접근성) */
.lp-hero__toggle { position: absolute; right: 24px; bottom: 24px; z-index: 3; width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, .2); color: #fff; font-size: 15px; backdrop-filter: blur(4px); }
.lp-hero__toggle:hover { background: rgba(255, 255, 255, .36); }
.lp-hero__scroll { position: absolute; left: 50%; bottom: 22px; z-index: 3; transform: translateX(-50%); font-size: var(--fs-xs); color: rgba(255, 255, 255, .8); letter-spacing: 1px; }

/* 3. 공통 구역 제목 */
.lp-sec { padding: 96px 0 0; }
.lp-sec__head { text-align: center; margin-bottom: 44px; }
.lp-sec__label { font-size: var(--fs-sm); font-weight: 800; color: var(--c-primary); letter-spacing: 1px; }
.lp-sec__title { margin-top: 8px; font-size: 36px; font-weight: 800; letter-spacing: -1px; }
.lp-sec__desc { margin-top: 10px; color: var(--c-text-sub); }

/* 4. 교육 분야 카드 4개 */
.lp-fields { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.lp-field { display: flex; flex-direction: column; gap: 10px; padding: 30px 24px; border: 1px solid var(--c-line); border-radius: var(--radius); background: #fff; transition: transform .2s, box-shadow .2s, border-color .2s; }
.lp-field:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--c-primary); }
.lp-field__icon { width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center; background: var(--c-primary-soft); color: var(--c-primary); }
.lp-field__icon svg { width: 28px; height: 28px; }
.lp-field__title { font-size: 20px; font-weight: 800; }
.lp-field__desc { font-size: var(--fs-sm); color: var(--c-text-sub); line-height: 1.7; flex: 1; }
.lp-field__go { font-size: var(--fs-sm); font-weight: 700; color: var(--c-primary); }

/* 5. 수강 절차 4단계 */
.lp-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: flow; }
.lp-flow__item { position: relative; padding: 0 18px; text-align: center; counter-increment: flow; }
.lp-flow__item::before { content: counter(flow); display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: var(--c-primary); color: #fff; font-size: 24px; font-weight: 800; position: relative; z-index: 1; }
.lp-flow__item:not(:last-child)::after { content: ''; position: absolute; top: 32px; left: 50%; width: 100%; height: 2px; background: var(--c-primary-soft); }
.lp-flow__title { font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.lp-flow__desc { font-size: var(--fs-sm); color: var(--c-text-sub); line-height: 1.7; }

/* 6. 상담신청 */
.lp-cta { margin-top: 96px; padding: 80px 0; background: linear-gradient(120deg, #0f2a6b, #1a56db); color: #fff; }
.lp-cta .inner { display: grid; grid-template-columns: 1fr 440px; gap: 60px; align-items: center; }
.lp-cta__title { font-size: 36px; font-weight: 800; line-height: 1.3; letter-spacing: -1px; }
.lp-cta__desc { margin-top: 14px; color: rgba(255, 255, 255, .88); line-height: 1.8; }
.lp-cta__tel { margin-top: 24px; font-size: 14px; color: rgba(255, 255, 255, .8); }
.lp-cta__tel strong { display: block; margin-top: 4px; font-size: 34px; color: #fff; letter-spacing: -1px; }
.lp-form { padding: 30px; border-radius: var(--radius); background: #fff; color: var(--c-text); }
.lp-form__title { font-size: var(--fs-lg); font-weight: 800; margin-bottom: 16px; }
.lp-form .form-row input[type="text"], .lp-form .form-row input[type="tel"], .lp-form .form-row select { width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--c-line); border-radius: var(--radius-sm); font-family: inherit; font-size: var(--fs-md); background: #fff; }
.lp-form .form-row input:focus, .lp-form .form-row select:focus { outline: 2px solid var(--c-primary); border-color: transparent; }
.lp-form .form-check { margin: 4px 0 14px; }
.lp-form .btn-submit { width: 100%; height: 52px; border-radius: var(--radius-sm); background: var(--c-accent); color: #fff; font-size: 17px; font-weight: 800; }
.lp-form .btn-submit:hover { background: #e96a0b; }
.lp-form__msg { display: none; margin-top: 12px; padding: 12px 14px; border-radius: var(--radius-sm); font-size: var(--fs-sm); }
.lp-form__msg--err { background: #fef2f2; color: #dc2626; }
.lp-form__msg--ok { background: #dcfce7; color: #166534; }

.lp-credit { margin-top: 0; padding: 10px 0; text-align: center; font-size: 12px; color: var(--c-text-sub); background: var(--c-bg-gray); }
.page-landing .footer { margin-top: 0; }

/* 6-1. 랜덤으로 선택된 영상에 맞는 정지 이미지·초점 (landing.html 맨 앞 스크립트가 <html data-hero> 를 지정) */
html[data-hero="L1"] .lp-hero { background-image: url('../video/L1-poster.jpg'); }
html[data-hero="L2"] .lp-hero { background-image: url('../video/L2-poster.jpg'); }
html[data-hero="L1"] #heroVideo { object-position: 50% 50%; }   /* L1(지구) 는 가운데 */
html[data-hero="L2"] #heroVideo { object-position: 72% 50%; }   /* L2(인물) 는 인물이 보이도록 오른쪽 */

/* 7. 반응형 */
@media (max-width: 1024px) {
  .lp-hero__title { font-size: 44px; }
  .lp-fields { grid-template-columns: repeat(2, 1fr); }
  .lp-cta .inner { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 768px) {
  .lp-hero__title { font-size: 34px; letter-spacing: -1px; }
  .lp-hero__desc { font-size: 16px; }
  .lp-sec { padding-top: 64px; }
  .lp-sec__title, .lp-cta__title { font-size: 26px; }
  .lp-flow { grid-template-columns: repeat(2, 1fr); gap: 30px 0; }
  .lp-flow__item:not(:last-child)::after { display: none; }
  .lp-top__link { display: none; }
}
@media (max-width: 520px) {
  .lp-fields { grid-template-columns: 1fr; }
  .lp-hero__btns .lp-btn { width: 100%; text-align: center; }
  .lp-top .logo img { width: 170px; height: auto; }
}
/* 움직임을 줄이도록 설정한 사용자는 영상 대신 정지 이미지(배경)만 봅니다 */
@media (prefers-reduced-motion: reduce) { .lp-hero__video { display: none; } }
