/* ========================================
   메인 페이지 전용 스타일
   ======================================== */

/* 히어로 섹션 */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-gradient);
  position: relative;
  overflow: hidden;
  padding-top: 64px;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(66, 133, 244, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(99, 91, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

#particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  text-align: center;
  z-index: 2;
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: var(--spacing-xl);
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: var(--spacing-lg);
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--brand-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  color: var(--text-secondary);
  margin-bottom: var(--spacing-xl);
  line-height: 1.5;
}

.hero-description {
  font-size: var(--font-lg);
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--spacing-xl);
}

.hero-cta {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* 회사 소개 섹션 */
.intro-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xxl);
  align-items: center;
  margin-top: var(--spacing-xl);
}

.intro-content h2 {
  font-size: var(--font-3xl);
  margin-bottom: var(--spacing-lg);
  color: var(--text-primary);
}

.intro-content p {
  font-size: var(--font-lg);
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--spacing-md);
}

.intro-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px var(--shadow-color);
}

.intro-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* 로고 이미지 전용 스타일 */
.logo-image {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-xl);
}

.logo-image img {
  width: 70%;
  max-width: 300px;
  height: auto;
  display: block;
}

/* 미션 & 비전 섹션 */
.mission-vision {
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
}

#mission-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.mission-vision .container {
  position: relative;
  z-index: 2;
}

.mission-content {
  max-width: 800px;
  margin: 0 auto;
  padding-top: 2rem;
}

.mission-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 2rem;
  font-weight: 700;
  line-height: 1.2;
}

.mission-text {
  font-size: 1.3rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

/* Text gradient utility class */
.text-gradient {
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--vcworks-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 핵심가치 섹션 */
.values-section {
  background: var(--bg-primary);
  padding: 5rem 0;
}

.title-underline {
  width: 60px;
  height: 4px;
  background: var(--brand-blue);
  margin: 0 auto;
  border-radius: 2px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-xl);
  margin-top: 3rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.value-card {
  background: var(--bg-secondary);
  border-radius: 12px;
  padding: 2.5rem;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.value-card:hover {
  transform: translateY(-5px);
  border-color: var(--brand-blue);
  box-shadow: 0 10px 30px rgba(66, 133, 244, 0.2);
}

.value-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--brand-blue), #1a56b0);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.value-icon i {
  font-size: 1.8rem;
  color: white;
}

.value-card h3 {
  color: var(--text-primary);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.value-card ul {
  list-style: none;
}

.value-card li {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
  position: relative;
}

.value-card li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--brand-blue);
  font-weight: bold;
  font-size: 1.2rem;
}

/* 연혁 섹션 */
.history {
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

#history-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.history .container {
  position: relative;
  z-index: 2;
}

.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: var(--spacing-xl) 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--brand-blue) 0%, var(--vcworks-primary) 100%);
  transform: translateX(-50%);
}

.timeline-phase {
  position: relative;
  padding: 2rem;
  margin-bottom: 3rem;
  background-color: rgba(42, 46, 58, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.timeline-phase:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.timeline-phase.current-phase {
  border-color: var(--brand-blue);
  box-shadow: 0 0 30px rgba(66, 133, 244, 0.2);
}

.timeline-phase h3 {
  color: var(--text-primary);
  font-size: var(--font-xl);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.phase-period {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.timeline-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.timeline-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.timeline-date {
  flex-shrink: 0;
  width: 80px;
  font-weight: 600;
  color: var(--brand-blue);
}

.timeline-event {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* 제품 요약 섹션 */
.products-summary {
  background: var(--bg-primary);
}

.products-grid {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.product-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-xl);
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px var(--shadow-color);
}

.product-card:hover::before {
  opacity: 0.1;
}

.product-card.vcworks {
  --gradient: linear-gradient(135deg, var(--vcworks-primary), var(--vcworks-secondary));
  --accent: var(--vcworks-primary);
}

.product-card.stworks {
  --gradient: linear-gradient(135deg, var(--stworks-primary), var(--stworks-secondary));
  --accent: var(--stworks-primary);
}

.product-card.lpworks {
  --gradient: linear-gradient(135deg, var(--lpworks-primary), var(--lpworks-secondary));
  --accent: var(--lpworks-primary);
}

.product-logo {
  width: auto;
  height: 80px;
  max-width: 200px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.product-content {
  flex: 1;
}

.product-card h3 {
  font-size: var(--font-2xl);
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
}

.product-card .product-tag {
  display: inline-block;
  font-size: var(--font-sm);
  color: var(--accent);
  margin-bottom: var(--spacing-md);
  font-weight: 600;
}

.product-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--spacing-lg);
}

.product-card .product-features {
  list-style: none;
  margin-bottom: var(--spacing-lg);
}

.product-card .product-features li {
  position: relative;
  padding-left: var(--spacing-lg);
  margin-bottom: var(--spacing-xs);
  color: var(--text-secondary);
  font-size: var(--font-sm);
}

.product-card .product-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

.product-card .product-link {
  display: inline-flex;
  align-items: center;
  color: var(--accent);
  font-weight: 600;
  gap: var(--spacing-xs);
  transition: gap var(--transition-fast);
}

.product-card:hover .product-link {
  gap: var(--spacing-sm);
}

/* CTA 섹션 */
.cta-section {
  background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary));
  text-align: center;
  padding: var(--spacing-xxl) 0;
}

.cta-content h2 {
  font-size: var(--font-3xl);
  margin-bottom: var(--spacing-md);
}

.cta-content p {
  font-size: var(--font-xl);
  color: var(--text-secondary);
  margin-bottom: var(--spacing-xl);
}

/* 애니메이션 지연 클래스 */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }

/* 반응형 디자인 */
@media (max-width: 1024px) {
  .intro-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
  }
  
  .timeline::before {
    left: 20px;
  }
  
  .timeline-phase {
    margin-left: 40px;
  }
}

@media (max-width: 768px) {
  .hero-section {
    min-height: 80vh;
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-cta .btn {
    width: 100%;
    max-width: 300px;
  }
  
  .values-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
  
  .value-card {
    padding: 2rem;
  }
  
  .products-grid {
    gap: var(--spacing-md);
  }
  
  /* 모바일에서 제품 카드 레이아웃 변경 */
  .product-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--spacing-lg);
  }
  
  .product-logo {
    height: 60px;
    margin-bottom: var(--spacing-md);
  }
  
  .product-card .product-features {
    text-align: left;
    max-width: 300px;
    margin: 0 auto var(--spacing-lg);
  }
  
  .product-card .product-link {
    justify-content: center;
  }
  
  .timeline::before {
    left: 15px;
  }
  
  .timeline-phase {
    padding: 1.5rem;
    margin-left: 30px;
  }
  
  .timeline-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  /* 아주 작은 화면에서 제품 카드 추가 조정 */
  .product-card {
    padding: var(--spacing-md);
  }
  
  .product-logo {
    height: 50px;
    max-width: 150px;
  }
  
  .product-card h3 {
    font-size: var(--font-xl);
  }
  
  .product-card p {
    font-size: var(--font-sm);
  }
  
  .product-card .product-features {
    font-size: 0.85rem;
  }
}