.hero-section {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.hero-section h1 {
  margin-bottom: 0.5rem;
  font-size: 2.75rem;
  font-weight: 700;
  background: linear-gradient(135deg, #111827 0%, #4b5563 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.tagline {
  font-size: 1.15rem;
  color: #6b7280;
  margin: 0;
  font-weight: 400;
}

.about-site {
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.about-site h2 {
  color: #111827;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 600;
  position: relative;
  padding-left: 1rem;
}

.about-site h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 24px;
  background: linear-gradient(180deg, #3b82f6, #2563eb);
  border-radius: 2px;
}

.about-site p {
  color: #374151;
  margin-bottom: 0.75rem;
}

.how-it-works {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 12px;
  padding: 2rem;
  margin: 1.5rem 0;
  border: 1px solid #e2e8f0;
  position: relative;
  overflow: hidden;
}

.how-it-works::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899);
  opacity: 0.8;
}

.how-it-works h3 {
  margin-top: 0;
  margin-bottom: 1.5rem;
  color: #111827;
  font-size: 1.25rem;
  font-weight: 600;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.feature {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  border: 1px solid rgba(226, 232, 240, 0.5);
  transition: all 0.3s ease;
}

.feature:hover {
  background: rgba(255, 255, 255, 0.8);
  border-color: #3b82f6;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.feature-icon {
  color: #3b82f6;
  margin-bottom: 0.5rem;
}

.feature strong {
  color: #111827;
  font-size: 1rem;
  font-weight: 600;
}

.feature p {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.6;
}

.cta-text {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-left: 3px solid #3b82f6;
  border-radius: 8px;
  color: #1e40af;
  position: relative;
  overflow: hidden;
}

.cta-text::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(59, 130, 246, 0.05) 100%);
  pointer-events: none;
}

.cta-text em {
  color: #2563eb;
  font-weight: 600;
  font-style: normal;
}

.quick-links {
  margin-bottom: 2rem;
}

.quick-links h2 {
  margin-bottom: 1.25rem;
  color: #111827;
  font-size: 1.25rem;
  font-weight: 600;
}

.link-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}

.link-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 1rem;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.link-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

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

.link-card:hover {
  background: #fafafa;
  border-color: #3b82f6;
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(59, 130, 246, 0.15);
}

.card-icon {
  color: #3b82f6;
  transition: transform 0.3s ease;
}

.link-card:hover .card-icon {
  transform: scale(1.1);
}

.card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #374151;
  text-align: center;
}

.chat-message {
  max-width: 80%;
  padding: 0.05rem 1rem;
  border-radius: 12px;
  margin-bottom: 0.75rem;
  line-height: 1.5;
  font-size: 0.95rem;
  word-wrap: break-word;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chat-message.user {
  max-width: 70%;
  margin-left: auto;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  border-bottom-right-radius: 4px;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.chat-message.user .chat-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.chat-message.user .chat-text {
  text-align: left;
  line-height: 1.5;
  padding: 0.25rem 0;
}

.chat-message.agent {
  margin-right: auto;
  background: #f8fafc;
  color: #1e293b;
  border-bottom-left-radius: 4px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.chat-message.thinking {
  font-style: italic;
  opacity: 0.7;
  background: transparent;
  padding-left: 0;
  border: none;
  box-shadow: none;
  animation: pulse 2s ease-in-out infinite;
}

#chat-form input[type="text"]:disabled {
  background: #f1f5f9;
  color: #94a3b8;
  cursor: not-allowed;
  border-color: #e2e8f0;
}

#chat-form button:disabled {
  background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
  cursor: not-allowed;
  opacity: 0.6;
  transform: none;
}

#chat-form button:disabled:hover {
  background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
  transform: none;
  box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

@keyframes pulse {

  0%,
  100% {
    opacity: 0.7;
  }

  50% {
    opacity: 0.4;
  }
}

.thinking-dots::after {
  content: "";
  animation: dots 1.4s infinite;
}

.progress-text {
  color: #6b7280;
  font-style: italic;
}

@keyframes dots {
  0% {
    content: "";
  }

  33% {
    content: ".";
  }

  66% {
    content: "..";
  }

  100% {
    content: "...";
  }
}

#chat-toggle {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  background: #f8fafc;
  padding: 0.25rem;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

#chat-toggle button {
  flex: 1;
  padding: 0.5rem;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #64748b;
  transition: all 0.2s ease;
}

#chat-toggle button.active {
  background: white;
  color: #3b82f6;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

#chat-toggle button:hover:not(.active) {
  color: #3b82f6;
}

#chat-toggle button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#chat-toggle button:disabled:hover {
  background: #f8fafc;
  color: #64748b;
}

#chat-toggle button.active:disabled {
  background: white;
  color: #3b82f6;
}

#chat-messages {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  margin: 0.5rem 0;
  padding-right: 0.5rem;
}

#chat-messages::-webkit-scrollbar {
  width: 6px;
}

#chat-messages::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 3px;
}

#chat-messages::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

#chat-messages::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

#chat-form {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}

#chat-form input[type="text"] {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  background: white;
}

#chat-form input[type="text"]:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

#chat-form button {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

#chat-form button:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

#chat-form button:active {
  transform: translateY(0);
}

.chat-message.history {
  background: transparent;
  padding: 0;
  cursor: pointer;
  border: none;
  box-shadow: none;
}

.history-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 1rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.history-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, #3b82f6, #8b5cf6);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.history-card:hover::before {
  transform: scaleY(1);
}

.history-card:hover {
  background: #fafafa;
  border-color: #3b82f6;
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.history-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.25rem;
}

.history-subtitle {
  font-size: 0.8rem;
  color: #9ca3af;
}

.left-footer-content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  text-align: center;
}

.social-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.social-links a {
  color: #64748b;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border-radius: 8px;
}

.social-links a:hover {
  color: #3b82f6;
  background: #f1f5f9;
  transform: translateY(-2px);
}

.social-links svg {
  width: 20px;
  height: 20px;
}

.footer-text {
  font-size: 0.8rem;
  color: #94a3b8;
  margin: 0;
}