/* ===== PRETENDARD FONT (benefits 섹션용) ===== */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css');

/* ===== BASE ===== */
*, *::before, *::after { box-sizing: border-box; }
body { font-family: 'Noto Sans KR', sans-serif; overflow-x: hidden; }
html { scroll-behavior: smooth; }
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #111; }
::-webkit-scrollbar-thumb { background: #FF5500; border-radius: 3px; }

/* ===== HERO GLOW — 가운데 ===== */
.hero-glow-center {
  position: absolute;
  top: 48%; left: 50%;
  transform: translate(-50%, -50%);
  width: 820px; height: 820px;
  background: radial-gradient(circle,
    rgba(255,85,0,0.20) 0%,
    rgba(255,85,0,0.10) 30%,
    rgba(255,85,0,0.03) 60%,
    transparent 72%
  );
  border-radius: 50%;
  pointer-events: none;
  animation: glowPulse 6s ease-in-out infinite;
}
@keyframes glowPulse {
  0%,100% { opacity: 0.8; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 1;   transform: translate(-50%, -50%) scale(1.08); }
}

/* ===== HERO BG FLOAT ===== */
@keyframes floatA {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-24px) rotate(7deg); }
}
@keyframes floatB {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(20px) rotate(-6deg); }
}
@keyframes floatC {
  0%,100% { transform: translateX(0) rotate(0deg); }
  50%      { transform: translateX(16px) rotate(5deg); }
}
.float-1 { animation: floatA 7s ease-in-out infinite; }
.float-2 { animation: floatB 9s ease-in-out infinite 1.2s; }
.float-3 { animation: floatC 8s ease-in-out infinite 2s; }

/* ===== HERO GRADIENT TEXT ===== */
.hero-gradient-text {
  background: linear-gradient(135deg, #FF5500 0%, #FF8844 50%, #FFB347 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== CHARACTER FLOAT ===== */
@keyframes charFloat {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}
.hero-character { right: 10%; }
.hero-character-img { animation: charFloat 4.5s ease-in-out infinite; }

/* ===== NAVBAR ===== */
#navbar {
  background: transparent;
  transition: background 0.45s ease, box-shadow 0.45s ease;
}
#navbar.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 24px rgba(0,0,0,0.08);
}
#navbar .nav-link { color: rgba(255,255,255,0.85); transition: color 0.3s ease; }
#navbar .nav-link:hover { color: #FF5500; }
#navbar.scrolled .nav-link { color: #222; }
#navbar.scrolled .nav-link:hover { color: #FF5500; }
.mobile-bar { background-color: #fff; transition: background-color 0.3s ease; }
#navbar.scrolled .mobile-bar { background-color: #222; }

/* ===== DOWNLOAD BUTTON ARROW ===== */
.arrow-icon { display: inline-block; transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1); }
.download-btn:hover .arrow-icon { transform: translateX(8px); }

/* ===== CONSULT BUTTON SHIMMER ===== */
.consult-btn {
  position: relative; overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.consult-btn::before {
  content: '';
  position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.5s ease;
}
.consult-btn:hover::before { left: 100%; }
.consult-btn:hover {
  border-color: rgba(255,255,255,0.7) !important;
  box-shadow: 0 0 24px rgba(255,255,255,0.12);
}

/* ===== HEADING 자간/행간 ===== */
h1, h2 { letter-spacing: -0.01em; word-break: keep-all; }
.hero-title span { line-height: 1.25; letter-spacing: -0.02em; }
.section-heading { line-height: 1.45; letter-spacing: -0.02em; word-break: keep-all; }

@media (min-width: 1024px) {
  .section-heading { line-height: 1.55; }
  .hero-title span { line-height: 1.3; }
}

/* ===== SCROLL ANIMATIONS ===== */
.fade-up {
  opacity: 0; transform: translateY(44px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

.fade-left {
  opacity: 0; transform: translateX(-52px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.fade-left.visible { opacity: 1; transform: translateX(0); }

.fade-right {
  opacity: 0; transform: translateX(52px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.fade-right.visible { opacity: 1; transform: translateX(0); }

/* ===== CTA POP ===== */
.cta-pop {
  opacity: 0; transform: scale(0.88) translateY(28px);
  transition: opacity 0.85s cubic-bezier(0.34,1.56,0.64,1),
              transform 0.85s cubic-bezier(0.34,1.56,0.64,1);
}
.cta-pop.visible { opacity: 1; transform: scale(1) translateY(0); }

/* ===== MOBILE MENU ===== */
#mobile-menu { transition: max-height 0.4s ease, opacity 0.3s ease; }

/* ===== POINT TITLE ===== */
.point-title { display: inline-block; }

/* ===== ABOUT CHARACTER ===== */
@keyframes aboutCharFloat {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50%       { transform: translateY(-10px) rotate(1deg); }
}
.about-char-img {
  animation: aboutCharFloat 4s ease-in-out infinite;
  filter: drop-shadow(0 12px 24px rgba(255,85,0,0.15));
}

/* ===== AWARD CHIP ===== */
.award-chip {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.award-chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,85,0,0.12);
}

/* ===== INQUIRY SECTION ===== */
.inq-form-group { margin-bottom: 24px; }
.inq-form-label {
  display: block; font-size: 12px; font-weight: 700;
  color: #4B5563; margin-bottom: 6px;
}
.inq-form-label span { color: #FF5500; margin-right: 2px; }

.inq-input {
  padding: 12px 16px;
  border: 1px solid #E5E7EB; border-radius: 12px;
  font-size: 14px; color: #111827; background: #fff;
  outline: none; transition: border-color 0.3s ease;
  font-family: 'Noto Sans KR', sans-serif;
  box-sizing: border-box;
}
.inq-input:focus { border-color: #FF5500; }
.inq-input::placeholder { color: #D1D5DB; }

.inq-select {
  padding: 12px 36px 12px 16px;
  border: 1px solid #E5E7EB; border-radius: 12px;
  font-size: 14px; color: #9CA3AF; background: #fff;
  outline: none; appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%239CA3AF' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: calc(100% - 14px) center;
  transition: border-color 0.3s ease;
  font-family: 'Noto Sans KR', sans-serif; cursor: pointer; box-sizing: border-box;
}
.inq-select:focus { border-color: #FF5500; }
.inq-select.selected { color: #111827; }

.inq-textarea {
  width: 100%; padding: 12px 16px;
  border: 1px solid #E5E7EB; border-radius: 12px;
  font-size: 14px; color: #111827; background: #fff;
  outline: none; resize: vertical; min-height: 110px;
  transition: border-color 0.3s ease;
  font-family: 'Noto Sans KR', sans-serif; box-sizing: border-box;
}
.inq-textarea:focus { border-color: #FF5500; }
.inq-textarea::placeholder { color: #D1D5DB; }

.inq-option-btn {
  flex: 1; padding: 12px 16px;
  border: 1px solid #E5E7EB; border-radius: 12px;
  background: #fff; font-size: 14px; color: #6B7280;
  cursor: pointer; transition: all 0.3s ease;
  font-family: 'Noto Sans KR', sans-serif; text-align: center;
}
.inq-option-btn:hover { border-color: #FF5500; color: #FF5500; }
.inq-option-btn.selected {
  border-color: #FF5500; color: #FF5500;
  background: rgba(255,85,0,0.06);
}

.inq-submit-btn {
  width: 100%; padding: 16px; border: none; border-radius: 12px;
  background: #FF5500; color: #fff; font-size: 16px; font-weight: 800;
  cursor: pointer; transition: all 0.3s ease;
  font-family: 'Noto Sans KR', sans-serif;
}
.inq-submit-btn:hover { background: #E04400; box-shadow: 0 8px 24px rgba(255,85,0,0.3); }
.inq-submit-btn:disabled { background: #D1D5DB; cursor: not-allowed; box-shadow: none; }
.inq-submit-btn.loading { position: relative; pointer-events: none; opacity: 0.8; }
.inq-submit-btn.loading::after {
  content: ''; position: absolute; right: 20px; top: 50%;
  width: 16px; height: 16px;
  border: 2px solid transparent;
  border-top-color: #fff; border-right-color: #fff;
  border-radius: 50%; transform: translateY(-50%);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: translateY(-50%) rotate(360deg); } }

.inquiry-tab-btn {
  padding: 14px 28px; border-radius: 16px 16px 0 0; border: none;
  background: #EDEDED; color: #9CA3AF; font-size: 15px; font-weight: 700;
  cursor: pointer; transition: all 0.3s ease;
  font-family: 'Noto Sans KR', sans-serif;
}
.inquiry-tab-btn:hover { color: #FF5500; background: #F3F3F3; }
.inquiry-tab-btn.active { color: #333; background: #F7F7F7; }

.inq-form-group.error .inq-option-btn,
.inq-form-group.error .inq-input,
.inq-form-group.error .inq-select,
.inq-form-group.error .inq-textarea {
  border-color: #E53E3E;
  animation: shake 0.4s ease;
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25%  { transform: translateX(-5px); }
  75%  { transform: translateX(5px); }
}

@media (min-width: 1024px) {
  .inquiry-form-card { max-height: 760px; overflow-y: auto; }
  .inquiry-form-card::-webkit-scrollbar { width: 6px; }
  .inquiry-form-card::-webkit-scrollbar-track { background: transparent; }
  .inquiry-form-card::-webkit-scrollbar-thumb { background: #D1D5DB; border-radius: 3px; }
  .inquiry-form-card::-webkit-scrollbar-thumb:hover { background: #9CA3AF; }
}


/* ============================================================
   BENEFITS — PAGE P2
   ============================================================ */
.page.p2 {
  width: 100%;
  font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
}

/* 탭 컨테이너 */
.page.p2 .tab_container {
  display: flex;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  margin-top: 0;
}

/* 사이드바 */
.page.p2 .tab_container .sidebar {
  display: flex;
  flex-direction: column;
  background-color: #3a3a44;
  min-width: 200px;
  flex-shrink: 0;
}

/* 탭 기본 */
.page.p2 .tab_container .sidebar .tab {
  display: flex;
  align-items: center;
  padding: 0 32px;
  min-height: 80px;
  font-family: 'Pretendard', sans-serif;
  font-size: 17px;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  word-break: keep-all;
  line-height: 1.4;
  position: relative;
  overflow: hidden;
}
.page.p2 .tab_container .sidebar .tab:last-child {
  border-bottom: none;
}
.page.p2 .tab_container .sidebar .tab:hover {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.8);
}

/* 탭 활성 — FF5500 그라데이션 + 화살표 */
.page.p2 .tab_container .sidebar .tab.active {
  background: linear-gradient(90deg, #FF5500 0%, #FF7730 100%);
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  position: relative;
  z-index: 10;
  margin-right: -40px;
  padding-right: 72px;
  border-bottom-color: rgba(255,255,255,0.15);
  clip-path: polygon(
    0 0,
    calc(100% - 40px) 0,
    100% 50%,
    calc(100% - 40px) 100%,
    0 100%
  );
}

/* 콘텐츠 영역 */
.page.p2 .tab_container .content-area {
  position: relative;
  flex: 1;
  overflow: hidden;
  min-height: 480px;
  background: #1a1a1a;
}

/* 콘텐츠 슬라이드 */
.page.p2 .tab_container .content-area .content-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.45s ease;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 44px 56px;
}
.page.p2 .tab_container .content-area .content-slide.active {
  opacity: 1;
}

/* 슬라이드 내 그라데이션 오버레이 — FF5500 계열 */
.page.p2 .tab_container .content-area .content-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(30, 10, 0, 0.82) 0%,
    rgba(255, 85, 0, 0.12) 55%,
    transparent 100%
  );
  pointer-events: none;
}

/* 콘텐츠 텍스트 */
.page.p2 .tab_container .content-area .content-slide .content-text {
  position: relative;
  z-index: 2;
}
.page.p2 .tab_container .content-area .content-slide .content-text h2 {
  font-family: 'Pretendard', sans-serif;
  color: #ffffff;
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.25;
  margin: 0;
}
.page.p2 .tab_container .content-area .content-slide .content-text .line {
  width: 40px;
  height: 2px;
  background: rgba(255,255,255,0.4);
  margin: 16px 0;
}
.page.p2 .tab_container .content-area .content-slide .content-text p {
  font-family: 'Pretendard', sans-serif;
  color: rgba(255,255,255,0.82);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.75;
  max-width: 520px;
  margin: 0;
}

/* 배경 이미지 */
.page.p2 .tab_container .content-area .slide-1 { background-image: url(../images/page_p2/slide-1.png); }
.page.p2 .tab_container .content-area .slide-2 { background-image: url(../images/page_p2/slide-2.png); }
.page.p2 .tab_container .content-area .slide-3 { background-image: url(../images/page_p2/slide-3.png); }
.page.p2 .tab_container .content-area .slide-4 { background-image: url(../images/page_p2/slide-4.png); }
.page.p2 .tab_container .content-area .slide-5 { background-image: url(../images/page_p2/slide-5.png); }
.page.p2 .tab_container .content-area .slide-6 { background-image: url(../images/page_p2/slide-6.png); }

/* 하단 카드 */
.page.p2 .bottom-cards {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}
.page.p2 .bottom-cards .card {
  height: 150px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-size: cover;
  background-position: center;
  padding: 0 40px;
  display: flex;
  align-items: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.page.p2 .bottom-cards .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.22);
}
.page.p2 .bottom-cards .card.card-1 { background-image: url(../images/page_p2/card-1.png); }
.page.p2 .bottom-cards .card.card-2 { background-image: url(../images/page_p2/card-2.png); }

/* 카드 텍스트 */
.page.p2 .bottom-cards .card .card-content h3 {
  font-family: 'Pretendard', sans-serif;
  color: #ffffff;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}


/* ============================================================
   BENEFITS 탭 전환 + 등장 애니메이션
   ============================================================ */

/* 콘텐츠 텍스트 슬라이드업 (탭 전환 시 재발동) */
@keyframes contentSlideUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.content-slide.active .content-text {
  animation: contentSlideUp 0.45s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

/* 자동슬라이드 진행 인디케이터 — 활성 탭 하단 바 */
@keyframes tabProgress {
  from { width: 0%; }
  to   { width: calc(100% + 40px); } /* clip-path 보정 포함 */
}

.page.p2 .sidebar .tab .tab-progress {
  position: absolute;
  bottom: 0; left: 0;
  height: 3px;
  width: 0;
  background: rgba(255,255,255,0.55);
  border-radius: 0 2px 0 0;
  pointer-events: none;
}
.page.p2 .sidebar .tab.active .tab-progress {
  animation: tabProgress 4.5s linear forwards;
}
/* 비활성 탭 — 즉시 초기화 */
.page.p2 .sidebar .tab:not(.active) .tab-progress {
  animation: none;
  width: 0;
}

/* ============================================================
   BENEFITS RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .page.p2 .tab_container {
    flex-direction: column;
    border-radius: 16px;
  }
  .page.p2 .tab_container .sidebar {
    flex-direction: row;
    flex-wrap: wrap;
    min-width: unset;
  }
  .page.p2 .tab_container .sidebar .tab {
    flex: 1 0 33.33%;
    min-height: 52px;
    padding: 12px 8px;
    font-size: 13px;
    justify-content: center;
    text-align: center;
    border-bottom: none;
    border-right: 1px solid rgba(255,255,255,0.06);
  }
  .page.p2 .tab_container .sidebar .tab:nth-child(3n) {
    border-right: none;
  }
  .page.p2 .tab_container .sidebar .tab.active {
    clip-path: none;
    margin-right: 0;
    padding-right: 8px;
    font-size: 13px;
    border-bottom: 3px solid rgba(255,255,255,0.25);
  }
  .page.p2 .tab_container .content-area {
    min-height: 300px;
  }
  .page.p2 .tab_container .content-area .content-slide {
    padding: 28px 24px;
  }
  .page.p2 .tab_container .content-area .content-slide .content-text h2 {
    font-size: 22px;
  }
  .page.p2 .tab_container .content-area .content-slide .content-text p {
    font-size: 14px;
  }
  .page.p2 .bottom-cards {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .page.p2 .bottom-cards .card .card-content h3 {
    font-size: 18px;
  }
}
