/* ====== 초기화 ====== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans KR', sans-serif;
  background: #000;
  color: #fff;
}

/* ====== 상단 헤더 ====== */
.topbar.blackbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 100px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
  background: #000;
  border-bottom: 1px solid #222;
  box-shadow: 0 2px 8px rgba(0,0,0,0.7);
  z-index: 1000;
}

.logo {
  height: 40px;
  transform: translate(-10%);
  margin-left: -5%;
}

/* 중앙 메뉴 */
.gnb {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
}
.gnb ul {
  display: flex;
  list-style: none;
  gap: 32px;
}
.gnb a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: color 0.3s;
}
.gnb a:hover { color: #ff6b35; }

/* 로그인 / 회원가입 버튼 */
.auth {
  display: flex;
  gap: 4px;
}
.btn-auth {
  padding: 10px 10px;
  text-decoration: none;
  color: #fff;
  font-weight: 400;
  font-size: 0.9rem;
}

/* ====== Hero ====== */
.hero {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden; /* ⭐ 영상 넘침 방지 */
}

/* 🔹 Hero 배경 영상 */
.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;          /* 화면 꽉 채우기 */
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;       /* 클릭/스크롤 방해 제거 */
}

/* 어두운 오버레이 */
.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.36);
  pointer-events: none;
  z-index: 1;
}

/* 텍스트 콘텐츠 */
.content {
  position: relative;
  z-index: 2;
  max-width: 850px;
  padding: 0 1.5rem;
}

.hero-title {
  font-size: 7rem;
  font-weight: 900;
  letter-spacing: 0.2rem;
}
.slogan {
  font-size: 1.7rem;
  font-weight: 500;
  margin-bottom: 4rem;
}

/* ====== CTA 버튼 ====== */
.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 50px;
}
.cta-buttons a:first-child {
  margin-right: 20px;
}

.cta {
  padding: 15px 36px;
  border-radius: 40px;
  font-size: 1.32rem;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s ease;
}
.cta.primary {
  border: 1px solid #fff;
  color: #fff;
}
.cta.primary:hover {
  background: #747171;
  color: #ffffff;
}
.cta.secondary {
  border: 1px solid #fff;
  color: #fff;
}
.cta.secondary:hover {
  background: #747171;
  color: #ffffff;
}
.cta.big {
  background: #fff;
  color: #000;
  font-size: 1.1rem;
  padding: 18px 70px;
}
.cta.big:hover {
  background: #e5e5e5;
}

/* ====== 서비스 섹션 ====== */
.section.service {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 4rem 2rem;
}
.section.service h2 {
  font-size: 2.3rem;
  margin-bottom: 1rem;
  font-weight: 800;
}
.section.service p {
  max-width: 1000px;
  color: #ccc;
  line-height: 1.7;
  font-size: 1.1rem;
  margin-bottom: 40px;
}

/* 섹션별 배경 */
.section.analysis,
.section.data,
.section.report {
  background: #111;
}

/* ===== 데이터 관리 섹션 ===== */
.data-desc {
  max-width: 900px;
  font-size: 1.2rem;
  line-height: 1.8;
  color: #ddd;
  margin-bottom: 3rem;
}

.data-visual {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto 3rem auto;
}

.data-image {
  flex: 1 1 600px;
  max-width: 800px;
  width: 100%;
  border-radius: 12px;
  border: 1.5px solid rgba(255,255,255,0.15);
  box-shadow: 0 8px 20px rgba(0,0,0,0.8);
}

.data-explain {
  flex: 1 1 250px;
  max-width: 450px;
  background: rgba(34,34,34,0.9);
  padding: 2rem;
  border-radius: 12px;
  color: #eee;
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
  border: 1.4px solid rgba(255,255,255,0.15);
}

.data-explain h3 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.data-explain ul {
  list-style: none;
  padding-left: 0;
}

.data-explain li {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.data-explain li strong {
  color: #ff6b35;
}

/* ===== 자동 클레임 보고서 섹션 ===== */
.report-layout {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}

.report-desc {
  max-width: 900px;
  font-size: 1.2rem;
  line-height: 1.8;
  color: #ddd;
  margin: 0 auto 3rem auto;
  text-align: center;
}

.report-visual {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 40px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 3rem auto;
}

.report-image-half {
  flex: 1 1 55%;
  max-width: 700px;
  width: 100%;
  height: 350px;
  overflow: hidden;
  border-radius: 12px;
  border: 1.5px solid rgba(255,255,255,0.2);
  box-shadow: 0 8px 20px rgba(0,0,0,0.8);
}

.report-image {
  width: 100%;
  height: auto;
}

.report-explain {
  flex: 1 1 45%;
  max-width: 800px !important;
  background: rgba(34,34,34,0.9);
  padding: 2rem;
  border-radius: 12px;
  color: #eee;
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
  border: 1.4px solid rgba(255,255,255,0.15);
}

.report-explain h3 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.report-explain ul {
  list-style: none;
  padding-left: 0;
}

.report-explain li {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.report-explain li strong {
  color: #ff6b35;
}

/* 반응형 */
@media (max-width: 1000px) {
  .report-visual {
    flex-direction: column;
    align-items: center;
  }
  .report-image-half, .report-explain {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

/* ===== 사고 유형 분석 ===== */
.analysis-desc {
  max-width: 900px;
  font-size: 1.2rem;
  line-height: 1.7;
  color: #ddd;
  margin: 0 auto 3rem auto;
  text-align: center;
}

.analysis-fullimage {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px solid rgba(255,255,255,0.15);
  box-shadow: 0 8px 20px rgba(0,0,0,0.8);
  margin-bottom: 10px;
}

.analysis-fullimage .analysis-image {
  width: 100%;
  max-height: 500px;
  object-fit: contain;
  object-position: center;
  display: block;
  background: #000;
}

/* ===== 사용자 인증 스타일 ===== */
.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: 16px;
}

.user-email {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}

.user-role {
  background: #ff6b35;
  color: #fff;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.user-menu {
  position: relative;
}

.user-menu-btn {
  background: none;
  border: 1px solid #fff;
  color: #fff;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.3s ease;
}

.user-menu-btn:hover {
  background: #fff;
  color: #000;
}

.user-menu-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  min-width: 160px;
  z-index: 1001;
}

.user-menu-dropdown a {
  display: block;
  padding: 12px 16px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  transition: background 0.2s ease;
}

.user-menu-dropdown a:hover {
  background: #f8f9fa;
}

.user-menu-dropdown hr {
  margin: 8px 0;
  border: none;
  border-top: 1px solid #eee;
}

.cta-buttons > div {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* 모바일 인증 스타일 */
@media (max-width: 768px) {
  .user-info {
    flex-direction: column;
    gap: 4px;
    margin-right: 8px;
  }
  .user-email {
    font-size: 12px;
  }
  .user-role {
    font-size: 10px;
    padding: 2px 6px;
  }
}

/* fullPage.js 워터마크 제거 */
.fp-watermark {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

/* 요청된 hero 조정 */
.hero .content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 100px);
}

/* ===== 토스트 알림 ===== */
.toast {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.85);
  color: #fff;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 9999;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, -20px);
}

.toast.success {
  background: rgba(46, 204, 113, 0.9);
}
.toast.error {
  background: rgba(231, 76, 60, 0.9);
}
.toast.warning {
  background: rgba(241, 196, 15, 0.9);
}
