/* src/components/layout/hero/hero.css */
.hero {
  position: relative;
  border-bottom: var(--border-width) solid var(--border-black);
  z-index: 1;
  /* Create stacking context for pseudo backgrounds */
}

/* Span Right Background Color infinitely */
.hero::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  bottom: 0;
  width: 100%;
  background-color: var(--primary-blue);
  z-index: -2;
}

@media (min-width: 900px) {
  .hero::before {
    top: 0;
    width: 50%;
  }
}

/* Span Right Pattern infinitely */
.hero::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  bottom: 0;
  width: 100%;
  background-image: radial-gradient(var(--border-black) 2px, transparent 2px);
  background-size: 30px 30px;
  opacity: 0.1;
  z-index: -1;
}

@media (min-width: 900px) {
  .hero::after {
    top: 0;
    width: 50%;
  }
}

.hero__container {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  max-width: 1360px;
  margin: auto;
}

@media (min-width: 900px) {
  .hero__container {
    flex-direction: row;
  }
}

/* Ensure equal sizing 50/50 */
.hero__content {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 64px 32px;
  border-bottom: var(--border-width) solid var(--border-black);
  align-items: flex-start;
  background-color: var(--main-bg);
  /* ensure left covers up any bleeding */
}

@media (min-width: 900px) {
  .hero__content {
    border-bottom: none;
    border-right: var(--border-width) solid var(--border-black);
  }
}

.hero__graphic {
  flex: 1 1 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 64px 32px;
  position: relative;
}

.hero__title {
  font-size: 2.5rem;
  line-height: 1.1;
  letter-spacing: -1px;
}

@media (min-width: 900px) {
  .hero__title {
    font-size: 3.5rem;
  }
}

.highlight-bg {
  background-color: var(--primary-blue);
  border: var(--border-width) solid var(--border-black);
  padding: 0 8px;
  display: inline-block;
  color: var(--border-black);
}

.hero__desc {
  font-size: 1.1rem;
  opacity: 0.7;
  font-weight: 900;
  max-width: 600px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 8px;
}

.hero__benchmarks {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: auto;
  padding-top: 32px;
}

.hero__code-card {
  position: relative;
  background-color: var(--card-bg);
  border: var(--border-width) solid var(--border-black);
  box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--border-black);
  transform: rotate(-2deg);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 2;
  width: 500px;
  max-width: 100%;
}

.hero__code-container {
  padding: 24px;
}

.hero__graphic:hover .hero__code-card {
  transform: rotate(0deg);
}

.hero__code-badge {
  position: absolute;
  top: -15px;
  right: -20px;
  transform: rotate(15deg);
  z-index: 3;
}