/* ===================================
   MAIN STYLES - 차량구독 웹사이트
   =================================== */

/* ===================================
   HEADER & NAVIGATION (수정된 GNB)
   =================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border-bottom-color: transparent;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
  transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header.scrolled .nav-container {
  height: 60px;
}

.header.scrolled .nav-logo {
  font-size: 1.25rem;
}

/* 로고 - 클릭 시 홈으로 이동 */
.nav-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--secondary);
  flex-shrink: 0;
}

.nav-logo a {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: opacity var(--transition-base);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-logo a:hover {
  opacity: 0.8;
}

/* 네비게이션 메뉴 - "홈" 삭제됨 */
.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--spacing-xl);
  flex: 1;
  justify-content: center;
  margin: 0;
  padding: 0;
}

.nav-menu li {
  margin: 0;
  padding: 0;
}

.nav-menu a {
  color: var(--gray-700);
  font-weight: 500;
  font-size: 1rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  transition: color var(--transition-base);
  position: relative;
  text-decoration: none;
  /* 배경색 완전 제거 */
  background-color: transparent !important;
  background: none !important;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width var(--transition-base);
}

.nav-menu a:hover {
  color: var(--primary);
  /* 호버 시에도 배경색 없음 */
  background-color: transparent !important;
  background: none !important;
}

.nav-menu a:hover::after {
  width: 80%;
}

.nav-menu a.active {
  color: var(--primary);
}

/* 네비게이션 버튼 */
.nav-actions {
  display: flex;
  gap: var(--spacing-md);
  align-items: center;
  flex-shrink: 0;
}

.btn-login-icon {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f5f7fa 0%, #e8eef5 100%);
  border: 1px solid #e0e7ef;
  font-size: 1.5rem;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  opacity: 1 !important;
  visibility: visible !important;
  position: relative;
  z-index: 10;
}

.btn-login-icon:hover {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-color: transparent;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.btn-signup {
  background-color: var(--primary);
  color: var(--white);
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  text-decoration: none;
}

.btn-signup:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* 모바일 토글 버튼 */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--gray-700);
  padding: 0.5rem;
}

/* 반응형 - 모바일 */
@media (max-width: 768px) {
  .nav-container {
    position: relative;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 280px;
    height: calc(100vh - 70px);
    background-color: var(--white);
    flex-direction: column;
    padding: var(--spacing-lg);
    gap: 0;
    box-shadow: var(--shadow-xl);
    transition: left var(--transition-base);
    overflow-y: auto;
    justify-content: flex-start;
    z-index: 1000;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-menu li {
    width: 100%;
    margin-bottom: var(--spacing-sm);
  }

  .nav-menu a {
    display: block;
    width: 100%;
    padding: 1rem;
    font-size: 1.125rem;
  }

  .nav-actions {
    display: flex !important;
    gap: 0.5rem;
    align-items: center;
    flex-shrink: 0;
    margin-left: auto;
    margin-right: 0;
    z-index: 100;
  }

  .btn-login-icon {
    width: 38px;
    height: 38px;
    font-size: 1.25rem;
    display: inline-flex !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .nav-toggle {
    display: block;
    flex-shrink: 0;
    z-index: 100;
    margin-left: 0.5rem;
  }
}

/* ===================================
   MAIN CONTENT
   =================================== */
main {
  margin-top: 70px;
  min-height: calc(100vh - 70px - 300px);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: var(--spacing-lg);
  animation: slideInUp 0.6s ease;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-xl);
  opacity: 0.95;
  animation: slideInUp 0.6s ease 0.1s backwards;
}

.hero-actions {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  animation: slideInUp 0.6s ease 0.2s backwards;
}

/* Section */
.section {
  padding: 4rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2.5rem;
  color: var(--secondary);
  margin-bottom: var(--spacing-md);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto;
}

/* Grid Layouts */
.grid {
  display: grid;
  gap: var(--spacing-xl);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .hero-actions {
    flex-direction: column;
  }
}

/* Feature Cards */
.feature-card {
  text-align: left;
  padding: 2rem;
  background: var(--white);
  border: 1px solid #e8eef5;
  border-radius: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(102, 126, 234, 0.15);
  border-color: #d0d9e5;
}

.feature-card:hover::before {
  transform: scaleX(1);
}

/* Figma Modern Style - Feature Number Badge */
.feature-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 700;
  border-radius: 12px;
  margin-bottom: var(--spacing-lg);
  transition: all var(--transition-base);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.feature-card:hover .feature-number {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.35);
}

.feature-title {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #1a202c;
  letter-spacing: -0.02em;
}

.feature-description {
  color: #64748b;
  line-height: 1.7;
  font-size: 0.9375rem;
}

/* Step Cards for Process Section */
.step-card {
  text-align: center;
  padding: 2rem;
  background: var(--white);
  border: 1px solid #e8eef5;
  border-radius: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.step-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(102, 126, 234, 0.15);
  border-color: #d0d9e5;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #f0f4ff 0%, #e0e9ff 100%);
  color: #667eea;
  font-size: 1.75rem;
  font-weight: 800;
  border-radius: 16px;
  margin: 0 auto var(--spacing-lg);
  transition: all var(--transition-base);
  border: 2px solid #d0dbf7;
}

.step-card:hover .step-number {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: var(--white);
  border-color: transparent;
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.35);
}

/* Statistics Section */
.stats-section {
  padding: 4rem 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.stat-card {
  text-align: center;
  padding: 2rem;
}

.stat-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.stat-value {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
}

.stat-plus,
.stat-suffix {
  font-size: 2rem;
  font-weight: 700;
  opacity: 0.85;
  line-height: 1;
}

.stat-label {
  font-size: 1.125rem;
  opacity: 0.9;
  font-weight: 500;
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .stat-card {
    padding: 1.5rem 1rem;
  }
  
  .stat-icon {
    font-size: 2.5rem;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
  
  .stat-plus,
  .stat-suffix {
    font-size: 1.5rem;
  }
  
  .stat-label {
    font-size: 1rem;
  }
}

/* Customer Reviews Section */
.reviews-section {
  padding: 4rem 0;
  background: #f8fafc;
}

.reviews-carousel {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 4rem;
}

.reviews-track {
  overflow: hidden;
  position: relative;
}

.review-card {
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease;
  background: white;
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.review-card.active {
  display: block;
  opacity: 1;
}

.review-stars {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  letter-spacing: 0.25rem;
}

.review-text {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #334155;
  margin-bottom: 2rem;
  font-style: italic;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
  flex-shrink: 0;
}

.author-name {
  font-weight: 700;
  font-size: 1rem;
  color: #1e293b;
}

.author-car {
  font-size: 0.875rem;
  color: #64748b;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  border: 2px solid #e2e8f0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  color: #667eea;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.carousel-btn:hover {
  background: #667eea;
  color: white;
  border-color: #667eea;
}

.prev-btn {
  left: 0;
}

.next-btn {
  right: 0;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: #667eea;
  width: 24px;
  border-radius: 5px;
}

@media (max-width: 768px) {
  .reviews-carousel {
    padding: 2rem 3rem;
  }
  
  .review-card {
    padding: 2rem;
  }
  
  .review-text {
    font-size: 1rem;
  }
  
  .carousel-btn {
    width: 35px;
    height: 35px;
    font-size: 1.25rem;
  }
}

/* Vehicle Cards */
.vehicle-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  cursor: pointer;
  position: relative;
}

.vehicle-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(102, 126, 234, 0.2);
}

.vehicle-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
  pointer-events: none;
}

.vehicle-card:hover::before {
  opacity: 1;
}

.vehicle-hover-info {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-align: center;
  opacity: 0;
  z-index: 2;
  transition: all 0.3s ease;
  pointer-events: none;
  width: 80%;
}

.vehicle-card:hover .vehicle-hover-info {
  opacity: 1;
  transform: translate(-50%, -50%) translateY(-10px);
}

.vehicle-hover-info h4 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.vehicle-hover-info p {
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.vehicle-hover-info .btn {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: white;
  color: var(--primary);
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}

.vehicle-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
  position: relative;
  overflow: hidden;
}

/* 차종별 그라데이션 */
.vehicle-image[data-vehicle="electric"] {
  background: linear-gradient(135deg, #dbeafe 0%, #93c5fd 50%, #3b82f6 100%);
}

.vehicle-image[data-vehicle="hybrid"] {
  background: linear-gradient(135deg, #d1fae5 0%, #6ee7b7 50%, #10b981 100%);
}

.vehicle-image[data-vehicle="luxury"] {
  background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 50%, #8b5cf6 100%);
}

/* 차량 이미지에 장식 요소 추가 */
.vehicle-image::before {
  content: '🚗';
  position: absolute;
  font-size: 4rem;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.3;
  filter: grayscale(0);
}

.vehicle-content {
  padding: var(--spacing-lg);
}

.vehicle-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: var(--primary);
  color: var(--white);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
}

.vehicle-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
  color: var(--secondary);
}

.vehicle-specs {
  display: flex;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
  font-size: 0.875rem;
  color: var(--gray-600);
}

.vehicle-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.vehicle-price-unit {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--gray-500);
}

/* ===================================
   FOOTER
   =================================== */
.footer {
  background-color: var(--secondary);
  color: var(--gray-300);
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}

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

.footer-section {
  text-align: left;
}

.footer-section h4 {
  color: var(--white);
  margin-bottom: var(--spacing-md);
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section li {
  margin-bottom: var(--spacing-sm);
}

.footer-section a {
  color: var(--gray-400);
  transition: color var(--transition-base);
}

.footer-section a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid var(--gray-700);
  padding-top: var(--spacing-lg);
  text-align: center;
  color: var(--gray-500);
}

/* 모바일: 왼쪽 정렬 */
@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    max-width: 100%;
  }
  
  .footer-section {
    text-align: left;
  }
}

/* ===================================
   UTILITIES
   =================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }
.mt-4 { margin-top: var(--spacing-xl); }

.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }
.mb-4 { margin-bottom: var(--spacing-xl); }

.hidden { display: none; }
