/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #7B5CF5;
  --primary-dark: #6046E0;
  --primary-light: #A78BFA;
  --secondary: #4F8EF7;
  --accent: #EC4899;
  --text: #1E1B3A;
  --text-muted: #6B7280;
  --bg: #FFFFFF;
  --bg-light: #F8F9FF;
  --bg-card: #FFFFFF;
  --border: #E5E7EB;
  --shadow: 0 4px 24px rgba(123,92,245,0.10);
  --shadow-lg: 0 16px 48px rgba(123,92,245,0.18);
  --radius: 16px;
  --radius-sm: 8px;
  --transition: 0.3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Pretendard', 'Inter', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

img { max-width: 100%; height: auto; display: block; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(123,92,245,0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(123,92,245,0.4);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}
.btn-white {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
}
.btn-white:hover {
  background: var(--bg-light);
  transform: translateY(-2px);
}
.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.7);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
}
.btn-lg { padding: 16px 36px; font-size: 16px; }

/* ===== NAVBAR ===== */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  transition: background 0.4s, box-shadow 0.4s;
}
#navbar.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(16px);
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-logo { text-decoration: none; }
.logo-text { font-size: 22px; font-weight: 800; color: var(--text); }
.logo-accent { color: var(--primary); }
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin-left: auto;
}
.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--primary); }
.nav-cta { margin-left: 8px; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 16px 24px 20px;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(16px);
}
.mobile-menu a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.mobile-menu .btn { margin-top: 8px; justify-content: center; }
.mobile-menu.open { display: flex; }

/* ===== HERO ===== */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(160deg, #F0EBFF 0%, #E8F0FF 50%, #F8F9FF 100%);
  padding-top: 80px;
}
.hero-bg-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 40%, rgba(123,92,245,0.12) 0%, transparent 60%),
              radial-gradient(ellipse at 20% 80%, rgba(79,142,247,0.10) 0%, transparent 50%);
  pointer-events: none;
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px 120px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(123,92,245,0.1);
  color: var(--primary);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
  border: 1px solid rgba(123,92,245,0.2);
}
.hero-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 20px;
}
.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 36px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-visual { position: relative; }
.dashboard-mockup {
  position: relative;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: visible;
}
.dashboard-img {
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  width: 100%;
}
.float-card {
  position: absolute;
  background: #fff;
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  font-size: 13px;
  animation: floatCard 3s ease-in-out infinite;
}
.float-card i { font-size: 20px; color: var(--primary); }
.float-card-title { font-size: 11px; color: var(--text-muted); }
.float-card-value { font-size: 15px; font-weight: 700; color: var(--text); }
.card-1 { top: -16px; left: -20px; animation-delay: 0s; }
.card-2 { bottom: 30px; left: -24px; animation-delay: 1s; }
.card-3 { top: 20px; right: -20px; animation-delay: 2s; }
@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.hero-wave {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  line-height: 0;
}
.hero-wave svg { width: 100%; height: 80px; }

/* ===== TRUST ===== */
.trust-section {
  background: var(--bg-light);
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
}
.trust-grid {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 14px;
}
.trust-item i { color: var(--primary); font-size: 18px; }

/* ===== SECTION COMMON ===== */
.section-header { text-align: center; margin-bottom: 72px; }
.section-badge {
  display: inline-block;
  background: rgba(123,92,245,0.1);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
  border: 1px solid rgba(123,92,245,0.2);
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 16px;
}
.section-desc {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ===== FEATURES ===== */
.features-section { padding: 100px 0; }
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 100px;
}
.feature-row:last-child { margin-bottom: 0; }
.feature-row.reverse .feature-text { order: 2; }
.feature-row.reverse .feature-visual { order: 1; }
.feature-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  background: rgba(123,92,245,0.1);
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 16px;
  border: 1px solid rgba(123,92,245,0.2);
}
.feature-title {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.3;
}
.feature-desc {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}
.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--text);
}
.feature-list li i { color: var(--primary); font-size: 16px; flex-shrink: 0; }
.feature-visual {
  position: relative;
  border-radius: var(--radius);
  overflow: visible;
}
.feature-visual img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.feature-visual img:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 64px rgba(123,92,245,0.2);
}

/* ===== AUTO SLIDESHOW (Feature 06) ===== */

/* 힌트 박스 */
.demo-hint {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(123,92,245,0.06);
  border-radius: var(--radius-sm);
  border: 1px dashed rgba(123,92,245,0.3);
  color: var(--primary);
  font-size: 14px;
}
.demo-hint.auto i { animation: breathe 2s ease-in-out infinite; }
@keyframes breathe {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.92); }
}

/* 진행 도트 */
.slideshow-dots {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: background 0.4s, width 0.4s;
  cursor: default;
}
.dot.active {
  background: var(--primary);
  width: 24px;
  border-radius: 4px;
}

/* 슬라이드쇼 래퍼 */
.slideshow-wrapper {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #fff;
  /* 고정 비율: 내담자 현황 스크린샷 비율에 맞춤 */
  aspect-ratio: 1024 / 496;
}

/* 슬라이드 트랙: 두 이미지를 절대 위치로 겹침 */
.slide-track {
  position: relative;
  width: 100%;
  height: 100%;
}
.slide-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  pointer-events: none;
}
.slide-img.active { opacity: 1; }

/* 화면 레이블 (좌상단 배지) */
.slide-label {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 10;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 50px;
  border: 1px solid rgba(123,92,245,0.25);
  display: flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  transition: opacity 0.5s ease;
}

/* 내담자 등록 버튼 하이라이트 오버레이 */
.register-highlight {
  position: absolute;
  /* 실제 스크린샷 속 버튼 위치에 맞게 조정 */
  top: 8%;
  right: 3%;
  z-index: 10;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 4px 16px rgba(123,92,245,0.45);
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}
.register-highlight.show {
  opacity: 1;
  transform: scale(1);
  animation: highlightPulse 1.2s ease-in-out infinite;
}
@keyframes highlightPulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(123,92,245,0.45), 0 0 0 0 rgba(123,92,245,0.25); }
  50% { box-shadow: 0 4px 16px rgba(123,92,245,0.45), 0 0 0 10px rgba(123,92,245,0); }
}

/* 모의 마우스 커서 */
.mock-cursor {
  position: absolute;
  z-index: 20;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease, top 0.6s cubic-bezier(0.4,0,0.2,1), left 0.6s cubic-bezier(0.4,0,0.2,1);
  /* 시작 위치: 화면 중앙 */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.mock-cursor.show { opacity: 1; }

/* ===== ROLE CARDS (Feature 04) ===== */
.role-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}
.role-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: var(--bg-light);
  border: 1px solid var(--border);
  transition: box-shadow var(--transition), transform var(--transition);
}
.role-card:hover {
  box-shadow: 0 4px 16px rgba(123,92,245,0.10);
  transform: translateY(-2px);
}
.role-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.role-icon.counselor {
  background: linear-gradient(135deg, #A78BFA, #7B5CF5);
}
.role-icon.director {
  background: linear-gradient(135deg, #4F8EF7, #2563EB);
}
.role-icon i { color: #fff; font-size: 16px; }
.role-content { display: flex; flex-direction: column; gap: 4px; }
.role-title { font-size: 14px; font-weight: 700; color: var(--text); }
.role-desc { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

/* ===== TARGET ===== */
.target-section { padding: 100px 0; background: var(--bg-light); }
.target-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.target-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 40px 32px;
  border: 1px solid var(--border);
  transition: var(--transition);
  box-shadow: var(--shadow);
}
.target-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.target-card.featured {
  border-color: var(--primary);
  background: linear-gradient(160deg, #F5F0FF 0%, #fff 100%);
  box-shadow: 0 8px 32px rgba(123,92,245,0.15);
}
.target-icon {
  width: 60px; height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
}
.target-icon i { color: #fff; font-size: 24px; }
.target-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 12px; color: var(--text); }
.target-card p { font-size: 15px; color: var(--text-muted); line-height: 1.6; margin-bottom: 20px; }
.target-card ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.target-card ul li {
  font-size: 14px;
  color: var(--text-muted);
  padding-left: 18px;
  position: relative;
}
.target-card ul li::before {
  content: '✓';
  position: absolute; left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* ===== CTA ===== */
.cta-section {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary) 100%);
}
.cta-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(255,255,255,0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(255,255,255,0.06) 0%, transparent 40%);
  pointer-events: none;
}
.cta-inner { text-align: center; position: relative; z-index: 1; }
.cta-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 20px;
}
.cta-desc {
  font-size: 17px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 40px;
  line-height: 1.7;
}
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===== CONTACT ===== */
.contact-section { padding: 100px 0; }
.contact-form {
  max-width: 760px;
  margin: 0 auto;
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 48px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 24px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group.full { margin-bottom: 24px; }
.form-group label { font-size: 14px; font-weight: 600; color: var(--text); }
.form-group input, .form-group select, .form-group textarea {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(123,92,245,0.12);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-submit { text-align: center; }

/* ===== FOOTER ===== */
#footer {
  background: var(--text);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 32px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  margin-bottom: 48px;
}
.footer-brand .logo-text { font-size: 20px; color: #fff; }
.footer-brand p { margin-top: 12px; font-size: 14px; line-height: 1.6; }
.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h4 { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.footer-col a { text-decoration: none; font-size: 14px; color: rgba(255,255,255,0.6); transition: color var(--transition); }
.footer-col a:hover { color: var(--primary-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  font-size: 13px;
  text-align: center;
}

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 32px; right: 32px;
  background: var(--text);
  color: #fff;
  padding: 16px 24px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 500;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
  z-index: 9999;
}
.toast i { color: #34D399; font-size: 18px; }
.toast.show { transform: translateY(0); opacity: 1; }

/* ===== ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeInUp 0.8s ease forwards;
}
.fade-in-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in-up.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.30s; }
@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}
.fade-in.delay-2 { animation-delay: 0.4s; }

/* ===== UTILITIES ===== */
.hide-mobile { display: inline; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-text { order: 1; }
  .hero-visual { order: 2; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .card-1 { top: -10px; left: 0; }
  .card-2 { bottom: 10px; left: -10px; }
  .card-3 { top: 10px; right: 0; }
  .feature-row { grid-template-columns: 1fr; gap: 40px; }
  .feature-row.reverse .feature-text { order: 1; }
  .feature-row.reverse .feature-visual { order: 2; }
  .target-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .hero-inner { padding: 60px 24px 80px; }
  .float-card { display: none; }
  .feature-row { margin-bottom: 60px; }
  .target-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
  .contact-form { padding: 32px 24px; }
  .form-row { grid-template-columns: 1fr; }
  .hide-mobile { display: none; }
  .cta-actions { flex-direction: column; align-items: center; }
  .hero-actions { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  .footer-links { grid-template-columns: 1fr; }
  .trust-grid { gap: 24px; }
  .trust-item span { display: none; }
}
