@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

:root {
  --point-color: #FF6A00;
  --bg-color: #000000;
  --text-color: #FFFFFF;
  --sub-text-color: #BBBBBB;
  --gray-bg: #111111;
  --border-color: #222222;
  --header-height: 60px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Pretendard', sans-serif;
  -webkit-tap-highlight-color: transparent;
}

html {
  background-color: var(--bg-color);
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
}

/* Header */
header {
  position: sticky;
  top: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
}

.header-container {
  width: 100%;
  max-width: 1200px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logos {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-logos img {
  height: 20px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

/* Hero Section */
.hero {
  position: relative;
  width: 100%;
  min-height: 85vh;
  padding: 160px 20px 120px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  color: #FFFFFF;
  overflow: hidden;
  background: #000000;
  perspective: 1000px;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background-image: url('public/hero image.jpg'); /* Updated image */
  background-size: cover;
  background-position: center center;
  filter: brightness(0.35); /* Darkened for better contrast */
  transform: scale(1.1);
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.85) 100%); /* Increased overlay opacity */
  z-index: 1;
}

#hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.hero-content {
  position: relative;
  width: 100%;
  max-width: 1000px;
  z-index: 10;
  margin-bottom: 60px;
}

.hero h1 {
  font-size: 3.5rem;
  line-height: 1.25;
  font-weight: 900;
  margin-bottom: 24px;
  word-break: keep-all;
}

.mobile-br {
  display: none;
}

.hero-subtext {
  font-size: 1.4rem;
  margin-bottom: 45px;
  opacity: 0.9;
  word-break: keep-all;
}

.highlight-text {
  background: linear-gradient(135deg, var(--point-color) 0%, #FF9E5E 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-showcase-container {
  margin: 50px auto 0;
  width: 100%;
  max-width: 800px;
  position: relative;
  z-index: 20;
}

.hero-showcase-slider {
  width: 100%;
  height: 500px;
  position: relative;
}

.showcase-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transform: translateY(30px) scale(0.98);
  transition: all 1s cubic-bezier(0.23, 1, 0.32, 1);
}

.showcase-slide.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.slide-img-box {
  width: 100%;
  height: 450px;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}

.slide-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.showcase-caption {
  margin-top: 12px;
  font-size: 0.9rem;
  color: #FFFFFF;
  font-weight: 600;
  opacity: 0.8;
}

.shimmer {
  position: absolute;
  top: 0;
  left: -150%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-25deg);
  z-index: 2;
}

.showcase-slide.active .shimmer {
  animation: showcase-shine 3s infinite;
}

@keyframes showcase-shine {
  0% { left: -150%; }
  30% { left: 150%; }
  100% { left: 150%; }
}

.hero-marquee-wrapper {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
  z-index: 20;
  padding: 20px 0;
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.marquee-content {
  display: flex;
  align-items: center;
  gap: 60px;
  width: max-content;
  animation: marquee-run 30s linear infinite;
}

.marquee-content img {
  height: 28px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.8;
  transition: all 0.3s ease;
}

@keyframes marquee-run {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 30px)); }
}

/* Sections */
section {
  padding: 80px 20px;
  width: 100%;
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.section-title h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 15px;
  color: #FFFFFF;
}

.point-text {
  color: var(--point-color);
  font-weight: 700;
}

/* Pain Points */
.pain-points {
  background: #000000;
  padding: 100px 20px;
  border-top: 1px solid var(--border-color);
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.pain-card {
  background: #111111;
  padding: 50px 30px;
  border-radius: 24px;
  border: 1px solid #222222;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.3s ease;
}

.pain-card .icon-box {
  width: 70px;
  height: 70px;
  background: rgba(255, 106, 0, 0.1);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.pain-card i {
  font-size: 2rem;
  color: var(--point-color);
}

.pain-card h3 {
  font-size: 1.4rem;
  margin-bottom: 16px;
  color: #FFFFFF;
}

.pain-card p {
  color: var(--sub-text-color);
  font-size: 0.95rem;
  line-height: 1.5;
  word-break: keep-all;
}

.pain-card .highlight {
  color: var(--point-color);
  font-weight: 700;
}

/* Solution Details */
.solution-details {
  background: #000000;
  padding: 100px 20px;
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.solution-card {
  position: relative;
  background: #111111;
  border-radius: 32px;
  padding: 40px 30px;
  border: 1px solid #222222; /* 기본 상태 테두리 제거(어둡게) */
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all 0.3s ease;
  cursor: pointer;
}

.solution-card:hover, .solution-card:active {
  border-color: var(--point-color); /* 호버/터치 시에만 오렌지색 테두리 */
  transform: translateY(-5px);
}

.card-img-wrap {
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 30px;
  aspect-ratio: 16/10;
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--point-color);
  background: rgba(255, 106, 0, 0.15); /* 더 진한 배경 */
  padding: 6px 14px;
  border-radius: 8px;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  width: fit-content;
}

.solution-card h4 {
  font-size: 1.6rem; /* 폰트 크기 확대 */
  font-weight: 800;
  margin-bottom: 20px;
  color: #FFFFFF;
  line-height: 1.3;
  word-break: keep-all;
}

.solution-card p {
  color: var(--sub-text-color);
  font-size: 1.05rem;
  line-height: 1.6;
  word-break: keep-all;
}

/* Reference */
.reference-section {
  padding: 100px 0;
  background: #000000;
  border-top: 1px solid var(--border-color);
}

.reference-slider-container {
  width: 100%;
  overflow-x: auto;
  padding: 20px 20px 50px;
  scrollbar-width: none;
}

.reference-slider-container::-webkit-scrollbar {
  display: none;
}

.reference-slider {
  display: flex;
  gap: 24px;
  width: max-content;
  margin: 0 auto;
}

.reference-card {
  width: 320px;
  background: #111111;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid #222222;
  transition: all 0.3s ease;
}

.ref-img-wrap {
  position: relative;
  height: 200px;
  margin: 15px; /* 이미지 주변 여백 */
  border-radius: 16px;
  overflow: hidden;
}

.ref-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ref-tag {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--point-color);
  color: #FFF;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  z-index: 2;
}

.ref-content {
  padding: 0 24px 24px;
}

.ref-content h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: #FFFFFF;
}

.ref-info {
  list-style: none;
  margin-bottom: 24px;
  padding: 0;
}

.ref-info li {
  font-size: 0.95rem;
  color: var(--sub-text-color);
  margin-bottom: 10px;
  display: flex;
  gap: 12px;
}

.ref-info li strong {
  color: #FFFFFF;
  min-width: 45px;
  font-weight: 700;
}

.ref-result {
  background: rgba(255, 106, 0, 0.08); /* 옅은 오렌지 배경 */
  border: 1px dashed var(--point-color); /* 점선 오렌지 테두리 */
  padding: 16px;
  border-radius: 12px;
}

.ref-result .label {
  display: block;
  font-size: 0.8rem;
  color: var(--point-color);
  font-weight: 700;
  margin-bottom: 6px;
}

.ref-result .value {
  font-size: 1.15rem;
  font-weight: 800;
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
}

.ref-result .sub-value {
  display: block;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--sub-text-color);
  margin-top: 4px;
}

.ref-summary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  background: rgba(255, 255, 255, 0.05);
  color: #FFFFFF;
  text-decoration: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  margin-top: 30px;
  line-height: 1;
}

.ref-summary-cta:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--point-color);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.ref-summary-cta i {
  font-size: 1.2rem;
  color: var(--point-color);
}

/* Ending Section */
.ending-premium {
  position: relative;
  min-height: 500px;
  padding: 140px 20px 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #000000;
  overflow: hidden;
}

.ending-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('public/assets/solution/4.jpg');
  background-size: cover;
  background-position: center;
  filter: brightness(0.3);
  z-index: 0;
}

.ending-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  width: 100%;
}

.ending-content h2 {
  font-size: 2.6rem;
  font-weight: 800;
  margin-bottom: 24px;
  line-height: 1.4;
  word-break: keep-all;
  color: #FFFFFF;
}

.ending-content .point-text {
  color: var(--point-color);
  display: block;
  margin-top: 12px;
}

.ending-content p {
  font-size: 1.2rem;
  color: var(--sub-text-color);
  margin-top: 24px;
  font-weight: 400;
}

/* CTA Buttons */
.cta-fixed {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 500px;
  z-index: 900;
}

.cta-btn {
  width: 100%;
  padding: 18px;
  background: var(--point-color);
  color: #FFFFFF;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(255, 106, 0, 0.3);
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}

.cta-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-25deg);
  animation: shine 3s infinite;
}

@keyframes shine {
  0% { left: -100%; }
  20% { left: 200%; }
  100% { left: 200%; }
}

/* Hide fixed CTA when popup is active to prevent overlapping */
body.popup-open .cta-fixed {
  display: none;
}

/* Popups */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

.popup-content {
  width: 100%;
  max-width: 600px; /* PC에서도 적절한 너비 유지 */
  max-height: 90vh;
  background: #FFFFFF;
  border-radius: 24px 24px 0 0;
  padding: 35px 24px;
  overflow-y: auto;
  position: relative;
  color: #333333;
  transform: translateY(100%);
  transition: transform 0.4s ease;
  margin: 0 auto;
}

.popup-overlay.active .popup-content {
  transform: translateY(0);
}

.popup-header-revamp {
  margin-bottom: 24px;
}

.popup-badge {
  display: inline-block;
  background: rgba(255, 106, 0, 0.1);
  color: var(--point-color);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.popup-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #000;
  margin-bottom: 12px;
}

.popup-promo-banner {
  background: #fff5ee;
  border: 1px solid rgba(255, 106, 0, 0.2);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 24px;
}

.countdown-timer {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--point-color);
  margin-top: 5px;
}

.proposal-contents-info {
  margin-bottom: 30px;
}

.proposal-list {
  list-style: none;
  padding: 0;
}

.proposal-list li {
  font-size: 0.9rem;
  margin-bottom: 8px;
  padding-left: 20px;
  position: relative;
}

.proposal-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--point-color);
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #000;
}

.form-group input {
  width: 100%;
  padding: 14px;
  border: 1px solid #ddd;
  border-radius: 12px;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-group input:focus {
  border-color: var(--point-color);
  outline: none;
}

.error-msg {
  color: #ff4d4f;
  font-size: 0.8rem;
  margin-top: 6px;
  display: none;
}

.agreement-section {
  margin-top: 24px;
  margin-bottom: 30px;
}

.agree-item {
  margin-bottom: 12px;
}

.agree-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.agree-check {
  width: 20px !important;
  height: 20px !important;
  cursor: pointer;
}

.agree-header label {
  font-size: 0.9rem;
  font-weight: 500;
  color: #333;
  cursor: pointer;
  margin-bottom: 0 !important;
}

.agreement-box {
  width: 100%;
  height: 100px;
  background: #f8f9fa;
  border: 1px solid #eee;
  padding: 12px;
  font-size: 0.8rem;
  color: #666;
  border-radius: 8px;
  overflow-y: auto;
  margin-top: 8px;
  /* 줄바꿈 및 띄어쓰기 유지 설정 */
  white-space: pre-wrap;
  word-wrap: break-word;
  word-break: keep-all; /* 한글 단어 단위 끊김 방지 */
  line-height: 1.5;
  text-align: left;
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 2rem;
  cursor: pointer;
  color: #ccc;
  z-index: 10;
}

/* Success Popup */
.popup-overlay#success-overlay {
  align-items: center;
}

.success-popup {
  background: #FFFFFF;
  padding: 40px 30px;
  border-radius: 24px;
  text-align: center;
  width: 90%;
  max-width: 400px;
  color: #333;
}

.success-popup i {
  font-size: 4rem;
  color: var(--point-color);
  margin-bottom: 20px;
}

/* Floating Items */
.floating-item {
  position: absolute;
  width: 60px;
  height: 60px;
  background: rgba(255, 106, 0, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 106, 0, 0.2);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--point-color);
  font-size: 1.5rem;
  z-index: 5;
  animation: float 6s ease-in-out infinite;
}

.item-1 { top: 20%; left: 10%; animation-delay: 0s; }
.item-2 { top: 15%; right: 15%; animation-delay: 2s; }
.item-3 { bottom: 30%; left: 15%; animation-delay: 4s; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-20px) rotate(10deg); }
}

/* Transitions and Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Existing Animations Update */
.pain-card, .solution-card, .reference-card {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.pain-card.active, .solution-card.active, .reference-card.active {
  opacity: 1;
  transform: translateY(0);
}

/* Media Queries */
@media screen and (min-width: 1024px) {
  .reference-slider {
    width: 100%;
    max-width: 1200px;
    justify-content: center;
  }
}

@media screen and (max-width: 768px) {
  .hero-content h1 { font-size: 2rem; }
  .pain-grid, .solution-grid { grid-template-columns: 1fr; }
  .floating-item { width: 40px; height: 40px; font-size: 1rem; }
}
