/* ─── Careers Page ─── */

.mtl-careers-hero {
  position: relative;
  padding: 6rem 1.5rem 3rem;
  text-align: center;
}

.mtl-careers-hero__title {
  font-size: clamp(2.4rem, 4.2vw, 3.6rem);
  line-height: 1.08;
  margin: 1.5rem auto 1.2rem;
  max-width: 680px;
}

.mtl-careers-hero .mtl-hero__subtitle {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.mtl-section--roles {
  padding-top: 1.5rem;
}

/* ─── Role cards ─── */

.mtl-careers-roles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.mtl-role-card {
  background: #fff;
  border-radius: 24px;
  padding: 2rem;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: var(--mtl-shadow-card);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.mtl-role-card:hover {
  box-shadow: var(--mtl-shadow-soft);
  transform: translateY(-2px);
}

.mtl-role-card__top {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.mtl-role-card__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
}

.mtl-role-card__icon--eng {
  background: rgba(97, 114, 241, 0.1);
  color: #6172f1;
}

.mtl-role-card__icon--data {
  background: rgba(24, 184, 172, 0.1);
  color: #18b8ac;
}

.mtl-role-card__icon--design {
  background: rgba(236, 47, 138, 0.1);
  color: #ec2f8a;
}

.mtl-role-card__icon--growth {
  background: rgba(234, 179, 8, 0.1);
  color: #d97706;
}

.mtl-role-card__title {
  font-family: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--mtl-ink);
  margin: 0;
}

.mtl-role-card__meta {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.35rem;
}

.mtl-role-card__meta span {
  font-size: 0.82rem;
  color: var(--mtl-ink-muted);
  background: rgba(15, 23, 42, 0.04);
  padding: 0.15rem 0.6rem;
  border-radius: 8px;
}

.mtl-role-card__desc {
  font-size: 0.92rem;
  color: var(--mtl-ink-muted);
  line-height: 1.6;
  margin: 0 0 1.25rem;
  flex: 1;
}

.mtl-role-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.mtl-role-card__tags span {
  font-size: 0.78rem;
  font-weight: 600;
  color: #6172f1;
  background: rgba(97, 114, 241, 0.08);
  padding: 0.3rem 0.7rem;
  border-radius: 10px;
}

.mtl-role-card__apply {
  align-self: flex-start;
  padding: 0.65rem 1.4rem;
  font-size: 0.9rem;
}

/* ─── General application card ─── */

.mtl-careers-cta-card {
  background: var(--mtl-surface-soft);
  border-radius: 24px;
  padding: 3rem;
  text-align: center;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.mtl-careers-cta-card h3 {
  font-family: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.5rem;
  margin: 0 0 0.75rem;
}

.mtl-careers-cta-card p {
  color: var(--mtl-ink-muted);
  font-size: 0.95rem;
  max-width: 480px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}

/* ─── Responsive ─── */

@media (max-width: 900px) {
  .mtl-careers-roles {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .mtl-careers-hero {
    padding: 4rem 1rem 2rem;
  }

  .mtl-careers-hero__title {
    font-size: 2rem;
  }

  .mtl-role-card {
    padding: 1.5rem;
    border-radius: 20px;
  }

  .mtl-careers-cta-card {
    padding: 2rem 1.5rem;
  }
}
