/* Hero Section */
.hero {
  position: relative;
  padding: 4rem 0;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(229, 62, 62, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(60px);
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(229, 62, 62, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(60px);
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: flex-start;
}

.hero-text {
  animation: slideInLeft 0.8s ease-out;
}

.hero-title {
  font-size: var(--font-size-6xl);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: var(--spacing-md);
  color: var(--foreground);
}

.hero-title .text-primary {
  color: var(--primary);
}

.hero-subtitle {
  font-size: var(--font-size-lg);
  color: var(--foreground-muted);
  margin-bottom: var(--spacing-lg);
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-xl);
  flex-wrap: wrap;
}

.hero-buttons .btn {
  display: inline-flex;
  gap: var(--spacing-sm);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: var(--font-size-4xl);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: var(--spacing-sm);
}

.stat-label {
  font-size: var(--font-size-sm);
  color: var(--foreground-muted);
  margin: 0;
}

/* Hero Decoration */
.hero-media {
  position: relative;
  animation: slideInRight 0.8s ease-out;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.hero-carousel {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(229, 62, 62, 0.25);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
  background: linear-gradient(135deg, rgba(229, 62, 62, 0.12) 0%, rgba(26, 26, 26, 0.85) 60%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-carousel::after {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 18px;
  pointer-events: none;
}

.carousel-track {
  display: flex;
  align-items: center;
  transition: transform 0.6s ease;
  will-change: transform;
}

.carousel-slide {
  min-width: 100%;
  opacity: 0;
  transition: opacity 0.6s ease;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-slide img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #111;
}

.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--foreground);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 2;
}

.carousel-control:hover {
  background: rgba(229, 62, 62, 0.35);
  border-color: rgba(229, 62, 62, 0.6);
}

.carousel-control.prev {
  left: 14px;
}

.carousel-control.next {
  right: 14px;
}

.carousel-control span {
  font-size: 24px;
  line-height: 1;
}

.carousel-dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 2;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  padding: 0;
  transition: transform var(--transition-fast), background var(--transition-fast);
}

.carousel-dot.active {
  background: var(--primary);
  transform: scale(1.35);
}

.hero-placeholder {
  position: relative;
  padding: var(--spacing-xl);
  border-radius: 24px;
  border: 1px dashed rgba(229, 62, 62, 0.35);
  background: rgba(26, 26, 26, 0.85);
  text-align: center;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.hero-placeholder__label {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(229, 62, 62, 0.15);
  color: var(--primary);
  font-size: var(--font-size-sm);
  font-weight: 600;
  margin-bottom: var(--spacing-md);
}

.hero-placeholder__content p {
  margin: 0;
}

/* Animations */
@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);
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-title {
    font-size: var(--font-size-4xl);
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
  }

  .hero-decoration {
    display: none;
  }

  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 0;
    min-height: auto;
    width: 100%;
  }

  .hero .container {
    width: 100%;
    padding-left: 0;
    padding-right: 0;
    padding-top: 0;
    padding-bottom: 0;
    min-height: auto;
  }

  .hero-content {
    position: relative;
    padding: 0;
    gap: 0;
    grid-template-columns: 1fr;
    overflow: hidden;
    align-items: stretch;
    justify-items: stretch;
    min-height: auto;
    width: 100%;
  }

  .hero-text {
    position: relative;
    z-index: 1;
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.65) 0%, rgba(10, 10, 10, 0.65) 100%);
    padding: 0 var(--spacing-md);
    border-radius: 0;
    backdrop-filter: none;
    text-align: center;
    width: 100%;
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-media {
    position: absolute;
    inset: 0;
    animation: none;
    z-index: 0;
    opacity: 1;
    width: 100%;
    height: 100%;
  }

  .hero-carousel {
    max-width: none;
    height: 100%;
    border-radius: 0;
    border: none;
    box-shadow: none;
  }

  .hero-carousel::after {
    display: none;
  }

  .carousel-track {
    height: 100%;
  }

  .carousel-slide {
    height: 100%;
  }

  .carousel-control,
  .carousel-dots,
  .hero-placeholder {
    display: none;
  }

  .hero-title {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--spacing-sm);
  }

  .hero-subtitle {
    font-size: var(--font-size-sm);
    margin-bottom: var(--spacing-md);
  }

  .hero-buttons {
    margin-bottom: var(--spacing-md);
    gap: var(--spacing-xs);
  }

  .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--spacing-sm);
    margin-top: var(--spacing-sm);
  }

  .stat-value {
    font-size: var(--font-size-xl);
    margin-bottom: 0.25rem;
  }

  .stat-label {
    font-size: var(--font-size-2xs, 0.7rem);
  }
}
