/* ========================================
   Hero Section
   ======================================== */
.hero-section {
  padding-top: 3rem;
  padding-bottom: 3rem;
  background: var(--bg-light);
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 119, 4, 0.3), transparent);
}

.hero-grid {
  display: grid;
  gap: 5rem;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  min-width: 0; /* Prevent flex item overflow */
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  background: rgba(255, 119, 4, 0.08);
  border: 1px solid rgba(255, 119, 4, 0.15);
  border-radius: 9999px;
  font-family: var(--font-body);
  font-size: var(--font-size-small);
  font-weight: 600;
  color: var(--primary);
  width: fit-content;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

.hero-title {
  font-family: var(--font-heading);
  font-size: var(--font-size-h1);
  font-weight: 800;
  line-height: 1.1;
  color: var(--charcoal-black);
  letter-spacing: -0.02em;
}

.hero-title-accent {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-family: var(--font-body);
  color: var(--gray-muted);
  font-size: var(--font-size-body);
  line-height: 1.75;
  max-width: 32rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 3rem;
  padding-top: 1.5rem;
  margin-top: 0.5rem;
  border-top: 1px solid var(--border);
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.hero-stat-value {
  font-family: var(--font-heading);
  font-size: var(--font-size-h3);
  font-weight: 800;
  color: var(--charcoal-black);
  letter-spacing: -0.02em;
}

.hero-stat-label {
  font-family: var(--font-body);
  font-size: var(--font-size-small);
  color: var(--gray-muted);
  font-weight: 500;
}

.hero-visual {
  position: relative;
}

.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}

.hero-image-wrapper img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 2;
  border-radius: var(--radius);
}

/* Rotating Text - Fixed height to prevent layout shift */
.hero-rotating-text-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-height: 100px; /* Fixed height to prevent shifting */
}

.hero-rotating-text {
  font-family: var(--font-body);
  color: var(--gray-muted);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 32rem;
  height: 64px; /* Fixed height for text container */
  transition: opacity 0.8s ease;
  opacity: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-rotating-text.fade-out {
  opacity: 0;
}

.hero-rotating-text.fade-in {
  opacity: 1;
}

.hero-rotating-dots {
  display: flex;
  gap: 0.5rem;
}

.hero-rotating-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.hero-rotating-dots .dot.active {
  background: var(--primary);
  transform: scale(1.2);
}

.hero-rotating-dots .dot:hover {
  background: var(--primary-light, #ff9a4d);
}

.hero-image-bg {
  position: absolute;
  inset: 0;
  background: var(--primary-gradient);
  transform: rotate(-6deg) scale(0.95);
  border-radius: var(--radius);
  z-index: 1;
}

.hero-floating-card {
  display: none;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 1.1fr;
    gap: 6rem;
  }

  .hero-stats {
    gap: 4rem;
  }
}