/* ============================================
   CSS 변수 및 기본 설정
   ============================================ */
:root {
  --primary: #4f46e5;
  --primary-dark: #3730a3;
  --primary-light: #6366f1;
  --secondary: #ec4899;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-900: #111827;
  --text-light: #6b7280;
  --border-light: #e5e7eb;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

* { 
  box-sizing: border-box; 
}

body { 
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans KR", sans-serif; 
  background: var(--gray-50); 
  margin: 0; 
  padding: 0; 
  color: var(--gray-900);
  line-height: 1.6;
  scroll-behavior: smooth;
}

h1, h2, h3, h4 { 
  margin: 0; 
  font-weight: 700; 
}

a { 
  text-decoration: none; 
  color: inherit;
}

img { 
  max-width: 100%; 
  height: auto; 
}

.hidden {
  display: none !important;
}

/* ============================================
   Accessibility
   ============================================ */
.skip-to-main {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary);
  color: white;
  padding: 8px;
  text-decoration: none;
  z-index: 100;
  border-radius: 4px;
}

.skip-to-main:focus {
  top: 6px;
}

/* ============================================
   Header
   ============================================ */
.header { 
  position: fixed; 
  top: 0; 
  left: 0; 
  right: 0; 
  background: rgba(255,255,255,0.95); 
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light); 
  z-index: 1000; 
  transition: all 0.3s ease;
}

.nav { 
  max-width: 1200px; 
  margin: 0 auto; 
  padding: 1rem 2rem; 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
}

.logo { 
  font-size: 1.75rem; 
  font-weight: 800; 
  background: linear-gradient(135deg, var(--primary), var(--secondary)); 
  -webkit-background-clip: text; 
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links { 
  display: flex; 
  gap: 2rem; 
  list-style: none; 
  margin: 0; 
  padding: 0;
}

.nav-links a { 
  color: var(--gray-700); 
  font-weight: 500; 
  transition: color 0.3s ease;
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a:hover, 
.nav-links a:focus { 
  color: var(--primary); 
  outline: none;
}

.nav-links a:hover::after,
.nav-links a:focus::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
}

.nav-cta { 
  background: var(--primary); 
  color: #fff; 
  padding: 0.75rem 1.5rem; 
  border-radius: 0.75rem; 
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  border: none;
  font-size: 14px;
}

.nav-cta:hover, 
.nav-cta:focus { 
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  outline: 2px solid transparent;
}

/* ============================================
   사용자 인증 관련
   ============================================ */
.auth-buttons {
  display: flex;
  gap: 8px;
  align-items: center;
}

.login-btn {
  background: none;
  border: 1px solid var(--border-light);
  color: var(--gray-700);
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.login-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(79, 70, 229, 0.05);
}

.user-info {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
}

/* 알림 벨 스타일 */
.notification-bell {
  position: relative;
  font-size: 1.5rem;
  cursor: pointer;
  transition: transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notification-bell:hover {
  transform: scale(1.1);
}

.notification-dot {
  position: absolute;
  top: 0;
  right: 0;
  width: 8px;
  height: 8px;
  background: #ef4444;
  border-radius: 50%;
  display: none;
}

.notification-dot.active {
  display: block;
}

/* 사용자 정보 내부 컨테이너 */
.user-info-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: background 0.2s ease;
  padding: 0;
  border-radius: 0.5rem;
}

.user-info-inner:hover {
  background: var(--gray-50);
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 14px;
}

.user-name {
  color: var(--gray-700);
  font-weight: 500;
  font-size: 14px;
}

.dropdown-icon {
  color: var(--gray-600);
  font-size: 12px;
  transition: transform 0.3s ease;
}

.user-info.active .dropdown-icon {
  transform: rotate(180deg);
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background: white;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  z-index: 1000;
}

.user-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu {
  list-style: none;
  padding: 0.5rem;
  margin: 0;
}

.dropdown-menu li {
  margin: 0;
}

.dropdown-menu a,
.dropdown-menu button {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem 1rem;
  border: none;
  background: none;
  text-align: left;
  color: var(--gray-700);
  text-decoration: none;
  cursor: pointer;
  border-radius: 0.375rem;
  transition: background 0.2s ease;
  font-size: 0.9rem;
}

.dropdown-menu a:hover,
.dropdown-menu button:hover {
  background: var(--gray-50);
}

.dropdown-menu button.logout {
  color: var(--danger);
}

.dropdown-divider {
  height: 1px;
  background: var(--gray-200);
  margin: 0.5rem 0;
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--gray-700);
  padding: 0.5rem;
  border-radius: 0.25rem;
}

.mobile-menu-btn:focus {
  outline: 2px solid var(--primary);
}

/* ============================================
   모달 기본 스타일
   ============================================ */
#loginModal,
#signupModal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

#loginModal.hidden,
#signupModal.hidden {
  display: none;
}

.modal-content {
  background: white;
  border-radius: 12px;
  max-width: 400px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
  position: relative;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.modal-title {
  margin: 0;
  font-size: 24px;
  font-weight: bold;
  color: var(--gray-900);
}

.modal-close {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #666;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.modal-close:hover {
  background-color: #f3f4f6;
}

/* ============================================
   폼 스타일
   ============================================ */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  color: var(--gray-700);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.form-input, .form-select {
  width: 100%;
  padding: 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  font-family: inherit;
}

.form-input:focus, .form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

textarea.form-input {
  resize: vertical;
  min-height: 80px;
}

.form-button {
  width: 100%;
  background-color: var(--primary);
  color: white;
  padding: 12px 16px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.form-button:hover:not(:disabled) {
  background-color: var(--primary-dark);
}

.form-button:active:not(:disabled) {
  transform: scale(0.98);
}

.form-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ============================================
   개선된 회원가입 모달 스타일
   ============================================ */
.signup-modal-content {
  max-width: 700px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

/* 스크롤바 스타일 */
.signup-modal-content::-webkit-scrollbar {
  width: 8px;
}

.signup-modal-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.signup-modal-content::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 10px;
}

.signup-modal-content::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* 진행 단계 표시 */
.signup-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
  gap: 10px;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #e9ecef;
  color: #6c757d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
}

.progress-step.active .step-number {
  background-color: var(--primary);
  color: white;
}

.progress-step.completed .step-number {
  background-color: var(--success);
  color: white;
}

.step-label {
  font-size: 12px;
  color: #6c757d;
  font-weight: 500;
}

.progress-step.active .step-label {
  color: var(--primary);
  font-weight: 600;
}

.progress-line {
  width: 60px;
  height: 2px;
  background-color: #e9ecef;
  margin-bottom: 25px;
}

/* 회원가입 단계 */
.signup-step {
  animation: fadeInStep 0.3s ease;
}

@keyframes fadeInStep {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.step-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
  text-align: center;
  margin-bottom: 0.5rem;
}

.step-description {
  text-align: center;
  color: #6c757d;
  margin-bottom: 30px;
  font-size: 14px;
}

/* Step 1: 역할 선택 카드 (고객 vs 영업) */
.role-selection-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.role-card {
  border: 2px solid #e9ecef;
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: white;
  position: relative;
  overflow: hidden;
}

.role-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, #06b6d4, #3b82f6);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.role-card.customer-card::before {
  background: linear-gradient(135deg, #10b981, #22c55e);
}

.role-card.sales-card::before {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
}

.role-card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.15);
  transform: translateY(-4px);
}

.role-card:hover::before {
  opacity: 1;
}

.role-card.selected {
  border-color: var(--primary);
  background-color: #f0f7ff;
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.2);
}

.role-card.selected::before {
  opacity: 1;
}

.role-icon {
  font-size: 56px;
  margin-bottom: 16px;
  display: block;
}

.role-card h4 {
  font-size: 22px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 12px;
}

.role-main-text {
  font-size: 15px;
  color: var(--gray-700);
  font-weight: 500;
  margin-bottom: 20px;
  line-height: 1.5;
}

.role-target {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
  background: #f9fafb;
  padding: 16px;
  border-radius: 8px;
}

.role-target li {
  color: var(--gray-600);
  font-size: 13px;
  padding: 6px 0;
  line-height: 1.5;
}

/* Step 1-2: 영업 유형 선택 카드 */
.sales-type-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.sales-type-card {
  border: 2px solid #e9ecef;
  border-radius: 16px;
  padding: 32px 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: white;
  position: relative;
  overflow: hidden;
}

.sales-type-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sales-type-card.manufacturer-card::before {
  background: linear-gradient(135deg, #ec4899, #f97316);
}

.sales-type-card.partner-card::before {
  background: linear-gradient(135deg, #06b6d4, #3b82f6);
}

.sales-type-card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.15);
  transform: translateY(-4px);
}

.sales-type-card:hover::before {
  opacity: 1;
}

.sales-type-card.selected {
  border-color: var(--primary);
  background-color: #f0f7ff;
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.2);
}

.sales-type-card.selected::before {
  opacity: 1;
}

.sales-type-card .card-icon {
  font-size: 48px;
  margin-bottom: 16px;
  text-align: center;
  display: block;
}

.sales-type-card h4 {
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 12px;
  text-align: center;
}

.sales-main-text {
  font-size: 15px;
  color: var(--gray-700);
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.5;
}

.example-box {
  background: #f9fafb;
  padding: 16px;
  border-radius: 8px;
  border-left: 3px solid var(--primary);
}

.example-box strong {
  display: block;
  color: var(--gray-700);
  font-size: 13px;
  margin-bottom: 8px;
}

.example-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.example-box ul li {
  color: var(--gray-600);
  font-size: 13px;
  padding: 4px 0;
  padding-left: 16px;
  position: relative;
  line-height: 1.5;
}

.example-box ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

/* 이전 버튼 */
.back-button {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 14px;
  cursor: pointer;
  margin-bottom: 20px;
  padding: 5px 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color 0.3s ease;
}

.back-button:hover {
  color: var(--primary-dark);
}

/* 체크박스 그룹 */
.checkbox-group {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #495057;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.signup-form {
  margin-top: 20px;
}

/* ============================================
   Step 2, 3: 추가 폼 스타일
   ============================================ */
.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.form-help-text {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 4px;
}

.form-error {
  font-size: 12px;
  color: var(--danger);
  margin-top: 4px;
}

.form-input.error {
  border-color: var(--danger);
}

/* 파일 업로드 */
.file-upload-wrapper {
  position: relative;
}

.file-upload-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}

.file-upload-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border: 2px dashed var(--border-light);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: var(--gray-50);
  color: var(--gray-700);
  font-size: 14px;
  font-weight: 500;
}

.file-upload-label:hover {
  border-color: var(--primary);
  background: rgba(79, 70, 229, 0.05);
  color: var(--primary);
}

.file-name {
  font-size: 13px;
  color: var(--gray-600);
  margin-top: 8px;
}

/* ============================================
   Hero 섹션
   ============================================ */
.hero { 
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); 
  color: white; 
  padding: 8rem 2rem 6rem; 
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="white" opacity="0.1"/></svg>');
  background-size: 50px 50px;
  animation: moveBackground 20s linear infinite;
}

@keyframes moveBackground {
  from { transform: translateY(0); }
  to { transform: translateY(50px); }
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero h1 { 
  font-size: 3.5rem; 
  margin-bottom: 1.5rem; 
  line-height: 1.2;
  animation: fadeInUp 0.8s ease;
}

.hero p { 
  font-size: 1.25rem; 
  margin-bottom: 2rem; 
  opacity: 0.9;
  animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 4rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  display: block;
  margin-bottom: 0.5rem;
  color: white;
}

.stat-label {
  font-size: 1rem;
  opacity: 0.9;
  color: white;
}

.hero-cta {
  display: inline-flex;
  gap: 1rem;
  animation: fadeInUp 0.8s ease 0.4s backwards;
}

.btn-hero { 
  background: white; 
  color: var(--primary); 
  padding: 1rem 2rem; 
  border-radius: 0.75rem; 
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-lg);
  border: none;
  cursor: pointer;
  font-size: 16px;
}

.btn-hero:hover { 
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

.btn-hero-secondary {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid white;
  backdrop-filter: blur(10px);
}

.btn-hero-secondary:hover {
  background: white;
  color: var(--primary);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   Platforms & Cards 섹션
   ============================================ */
.platforms {
  padding: 5rem 2rem;
  background: white;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--gray-900);
}

.section-header p {
  font-size: 1.125rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.platform-card {
  background: white;
  border: 2px solid var(--border-light);
  border-radius: 1.5rem;
  padding: 2rem;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}

.platform-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
}

.platform-icon {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  display: block;
}

.platform-title {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
  color: var(--gray-900);
}

.service-name {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.platform-subtitle {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
}

.feature-list li {
  padding: 0.75rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--gray-700);
  line-height: 1.6;
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: bold;
  font-size: 1.25rem;
}

.card-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: auto;
}

.btn-primary,
.btn-secondary {
  padding: 0.875rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  text-decoration: none;
  display: block;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: white;
}

/* 플랫폼별 컬러 테마 */
.product-card {
  border-top: 4px solid #3b82f6;
}

.partnering-card {
  border-top: 4px solid #10b981;
}

.sales-card {
  border-top: 4px solid #8b5cf6;
}

.buyer-card {
  border-top: 4px solid #f59e0b;
}

/* ============================================
   Success Stories 섹션
   ============================================ */
.success-stories {
  padding: 5rem 2rem;
  background: var(--gray-50);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.testimonial-card {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.testimonial-content {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--gray-700);
  margin: 0 0 1.5rem 0;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid var(--border-light);
  padding-top: 1.5rem;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.author-info h4 {
  font-size: 1rem;
  color: var(--gray-900);
  margin-bottom: 0.25rem;
}

.author-info p {
  font-size: 0.875rem;
  color: var(--text-light);
  margin: 0;
}

/* ============================================
   Features 섹션
   ============================================ */
.features { 
  padding: 5rem 2rem; 
  background: white;
}

.section-title { 
  text-align: center; 
  font-size: 2.5rem; 
  margin-bottom: 1rem;
  color: var(--gray-900);
}

.section-subtitle {
  text-align: center;
  font-size: 1.125rem;
  color: var(--text-light);
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.feature-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
  gap: 2rem; 
  max-width: 1200px; 
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card { 
  background: var(--gray-50); 
  padding: 2rem; 
  border-radius: 1rem; 
  transition: all 0.3s ease;
  border: 1px solid var(--border-light);
}

.feature-card:hover { 
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  background: white;
}

.feature-icon { 
  font-size: 3rem; 
  margin-bottom: 1rem;
  display: block;
}

.feature-card h3 { 
  font-size: 1.5rem; 
  margin-bottom: 1rem;
  color: var(--gray-900);
}

.feature-title {
  font-size: 1.25rem;
  color: var(--gray-900);
  margin-bottom: 0.75rem;
}

.feature-card p { 
  color: var(--text-light);
  line-height: 1.7;
}

.feature-description {
  color: var(--text-light);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* ============================================
   FAQ 섹션
   ============================================ */
.faq-section {
  padding: 5rem 2rem;
  background: white;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 0;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.5rem 0;
  background: none;
  border: none;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gray-900);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.3s ease;
}

.faq-question:hover {
  color: var(--primary);
}

.faq-icon {
  transition: transform 0.3s ease;
  color: var(--primary);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  color: var(--text-light);
  line-height: 1.8;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding-bottom: 1.5rem;
}

/* ============================================
   CTA 섹션
   ============================================ */
.cta-section {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 5rem 2rem;
  text-align: center;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.cta-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-primary,
.cta-secondary {
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 1.125rem;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
}

.cta-primary {
  background: white;
  color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.cta-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

.cta-secondary {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid white;
  backdrop-filter: blur(10px);
}

.cta-secondary:hover {
  background: white;
  color: var(--primary);
}

/* ============================================
   Footer
   ============================================ */
.footer { 
  background: var(--gray-900); 
  color: white; 
  padding: 3rem 2rem 1.5rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-logo {
  font-size: 1.75rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.footer-description {
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.footer-section h3 {
  font-size: 1.125rem;
  margin-bottom: 1rem;
  color: white;
}

.footer-section p,
.footer-section a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  line-height: 1.8;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: white;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-social,
.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-size: 1.25rem;
}

.social-link:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
}

/* ============================================
   Toast 알림
   ============================================ */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: white;
  padding: 1rem 1.5rem;
  border-radius: 0.75rem;
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 300px;
  z-index: 10000;
  animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.toast.success {
  border-left: 4px solid var(--success);
}

.toast.error {
  border-left: 4px solid var(--danger);
}

.toast.warning {
  border-left: 4px solid var(--warning);
}

.toast-icon {
  font-size: 1.5rem;
}

.toast-message {
  flex: 1;
  color: var(--gray-900);
  font-size: 0.9rem;
}

.toast-close {
  background: none;
  border: none;
  color: var(--gray-600);
  cursor: pointer;
  font-size: 1.25rem;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.toast-close:hover {
  background: var(--gray-100);
}

/* ============================================
   로딩 스피너
   ============================================ */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.page-loading {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.page-loading .loading-spinner {
  width: 60px;
  height: 60px;
  border-width: 6px;
  border-color: var(--primary);
  border-top-color: transparent;
}

/* ============================================
   애니메이션 & 가시성
   ============================================ */
.platform-card,
.testimonial-card,
.feature-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.platform-card.visible,
.testimonial-card.visible,
.feature-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   유틸리티 클래스
   ============================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

.flex { display: flex; }
.flex-column { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }

.bg-primary { background-color: var(--primary); }
.bg-success { background-color: var(--success); }
.bg-danger { background-color: var(--danger); }
.bg-gray-50 { background-color: var(--gray-50); }

.rounded { border-radius: 0.5rem; }
.rounded-full { border-radius: 9999px; }

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

/* ============================================
   반응형 디자인
   ============================================ */
@media (max-width: 1024px) {
  .hero h1 { font-size: 2.5rem; }
  .hero p { font-size: 1.125rem; }
  .section-title { font-size: 2rem; }
  .hero-stats { gap: 2rem; }
  .stat-number { font-size: 2.5rem; }
}

@media (max-width: 768px) {
  .nav { 
    padding: 1rem; 
  }

  .nav-links { 
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero { 
    padding: 6rem 1.5rem 4rem; 
  }

  .hero h1 { 
    font-size: 2rem; 
  }

  .hero p { 
    font-size: 1rem; 
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-stats {
    flex-direction: column;
    gap: 2rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .features, .products, .cta-section, .platforms, .success-stories, .faq-section { 
    padding: 3rem 1rem; 
  }

  .section-title { 
    font-size: 1.75rem; 
  }

  .section-header h2 {
    font-size: 1.75rem;
  }

  .feature-grid, .product-grid, .card-grid, .testimonial-grid, .features-grid { 
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .card-actions {
    flex-direction: column;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .modal-content {
    width: 95%;
    padding: 20px;
  }

  .signup-modal-content {
    width: 95%;
  }

  .signup-progress {
    gap: 5px;
  }

  .step-number {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .step-label {
    font-size: 11px;
  }

  .progress-line {
    width: 40px;
  }

  .role-selection-cards,
  .sales-type-cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .role-card,
  .sales-type-card {
    padding: 24px 20px;
  }

  .checkbox-group {
    grid-template-columns: 1fr;
  }

  .toast {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
    min-width: auto;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .logo { 
    font-size: 1.5rem; 
  }

  .hero h1 { 
    font-size: 1.75rem; 
  }

  .modal-title {
    font-size: 20px;
  }

  .step-title {
    font-size: 1.25rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   다크모드 지원 (선택사항)
   ============================================ */
@media (prefers-color-scheme: dark) {
  /* 다크모드가 필요한 경우 여기에 스타일 추가 */
}

/* ============================================
   인쇄 스타일
   ============================================ */
@media print {
  .header,
  .footer,
  .nav-cta,
  .mobile-menu-btn {
    display: none;
  }

  body {
    background: white;
  }

  .hero {
    background: white;
    color: black;
  }
}

/* ============================================
   접근성 개선
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* 포커스 표시 개선 */
*:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ============================================
   스크롤바 커스터마이징
   ============================================ */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
  background: var(--gray-600);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gray-700);
}

/* ============================================
   선택 영역 스타일
   ============================================ */
::selection {
  background: var(--primary);
  color: white;
}

::-moz-selection {
  background: var(--primary);
  color: white;
}

/* ============================================
   배지
   ============================================ */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 1rem;
  line-height: 1;
}

.badge-primary { background: var(--primary); color: white; }
.badge-success { background: var(--success); color: white; }
.badge-danger { background: var(--danger); color: white; }
.badge-warning { background: var(--warning); color: white; }

/* ============================================
   카드
   ============================================ */
.card {
  background: white;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.card-header {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0;
}

.card-body {
  color: var(--gray-700);
}

.card-footer {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}