/* ===== Base ===== */
html { scroll-behavior: smooth; }
* { font-family: 'Inter', system-ui, -apple-system, sans-serif; }

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94A3B8; }

/* ===== Brand Gradient — vibrant marketplace ===== */
.cw-gradient { background: linear-gradient(135deg, #2563EB 0%, #7C3AED 30%, #EC4899 60%, #F59E0B 100%); }
.cw-gradient-text {
  background: linear-gradient(135deg, #2563EB 0%, #7C3AED 40%, #EC4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== Animated hero gradient (fallback if no bg image) ===== */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.cw-hero-gradient {
  background: linear-gradient(135deg, #1e40af, #7C3AED, #EC4899, #F59E0B, #10B981, #2563EB);
  background-size: 300% 300%;
  animation: gradientShift 12s ease infinite;
}

/* ===== Floating particles ===== */
@keyframes particleFloat {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.3; }
  25% { transform: translate(30px, -40px) scale(1.1); opacity: 0.5; }
  50% { transform: translate(-20px, -80px) scale(0.9); opacity: 0.4; }
  75% { transform: translate(40px, -30px) scale(1.05); opacity: 0.35; }
}
.cw-particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  pointer-events: none;
}
.cw-particle-1 { width: 120px; height: 120px; bottom: 10%; left: 5%; animation: particleFloat 15s ease-in-out infinite; }
.cw-particle-2 { width: 80px; height: 80px; top: 20%; right: 10%; animation: particleFloat 12s ease-in-out infinite 2s; }
.cw-particle-3 { width: 60px; height: 60px; bottom: 30%; right: 20%; animation: particleFloat 18s ease-in-out infinite 4s; }
.cw-particle-4 { width: 100px; height: 100px; top: 40%; left: 15%; animation: particleFloat 14s ease-in-out infinite 1s; }
.cw-particle-5 { width: 50px; height: 50px; top: 15%; left: 40%; animation: particleFloat 16s ease-in-out infinite 3s; }

/* ===== (cityscape bg removed) ===== */

/* ===== Card Styles ===== */
.cw-card {
  background: #FFFFFF;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
  border: 1px solid #E2E8F0;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.cw-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

/* ===== Role-colored card top border ===== */
.cw-card-colored {
  background: #FFFFFF;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  border: 1px solid #E2E8F0;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  position: relative;
  overflow: hidden;
}
.cw-card-colored::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--role-color, #2563EB);
}
.cw-card-colored:hover {
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
  transform: translateY(-4px);
}

/* ===== Buttons ===== */
.cw-btn-primary {
  background: linear-gradient(135deg, #2563EB, #7C3AED);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.cw-btn-primary:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 20px rgba(37,99,235,0.4);
}
.cw-btn-secondary {
  background: transparent;
  color: #2563EB;
  border: 1.5px solid #2563EB;
  border-radius: 8px;
  padding: 12px 24px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.cw-btn-secondary:hover {
  transform: scale(1.02);
  background: rgba(37,99,235,0.05);
}

/* ===== Form Inputs ===== */
.cw-input {
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 12px;
  font-size: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}
.cw-input:focus {
  border-color: #7C3AED;
  box-shadow: 0 0 0 3px rgba(124,58,237,0.2);
}

/* ===== Scroll Reveal Animation ===== */
.cw-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.cw-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Section Spacing ===== */
.cw-section { padding: 80px 0; }
.cw-section-sm { padding: 48px 0; }

/* ===== Vibrant section backgrounds ===== */
.cw-bg-warm { background: linear-gradient(180deg, #FFF7ED 0%, #FFF1F2 100%); }
.cw-bg-cool { background: linear-gradient(180deg, #EFF6FF 0%, #F0FDFA 100%); }
.cw-bg-mixed { background: linear-gradient(180deg, #FAF5FF 0%, #EFF6FF 100%); }
.cw-bg-fresh { background: linear-gradient(180deg, #ECFDF5 0%, #F0F9FF 100%); }

/* ===== Text Colors ===== */
.cw-text-secondary { color: #475569; }
.cw-text-muted { color: #64748B; }

/* ===== Trust Badge ===== */
.cw-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
}

/* ===== Floating Chat Button ===== */
.cw-chat-btn {
  background: linear-gradient(135deg, #2563EB, #EC4899);
  color: #fff;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 16px rgba(37,99,235,0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cw-chat-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(236,72,153,0.4);
}

/* ===== Navigation Active Indicator ===== */
.cw-nav-active {
  color: #2563EB;
  font-weight: 600;
  position: relative;
}
.cw-nav-active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 2px;
  background: linear-gradient(90deg, #2563EB, #7C3AED);
  border-radius: 1px;
}

/* ===== Marketplace floating dots (decorative) ===== */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
