*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --navy:       #474c71;
  --navy-dk:    #363a57;
  --primary:    #7b86cc;
  --primary-dk: #6470bb;
  --pri-lt:     #eef0fb;
  --bg:         #f7f8ff;
  --text:       #2d2f3e;
  --sub:        #6b7280;
  --border:     #e5e7f0;
}

html, body { height: 100%; }

body {
  font-family: inherit;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
}

/* 배경 장식 */
body::before {
  content: '';
  position: fixed;
  width: 700px; height: 700px;
  top: -200px; right: -200px;
  background: radial-gradient(circle, rgba(123,134,204,.14) 0%, transparent 68%);
  pointer-events: none; z-index: 0;
}
body::after {
  content: '';
  position: fixed;
  width: 500px; height: 500px;
  bottom: -150px; left: -100px;
  background: radial-gradient(circle, rgba(71,76,113,.09) 0%, transparent 68%);
  pointer-events: none; z-index: 0;
}

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
.home-hero {
  flex: 1;
  position: relative; z-index: 1;
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 0 48px;
  max-width: 1160px;
  margin: 0 auto;
  width: 100%;
}

/* ── 좌측 텍스트 ── */
.hero-text {
  flex: 1;
  min-width: 0;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--pri-lt);
  min-height: 33px;
  padding: 7px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
  border: 1px solid rgba(123,134,204,.25);
}
.hero-title {
  font-size: 42px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.22;
  letter-spacing: -1.5px;
  margin-bottom: 18px;
}
.hero-title-accent {
  background: linear-gradient(135deg, var(--primary-dk) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  font-size: 15.5px;
  color: var(--sub);
  line-height: 1.7;
  margin-bottom: 24px;
}

/* 이용기간 */
.hero-period {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #fff9ec, #fff4d6);
  border: 1px solid #f0d580;
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  color: #7a5800;
  margin-bottom: 28px;
}
.period-dot {
  width: 7px; height: 7px;
  background: #f0b429;
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse-dot 1.8s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(240,180,41,.5); }
  50% { box-shadow: 0 0 0 5px rgba(240,180,41,0); }
}

/* 피처 칩 */
.hero-features {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.feature-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.9);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.chip-icon { font-size: 14px; }

/* 로그인하기 버튼 */
.btn-hero-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 30px;
  padding: 0 32px;
  height: 52px;
  background: linear-gradient(135deg, #5262a3 0%, #98a6ff 100%);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  border-radius: 14px;
  text-decoration: none;
  letter-spacing: .1px;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255,255,255,.2) inset,
    0 6px 20px rgba(80, 85, 122, 0.32),
    0 2px 6px rgba(0,0,0,.1);
}
.btn-hero-login > * {
  position: relative;
  z-index: 1;
}
.btn-hero-login::before {
  content: '';
  position: absolute;
  z-index: 0;
  width: 300%;
  height: 100%;
  background: linear-gradient(105deg, #546090, #a6b2ff, #546090, #a6b2ff);
  top: 0;
  left: -100%;
  transition: left 0.4s;
}
.btn-hero-login:hover {
  background: transparent;
}
.btn-hero-login:hover::before { left: 0; }
.btn-hero-login:active { transform: translateY(0); }

/* ── 우측 일러스트 ── */
.hero-illus {
  flex-shrink: 0;
  width: 500px;
  height: 500px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-illus-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* 메인 스크린 카드 */
.illus-screen {
  position: absolute;
  top: 30px; left: 30px;
  width: 360px; height: 300px;
  background: linear-gradient(160deg, #2d3454 0%, #3d4370 100%);
  border-radius: 18px;
  box-shadow:
    0 1px 0 rgba(255,255,255,.08) inset,
    0 20px 60px rgba(45,52,84,.4),
    0 4px 16px rgba(0,0,0,.2);
  transform: perspective(900px) rotateY(-6deg) rotateX(3deg);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
}
.illus-screen-bar {
  height: 32px;
  background: rgba(0,0,0,.25);
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 7px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.screen-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.screen-dot.red    { background: #ff5f57; }
.screen-dot.yellow { background: #febc2e; }
.screen-dot.green  { background: #28c840; }

.illus-screen-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: calc(100% - 32px);
}

/* 플레이어 영역 */
.illus-player {
  flex: 1;
  background: rgba(0,0,0,.35);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 1px solid rgba(255,255,255,.06);
  position: relative;
  overflow: hidden;
}
/* 영상 배경 라인 효과 */
.illus-player::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(255,255,255,.015) 3px,
    rgba(255,255,255,.015) 4px
  );
}
.illus-play-btn {
  width: 52px; height: 52px;
  background: rgba(123,134,204,.9);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 8px rgba(123,134,204,.2);
  animation: pulse-play 2.4s ease-in-out infinite;
  position: relative; z-index: 1;
}
@keyframes pulse-play {
  0%, 100% { box-shadow: 0 0 0 8px rgba(123,134,204,.2); }
  50%       { box-shadow: 0 0 0 14px rgba(123,134,204,.08); }
}
.illus-progress {
  width: 80%;
  height: 4px;
  background: rgba(255,255,255,.15);
  border-radius: 4px;
  position: relative; z-index: 1;
  overflow: hidden;
}
.illus-progress-fill {
  width: 35%;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), #a5b4fc);
  border-radius: 4px;
}

/* 강의 목록 줄 */
.illus-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.illus-list-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 7px;
  background: rgba(255,255,255,.04);
}
.illus-list-item.active {
  background: rgba(123,134,204,.15);
  border: 1px solid rgba(123,134,204,.25);
}
.list-num {
  width: 20px; height: 20px;
  background: rgba(255,255,255,.1);
  border-radius: 5px;
  font-size: 10px; font-weight: 700;
  color: rgba(255,255,255,.7);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.illus-list-item.active .list-num {
  background: var(--primary);
  color: #fff;
}
.list-bar {
  flex: 1;
  height: 5px;
  background: rgba(255,255,255,.12);
  border-radius: 3px;
}
.list-bar.long   { max-width: 120px; }
.list-bar.medium { max-width: 90px; }
.list-bar.short  { max-width: 70px; }
.illus-list-item.active .list-bar {
  background: rgba(123,134,204,.5);
}
.list-badge {
  font-size: 9px; font-weight: 700;
  padding: 2px 7px;
  border-radius: 5px;
  flex-shrink: 0;
}
.list-badge.done    { background: rgba(52,211,153,.2); color: #34d399; }
.list-badge.pending { background: rgba(255,255,255,.08); color: rgba(255,255,255,.4); }

/* 플로팅 카드들 */
.float-card {
  position: absolute;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 14px;
  border: 1px solid rgba(123,134,204,.2);
  box-shadow: 0 8px 24px rgba(71,76,113,.14), 0 2px 6px rgba(0,0,0,.06);
}

/* 진도율 카드 */
.float-card-1 {
  bottom: 20px; left: 0;
  padding: 14px 18px;
  width: 168px;
  animation: float-1 3.5s ease-in-out infinite;
}
@keyframes float-1 {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}
.fc-label  { font-size: 10px; color: var(--sub); margin-bottom: 4px; font-weight: 600; }
.fc-value  { font-size: 26px; font-weight: 800; color: var(--navy); line-height: 1; margin-bottom: 8px; }
.fc-value span { font-size: 14px; font-weight: 600; color: var(--primary); }
.fc-bar-bg { height: 5px; background: var(--pri-lt); border-radius: 5px; overflow: hidden; }
.fc-bar-fill { height: 100%; background: linear-gradient(90deg, var(--primary), #a5b4fc); border-radius: 5px; }

/* 수강완료 카드 */
.float-card-2 {
  top: 10px; right: 0;
  padding: 10px 16px;
  display: flex; align-items: center; gap: 7px;
  animation: float-2 3s ease-in-out infinite .6s;
}
@keyframes float-2 {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}
.fc-icon { font-size: 16px; color: #34d399; font-weight: 900; }
.fc-text { font-size: 13px; font-weight: 700; color: var(--text); }

/* 강의 수 카드 */
.float-card-3 {
  top: 50%; right: 0;
  transform: translateY(-50%);
  padding: 14px 18px;
  display: flex; flex-direction: column; align-items: center;
  animation: float-3 4s ease-in-out infinite 1.2s;
}
@keyframes float-3 {
  0%, 100% { transform: translateY(calc(-50% + 0px)); }
  50%       { transform: translateY(calc(-50% - 9px)); }
}
.fc-big   { font-size: 28px; font-weight: 900; color: var(--navy); line-height: 1; }
.fc-small { font-size: 11px; font-weight: 600; color: var(--sub); margin-top: 2px; }

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 960px) {
  .home-hero {
    flex-direction: column;
    padding: 40px 28px;
    gap: 40px;
    overflow-y: auto;
  }
  body { overflow: auto; }
  .hero-illus {
    width: 100%;
    max-width: 420px;
    height: 340px;
    align-self: center;
  }
  .hero-title { font-size: 32px; }
}
@media (max-width: 540px) {
  .hero-title { font-size: 26px; }
  .hero-features { gap: 8px; }
  .illus-screen { width: 300px; height: 250px; }
  .float-card-1 { width: 140px; }
}
@media (max-width: 380px) {
  .hero-illus { height: 300px; }
  .illus-screen { width: 240px; height: 210px; left: 16px; }
  .float-card-1 { width: 120px; left: 0; }
  .float-card-2, .float-card-3 { right: 0; font-size: 12px; }
}
