/* components.css */

.button {
    background-color: #2563eb; /* Tailwind bg-blue-600 */
    color: #fff; /* Tailwind text-white */
    font-weight: 600; /* Tailwind font-semibold */
    padding-top: 0.5rem; /* Tailwind py-2 */
    padding-bottom: 0.5rem;
    padding-left: 1rem; /* Tailwind px-4 */
    padding-right: 1rem;
    border-radius: 0.25rem; /* Tailwind rounded */
    transition: background-color 0.2s;
}
.button:hover {
    background-color: #1d4ed8; /* Tailwind hover:bg-blue-700 */
}

.button-secondary {
    background-color: #374151; /* Tailwind bg-gray-700 */
    color: #fff; /* Tailwind text-white */
    font-weight: 600; /* Tailwind font-semibold */
    padding-top: 0.5rem; /* Tailwind py-2 */
    padding-bottom: 0.5rem;
    padding-left: 1rem; /* Tailwind px-4 */
    padding-right: 1rem;
    border-radius: 0.25rem; /* Tailwind rounded */
    transition: background-color 0.2s;
}
.button-secondary:hover {
    background-color: #1f2937; /* Tailwind hover:bg-gray-800 */
}

.card {
    background-color: #1f2937; /* Tailwind bg-gray-800 */
    border-radius: 0.5rem; /* Tailwind rounded-lg */
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05); /* Tailwind shadow-lg */
    padding: 1.5rem; /* Tailwind p-6 */
}

.card-title {
    font-size: 1.25rem; /* Tailwind text-xl */
    font-weight: 700; /* Tailwind font-bold */
    margin-bottom: 0.5rem; /* Tailwind mb-2 */
}

.card-content {
    color: #d1d5db; /* Tailwind text-gray-300 */
}

.feature-list {
    list-style-type: disc; /* Tailwind list-disc */
    list-style-position: inside; /* Tailwind list-inside */
    color: #d1d5db; /* Tailwind text-gray-300 */
}
.feature-list > * + * {
    margin-top: 0.5rem; /* Tailwind space-y-2 */
}

.footer {
    font-size: 0.875rem; /* Tailwind text-sm */
    color: #6b7280; /* Tailwind text-gray-500 */
}

/* ========================================
   HERO SECTION COMPONENTS
   ======================================== */

.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #010102 0%, #07070d 50%, #0a0a12 100%);
  position: relative;
  background-attachment: fixed;
  background-blend-mode: overlay;
}

.hero-title {
  background: linear-gradient(135deg, #fff 0%, #ffe066 25%, #ff8a80 50%, #60a5fa 75%, #a7f3d0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 
    0 0 20px rgba(255,255,255,0.7),
    0 2px 8px rgba(242, 3, 3, 0.7);
  filter: drop-shadow(0 4px 12px rgba(255,255,255,0.3));
}

.hero-subtitle {
  text-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.8),
    0 4px 8px rgba(0, 0, 0, 0.6);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.hero-description {
  text-shadow: 
    0 1px 3px rgba(0, 0, 0, 0.8),
    0 2px 6px rgba(0, 0, 0, 0.6);
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.3));
}

.hero-btn-primary {
  background: linear-gradient(135deg, #dc2626 0%, #ef4444 50%, #f87171 100%);
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  color: white;
  font-weight: 700;
  font-size: 1.125rem;
  text-decoration: none;
  transition: all 0.3s ease;
  transform: translateY(0);
  box-shadow: 0 10px 25px rgba(220, 38, 38, 0.3), 0 4px 6px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.hero-btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s;
}

.hero-btn-primary:hover {
  background: linear-gradient(135deg, #b91c1c 0%, #dc2626 50%, #ef4444 100%);
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(220, 38, 38, 0.4), 0 8px 15px rgba(0, 0, 0, 0.2);
  color: white;
  text-decoration: none;
}

.hero-btn-primary:hover::before {
  left: 100%;
}

.hero-btn-secondary {
  background: rgba(31, 41, 55, 0.8);
  border: 2px solid rgba(107, 114, 128, 0.5);
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  color: white;
  font-weight: 600;
  font-size: 1.125rem;
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.hero-btn-secondary:hover {
  background: rgba(55, 65, 81, 0.9);
  border-color: rgba(156, 163, 175, 0.8);
  transform: translateY(-1px);
  color: white;
  text-decoration: none;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}
.stat-card-static {
  background: rgba(31, 41, 55, 0.6);
  border: 1px solid rgba(75, 85, 99, 0.5);
  border-radius: 0.75rem;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  /* No hover/transform for static cards */
  transition: background 0.3s, border-color 0.3s;
}
.stat-card-hero {
  background: rgba(31, 41, 55, 0.6);
  border: 1px solid rgba(75, 85, 99, 0.5);
  border-radius: 0.75rem;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.stat-card-hero:hover {
  background: rgba(31, 41, 55, 0.8);
  border-color: rgba(107, 114, 128, 0.8);
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* ========================================
   FEATURE CARDS COMPONENTS
   ======================================== */

.feature-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* ========================================
   VIDEO COMPONENTS
   ======================================== */

.video-container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(75, 85, 99, 0.3);
}

.demo-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1rem;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  transition: all 0.3s ease;
  cursor: pointer;
}

.video-overlay:hover {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
}

.play-button {
  transition: transform 0.3s ease;
}

.play-button:hover {
  transform: scale(1.1);
}

/* Video loading state */
.video-container[data-loading="true"] {
  background: linear-gradient(90deg, #374151 25%, #4b5563 50%, #374151 75%);
  background-size: 200% 100%;
  animation: videoLoading 2s infinite;
}

@keyframes videoLoading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Responsive video */
@media (max-width: 768px) {
  .video-container {
    margin: 0 1rem;
  }
  
  .video-overlay .play-button {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
  }
  
  .video-overlay svg {
    width: 1.5rem;
    height: 1.5rem;
  }
}

/* ========================================
   VIDEO COMPONENTS ENHANCED
   ======================================== */

.video-container-wrapper {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.aspect-video {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(75, 85, 99, 0.3);
  position: relative;
}

.aspect-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1rem;
}

/* Play button overlay enhanced */
.aspect-video .absolute {
  backdrop-filter: blur(4px);
}

.aspect-video .absolute:hover {
  backdrop-filter: blur(2px);
}

/* Video loading state */
.aspect-video[data-loading="true"] {
  background: linear-gradient(90deg, #374151 25%, #4b5563 50%, #374151 75%);
  background-size: 200% 100%;
  animation: videoLoading 2s infinite;
}

@keyframes videoLoading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ========================================
   AGENT ICONS ENHANCED
   ======================================== */

.agent-icon {
  position: relative;
  overflow: hidden;
}

.agent-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(239, 68, 68, 0.1) 50%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.agent-icon:hover::before {
  opacity: 1;
}

.agent-icon img {
  transition: all 0.3s ease;
}

.agent-icon:hover img {
  transform: scale(1.1);
  filter: brightness(1.2) contrast(1.1);
}

/* ========================================
   TOOLTIP COMPONENT
   ======================================== */

.agent-tooltip {
  position: absolute;
  background: linear-gradient(135deg, rgba(31, 41, 55, 0.95) 0%, rgba(17, 24, 39, 0.95) 100%);
  border: 1px solid rgba(75, 85, 99, 0.8);
  border-radius: 0.5rem;
  padding: 0.75rem;
  color: white;
  font-size: 0.875rem;
  backdrop-filter: blur(12px);
  z-index: 1000;
  pointer-events: none;
  opacity: 0;
  transition: all 0.3s ease;
  max-width: 220px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.agent-tooltip::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: rgba(31, 41, 55, 0.95);
}

/* ========================================
   ENHANCED ANIMATIONS
   ======================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 5px rgba(239, 68, 68, 0.5);
  }
  50% {
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.8);
  }
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-btn-primary,
  .hero-btn-secondary {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }
  
  .feature-icon {
    width: 2.5rem;
    height: 2.5rem;
  }
  
  .video-container {
    margin: 0 1rem;
  }
  
  .stat-card-hero {
    padding: 1rem;
  }
  
  .video-container-wrapper {
    margin: 0 1rem;
  }
  
  .aspect-video .absolute div {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
  }
  
  .aspect-video .absolute svg {
    width: 1.5rem;
    height: 1.5rem;
  }
}

/* ========================================
   ACCESSIBILITY IMPROVEMENTS
   ======================================== */

@media (prefers-reduced-motion: reduce) {
  .feature-icon,
  .agent-icon img,
  .play-button,
  .demo-video {
    transition: none;
  }
  
  .hero-btn-primary::before {
    display: none;
  }
}

/* ========================================
   FOCUS STATES FOR ACCESSIBILITY
   ======================================== */

.hero-btn-primary:focus,
.hero-btn-secondary:focus {
  outline: 2px solid #fbbf24;
  outline-offset: 2px;
}

.agent-icon:focus-within {
  outline: 2px solid #ef4444;
  outline-offset: 2px;
  border-radius: 0.5rem;
}

.play-button:focus {
  outline: 2px solid #fbbf24;
  outline-offset: 4px;
  border-radius: 50%;
}

/* ========================================
   LOADING STATES
   ======================================== */

.demo-video[data-loading="true"] {
  background: linear-gradient(90deg, #374151 25%, #4b5563 50%, #374151 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}