/* ENTERPRISE COGNITIVE AI HERO REDESIGN */
:root {
  --core-blue: #0a1733;
  --core-dark: #040b17;
  --ai-cyan: #00e6ff;
  --ai-glow: rgba(0, 230, 255, 0.4);
  --text-main: #ffffff;
  --text-muted: #a0aec0;
}

/* Keyframes for animations */
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse-slow {
  0% { transform: translateY(-50%) scale(1); opacity: 0.8; }
  100% { transform: translateY(-50%) scale(1.1); opacity: 1; }
}

.hero-enterprise {
  position: relative;
  min-height: 85vh; /* Reduced from 100vh to avoid excessive empty space */
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 2rem 4rem 2rem; /* Reduced top padding to properly center the content */
  overflow: hidden;
}

/* Background image + gradient overlay */
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../../images/hero-background.webp');
  background-size: cover;
  background-position: top center; /* Align top so there's no perceived black gap from the image center */
  background-attachment: fixed;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  /* Uniform, lighter overlay so the image shows through clearly right from the top */
  background: linear-gradient(180deg, rgba(10, 23, 51, 0.4) 0%, rgba(10, 23, 51, 0.85) 100%);
  z-index: 1;
}

/* Radial cognitive pulse */
.hero-pulse {
  position: absolute;
  top: 50%;
  right: 15%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,230,255,0.15) 0%, transparent 60%);
  transform: translateY(-50%);
  z-index: 1;
  animation: pulse-slow 4s ease-in-out infinite alternate;
}

.hero-content-wrapper {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2rem;
}

.hero-text-block {
  animation: fade-in-up 1s ease-out forwards;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-title-main {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(2.2rem, 3.5vw, 3.8rem); /* Slightly reduced to prevent overflowing to 5 lines */
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 35px; /* Increased margin to give breathing room */
  color: #fff;
  max-width: 900px; /* Slightly widened to comfortably fit within 4 lines or fewer */
  margin-left: auto;
  margin-right: auto;
}
.text-highlight {
  background: linear-gradient(135deg, #ffffff 0%, var(--ai-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.1rem; /* Slightly larger for better readability */
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 800px;
  font-weight: 500; /* Increased from 400 for a bit more thickness */
}
.hero-desc strong {
  color: #fff;
  font-weight: 600;
}

/* Buttons */
.hero-actions {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.btn-ai-primary {
  background: var(--ai-cyan);
  color: #000;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  padding: 1rem 2.5rem;
  border-radius: 4px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s;
  box-shadow: 0 0 20px rgba(0,230,255,0.3);
}
.btn-ai-primary:hover {
  background: #fff;
  box-shadow: 0 0 30px rgba(0,230,255,0.6);
  transform: translateY(-2px);
  color: #000;
}

.btn-ai-secondary {
  background: rgba(10, 23, 51, 0.6);
  color: #fff;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  text-transform: uppercase;
  padding: 1rem 2.5rem;
  border-radius: 4px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(0,230,255,0.3);
  transition: all 0.3s;
  backdrop-filter: blur(10px);
}
.btn-ai-secondary:hover {
  background: rgba(0, 230, 255, 0.1);
  border-color: var(--ai-cyan);
  color: var(--ai-cyan);
}

/* The 5 Key Points Container - The Core Requirement */
.metrics-grid {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 3rem auto 0 auto;
  width: 100%;
  display: flex;
  justify-content: space-between;
  background: rgba(10, 23, 51, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 1px solid rgba(0, 230, 255, 0.2);
  border-radius: 16px;
  padding: 1.5rem 0.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  animation: fade-in-up 1s ease-out 0.5s forwards;
  opacity: 0;
}

.metric-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  padding: 0 1rem;
}

/* Subtle vertical dividers between metrics */
.metric-card:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 10%;
  height: 80%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.15), transparent);
}

.metric-icon {
  font-size: 1.5rem;
  color: var(--ai-cyan);
  margin-bottom: 0.5rem;
  filter: drop-shadow(0 0 8px rgba(0, 230, 255, 0.4));
}

.metric-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.metric-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.3;
  font-weight: 500;
  max-width: 180px;
}

@media (max-width: 1024px) {
  .hero-content-wrapper { gap: 2rem; }
  .metrics-grid { 
    flex-wrap: wrap; 
    gap: 1.5rem;
    padding: 1.5rem;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
  }
  .metric-card { flex: 1 1 30%; }
  .metric-card:not(:last-child)::after { display: none; }
}

@media (max-width: 768px) {
  .hero-enterprise { padding-top: 100px; }
  
  .hero-actions {
    justify-content: center;
  }

  .metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    padding: 1rem 0;
  }
  
  .metric-card {
    background: rgba(10, 23, 51, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 230, 255, 0.15);
    border-radius: 12px;
    padding: 1.5rem 0.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: none;
    margin: 0;
  }

  .metric-card:last-child {
    grid-column: span 2;
  }
}

@media (max-width: 480px) {
  .metric-value { font-size: 1.5rem; }
  .metric-label { font-size: 0.8rem; }
}
