.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-height);
}

.hero-background {
  position: absolute;
  inset: 0;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    var(--color-black) 0%,
    var(--color-dark-blue) 45%,
    #0f0f14 70%,
    var(--color-black) 100%
  );
  background-size: 200% 200%;
  animation: gradientShift 10s ease-in-out infinite;
}

@keyframes gradientShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.hero-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 40%, rgba(212, 175, 55, 0.08), transparent),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(26, 26, 46, 0.9), transparent);
}

.hero-lightning {
  position: absolute;
  top: 8%;
  right: 5%;
  width: min(420px, 40vw);
  height: auto;
  opacity: 0.12;
  animation: float 7s ease-in-out infinite;
  pointer-events: none;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-24px);
  }
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(212, 175, 55, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 175, 55, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: var(--spacing-xl) var(--spacing-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 100px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  background: rgba(212, 175, 55, 0.08);
  font-size: var(--font-size-small);
  color: var(--color-gold);
  margin: 0 auto var(--spacing-lg);
}

.hero-title {
  width: 100%;
  margin-bottom: var(--spacing-md);
  font-weight: 700;
  letter-spacing: -0.5px;
  text-align: center;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--color-white), var(--color-gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: clamp(18px, 2.5vw, 26px);
  color: var(--color-light-gray);
  width: 100%;
  max-width: 640px;
  margin: 0 auto var(--spacing-xl);
  line-height: 1.5;
  text-align: center;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
  margin: 0 auto;
}

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-gold);
  animation: bounce 2s infinite;
  z-index: 2;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

.page-hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-height);
}

.page-hero .hero-content {
  text-align: left;
  max-width: 100%;
  margin: 0 auto;
  width: 100%;
  padding: var(--spacing-2xl) var(--site-gutter, var(--spacing-xl));
}

.page-hero h1 {
  font-size: clamp(40px, 6vw, 64px);
  max-width: 800px;
}

.page-hero .hero-subtitle {
  margin-left: 0;
  font-size: clamp(16px, 2vw, 22px);
}

.page-hero--estate-centered .hero-content {
  text-align: center;
}

.page-hero--estate-centered .hero-subtitle {
  margin-left: auto;
  margin-right: auto;
  max-width: 720px;
  text-align: center;
}

.page-hero--estate-centered h1 {
  margin-left: auto;
  margin-right: auto;
}

.page-hero--estate-centered .breadcrumb {
  text-align: center;
}

.page-hero-circuit::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0v20M30 40v20M0 30h20M40 30h20' stroke='%23D4AF37' stroke-opacity='0.06' fill='none'/%3E%3C/svg%3E");
  opacity: 0.6;
}

@media (max-width: 768px) {
  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

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