.hero {
  background-color: var(--color-primary-dark);
  color: var(--color-white);
  padding: var(--space-24) 0 var(--space-20);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(254, 111, 49, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(22, 212, 167, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero--center .hero__content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  font-size: var(--font-size-4xl);
  margin-bottom: var(--space-6);
  line-height: 1.15;
}

.hero p {
  font-size: var(--font-size-lg);
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-8);
  line-height: var(--line-height-relaxed);
}

.hero__actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hero--center .hero__actions {
  justify-content: center;
}

/* Page hero (smaller, for subpages) */
.hero--page {
  padding: var(--space-16) 0 var(--space-12);
}

.hero--page h1 {
  font-size: var(--font-size-3xl);
}

.hero--page p {
  font-size: var(--font-size-md);
}

/* Hero grid layout (text left, image right) */
.hero__grid {
  display: grid;
  grid-template-columns: 55% 45%;
  gap: var(--space-6);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__grid .hero__content {
  max-width: none;
}

.hero__image img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius-lg, 12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Inline SVG hero visual (e.g. the homepage value-bridge graphic) */
.hero__visual {
  position: relative;
  z-index: 1;
}

.hero__visual svg {
  display: block;
  width: 100%;
  height: auto;
  max-width: 460px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .hero {
    padding: var(--space-16) 0 var(--space-12);
  }

  .hero h1 {
    font-size: var(--font-size-2xl);
  }

  .hero p {
    font-size: var(--font-size-base);
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero--page {
    padding: var(--space-12) 0 var(--space-8);
  }

  .hero__grid {
    grid-template-columns: 1fr;
  }

  .hero__image {
    order: -1;
  }

  /* Keep the inline hero visual below the copy on mobile and constrain it. */
  .hero__visual {
    margin-top: var(--space-6);
  }

  .hero__visual svg {
    max-width: 380px;
  }
}
